TrackedPlaneClassification
EnumThe semantic class of a TrackedPlane.
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: not supported
- Camera Kit Mobile: not supported
- SnapchatNot supported — SPECS only
- SPECSFully supported
- Camera Kit WebNot supported — SPECS only
- Camera Kit MobileNot supported — SPECS only
Since Lens Scripting v387
The semantic class of a TrackedPlane. A plane reports None until it is classified, and always while
enablePlaneClassification is disabled on DeviceTracking#worldOptions.
Index
Example
//@input Component.DeviceTracking deviceTracking
script.deviceTracking.worldOptions.nativePlaneTrackingType = NativePlaneTrackingType.Both;
script.deviceTracking.worldOptions.enablePlaneClassification = true;
script.createEvent("WorldTrackingPlanesUpdatedEvent").bind(function (eventData) {
var planes = eventData.getPlanes();
for (var i = 0; i < planes.length; i++) {
if (planes[i].classification === TrackedPlaneClassification.Table) {
print("Found a table");
}
}
});
Enumeration Members
Ceiling
Ceiling:
number
SPECS only
Ceiling
Since
Lens Scripting Version 387
Door
Door:
number
SPECS only
Door
Since
Lens Scripting Version 387
Floor
Floor:
number
SPECS only
Floor
Since
Lens Scripting Version 387
None
None:
number
SPECS only
Not classified.
Since
Lens Scripting Version 387
Seat
Seat:
number
SPECS only
Seat
Since
Lens Scripting Version 387
Table
Table:
number
SPECS only
Table
Since
Lens Scripting Version 387
Wall
Wall:
number
SPECS only
Wall
Since
Lens Scripting Version 387
Window
Window:
number
SPECS only
Window
Since
Lens Scripting Version 387