title: pytesseract.image_to_string(im) not able to access the input file
body: <p>Trying to read text from an image using pytesseract. Using the following two commands. Image.open does return the image properly, but the next command fails with windows error of file not found.</p>
  
  <p>First of all I don't understand, why it is trying to read the image from the disk, as it is already read by previous statement and image im is already in the memory.
  Then I have included the directory where pytesseract.exe is, in the path of environment variables, as suggested by some one. Still the same issue persists.</p>
  
  <p>I am using anaconda distribution of python 3.5 on windows 10. Running the code from Jupyter Notebook, not python command line. </p>
  
  <p>Installed pytesseract using pip, and corresponding import statement in jupyter notebook get executed without any error.</p>
  
  <p>appreciate any help in resolving this issue.</p>
  
  <pre><code>im = Image.open('test_image1.png')  
  text = pytesseract.image_to_string(im)
  </code></pre>
  
  <blockquote>
    <p>FileNotFoundError                         Traceback (most recent call
    last)  in ()
          1 im = Image.open('test_image1.png')
    ----> 2 text = pytesseract.image_to_string(im)</p>
    
    <p>C:\Anaconda3\envs\keras35\lib\site-packages\pytesseract\pytesseract.py
    in image_to_string(image, lang, config, nice, boxes, output_type)
        191         return run_and_get_output(image, 'txt', lang, config, nice, True)
        192 
    --> 193     return run_and_get_output(image, 'txt', lang, config, nice)
        194 
        195 </p>
    
    <p>C:\Anaconda3\envs\keras35\lib\site-packages\pytesseract\pytesseract.py
    in run_and_get_output(image, extension, lang, config, nice,
    return_bytes)
        138         }
        139 
    --> 140         run_tesseract(**kwargs)
        141         filename = kwargs['output_filename_base'] + os.extsep + extension
        142         with open(filename, 'rb') as output_file:</p>
    
    <p>C:\Anaconda3\envs\keras35\lib\site-packages\pytesseract\pytesseract.py
    in run_tesseract(input_filename, output_filename_base, extension,
    lang, config, nice)
        109         command.append(extension)
        110 
    --> 111     proc = subprocess.Popen(command, stderr=subprocess.PIPE)
        112     status_code, error_string = proc.wait(), proc.stderr.read()
        113     proc.stderr.close()</p>
    
    <p>C:\Anaconda3\envs\keras35\lib\subprocess.py in <strong>init</strong>(self, args,
    bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds,
    shell, cwd, env, universal_newlines, startupinfo, creationflags,
    restore_signals, start_new_session, pass_fds)
        674                                 c2pread, c2pwrite,
        675                                 errread, errwrite,
    --> 676                                 restore_signals, start_new_session)
        677         except:
        678             # Cleanup if the child failed starting.</p>
    
    <p>C:\Anaconda3\envs\keras35\lib\subprocess.py in _execute_child(self,
    args, executable, preexec_fn, close_fds, pass_fds, cwd, env,
    startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread,
    c2pwrite, errread, errwrite, unused_restore_signals,
    unused_start_new_session)
        955                                          env,
        956                                          cwd,
    --> 957                                          startupinfo)
        958             finally:
        959                 # Child is launched. Close the parent's copy of those pipe</p>
    
    <p>FileNotFoundError: [WinError 2] The system cannot find the file
    specified</p>
  </blockquote>