Skip to content

Commit 218cf76

Browse files
committed
more coherent version testing
1 parent 824feb1 commit 218cf76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VideoStabilization/video_stabilization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def fixBorder(frame):
9191
curr_pts = curr_pts[idx]
9292

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

9797
else:

0 commit comments

Comments
 (0)