Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Fixes toString() in face proto mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekrb committed Feb 13, 2018
1 parent f885dcf commit feef262
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/device/drivers/detection.js
Expand Up @@ -46,7 +46,7 @@ module.exports = {
if (_.has(d, 'facialRecognition')) {
o.demographics = _.reduce(d.facialRecognition, function (r, v, k) {
// translate from { tag: 'EMOTION', emotion: 'HAPPY' to { emotion: 'happy' }
var tag = v.tag.toLowerCase();
var tag = v.tag.toString().toLowerCase();
if (_.has(v, tag)) {
// simple values
r[tag] = v[tag];
Expand Down Expand Up @@ -132,4 +132,4 @@ module.exports = {
}

}
};
};
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "matrix-os",
"version": "0.16.0",
"version": "0.17.1",
"description": "Portal to device layer for AdMobilize Matrix devices. Includes global component, npm install -g matrix-cli",
"main": "app.js",
"repository": "http://github.com/matrix-io/matrix-os",
Expand Down Expand Up @@ -74,4 +74,4 @@
"engines": {
"node": ">=0.12.7 <=6.5"
}
}
}

0 comments on commit feef262

Please sign in to comment.