I am working on a project where I built a drone, with a Navio 2 and RPi3B+, and now I want to be able to control it based on inputs from an object detection program.
I wrote the program in Python using the dll module from open cv - the idea is that if there is a detection in the frame captured by the picamera, in real-time, I want the drone to be aware of that detection and just disarm.
This is of no use but it's just a milestone in my project. Briefly, see an object and disarm.
I can't really picture how I could get the drone to do this. I'm aware of pymavlink, should I use that? Please give me some advice guys.