Tim M 57b5cefde5 Updated all `.md` files to contain newest image 2 gadi atpakaļ
..
models 4c3ddd1458 replaced buggy yolov5s.onnx model 2 gadi atpakaļ
CMakeLists.txt 87c98a80ed There is sunshine after 10 days. Added YOLOv5 code 2 gadi atpakaļ
Convert_PyTorch_models.ipynb 4c3ddd1458 replaced buggy yolov5s.onnx model 2 gadi atpakaļ
README.md 57b5cefde5 Updated all `.md` files to contain newest image 2 gadi atpakaļ
coco.names 87c98a80ed There is sunshine after 10 days. Added YOLOv5 code 2 gadi atpakaļ
requirements.txt 032a295919 Adding requirements.txt 2 gadi atpakaļ
sample.jpg 87c98a80ed There is sunshine after 10 days. Added YOLOv5 code 2 gadi atpakaļ
yolov5.cpp 87c98a80ed There is sunshine after 10 days. Added YOLOv5 code 2 gadi atpakaļ
yolov5.py 87c98a80ed There is sunshine after 10 days. Added YOLOv5 code 2 gadi atpakaļ

README.md

Object Detection using YOLOv5 and OpenCV DNN (C++/Python)

This repository contains the code for Object Detection using YOLOv5 and OpenCV DNN in C++ and Python blogpost.

Introduction to YOLOv5 with OpenCV DNN

Install Dependancies

download

pip install -r requirements.txt

List of tutorials for installing OpenCV for C++ here.

Execution

Python

python yolov5.py

CMake C++ Linux

```C++ Linux mkdir build cd build cmake .. cmake --build . ./main

### CMake C++ Windows
```C++ Windows
rmdir /s /q build
cmake -S . -B build
cmake --build build --config Release
.\build\Release\main.exe

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.