DetectionTaskCallback

  • DetectionTaskCallback defines post-processing actions for each detection, used by CameraXSource to process camera frames and invoke developer-set callbacks.

  • Developers must override the onDetectionTaskReceived(Task) callback to receive detection tasks.

  • The onDetectionTaskReceived(Task<ResultT> detectionTask) method is called by CameraXSource to deliver a detection task to the DetectionTaskCallback.

public interface DetectionTaskCallback

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.