-
Notifications
You must be signed in to change notification settings - Fork 6
How to use
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.
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.
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.
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
[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.
[top] The pipeline:
- Grayscale Filter in RGB
- The Hue Pivots
[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.
[top]
[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 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.