title: How to crop OpenCV Image from center
body: <p>How can I crop an image using OpenCV from the center?</p>
  <p>I think it has something to do with this line, but if there is a better way please inform me.</p>
  <pre class="lang-py prettyprint-override"><code>crop_img = img[y:y+h, x:x+w]
  </code></pre>