tracking/homography.py
def display_homographied_plan(h, source):
    """displays the homographied version of the frame of the camera

    Arguments:
        h {homography} -- homography obtained after calibration
        source {int or str} -- source of the channel: int for camera and str for video path
    """
    # TODO

    cap=cv2.VideoCapture(source)
    # Reading our first frame
    ret1,frame1= cap.read()
    cv2.imshow('window',frame1)

    frame2 = cv2.perspectiveTransform(frame1, h)
    cv2.imshow('homography',frame2)


    while True:
        if cv2.waitKey(20) == ord('q'):
            # pour 'quitter'
            break

    cap.release()
    cv2.destroyAllWindows()
    return()
displays the homographied version of the frame of the camera

    Arguments:
        h {homography} -- homography obtained after calibration
        source {int or str} -- source of the channel: int for camera and str for video path
    
displays the homographied version of the frame of the camera
Arguments:
h {homography} -- homography obtained after calibration
source {int or str} -- source of the channel: int for camera and str for video path
displays the homographied version of the frame of the camera Arguments : h { homography } -- homography obtained after calibration source { int or str } -- source of the channel : int for camera and str for video path
def display_homographied_plan(h, source):
    cap=cv2.VideoCapture(source)
    ret1,frame1= cap.read()
    cv2.imshow('window',frame1)
    frame2 = cv2.perspectiveTransform(frame1, h)
    cv2.imshow('homography',frame2)
    while True:
        if cv2.waitKey(20) == ord('q'):
            break
    cap.release()
    cv2.destroyAllWindows()
    return()
def display_homographied_plan ( h , source ) : cap = cv2 . VideoCapture ( source ) ret1 , frame1 = cap . read ( ) cv2 . imshow ( 'window' , frame1 ) frame2 = cv2 . perspectiveTransform ( frame1 , h ) cv2 . imshow ( 'homography' , frame2 ) while True : if cv2 . waitKey ( 20 ) == ord ( 'q' ) : break cap . release ( ) cv2 . destroyAllWindows ( ) return ( )
displays the homographied version of the frame of the camera
Arguments:
h {homography} -- homography obtained after calibration
source {int or str} -- source of the channel: int for camera and str for video path
displays the homographied version of the frame of the camera Arguments : h { homography } -- homography obtained after calibration source { int or str } -- source of the channel : int for camera and str for video path
"""displays the homographied version of the frame of the camera

    Arguments:
        h {homography} -- homography obtained after calibration
        source {int or str} -- source of the channel: int for camera and str for video path
    """ # TODO # Reading our first frame # pour 'quitter'
h
source