Global

Members


initMojoPerception

Main access to MojoPerceptionAPI, straightforward initialization.
Create a new MojoPerceptionAPI object with the given parameters.
Init the object created and return it to be used.

Source:

mojoPerception

API global variable scope

Source:
Tutorials:

Methods


loadMojoPerception(auth_token, host, port, user_namespace)

Loads a MojoPerceptionAPI object to interact with the Mojo Emotion AI Engine.
auth_token, host, port and user_namespace are required.
Generate new parameters every time your API key is used and control their usage
with expiration parameter.

Parameters:
Name Type Description
auth_token string

unique user token with limited duration validity

host string

host name of the stream SocketIO server

port string

port of the stream SocketIO server

user_namespace string

unique user namespace for the SocketIO broadcasting

Source:
See:
  • README for more details on how to generate those parameters easily with a valid API Key.

<async> startExample()

Start MojoPerceptionAPI and recursively call compute on each frame
Note that the parameters of MojoPerceptionAPI are set at initialization

Source:
Returns:

recursive function

Type
nothing

<async> stopExample()

Stop MojoPerceptionAPI : release access to camera and disconnect from stream

Source:
Returns:

true

Type
boolean