Error in opening image file in PIL

前端 未结 6 616
闹比i
闹比i 2021-01-02 21:25

I am trying to execute the following code

from pytesser import *
import Image

i=\"C:/Documents and Settings/Administrator/Desktop/attachments/R1PNDTCB.jpg\"         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 22:10

    Just add these two lines in your code

    import OS

    os.chdir('C:\Python27\Lib\site-packages\pytesser')  
    

    before

    from pytesser import *
    

提交回复
热议问题