Industrial vision camera with Python [closed]

若如初见. 提交于 2019-12-04 18:35:40

问题


Is there any industrial computer vision camera that comes with a Python interface, or that has a well developed third-party solution?

I have been doing some work using webcams, which are easily accessible through for example OpenCV. However, now I need a camera which is more robust and flexible. I need to be able to set certain parameters such as exposure and gain. As far as possible I want to avoid developing in other languages than Python, since Python is what I know best.

I have seen plugins such as pyueye for uEye cameras, which seems fine, except that this does not work well in Windows.


回答1:


Not sure why this has been voted down. Anyway, I'm one of the core simplecv (http://simplecv.org) developers and use Industrial Cameras everyday. We have integrated support for Allied Vision Cameras, and XIMEA cameras.

If you have the drivers installed it's literally as easy as:

cam = AVTCamera()
cam = Camera('ximea')

As for the XIMEA cameras you need to install the XIMEA camera driver that comes with the software, then build OpenCV with the flag

cmake -DWITH_XIMEA=ON ..

As for Allied Vision, you just need to install the driver and everything should work.

I've tested both USB and CURRERA model of XIMEA's camera and they work. I've also tested on Allied Manta but should work with all their models in theory. It's also using the allied legacy driver. At the time they have recently recently VIMBA which is their new driver, I emailed them as of last week asking when 1.1 is expected as it will include linux support but they said not for a few months. Once they do I will make sure SimpleCV is compatible.

I have not tested on windows either (linux only), but in theory should work on windows as long as drivers are installed.



来源:https://stackoverflow.com/questions/15231832/industrial-vision-camera-with-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!