LiveTranslate detects foreign language text from a video feed, and displays the text's English translation in real-time.
- Install Python 2.7x
- Install Numpy 1.7
- Install OpenCV 2.4.10
- Install tesseract-ocr (including desired language packs) and the Python libraries
- Install python-tesseract
- Follow this guide to get your Microsoft Translator credentials
- Grab azure_translate_api.py
- Place in the same directory as main.py
- https://github.com/neerajcse/python_azure_translate_api
- Install the Requests Python package
- "pip install requests" (Use Google if you need to learn how to use pip)
- Run main.py
- (Optional) Change the source and target translation languages
- Hold up (highly-contrasting) text and have it translated!
- ESC to quit.
We made this in 24 hours at Hack Rice 2014. Much of the code was written whilst simultaneously learning new frameworks, debating how to use such frameworks, and not sleeping. The code is likely buggy, and certainly needs some style improvements!