修正变量未同步问题

This commit is contained in:
2024-07-25 17:30:18 +08:00
parent 7faa00fc3a
commit 4eeed39e6f

View File

@@ -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,