Giter VIP home page Giter VIP logo

lanefinder's Introduction

lanefinder

Build Status

TPU accelerated traffic lane segmentation engine for your Raspberry Pi!

Thanks to combined power of Raspberry Pi and Edge TPU, this lane segmentation engine is small enough to actually fit in car as regular dashcam, efficient enough to run from powerbank and fast enough to provide real-time traffic lane detection support in low visibility conditions.

Models

Currently lanefinder runs on Unet with MobileNetV2 backbone and custom decoder. Model has been trained on CU Lane Dataset and finetuned using only night time images collected during some long autumn nights. In order to run on edgetpu, frozen graph went through process of full integer quantization. I've published code allowing you to train this net here. Future releases should include model selection and improved performance (that is if I manage to cram EfficientNet on TPU).

Framerate

At the moment lanefinder supports two modes - camera feed and video playback. Former holds steady ~30 fps while latter tends to drop to around 10 fps due to some unknown at this point video/acceleration issue. Didn't look into it yet since playback is not the main (nor default) mode and I only implemented it to record prototype.

Prototype

Hardware requirements

  • RaspberryPi 3 B+ running Raspbian Stretch (support for Buster in future release)
  • Some kind of touchscreen for Pi
  • Pi camera (don't go cheap here, the bigger FOV the better)
  • Powerbank capable of at least 2.4A output, if you want to test this in your car (as i did)
  • Edge TPU

Install and Run

Easy. Use included setup script by running sudo chmod +x install.sh && ./install.sh. Remeber to reenable camera interface using sudo raspi-config after reboot! After this you are all set up and can start lanefinder with simple python3 main.py. Current build supports Raspbian Stretch with Python 3.5 If TPU has not been detected, lanefinder runs in passthrough mode since inference on Pi processor only is not supported.

lanefinder's People

Contributors

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