<分区>
我想制作一个程序,为数码摄像机/静态相机(数码单反相机以外的消费类相机)提供联机操作,这样您就可以将相机插入计算机(USB 或其他)并使用它的功能 (拍照、录制视频、缩放、聚焦等)。 目前的目标平台是 Linux。
据我所知,除了少数制造商(佳能、奥林巴斯、尼康)之外,没有一家制造商为其产品提供 SDK,但仅限于他们的 DSLR。
我不是 c++ 的新手,但我没有用它做过很多项目。但是,我是 OpenCV 的新手,我还不知道这个库的功能。 为了测试 opencv 构建和我的配置,我制作了一个简单的应用程序,它只从网络摄像头获取流并将其显示在表单上。 (使用 cvCreateCameraCapture)
这适用于数码相机或摄像机吗?我猜他们必须有一个可用的“网络摄像头模式”,但这并不常见(至少在摄像机中没有)。 火线怎么样或者是否有任何其他支持 HD 的连接器?它们会被 OpenCV 识别吗? 如果可能,我想远离 HDMI 和捕获设备(额外费用)。
So i guess my question is, if anyone had any experience with a project like this: what would be the preferred camera specifications for such usage (what features)? And are there any libraries available to ease my troubles :)
我也在研究 libgphoto2。如果需要的话,我会尝试为相机编写驱动程序,如果可能的话使用 libusb,但老实说我不知道从哪里开始。 嗅探 USB 端口(使用其 native 驱动程序),之后如何处理该信息?
I would be very grateful if someone could shed some light on that subject as well - how to get started, any good books to recommend on writing driver software?
此外,我知道 Linux Kino 提供了类似的功能,因此我可以查看源代码,但它是否仅适用于 IEEE 1394?
One last question, how could I achieve that the camera starts up automatically on computer start up, given that it's connected through USB?
抱歉发了这么长的帖子,
谢谢你,祝你好运!
马特克