Some questions about auto focus camera on Jetson Nano
Published by Margarito Lehmann on
New Home › Forums › 2. NVIDIA Jetson Cameras › 8MP IMX219 on Jetson Nano › Some questions about auto focus camera on Jetson Nano
- This topic has 9 replies, 3 voices, and was last updated 6 months, 3 weeks ago by
wong.
- AuthorPosts
- May 26, 2020 at 2:20 am #23083
Margarito Lehmann
ParticipantThe 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
cydu
Participant - May 26, 2020 at 8:38 pm #23120
wong
ModeratorHi @Margarito Lehmann ,
1. We are a recently updated repository and added a manual focus example, you can check it.
2. At present, we do not provide GUI examples, more advanced usage requires you to implement it yourself.
- This reply was modified 7 months, 3 weeks ago by
wong.
- This reply was modified 7 months, 3 weeks ago by
- May 27, 2020 at 10:40 am #23157
cydu
ParticipantHi Wong:
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?
Thanks.
- May 27, 2020 at 5:59 pm #23170
- May 28, 2020 at 9:09 am #23203
cydu
ParticipantHi @ 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
cydu
ParticipantI 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
cydu
ParticipantHi, Wong:
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
- AuthorPosts
- You must be logged in to reply to this topic.