MLKitObjectDetectionCustom 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
在单图片模式下,当跟踪器和检测器都完成时,系统会返回结果。
-
在流模式下,跟踪器和检测器会并行运行。调用跟踪器时,将返回相关结果。
处理完成。此时可能仍在进行检测。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["Two global constants, `MLKObjectDetectorModeSingleImage` and `MLKObjectDetectorModeStream`, define object detection modes. `SingleImage` mode returns results after both tracker and detector are complete. `Stream` mode allows the tracker and detector to run in parallel, returning results when the tracker is finished, even if detection is still in progress. The values assigned to these constants are 0 for single image and 1 for stream.\n"],null,[]]