RoboCup-SSL / ssl-vision

Shared Vision System For The RoboCup Small Size League
GNU General Public License v3.0
90 stars 111 forks source link

Initialize mask with ones to detect bot pattern images correctly #167

Closed g3force closed 4 years ago

g3force commented 4 years ago

With #158 a image mask has been introduced for thresholding.

The thresholding is also used to extract the blobs from the standard robot pattern (which is an image), in which case a default mask is generated.

Unfortunately, the mask is generated all zero, instead of all one, so the standard robot pattern can not be read correctly.

This PR initializes the mask with ones instead. This fixed the issue for me.

tobiasheineken commented 4 years ago

Works for me, thank you.