Odrai
Odrai

Reputation: 2353

OpenCV camera properties dialog

A few weeks ago I saw on the internet that you could display a small dialog/ menu with a few properties of the camera. In this menu the user can change the contrast, brightness...but I can not find it anymore. Does somebody know the code to get this dialog?

Thank you in advance!

Upvotes: 1

Views: 5565

Answers (2)

Nima
Nima

Reputation: 479

Set the property CV_CAP_PROP_SETTINGS with any value.

cv::VideoCapture cap(0); 
cap.set(CV_CAP_PROP_SETTINGS, 0); //opens camera properties dialog

Upvotes: 12

Alexey
Alexey

Reputation: 5978

OpenCV doesn't offer this functionality. Different camera manufacturers have different API's for accessing and changing camera parameters. There is no standard way to do this. So, you can try to access your camera settings using its API and then you can write your own GUI dialog window (for example, using QT library) to view/change the parameters.

Upvotes: 0

Related Questions