Skip to content

Conversation

@jw098
Copy link
Collaborator

@jw098 jw098 commented Nov 3, 2024

Olive detector and all the associated functions for pushing the olive.

class OliveMatcher : public ImageMatch::WaterfillTemplateMatcher{
public:
OliveMatcher() : WaterfillTemplateMatcher(
"PokemonSV/Olive.png", Color(0,0,0), Color(255, 255, 255), 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this supposed to work? The olive can in be multiple orientations as well as being eclipsed or occulted.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All non-green pixels are filtered out. Then the largest blob of green is considered to be the Olive. Unlike all the other detectors, the RMSD doesn't matter much. This is why it doesn't care if the olive is eclipsed or in a different orientation, as long as it's the largest blob of green.

@Mysticial
Copy link
Collaborator

Rebase

@Mysticial Mysticial merged commit e5cf988 into PokemonAutomation:main Nov 15, 2024
3 of 6 checks passed
@jw098 jw098 deleted the olive-detector branch November 16, 2024 01:23
fyex pushed a commit to fyex/Arduino-Source that referenced this pull request Jan 6, 2025
* OliveDetector

* fix build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants