Android Question Set Focus camera

dquy05

Member
Hi All !

I need to set focus camera by manual, same zoom type : set_focus (value as float)
If not, I need to know, when is camEx.SetContinuousAutoFocus finish (in autofocus mode)

Many thanks !
 

dquy05

Member
1. See how CamEx.FocusAndTakePicture is implemented.

2. You can set the zoom with the Zoom property.

Thanks Mr.Erel !
1. CamEx.FocusAndTakePicture, I tried it but not effective
2. Zoom property is worked but not focus

I tried this code, but result f(0), f(1), f(2) = infinity, I don't know why? Can you help me?
B4X:
    Dim f() As Float
    f = camEx.GetFocusDistances
    Label12.Text = f(0)&":"&f(1)&":"&f(2)

Many thanks !
 
Upvote 0

dquy05

Member
What does it mean? What happened?

What is the output log(f(0)&":"&f(1)&":"&f(2)) ?

About CamEx.FocusAndTakePicture, It take even when the focus isn't done well

I need to read f(0), f(1),f(2) to know when autofocus is finish, but it return rusult = infinity (because, in my case, the distance from the len to the object is always constant)

Many thanks !
 
Upvote 0
Top