/Object-Detection-yolov7-opencv-onnx

Yolov7 ONNX model process with OpenCV c++.

Primary LanguageC++Apache License 2.0Apache-2.0

Object-Detection-yolov7-opencv-onnx

Yolov7 Deep MI ONNX model process with OpenCV DNN C++.
Deep-learning Machine Intelligence Network.
Base is Yolov7
ONNX model format description using for the IoT device: ONNX home
Opencv
OpenCV office
OpenCV 4.6.0 github
OpenCV 4.6.0 contrib github

Enviroment

  • Windows 10 64-bit
  • NVIDIA Geforce GTX 960 2 Gbyte RAM
  • CUDA Toolkit v11.7
  • Microsoft Visual Studio Community 2022

Installation

Downloading opencv files, there files are archive 7-Zip binary dll files
-Release mode: one size is 1 Gbye and other 21 Mbyte:
opencv_worl460.dll
unzip and copy to "./x64/Release/" directory.
-Debug mode: one size is 1.4 Gbye and other 21 Mbyte:
opencv_worl460d.dll
unzip and copy to "./x64/Debug/" directory.
-include and lib files:
opencv-4.6.0
unzip and copy to ./3rdparty.

Building the ImageDetector-yolov7-opencv VS2022 project

-VS2022 started.
-"Open a project or solution".
-in Browse to search the "ImageDetector-yolov7-opencv.sln" file, and it open that.
-Build->Build Solution (F7).
Builded in "./x64/Release/ImageDetector-yolov7-opencv.exe".

Running the "ImageDetector-yolov7-opencv.exe" app.

Program arguments:

Examples:

cd ./x64/Release/ImageDetector-yolov7-opencv_image1.bat

Result image:

cd ./x64/Release/ImageDetector-yolov7-opencv_video1.bat

Result video:
YouTube video (click):

YouTube video