Skip to content

Setting CAP_PROP_EXPOSURE on VideoCapture does not change anything #9738

@Arrowana

Description

@Arrowana
System information (version)
  • OpenCV => 3.3.0
  • Operating System / Platform => Windows 10 Enterprise 64 Bit
  • Compiler => using opencv-python
Detailed description

Setting exposure is not working with the python wrapper for opencv, I don't know if this is related to the wrapper.

I tried to set CAP_PROP_AUTO_EXPOSURE as well to disable any auto exposure.

The camera is a HD USB Camera USB8MP02G
http://www.elpcctv.com/8mp-highdefinition-usb-camera-module-usb20-sony-imx179-color-cmos-sensor-75degree-lens-p-223.html

Steps to reproduce

I use this snippet to try to set the exposure to different values

import cv2

cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_AUTO_EXPOSURE, 0)
cap.set(cv2.CAP_PROP_EXPOSURE, -7.0)
print(cap.get(cv2.CAP_PROP_EXPOSURE))
while True:
	ret, frame = cap.read()
	cv2.imshow('test', frame)
	cv2.waitKey(1)

I can't see any difference when changing exposure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions