Real Time Image processing timing problem

a1604:
Sorry if my english is bad I hope I'm clear.

Your English is fine but it sounds like a complicated system and it is unclear exactly how you intend it to work.

I assume you're asking about the Arduino part of your solution. Can you describe what the Arduino does currently (in terms of the sequence of inputs it receives and actions it takes) and then describe what you want it to do in the same terms?