SignStixGraphics
Modifier and Type | Function and Description |
---|---|
Layer |
getLayerAt(int index)
Find the layer at the argument index.
|
Layer |
getLayerContaining(String layerNamePart)
Find the first layer in the sign which has a name containing the argument
partial name.
|
int |
getLayerCount()
Find the number of layers in the current sign.
|
Layer |
getLayerNamed(String layerName)
Find the layer in the currently playing sign that has the argument name.
|
void |
takeFaces(String jsFunctionName)
Attempt to take a photo and extract the faces from it using a camera connected to the Player.
|
void |
takeFacesAdvanced(String jsFunctionName,
float confidenceThreshold,
float proximityThreshold)
Attempt to take a photo and extract the faces from it using a camera connected to the Player.
|
void |
takePhoto(String jsFunctionName)
Attempt to take a photo using a camera connected to the Player.
|
void |
updateDisplay()
Instruct the player to update its display to reflect any layer changes
involving the creation of new graphics (e.g.
|
Layer getLayerNamed(String layerName)
layerName
- the name of the layer as defined in Creator.Layer getLayerContaining(String layerNamePart)
layerNamePart
- part of a layer name.int getLayerCount()
Layer getLayerAt(int index)
index
- from 0 to (getLayoutCount()-1).void updateDisplay()
void takePhoto(String jsFunctionName)
jsFunctionName
- the name of a Javascript function that takes parameters as
follows:
void takeFaces(String jsFunctionName)
jsFunctionName
- the name of a Javascript function that takes parameters as
follows:
void takeFacesAdvanced(String jsFunctionName, float confidenceThreshold, float proximityThreshold)
jsFunctionName
- the name of a Javascript function that takes parameters as
follows:
confidenceThreshold
- a number between 0.0 (lenient) and 1.0 (strict). If set too low
it may detect other patterns as well as faces. If set too high it may fail to detect any faces.proximityThreshold
- a number between 0.0 (lenient) and 1.0 (strict). If set low, it
will attempt to detect faces regardless of how far they are from the camera. If set high,
only faces very close to the camera will be considered.