本文整理匯總了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')