예제 #1
0
def create_and_position_window(name, xpos, ypos):
    ''' a function to created a named widow (from name), 
        and place it on the screen at (xpos, ypos) '''
    highgui.cvNamedWindow(name, highgui.CV_WINDOW_AUTOSIZE) # create the window
    highgui.cvResizeWindow(name, cam_width, cam_height) # resize it
    highgui.cvMoveWindow(name, xpos, ypos) # move it to (xpos,ypos) on the screen
예제 #2
0
def create_and_position_window(name, xpos, ypos):
    """Creates a named widow placing it on the screen at (xpos, ypos)."""
    highgui.cvNamedWindow(name, highgui.CV_WINDOW_AUTOSIZE)  # Create window
    highgui.cvResizeWindow(name, cam_width, cam_height)  # Resize it
    highgui.cvMoveWindow(name, xpos, ypos)  # move to (xpos,ypos) on the screen