opencvsharpnetcore5showcamera
using OpenCvSharp; | |
var capture = new VideoCapture(0); | |
var window = new Window("El Bruno - OpenCVSharp demo"); | |
var image = new Mat(); | |
while (true) | |
{ | |
capture.Read(image); | |
if (image.Empty()) | |
break; | |
window.ShowImage(image); | |
if (Cv2.WaitKey(1) == 113) // Q | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment