PokemonAutomation / Arduino-Source

MIT License
21 stars 58 forks source link

Update sandwich hand detector so it can also check for the black outline #429

Closed jw098 closed 4 months ago

jw098 commented 6 months ago

Updated the detector to reduce false positives on lettuce. It checks that the matched waterfill object contains the black outline.

SandwichHandLocator::detect will still use the old method of detection, for performance reasons (I didn't test it, but I imagine that adding an extra round of waterfill matching will worsen the lag in an already laggy program). So, I think that detecting the black outline should only be done for recovery routines.

I recommend merging #428 first.

jw098 commented 4 months ago

Closing for now, since this doesn't seem to be an issue with the new sandwich hand template.