Error in opening image file in PIL

前端 未结 6 603
闹比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

    your image path maybe?

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

    try this:

    import os
    os.path.join("C:\\", "Documents and Settings", "Administrator")
    

    you should get a string similar to the one in the previous line

提交回复
热议问题