Git Product home page Git Product logo

javi-ei / carcam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asathiya007/carcam

0.0 0.0 0.0 125.88 MB

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.

Home Page: https://youtu.be/IRfuNHZG8CQ

Shell 0.17% Python 94.01% Jupyter Notebook 5.82%

carcam's Introduction

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!

carcam's People

Contributors

asathiya007 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.