简体   繁体   English

将摄像头视频上传到 flask rest api

[英]Upload camera video feed to flask rest api

I am trying to deploy a realtime image recognition system in python flask api then call it in a winform desktop application, what's the best way to send the video feed throug a json format. I am trying to deploy a realtime image recognition system in python flask api then call it in a winform desktop application, what's the best way to send the video feed throug a json format.

You can send via base64 format inside json.您可以通过 json 内的 base64 格式发送。 But best way is designing flask api to expect multipart form data.Even json data + multipart is possible.但最好的方法是设计 flask api 以期望多部分形式数据。甚至 json 数据 + 多部分也是可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM