Skip to content

A fast and simple image processing method to detect H S U victims in rescue maze

License

Notifications You must be signed in to change notification settings

mhmmdshirazi/RCJRVision

Repository files navigation

RCJRVision (Robocup Junior Rescue Vision)

Table of Contents

  1. Overview
  2. Instalation
  3. Usage
  4. Dependencies

Overview

RCJRVision is a fast and simple method for Robocup Junior rescue maze and Robocup Junior Rescue simulation leagues to Detect H, S, and U Letters in an image. This package converts raw image to a solid black and white image, finds contours in the picture, chooses the most proper contour, and finally check it with pre defined letter contours to find the best match.

Instalation

Best way is to use pip:

pip install RCJRVision

Usage

Use with predefined contours

  1. Import RCJRVision

from RCJRVision import RCJRVision

  1. Make an object from HSUVision Class

my_vision = RCJRVision.HSUVision()

  1. Convert your image to an opencv image

  2. Use find_HSU method

letter, center = my_test_vision.find_HSU(img)

This method returns two variables:

  • letter:

    Key of the predefined contour dictionary. In this case: 'H' or 'S' or 'U'

  • center:

    A 2 element list that represent the center of discover contour

Dependencies

Click on the link below to see dependencies and their status:

Requirements Status

About

A fast and simple image processing method to detect H S U victims in rescue maze

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published