Skip to content

How to use

Elisson Araújo edited this page Mar 14, 2023 · 7 revisions

Main Window

Enable camera view

When this button is pressed, the application starts to get frames from the video or camera. The shortcut of this button is the number 1.

Cut segmentation field

This button enables the field crop funtion. You can disable it at any time. The strategy and vision system may not work properly without this option marked. To configure the field crop area see the button beside this one. The shortcut of this button is the number 2.

Enable segmentation and package send

This button starts the computational vision system.

Segmentation configuration

This button opens the configuration of the automatic segmentation system in new window. The shortcut of this button is the letter m in the keyboard.

Maggic Segmentation

Have you ever wondered how and why Maggic Segmentation works? Well, we'll try to explain some of the process and details you should care about.

Index

Maggic Vision Dialog

[top] This is the Maggic Vision Dialog. In it you can see the most important information about what's going on in the segmentation process.

How does this work?

[top] The pipeline:

  • Grayscale Filter in RGB
  • The Hue Pivots

Grayscale Filter in RGB

[top] The Grayscale Filter is one of the most important part of the process. With this filter we avoid false-positive classifications of pixels that have low chromatic level, so it's difficult to define which color is in this situation due to noise in light capture and light interference.

The Hue Pivots

[top]

How to use?

[top]

The above picture shows the details tab, here we can control all the parameters in the maggic segmentation.

We should pay attention to a few things:

  • A - The Color spectrum.
  • B - Morphological Trackbar.
  • C - Play/Pause button.
  • D - Expected Colors.
  • E - Two trackbars, defining the limits of the Morphological Trackbar mentioned in B.

The bars over the color spectrum are called pivots, each pivot labels an Expected Color.

The maggic segmentation, maps color codes in one of the Expected Colors, by looking for the closest pivot to where that color code fits in the color spectrum.

In order to map correctly we need to drag each corresponding pivot to its correct region, depending on the colors we can see in the game image. This is important because the regions may differ due to light conditions.

To spot the color labeled by a pivot, you can right click on it, so one of the expected colors highlights itself. To replace a pivot you can left click and drag it to the correct position. The image below shows a pivot spotted.

The morphological Trackbar applys a morphological operation, in the segmented image, to reduce noise. We can control the morphological trackbar precision by modifying the two trackbars that control the Morphological trackbar limits.

Blobs size configuration

This button opens the configuration of the computational vision system in a new window. The shortcut of this letter v in the keyboard.

Camera configuration

Use video