You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

767 B

使用環境: HailoRT 4.19.0 CMake 3.25.1 Opencv 4.6.0 Visual Studio 2022

編譯過程: mkdir build cmake .. -G "Visual Studio 17 2022" cmake --build build --config Release

權重位置: build\Release\yolov5s_yuv21.hef, build\Release\yolov7_yuv21.hef

測試影片:build\Release\input.yuv

替換權重: 1. 找到 async_infer_advanced_example.cpp 裡的 main ,將 hef 檔案替換成 YOLOv5 和 YOLOv7,如下 2. auto infer_model = vdevice->create_infer_model("yolov7_yuv21.hef").expect("Failed to create infer model"); 3. 到 build 底下重新編譯 .\detection_app.exe

目前輸入格式為 (YUV 大小會從 640 * 360 -> 640 * 640): .\detection_app.exe .\input.yuv output.yuv