IMX219 + NPU real-time object detection on Zero 3W (experimental)

Are you using OpenCV? Those Bounding Boxes look a lot like OpenCV

I would check GPU usage to make sure it is not being software rendered somehow. You should see 5%-7% load ( plain X without desktop enviroment )

Reviewing the code, i computed the Inference + the Postprocess time as the total of 34 ms, the remaining 20 ms was rendering the image, rects and text.

Hey Avaf, I will send my modified code shortly, maybe there is something different? I only did what you told me to do

Here is the code I used as-is

./ff-rknn -p nv12 -f v4l2 -s 1024x600 -i /dev/video0 -m ./car-license-yolov5n.rknn -x 1024 -y 600

Built with jellyfin-rga , jellyfin-mpp and Nyanmisaka FFMPEG

1 Like

hello, i am new for zero 3W, could you please tell me how the build the right firmware to light imx219, so i can get the image? thank you!

Hi!

How did you managed to change NPU frequency? I’ve search the forum for clues, but the only one I got is /sys/class/devfreq/fde40000.npu/userspace/set_freq, but my image (https://github.com/radxa-build/radxa-zero3/releases/download/b6/radxa-zero3_debian_bullseye_xfce_b6.img.xz) does not have this file and userspace folder at all. Could you please provide your method for changing NPU frequency? My current NPU freq value is too low:

root@radxa-zero3:/sys/class/devfreq/fde40000.npu# cat cur_freq
0