How to communicate between px4 and opencv...?


I want to use my opencv application programme to be used in PX4 stack so how can i communicate with PX4 can anybody suggest me because i want to integrate my opencv code along with the PX4.

Your suggestions are appreciated Thanks.


Use Mavlink messages over UDP or UART to communicate between the two processes/devices.

Have a look at the snap_cam repo, which uses OpenCV to compute optical flow and communicates it to the PX4 process via Mavlink.