title: I have a TypeError in Python script
body: <p>I have write this short code:</p>
  <pre><code>from cv2 import cv2
  
  img = cv2.imread(&quot;1.png&quot;)
  
  print(&quot;Высота:&quot;+str(img.shape[0]))
  print(&quot;Ширина:&quot; + str(img.shape[1]))
  print(&quot;Количество каналов:&quot; + str(img.shape[2]))
  
  for x in img.shape[0]:
      for y in img.shape[1]:
          if img[x, y] == (255, 255, 255):
              img[x, y] = (0, 0, 0)
  
  cv2.imwrite(&quot;result.png&quot;, img)
  </code></pre>
  <p>And I have this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;e:\Projects\Captcha Decrypt\main.py&quot;, line 9, in &lt;module&gt;
      for x in img.shape[0]:
  TypeError: 'int' object is not iterable
  </code></pre>
  <p>Can you solve this problem?</p>