Skip to content
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

Arducam B332 (OV9281) USB Camera Exposure Settings Not Working #1771

Open
MirrorCY opened this issue Feb 10, 2025 · 6 comments
Open

Arducam B332 (OV9281) USB Camera Exposure Settings Not Working #1771

MirrorCY opened this issue Feb 10, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@MirrorCY
Copy link
Contributor

MirrorCY commented Feb 10, 2025

Describe the bug
The camera exposure options are not functioning correctly. When "Auto Exposure" is clicked and then turned off, the issue is temporarily resolved. However, after performing a "Restart Device," the problem reoccurs. After the restart, the exposure is set to the default value from the first startup (around 20?), rather than the manually set exposure value. The expected behavior is that the manually set exposure value should be retained after power cycling and applied when the device is powered on.

To Reproduce
Steps to reproduce the behavior:

  1. Open the web UI
  2. Set the exposure value (camera does not respond to the set value)
  3. Enable "Auto Exposure" (camera does not automatically adjust exposure)
  4. Disable "Auto Exposure" (camera exposure is correctly set to the manual value)
  5. (Optional) Re-enable "Auto Exposure" (auto exposure works fine)
  6. Go to settings and click "Restart Device"
  7. Wait for the reboot to complete, then check the camera feed — exposure is not correctly set

Screenshots / Videos
https://github.com/user-attachments/assets/2f181051-249a-474b-a459-2127ed04dd58
https://wormhole.app/6YB9lZ#RBCfDVPXCaqYhMnaAN3YZg

Platform:

  • Hardware Platform (ex. Raspberry Pi 4, Windows x64): Orange Pi 5
  • Network Configuration (Connection between the Radio and any devices in between, such as a Network Switch): OM5P and a standard switch
  • PhotonVision Version: v2025.1.1
  • Browser (with Version) (Chrome, Edge, Firefox, etc.): Chrome 133.0.6943.54
  • Camera(s) Used: Arducam B332 (OV9281)

Additional context
logs
photonvision-logs.zip

@MirrorCY MirrorCY added the bug Something isn't working label Feb 10, 2025
@MirrorCY
Copy link
Contributor Author

BTW, the manual exposure range is also not functioning properly. In the latter half of the range, it remains stuck at a maximum exposure value, and only values below a certain threshold seem to take effect

@mcm001
Copy link
Contributor

mcm001 commented Feb 10, 2025

Have you set the Arducam OV9281 quirk in the camera settings tab?

@MirrorCY
Copy link
Contributor Author

Thank you for your quick response. Yes, I have set the Arducam OV9281 quirk in the camera settings tab. You can see the settings in the second video I provided

@MirrorCY
Copy link
Contributor Author

Enabling auto exposure once before applying manual exposure parameters resolves this issue
video

@mcm001
Copy link
Contributor

mcm001 commented Feb 14, 2025

Weird behavior, thanks for reporting. My Arducam here locally doesn't seem to do this? I'll try reproducing it more here.

@MirrorCY
Copy link
Contributor Author

MirrorCY commented Feb 15, 2025

After the restart, the exposure is set to the default value from the first startup (around 20?),

I noticed that after restarting the device, it wasn’t set to the default exposure but instead switched to auto exposure (even though auto exposure was turned off). Maybe you could try looking into this approach for troubleshooting. By the way, have you been able to reproduce this issue on your side?

  1. Turn off auto exposure and set a noticeable manual exposure value
  2. Click restart device
  3. Wait for the reboot to complete and check the camera image

MirrorCY added a commit to frcnextinnovation/photonvision that referenced this issue Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants