RK ALL ADV MEDIA FRAME
Contents
- 1Preface 1.1Effectiveness & Optimization 1.2RK3588/RK3576 1.3App User Manual 1.3.1adv_rknn_yolov5
Preface
Effectiveness & Optimization
Single-process performance analysis:
RK3588/RK3576
- Support for IP cameras, MIPI cameras, and local video input.
- Support decoding, inference and playback of streaming media data.
- Support display of playback frame rate and inference time.
- Support configuration file parsing.
App User Manual
The Demo supports multiple video source inputs and inference.:
adv_rknn_yolov5
cd /tools/test/adv/npu2/adv_rknn_yolov5/
# Local video playback,demo supports input of mp4 videos encoded with h264; it also supports input of h264 and h265 videos.
./adv_yolov5_demo model/rk3588/yolov5s-640-640.rknn /usr/local/test.mp4 264
ffmpeg -i test.mp4 -vcodec h264 test.h264
./adv_yolov5_demo model/rk3588/yolov5s-640-640.rknn /usr/local/test.h264 264
ffmpeg -i test.mp4 -vcodec h265 test.h265
./adv_yolov5_demo model/rk3588/yolov5s-640-640.rknn /usr/local/test.h265 265
# Camera Preview. The camera input source is based on the Linux v4l2 architecture and the device node is confirmed.
./adv_yolov5_demo model/rk3588/yolov5s-640-640.rknn /dev/video41 264
# IP Camera Preview, Instruction example is given using Dahua IP cameras as an example.
./adv_yolov5_demo model/rk3588/yolov5s-640-640.rknn "rtsp://admin:Advantech@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0" 264
# Configuration file input
./adv_yolov5_demo model/rk3588/yolov5s-640-640.rknn /usr/local/test.mp4 264 model/win_1080P_1.conf
# 1080P monitor - Four-channel playback(Two cameras, two local videos)
./run_1920x1080.sh
# When you conduct the function demonstration using a 4K display, you need to follow these instructions: ln -s run_3840x2160.sh run.sh.
# Just execute the following command. The default display resolution will be 1080P.
cp /tools/test/adv/npu2/adv_rknn_yolov5/adv-rknn-yolov5.service /lib/systemd/system/
systemctl enable adv-rknn-yolov5.service