import cv2
import numpy as np
import threading

def test():
    while 1:
        img1=cv2.imread('captured car1.jpg')
        print("{}".format(img1.shape))
        print("{}".format(img1))
        cv2.imshow('asd',img1)
        cv2.waitKey(1)

t1 = threading.Thread(target=test)
t1.start()


[((13, 5, 13, 34), 'threading.Thread', 'threading.Thread', (), '', False, 'import threading\n'), ((7, 13, 7, 44), 'cv2.imread', 'cv2.imread', ({(7, 24, 7, 43): '"""captured car1.jpg"""'}, {}), "('captured car1.jpg')", False, 'import cv2\n'), ((10, 8, 10, 30), 'cv2.imshow', 'cv2.imshow', ({(10, 19, 10, 24): '"""asd"""', (10, 25, 10, 29): 'img1'}, {}), "('asd', img1)", False, 'import cv2\n'), ((11, 8, 11, 22), 'cv2.waitKey', 'cv2.waitKey', ({(11, 20, 11, 21): '(1)'}, {}), '(1)', False, 'import cv2\n')]