Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Latest commit

 

History

History

vision

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Vision sample

This folder contains Python code that takes a picture from the attached Raspberry Pi camera and sends it to Google Cloud Vision API for annotation. The result is printed on the LCD screen connected to your Raspberry Pi.

To use this sample, you'll need to have the following:

  • Raspberry Pi with Raspbian.
  • RaspiCam-compatible camera.
  • PiFace-compatible LCD screen.
  • Google Cloud API JSON key that has access to Vision service. Point environment variable GOOGLE_APPLICATION_CREDENTIALS to the key file.

You need to install Python modules picamera and pifacecad to make the sample work:

pip install picamera pifacecad

but it's easy to change the code to take a picture from some other source, and report a result in some other way without writing to an LCD screen, if you don't have one.

Enjoy!