I used opencv camera support to capture images in Qt, since Qt5.2 now has QCamera and QCameraImageCapture, I am porting it with great code simplification.
But the captured image is too dark, and the frame opened by QCameraViewfinder has the correct brightness. Alas, QWidget :: grab () does not work in QCameraViewfinder.
Also, the camera demo code behaves the same way (the “Exposure Compensation” change does not affect the captured image).
Any hint of this problem? I am working on 64 bit Ubuntu with a USB webcam.
source
share