Code Monkey home page Code Monkey logo

eyantra's Introduction

eYantra

A bot that follows black line on a white surface using video analytics and image processing. A raspberry pi and camera is placed on the bot for this purpose. Multi-threading concept was used to increase the frame rate from pi-cam.

alt text

The robot will traverse the field represented by the arena using image processing. Raspberry Pi and PiCamera are used to serve the purpose. The frame captured by the PiCam is divided into four equal parts horizontally. The four parts are stored in the array. Then each element of the array is processed by the image processing algorithm. โ— First of all, contour with maximum area is identified in the element and its centroid is detected. โ— Then the shift between the midpoint of element and the centroid of the contour with maximum area helps us to identify the direction and the intensity of the turn. For this a vertical line in the middle of the frame is drawn. The distances between the centroid of all the 4 contours of the image-parts and the middle line is calculated. If the centroid is in the left, then its distance is taken to be negative and if the centroid lies to the right of the middle line, then its distance is taken to be positive. The sum of all the four distances is calculated. The sign of the sum gives us the direction and the magnitude of the sum gives the intensity of the turn .

The bot also detects the coloured markers in the run :- their shape, color and number and overlays the corresponding image on the overlay image as shown:

alt text

eyantra's People

Contributors

bhawana1999 avatar abhaysheel avatar

Watchers

James Cloos avatar

Forkers

abhaysheel

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.