New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black image when exposure mode set to "off" #182
Comments
As far as I know it's impossible to fix the analog and digital gains on the camera. I'd guess that ISO is meant to fix them to some degree, but I'm not sure what that actually entails in practice (the details of that are down in the firmware). Setting |
I did some tests. No way to fix analog and/or digital gain via ISO, awb_mode and awb_gain. Moreover, if I fix exposure_mode to off, then it doesn't work at all (black image). Maybe it's linked to my other parameters (continuous mode and "yuv" format. For information, in that case, Digital_Gain is at 0. Is it a bug or a non correct parameter combination ? |
I think this is related to #171. Specifically you need to set framerate and shutter_speed then leave a little delay (like a second or two) before setting exposure mode to off. I'm not sure exactly why this is but I suspect it's something to do with the gains not being set correctly in the firmware otherwise (when the display is black under these circumstances analog gain seems fine, but digital has dropped to 0 - this may have something do with setting framerate having to reset the camera). In other words, this will cause the black frame behaviour: import time
import picamera
with picamera.PiCamera() as camera:
camera.resolution = (640, 480)
camera.start_preview()
camera.awb_mode = 'off'
camera.awb_gains = (1.8, 1.5)
camera.exposure_mode = 'off'
camera.framerate = 24
camera.shutter_speed = 30000
time.sleep(20) But this script won't: import time
import picamera
with picamera.PiCamera() as camera:
camera.resolution = (640, 480)
camera.framerate = 24
time.sleep(1)
camera.start_preview()
camera.awb_mode = 'off'
camera.awb_gains = (1.8, 1.5)
camera.shutter_speed = 30000
camera.exposure_mode = 'off'
time.sleep(20) I should add a warning to the |
Hello, First of all, thank you for your support. I really appreciate. I work a bit following your suggestion. That doesn't work perfectly, but there are some improvement :
So, my situation is that I can continue my project developpement like that, even if that's not optimal. Regards, ----- Mail original ----- I think this is related to #171 . Specifically you need to set framerate and shutter_speed then leave a little delay (like a second or two) before setting exposure mode to off. I'm not sure exactly why this is but I suspect it's something to do with the gains not being set correctly in the firmware otherwise (when the display is black under these circumstances analog gain seems fine, but digital has dropped to 0 - this may have something do with setting framerate having to reset the camera). In other words, this will cause the black frame behaviour: But this script won't: I should add a warning to the exposure_mode docs about this, but that's about all I can do for now. — |
dear everybody we recently had our second solar balloon flight to the stratosphere. unfortunately the camera did't work as planed and tested for the second time. we used the following code and got all black photos and videos during the eight hours flight - and sometimes also black files during the filling up/pre flight preparations. is there a possibility that the camera switches to a different mode when exposed to bright sunlight and snow? here is an overview of the disaster: any suggestions or similar experience? any help highly appreciated! greetings from grey zurich import picamera count = 0 camera.resolution = (2592, 1944) camera.resolution = (1920, 1080) |
Answered comment above in #266 (please don't double post - I get notifications about everything both comments and new issues) |
sorry. i was confused after posting as his page says "closed" in the top left part. won't happen again! |
I was having the exact same issue; added a |
Hi use following "capture_continuous" command with 'yuv' format.
In that case, which of following parameters are active and how they change the result :
I try many combinations, but it seems I get always same result...
Actually, I just need to fix all aquisition parameters, but I didn't succeded
For example, I spcecify:
self.__Camera.iso = 800
self.__Camera.awb_mode = 'off'
self.__Camera.exposure_compensation = 0
self.__Camera.awb_gains = 1, 1
I though it should fix everything, but I can see that analog gain and digital gain change with light quantity.
The text was updated successfully, but these errors were encountered: