提交 ebe4ca6b 编写于 作者: C Christian Clauss

Fix typos discovered by codespell

上级 444218e7
...@@ -77,7 +77,7 @@ cv.normalize(roiHist, roiHist, 0, 255, cv.NORM_MINMAX); ...@@ -77,7 +77,7 @@ cv.normalize(roiHist, roiHist, 0, 255, cv.NORM_MINMAX);
// delete useless mats. // delete useless mats.
roi.delete(); hsvRoi.delete(); mask.delete(); low.delete(); high.delete(); hsvRoiVec.delete(); 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 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); let hsv = new cv.Mat(video.height, video.width, cv.CV_8UC3);
......
...@@ -77,7 +77,7 @@ cv.normalize(roiHist, roiHist, 0, 255, cv.NORM_MINMAX); ...@@ -77,7 +77,7 @@ cv.normalize(roiHist, roiHist, 0, 255, cv.NORM_MINMAX);
// delete useless mats. // delete useless mats.
roi.delete(); hsvRoi.delete(); mask.delete(); low.delete(); high.delete(); hsvRoiVec.delete(); 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 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); let hsv = new cv.Mat(video.height, video.width, cv.CV_8UC3);
......
...@@ -55,7 +55,7 @@ if(HAVE_QT) ...@@ -55,7 +55,7 @@ if(HAVE_QT)
QT5_ADD_RESOURCES(_RCC_OUTFILES ${CMAKE_CURRENT_LIST_DIR}/src/window_QT.qrc) 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) QT5_WRAP_CPP(_MOC_OUTFILES ${CMAKE_CURRENT_LIST_DIR}/src/window_QT.h)
else() else()
message(FATAL_ERROR "Unsuported QT version: ${QT_VERSION_MAJOR}") message(FATAL_ERROR "Unsupported QT version: ${QT_VERSION_MAJOR}")
endif() endif()
list(APPEND highgui_srcs list(APPEND highgui_srcs
......
...@@ -484,7 +484,7 @@ class JSWrapperGenerator(object): ...@@ -484,7 +484,7 @@ class JSWrapperGenerator(object):
arg_types.append(arg_type) arg_types.append(arg_type)
unwrapped_arg_types.append(arg_type) unwrapped_arg_types.append(arg_type)
# Function attribure # Function attribute
func_attribs = '' func_attribs = ''
if '*' in ''.join(arg_types): if '*' in ''.join(arg_types):
func_attribs += ', allow_raw_pointers()' func_attribs += ', allow_raw_pointers()'
...@@ -679,7 +679,7 @@ class JSWrapperGenerator(object): ...@@ -679,7 +679,7 @@ class JSWrapperGenerator(object):
def_args.append(arg.defval) def_args.append(arg.defval)
arg_types.append(orig_arg_types[-1]) arg_types.append(orig_arg_types[-1])
# Function attribure # Function attribute
func_attribs = '' func_attribs = ''
if '*' in ''.join(orig_arg_types): if '*' in ''.join(orig_arg_types):
func_attribs += ', allow_raw_pointers()' func_attribs += ', allow_raw_pointers()'
......
...@@ -105,7 +105,7 @@ if __name__ == "__main__": ...@@ -105,7 +105,7 @@ if __name__ == "__main__":
path = args.build_path path = args.build_path
try: try:
if not os.path.isdir(path): 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) cache = CMakeCache(args.configuration)
fname = os.path.join(path, "CMakeCache.txt") fname = os.path.join(path, "CMakeCache.txt")
......
...@@ -163,7 +163,7 @@ class BuilderDLDT: ...@@ -163,7 +163,7 @@ class BuilderDLDT:
self.config = config self.config = config
cpath = self.config.dldt_config cpath = self.config.dldt_config
log.info('DLDT build configration: %s', cpath) log.info('DLDT build configuration: %s', cpath)
if not os.path.exists(cpath): if not os.path.exists(cpath):
cpath = os.path.join(SCRIPT_DIR, cpath) cpath = os.path.join(SCRIPT_DIR, cpath)
if not os.path.exists(cpath): if not os.path.exists(cpath):
...@@ -573,5 +573,5 @@ if __name__ == "__main__": ...@@ -573,5 +573,5 @@ if __name__ == "__main__":
try: try:
main() main()
except: except:
log.info('FATAL: Error occured. To investigate problem try to change logging level using LOGLEVEL=DEBUG environment variable.') log.info('FATAL: Error occurred. To investigate problem try to change logging level using LOGLEVEL=DEBUG environment variable.')
raise raise
...@@ -226,7 +226,7 @@ def main(): ...@@ -226,7 +226,7 @@ def main():
mark = True mark = True
drawing = False drawing = False
cx, cy, w, h = 0.0, 0.0, 0, 0 cx, cy, w, h = 0.0, 0.0, 0, 0
# Fucntion for drawing during videostream # Function for drawing during videostream
def get_bb(event, x, y, flag, param): def get_bb(event, x, y, flag, param):
nonlocal point1, point2, cx, cy, w, h, drawing, mark nonlocal point1, point2, cx, cy, w, h, drawing, mark
......
...@@ -300,7 +300,7 @@ class SiamRPNTracker: ...@@ -300,7 +300,7 @@ class SiamRPNTracker:
# clip boundary # clip boundary
cx, cy, width, height = self._bbox_clip(cx, cy, width, height, img.shape[:2]) cx, cy, width, height = self._bbox_clip(cx, cy, width, height, img.shape[:2])
# udpate state # update state
self.center_pos = np.array([cx, cy]) self.center_pos = np.array([cx, cy])
self.w = width self.w = width
self.h = height self.h = height
......
...@@ -24,7 +24,7 @@ mask = cv.inRange(hsv_roi, np.array((0., 60.,32.)), np.array((180.,255.,255.))) ...@@ -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]) roi_hist = cv.calcHist([hsv_roi],[0],mask,[180],[0,180])
cv.normalize(roi_hist,roi_hist,0,255,cv.NORM_MINMAX) 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 ) term_crit = ( cv.TERM_CRITERIA_EPS | cv.TERM_CRITERIA_COUNT, 10, 1 )
while(1): while(1):
......
...@@ -24,7 +24,7 @@ mask = cv.inRange(hsv_roi, np.array((0., 60.,32.)), np.array((180.,255.,255.))) ...@@ -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]) roi_hist = cv.calcHist([hsv_roi],[0],mask,[180],[0,180])
cv.normalize(roi_hist,roi_hist,0,255,cv.NORM_MINMAX) 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 ) term_crit = ( cv.TERM_CRITERIA_EPS | cv.TERM_CRITERIA_COUNT, 10, 1 )
while(1): while(1):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册