title: I have ValueError in Python script
body: <p>Here is my 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]))
  
  if img[0, 0] == (255, 255, 255):
      print(&quot;Yes&quot;)
  </code></pre>
  <p>But I have an error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;e:\Projects\Captcha Decrypt\main.py&quot;, line 9, in &lt;module&gt;
      if img[0, 0] == [255, 255, 255]:
  ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
  </code></pre>
  <p>Can you solve this problem?</p>