Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv
提交
ebe4ca6b
O
opencv
项目概览
OpenCV
/
opencv
上一次同步 8 个月
通知
982
Star
71100
Fork
55581
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ebe4ca6b
编写于
11月 26, 2021
作者:
C
Christian Clauss
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos discovered by codespell
上级
444218e7
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
12 addition
and
12 deletion
+12
-12
doc/js_tutorials/js_assets/js_camshift.html
doc/js_tutorials/js_assets/js_camshift.html
+1
-1
doc/js_tutorials/js_assets/js_meanshift.html
doc/js_tutorials/js_assets/js_meanshift.html
+1
-1
modules/highgui/CMakeLists.txt
modules/highgui/CMakeLists.txt
+1
-1
modules/js/generator/embindgen.py
modules/js/generator/embindgen.py
+2
-2
modules/ts/misc/run.py
modules/ts/misc/run.py
+1
-1
platforms/winpack_dldt/build_package.py
platforms/winpack_dldt/build_package.py
+2
-2
samples/dnn/dasiamrpn_tracker.py
samples/dnn/dasiamrpn_tracker.py
+1
-1
samples/dnn/siamrpnpp.py
samples/dnn/siamrpnpp.py
+1
-1
samples/python/tutorial_code/video/meanshift/camshift.py
samples/python/tutorial_code/video/meanshift/camshift.py
+1
-1
samples/python/tutorial_code/video/meanshift/meanshift.py
samples/python/tutorial_code/video/meanshift/meanshift.py
+1
-1
未找到文件。
doc/js_tutorials/js_assets/js_camshift.html
浏览文件 @
ebe4ca6b
...
...
@@ -77,7 +77,7 @@ cv.normalize(roiHist, roiHist, 0, 255, cv.NORM_MINMAX);
// delete useless mats.
roi
.
delete
();
hsvRoi
.
delete
();
mask
.
delete
();
low
.
delete
();
high
.
delete
();
hsvRoiVec
.
delete
();
// Setup the termination criteria, either 10 iteration or move by atleast 1 pt
// Setup the termination criteria, either 10 iteration or move by at
least 1 pt
let
termCrit
=
new
cv
.
TermCriteria
(
cv
.
TERM_CRITERIA_EPS
|
cv
.
TERM_CRITERIA_COUNT
,
10
,
1
);
let
hsv
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC3
);
...
...
doc/js_tutorials/js_assets/js_meanshift.html
浏览文件 @
ebe4ca6b
...
...
@@ -77,7 +77,7 @@ cv.normalize(roiHist, roiHist, 0, 255, cv.NORM_MINMAX);
// delete useless mats.
roi
.
delete
();
hsvRoi
.
delete
();
mask
.
delete
();
low
.
delete
();
high
.
delete
();
hsvRoiVec
.
delete
();
// Setup the termination criteria, either 10 iteration or move by atleast 1 pt
// Setup the termination criteria, either 10 iteration or move by at
least 1 pt
let
termCrit
=
new
cv
.
TermCriteria
(
cv
.
TERM_CRITERIA_EPS
|
cv
.
TERM_CRITERIA_COUNT
,
10
,
1
);
let
hsv
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC3
);
...
...
modules/highgui/CMakeLists.txt
浏览文件 @
ebe4ca6b
...
...
@@ -55,7 +55,7 @@ if(HAVE_QT)
QT5_ADD_RESOURCES
(
_RCC_OUTFILES
${
CMAKE_CURRENT_LIST_DIR
}
/src/window_QT.qrc
)
QT5_WRAP_CPP
(
_MOC_OUTFILES
${
CMAKE_CURRENT_LIST_DIR
}
/src/window_QT.h
)
else
()
message
(
FATAL_ERROR
"Unsuported QT version:
${
QT_VERSION_MAJOR
}
"
)
message
(
FATAL_ERROR
"Unsup
p
orted QT version:
${
QT_VERSION_MAJOR
}
"
)
endif
()
list
(
APPEND highgui_srcs
...
...
modules/js/generator/embindgen.py
浏览文件 @
ebe4ca6b
...
...
@@ -484,7 +484,7 @@ class JSWrapperGenerator(object):
arg_types
.
append
(
arg_type
)
unwrapped_arg_types
.
append
(
arg_type
)
# Function attribu
r
e
# Function attribu
t
e
func_attribs
=
''
if
'*'
in
''
.
join
(
arg_types
):
func_attribs
+=
', allow_raw_pointers()'
...
...
@@ -679,7 +679,7 @@ class JSWrapperGenerator(object):
def_args
.
append
(
arg
.
defval
)
arg_types
.
append
(
orig_arg_types
[
-
1
])
# Function attribu
r
e
# Function attribu
t
e
func_attribs
=
''
if
'*'
in
''
.
join
(
orig_arg_types
):
func_attribs
+=
', allow_raw_pointers()'
...
...
modules/ts/misc/run.py
浏览文件 @
ebe4ca6b
...
...
@@ -105,7 +105,7 @@ if __name__ == "__main__":
path
=
args
.
build_path
try
:
if
not
os
.
path
.
isdir
(
path
):
raise
Err
(
"Not a directory (should contain CMakeCache.txt
ot
test executables)"
)
raise
Err
(
"Not a directory (should contain CMakeCache.txt
to
test executables)"
)
cache
=
CMakeCache
(
args
.
configuration
)
fname
=
os
.
path
.
join
(
path
,
"CMakeCache.txt"
)
...
...
platforms/winpack_dldt/build_package.py
浏览文件 @
ebe4ca6b
...
...
@@ -163,7 +163,7 @@ class BuilderDLDT:
self
.
config
=
config
cpath
=
self
.
config
.
dldt_config
log
.
info
(
'DLDT build configration: %s'
,
cpath
)
log
.
info
(
'DLDT build config
u
ration: %s'
,
cpath
)
if
not
os
.
path
.
exists
(
cpath
):
cpath
=
os
.
path
.
join
(
SCRIPT_DIR
,
cpath
)
if
not
os
.
path
.
exists
(
cpath
):
...
...
@@ -573,5 +573,5 @@ if __name__ == "__main__":
try
:
main
()
except
:
log
.
info
(
'FATAL: Error occured. To investigate problem try to change logging level using LOGLEVEL=DEBUG environment variable.'
)
log
.
info
(
'FATAL: Error occur
r
ed. To investigate problem try to change logging level using LOGLEVEL=DEBUG environment variable.'
)
raise
samples/dnn/dasiamrpn_tracker.py
浏览文件 @
ebe4ca6b
...
...
@@ -226,7 +226,7 @@ def main():
mark
=
True
drawing
=
False
cx
,
cy
,
w
,
h
=
0.0
,
0.0
,
0
,
0
# Fu
cn
tion for drawing during videostream
# Fu
nc
tion for drawing during videostream
def
get_bb
(
event
,
x
,
y
,
flag
,
param
):
nonlocal
point1
,
point2
,
cx
,
cy
,
w
,
h
,
drawing
,
mark
...
...
samples/dnn/siamrpnpp.py
浏览文件 @
ebe4ca6b
...
...
@@ -300,7 +300,7 @@ class SiamRPNTracker:
# clip boundary
cx
,
cy
,
width
,
height
=
self
.
_bbox_clip
(
cx
,
cy
,
width
,
height
,
img
.
shape
[:
2
])
# u
dp
ate state
# u
pd
ate state
self
.
center_pos
=
np
.
array
([
cx
,
cy
])
self
.
w
=
width
self
.
h
=
height
...
...
samples/python/tutorial_code/video/meanshift/camshift.py
浏览文件 @
ebe4ca6b
...
...
@@ -24,7 +24,7 @@ mask = cv.inRange(hsv_roi, np.array((0., 60.,32.)), np.array((180.,255.,255.)))
roi_hist
=
cv
.
calcHist
([
hsv_roi
],[
0
],
mask
,[
180
],[
0
,
180
])
cv
.
normalize
(
roi_hist
,
roi_hist
,
0
,
255
,
cv
.
NORM_MINMAX
)
# Setup the termination criteria, either 10 iteration or move by atleast 1 pt
# Setup the termination criteria, either 10 iteration or move by at
least 1 pt
term_crit
=
(
cv
.
TERM_CRITERIA_EPS
|
cv
.
TERM_CRITERIA_COUNT
,
10
,
1
)
while
(
1
):
...
...
samples/python/tutorial_code/video/meanshift/meanshift.py
浏览文件 @
ebe4ca6b
...
...
@@ -24,7 +24,7 @@ mask = cv.inRange(hsv_roi, np.array((0., 60.,32.)), np.array((180.,255.,255.)))
roi_hist
=
cv
.
calcHist
([
hsv_roi
],[
0
],
mask
,[
180
],[
0
,
180
])
cv
.
normalize
(
roi_hist
,
roi_hist
,
0
,
255
,
cv
.
NORM_MINMAX
)
# Setup the termination criteria, either 10 iteration or move by atleast 1 pt
# Setup the termination criteria, either 10 iteration or move by at
least 1 pt
term_crit
=
(
cv
.
TERM_CRITERIA_EPS
|
cv
.
TERM_CRITERIA_COUNT
,
10
,
1
)
while
(
1
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录