We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66b605 commit 3971cb3Copy full SHA for 3971cb3
VideoStabilization/video_stabilization.py
@@ -91,7 +91,7 @@ def fixBorder(frame):
91
curr_pts = curr_pts[idx]
92
93
#Find transformation matrix
94
- if float((cv2.__version__)[0:3])<=3.0:
+ if int((cv2.__version__).split('.')[0]) <= 3:
95
m = cv2.estimateRigidTransform(prev_pts, curr_pts, fullAffine=False) #will only work with OpenCV-3 or less
96
97
else:
0 commit comments