Skip to content

Real Time Object Detection with OpenCV, Go, and Yolo v4

Notifications You must be signed in to change notification settings

genert/real_time_object_detection_go

Repository files navigation

Real Time Object Detection with OpenCV, Go, and Yolo v4

Install dependencies

MacOS

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

cd ./cmd/ml && ./download_data_v4.sh

Run the Go program

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.

About

Real Time Object Detection with OpenCV, Go, and Yolo v4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published