title: How to calculate white area with Python and Opencv?
body: <p>I am triyng calculate the area of the white pixels in this image:</p>
  <img src="https://i.stack.imgur.com/tSbz9.png" width="400" />
  <p>My code :</p>
  <pre><code>import cv2
  import matplotlib.pyplot as plt
  import numpy as np
  
  img = cv2.imread(&quot;tepsi.jpg&quot;)
  hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
  mask = cv2.inRange(hsv,(21, 10, 15), (30, 255, 255) )
  cv2.imshow(&quot;orange&quot;, mask)
  cv2.waitKey()
  cv2.destroyAllWindows()
  </code></pre>
  <p>How can I solve this problem? Actually my purpose is to find empty areas of food tray.</p>
  <p>Thank you for your answers.</p>