title: How to solve the TypeError: 'NoneType' object is not subscriptable in opencv (cv2 Python)
body: <p>I am new to opencv and I am trying to print the pixels.</p>
  
  <pre><code>import numpy as np
  import cv2
  img = cv2.imread('freelancer.jpg',cv2.IMREAD_COLOR)
  px  = img[55,55]
  print(px)
  </code></pre>
  
  <p>I am getting </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/Jeet Chatterjee/image processing/basic_image_op.py", line 6, in &lt;module&gt;
   px  = img[55,55]
  TypeError: 'NoneType' object is not subscriptable
  </code></pre>