Python script to measure deviation from window center to object center and angle
OpenCV4
Python3
Numpy
Scipy
-
Measure angle and deviation of image from center : python center_align.py --image path_to_image
-
Measure angle and deviation in video and returned aligned object frame based on allowed threshold :
python realtime_align.py --video path_to_video --angle angle_threshold --deviation deviation_threshold