An interactive UI to undertake perspective/homography transformations
First install all the libraries required for the code: pip install -r requirements.txt
The code can then be run with: python Calibrate_homography.py
Stages in the ui that needs to be followed after running the script:
-
Upload video Upload any video ny clicking the upload button.
-
Mark the points in the frame Left click to add a point, and Ctrl+Left click to remove the nearest marked points from the frame
-
Giving clibration scale Give the height and width scale of the rectangles as integers and press the calibrate button after it.
-
After the matlabplot's window is opened, any of the three buttons can be pressed to revisit and any of the three windows. The .npz will be save in the same directory of the code on clicking the Save button.