I'm writing a python script to identify stuff on the live feed from the drone. I want to know if there is a way to access real-time gimbal angles? I'm using a DJI phantom4. the live feed is accessed using the HDMI out from the flight controller.
Maybe the 4-pin CAN connector on the controller outputs the data you're looking for. Are you using an HDMI capture device so your python script can see the feed? Are you using OpenCV to process the image? Just curious.