Commit 85aef40e authored by njean42's avatar njean42
Browse files

"GutterThreshold" is a thing of the past.

parent 463a324f
......@@ -168,10 +168,6 @@ class Kumiko:
setattr(panels[i],d,newcoord)
def getGutterThreshold(size):
return sum(size) / 2 / 20
def parse_image(self,filename,url=None):
img = cv.imread(filename)
if not isinstance(img,np.ndarray) or img.size == 0:
......@@ -194,8 +190,6 @@ class Kumiko:
print('License file {} is not a valid JSON file'.format(filename+'.license'))
sys.exit(1)
self.gutterThreshold = Kumiko.getGutterThreshold(infos['size'])
gray = cv.cvtColor(img,cv.COLOR_BGR2GRAY)
tmin = 220
......
......@@ -106,9 +106,8 @@ class Tester:
print('error, image sizes are not the same',json1[p]['size'],json2[p]['size'])
continue
gutterThreshold = Kumiko.getGutterThreshold(json1[p]['size'])
panels_v1 = list(map(lambda p: Panel(p, gutterThreshold/2), json1[p]['panels']))
panels_v2 = list(map(lambda p: Panel(p, gutterThreshold/2), json2[p]['panels']))
panels_v1 = list(map(lambda p: Panel(p), json1[p]['panels']))
panels_v2 = list(map(lambda p: Panel(p), json2[p]['panels']))
known_panels = [[],[]]
j = -1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment