Skip to content

Commit

Permalink
calculate white proportion
Browse files Browse the repository at this point in the history
  • Loading branch information
bw4sz committed Mar 30, 2020
1 parent 8864c80 commit 834313d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zooniverse/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def find_files(path):
is_white = np.sum(img_reshaped == [255,255,255])/img_reshaped.size

if is_white > 0.25:
print("{} is an edge tile, {number:.{digits}f}% white pixels".format(tile_path,number=is_white*100,digits=1))
print("{} is an edge tile, {number:.{digits}f}% white pixels".format(i,number=is_white*100,digits=1))
continue

#Write as a png
Expand Down

0 comments on commit 834313d

Please sign in to comment.