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

"LensPosition" property could not be read properly #6

Open
hunkus opened this issue Nov 19, 2022 · 0 comments
Open

"LensPosition" property could not be read properly #6

hunkus opened this issue Nov 19, 2022 · 0 comments

Comments

@hunkus
Copy link

hunkus commented Nov 19, 2022

If the property is read through this after auto focus or manual focus adjustment,
the following is always displayed.

1. Auto-focus

picam2.set_controls({"AfMode": 1 ,"AfTrigger": 0})
pos_vals = picam2.camera_controls["LensPosition"]
print(pos_vals)

(0.0, 1000.0, 100.0)

2. Manual-focus

picam2.set_controls({"AfMode": 0, "LensPosition": 0.0})
pos_vals = picam2.camera_controls["LensPosition"]
print(pos_vals)

(0.0, 1000.0, 100.0)

Version Infos
pi@raspberrypi:~/picamera2/apps $ dpkg -l | grep libcamera
ii libcamera-apps 0.0.10 arm64 libcamera-apps
ii libcamera-dev 0.0.10 arm64 libcamera

picamera2 0.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant