ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    White Balance

    Image Sensors
    2
    3
    108
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gitcoder
      last edited by

      I have a Starling 2 with an IMX412 Hi-Res sensor on it. Is there a way that I can set a fixed white balance for the sensor?

      I can't seem to find any documentation anywhere that mentions white balance.

      Thanks!

      Alex KushleyevA 1 Reply Last reply Reply Quote 0
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team @gitcoder
        last edited by Alex Kushleyev

        Hi @gitcoder ,

        Good question...

        You can lock the AWB (Auto White Balance) to a specific scenario / color temperature using the following options:

        https://android.googlesource.com/platform/system/media/+/master/camera/include/system/camera_metadata_tags.h#696

        You need to replace AUTO to the desired color temperature:
        https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/blob/master/src/hal3_camera_mgr.cpp#L530

        uint8_t awbMode           =  ANDROID_CONTROL_AWB_MODE_AUTO;
        

        (will consider to add this as an option to camera server)

        I have not tested this in a while but i am pretty sure it works. Please let me know if it does not work. Is this sufficient for you or you want to fine tune each R, G, B channel and have those values fixed?

        Alex

        G 1 Reply Last reply Reply Quote 0
        • G
          gitcoder @Alex Kushleyev
          last edited by

          @Alex-Kushleyev Thanks for getting back to me. For what I am working on setting a fixed whitebalance seems like it would work, but I would at least find it useful if the white balance were tune-able. For my application I'm using the Modal drone for supervising Gaussian Splat training with an image stream, and color consistency across frames is important for good reconstruction otherwise I'll have to do color correction in the map which is a pain. Not sure if a lot of other people are using the HiRes for scene reconstructions so maybe its not universally useful though!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors