Rockchip · AI & Linux Hub

AI inference

When does a Raspberry Pi Zero 2 W camera project need an NPU?

The door camera takes a photo every ten seconds, and judging whether there is someone in ten frames every second are two different projects.

When evaluating whether to migrate a program on a Raspberry Pi Zero 2 W to an ArmSoM with an NPU, first write down how late an event must be seen, and how short an action is allowed to be missed.

First measure the time from event to notification

Record timestamps from the same clock at acquisition, scaling, inference, and message sending. Keep three videos during the day, low light and temporary network interruption. If inference only accounts for a small portion of the total latency, and network retries or frame queuing are prioritized, the improvement brought by switching to an NPU will be limited.

Trial calculation using the same video

Assuming the camera outputs 25 frames/second and the application only analyzes every fifth frame, the two observations are approximately 200 milliseconds apart. Even if inference is done instantaneously, actions that occur for only 100 milliseconds may be missed. Increasing the sampling frequency and shortening the processing time solve different problems respectively.

Decide whether to transplant

Use the same input size and frame-taking strategy on the Sige5 candidate solution, and then record the number of missed detections and the high quantile of event delay. Camera driver, model conversion and power supply are also included in the migration cost, and the procurement judgment can correspond to the actual door scene.

Board documentation and references

ArmSoM Sige5

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →