import os, sys
import cv2
import easytello.faceprocessor as faceproc

cap = cv2.VideoCapture('udp://0.0.0.0:11111')
imagem = []
while(True):
    if cap.isOpened():
        ret, frame = cap.read()
        image = faceproc.process_frame(frame)
        #print("frame: ",type(frame),frame)
        #print("image: ",type(image),image)
        cv2.imshow('Resultado', image)    
        if cv2.waitKey(1) & 0xFF == ord('q'):
            break
    else:
        cap = cv2.VideoCapture('udp://0.0.0.0:11111')
cap.release()
cv2.destroyAllWindows()    
4897a1bf1b0698e91a57d58049a8c0dfa3f2977e
<mask token>

<mask token>
while True:
    if cap.isOpened():
        ret, frame = cap.read()
        image = faceproc.process_frame(frame)
        cv2.imshow('Resultado', image)
        if cv2.waitKey(1) & 255 == ord('q'):
            break
    else:
        cap = cv2.VideoCapture('udp://0.0.0.0:11111')
cap.release()
cv2.destroyAllWindows()

<mask token>
cap = cv2.VideoCapture('udp://0.0.0.0:11111')
imagem = []
while True:
    if cap.isOpened():
        ret, frame = cap.read()
        image = faceproc.process_frame(frame)
        cv2.imshow('Resultado', image)
        if cv2.waitKey(1) & 255 == ord('q'):
            break
    else:
        cap = cv2.VideoCapture('udp://0.0.0.0:11111')
cap.release()
cv2.destroyAllWindows()

import os, sys
import cv2
import easytello.faceprocessor as faceproc
cap = cv2.VideoCapture('udp://0.0.0.0:11111')
imagem = []
while True:
    if cap.isOpened():
        ret, frame = cap.read()
        image = faceproc.process_frame(frame)
        cv2.imshow('Resultado', image)
        if cv2.waitKey(1) & 255 == ord('q'):
            break
    else:
        cap = cv2.VideoCapture('udp://0.0.0.0:11111')
cap.release()
cv2.destroyAllWindows()

import os, sys
import cv2
import easytello.faceprocessor as faceproc

cap = cv2.VideoCapture('udp://0.0.0.0:11111')
imagem = []
while(True):
    if cap.isOpened():
        ret, frame = cap.read()
        image = faceproc.process_frame(frame)
        #print("frame: ",type(frame),frame)
        #print("image: ",type(image),image)
        cv2.imshow('Resultado', image)    
        if cv2.waitKey(1) & 0xFF == ord('q'):
            break
    else:
        cap = cv2.VideoCapture('udp://0.0.0.0:11111')
cap.release()
cv2.destroyAllWindows()    