Git Product home page Git Product logo

carwatch's Introduction

Overview

The goal of carwatch is to capture a video stream and detect cars waiting at the parking garage gate for it to close before leaving.

When a car is detected, carwatch will take a screenshot and save it into a JPG.

Example Detection

Carwatch also provides ability to create a weekly report and send it by email once a week with graph and screenshots attached in a zip file.

Example Report

Carwatch is designed to capture a RTSP video stream and run on a Raspberry Pi.

Installation

Requirement min Python 3.

OpenCV install on Ubuntu:

sudo apt update
sudo apt install libatlas-base-dev
sudo apt install python3-opencv
python3 -c "import cv2; print(cv2.__version__)"

OpenCV install on Mac (for testing):

brew install opencv
echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

Python libraries needed:

pip3 install opencv-python
pip3 install pytesseract
pip3 install matplotlib
pip3 install pandas
pip3 install Pillow

After you clone the git repository, rename the file config_app.sample.py to config_app.py and edit the mail and RTSP configuration. You may also tune other detection settings in config_detection.py which might depend on your camera.

cd /home/user/carwatch
nohup python3 carwatch.py 2>&1 &> carwatch.log &

Service Monitor script to make sure the script is restarted in case it dies (also used to start when the OS boots):

*/5 * * * * cd /home/user/carwatch ; ./service_monitor.sh >> carwatch.log

carwatch's People

Contributors

rjouhann avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.