Skip to content

Stream video not work with python client #4

@Marco17598

Description

@Marco17598

Hi @TiagoPrata , I push data img with python code but stream video not work.
this's simple code:

cap = cv2.VideoCapture(rtsp)
while True:
ret, frame = cap.read()
if ret:
frame = cv2.resize(frame,(1296,972))
_, buffer = cv2.imencode('.jpg', frame)
img_base64str = base64.b64encode(buffer).decode('utf-8')
response = requests.post(url, json={'img_base64str': img_base64str})
print(response.json())
print(str(datetime.datetime.now()))
if cv2.waitKey(1) & 0xff == ord('q'):
    break

Can you tell my issue in this case ?
Thank you verry muck !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions