Why does luckfox_pico_rtsp_yolov5 use OpenCV (CPU) instead of full HW? Any official full-HW demo ?

  • Hello, our sample does not aim for high performance. It is mainly designed to help customers with limited experience in using the Rockchip library to quickly get started. Introducing OpenCV-Mobile can lower the learning threshold. Meanwhile, there is currently a bug in VPSS, which prevents images from being retrieved from the memory cache pool. Images can only be passed to the next stage(such as:venc).

    Currently, the most ideal way to implement real-time YOLOv5 using rkmpi + rknn is to utilize multi-threading + librga + zero-copy. One thread uses VI + VENC + RTSP streaming, while the other thread uses VI to convert the format to RGB888 via librga and input it into RKNPU. VGN binds VENC to display the detection results of YOLOv5 in the form of OSD. If you are interested, you can refer to the implementation part of YOLOv5 in https://github.com/luckfox-eng29/kvm_video.