clmutils
This is a set of utility functions which can be used to decipher CLM Trackr
Usage
You can consume these utility functions in the following two ways:
var utils = require('clmutils');
utils.faceOrientation
utils.getFaceSize
utils.textureCapture
utils.forehead
utils.halo
or
var faceOrientation = require('clmutils/faceOrientation');
var getFaceSize = require('clmutils/getFaceSize');
var textureCapture = require('clmutils/textureCapture');
var forehead = require('clmutils/forehead');
var halo = require('clmutils/halo');
Here are examples as to how to use these utility functions:
var faceOrientation = require('clmutils/faceOrientation');
var getFaceSize = require('clmutils/getFaceSize');
var textureCapture = require('clmutils/textureCapture');
var forehead = require('clmutils/forehead');
var halo = require('clmutils/halo');
var rotationDegrees = faceOrientation(clmPositions);
console.log(rotationDegrees.z);
console.log(rotationDegrees.y);
var size = getFaceSize(clmPositions);
console.log(size.width);
console.log(size.height);
forehead(clmPositions, 10);
halo(clmPositions);
var texOptions = {
outContext: null,
options.video: null,
options.image: null,
options.forehead: false,
options.halo: false,
};
var uvs = textureCapture(clmPositions, texOptions);
License
MIT, see LICENSE.md for details.