Build an OpenCV YOLOX pipeline to benchmark KleidiCV preprocessing
Introduction
Understand YOLOX and KleidiCV in the detection pipeline
Build OpenCV with and without KleidiCV
Prepare the YOLOX model and test image
Compile and run YOLOX static-image detection
Evaluate KleidiCV preprocessing and pipeline performance
Next Steps
Build an OpenCV YOLOX pipeline to benchmark KleidiCV preprocessing
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Run
uname -m. The expected output is aarch64.Store them in the
static-detection directory created earlier under your working folder. Use the downloaded filenames shown in the guide so the example application can find them.Record
/etc/os-release, the kernel from uname -r, and lscpu output for topology and CPU features. KleidiCV selects implementations based on available CPU features, so you need this context to compare runs.Close unnecessary applications and allow the board to cool before each run. Keep the board and operating system, OpenCV source and compiler, release build configuration, model and image, warm-up and measured iteration counts, OpenCV thread count, CPU affinity, and CPU frequency governor consistent.
Keep the inputs and common build settings the same, with KleidiCV enabled only in the second OpenCV build. Compare image-operation, full preprocessing, and end-to-end timings to separate local preprocessing gains from overall pipeline changes.