Could tesseract return the index for the picture??

20 views
Skip to first unread message

luffy monky

unread,
Dec 23, 2019, 8:58:06 AM12/23/19
to tesser...@googlegroups.com
Hi all 
     thanks for you. I had finish my homework~~
Now I can use the Pytesseracr.image_to_string(image) that will show all the text..
but I had an other question..
If I make sure my image had some match word like "nothing"
and my pic by the command will show  you know nothing , John snow.

can I find the index of nothing(x,y) in my picture by pytesseract?


but don't find any Intuitive instructions@@

I think if pytesseract can return the text , It also will know the word's index. may I wrong??

luffy monky

unread,
Dec 24, 2019, 1:20:50 AM12/24/19
to tesser...@googlegroups.com
Hi all 
     I find a good command that contain the info I need.
     pytesseract.image_to_data
     that will show a lot of information about the pic
     So now I just need try to soft the 
     "left"    "top"     "width"   "height"  by  text info
     but with this command will show that a string type
      I try to change to tsv but the format not a good.....
     Could any provide any advice for me how to solve this?
     


BR
Luffy

luffy monky <luffy...@gmail.com> 於 2019年12月23日 週一 下午9:57寫道:
Reply all
Reply to author
Forward
0 new messages