new VectorString()
Custom container class for strings.
Sample usage:
Sample usage:
function onTrack()
{
//Call track on a frame
trackerReturnState = m_Tracker.track(
mWidth, mHeight, ppixels, faceDataArray,
VisageModule.VisageTrackerImageFormat.VISAGE_FRAMEGRABBER_FMT_RGBA.value,
VisageModule.VisageTrackerOrigin.VISAGE_FRAMEGRABBER_ORIGIN_TL.value);
//Test result
if (trackerReturnState.get(0)===VisageModule.VisageTrackerStatus.TRACK_STAT_OK.value)
{
//Read action unit names
var auNames = [];
var faceData = faceDataArray.get(0);
var actionUnitNames = faceData.getActionUnitsNames();
for (var i = 0; i < faceData.actionUnitCount; ++i)
{
auNames.push(actionUnitNames.get(i));
}
//Clean-up
actionUnitNames.delete();
}
}
Methods
-
push_back(string)
-
Add string to vector.
Parameters:
Name Type Description string
string string to be added. -
get(index) → {string}
-
Get string from the vector specified by index parameter.
Parameters:
Name Type Description index
number position of the number in the vector. Returns:
string located on the location specified by index parameter- Type
- string
-
delete()
-
Release the memory allocated to the VectorString object.