Comparing version 0.0.4 to 0.0.5
@@ -9,8 +9,9 @@ var HAAR = require('./dep/haar-detector.js'); | ||
// canvasElementDisplay | ||
const detector = new HAAR.Detector(faceHaardata) | ||
return () => { | ||
args.canvasElementDisplay.width = args.videoElement.offsetWidth; | ||
args.canvasElementDisplay.height = args.videoElement.offsetHeight; | ||
const ctx = args.canvasElementDisplay.getContext('2d'); | ||
const detector = new HAAR.Detector(faceHaardata) | ||
@@ -17,0 +18,0 @@ detector |
@@ -73,5 +73,5 @@ import * as utils from './utils' | ||
return energyScore | ||
return energyScore / (args.canvasElementHelper.width * args.canvasElementDisplay.height * 4) | ||
} | ||
} |
{ | ||
"name": "emellib", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.crejo.fun/", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
476372