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
25b4d8a1
Commit
25b4d8a1
authored
Feb 25, 2016
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added images necessary for tests
parent
aaa30dc5
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
18 additions
and
36 deletions
+18
-36
test_calibration.py
modules/python/test/test_calibration.py
+2
-2
test_camshift.py
modules/python/test/test_camshift.py
+1
-1
test_dft.py
modules/python/test/test_dft.py
+1
-1
test_digits.py
modules/python/test/test_digits.py
+1
-1
test_facedetect.py
modules/python/test/test_facedetect.py
+1
-1
test_feature_homography.py
modules/python/test/test_feature_homography.py
+2
-2
test_houghcircles.py
modules/python/test/test_houghcircles.py
+1
-1
test_houghlines.py
modules/python/test/test_houghlines.py
+1
-1
test_letter_recog.py
modules/python/test/test_letter_recog.py
+1
-1
test_lk_homography.py
modules/python/test/test_lk_homography.py
+2
-2
test_lk_track.py
modules/python/test/test_lk_track.py
+1
-1
test_morphology.py
modules/python/test/test_morphology.py
+1
-1
test_peopledetect.py
modules/python/test/test_peopledetect.py
+1
-1
test_squares.py
modules/python/test/test_squares.py
+1
-1
test_texture_flow.py
modules/python/test/test_texture_flow.py
+1
-1
tst_scene_render.py
modules/python/test/tst_scene_render.py
+0
-18
graf1.png
samples/python2/data/graf1.png
+0
-0
pca_test1.jpg
samples/python2/data/pca_test1.jpg
+0
-0
No files found.
modules/python/test/test_calibration.py
View file @
25b4d8a1
...
...
@@ -21,9 +21,9 @@ class calibration_test(NewOpenCVTests):
img_names
=
[]
for
i
in
range
(
1
,
15
):
if
i
<
10
:
img_names
.
append
(
'samples/
data
/left0{}.jpg'
.
format
(
str
(
i
)))
img_names
.
append
(
'samples/
cpp
/left0{}.jpg'
.
format
(
str
(
i
)))
elif
i
!=
10
:
img_names
.
append
(
'samples/
data
/left{}.jpg'
.
format
(
str
(
i
)))
img_names
.
append
(
'samples/
cpp
/left{}.jpg'
.
format
(
str
(
i
)))
square_size
=
1.0
pattern_size
=
(
9
,
6
)
...
...
modules/python/test/test_camshift.py
View file @
25b4d8a1
...
...
@@ -39,7 +39,7 @@ class camshift_test(NewOpenCVTests):
def
prepareRender
(
self
):
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/data/pca_test1.jpg'
),
deformation
=
True
)
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/
python2/
data/pca_test1.jpg'
),
deformation
=
True
)
def
runTracker
(
self
):
...
...
modules/python/test/test_dft.py
View file @
25b4d8a1
...
...
@@ -16,7 +16,7 @@ from tests_common import NewOpenCVTests
class
dft_test
(
NewOpenCVTests
):
def
test_dft
(
self
):
img
=
self
.
get_sample
(
'samples/
data
/rubberwhale1.png'
,
0
)
img
=
self
.
get_sample
(
'samples/
gpu
/rubberwhale1.png'
,
0
)
eps
=
0.001
#test direct transform
...
...
modules/python/test/test_digits.py
View file @
25b4d8a1
...
...
@@ -36,7 +36,7 @@ from numpy.linalg import norm
SZ
=
20
# size of each digit is SZ x SZ
CLASS_N
=
10
DIGITS_FN
=
'samples/data/digits.png'
DIGITS_FN
=
'samples/
python2/
data/digits.png'
def
split2d
(
img
,
cell_size
,
flatten
=
True
):
h
,
w
=
img
.
shape
[:
2
]
...
...
modules/python/test/test_facedetect.py
View file @
25b4d8a1
...
...
@@ -31,7 +31,7 @@ class facedetect_test(NewOpenCVTests):
cascade
=
cv2
.
CascadeClassifier
(
cascade_fn
)
nested
=
cv2
.
CascadeClassifier
(
nested_fn
)
samples
=
[
'samples/
data
/lena.jpg'
,
'cv/cascadeandhog/images/mona-lisa.png'
]
samples
=
[
'samples/
c
/lena.jpg'
,
'cv/cascadeandhog/images/mona-lisa.png'
]
faces
=
[]
eyes
=
[]
...
...
modules/python/test/test_feature_homography.py
View file @
25b4d8a1
...
...
@@ -42,8 +42,8 @@ class feature_homography_test(NewOpenCVTests):
def
test_feature_homography
(
self
):
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/data/graf1.png'
),
self
.
get_sample
(
'samples/
data
/box.png'
),
noise
=
0.4
,
speed
=
0.5
)
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/
python2/
data/graf1.png'
),
self
.
get_sample
(
'samples/
c
/box.png'
),
noise
=
0.4
,
speed
=
0.5
)
self
.
frame
=
self
.
render
.
getNextFrame
()
self
.
tracker
=
PlaneTracker
()
self
.
tracker
.
clear
()
...
...
modules/python/test/test_houghcircles.py
View file @
25b4d8a1
...
...
@@ -39,7 +39,7 @@ class houghcircles_test(NewOpenCVTests):
def
test_houghcircles
(
self
):
fn
=
"samples/
data
/board.jpg"
fn
=
"samples/
cpp
/board.jpg"
src
=
self
.
get_sample
(
fn
,
1
)
img
=
cv2
.
cvtColor
(
src
,
cv2
.
COLOR_BGR2GRAY
)
...
...
modules/python/test/test_houghlines.py
View file @
25b4d8a1
...
...
@@ -26,7 +26,7 @@ class houghlines_test(NewOpenCVTests):
def
test_houghlines
(
self
):
fn
=
"/samples/
data
/pic1.png"
fn
=
"/samples/
cpp
/pic1.png"
src
=
self
.
get_sample
(
fn
)
dst
=
cv2
.
Canny
(
src
,
50
,
200
)
...
...
modules/python/test/test_letter_recog.py
View file @
25b4d8a1
...
...
@@ -150,7 +150,7 @@ class letter_recog_test(NewOpenCVTests):
Model
=
models
[
model
]
classifier
=
Model
()
samples
,
responses
=
load_base
(
self
.
repoPath
+
'/samples/
data
/letter-recognition.data'
)
samples
,
responses
=
load_base
(
self
.
repoPath
+
'/samples/
cpp
/letter-recognition.data'
)
train_n
=
int
(
len
(
samples
)
*
classifier
.
train_ratio
)
classifier
.
train
(
samples
[:
train_n
],
responses
[:
train_n
])
...
...
modules/python/test/test_lk_homography.py
View file @
25b4d8a1
...
...
@@ -44,8 +44,8 @@ class lk_homography_test(NewOpenCVTests):
numFeaturesInRectOnStart
=
0
def
test_lk_homography
(
self
):
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/data/graf1.png'
),
self
.
get_sample
(
'samples/
data
/box.png'
),
noise
=
0.1
,
speed
=
1.0
)
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/
python2/
data/graf1.png'
),
self
.
get_sample
(
'samples/
c
/box.png'
),
noise
=
0.1
,
speed
=
1.0
)
frame
=
self
.
render
.
getNextFrame
()
frame_gray
=
cv2
.
cvtColor
(
frame
,
cv2
.
COLOR_BGR2GRAY
)
...
...
modules/python/test/test_lk_track.py
View file @
25b4d8a1
...
...
@@ -50,7 +50,7 @@ class lk_track_test(NewOpenCVTests):
def
test_lk_track
(
self
):
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/
data/graf1.png'
),
self
.
get_sample
(
'samples/data
/box.png'
))
self
.
render
=
TestSceneRender
(
self
.
get_sample
(
'samples/
python2/data/graf1.png'
),
self
.
get_sample
(
'samples/c
/box.png'
))
self
.
runTracker
()
def
runTracker
(
self
):
...
...
modules/python/test/test_morphology.py
View file @
25b4d8a1
...
...
@@ -18,7 +18,7 @@ class morphology_test(NewOpenCVTests):
def
test_morphology
(
self
):
fn
=
'samples/
data
/rubberwhale1.png'
fn
=
'samples/
gpu
/rubberwhale1.png'
img
=
self
.
get_sample
(
fn
)
modes
=
[
'erode/dilate'
,
'open/close'
,
'blackhat/tophat'
,
'gradient'
]
...
...
modules/python/test/test_peopledetect.py
View file @
25b4d8a1
...
...
@@ -24,7 +24,7 @@ class peopledetect_test(NewOpenCVTests):
hog
=
cv2
.
HOGDescriptor
()
hog
.
setSVMDetector
(
cv2
.
HOGDescriptor_getDefaultPeopleDetector
()
)
dirPath
=
'samples/
data
/'
dirPath
=
'samples/
gpu
/'
samples
=
[
'basketball1.png'
,
'basketball2.png'
]
testPeople
=
[
...
...
modules/python/test/test_squares.py
View file @
25b4d8a1
...
...
@@ -61,7 +61,7 @@ class squares_test(NewOpenCVTests):
def
test_squares
(
self
):
img
=
self
.
get_sample
(
'samples/
data
/pic1.png'
)
img
=
self
.
get_sample
(
'samples/
cpp
/pic1.png'
)
squares
=
find_squares
(
img
)
testSquares
=
[
...
...
modules/python/test/test_texture_flow.py
View file @
25b4d8a1
...
...
@@ -21,7 +21,7 @@ class texture_flow_test(NewOpenCVTests):
def
test_texture_flow
(
self
):
img
=
self
.
get_sample
(
'samples/
data
/pic6.png'
)
img
=
self
.
get_sample
(
'samples/
cpp
/pic6.png'
)
gray
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_BGR2GRAY
)
h
,
w
=
img
.
shape
[:
2
]
...
...
modules/python/test/tst_scene_render.py
View file @
25b4d8a1
...
...
@@ -100,20 +100,3 @@ class TestSceneRender():
def
resetTime
(
self
):
self
.
time
=
0.0
if
__name__
==
'__main__'
:
backGr
=
cv2
.
imread
(
'../../../samples/data/lena.jpg'
)
render
=
TestSceneRender
(
backGr
,
noise
=
0.5
)
while
True
:
img
=
render
.
getNextFrame
()
cv2
.
imshow
(
'img'
,
img
)
ch
=
0xFF
&
cv2
.
waitKey
(
3
)
if
ch
==
27
:
break
cv2
.
destroyAllWindows
()
\ No newline at end of file
samples/python2/data/graf1.png
0 → 100644
View file @
25b4d8a1
929 KB
samples/python2/data/pca_test1.jpg
0 → 100644
View file @
25b4d8a1
32.4 KB
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