修正变量未同步问题
This commit is contained in:
@@ -74,7 +74,7 @@ def find_boxes(content, layout, offset=0, length=None, improve=False, image_path
|
|||||||
for layout in layouts:
|
for layout in layouts:
|
||||||
for c in extra_content:
|
for c in extra_content:
|
||||||
if c in layout[1]:
|
if c in layout[1]:
|
||||||
temp_box = find_boxes(content, layout)[0]
|
temp_box = find_boxes(c, layout)[0]
|
||||||
if temp_box:
|
if temp_box:
|
||||||
boxes.append([
|
boxes.append([
|
||||||
temp_box[0] + capture_box[0] - offset_x,
|
temp_box[0] + capture_box[0] - offset_x,
|
||||||
|
|||||||
Reference in New Issue
Block a user