Spike Prime - Door camera - Jakub Vojtek

From RoboWiki
Jump to: navigation, search

Back to: List of projects of Spike up Prime Interest in Science and Technology with Raspberry Pi Build Hat

About the project

The project integrates a distance sensor and a camera to monitor the entrance of a door. When the distance sensor detects movement within a specified range, the camera captures an image. The captured image is then processed using a face detection algorithm to identify and highlight faces. The images, along with the timestamps and the number of detected faces, are saved both as files and in a SQLite database for record-keeping.

BuildHat door camera.png BuildHat door camera.jpg

Video

Build a robot

  • Not all door frames are the same, build a holder that will work on yours.
  • Find a place where you camera will reach and can be placed to watch doors without movement.

Building instructions:

Get the robot ready

  • Connect the camera to the Raspberry Pi and ensure it is securely positioned in the holder.
  • Calibrate the distance sensor to ensure it accurately detects movement within the desired range.
  • Test the setup to verify that the camera captures images when movement is detected and that the images are saved correctly.

Raspberry Python Code:

Ideas for improvement

  • Integrate an alert system that sends notifications to your phone or email when movement is detected.
  • Implement a web interface to view the captured images and database records in real-time.

Evaluate your performance

  • Think about how you approached the problem and about how else could it be solved.
  • Evaluate yourself on how you adapted when something didn't work as you hoped it would.


Teacher Resources

Links