Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
7dbb125a
O
Opencv
项目概览
Greenplum
/
Opencv
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
7dbb125a
编写于
12月 14, 2022
作者:
Z
zihaomu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add nanotrack v2 at regression test.
上级
103212f2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
6 deletion
+19
-6
modules/video/include/opencv2/video/tracking.hpp
modules/video/include/opencv2/video/tracking.hpp
+2
-2
modules/video/test/test_trackers.cpp
modules/video/test/test_trackers.cpp
+15
-2
samples/python/tracker.py
samples/python/tracker.py
+2
-2
未找到文件。
modules/video/include/opencv2/video/tracking.hpp
浏览文件 @
7dbb125a
...
...
@@ -851,9 +851,9 @@ public:
/** @brief the Nano tracker is a super lightweight dnn-based general object tracking.
*
* Nano tracker is much faster and extremely lightweight due to special model structure, the whole model size is about 1.
1
MB.
* Nano tracker is much faster and extremely lightweight due to special model structure, the whole model size is about 1.
9
MB.
* Nano tracker needs two models: one for feature extraction (backbone) and the another for localization (neckhead).
* Please download these two onnx models at:https://github.com/HonglinChu/SiamTrackers/tree/master/NanoTrack/models/
onnx
.
* Please download these two onnx models at:https://github.com/HonglinChu/SiamTrackers/tree/master/NanoTrack/models/
nanotrackv2
.
* Original repo is here: https://github.com/HonglinChu/NanoTrack
* Author:HongLinChu, 1628464345@qq.com
*/
...
...
modules/video/test/test_trackers.cpp
浏览文件 @
7dbb125a
...
...
@@ -79,7 +79,7 @@ static bool checkIOU(const Rect& r0, const Rect& r1, double threshold)
}
}
static
void
checkTrackingAccuracy
(
cv
::
Ptr
<
Tracker
>&
tracker
,
double
iouThreshold
=
0.
8
)
static
void
checkTrackingAccuracy
(
cv
::
Ptr
<
Tracker
>&
tracker
,
double
iouThreshold
=
0.
7
)
{
// Template image
Mat
img0
=
imread
(
findDataFile
(
"tracking/bag/00000001.jpg"
),
1
);
...
...
@@ -136,7 +136,7 @@ TEST(DaSiamRPN, accuracy)
checkTrackingAccuracy
(
tracker
,
0.7
);
}
TEST
(
NanoTrack
,
accuracy
)
TEST
(
NanoTrack
,
accuracy
_NanoTrack_V1
)
{
std
::
string
backbonePath
=
cvtest
::
findDataFile
(
"dnn/onnx/models/nanotrack_backbone_sim.onnx"
,
false
);
std
::
string
neckheadPath
=
cvtest
::
findDataFile
(
"dnn/onnx/models/nanotrack_head_sim.onnx"
,
false
);
...
...
@@ -147,4 +147,17 @@ TEST(NanoTrack, accuracy)
cv
::
Ptr
<
Tracker
>
tracker
=
TrackerNano
::
create
(
params
);
checkTrackingAccuracy
(
tracker
);
}
TEST
(
NanoTrack
,
accuracy_NanoTrack_V2
)
{
std
::
string
backbonePath
=
cvtest
::
findDataFile
(
"dnn/onnx/models/nanotrack_backbone_sim_v2.onnx"
,
false
);
std
::
string
neckheadPath
=
cvtest
::
findDataFile
(
"dnn/onnx/models/nanotrack_head_sim_v2.onnx"
,
false
);
cv
::
TrackerNano
::
Params
params
;
params
.
backbone
=
backbonePath
;
params
.
neckhead
=
neckheadPath
;
cv
::
Ptr
<
Tracker
>
tracker
=
TrackerNano
::
create
(
params
);
checkTrackingAccuracy
(
tracker
,
0.69
);
}
}}
// namespace opencv_test::
samples/python/tracker.py
浏览文件 @
7dbb125a
...
...
@@ -10,8 +10,8 @@ For DaSiamRPN:
kernel_r1: https://www.dropbox.com/s/999cqx5zrfi7w4p/dasiamrpn_kernel_r1.onnx?dl=0
kernel_cls1: https://www.dropbox.com/s/qvmtszx5h339a0w/dasiamrpn_kernel_cls1.onnx?dl=0
For NanoTrack:
nanotrack_backbone: https://github.com/HonglinChu/SiamTrackers/blob/master/NanoTrack/models/
onnx
/nanotrack_backbone_sim.onnx
nanotrack_headneck: https://github.com/HonglinChu/SiamTrackers/blob/master/NanoTrack/models/
onnx
/nanotrack_head_sim.onnx
nanotrack_backbone: https://github.com/HonglinChu/SiamTrackers/blob/master/NanoTrack/models/
nanotrackv2
/nanotrack_backbone_sim.onnx
nanotrack_headneck: https://github.com/HonglinChu/SiamTrackers/blob/master/NanoTrack/models/
nanotrackv2
/nanotrack_head_sim.onnx
USAGE:
tracker.py [-h] [--input INPUT] [--tracker_algo TRACKER_ALGO]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录