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

Camera out of focus #78

Open
wsh32 opened this issue Nov 16, 2021 · 2 comments
Open

Camera out of focus #78

wsh32 opened this issue Nov 16, 2021 · 2 comments
Assignees
Labels
bug Something isn't working software

Comments

@wsh32
Copy link
Owner

wsh32 commented Nov 16, 2021

Camera autofocus isn't reliable, it consistently blurs the entire image. While this is mostly okay, it harms performance when the puck is in motion.

The table is far away enough that we can set it to the infinite focus setting (0) as seen here: https://stackoverflow.com/questions/16319759/disable-webcams-autofocus-in-linux

@wsh32 wsh32 self-assigned this Nov 16, 2021
@wsh32 wsh32 added bug Something isn't working software labels Nov 16, 2021
@wsh32 wsh32 added this to the Sprint 2 milestone Nov 16, 2021
@wsh32
Copy link
Owner Author

wsh32 commented Nov 16, 2021

Setting it using v4l2-ctl works, though we should use the cv2.CAP_PROP settings

@wsh32 wsh32 modified the milestones: Sprint 2, Nov 19 Nov 18, 2021
@wsh32
Copy link
Owner Author

wsh32 commented Dec 11, 2021

v4l2-ctl --set-ctrl=focus_auto=0
v4l2-ctl --set-ctrl=focus_absolute=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working software
Projects
None yet
Development

No branches or pull requests

1 participant