Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.45 KB

README.md

File metadata and controls

66 lines (53 loc) · 1.45 KB

Raspberry-Pi

HPCC Conference Raspberry Pi competition project

Device

Device

Architecture

Architecture

AWS Resources

Create the S3 buckets and the DynamoDB instance using Terraform. The file main.tf defines the cloud infrastructure needed.

> terraform plan
> terraform apply

Running

This application uses Python 3. You should not be using Python 2 anymore, EOL 2020.

There are many ways to setup AWS credentials, most typical is environment variables and .aws/config files. Credentials are expected to already be sourced.

Required pip modules

  • boto3
  • Pillow
  • IMDbPy
  • gpiozero
  • picamera
  • pygame
  • google_images_download
> python main.py

AWS Services

  • Rekognition
  • Polly
  • DynamoDB
  • Route 53
  • S3

Flow

  1. power on the unit with AC or battery pack
  2. boots into command prompt
  3. Linux init.d system runs python script "main.py"
  4. speaker will emit a ready signal when the system is initialized
  5. object is triggered by a mechanical action - button push
  6. speaker emits a countdown
  7. capture picture from camera
  8. save picture to /tmp/image.jpg
  9. upload picture to S3
  10. delete /tmp/image.jpg
  11. call apis and store label counts
    1. detect_faces
    2. recognize_celebrities
    3. detect_labels
    4. detect_text
  12. JavaScript generated on stats
  13. website updated with graph and photo booth
  14. speaker emits voice of what is analyzed
  15. return script to ready state