Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
25b4d8a1
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
25b4d8a1
编写于
2月 25, 2016
作者:
V
Vitaly Tuzov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added images necessary for tests
上级
aaa30dc5
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
18 addition
and
35 deletion
+18
-35
modules/python/test/test_calibration.py
modules/python/test/test_calibration.py
+2
-2
modules/python/test/test_camshift.py
modules/python/test/test_camshift.py
+1
-1
modules/python/test/test_dft.py
modules/python/test/test_dft.py
+1
-1
modules/python/test/test_digits.py
modules/python/test/test_digits.py
+1
-1
modules/python/test/test_facedetect.py
modules/python/test/test_facedetect.py
+1
-1
modules/python/test/test_feature_homography.py
modules/python/test/test_feature_homography.py
+2
-2
modules/python/test/test_houghcircles.py
modules/python/test/test_houghcircles.py
+1
-1
modules/python/test/test_houghlines.py
modules/python/test/test_houghlines.py
+1
-1
modules/python/test/test_letter_recog.py
modules/python/test/test_letter_recog.py
+1
-1
modules/python/test/test_lk_homography.py
modules/python/test/test_lk_homography.py
+2
-2
modules/python/test/test_lk_track.py
modules/python/test/test_lk_track.py
+1
-1
modules/python/test/test_morphology.py
modules/python/test/test_morphology.py
+1
-1
modules/python/test/test_peopledetect.py
modules/python/test/test_peopledetect.py
+1
-1
modules/python/test/test_squares.py
modules/python/test/test_squares.py
+1
-1
modules/python/test/test_texture_flow.py
modules/python/test/test_texture_flow.py
+1
-1
modules/python/test/tst_scene_render.py
modules/python/test/tst_scene_render.py
+0
-17
samples/python2/data/graf1.png
samples/python2/data/graf1.png
+0
-0
samples/python2/data/pca_test1.jpg
samples/python2/data/pca_test1.jpg
+0
-0
未找到文件。
modules/python/test/test_calibration.py
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
25b4d8a1
此差异由.gitattributes 抑制。
samples/python2/data/pca_test1.jpg
0 → 100644
浏览文件 @
25b4d8a1
此差异由.gitattributes 抑制。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录