View Single Post
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#58
Originally Posted by lardman View Post
Interesting. I'd be tempted to set a timer so that the autofocus is only started again once the previous one has returned something (though I'll have to check the api to see if it returns an "I've timed out" message).
With "returned something" do you mean that the autofocus has returned with a callback? If so, it does already wait for that before calling the autofocus. The refocus checks a flag which is called "focusing" which is set to false whenever the autofocus returns with a state (failed, success, etc.). The state is what you see in the output when running mbarcode.

I think we should test to see if it helps to wait for the decoders to finish decoding the previous image as well (if that is possible in a smart way, given that there are two decoders).
 

The Following User Says Thank You to dragly For This Useful Post: