|
@@ -61,10 +61,12 @@ async def process_stream():
|
|
|
success, encoded_image = cv2.imencode('.jpg', image)
|
|
|
if not success:
|
|
|
logger.error('imencode image error')
|
|
|
+ continue
|
|
|
content = encoded_image.tobytes()
|
|
|
successori, encoded_imageori = cv2.imencode('.jpg', frame)
|
|
|
if not successori:
|
|
|
logger.error('imencode original image error')
|
|
|
+ continue
|
|
|
contentori = encoded_imageori.tobytes()
|
|
|
|
|
|
payload = {
|