Landmark
class Landmark : NSObjectLandmark represents a point in 3D space with x, y, z coordinates. The landmark coordinates are in meters. z represents the landmark depth, and the smaller the value the closer the world landmark is to the camera.
-
The x coordinates of the landmark.
Declaration
Swift
var x: Float { get } -
The y coordinates of the landmark.
Declaration
Swift
var y: Float { get } -
The z coordinates of the landmark.
Declaration
Swift
var z: Float { get } -
Landmark visibility. Should be
nilif not supported. Float score of whether landmark is visible or occluded by other objects. Landmark considered as invisible also if it is not present on the screen (out of scene bounds). Depending on the model, visibility value is either a sigmoid or an argument of sigmoid.Declaration
Swift
var visibility: NSNumber? { get } -
Landmark presence. Should stay unset if not supported. Float score of whether landmark is present on the scene (located within scene bounds). Depending on the model, presence value is either a result of sigmoid or an argument of sigmoid function to get landmark presence probability.
Declaration
Swift
var presence: NSNumber? { get } -
Initializes a new
Landmarkobject with the given x, y and z coordinates.Declaration
Swift
init(x: Float, y: Float, z: Float, visibility: NSNumber?, presence: NSNumber?)Parameters
xThe x coordinates of the landmark.
yThe y coordinates of the landmark.
zThe z coordinates of the landmark.
Return Value
An instance of
Landmarkinitialized with the given x, y and z coordinates. -
Undocumented
-
Undocumented