Autofocus issue

  1. Where did you get the camera module(s)?
    Arducam

  2. Model number of the product(s)?
    We have 30 cameras

  3. What hardware/platform were you working on?
    Jetson NX

  4. Instructions you have followed. (link/manual/etc.)
    IMX477 - PTZ Camera - Arducam

  5. Problems you were having?
    The autofocus functionality does not behave in the same manner for all the cameras

  6. The dmesg log from your hardware?

  1. Troubleshooting attempts you’ve made?
    We tried to set different values

  2. What help do you need?
    We are trying to understand the lifecycle of the autofocus/zoom functionality. We have 30 cameras purchased from you and we are trying to run an algorithm (MIPI_Camera/AutoFocus.py at 61a08e05f84840bb15ea1a8601b6645dc45d59f3 · ArduCAM/MIPI_Camera · GitHub) in order to autofocus all of them in the same way.

Testing the algorithm on different cameras result on frames with different focus - even if the person/focus point is the same and the cameras as placed side-by-side.

Could you please help us understand wheter the cameras have a lifecycle and how to set them to the start so we can have the same focus for all cameras?

Many thanks

1 Like

In more detial this is our issue:

Problem: Cannot correctly revert to previous focus value. If we revert to previous focus value the score should be close.

Example:

FIND GLOBAL MAX:

starting with focus value: 2500
focus value: 2500 with score: 7.856877719556736 and patience 0/3
focus value: 2800 with score: 8.076982623923723 and patience 0/3
focus value: 3100 with score: 19.211869433710756 and patience 0/3
focus value: 3400 with score: 33.047953950387694 and patience 0/3
focus value: 3700 with score: 8.211614331417897 and patience 1/3
focus value: 4000 with score: 6.760234132832481 and patience 2/3
focus value: 4300 with score: 5.969294042679352 and patience 3/3

Found global maximum around 3400 focal distance and score 33.047953950387694.

REVERT:
Starting to revert to 3400 with self.focuser.set(Focuser.OPT_FOCUS, 3400)
focus value: 3400 with score: 5.418240074847615

The score at the optimal focus value 3400 is completely different, even though we are setting to the best focus value. They should be similar.