-
Notifications
You must be signed in to change notification settings - Fork 133
AeFlickerPeriod not taking effect? #269
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
Comments
Is it common to require anti-flicker when tuning ? or am I missing something else fundamental. With my lightbox, the RPi AGC is targetting an Exposure time of around 4500, while anything other than a mulitple of 10000 causes this oscliating flicker: Screencast.from.02-06-25.17.24.53.webmBut when I try to take tuning captures with:
then the CTT reports macbeth detection errors for each capture:
So it seems I need a multiple of 10000 which is less than 10000 ? ... (or a gain of 0.5?) |
I wouldn't expect it for any form of LED lightbox as the mains supply will have been converted to DC before feeding to the LEDs. Generally it will be fluorescent based light boxes that will have issues as they "strike" every half cycle. |
No LEDs in this lightbox - bulbs and tubes ... |
Filament bulbs shouldn't have an issue as they have enough "thermal inertia" to retain brightness across the half cycles. It's the tubes, and there's very little that can be done to overcome it. You could add a neutral density filter to reduce the image brightness, but that may have some effect on the tuning. |
I'm not aware of any problems with flicker avoidance on the Pi, so far as I know it works but can re-test tomorrow. I don't think we have an automated test for it - evidently I should add one! I've never had to use it for tuning using our lighting cabinet, however, there seem to be no problems with flicker there. I'm not sure a bit of flicker would have a very great effect on our camera tuning tool. (Obviously LSC would be a problem, but hopefully you're not having a problem with those images.) |
I suspect the issue is that in this bright environment, the FlickerPeriod is unachievable because the required ExposureTime is less than the FlickerPeriod ... The flicker is showing up quite prevalent indeed in the LSC - but fixing this to --shutter 20000 is a fine solution for those at least. There were some issues on the CCM with the colour tuning - which is where I headed down this path of avoiding flicker ... I'll try tuning the colours without avoiding flicker again and see how far out I get. |
True, if the exposure time is less than 10ms, not much you can do. As regards LSC, what kind of lamps you using? You certainly need to turn them down or get an ND filter - carefully programming the banding into the LSC tables sounds like a super-bad thing!! |
I've got a white plastic card over the lens pointing up at my lights in the lightbox - as longs as I fix to shutter speed 20k, this seems fine at the moment. It's the colour corrections I want to get right before I submit to you ;-) |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to capture some tuning images for the IMX335 on RPi5 - which shows very visible flicker / horizontal banding unless the exposure is explicitly a multiple of 10000.
Using camshark, I can explicitly disable AeEnable - then set ExposureTime to 10000 and the flicker/banding goes away - but the AE is now disabled, instead of being active - but flicker-free.
I've tried setting AeFlickerPeriod to 10000 and setting AeFlickerMode to 1 - but I do not see a response/change in the ExposureTime, which is still coming out at 4882 instead of a multiple of the AeFlickerPeriod ?
Any known issues around this ? or am I doing something wrong ?
(I'm on top of https://github.com/raspberrypi/libcamera/tree/next)
The text was updated successfully, but these errors were encountered: