cvhelper.py 234 Bytes
Newer Older
tihmels's avatar
tihmels committed
1 2
import cv2

tihmels's avatar
tihmels committed
3 4

def createwindow(name: str, view, x=70, y=70, width=700, height=700):
tihmels's avatar
tihmels committed
5 6 7
    cv2.namedWindow(name, cv2.WINDOW_NORMAL)
    cv2.resizeWindow(name, width, height)
    cv2.moveWindow(name, x, y)
tihmels's avatar
tihmels committed
8
    return cv2.imshow(name, view)