Python cv2.WINDOW_FULLSCREEN Examples
The following are 4
code examples of cv2.WINDOW_FULLSCREEN().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
cv2
, or try the search function
.
Example #1
Source File: display.py From tensorrt_demos with MIT License | 5 votes |
def set_display(window_name, full_scrn): """Set disply window to either full screen or normal.""" if full_scrn: cv2.setWindowProperty(window_name, cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN) else: cv2.setWindowProperty(window_name, cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_NORMAL)
Example #2
Source File: xavier_surveillance.py From homesecurity with MIT License | 5 votes |
def set_full_screen(full_scrn): """Set display window to full screen or not.""" prop = cv2.WINDOW_FULLSCREEN if full_scrn else cv2.WINDOW_NORMAL cv2.setWindowProperty(WINDOW_NAME, cv2.WND_PROP_FULLSCREEN, prop)
Example #3
Source File: VideoRotation.py From Finger-Detection-and-Tracking with BSD 2-Clause "Simplified" License | 5 votes |
def main(): angle = 0 scale = 0.1 windowName = "Video Rotation" cv2.namedWindow(windowName, cv2.WINDOW_FULLSCREEN) capture = cv2.VideoCapture(0) if capture.isOpened(): flag, frame = capture.read() else: flag = False rows, cols, channels = frame.shape while flag: if angle > 360: angle = 0 if scale < 2: scale = scale + 0.1 else: scale = 0.1 flag, frame = capture.read() rotationmatrix = cv2.getRotationMatrix2D((cols / 2, rows / 2), angle, scale) transformedoutput = cv2.warpAffine(frame, rotationmatrix, (cols, rows)) cv2.imshow(windowName, transformedoutput) angle = angle + 1 time.sleep(0.01) if cv2.waitKey(1) & 0xFF == 27: break cv2.destroyAllWindows() capture.release()
Example #4
Source File: tx2_surveillance.py From homesecurity with MIT License | 4 votes |
def set_full_screen(full_scrn): """Set display window to full screen or not.""" prop = cv2.WINDOW_FULLSCREEN if full_scrn else cv2.WINDOW_NORMAL cv2.setWindowProperty(WINDOW_NAME, cv2.WND_PROP_FULLSCREEN, prop)