Disabling Autofocus on MC55A0 through EMDK

B Brian Safran 3 years 5 months ago
8 1 0

Is there a way to disable autofocus on the camera of the MC55A0 via the EMDK? Thanks.

Please Register or Login to post a reply

1 Replies

J Juan-Antonio Martinez

I am afraid that EMDK for C (I did not check C#) seems to not support focus management:

Imager Capability IMG_ACQCAP_FOCUSLENGTH is said to behave as "Setting has no effect on the behavior of the hardware. The function returns success. Getting returns the last value set". Note that this is specific for taking pictures (image capture). However, if you meant using the camera as a scanner, int this case yes there is an option: In IMAGER_SPECIFIC structure, field dwFocusMode is as follows:

Focus mode to use. Possible values are: FOCUS_MODE_FIXED (=0) – Fixed focus. FOCUS_MODE_AUTO(=1) – Auto focus I never tried this, but you could try and "combine" Capture and Scanner settings for the camera. Of course it can not be opened simultaneously as capture and as scanner, so first open it as a scanner, disable autofocus, close it, open it as a camera and check if disabling autofocus persisted.

CONTACT
Can’t find what you’re looking for?