2 min read
•2026-10-08

How to Define Acceptance Criteria for MPP, RGA, and RKNN Integration in RK3588 Multi-channel Video Analysis Projects?

推广 Banner

In RK3588 multi-channel video analysis projects, MPP, RGA, and RKNN often need to work together, handling decoding, image processing, and model inference respectively. Many teams find that the biggest headache during the integration phase is not that a module fails to run, but how to determine "when it is considered done." If acceptance criteria are too loose, problems may arise in the field later; if too strict, it may get stuck in testing and delay delivery. Here are a few practical ways to define them.

First is end-to-end throughput, which should not be measured on a single channel alone. For example, if the system claims to support 8 channels of 1080p, you need to run all 8 channels of decoding plus inference simultaneously on real streams, and measure the total frame rate during stable operation, rather than testing the peak of an individual module. It is recommended to define "minimum frame rate per channel" and "average frame rate of the whole device" separately, to prevent one channel from consuming too many resources and affecting others.

Second is latency bounds. When video analysis is latency-sensitive, you need to define the maximum allowable time from image capture to result output. This includes decode buffering, RGA scaling, model preprocessing, and inference queue time. More importantly, you need to test latency jitter during continuous operation, especially whether RKNN inference periodically queues up in multi-channel scenarios, causing some frames to suddenly time out.

Next are resource usage and stability. CPU usage, memory bandwidth, and NPU utilization should all have upper limits, but what matters more is sustained stress testing. For example, run continuously for 72 hours and observe whether memory grows slowly, whether the decoder drops frames, and whether RGA occasionally times out. A common issue in projects is that each module works fine independently, but when 8 channels trigger interrupts and DMA at the same time, hidden conflicts emerge. These problems can only be exposed through long-running tests.

Finally, define failure handling mechanisms. For example, if a stream is abnormal for a second or inference times out, does the system automatically discard or does the entire system hang? The acceptance criteria should include "recovery time after fault injection." Use test scripts to force packet loss or artificially reduce NPU frequency to confirm that multi-channel scheduling can degrade gracefully rather than crash.

In summary, acceptance criteria should be derived from business scenarios, not made up arbitrarily. Clearly define minimum frame rate per channel, maximum latency, resource and stability requirements, and leave 20% to 30% headroom, so that they can truly reflect the engineering maturity of MPP, RGA, and RKNN integration.

Published on 2026-10-08