带开始手电筒的Python Opencv2相机,停止手电筒,单击图片,开始录制视频,停止视频录制按钮 [英] Python Opencv2 Camera with Start Flashlight, Stop Flashlight, Click Picture, Start Video Recording, Stop Video Recording buttons

查看:172
本文介绍了带开始手电筒的Python Opencv2相机,停止手电筒,单击图片,开始录制视频,停止视频录制按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用PyQT和OpenCV2构建相机应用程序。到目前为止,我成功地制作了点击图片,开始录制,停止录制的按钮。
但是,管理Flash开/关仍然遥不可及。
任何帮助将不胜感激。谢谢。

I am trying to build a camera application with PyQT and OpenCV2. So far I am successful in making buttons to click picture, start recording, stop recording. However managing the Flash on/off is still out of reach. Any help will be appreciated. Thanks.

OS:Ubuntu
语言:Python

OS : Ubuntu Language : Python

推荐答案

您用点击图片,开始录制,停止录制默认的相机拍摄行为进行描述。这些按钮适用于使用opencv(/ pyqt)的大多数凸轮,但超出了SDK制造商的特定范围。

You describe with "click picture, start recording, stop recording" default imaging behavior of cameras. Those buttons work on most cams using opencv (/pyqt) but beyond is SDK manufacturer specific.

如果您无法用相机发布产品名称来解决这个问题,请键入,版本问题。

If you can't figure it out with your camera post product name, type, version into your question.

例如...... FLIR有大量带有python包装器的SDK库这里。通过Flea2 cam的一个粗略的例子是这里 。如果已安装,您可以使用一些示例脚本测试基础知识。如果你挖得足够深,你会点击诺基亚相关的图像库...为手机上的摄像头写的...怀旧< 3

For example... FLIR has a vast amount of SDK libraries with python wrappers here. A crude example via Flea2 cam is here. If installed you can test the basics with some example scripts. And if you dig deep enough you'll hit "Nokia" related image libraries... written for cams on phones... Nostalgia <3

因此,作为 karlphilip 在他的帖子中提到......图书馆被指纹识别来自相机制造商的一系列相机,可能不适合其他制造商的凸轮。但是..当您从多个制造商导入lib时,您可以将它组合在您的python脚本中..显然。

Hence, as karlphilip mentioned in his post... the libraries are fingerprinted towards series of cameras from a camera manufacturer and are likely not fitted for cams from other manufacturers. But.. when you import lib from more than one manufacturer you can combine it in your python scripts.. obviously.

这篇关于带开始手电筒的Python Opencv2相机,停止手电筒,单击图片,开始录制视频,停止视频录制按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