I am trying to track a moving insect and the tracking is not the hard part. I am using cv2.minAreaRect and I have tried using the angle of the rectangle as an indicator for the orientation but apparently it does not return the angle in a range of 0-360. See here for more explanation: Not sure about angle returned from minAreaRect.
I've also tried using cv2.contourArea because it can provide information about the orientation of the contours but I don't think it's going to be much of help in deciding which part of the contour is the "head".
I'm not really asking for a solid solution(if you know one, please feel free to share), it's more of a brainstorming conversation on how one would go about determining the orientation of a moving object using information from its contours, minAreaRect angle, etc.
Please feel free to chime in with your suggestions and I will try them out. Thanks you so much in advance!