Pixhawk Python Connection

I have an underwater ROV project that will recognize chamber and will pass through it autonomously without touching using OpenCV. I will use Pixhawk PX4 2.4.8. I have read all the documentation but still didn’t understand. I want to use Pixhawk’s functions like stabilization, depth hold etc. But also will do image processing with OpenCV. How can I synchronize my python or C++ code with Pixhawk module and make it send pwm to motors or get and send data from Pixhawk? I will use Raspberry Pi to do image processing and will connect Pixhawk to it.

Hello @Supervisor,

Check our docs on Pymavlink and OpenCV