GoCV
Go package for computer vision using OpenCV 4 and beyond.
New to Computer Vision, GoCV, or OpenCV?
Take a moment to watch this fantastic talk, “Computer Vision Using Go and OpenCV 3”, by Ron Evans, from GopherCon 2018 – and don’t forget the drone demo!
The “hello, world” of video with GoCV
See: https://gocv.io/writing-code/hello-video/
package main
import (
"gocv.io/x/gocv"
)
func main() {
webcam, _ := gocv.VideoCaptureDevice(0)
window := gocv.NewWindow("Hello")
img := gocv.NewMat()
for {
webcam.Read(&img)
window.IMShow(img)
window.WaitKey(1)
}
}
See face detection, and other examples, at: https://github.com/hybridgroup/gocv#face-detect
New to Go?
Try our new Microsoft Learn (@MicrosoftLearn) module, “Take your first steps with Go” at https://aka.ms/learn-go.
What else can you do with GoCV?
With GoCV and GoBot (gobot.io | github) – a framework for robots, drones, and the Internet of Things (IoT) – you can build autonomous vehicles, like the GopherCar (hybridgroup/gophercar) which was also part of the Hardware Hack Session on GopherCon Community Day in 2018.