Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f4f41df7
Commit
f4f41df7
authored
May 22, 2012
by
Alexander Mordvintsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed derivLambda param for LK-tracker
linetype -> lineType
parent
d78aa7c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
common.py
samples/python2/common.py
+2
-2
lk_homography.py
samples/python2/lk_homography.py
+1
-2
lk_track.py
samples/python2/lk_track.py
+1
-2
No files found.
samples/python2/common.py
View file @
f4f41df7
...
...
@@ -56,8 +56,8 @@ def mtx2rvec(R):
return
axis
*
np
.
arctan2
(
s
,
c
)
def
draw_str
(
dst
,
(
x
,
y
),
s
):
cv2
.
putText
(
dst
,
s
,
(
x
+
1
,
y
+
1
),
cv2
.
FONT_HERSHEY_PLAIN
,
1.0
,
(
0
,
0
,
0
),
thickness
=
2
,
line
t
ype
=
cv2
.
CV_AA
)
cv2
.
putText
(
dst
,
s
,
(
x
,
y
),
cv2
.
FONT_HERSHEY_PLAIN
,
1.0
,
(
255
,
255
,
255
),
line
t
ype
=
cv2
.
CV_AA
)
cv2
.
putText
(
dst
,
s
,
(
x
+
1
,
y
+
1
),
cv2
.
FONT_HERSHEY_PLAIN
,
1.0
,
(
0
,
0
,
0
),
thickness
=
2
,
line
T
ype
=
cv2
.
CV_AA
)
cv2
.
putText
(
dst
,
s
,
(
x
,
y
),
cv2
.
FONT_HERSHEY_PLAIN
,
1.0
,
(
255
,
255
,
255
),
line
T
ype
=
cv2
.
CV_AA
)
class
Sketcher
:
def
__init__
(
self
,
windowname
,
dests
,
colors_func
):
...
...
samples/python2/lk_homography.py
View file @
f4f41df7
...
...
@@ -25,8 +25,7 @@ from common import draw_str
lk_params
=
dict
(
winSize
=
(
19
,
19
),
maxLevel
=
2
,
criteria
=
(
cv2
.
TERM_CRITERIA_EPS
|
cv2
.
TERM_CRITERIA_COUNT
,
10
,
0.03
),
derivLambda
=
0.0
)
criteria
=
(
cv2
.
TERM_CRITERIA_EPS
|
cv2
.
TERM_CRITERIA_COUNT
,
10
,
0.03
))
feature_params
=
dict
(
maxCorners
=
1000
,
qualityLevel
=
0.01
,
...
...
samples/python2/lk_track.py
View file @
f4f41df7
...
...
@@ -24,8 +24,7 @@ from time import clock
lk_params
=
dict
(
winSize
=
(
15
,
15
),
maxLevel
=
2
,
criteria
=
(
cv2
.
TERM_CRITERIA_EPS
|
cv2
.
TERM_CRITERIA_COUNT
,
10
,
0.03
),
derivLambda
=
0.0
)
criteria
=
(
cv2
.
TERM_CRITERIA_EPS
|
cv2
.
TERM_CRITERIA_COUNT
,
10
,
0.03
))
feature_params
=
dict
(
maxCorners
=
500
,
qualityLevel
=
0.3
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment