Control Camera Device From C#

2019-02-10 05:46发布

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#?

4条回答
霸刀☆藐视天下
2楼-- · 2019-02-10 06:13

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

查看更多
冷血范
3楼-- · 2019-02-10 06:21

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

查看更多
闹够了就滚
4楼-- · 2019-02-10 06:24

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.

查看更多
等我变得足够好
5楼-- · 2019-02-10 06:28

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

It uses Touchless.Vision and WebCamLib

查看更多
登录 后发表回答