CLEAR

SceneUnderstandingModule


The SceneUnderstandingModule provides access to details about recognition of real objects captured by the camera

Example

const SceneUnderstanding = require('SceneUnderstanding');
const Diagnostics = require('Diagnostics');

const catCategory = SceneUnderstanding.SceneCategories.CAT;
const foundCat_signal = SceneUnderstanding.category(catCategory).found;

foundCat_signal.monitor().subscribe(function(event){
    if (event.newValue === true) {
        Diagnostics.log('What a nice cat!');
    } else {
        Diagnostics.log('Where did the cat go?!');
    }
})

Properties

This class exposes no properties.

Methods

MethodDescription

category

category(category: SceneCategories): SceneCategory

Returns a SceneCategory object capable of identifying if the scene captured by the camera is that category.

Classes

ClassDescription

SceneCategory

The SceneCategory class encapsulates details of recognized real-world objects

Enums

ValueDescription

SceneCategories

The SceneCategories enum lists possible objects that can be recognized in a scene by the SceneUnderstanding module