Using a camera module mounted on top of the Raspberry PI 4, this project will capture an image, send it to Google Cloud Vision for recognition, receive the response, send it to Google translate to translate it to diffrent languages and finally send it to Google Cloud text to speech to say the content.
It uses OKDO Raspbperry PI 4 Kit [https://www.okdo.com/p/okdo-raspberry-pi-4-4gb-model-b-starter-set/] and Camera Module [https://uk.rs-online.com/web/p/video-modules/9132673]
- Have a google cloud platform account, you can create one for free.
- Enable the Google Cloud Vision API and the Google Cloud Text to Speech API
- Install python client liberaies
- pip3 install --upgrade google-cloud-texttospeech
- pip3 install --upgrade google-cloud-vision
- pip3 install --upgrade google-cloud-translate
- create service account file (see this link)[https://cloud.google.com/docs/authentication/getting-started]
- SET GOOGLE_APPLICATION_CREDENTIAL environment variable to the path of the service account file that you downloaded
- Enable camera interface on Raspberry PI [https://www.raspberrypi.org/documentation/configuration/camera.md]
- Using a breadboard, connect 2 buttons one on GPIO7 and one on GPIO8
- Run python script
- cick on the button to capture the image and trigger AI recognition and, the second button will do a replay of the last recognised image.
