Drone computer vision project (need help)

Thanks for your insight. I’ve been doing some research on the cameras and it seems that most gimbal cameras are connected directly to the flight controller. Is there any way to bypass this and instead connect the camera to the companion computer? I want to use the companion computer to control the camera gimbal, but I’m not sure if that’s possible.

Update: I found this thread by Jaeyoung Lim (On realtime control of gimbal from companion computer - #8 by ernsten) that uses MAVROS to control a camera gimbal through what I assume to be a companion computer (didn’t fully comprehend). I’ll try to dig deeper into this to see if it’ll be possible using this. Credit to him.

Update: also found this Ardupilot thread Control a Gimbal / Camera Mount — Dev documentation

Although I found a way to control the gimbal through MAVLINK, I still don’t know how to get the video feed from the camera to the companion computer in order to run object recognition software. Does anyone know how to do this?