jerrym | 6ebe645 | 2013-02-18 03:00:31 +0000 | [diff] [blame] | 1 | package org.frc971;
|
| 2 |
|
| 3 | import edu.wpi.first.wpijavacv.WPIColorImage;
|
| 4 | import edu.wpi.first.wpijavacv.WPIImage;
|
| 5 |
|
| 6 | /**
|
| 7 | * Vision target recognizer.
|
| 8 | *
|
| 9 | * @author jerry
|
| 10 | */
|
| 11 | public interface Recognizer {
|
jerrym | cd2c332 | 2013-02-18 08:49:01 +0000 | [diff] [blame^] | 12 |
|
| 13 | /**
|
| 14 | * Sets the HSV filter to allow H in [minHue .. maxHue], S >= minSat,
|
| 15 | * V >= minVal.
|
| 16 | */
|
| 17 | public void setHSVRange(int minHue, int maxHue, int minSat, int minVal);
|
| 18 |
|
| 19 | public int getHueMin();
|
| 20 | public int getHueMax();
|
| 21 | public int getSatMin();
|
| 22 | public int getValMin();
|
| 23 |
|
jerrym | 6ebe645 | 2013-02-18 03:00:31 +0000 | [diff] [blame] | 24 | /**
|
| 25 | * Processes a camera image, returning an image to display for targeting
|
| 26 | * and debugging, e.g. with cross-hairs and marked targets.
|
| 27 | *<p>
|
| 28 | * SIDE EFFECTS: May modify cameraImage.
|
| 29 | */
|
| 30 | WPIImage processImage(WPIColorImage cameraImage);
|
| 31 | }
|