The script takes a picture and counts the ratio of colorful area to black/white area
- count.py
- count the amount of colored(non black & non white) pixels and the total number of areas.
- count2.py
- separate the picture into smaller squares and count the number of squares that is occupied by colored pixels.
- calculate the percentage of the area of the counted squares in the square.
- (if not yet installed) Run "pip install opencv-python" to satisfy the independency.
- Change line 5 of "count.py" or line 6 of "count2.py" for target picture.
- Run the script under the folder where the picture is located.