question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latvian language incorrect

See original GitHub issue

Hey,

Latvian language is incorrect. Does not recognize long marks (macron).

import easyocr
reader = easyocr.Reader(['lv'])
txt = reader.readtext('avatar.jpg')
print(txt)

avatar

Output:

[([[42, 12], [463, 12], [463, 62], [42, 62]], ‘Gada ir tikai divas dienas,’, 0.057680848985910416), ([[53, 57], [449, 57], [449, 101], [53, 101]], ‘kuras mes neko nevaram’, 0.41570523381233215), ([[39, 101], [143, 101], [143, 143], [39, 143]], ‘iesakt.’, 0.9080015420913696), ([[155, 101], [463, 101], [463, 143], [155, 143]], ‘Viena ir vakardiena’, 0.32598042488098145), ([[185, 143], [469, 143], [469, 187], [185, 187]], ‘ritdiena. Tadejadi’, 0.2768159508705139), ([[35, 149], [153, 149], [153, 185], [35, 185]], ‘un otra’, 0.5262686610221863), ([[66, 184], [434, 184], [434, 232], [66, 232]], ‘šodien ir ista diena, lai’, 0.17492368817329407), ([[63, 231], [442, 231], [442, 272], [63, 272]], ‘miletu, ticetu, daritu un’, 0.17923244833946228), ([[68, 266], [267, 266], [267, 320], [68, 320]], ‘galvenokart’, 0.8032127618789673), ([[295, 275], [431, 275], [431, 313], [295, 313]], ‘dzivotu!’, 0.7159291505813599)]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
viktors1982commented, Jul 10, 2020

there is nothing between them.

image

1reaction
rkcosmoscommented, Jul 10, 2020

That’s because 1. my list of Latvian characters doesn’t have characters with long mark. (see this file ) You can help me by send a PR with updated characters list. 2. Even with updated character list, Latin model currently doesn’t have those characters. So you will have to wait for next version of model to be able to recognize that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common mistakes Latvians make in English | The Real Riga
Languages are like arts, they look easy on the eye, but are seriously easy ... These are direct, but incorrect, translations from Latvian....
Read more >
Latvian language keyboard layout - Microsoft Community
I just installed the language pack for latvian and cannot understand the keyboard. Types everything incorrectly!
Read more >
What's up with the Latvian language? : r/latvia - Reddit
Native English speaking youth use a lot of local slang and improper grammar to communicate as well. And one reason to not notice...
Read more >
Lash Out Over Language in Latvia - Medium
Latvia transitions to native language requirement in schools, as Russian language ... The anchor incorrectly states nearly half of the Latvian population ...
Read more >
Why You Will Almost Definitely Have to Change Your Name ...
Correct use of Latvian and resistance to the Russian loan words that increasingly entered the language became a means of passive opposition for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found