7 lines
21 KiB
JavaScript
7 lines
21 KiB
JavaScript
|
/**
|
||
|
* this cascade is derived from https://github.com/mtschirs/js-objectdetect implementation
|
||
|
* @author Martin Tschirsich / http://www.tu-darmstadt.de/~m_t
|
||
|
*/
|
||
|
(function(global) {
|
||
|
global.handfist = {complexClassifiers:[{simpleClassifiers:[{features:[[3,3,9,16,-1.],[3,7,9,8,2.]],tilted:0,threshold:-0.0223442204296589,right_val:-0.9436557292938232,left_val:0.7737345099449158},{features:[[0,9,12,5,-1.],[6,9,6,5,2.]],tilted:0,threshold:-9.3714958056807518e-003,right_val:-0.9004204869270325,left_val:0.5525149106979370}],threshold:-0.3911409080028534},{simpleClassifiers:[{features:[[12,14,12,10,-1.],[12,14,6,5,2.],[18,19,6,5,2.]],tilted:0,threshold:0.0127444602549076,right_val:0.5557708144187927,left_val:-0.7241874933242798},{features:[[2,4,16,8,-1.],[2,8,16,4,2.]],tilted:0,threshold:-0.0203973893076181,right_val:-0.9134256243705750,left_val:0.3255875110626221},{features:[[9,6,15,14,-1.],[9,13,15,7,2.]],tilted:0,threshold:1.5015050303190947e-003,right_val:0.2950277030467987,left_val:-0.8422530293464661},{features:[[0,10,10,5,-1.],[5,10,5,5,2.]],tilted:0,threshold:-9.5540005713701248e-003,right_val:-0.8186870813369751,left_val:0.2949278056621552},{features:[[8,0,16,6,-1.],[8,0,16,3,2.]],tilted:1,threshold:-9.0454015880823135e-003,right_val:0.2449316978454590,left_val:-0.9253956079483032}],threshold:-0.8027257919311523},{simpleClassifiers:[{features:[[11,9,9,6,-1.],[14,12,3,6,3.]],tilted:1,threshold:0.0339135192334652,right_val:0.5952491760253906,left_val:-0.6010565757751465},{features:[[15,1,8,10,-1.],[15,6,8,5,2.]],tilted:0,threshold:-6.3976310193538666e-003,right_val:-0.9008722901344299,left_val:0.2902083992958069},{features:[[12,23,12,1,-1.],[18,23,6,1,2.]],tilted:0,threshold:3.5964029375463724e-003,right_val:0.3585815131664276,left_val:-0.6108912825584412},{features:[[0,8,16,11,-1.],[8,8,8,11,2.]],tilted:0,threshold:3.1002631294541061e-004,right_val:-0.9231098890304565,left_val:0.2521544992923737}],threshold:-0.6695849895477295},{simpleClassifiers:[{features:[[12,22,12,2,-1.],[18,22,6,2,2.]],tilted:0,threshold:8.9982077479362488e-003,right_val:0.5311666131019592,left_val:-0.6216139197349548},{features:[[6,7,10,5,-1.],[6,7,5,5,2.]],tilted:1,threshold:5.8961678296327591e-003,right_val:-0.8741096854209900,left_val:0.3589088022708893},{features:[[10,8,3,2,-1.],[10,9,3,1,2.]],tilted:0,threshold:-7.3489747592248023e-005,right_val:-0.8340616226196289,left_val:0.2021690011024475},{features:[[15,15,3,4,-1.],[15,15,3,2,2.]],tilted:1,threshold:-1.3183970004320145e-003,right_val:0.2309758067131043,left_val:-0.8218436241149902}],threshold:-0.9460288882255554},{simpleClassifiers:[{features:[[4,18,20,6,-1.],[4,18,10,3,2.],[14,21,10,3,2.]],tilted:0,threshold:5.8955969288945198e-003,right_val:0.3239434063434601,left_val:-0.7554979920387268},{features:[[3,1,20,14,-1.],[3,1,10,7,2.],[13,8,10,7,2.]],tilted:0,threshold:8.6170788854360580e-003,right_val:0.2782224118709564,left_val:-0.7028874754905701},{features:[[2,11,3,9,-1.],[3,14,1,3,9.]],tilted:0,threshold:-1.5837070532143116e-003,right_val:0.2773326933383942,left_val:-0.7751926779747009},{features:[[0,4,12,20,-1.],[0,4,6,10,2.],[6,14,6,10,2.]],tilted:0,threshold:7.9292394220829010e-003,right_val:0.2167312055826187,left_val:-0.7723438143730164},{features:[[16,15,6,2,-1.],[16,15,6,1,2.]],tilted:1,threshold:-1.4443190302699804e-003,right_val:0.2078661024570465,left_val:-0.8843228220939636},{features:[[11,8,7,2,-1.],[11,9,7,1,2.]],tilted:0,threshold:-4.8251380212605000e-004,right_val:-0.6776664853096008,left_val:0.2337501049041748},{features:[[20,15,4,6,-1.],[22,15,2,6,2.]],tilted:0,threshold:8.0077340826392174e-003,right_val:0.5163818001747131,left_val:-0.3731102049350739}],threshold:-1.0588489770889282},{simpleClassifiers:[{features:[[14,19,1,2,-1.],[14,20,1,1,2.]],tilted:0,threshold:-5.8145709772361442e-005,right_val:-0.6792302131652832,left_val:0.3404448032379150},{features:[[0,6,2,7,-1.],[1,6,1,7,2.]],tilted:0,threshold:-1.1419489746913314e-003,right_val:-0.5890597105026245,left_val:0.3598371148109436},{features:[[8,0,10,2,-1.],[8,0,5,2,2.]],tilted:1,threshold:5.8654937893152237e-003,right_val:0.1721540987491608,left_val:-0.9622359871864319},{features:[[5,8,16,7,-1.],[13,8,8,7,2.]],tilted:0,threshold:1.1028599692508578e-004,right_val:0.2389315962791443,left_val:-0
|
||
|
})(jsfeat.haar);
|