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
4e3a6328
Commit
4e3a6328
authored
Feb 04, 2016
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes in calibration and camshift tests
parent
54c07ba0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
test_calibration.py
modules/python/test/test_calibration.py
+1
-1
test_camshift.py
modules/python/test/test_camshift.py
+0
-4
No files found.
modules/python/test/test_calibration.py
View file @
4e3a6328
...
...
@@ -57,7 +57,7 @@ class calibration_test(NewOpenCVTests):
eps
=
0.01
normCamEps
=
10.0
normDistEps
=
0.01
normDistEps
=
0.0
0
1
cameraMatrixTest
=
[[
532.80992189
,
0.
,
342.4952186
],
[
0.
,
532.93346422
,
233.8879292
],
...
...
modules/python/test/test_camshift.py
View file @
4e3a6328
...
...
@@ -49,7 +49,6 @@ class camshift_test(NewOpenCVTests):
def
prepareRender
(
self
):
cv2
.
namedWindow
(
'camshift'
)
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/data/pca_test1.jpg'
))
def
runTracker
(
self
):
...
...
@@ -95,13 +94,10 @@ class camshift_test(NewOpenCVTests):
if
self
.
show_backproj
:
vis
[:]
=
prob
[
...
,
np
.
newaxis
]
cv2
.
rectangle
(
vis
,
(
self
.
track_window
[
0
],
self
.
track_window
[
1
]),
(
self
.
track_window
[
0
]
+
self
.
track_window
[
2
],
self
.
track_window
[
1
]
+
self
.
track_window
[
3
]),
(
0
,
255
,
0
),
2
)
trackingRect
=
np
.
array
(
self
.
track_window
)
trackingRect
[
2
]
+=
trackingRect
[
0
]
trackingRect
[
3
]
+=
trackingRect
[
1
]
print
(
intersectionRate
((
self
.
render
.
getCurrentRect
()),
trackingRect
))
self
.
assertGreater
(
intersectionRate
((
self
.
render
.
getCurrentRect
()),
trackingRect
),
0.5
)
if
framesCounter
>
300
:
...
...
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