I'd like to count the number of white pixels in this image. I defined following the HSV value for white color.
# white color
low_white = np.array([0, 0, 0])
high_white = np.array([0, 0, 255])
white_mask = cv2.inRange(hsv_frame, low_white, high_white)
white= cv2.bitwise_and(frame, frame, mask=white_mask)
However due to weather condition and shadow in the image, it does not count the whole white pixels as white. It only considers top part of the cab as white. How can I include maximum amount color range in white color HSV definition?