A
A
Alexey2014-08-11 11:42:33
Video processing
Alexey, 2014-08-11 11:42:33

How to programmatically call the WEB camera settings dialog?

Windows has a standard webcam settings dialog. Ab0Ba7NAvNJJYdFqmy7wDUWwczTbHxf0zRpuCq-4Here 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

2 answer(s)
A
Artem Voronov, 2014-08-11
@newross

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);

C
CopterSpace, 2020-05-04
@CopterSpace

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 question

Ask a Question

731 491 924 answers to any question