Answer the question
In order to leave comments, you need to log in
How to programmatically call the WEB camera settings dialog?
Windows has a standard webcam settings dialog. Here he is handsome. So here's how to call this miracle programmatically? Where to kick?
Answer the question
In order to leave comments, you need to log in
Kick towards TWAIN.
Well, if you are too lazy to bother, then you can take AForge.NET and call the dialog like this:videoSource.DisplayPropertyPage(this.Handle);
There is an English answer here: https://answers.opencv.org/question/217294/camera-...
The following works in python:
import cv2
import time
cap = cv2.VideoCapture(cv2.CAP_DSHOW)# camera ID + cv2.CAP_DSHOW обязательно
time.sleep(2)
cap.set(cv2.CAP_PROP_SETTINGS, 1);
while True:
flag, img = cap.read()
cv2.imshow('cam',img)
ch = cv2.waitKey(5)
if ch == 27:
break
cap.release()
cv2.destroyAllWindows()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question