Omnibus commited on
Commit
1271378
1 Parent(s): f443ef8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -25,7 +25,6 @@ def decode(im,col,tol):
25
  newData = []
26
  h1 = col.strip("#")
27
  rgb_tup = tuple(int(h1[i:i+2], 16) for i in (0, 2, 4))
28
- tol=100
29
  for item in datas:
30
  if item[0] in range(rgb_tup[0]-tol,rgb_tup[0]+tol) and item[1] in range(rgb_tup[1]-tol,rgb_tup[1]+tol) and item[2] in range(rgb_tup[2]-tol,rgb_tup[2]+tol):
31
  newData.append((0,0,0))
 
25
  newData = []
26
  h1 = col.strip("#")
27
  rgb_tup = tuple(int(h1[i:i+2], 16) for i in (0, 2, 4))
 
28
  for item in datas:
29
  if item[0] in range(rgb_tup[0]-tol,rgb_tup[0]+tol) and item[1] in range(rgb_tup[1]-tol,rgb_tup[1]+tol) and item[2] in range(rgb_tup[2]-tol,rgb_tup[2]+tol):
30
  newData.append((0,0,0))