# Verifying Toast

**URL:** <https://discuss.appium.io/t/verifying-toast/3676>\
**Category:** Support\
**Created:** [April 1, 2015, 1:12pm UTC](https://discuss.appium.io/t/verifying-toast/3676 "2015-04-01T13:12:54Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Hamza](https://discuss.appium.io/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@Hamza](https://discuss.appium.io/u/Hamza)\
**Post date:** [June 29, 2016, 11:33am UTC](https://discuss.appium.io/t/verifying-toast/3676/21 "2016-06-29T11:33:09Z")

</div>

## I found a way for python.

**First install tesseract like this:**

`sudo apt-get install tesseract`

**Then you can use it as below:**

`tesseract example.jpg out`

**install pytesseract using pip:**

`pip install pytesseract`

**install pillow if not done yet:**

`pip install pillow`

**install tesseract-ocr:**

`sudo apt-get install tesseract-ocr`

* * *

Then use it in your python code like this:

`from PIL import Image  
import pytesseract

# path to your file

im = Image.open(‘test.png’)  
print pytesseract.image\_to\_string(im)`

---

_[View the full topic](https://discuss.appium.io/t/verifying-toast/3676)._
