Skip to content

Commit

Permalink
more coherent version testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinfreeman committed Jul 31, 2024
1 parent 824feb1 commit 218cf76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VideoStabilization/video_stabilization.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def fixBorder(frame):
curr_pts = curr_pts[idx]

#Find transformation matrix
if float((cv2.__version__)[0:3])<=3.0:
if int((cv2.__version__).split('.')[0]) <= 3:
m = cv2.estimateRigidTransform(prev_pts, curr_pts, fullAffine=False) #will only work with OpenCV-3 or less

else:
Expand Down

0 comments on commit 218cf76

Please sign in to comment.