Pi AI Cam - Control Loop

Raspberry Pi AI Camera - kaufen bei BerryBase can run YOLO models and returns image feed + metadata stream.

In arducopter, which files would I have to touch / modify in order to build in an object tracking control loop which turns the metadata feed (bounding rectangles) into setpoints / control signals?

I suppose, in principle, this is a relatively simple control loop. So where in the codebase would I start and work my way backwards to success?