Internal change
PiperOrigin-RevId: 522292310
This commit is contained in:
parent
e894ae9cf4
commit
2e256bebb5
|
@ -170,7 +170,7 @@ absl::StatusOr<ObjectDetectorResult> ObjectDetector::Detect(
|
||||||
}
|
}
|
||||||
|
|
||||||
absl::StatusOr<ObjectDetectorResult> ObjectDetector::DetectForVideo(
|
absl::StatusOr<ObjectDetectorResult> ObjectDetector::DetectForVideo(
|
||||||
mediapipe::Image image, int64 timestamp_ms,
|
mediapipe::Image image, int64_t timestamp_ms,
|
||||||
std::optional<core::ImageProcessingOptions> image_processing_options) {
|
std::optional<core::ImageProcessingOptions> image_processing_options) {
|
||||||
if (image.UsesGpu()) {
|
if (image.UsesGpu()) {
|
||||||
return CreateStatusWithPayload(
|
return CreateStatusWithPayload(
|
||||||
|
@ -195,7 +195,7 @@ absl::StatusOr<ObjectDetectorResult> ObjectDetector::DetectForVideo(
|
||||||
}
|
}
|
||||||
|
|
||||||
absl::Status ObjectDetector::DetectAsync(
|
absl::Status ObjectDetector::DetectAsync(
|
||||||
Image image, int64 timestamp_ms,
|
Image image, int64_t timestamp_ms,
|
||||||
std::optional<core::ImageProcessingOptions> image_processing_options) {
|
std::optional<core::ImageProcessingOptions> image_processing_options) {
|
||||||
if (image.UsesGpu()) {
|
if (image.UsesGpu()) {
|
||||||
return CreateStatusWithPayload(
|
return CreateStatusWithPayload(
|
||||||
|
|
|
@ -64,7 +64,7 @@ using ::tflite::EnumNameContentProperties;
|
||||||
using ::tflite::ProcessUnit;
|
using ::tflite::ProcessUnit;
|
||||||
using ::tflite::ProcessUnitOptions_ScoreThresholdingOptions;
|
using ::tflite::ProcessUnitOptions_ScoreThresholdingOptions;
|
||||||
using ::tflite::TensorMetadata;
|
using ::tflite::TensorMetadata;
|
||||||
using LabelItems = mediapipe::proto_ns::Map<int64, ::mediapipe::LabelMapItem>;
|
using LabelItems = mediapipe::proto_ns::Map<int64_t, ::mediapipe::LabelMapItem>;
|
||||||
using ObjectDetectorOptionsProto =
|
using ObjectDetectorOptionsProto =
|
||||||
object_detector::proto::ObjectDetectorOptions;
|
object_detector::proto::ObjectDetectorOptions;
|
||||||
using TensorsSource =
|
using TensorsSource =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user