4
4
* modified port of jViolaJones for Java (http://code.google.com/p/jviolajones/) and OpenCV for C++ (https://github.com/opencv/opencv) to JavaScript
5
5
*
6
6
* https://github.com/foo123/HAAR.js
7
- * @version : 1.0.6
7
+ * @version : 1.0.7
8
8
*
9
9
* Supports parallel "map-reduce" computation both in browser and node using parallel.js library
10
10
* https://github.com/adambom/parallel.js (included)
@@ -28,7 +28,7 @@ else if ( !(name in root) ) /* Browser/WebWorker/.. */
28
28
* modified port of jViolaJones for Java (http://code.google.com/p/jviolajones/) and OpenCV for C++ (https://github.com/opencv/opencv) to JavaScript
29
29
*
30
30
* https://github.com/foo123/HAAR.js
31
- * @version : 1.0.6
31
+ * @version : 1.0.7
32
32
*
33
33
* Supports parallel "map-reduce" computation both in browser and node using parallel.js library
34
34
* https://github.com/adambom/parallel.js (included)
@@ -37,7 +37,7 @@ else if ( !(name in root) ) /* Browser/WebWorker/.. */
37
37
"use strict" ;
38
38
39
39
// the export object
40
- var HAAR = { VERSION : "1.0.6 " } , Detector , Feature , proto = 'prototype' , undef = undefined ;
40
+ var HAAR = { VERSION : "1.0.7 " } , Detector , Feature , proto = 'prototype' , undef = undefined ;
41
41
42
42
var // typed arrays substitute
43
43
Array32F = ( typeof Float32Array !== "undefined" ) ? Float32Array : Array ,
@@ -391,7 +391,7 @@ function mergeSteps(d)
391
391
// used for parallel, asynchronous and/or synchronous computation
392
392
function detectSingleStep ( self )
393
393
{
394
- var Sqrt = Sqrt || stdMath . sqrt , ret = [ ] ,
394
+ var Sqrt = Math . sqrt , ret = [ ] ,
395
395
haar = self . haardata , haar_stages = haar . stages , scaledSelection = self . scaledSelection ,
396
396
w = self . width , h = self . height ,
397
397
selw = scaledSelection . width , selh = scaledSelection . height , imArea = w * h , imArea1 = imArea - 1 ,
0 commit comments