[OpenCV] What is gocv?
GoCV The GoCV package provides Go language bindings for the OpenCV 4 computer vision library. The GoCV package supports the latest releases of Go and OpenCV (v4.0.0) on Linux, macOS, and Windows. We intend to make the Go language a "first-class" client compatible with the latest developments in the OpenCV ecosystem. GoCV also supports Intel OpenVINO . Check out the OpenVINO README for more info on how to use GoCV with the Intel OpenVINO toolkit. How to use Hello, video This example opens a video capture device using device "0", reads frames, and shows the video in a GUI window: package main import ( " gocv.io/x/gocv " ) func main () { webcam , _ := gocv. OpenVideoCapture ( 0 ) window := gocv. NewWindow ( " Hello " ) img := gocv. NewMat () for { webcam. Read (&img) window. IMShow (img) window. WaitKey ( 1 ) } } Face detect This is a more complete example that opens a v...
Comments
Post a Comment