Control Camera Device From C#

2019-02-10 06:21发布

问题:

I am now facing one problem which to get the live image from Camera (eg. Sony, Canon) into winform and also control the camera capture button from a button in the form.

have Anyone build something like this, or are there any similar project like this which is done in C#?

回答1:

This hardly depends on the capabilities of the camera and its driver. Your biggest chance might be the Windows Image Acquisition (WIA) framework.

Take a look at this article or the MSDN reference.



回答2:

Emgu cv is a project that provides all the bindings for OpenCV. I've used it on both Windows and Linux platforms (Mono) with great success.

http://emgu.com/ http://emgu.com/wiki/index.php/Camera_Capture_in_7_lines_of_code



回答3:

You can also take a look on Intel OpenCV. It's C++, but you can use use PInvoke to use it from c#



回答4:

This project supports even high-end PTZ camera. Code Project - Versatile WebCam C# library.

It uses Touchless.Vision and WebCamLib