Class: Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/visionai/v1/annotations.rb

Overview

Output format for Personal Protective Equipment Detection Operator.

Defined Under Namespace

Classes: DetectedPerson, NormalizedBoundingBox, PPEEntity, PPEIdentifiedBox, PersonEntity, PersonIdentifiedBox

Instance Attribute Summary collapse

Instance Attribute Details

#current_time::Google::Protobuf::Timestamp

Returns Current timestamp.

Returns:



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 31

class PersonalProtectiveEquipmentDetectionOutput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The entity info for annotations from person detection prediction result.
  # @!attribute [rw] person_entity_id
  #   @return [::Integer]
  #     Entity id.
  class PersonEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The entity info for annotations from PPE detection prediction result.
  # @!attribute [rw] ppe_label_id
  #   @return [::Integer]
  #     Label id.
  # @!attribute [rw] ppe_label_string
  #   @return [::String]
  #     Human readable string of the label (Examples: helmet, glove, mask).
  # @!attribute [rw] ppe_supercategory_label_string
  #   @return [::String]
  #     Human readable string of the super category label (Examples: head_cover,
  #     hands_cover, face_cover).
  # @!attribute [rw] ppe_entity_id
  #   @return [::Integer]
  #     Entity id.
  class PPEEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Bounding Box in the normalized coordinates.
  # @!attribute [rw] xmin
  #   @return [::Float]
  #     Min in x coordinate.
  # @!attribute [rw] ymin
  #   @return [::Float]
  #     Min in y coordinate.
  # @!attribute [rw] width
  #   @return [::Float]
  #     Width of the bounding box.
  # @!attribute [rw] height
  #   @return [::Float]
  #     Height of the bounding box.
  class NormalizedBoundingBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # PersonIdentified box contains the location and the entity info of the
  # person.
  # @!attribute [rw] box_id
  #   @return [::Integer]
  #     An unique id for this box.
  # @!attribute [rw] normalized_bounding_box
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::NormalizedBoundingBox]
  #     Bounding Box in the normalized coordinates.
  # @!attribute [rw] confidence_score
  #   @return [::Float]
  #     Confidence score associated with this box.
  # @!attribute [rw] person_entity
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PersonEntity]
  #     Person entity info.
  class PersonIdentifiedBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # PPEIdentified box contains the location and the entity info of the PPE.
  # @!attribute [rw] box_id
  #   @return [::Integer]
  #     An unique id for this box.
  # @!attribute [rw] normalized_bounding_box
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::NormalizedBoundingBox]
  #     Bounding Box in the normalized coordinates.
  # @!attribute [rw] confidence_score
  #   @return [::Float]
  #     Confidence score associated with this box.
  # @!attribute [rw] ppe_entity
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PPEEntity]
  #     PPE entity info.
  class PPEIdentifiedBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Detected Person contains the detected person and their associated
  # ppes and their protecting information.
  # @!attribute [rw] person_id
  #   @return [::Integer]
  #     The id of detected person.
  # @!attribute [rw] detected_person_identified_box
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PersonIdentifiedBox]
  #     The info of detected person identified box.
  # @!attribute [rw] detected_ppe_identified_boxes
  #   @return [::Array<::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PPEIdentifiedBox>]
  #     The info of detected person associated ppe identified boxes.
  # @!attribute [rw] face_coverage_score
  #   @return [::Float]
  #     Coverage score for each body part.
  #     Coverage score for face.
  # @!attribute [rw] eyes_coverage_score
  #   @return [::Float]
  #     Coverage score for eyes.
  # @!attribute [rw] head_coverage_score
  #   @return [::Float]
  #     Coverage score for head.
  # @!attribute [rw] hands_coverage_score
  #   @return [::Float]
  #     Coverage score for hands.
  # @!attribute [rw] body_coverage_score
  #   @return [::Float]
  #     Coverage score for body.
  # @!attribute [rw] feet_coverage_score
  #   @return [::Float]
  #     Coverage score for feet.
  class DetectedPerson
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#detected_persons::Array<::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::DetectedPerson>

