vuforiajs
Node.js client for the Vuforia Web Services API (VWS API) and the Vuforia Web Query API (VWQ API).
usage
// load modulevar vuforia = ; // init client with valid credentialsvar client = vuforia; // util for base64 encoding and decodingvar util = vuforia;
create a new target
var target = // name of the target, unique within a database 'name': 'my target' // width of the target in scene unit 'width': 320 // the base64 encoded binary recognition image data 'image': util // indicates whether or not the target is active for query 'active_flag': true // the base64 encoded application metadata associated with the target 'application_metadata': util;
add target to cloud database
client;
list all targets within cloud database
client;
retrieve a target from cloud database
client;
update a target
var update = 'active_flag' : true 'application_metadata' : util; client;
delete a target
client;
search cloud database for images that can be considered duplicates
client;
Perform an Image Recognition Query
var filename = __dirname + '/test.jpg'; // image file that will be send to the Vuforia Web Query APIvar max_num_results = 5; // return only 5 matches client;