Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def cam_loop(the_q):
- while True:
- # read 420*360*3 bytes (= 1 frame)
- raw_image = pipe2.stdout.read(1280*720*3)
- # transform the byte read into a numpy array
- img = numpy.fromstring(raw_image, dtype='uint8')
- img = img.reshape((1280,720,3))
- cv2.rectangle(img, ( 300, 200) , ( 380, 240), (0,255,255), 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement