Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Tài liệu tham khảo khung MLKitObjectDetectionCustom
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hằng số
Các hằng số sau đây có sẵn trên toàn cầu.
-
Ở chế độ hình ảnh đơn, kết quả được trả về khi hoàn tất cả trình theo dõi và trình phát hiện.
-
Ở chế độ luồng, trình theo dõi và trình phát hiện chạy song song. Thiết bị theo dõi sẽ trả về kết quả khi
đã xử lý xong. Quá trình phát hiện có thể vẫn đang diễn ra vào thời điểm đó.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],["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"]]