Skip to main content

Scale detection throughput

The Perceptron SDK supports asynchronous and batched workflows so you can process inspection backlogs without spinning up additional infrastructure.
If each item needs several questions answered, send them as one Multilook call per item instead of one call per question. The media is prefilled once and reused across prompts.

Async pipeline

The core detect call is synchronous, so we spin it out into an asyncio.to_thread worker and gather the futures; this gives us concurrent CPU-bound preprocessing while the Perceptron API handles GPU inference.

Queue with backoff

When the control plane returns RateLimitError, retry with exponential backoff (or the precise retry_after header) so long-running batches keep moving without hammering the API.

Stream results to S3

Monitor throughput

Track a rolling distribution of per-frame latency so you can spot regressions or decide when to scale workers; median plus p99 usually tells you whether storage or inference is the bottleneck.
Batch mode lets you process tens of thousands of images per hour on a single GPU-backed worker—no retraining, no extra orchestration.