Skip to content

CarCam is an AI pipeline for autonomous vehicles, built with PyTorch and OpenCV. CarCam uses ML and computer vision to detect lanes, track road entities (like other vehicles), and assess collision risks with these road entities, with input from only one camera, making safe self-driving simple, cheap, and easily accessible to all vehicles.

Notifications You must be signed in to change notification settings

asathiya007/carcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CarCam

CarCam is a artificial intelligence pipeline for autonomous vehicles, built with PyTorch and OpenCV. CarCam uses machine learning and computer vision to detect lanes, track road entities (like other vehicles), and assess collision risks with these road entities.

CarCam relies on input from only one camera, instead of relying on several cameras, multiple sensors, and/or complex systems like LiDAR, making safe self-driving simple, cheap, and easily accessible to all vehicles.

Lanes are marked with blue lines, and road entities are bounded in green or red boxes. A road entity with which a collision is unlikely to occur is bounded in a green box and is deemed 'safe'. A road entity with which a collision may occur is bounded in a red box and is deemed 'risky'.

How to Run

  1. Download/clone the repository.
  2. Create a Python virtual environment and install the packages listed in the requirements.txt file, using conda, pip, etc. To do this step with conda, run this command: conda create --name <your env name> --file requirements.txt.
  3. Run this command: cd config/ && sh ./download_weights.sh to download the weights of the YOLO object detection model.
  4. Walk through the Jupyter notebook carcam.ipynb or run the carcam.py file with this command: python3 carcam.py. Depending on the specs of your system, this may take a while, so please be patient. Your results will be ready soon!

View Results

Download and play the video output.mp4. The same video can also be watched on YouTube, here: https://youtu.be/IRfuNHZG8CQ. Enjoy!

About

CarCam is an AI pipeline for autonomous vehicles, built with PyTorch and OpenCV. CarCam uses ML and computer vision to detect lanes, track road entities (like other vehicles), and assess collision risks with these road entities, with input from only one camera, making safe self-driving simple, cheap, and easily accessible to all vehicles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published