Skip to content

Saxamos/car-detector

Repository files navigation

Build Status

car-detector

This is a drawing detection application for raspberry-pi. It detects if a drawing is a car or not. There are two modes of running:

  • take a picture of your drawing
  • draw directly on the tactile screen of the raspberry

Install the app

Create a python3 venv and all the required packages and the app in your virtual env. At the root of the project, run:

python3 -m venv venv
pip install -r requirements
pip install -e .

Run the tests

pytest

Launch the app

Run the folllowing command to load the app with camera:

car_detector camera

With clicking mouse drawing and optionnal arguments:

car_detector draw --model <path/to/model> --saved <path/to/save/image>

Train a model

The modelisation notebook can be found at the root of the project. The data comes from the google quick draw application. Usefull command for port forwarding (if you use ec2 instance):

ssh -L <local:port>:localhost:<distant:port> <user>@<ip-adress>
# example to forward tensorboard:
ssh -L 8881:localhost:6006 [email protected]

Related article

Article 1: train your model

Article 2: deploy it on a raspberry

Article 3: use the model and enhance it

### Schemes

Hardware issues on ARM

ARMaggedon

#### Use Ansible to configure Raspbian on QEMU

Hans Ziebel

#### Pipeline overview

Pipeline

About

A car detection app for raspberry

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published