2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2016-12-23 11:48:56 -05:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
/**
|
2020-12-29 22:45:16 -08:00
|
|
|
* A vision pipeline is responsible for running a group of OpenCV algorithms to extract data from an
|
|
|
|
|
* image.
|
2016-12-23 11:48:56 -05:00
|
|
|
*
|
|
|
|
|
* @see VisionRunner
|
|
|
|
|
* @see VisionThread
|
|
|
|
|
*/
|
|
|
|
|
public interface VisionPipeline {
|
|
|
|
|
/**
|
2020-12-29 22:45:16 -08:00
|
|
|
* Processes the image input and sets the result objects. Implementations should make these
|
|
|
|
|
* objects accessible.
|
2016-12-23 11:48:56 -05:00
|
|
|
*/
|
|
|
|
|
void process(Mat image);
|
|
|
|
|
}
|