Example #1
0
def start():
    image = cv2.imread('crok.jpg')

    detect.detectCircles(image)

    cv2.imshow('result', image)

    cv2.waitKey(0)
    cv2.destroyAllWindows()
Example #2
0
def start():
    while True:
        global frame_nbr
        frame_nbr = frame_nbr + 1

        _, frame = cap.read()

        if frame_nbr > frame_limit:
            detect.detectCircles(frame)
            draw.draw(frame)
            cv2.imshow("frame", frame)

            frame_nbr = 0

        k = cv2.waitKey(5) & 0xFF
        if k == 27:
            break

    cv2.waitKey(0)
    cv2.destroyAllWindows()