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, 'threading.Thread', 'threading.Thread', False, 'import threading\n'), (7, 'cv2.imread', 'cv2.imread', False, 'import cv2\n'), (10, 'cv2.imshow', 'cv2.imshow', False, 'import cv2\n'), (11, 'cv2.waitKey', 'cv2.waitKey', False, 'import cv2\n')]