Can OPENCV access a analog camera using a video capture device

筅森魡賤 提交于 2019-12-24 06:55:27

问题


I have been trying to access my analog camera via a EasyCap video capture device. Any code I try only picks the usb webcam or internal webcam. I guess that since video capture device is a video controller, opencv doesnt recognize it as a imaging device.

Can anyone conform if you cannot access analog cameras with opencv via a video capture device.

If so, then what other method can be used.


回答1:


i struggled with the same problem (in my case within python instead of C++, although I am certain it will be the same root cause) and hope it helps!

the original thread + ANSWER

also relevant XKCD




回答2:


Even for digital devices, OpenCV isn't good at reading them, it is good at processing them. The library has supply for generic webcams, of course; however it does not supply most of the commercial or industrial cameras.

In short, to decode, you should try using "video for linux" or "video for windows" libraries; or the device SDK itself. Since you are using a video2usb converter, you shouldn't have any problem accessing the analog camera through these software.



来源:https://stackoverflow.com/questions/21833297/can-opencv-access-a-analog-camera-using-a-video-capture-device

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