Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Camera board • Re: Disable auto focus on Camera Module 3 that's used as a usb webcam

$
0
0
Hi, if you built the uvc gadget code yourself, then rebuilding it with this line commented out should do it.

Not touching the lens at all may be undesirable, however, as you have no idea where it will be. So setting it to a fixed position may be preferable. Perhaps try replacing that line by

Code:

src->controls.set(controls::LensPosition, 1.0);
which should set the lens to a focal distance of approximately 1m (units above are dioptres, namely 1.0 / distance-in-metres).

Statistics: Posted by therealdavidp — Mon Mar 03, 2025 9:04 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles