C# Emgu 이력서 오픈 카메라
C# Emgu cv オープンカメラ
using Emgu.CV; using System; public class Opencv_Camera { public VideoCapture videoCapture; private Mat _frame; public Opencv_Camera() { // irisLandmarker = new IrisLandmark(); videoCapture = new VideoCapture(0); videoCapture.ImageGrabbed += VideoCapture_ImageGrabbed; _frame = new Mat(); } public delegate void Get_frmae(Mat frame); public event Get_frmae get_frame = null; private void VideoCapture_ImageGrabbed(object? sender, EventArgs e) { videoCapture.Retrieve(_frame, 0); if(get_frame!=null) get_frame(_frame); } public void start() { videoCapture.Start(); } public void stop() { videoCapture.Stop(); } }
沒有留言:
張貼留言