ArSemanticLabel

Scene Semantics API.

See the Scene Semantics Developer Guide for more information.

Summary

Enumerations

ArSemanticLabel{
  AR_SEMANTIC_LABEL_UNLABELED = 0,
  AR_SEMANTIC_LABEL_SKY = 1,
  AR_SEMANTIC_LABEL_BUILDING = 2,
  AR_SEMANTIC_LABEL_TREE = 3,
  AR_SEMANTIC_LABEL_ROAD = 4,
  AR_SEMANTIC_LABEL_SIDEWALK = 5,
  AR_SEMANTIC_LABEL_TERRAIN = 6,
  AR_SEMANTIC_LABEL_STRUCTURE = 7,
  AR_SEMANTIC_LABEL_OBJECT = 8,
  AR_SEMANTIC_LABEL_VEHICLE = 9,
  AR_SEMANTIC_LABEL_PERSON = 10,
  AR_SEMANTIC_LABEL_WATER = 11
}
enum
Defines the labels the Scene Semantics API is able to detect and maps human-readable names to per-pixel semantic labels.

Enumerations

ArSemanticLabel

 ArSemanticLabel

Defines the labels the Scene Semantics API is able to detect and maps human-readable names to per-pixel semantic labels.

See the Scene Semantics Developer Guide for more information.

Use ArFrame_acquireSemanticImage to obtain an image containing these pixels and ArFrame_getSemanticLabelFraction to query what percentage of the image contains these pixels.

Properties
AR_SEMANTIC_LABEL_BUILDING

Pixels of buildings, including houses, garages, etc.

Includes all structures attached to the building, such as signs, solar panels, scaffolding, etc.

AR_SEMANTIC_LABEL_OBJECT

Pixels of general temporary and permanent objects and obstacles, including street signs, traffic signs, free-standing business signs, billboards, poles, mailboxes, fire hydrants, street lights, phone booths, bus stop enclosures, cones, parking meters, animals, etc.

AR_SEMANTIC_LABEL_PERSON

Pixels of humans, including pedestrians and bicycle/motorcycle riders.

AR_SEMANTIC_LABEL_ROAD

Pixels of drivable surfaces for vehicles, including paved, unpaved, dirt, driveways, crosswalks, etc.

AR_SEMANTIC_LABEL_SIDEWALK

Pixels of sidewalks for pedestrians and cyclists, including associated curbs.

AR_SEMANTIC_LABEL_SKY

Pixels of the open sky, including clouds.

Thin electrical wires in front of the sky are included, but leaves/vegetation are not included.

AR_SEMANTIC_LABEL_STRUCTURE

Pixels of structures that are not buildings, including fences, guardrails, stand-alone walls, tunnels, bridges, etc.

AR_SEMANTIC_LABEL_TERRAIN

Pixels of walkable vegetation areas, including grass, soil, sand, mountains, etc.

In contrast, 'tree' specifies non-walkable vegetation, like trees and bushes.

AR_SEMANTIC_LABEL_TREE

Pixels of non-walkable vegetation, like trees and shrubs.

In contrast, 'terrain' specifies walkable vegetation, like grass.

AR_SEMANTIC_LABEL_UNLABELED

Pixels with no semantic label available in the API output.

AR_SEMANTIC_LABEL_VEHICLE

Pixels of vehicles, including cars, vans, buses, trucks, motorcycles, bicycles, trains, etc.

AR_SEMANTIC_LABEL_WATER

Pixels of ground surfaces covered by water, including lakes, rivers, etc.