Moved files

This commit is contained in:
2022-01-18 16:34:10 +01:00
parent e65480cf69
commit 5212aa9837
2 changed files with 28 additions and 0 deletions

10
camera/upload_img.py Normal file
View File

@@ -0,0 +1,10 @@
from flask import Flask, request, jsonify
import requests
url = 'http://127.0.0.1:5000/post_img'
my_img = {'image': open('/home/trygve/Pictures/boiled.png', 'rb')}
r = requests.post(url, files=my_img)
# convert server response into JSON format.
print(r.json())