Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
c973aaab
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
c973aaab
编写于
2月 06, 2018
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #10787 from dkurt:dnn_tutorial_face_detection
上级
398ebbac
88179076
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
3 deletion
+9
-3
modules/dnn/test/test_caffe_importer.cpp
modules/dnn/test/test_caffe_importer.cpp
+8
-2
samples/dnn/js_face_recognition.html
samples/dnn/js_face_recognition.html
+1
-1
未找到文件。
modules/dnn/test/test_caffe_importer.cpp
浏览文件 @
c973aaab
...
...
@@ -456,10 +456,11 @@ TEST(Test_Caffe, multiple_inputs)
normAssert
(
out
,
first_image
+
second_image
);
}
TEST
(
Test_Caffe
,
opencv_face_detector
)
typedef
testing
::
TestWithParam
<
std
::
string
>
opencv_face_detector
;
TEST_P
(
opencv_face_detector
,
Accuracy
)
{
std
::
string
proto
=
findDataFile
(
"dnn/opencv_face_detector.prototxt"
,
false
);
std
::
string
model
=
findDataFile
(
"dnn/opencv_face_detector.caffemodel"
,
false
);
std
::
string
model
=
findDataFile
(
GetParam
()
,
false
);
Net
net
=
readNetFromCaffe
(
proto
,
model
);
Mat
img
=
imread
(
findDataFile
(
"gpu/lbpcascade/er.png"
,
false
));
...
...
@@ -478,6 +479,11 @@ TEST(Test_Caffe, opencv_face_detector)
0.95097077
,
0.51901293
,
0.45863652
,
0.5777427
,
0.5347801
);
normAssert
(
out
.
reshape
(
1
,
out
.
total
()
/
7
).
rowRange
(
0
,
6
).
colRange
(
2
,
7
),
ref
);
}
INSTANTIATE_TEST_CASE_P
(
Test_Caffe
,
opencv_face_detector
,
Values
(
"dnn/opencv_face_detector.caffemodel"
,
"dnn/opencv_face_detector_fp16.caffemodel"
));
TEST
(
Test_Caffe
,
FasterRCNN_and_RFCN
)
{
...
...
samples/dnn/js_face_recognition.html
浏览文件 @
c973aaab
...
...
@@ -70,7 +70,7 @@ function recognize(face) {
function
loadModels
(
callback
)
{
var
utils
=
new
Utils
(
''
);
var
proto
=
'
https://raw.githubusercontent.com/opencv/opencv/master/samples/dnn/face_detector/deploy.prototxt
'
;
var
weights
=
'
https://
raw.githubusercontent.com/opencv/opencv_3rdparty/dnn_samples_face_detector_20170830/res10_300x300_ssd_iter_140000
.caffemodel
'
;
var
weights
=
'
https://
github.com/opencv/opencv_3rdparty/raw/19512576c112aa2c7b6328cb0e8d589a4a90a26d/res10_300x300_ssd_iter_140000_fp16
.caffemodel
'
;
var
recognModel
=
'
https://raw.githubusercontent.com/pyannote/pyannote-data/master/openface.nn4.small2.v1.t7
'
;
utils
.
createFileFromUrl
(
'
face_detector.prototxt
'
,
proto
,
()
=>
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
Downloading face_detector.caffemodel
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录