title: Reading image file (file storage object) using OpenCV
body: <p>I am sending an image by curl to flask server, i am using this curl command</p>
  <pre><code>curl -F &quot;file=@image.jpg&quot; http://localhost:8000/home
  </code></pre>
  <p>and I am trying to read the file using OpenCV on the server side.</p>
  <p>On the server side I handle the image by this code</p>
  <pre><code>@app.route('/home', methods=['POST'])
  def home():
      data =request.files['file']
      img = cv.imread(data)
      fact_resp= model.predict(img)
      return jsonify(fact_resp)
  </code></pre>
  <p>I am getting this error-</p>
  <pre><code>img = cv.imread(data)
  TypeError: expected string or Unicode object, FileStorage found
  </code></pre>
  <p>How do I read the file using OpenCV on the server side?</p>
  <p>Thanks!</p>