title: saving extracted text from images into file in raspberry pi
body: <p>code for extracting text from images and calling for espeak
  <img src="https://i.stack.imgur.com/lPvMQ.png" alt="code for extracting text from images and calling for espeak"></p>
  
  <p>Error
  <img src="https://i.stack.imgur.com/yZaON.png" alt="error "></p>
  
  <p>getting same error while redirecting it into a file instead of printing 
  and print function is printing it properly</p>