Skip to content

Commit

Permalink
Update cam_optical_flow_sparse.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuo2000 authored Sep 16, 2022
1 parent baea75d commit 5c0af50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions copter/cam_optical_flow_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
cap = cv2.VideoCapture(vid)

# Parameters for Shi-Tomasi corner detection
feature_params = dict(maxCorners = 300, qualityLevel = 0.2, minDistance = 2, blockSize = 7)
#feature_params = dict(maxCorners = 100, qualityLevel = 0.3, minDistance = 7, blockSize = 7)
#feature_params = dict(maxCorners = 300, qualityLevel = 0.2, minDistance = 2, blockSize = 7)
feature_params = dict(maxCorners = 100, qualityLevel = 0.3, minDistance = 7, blockSize = 7)
# Parameters for Lucas-Kanade optical flow
lk_params = dict(winSize = (15,15), maxLevel = 2, criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03))

Expand Down

0 comments on commit 5c0af50

Please sign in to comment.