Package trclib.vision
Interface TrcVisionProcessor<I,O>
- Type Parameters:
I
- specifies the type of the input image.O
- specifies the type of the detected object.
- All Superinterfaces:
TrcVideoSource<I>
- All Known Implementing Classes:
TrcOpenCvDetector
,TrcOpenCvFaceDetector
This interface provides methods to grab image from the video input, render image to video output and detect
objects from the acquired image.
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the selected intermediate output Mat to be displayed.O[]
processFrame
(I image) This method is called to detect objects in the acquired image frame.Methods inherited from interface trclib.vision.TrcVideoSource
getFrame, putFrame
-
Method Details
-
processFrame
This method is called to detect objects in the acquired image frame.- Parameters:
image
- specifies the image to be processed.- Returns:
- detected objects, null if none detected.
-
getSelectedOutput
I getSelectedOutput()This method returns the selected intermediate output Mat to be displayed.- Returns:
- selected output mat.
-