public static final enum
Config.SemanticMode
Describes the desired behavior of the Scene Semantics API. Scene Semantics uses a machine
learning model to label each pixel from the camera feed with a SemanticLabel
. See the
Scene Semantics
Developer Guide for more information.
The Scene Semantics API is currently able to distinguish between outdoor labels specified by
SemanticLabel
. Usage indoors is currently unsupported and may yield unreliable results.
A small number of ARCore supported devices do not support the Scene Semantics API. Use
Session.isSemanticModeSupported(Config.SemanticMode)
to query for support for Scene
Semantics. Affected devices are also indicated on the ARCore supported devices page.
The default value is DISABLED
. Use Config.setSemanticMode(Config.SemanticMode)
to set the desired mode.
Inherited Methods
Enum Values
public static final Config.SemanticMode DISABLED
DISABLED
public static final Config.SemanticMode DISABLED
The Scene Semantics API is disabled. Calls to Frame.acquireSemanticImage()
, Frame.acquireSemanticConfidenceImage()
, and Frame.getSemanticLabelFraction(SemanticLabel)
will not return valid results.
This is the default mode.
public static final Config.SemanticMode ENABLED
ENABLED
public static final Config.SemanticMode ENABLED
The Scene Semantics API is enabled. Calls to Frame.acquireSemanticImage()
, Frame.acquireSemanticConfidenceImage()
, and Frame.getSemanticLabelFraction(SemanticLabel)
will return valid results.
Use Config.setSemanticMode(Config.SemanticMode)
to set this mode.