Coder Social home page Coder Social logo

object_and_lane_detection's Introduction

Object and Lane Detection

Introduction

The purpose of this project is to make a model which can detect objects while a person is driving and make a box around them with the label of the object. These objects include vehicles, persons, traffic signals

Methodology

Catering to YOLO Input Requirements

  • Yolov5 takes an image and a text file as label for that image as input for training. A specific directory structure must also be maintained for error free training. root:> [images:>train,val],[labels:>train,val]. For this task os and shutil modules have been extensively used for files writing and copying.
  • The Detect Function
    • This function does all the work on the test video file.
    • First we run the detect.py file of yolo. It takes img size(img), pre learned weights yolov5s.pt, conf , and path to test file.
    • The detect.py file breaks the video into it’s constituent frames which are then analysed individually by the model.
    • Bounding boxes are drawn objects and the video is again merged to generate the output video.
    • The output of this code is then passed to our lane detection algorithm

Lane Detection

  • A pretrained FCNN model trained on a large dataset was used. The model has been trained on around 21000 images obtained from 12 videos.
  • The input to the lane detection code is the output of the object detection model. Hence after the objects have been detected in the input video, it’s forwarded to the lane detection code.

object_and_lane_detection's People

Contributors

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