title: AttributeError: module 'cv2.cv2' has no attribute 'CV_LOAD_IMAGE_COLOR'
body: <p>I have the following jpeg as a bytecode string:</p>
  
  <pre><code>jpg = 'b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x01\x00`\x00`\x00\x00\xff\xfe\x00&gt;CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), default quality\n\xff\xdb\x00C\x00\x08\x06\x06\x07
  </code></pre>
  
  <p>I want to load this into OpenCV.</p>
  
  <p>I tried:</p>
  
  <pre><code>import numpy as np
  
  # CV2
  nparr = np.fromstring(jpg , np.uint8)
  img_np = cv2.imdecode(nparr, cv2.CV_LOAD_IMAGE_COLOR )  # cv2.IMREAD_COLOR in OpenCV 3.1
  </code></pre>
  
  <p>I'm getting:</p>
  
  <pre><code>AttributeError: module 'cv2.cv2' has no attribute 'CV_LOAD_IMAGE_COLOR'
  </code></pre>
  
  <p>How can I get this working?</p>