NAME

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

SYNOPSIS

use Google::Cloud::Automl::V1::Detection;

my $msg = Google::Cloud::Automl::V1::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::V1::Detection::ImageObjectDetectionAnnotation->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::Detection::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.