本文整理汇总了Python中cv2.setWindowTitle方法的典型用法代码示例。如果您正苦于以下问题:Python cv2.setWindowTitle方法的具体用法?Python cv2.setWindowTitle怎么用?Python cv2.setWindowTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cv2
的用法示例。
在下文中一共展示了cv2.setWindowTitle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: open_window
# 需要导入模块: import cv2 [as 别名]
# 或者: from cv2 import setWindowTitle [as 别名]
def open_window(window_name, width, height, title):
"""Open the display window."""
cv2.namedWindow(window_name, cv2.WINDOW_NORMAL)
cv2.resizeWindow(window_name, width, height)
cv2.setWindowTitle(window_name, title)
示例2: open_display_window
# 需要导入模块: import cv2 [as 别名]
# 或者: from cv2 import setWindowTitle [as 别名]
def open_display_window(width, height):
"""Open the cv2 window for displaying images with bounding boxeses."""
cv2.namedWindow(WINDOW_NAME, cv2.WINDOW_NORMAL)
cv2.resizeWindow(WINDOW_NAME, width, height)
cv2.moveWindow(WINDOW_NAME, 0, 0)
cv2.setWindowTitle(WINDOW_NAME, WINDOW_NAME)
set_full_screen(True)
示例3: open_display_window
# 需要导入模块: import cv2 [as 别名]
# 或者: from cv2 import setWindowTitle [as 别名]
def open_display_window(width, height):
"""Open the cv2 window for displaying images with bounding boxeses."""
cv2.namedWindow(WINDOW_NAME, cv2.WINDOW_NORMAL)
cv2.resizeWindow(WINDOW_NAME, width, height)
cv2.moveWindow(WINDOW_NAME, 0, 0)
cv2.setWindowTitle(WINDOW_NAME, 'Camera TFTRT Object Detection Demo '
'for Jetson TX2/TX1')