Skip to content

Commit 047fc2b

Browse files
committed
v.1.0.7 fix stdMath not defined in Worker
1 parent ffb620c commit 047fc2b

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

beeld.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tasks =[{}]
4242

4343
"@@ROOT@@" = "'undefined' !== typeof self ? self : this"
4444
"@@MODULE@@" = "HAAR"
45-
"@@VERSION@@" = "1.0.6"
45+
"@@VERSION@@" = "1.0.7"
4646

4747
@
4848

build/haar-detector.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* modified port of jViolaJones for Java (http://code.google.com/p/jviolajones/) and OpenCV for C++ (https://github.com/opencv/opencv) to JavaScript
55
*
66
* https://github.com/foo123/HAAR.js
7-
* @version: 1.0.6
7+
* @version: 1.0.7
88
*
99
* Supports parallel "map-reduce" computation both in browser and node using parallel.js library
1010
* https://github.com/adambom/parallel.js (included)
@@ -28,7 +28,7 @@ else if ( !(name in root) ) /* Browser/WebWorker/.. */
2828
* modified port of jViolaJones for Java (http://code.google.com/p/jviolajones/) and OpenCV for C++ (https://github.com/opencv/opencv) to JavaScript
2929
*
3030
* https://github.com/foo123/HAAR.js
31-
* @version: 1.0.6
31+
* @version: 1.0.7
3232
*
3333
* Supports parallel "map-reduce" computation both in browser and node using parallel.js library
3434
* https://github.com/adambom/parallel.js (included)
@@ -37,7 +37,7 @@ else if ( !(name in root) ) /* Browser/WebWorker/.. */
3737
"use strict";
3838

3939
// 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;
4141

4242
var // typed arrays substitute
4343
Array32F = (typeof Float32Array !== "undefined") ? Float32Array : Array,
@@ -391,7 +391,7 @@ function mergeSteps(d)
391391
// used for parallel, asynchronous and/or synchronous computation
392392
function detectSingleStep(self)
393393
{
394-
var Sqrt = Sqrt || stdMath.sqrt, ret = [],
394+
var Sqrt = Math.sqrt, ret = [],
395395
haar = self.haardata, haar_stages = haar.stages, scaledSelection = self.scaledSelection,
396396
w = self.width, h = self.height,
397397
selw = scaledSelection.width, selh = scaledSelection.height, imArea=w*h, imArea1=imArea-1,

0 commit comments

Comments
 (0)