sakarika / kanjitomo-ocr

Java library for identifying Japanese characters from images
Other
188 stars 22 forks source link

How does KanjiTomo recognise the area to scan? #5

Closed berzi closed 3 years ago

berzi commented 3 years ago

Hi, I have just a little question since I'm working on a similar program to KanjiTomo and am curious: how does KT pick the area close to the pointer to then send to OCR? It doesn't constantly OCR everything near the pointer to see if there's any character match, does it?

sakarika commented 3 years ago

Hello. KanjiTomo uses Java's Robot class to take small screenshots around mouse cursor. This is done when mouse cursor is moved, so in effect OCR is running constantly.