Page 1 of 1

VisionRealShape.java: slingshot/TNT mix-up

PostPosted: Sun Jul 27, 2014 7:19 pm
by Andreas Humenberger
Dear all,

we encountered a problem concerning the recognition of the slingshot in VisionRealShape.java. In some cases, a TNT object gets recognized as slingshot. This also means that most of the other objects aren't recognized at all, since there is check object.X > (slingshot.X + 100).

In VisionRealShape.findSling() there are several objects which match the type ImageSegmenter.SLING, and sometimes the wrong one gets picked.
I think the main problem is, that TNTs aren't handled by VisionRealShape, which means that TNTs are recognized as something else.

An example is given by level 20 on page 2 of "poached eggs" (screenshot is attached).

Best regards,
Andi

Re: VisionRealShape.java: slingshot/TNT mix-up

PostPosted: Sun Jul 27, 2014 9:52 pm
by Gary
Hello Andreas

Thank you for pointing out this issue.
You are right. RealShapeVision::findSling in some cases detects multiple objects as candidates of the slingshot. Those objects have similar colors as the slingshot. Previously known sling-typed objects are wooden frames which often support the slingshot. To filter the wooden frames, we always use the highest sling-typed object as the slingshot (that is why some TNT boxes are detected as the sling).

To filter the spurious slingshots, one can apply additional constraints. E.g. only search the slingshot in the area of x < 300; evaluate the shape of the sling-typed objects.

Smile
Gary

Re: VisionRealShape.java: slingshot/TNT mix-up

PostPosted: Mon Jul 28, 2014 8:47 am
by Jochen
Gary wrote:To filter the spurious slingshots, one can apply additional constraints. E.g. only search the slingshot in the area of x < 300; evaluate the shape of the sling-typed objects.


Or check for birds within or overlapping the slingshot-type objects...

Jochen