Some questions about auto focus camera on Jetson Nano
Published by Margarito Lehmann on
- May 26, 2020 at 2:20 am #23083Margarito LehmannParticipant
The first question:
I received my first IMX219-auto focus camera for Jetson Nano a few days ago. But i don’t know how to operate the auto focus function. I tried this command: $ DISPLAY=:0.0 gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM), width=3280, height=2464, format=(string)NV12, framerate=(fraction)20/1’ ! nvoverlaysink -e But it cannot perform the focus by using the up-down arrow keys. I also tried the sample code downloaded from your website, but also cannot do manual focus. How can i do
The second question:
I want to: 1. press a button on GUI to perform auto focus; 2. use arrow keys (or other keys) to perform manual focus, as it do in your demo
- May 26, 2020 at 7:47 am #23091
- May 26, 2020 at 8:38 pm #23120
- May 27, 2020 at 10:40 am #23157
Thank you for adding the manual focus test code to your repository. I tried your examples, but there some error, as shown below:
File “/home/amtd/JN_Camera_Test/JetsonCamera.py”, line 10, in <module>
from Queue import Queue
ModuleNotFoundError: No module named ‘Queue’.
So can not run.
Where can I find or install the Queue module?
- May 27, 2020 at 5:59 pm #23170
- May 28, 2020 at 9:09 am #23203
Hi @ Wong:
I tested the manual focus function. Now it works. Thank you very much for your codes.
In the meantime, I also tested the auto-focus code. It is found that the camera stops at focus_distance = ~500 (at this position, the image is very blurred), but actually the focus_distance is 380 (at this position, the image is most clear). Can you please retest your code?
- May 28, 2020 at 9:25 am #23204
I saw a very clear image (it should be the position of focus_distance=380) during the auto focus processing, but the camera stopped at wrong position, capturing blurred image.
- May 28, 2020 at 6:09 pm #23226
- June 28, 2020 at 11:41 pm #24640
Thanks to your Focuser.py, I can do manual focus for camera 1 of JN-B01. Now I need to do the same for camera 2 of JN-B01. I found the address setting of camera 1 is: CHIP_I2C_ADDR = 0x0C. What’s it for camera 2? Or what i need do in order to conduct manual focus for camera 2?
Thank you in advance.
- June 29, 2020 at 11:15 pm #24683
- You must be logged in to reply to this topic.