https://github.com/genert/real_time_object_detection_go
Real Time Object Detection with OpenCV, Go, and Yolo v4
https://github.com/genert/real_time_object_detection_go
Last synced: 6 months ago
JSON representation
Real Time Object Detection with OpenCV, Go, and Yolo v4
- Host: GitHub
- URL: https://github.com/genert/real_time_object_detection_go
- Owner: genert
- Created: 2022-06-08T06:59:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:28:28.000Z (over 2 years ago)
- Last Synced: 2024-08-03T01:25:42.770Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 72.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-yolo-object-detection - genert/real_time_object_detection_go
README
# Real Time Object Detection with OpenCV, Go, and Yolo v4
## Install dependencies
### MacOS
```bash
brew install opencv cmake ffmpeg@4
```
### Linux
For installing OpenCV, I suggest to follow https://gocv.io/getting-started/linux/ tutorial; it has build commands for building OpenCV with CUDA support as well.
## Download Yolo model
```bash
cd ./cmd/ml && ./download_data_v4.sh
```
## Run the Go program
```bash
cd ./cmd/ml && go build .
./ml --settings=config.json
```
## Use webcam for object detection
Change "source" in config.json to "webcam". Don't forget to check "device_id" value in "video_capture_device" object.