jcl5m1 / brakelight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brake Light Detector

OpenCV python code for detecting brake light activation. Detection code auto-calirbates min/max pixel values within each detection region to compute detection threshold. Detection regions are defined in a json file. It can also warp the incomming image to center the vehicle if the yaw/pitch (and camera vertical FOV) values are available.

Example image

Output {'left': False, 'center': False, 'right': True}

Run with test images: python main.py --test

Run with webcam: python main.py

Press escape to quit

About

License:Apache License 2.0


Languages

Language:Python 100.0%