Created
November 10, 2020 19:55
-
-
Save elbruno/15afa43258b57e3b4e795fc210ad2a5e to your computer and use it in GitHub Desktop.
opencvsharpnetcore5showcamera
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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