Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0809fa8

Browse files
fix to issue#94 (#95)
* fix to#94 (comment)now all text will inferred as string and the user can change it to their desired data type.* maybe a simpler solutionCo-authored-by: lolipopshock <22512825+lolipopshock@users.noreply.github.com>
1 parentcd295de commit0809fa8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/layoutparser/ocr/tesseract_agent.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ def _detect(self, img_content):
9191
)
9292
_data=pytesseract.image_to_data(img_content,lang=self.lang,**self.configs)
9393
res["data"]=pd.read_csv(
94-
io.StringIO(_data),quoting=csv.QUOTE_NONE,encoding="utf-8",sep="\t"
94+
io.StringIO(_data),
95+
quoting=csv.QUOTE_NONE,
96+
encoding="utf-8",
97+
sep="\t",
98+
converters={"text":str},
9599
)
96100
returnres
97101

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp