2016-12-23 11:48:56 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
|
2016-12-23 11:48:56 -05:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2018-09-23 21:20:12 -07:00
|
|
|
package edu.wpi.first.vision;
|
2016-12-23 11:48:56 -05:00
|
|
|
|
|
|
|
|
import org.opencv.core.Mat;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A vision pipeline is responsible for running a group of
|
|
|
|
|
* OpenCV algorithms to extract data from an image.
|
|
|
|
|
*
|
|
|
|
|
* @see VisionRunner
|
|
|
|
|
* @see VisionThread
|
|
|
|
|
*/
|
|
|
|
|
public interface VisionPipeline {
|
|
|
|
|
/**
|
|
|
|
|
* Processes the image input and sets the result objects.
|
|
|
|
|
* Implementations should make these objects accessible.
|
|
|
|
|
*/
|
|
|
|
|
void process(Mat image);
|
|
|
|
|
|
|
|
|
|
}
|