DetectionTaskCallbackStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
DetectionTaskCallback defines post-processing actions for each detection, used by CameraXSource to process camera frames and invoke developer-set callbacks.
Developers must override theonDetectionTaskReceived(Task)callback to receive detection tasks.
TheonDetectionTaskReceived(Task<ResultT> detectionTask)method is called by CameraXSource to deliver a detection task to the DetectionTaskCallback.
public interfaceDetectionTaskCallback
Interface for defining a post-processing action to be executed for each detection.This is
used byCameraXSourcefor the pipeline to feed camera frames to detectors and invoke callbacks that are set by
developers. Developers must override theonDetectionTaskReceived(Task)callback in order to receive detection tasks.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],["The `DetectionTaskCallback` interface defines post-processing for each detection using `CameraXSource`. Developers must implement `onDetectionTaskReceived(Task)` to receive these tasks. `CameraXSource` uses this callback to feed camera frames to detectors. The `onDetectionTaskReceived` method, the only method in the interface, is called by `CameraXSource` to deliver a detection task to the callback. This enables developers to define actions for each detected item within the camera frame pipeline.\n"]]