简体   繁体   English

OPENCV是否可以使用视频捕获设备访问模拟摄像机

[英]Can OPENCV access a analog camera using a video capture device

I have been trying to access my analog camera via a EasyCap video capture device. 我一直在尝试通过EasyCap视频捕获设备访问模拟摄像机。 Any code I try only picks the usb webcam or internal webcam. 我尝试的任何代码都只能选择USB网络摄像头或内部网络摄像头。 I guess that since video capture device is a video controller, opencv doesnt recognize it as a imaging device. 我猜因为视频捕获设备是视频控制器,因此opencv不会将其识别为成像设备。

Can anyone conform if you cannot access analog cameras with opencv via a video capture device. 如果您无法通过视频捕获设备使用opencv访问模拟摄像机,谁能遵守。

If so, then what other method can be used. 如果是这样,那么可以使用其他什么方法。

Even for digital devices, OpenCV isn't good at reading them, it is good at processing them. 即使对于数字设备,OpenCV也不擅长读取它们,而是擅长处理它们。 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; 简而言之,要解码,您应该尝试使用“ Linux视频”“ Windows视频”库; or the device SDK itself. 设备SDK本身。 Since you are using a video2usb converter, you shouldn't have any problem accessing the analog camera through these software. 由于您使用的是video2usb转换器,因此通过这些软件访问模拟摄像机不会有任何问题。

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! 我在同一个问题上苦苦挣扎(在我的情况下是在python而不是C ++中,尽管我确定这将是相同的根本原因),希望它能对您有所帮助!

the original thread + ANSWER 原始线程+ ANSWER

also relevant XKCD 相关的XKCD

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM