Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Label = Label' {
- aliases :: Maybe [LabelAlias]
- categories :: Maybe [LabelCategory]
- confidence :: Maybe Double
- instances :: Maybe [Instance]
- name :: Maybe Text
- parents :: Maybe [Parent]
- newLabel :: Label
- label_aliases :: Lens' Label (Maybe [LabelAlias])
- label_categories :: Lens' Label (Maybe [LabelCategory])
- label_confidence :: Lens' Label (Maybe Double)
- label_instances :: Lens' Label (Maybe [Instance])
- label_name :: Lens' Label (Maybe Text)
- label_parents :: Lens' Label (Maybe [Parent])
Documentation
Structure containing details about the detected label, including the name, detected instances, parent labels, and level of confidence.
See: newLabel
smart constructor.
Label' | |
|
Instances
Create a value of Label
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:aliases:Label'
, label_aliases
- A list of potential aliases for a given label.
$sel:categories:Label'
, label_categories
- A list of the categories associated with a given label.
Label
, label_confidence
- Level of confidence.
$sel:instances:Label'
, label_instances
- If Label
represents an object, Instances
contains the bounding boxes
for each instance of the detected object. Bounding boxes are returned
for common object labels such as people, cars, furniture, apparel or
pets.
Label
, label_name
- The name (label) of the object or scene.
$sel:parents:Label'
, label_parents
- The parent labels for a label. The response includes all ancestor
labels.
label_aliases :: Lens' Label (Maybe [LabelAlias]) Source #
A list of potential aliases for a given label.
label_categories :: Lens' Label (Maybe [LabelCategory]) Source #
A list of the categories associated with a given label.