Arduino + Opencv

Hi; What is the best solution for interfacing Arduino with a program developed with C++ and opencv libraries (shape recognition) to control servo . thank you

The C++ application can write to the serial port. The Arduino can read from the serial port. You get to define what to send to the serial port, and how to react to a given string of bytes on the Arduino side.

thank you, if it not bother you, write a little code in c + +, and in Arduino, I need to use firmata??

No, you don't need to use Firmata.

What should I use then??

thank you

What should I use then??

Basic C/C++ programming skills.