VisionRealShape.java: slingshot/TNT mix-up

Did you find any bugs that should be fixed?

VisionRealShape.java: slingshot/TNT mix-up

Postby Andreas Humenberger » Sun Jul 27, 2014 7:19 pm

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
Attachments
Level2-20.json_RealShape.png
Level2-20.json_RealShape.png (62.48 KiB) Viewed 59222 times
Andreas Humenberger
 
Posts: 3
Joined: Sun Jul 27, 2014 6:59 pm

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

Postby Gary » Sun Jul 27, 2014 9:52 pm

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
User avatar
Gary
 
Posts: 11
Joined: Tue Mar 19, 2013 7:14 pm

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

Postby Jochen » Mon Jul 28, 2014 8:47 am

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
User avatar
Jochen
 
Posts: 86
Joined: Tue Mar 19, 2013 10:36 pm
Location: Canberra, Australia


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron