breezedeus / Pix2Text

An Open-Source Python3 tool with SMALL models for recognizing layouts, tables, math formulas (LaTeX), and text in images, converting them into Markdown format. A free alternative to Mathpix, empowering seamless conversion of visual content into text-based representations. 80+ languages are supported.
https://p2t.breezedeus.com
MIT License
1.98k stars 188 forks source link

Multilingual not working? #148

Closed Maissan26 closed 1 month ago

Maissan26 commented 1 month ago

Hello I'm quite new to this I tried following the pix2text_v1_1.ipynb.

When i tried to change the total_config to include a certain language it still uses the original language of the image.

image

In this case, i change the 'vi' to 'ko'.

Despite that the output is still in Vietnamese. Am I doing something wrong. Thank you for the time and guidance

breezedeus commented 1 month ago

try this:

total_config={
    'text formula': {'languages': ('ko', )}  # you missed ","
}
Maissan26 commented 1 month ago

Thank you for the response, however when I tried changing the config multiple times but it still persist, what I dont understand is when I follow the multilingual it works only on the given image and all other image default to chinese image image