Computes the general sentiment from images of text. (newspapers, book pages, etc)
- Install tesseract via pre-built binary package
- Set up azure cognitive services resource and enable text analytics API.
- Configure variables for your machine on lines 14-17 in
main.py
- Run program by calling
python main.py data/path_to_input_image.jpg
- Tesseract-OCR Convert Image to Text (10-15 seconds on my machine)
- Clean Response (< 1 second)
- Azure Text Sentiment Analysis (< 3 seconds)
- Repeat