Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
366 views
in Technique[技术] by (71.8m points)

image - Python Opencv2 Camera with Start Flashlight, Stop Flashlight, Click Picture, Start Video Recording, Stop Video Recording buttons

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 Language : Python

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...