Hello there!
I’m having a lot of trouble using the build-in VideoCapture(0), because the quality of the images OpenCV produces is a lot worse than raspistill. I’ve also tried using the RaspiCam library (0.1.9)
OpenCV VideoCapture with read() (Only one of several tries, see below):
The raspicam_cv_test from RaspiCam (No parameters):
Raspistill (No parameters, only -o for output):
(Only one embedded media and missing links as this is the limit for new users, sorry. )
I have been using OpenCV 4.2 in C++ on the Raspberry Pi 4. Furthermore, I have already tried several recommended approaches:
- Letting the camera run for several seconds
- Making 5-20 images instead of just 1 (every image had roughly the same quality)
- Changing a few attributes of the Videocapture: CAP_PROP_XI_FRAMERATE, CAP_PROP_FRAME_WIDTH, CAP_PROP_FRAME_HEIGHT, CAP_PROP_AUTO_EXPOSURE.
I would be extremely grateful for any answers, please let me know if additional information would help.