Giter Club home page Giter Club logo

robot-vision's Introduction

robot vision

This repository contains the vision part, which is also what I mainly contributed to, of the robot project of "Intelligent Robots Design and Implementation" course of E.E, Tsinghua University. It used non-deep learning methods of object detection.

Features

Real-time monitor and output for debug

real-time monitor

Console output:

possible track: area 76027.5, solidity 0.9976183915285596, current
candidate track: area 76023.5, solidity 0.9976968201682437, current
landmine: area 1677.0, solidity 0.982, area_ratio 0.636
{'light': [], 'landmine': [(76, 133)]} 

Detect objects

detect the signal light

It can detect red, yellow or green light.

detect the track

It can detect the track by color matching and canny edge detection. detect the track

detect the landmine

It can detect the landmine by color, area, shape and solidity. detect the landmine

detect the ditch

It can detect the ditch from discontinuous tracks and parallel brinks. detect the ditch

Usage

Just specify the address of the video stream and then it's settled. For example,

from image_processor import ImageProcessor
stream = 0
img_proc = ImageProcessor(stream, True)  # `True` for debug mode
data = img_proc.analyze_objects()

Every time you call analyze_objects, ImageProcessor will detect the objects and return the information. In the above example:

  • data['light'] stores information about the signal light
  • data['track'] stores information about current track (i.e. which the robot stands on)
  • data['track_next'] stores information about the next track (i.e. which the robot does not stand on)
  • data['landmine'] stores information about the landmine
  • data['ditch'] stores information about the ditch

License

MIT

robot-vision's People

Contributors

raineggplant avatar

Watchers

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