Hi, just a couple of quick comments here.
First of all, setting "picam2.camera_controls" does not do anything at all. The "camera_controls" is just a translation of internal libcamera data structures into a Python dictionary. Nor does setting, for example, "picam2.shutter_speed".
The recommended way is to use a dictionary of controls, as you did when you passed them into the "create configuration" method. Once the camera is configured, you can also pass these to "picam2.set_controls". Checking out examples is obviously always a good idea, perhaps search for ones that contain "set_controls".
Once you've made a capture, and have set controls values, the first line of trouble-shooting is probably to check the associated metadata (for example, use "picam2.capture_metadata()"), to see what the camera system thinks it is doing. If exposures and gains aren't what you think you've set, then obviously something is wrong. Remember that setting controls after the camera has been started can take "several frames" to take effect.
Finally, I can't really comment about that OV5647 module that you're using. This is the sensor in our v1 camera and is therefore much the oldest. The good news is that there are lots of clone modules about that are mostly compatible and work, though I wouldn't like to promise it's the best choice for low light imaging. Do you have any others you could try?
First of all, setting "picam2.camera_controls" does not do anything at all. The "camera_controls" is just a translation of internal libcamera data structures into a Python dictionary. Nor does setting, for example, "picam2.shutter_speed".
The recommended way is to use a dictionary of controls, as you did when you passed them into the "create configuration" method. Once the camera is configured, you can also pass these to "picam2.set_controls". Checking out examples is obviously always a good idea, perhaps search for ones that contain "set_controls".
Once you've made a capture, and have set controls values, the first line of trouble-shooting is probably to check the associated metadata (for example, use "picam2.capture_metadata()"), to see what the camera system thinks it is doing. If exposures and gains aren't what you think you've set, then obviously something is wrong. Remember that setting controls after the camera has been started can take "several frames" to take effect.
Finally, I can't really comment about that OV5647 module that you're using. This is the sensor in our v1 camera and is therefore much the oldest. The good news is that there are lots of clone modules about that are mostly compatible and work, though I wouldn't like to promise it's the best choice for low light imaging. Do you have any others you could try?
Statistics: Posted by therealdavidp — Thu Jan 16, 2025 7:04 am