Sample code (https://github.com/macaca-sample/cv-sample-python) 已经更新了,修复了评论中提到的这些问题。也可以用curl
直接 post
curl -i -X POST \
-H "Content-Type: multipart/form-data" \
-F "image1=@./fixture/T-shirt-logo.jpg" \
-F "image2=@./fixture/T-shirt.jpg" \
http://localhost:9900/opencv/findpairs