001// Copyright (c) FIRST and other WPILib contributors. 002// Open Source Software; you can modify and/or share it under the terms of 003// the WPILib BSD license file in the root directory of this project. 004 005package edu.wpi.first.vision; 006 007import org.opencv.core.Mat; 008 009/** 010 * A vision pipeline is responsible for running a group of OpenCV algorithms to extract data from an 011 * image. 012 * 013 * @see VisionRunner 014 * @see VisionThread 015 */ 016@FunctionalInterface 017public interface VisionPipeline { 018 /** 019 * Processes the image input and sets the result objects. Implementations should make these 020 * objects accessible. 021 * 022 * @param image The image to process. 023 */ 024 void process(Mat image); 025}