Package org.hyperonline.hyperlib.vision
Class AbstractTargetProcessor<T extends VisionResult>
- java.lang.Object
-
- org.hyperonline.hyperlib.vision.AbstractTargetProcessor<T>
-
- Type Parameters:
T- VisionResult type of this AbstractTargetProcessor
- All Implemented Interfaces:
TargetProcessor
- Direct Known Subclasses:
ClosestPairTargetProcessor,ClosestTargetProcessor,SkewPairTargetProcessor
public abstract class AbstractTargetProcessor<T extends VisionResult> extends java.lang.Object implements TargetProcessor
Base class with common functionality used by TargetProcessors. In particular, this provides methods to store a result, and access it via PID sources.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTargetProcessor(AbstractVisionConnector<T> connector)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TcomputeResult(java.util.List<org.opencv.core.Rect> targets)protected TgetLastResult()voidprocess(java.util.List<org.opencv.core.Rect> targets)Extract the result type from a list of rectangles found.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hyperonline.hyperlib.vision.TargetProcessor
writeOutput
-
-
-
-
Constructor Detail
-
AbstractTargetProcessor
protected AbstractTargetProcessor(AbstractVisionConnector<T> connector)
-
-
Method Detail
-
computeResult
public abstract T computeResult(java.util.List<org.opencv.core.Rect> targets)
- Parameters:
targets- list of targets to compute- Returns:
- {T}
-
getLastResult
protected T getLastResult()
-
process
public final void process(java.util.List<org.opencv.core.Rect> targets)
Description copied from interface:TargetProcessorExtract the result type from a list of rectangles found.- Specified by:
processin interfaceTargetProcessor- Parameters:
targets- The list of targets found.
-
-