I am accessing the webcam using multiprocessing
module whose GUI has been rendered by Tkinter
.
With reference to the Multiprocessing with PIL, is there a way to get the webcam's specifications like resolution, exposure time, using this module?
I am accessing the webcam using multiprocessing
module whose GUI has been rendered by Tkinter
.
With reference to the Multiprocessing with PIL, is there a way to get the webcam's specifications like resolution, exposure time, using this module?
With reference to the link Display an OpenCV video in tkinter using multiprocessing the Process Function:
p = Process(target=image_capture, args=(queue,))
transfers the command to function image_capture
, which makes an instance of VideoCapture
named vidFile
. This instance can be used to find the camera specifications. Use:
print "Exposure Time " + str(cap.get(cv.CV_CAP_PROP_EXPOSURE))
cap.set(15, -5)
# 15 is used for Exposure time
# and second parameter is the value
# to which you are setting the exposure time
Refer to setting-camera-parameters-in-opencv-python for setting other parameters.