Skip to content

New AWB algorithm breaks custom lens shading #1198

@jtc42

Description

@jtc42

This was briefly mentioned in this comment, but the new AWB algorithm described here breaks custom lens-shading tables in the Pi camera.

Examples

This comment describes raspistill hanging when built with a custom lens-shading table.

More relevant to me personally, the lens-shading implementation in rwb27/picamera is broken in a similar way.

The module will work fine until you write any data to the lens-shading table. After that, all captures will hang until timeout.

This is immediately seen when, for example, running this auto-calibration routine for lens shading, using that picamera fork

Workaround

As a workaround, you can switch back to the old AWB version by running sudo vcdbg set awb_mode 0. This comment describes creating a service to run the command on boot, which may be useful.

Ideal outcomes

My understanding is that the new AWB algorithm is part of the closed-source bit of the firmware? Any guidance on how to update custom lens-shading implementations to work with the new algorithm would be ideal.

In the meantime, do you have any information on if vcdbg set awb_mode will be sticking around, at least for the foreseeable future? Custom lens-shading is absolutely mission critical to the project I'm working with, so removal of this option would be extremely challenging for us.

If we know it'll stick around as an option, it'd save us a huge headache.

Many thanks! Please let me know if I can provide any more information, or if any particular logs would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions