Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
622b9d92
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,发现更多精彩内容 >>
提交
622b9d92
编写于
12月 16, 2021
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #21267 from mshabunin:fix-kw-2021-12
上级
b4bb98ea
a079c2eb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
5 deletion
+11
-5
modules/dnn/src/int8layers/eltwise_layer.cpp
modules/dnn/src/int8layers/eltwise_layer.cpp
+3
-2
modules/dnn/src/onnx/onnx_importer.cpp
modules/dnn/src/onnx/onnx_importer.cpp
+3
-1
modules/objdetect/src/face_detect.cpp
modules/objdetect/src/face_detect.cpp
+1
-0
modules/objdetect/src/face_recognize.cpp
modules/objdetect/src/face_recognize.cpp
+2
-2
modules/objdetect/src/qrcode_encoder.cpp
modules/objdetect/src/qrcode_encoder.cpp
+2
-0
未找到文件。
modules/dnn/src/int8layers/eltwise_layer.cpp
浏览文件 @
622b9d92
...
...
@@ -238,7 +238,7 @@ public:
EltwiseInvoker
(
EltwiseLayerInt8Impl
&
self_
)
:
self
(
self_
)
,
nsrcs
(
0
),
dst
(
0
),
buf
(
0
),
nstripes
(
0
),
activ
(
0
),
channels
(
0
)
,
nsrcs
(
0
),
dst
(
0
),
buf
(
0
),
nstripes
(
0
),
activ
LUT
(
0
),
activ
(
0
),
channels
(
0
)
,
planeSize
(
0
),
offset
(
0
)
{}
...
...
@@ -345,7 +345,8 @@ public:
int8_t
*
dstptr0
=
dst
->
ptr
<
int8_t
>
();
float
*
bufptr0
=
buf
->
ptr
<
float
>
();
int
blockSize0
=
1
<<
12
;
CV_Assert
(
op
!=
PROD
||
zeropointsptr
);
CV_Assert
((
op
!=
PROD
&&
op
!=
SUM
)
||
coeffsptr
);
for
(
size_t
ofs
=
stripeStart
;
ofs
<
stripeEnd
;
)
{
int
sampleIdx
=
(
int
)(
ofs
/
planeSize
);
...
...
modules/dnn/src/onnx/onnx_importer.cpp
浏览文件 @
622b9d92
...
...
@@ -2063,7 +2063,9 @@ void ONNXImporter::parseUnsqueeze(LayerParams& layerParams, const opencv_onnx::N
}
CV_Assert
(
axes
.
getIntValue
(
axes
.
size
()
-
1
)
<=
dims
.
size
());
for
(
int
j
=
0
;
j
<
axes
.
size
();
j
++
)
{
dims
.
insert
(
dims
.
begin
()
+
axes
.
getIntValue
(
j
),
1
);
const
int
idx
=
axes
.
getIntValue
(
j
);
CV_Assert
(
idx
<=
dims
.
size
());
dims
.
insert
(
dims
.
begin
()
+
idx
,
1
);
}
Mat
out
=
input
.
reshape
(
0
,
dims
);
...
...
modules/objdetect/src/face_detect.cpp
浏览文件 @
622b9d92
...
...
@@ -142,6 +142,7 @@ private:
{
64.0
f
,
96.0
f
},
{
128.0
f
,
192.0
f
,
256.0
f
}
};
CV_Assert
(
min_sizes
.
size
()
==
feature_map_sizes
.
size
());
// just to keep vectors in sync
const
std
::
vector
<
int
>
steps
=
{
8
,
16
,
32
,
64
};
// Generate priors
...
...
modules/objdetect/src/face_recognize.cpp
浏览文件 @
622b9d92
...
...
@@ -45,8 +45,8 @@ public:
double
match
(
InputArray
_face_feature1
,
InputArray
_face_feature2
,
int
dis_type
)
const
override
{
Mat
face_feature1
=
_face_feature1
.
getMat
(),
face_feature2
=
_face_feature2
.
getMat
();
face_feature1
/=
norm
(
face_feature1
);
face_feature2
/=
norm
(
face_feature2
);
normalize
(
face_feature1
,
face_feature1
);
normalize
(
face_feature2
,
face_feature2
);
if
(
dis_type
==
DisType
::
FR_COSINE
){
return
sum
(
face_feature1
.
mul
(
face_feature2
))[
0
];
...
...
modules/objdetect/src/qrcode_encoder.cpp
浏览文件 @
622b9d92
...
...
@@ -881,6 +881,8 @@ void QRCodeEncoderImpl::findAutoMaskType()
total_modules
+=
1
;
}
}
if
(
total_modules
==
0
)
continue
;
// TODO: refactor, extract functions to reduce complexity
int
modules_percent
=
dark_modules
*
100
/
total_modules
;
int
lower_bound
=
45
;
int
upper_bound
=
55
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录