AI-generated Key Takeaways
-
DetectionTaskCallback
is an interface used to define actions performed after each detection within the CameraXSource pipeline. -
Developers need to override the
onDetectionTaskReceived
method to get detection tasks from theCameraXSource
. -
CameraXSource
uses this interface to feed camera frames to detectors and trigger developer-set callbacks.
Interface for defining a post-processing action to be executed for each detection.This is
used by CameraXSource
for the pipeline to feed camera frames to detectors and invoke callbacks that are set by
developers. Developers must override the
onDetectionTaskReceived(Task)
callback in order to receive detection tasks.
Public Method Summary
abstract void |
onDetectionTaskReceived(Task<ResultT> detectionTask)
Called by the
CameraXSource
to deliver a detection task to the DetectionTaskCallback .
|
Public Methods
public abstract void onDetectionTaskReceived (Task<ResultT> detectionTask)
Called by the CameraXSource
to deliver a detection task to the DetectionTaskCallback
.