Returns A list of DetectedPersons.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 31

class PersonalProtectiveEquipmentDetectionOutput
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The entity info for annotations from person detection prediction result.
  # @!attribute [rw] person_entity_id
  #   @return [::Integer]
  #     Entity id.
  class PersonEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # The entity info for annotations from PPE detection prediction result.
  # @!attribute [rw] ppe_label_id
  #   @return [::Integer]
  #     Label id.
  # @!attribute [rw] ppe_label_string
  #   @return [::String]
  #     Human readable string of the label (Examples: helmet, glove, mask).
  # @!attribute [rw] ppe_supercategory_label_string
  #   @return [::String]
  #     Human readable string of the super category label (Examples: head_cover,
  #     hands_cover, face_cover).
  # @!attribute [rw] ppe_entity_id
  #   @return [::Integer]
  #     Entity id.
  class PPEEntity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Bounding Box in the normalized coordinates.
  # @!attribute [rw] xmin
  #   @return [::Float]
  #     Min in x coordinate.
  # @!attribute [rw] ymin
  #   @return [::Float]
  #     Min in y coordinate.
  # @!attribute [rw] width
  #   @return [::Float]
  #     Width of the bounding box.
  # @!attribute [rw] height
  #   @return [::Float]
  #     Height of the bounding box.
  class NormalizedBoundingBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # PersonIdentified box contains the location and the entity info of the
  # person.
  # @!attribute [rw] box_id
  #   @return [::Integer]
  #     An unique id for this box.
  # @!attribute [rw] normalized_bounding_box
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::NormalizedBoundingBox]
  #     Bounding Box in the normalized coordinates.
  # @!attribute [rw] confidence_score
  #   @return [::Float]
  #     Confidence score associated with this box.
  # @!attribute [rw] person_entity
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PersonEntity]
  #     Person entity info.
  class PersonIdentifiedBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # PPEIdentified box contains the location and the entity info of the PPE.
  # @!attribute [rw] box_id
  #   @return [::Integer]
  #     An unique id for this box.
  # @!attribute [rw] normalized_bounding_box
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::NormalizedBoundingBox]
  #     Bounding Box in the normalized coordinates.
  # @!attribute [rw] confidence_score
  #   @return [::Float]
  #     Confidence score associated with this box.
  # @!attribute [rw] ppe_entity
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PPEEntity]
  #     PPE entity info.
  class PPEIdentifiedBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Detected Person contains the detected person and their associated
  # ppes and their protecting information.
  # @!attribute [rw] person_id
  #   @return [::Integer]
  #     The id of detected person.
  # @!attribute [rw] detected_person_identified_box
  #   @return [::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PersonIdentifiedBox]
  #     The info of detected person identified box.
  # @!attribute [rw] detected_ppe_identified_boxes
  #   @return [::Array<::Google::Cloud::VisionAI::V1::PersonalProtectiveEquipmentDetectionOutput::PPEIdentifiedBox>]
  #     The info of detected person associated ppe identified boxes.
  # @!attribute [rw] face_coverage_score
  #   @return [::Float]
  #     Coverage score for each body part.
  #     Coverage score for face.
  # @!attribute [rw] eyes_coverage_score
  #   @return [::Float]
  #     Coverage score for eyes.
  # @!attribute [rw] head_coverage_score
  #   @return [::Float]
  #     Coverage score for head.
  # @!attribute [rw] hands_coverage_score
  #   @return [::Float]
  #     Coverage score for hands.
  # @!attribute [rw] body_coverage_score
  #   @return [::Float]
  #     Coverage score for body.
  # @!attribute [rw] feet_coverage_score
  #   @return [::Float]
  #     Coverage score for feet.
  class DetectedPerson
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end