blob: c8818b7eaba7cacb208eec121d90649d70fbe6ee [file] [log] [blame]
jerrym6ebe6452013-02-18 03:00:31 +00001package org.frc971;
2
3import edu.wpi.first.wpijavacv.WPIColorImage;
4import edu.wpi.first.wpijavacv.WPIImage;
5
6/**
7 * Vision target recognizer.
8 *
9 * @author jerry
10 */
11public interface Recognizer {
jerrymcd2c3322013-02-18 08:49:01 +000012
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
jerrym6ebe6452013-02-18 03:00:31 +000024 /**
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}