title: Flask to Numpy Image Conversion
body: <p>I have been trying to send an image over javascript to a Flask server to draw bounding boxes on coordinates I received from my own API. How might I convert this to a numpy array?</p>
  
  <p>I was thinking of using the cv2.imdecode feature, but I don't want to download that huge file on my server. Here is an example of the input string src i am sending to flask:</p>
  
  <pre><code>data:image/jpeg;base64,IMGDATA HERE
  </code></pre>
  
  <p>I believe that this string is base64 encoded, but I am not sure how to make this conversion in python.</p>