NAME

Google::Cloud::Automl::V1beta1::Detection - Compiled Protocol Buffers messages for google/cloud/automl/v1beta1/detection.proto

SYNOPSIS

use Google::Cloud::Automl::V1beta1::Detection;

my $msg = Google::Cloud::Automl::V1beta1::Detection::ImageObjectDetectionAnnotation->new({
    bounding_box => $bounding_box,
    score => $score,
});

# Read or update a field
my $val = $msg->bounding_box();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1beta1::Detection::ImageObjectDetectionAnnotation->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/automl/v1beta1/detection.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Automl::V1beta1::Detection::ImageObjectDetectionAnnotation

Annotation details for image object detection.

Inherits from Protobuf::Message.

Accessors

  • $msg->bounding_box() / $msg->bounding_box($value)

    Type: Message (Google::Cloud::Automl::V1beta1::Geometry::BoundingPoly)

    Output only. The rectangle representing the object location.

  • $msg->score() / $msg->score($value)

    Type: Float

    Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.

Google::Cloud::Automl::V1beta1::Detection::VideoObjectTrackingAnnotation

Annotation details for video object tracking.

Inherits from Protobuf::Message.

Accessors

  • $msg->instance_id() / $msg->instance_id($value)

    Type: String

    Optional. The instance of the object, expressed as a positive integer. Used to tell apart objects of the same type (i.e. AnnotationSpec) when multiple are present on a single example. NOTE: Instance ID prediction quality is not a part of model evaluation and is done as best effort. Especially in cases when an entity goes off-screen for a longer time (minutes), when it comes back it may be given a new instance ID.

  • $msg->time_offset() / $msg->time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start.

  • $msg->bounding_box() / $msg->bounding_box($value)

    Type: Message (Google::Cloud::Automl::V1beta1::Geometry::BoundingPoly)

    Required. The rectangle representing the object location on the frame (i.e. at the time_offset of the video).

  • $msg->score() / $msg->score($value)

    Type: Float

    Output only. The confidence that this annotation is positive for the video at the time_offset, value in [0, 1], higher means higher positivity confidence. For annotations created by the user the score is 1. When user approves an annotation, the original float score is kept (and not changed to 1).

Google::Cloud::Automl::V1beta1::Detection::BoundingBoxMetricsEntry

Bounding box matching model metrics for a single intersection-over-union threshold and multiple label match confidence thresholds.

Inherits from Protobuf::Message.

Accessors

  • $msg->iou_threshold() / $msg->iou_threshold($value)

    Type: Float

    Output only. The intersection-over-union threshold value used to compute this metrics entry.

  • $msg->mean_average_precision() / $msg->mean_average_precision($value)

    Type: Float

    Output only. The mean average precision, most often close to au_prc.

  • $msg->confidence_metrics_entries() / $msg->confidence_metrics_entries($value)

    Type: Message (Google::Cloud::Automl::V1beta1::Detection::BoundingBoxMetricsEntry::ConfidenceMetricsEntry)

    Output only. Metrics for each label-match confidence_threshold from 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is derived from them.

Google::Cloud::Automl::V1beta1::Detection::ImageObjectDetectionEvaluationMetrics

Model evaluation metrics for image object detection problems. Evaluates prediction quality of labeled bounding boxes.

Inherits from Protobuf::Message.

Accessors

  • $msg->evaluated_bounding_box_count() / $msg->evaluated_bounding_box_count($value)

    Type: Int32

    Output only. The total number of bounding boxes (i.e. summed over all images) the ground truth used to create this evaluation had.

  • $msg->bounding_box_metrics_entries() / $msg->bounding_box_metrics_entries($value)

    Type: Message (Google::Cloud::Automl::V1beta1::Detection::BoundingBoxMetricsEntry)

    Output only. The bounding boxes match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 pair.

  • $msg->bounding_box_mean_average_precision() / $msg->bounding_box_mean_average_precision($value)

    Type: Float

    Output only. The single metric for bounding boxes evaluation: the mean_average_precision averaged over all bounding_box_metrics_entries.

Google::Cloud::Automl::V1beta1::Detection::VideoObjectTrackingEvaluationMetrics

Model evaluation metrics for video object tracking problems. Evaluates prediction quality of both labeled bounding boxes and labeled tracks (i.e. series of bounding boxes sharing same label and instance ID).

Inherits from Protobuf::Message.

Accessors

  • $msg->evaluated_frame_count() / $msg->evaluated_frame_count($value)

    Type: Int32

    Output only. The number of video frames used to create this evaluation.

  • $msg->evaluated_bounding_box_count() / $msg->evaluated_bounding_box_count($value)

    Type: Int32

    Output only. The total number of bounding boxes (i.e. summed over all frames) the ground truth used to create this evaluation had.

  • $msg->bounding_box_metrics_entries() / $msg->bounding_box_metrics_entries($value)

    Type: Message (Google::Cloud::Automl::V1beta1::Detection::BoundingBoxMetricsEntry)

    Output only. The bounding boxes match metrics for each Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 pair.

  • $msg->bounding_box_mean_average_precision() / $msg->bounding_box_mean_average_precision($value)

    Type: Float

    Output only. The single metric for bounding boxes evaluation: the mean_average_precision averaged over all bounding_box_metrics_entries.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Automl::V1beta1::Detection::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.