close

其實這個library還蠻多東西可以玩的,
比如說圖像文字的辨識( 這個可能就需要training )

說實在的,有些還是不是那麼準確。

 




import time
import pytesseract


def main():
    pytesseract.pytesseract.tesseract_cmd=r'C:\Program Files\Tesseract-OCR\tesseract.exe'


    text=pytesseract.image_to_string(Image.open('D:\\!Work\\!X\\SampleTrace\\venv\\src\\eng1.jpeg'),
                                     lang='chi_tra')

    print(text)


if (__name__ == '__main__'):
    main()



image

 

 

 

 

OUTPUT:

BREAKIN?Y THE 全ATUE

1 nave always Known

1 just di1qn't underatand
the inner conflictions
apprest1i1ng ourp hanqs
grav1tat1ng close enough
expans1ve q1istamce between
1i couldn"t give 7you more
but 1 meant everytph1ing
When the qay comes

you find your heart

wants something more

tnan a piecee anqd a part
yourp 11fe wi1l1l1 change
11ke asatatue set fpee

to walk among us

to created eat1ny

we qiqn't break any pules
we q1dn't make mlastalikes
mak1ng beautYy in 1oving
mak1ng lovinz for qaya

SHILOW

Process finished with exit code -1
 

 

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Eric 的頭像
    Eric

    一個小小工程師的心情抒發天地

    Eric 發表在 痞客邦 留言(0) 人氣()