This repository was archived by the owner on Dec 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Sampling Order Detector
Alex Carter edited this page Sep 23, 2018
·
2 revisions

LAST UPDATED: 9/22/2018 DogeCV 2018.0
The sampling order detector, when having sight of all 3 auton minerals, will return the position of the gold mineral, allowing you to knock it off succesfully.
- Distance between minerals affect scoring
- Guessing with only two minerals
- Better Silver detection
- Implement DogeCV performance settings
- Pick Top Two Scoring Elements instead of any two
- Brightly lit floor can cause issues
- Needs all 3 minerals in sight
The sampling order detector uses a Yellow LeviColorFilter to locate 1 gold mineral and an HSVColorFilter to locate all white minerals, then compares their X coords to find the location of the gold, either CENTER, LEFT or RIGHT (UNKNWON if we do not know the current location)`
This is made for those writing autons in which the location of the gold mineral needs to be known, and whos camera placement allows to see all 3 minerals.
-
ratioScorer- aRatioScorerto find perfect squares. -
maxAreaScorer- aMaxAreaScorerto find perfect large objects -
perfectAreaScorer- aPerfectAreaScorerto find tuned size objects. NOTE: In this detector, settingareaScoringMethodwill determine which area scorer to use.
-
areaScoringMethod- (DogeCV.AreaScoringMethod) - an enum to determine which area scorer to use. (MAX_AREAorPERFECT_AREA) -
ratioScorer- SEE ABOVE -
maxAreaScorer- SEE ABOVE -
perfectAreaScorer- SEE ABOVE -
yellowFilter- (DogeCVColorFilter) - Filter used to find gold (Defaults toLeviColorFilter(LeviColorFilter.ColorPreset.YELLOW,70)) -
whiteFilter- (DogeCVColorFilter) - Filter used to find gold (Defaults tonew HSVColorFilter(new Scalar(40,25,200), new Scalar(40,40,50)))
Currently this detector returns the following:
-
isFound()- Is the mineral row detected? -
getLastOrder()- Get the last known mineral order (UNKOWN,LEFT,RIGHTorCENTER) -
getCurrentOrder()- Get the current mineral order (UNKOWN,LEFT,RIGHTorCENTER)
-
2018.0
- First Public Release.