I want to send an image by curl to flask server, i am trying this curl command
curl -F "file=@image.jpg" http://localhost:8000
but it did not work
On the server side I handle the image by this code
@app.route('/home', methods=['POST'])
def home():
data =request.files['file']
img = cv2.imread(data)
fact_resp= model.predict(img)
return jsonify(fact_resp)
fact_resp is an integer and i am trying to read the image using cv2
Is there anyway to do this?