Skip to content

Commit f180d45

Browse files
committed
Fix reviewing word results
1 parent 9736173 commit f180d45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/rapidocr/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def recognize(self, pixels: Array[RGBQUAD], imageInfo: RecogImageInfo, onResult:
107107
for char in line:
108108
rect: RectLTWH = RectLTWH.fromCollection(*[Point(point[0], point[1]) for point in char[2]])
109109
words.append({"x": rect.left, "y": rect.top, "width": rect.width, "height": rect.height, "text": char[0]})
110+
lines.append(words)
110111
else:
111112
for box, text in zip(result.boxes.tolist(), result.txts):
112113
rect: RectLTWH = RectLTWH.fromCollection(*[Point.fromFloatCollection(*point) for point in box])

0 commit comments

Comments
 (0)