Add sliders for adjusting the HSV thresholds, making tuning practical.
Here's a good cut at tuning those parameters and some of the other parameters.
The recognizer really works!
It can be further tuned and refined.
git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4129 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/971CV/src/org/frc971/Recognizer.java b/971CV/src/org/frc971/Recognizer.java
index 556cff0..c8818b7 100644
--- a/971CV/src/org/frc971/Recognizer.java
+++ b/971CV/src/org/frc971/Recognizer.java
@@ -9,6 +9,18 @@
* @author jerry
*/
public interface Recognizer {
+
+ /**
+ * Sets the HSV filter to allow H in [minHue .. maxHue], S >= minSat,
+ * V >= minVal.
+ */
+ public void setHSVRange(int minHue, int maxHue, int minSat, int minVal);
+
+ public int getHueMin();
+ public int getHueMax();
+ public int getSatMin();
+ public int getValMin();
+
/**
* Processes a camera image, returning an image to display for targeting
* and debugging, e.g. with cross-hairs and marked targets.