UNPKG

tracking

Version:

A modern approach for Computer Vision on the web.

1,331 lines (1,329 loc) 1.15 MB
// Conversion from http://www.freeformatter.com/xml-to-json-converter.html var opencv_haarcascade_frontalface_alt = { "type_id": "opencv-haar-classifier", "size": "20 20", "stages": [ { "trees": [ [ { "feature": { "rects": [ "3 7 14 4 -1.", "3 9 14 2 2." ], "tilted": "0" }, "threshold": "4.0141958743333817e-003", "left_val": "0.0337941907346249", "right_val": "0.8378106951713562" } ], [ { "feature": { "rects": [ "1 2 18 4 -1.", "7 2 6 4 3." ], "tilted": "0" }, "threshold": "0.0151513395830989", "left_val": "0.1514132022857666", "right_val": "0.7488812208175659" } ], [ { "feature": { "rects": [ "1 7 15 9 -1.", "1 10 15 3 3." ], "tilted": "0" }, "threshold": "4.2109931819140911e-003", "left_val": "0.0900492817163467", "right_val": "0.6374819874763489" } ] ], "stage_threshold": "0.8226894140243530", "parent": "-1", "next": "-1" }, { "trees": [ [ { "feature": { "rects": [ "5 6 2 6 -1.", "5 9 2 3 2." ], "tilted": "0" }, "threshold": "1.6227109590545297e-003", "left_val": "0.0693085864186287", "right_val": "0.7110946178436279" } ], [ { "feature": { "rects": [ "7 5 6 3 -1.", "9 5 2 3 3." ], "tilted": "0" }, "threshold": "2.2906649392098188e-003", "left_val": "0.1795803010463715", "right_val": "0.6668692231178284" } ], [ { "feature": { "rects": [ "4 0 12 9 -1.", "4 3 12 3 3." ], "tilted": "0" }, "threshold": "5.0025708042085171e-003", "left_val": "0.1693672984838486", "right_val": "0.6554006934165955" } ], [ { "feature": { "rects": [ "6 9 10 8 -1.", "6 13 10 4 2." ], "tilted": "0" }, "threshold": "7.9659894108772278e-003", "left_val": "0.5866332054138184", "right_val": "0.0914145186543465" } ], [ { "feature": { "rects": [ "3 6 14 8 -1.", "3 10 14 4 2." ], "tilted": "0" }, "threshold": "-3.5227010957896709e-003", "left_val": "0.1413166970014572", "right_val": "0.6031895875930786" } ], [ { "feature": { "rects": [ "14 1 6 10 -1.", "14 1 3 10 2." ], "tilted": "0" }, "threshold": "0.0366676896810532", "left_val": "0.3675672113895416", "right_val": "0.7920318245887756" } ], [ { "feature": { "rects": [ "7 8 5 12 -1.", "7 12 5 4 3." ], "tilted": "0" }, "threshold": "9.3361474573612213e-003", "left_val": "0.6161385774612427", "right_val": "0.2088509947061539" } ], [ { "feature": { "rects": [ "1 1 18 3 -1.", "7 1 6 3 3." ], "tilted": "0" }, "threshold": "8.6961314082145691e-003", "left_val": "0.2836230993270874", "right_val": "0.6360273957252502" } ], [ { "feature": { "rects": [ "1 8 17 2 -1.", "1 9 17 1 2." ], "tilted": "0" }, "threshold": "1.1488880263641477e-003", "left_val": "0.2223580926656723", "right_val": "0.5800700783729553" } ], [ { "feature": { "rects": [ "16 6 4 2 -1.", "16 7 4 1 2." ], "tilted": "0" }, "threshold": "-2.1484689787030220e-003", "left_val": "0.2406464070081711", "right_val": "0.5787054896354675" } ], [ { "feature": { "rects": [ "5 17 2 2 -1.", "5 18 2 1 2." ], "tilted": "0" }, "threshold": "2.1219060290604830e-003", "left_val": "0.5559654831886292", "right_val": "0.1362237036228180" } ], [ { "feature": { "rects": [ "14 2 6 12 -1.", "14 2 3 12 2." ], "tilted": "0" }, "threshold": "-0.0939491465687752", "left_val": "0.8502737283706665", "right_val": "0.4717740118503571" } ], [ { "feature": { "rects": [ "4 0 4 12 -1.", "4 0 2 6 2.", "6 6 2 6 2." ], "tilted": "0" }, "threshold": "1.3777789426967502e-003", "left_val": "0.5993673801422119", "right_val": "0.2834529876708984" } ], [ { "feature": { "rects": [ "2 11 18 8 -1.", "8 11 6 8 3." ], "tilted": "0" }, "threshold": "0.0730631574988365", "left_val": "0.4341886043548584", "right_val": "0.7060034275054932" } ], [ { "feature": { "rects": [ "5 7 10 2 -1.", "5 8 10 1 2." ], "tilted": "0" }, "threshold": "3.6767389974556863e-004", "left_val": "0.3027887940406799", "right_val": "0.6051574945449829" } ], [ { "feature": { "rects": [ "15 11 5 3 -1.", "15 12 5 1 3." ], "tilted": "0" }, "threshold": "-6.0479710809886456e-003", "left_val": "0.1798433959484100", "right_val": "0.5675256848335266" } ] ], "stage_threshold": "6.9566087722778320", "parent": "0", "next": "-1" }, { "trees": [ [ { "feature": { "rects": [ "5 3 10 9 -1.", "5 6 10 3 3." ], "tilted": "0" }, "threshold": "-0.0165106896311045", "left_val": "0.6644225120544434", "right_val": "0.1424857974052429" } ], [ { "feature": { "rects": [ "9 4 2 14 -1.", "9 11 2 7 2." ], "tilted": "0" }, "threshold": "2.7052499353885651e-003", "left_val": "0.6325352191925049", "right_val": "0.1288477033376694" } ], [ { "feature": { "rects": [ "3 5 4 12 -1.", "3 9 4 4 3." ], "tilted": "0" }, "threshold": "2.8069869149476290e-003", "left_val": "0.1240288019180298", "right_val": "0.6193193197250366" } ], [ { "feature": { "rects": [ "4 5 12 5 -1.", "8 5 4 5 3." ], "tilted": "0" }, "threshold": "-1.5402400167658925e-003", "left_val": "0.1432143002748489", "right_val": "0.5670015811920166" } ], [ { "feature": { "rects": [ "5 6 10 8 -1.", "5 10 10 4 2." ], "tilted": "0" }, "threshold": "-5.6386279175058007e-004", "left_val": "0.1657433062791824", "right_val": "0.5905207991600037" } ], [ { "feature": { "rects": [ "8 0 6 9 -1.", "8 3 6 3 3." ], "tilted": "0" }, "threshold": "1.9253729842603207e-003", "left_val": "0.2695507109165192", "right_val": "0.5738824009895325" } ], [ { "feature": { "rects": [ "9 12 1 8 -1.", "9 16 1 4 2." ], "tilted": "0" }, "threshold": "-5.0214841030538082e-003", "left_val": "0.1893538981676102", "right_val": "0.5782774090766907" } ], [ { "feature": { "rects": [ "0 7 20 6 -1.", "0 9 20 2 3." ], "tilted": "0" }, "threshold": "2.6365420781075954e-003", "left_val": "0.2309329062700272", "right_val": "0.5695425868034363" } ], [ { "feature": { "rects": [ "7 0 6 17 -1.", "9 0 2 17 3." ], "tilted": "0" }, "threshold": "-1.5127769438549876e-003", "left_val": "0.2759602069854736", "right_val": "0.5956642031669617" } ], [ { "feature": { "rects": [ "9 0 6 4 -1.", "11 0 2 4 3." ], "tilted": "0" }, "threshold": "-0.0101574398577213", "left_val": "0.1732538044452667", "right_val": "0.5522047281265259" } ], [ { "feature": { "rects": [ "5 1 6 4 -1.", "7 1 2 4 3." ], "tilted": "0" }, "threshold": "-0.0119536602869630", "left_val": "0.1339409947395325", "right_val": "0.5559014081954956" } ], [ { "feature": { "rects": [ "12 1 6 16 -1.", "14 1 2 16 3." ], "tilted": "0" }, "threshold": "4.8859491944313049e-003", "left_val": "0.3628703951835632", "right_val": "0.6188849210739136" } ], [ { "feature": { "rects": [ "0 5 18 8 -1.", "0 5 9 4 2.", "9 9 9 4 2." ], "tilted": "0" }, "threshold": "-0.0801329165697098", "left_val": "0.0912110507488251", "right_val": "0.5475944876670837" } ], [ { "feature": { "rects": [ "8 15 10 4 -1.", "13 15 5 2 2.", "8 17 5 2 2." ], "tilted": "0" }, "threshold": "1.0643280111253262e-003", "left_val": "0.3715142905712128", "right_val": "0.5711399912834168" } ], [ { "feature": { "rects": [ "3 1 4 8 -1.", "3 1 2 4 2.", "5 5 2 4 2." ], "tilted": "0" }, "threshold": "-1.3419450260698795e-003", "left_val": "0.5953313708305359", "right_val": "0.3318097889423370" } ], [ { "feature": { "rects": [ "3 6 14 10 -1.", "10 6 7 5 2.", "3 11 7 5 2." ], "tilted": "0" }, "threshold": "-0.0546011403203011", "left_val": "0.1844065934419632", "right_val": "0.5602846145629883" } ], [ { "feature": { "rects": [ "2 1 6 16 -1.", "4 1 2 16 3." ], "tilted": "0" }, "threshold": "2.9071690514683723e-003", "left_val": "0.3594244122505188", "right_val": "0.6131715178489685" } ], [ { "feature": { "rects": [ "0 18 20 2 -1.", "0 19 20 1 2." ], "tilted": "0" }, "threshold": "7.4718717951327562e-004", "left_val": "0.5994353294372559", "right_val": "0.3459562957286835" } ], [ { "feature": { "rects": [ "8 13 4 3 -1.", "8 14 4 1 3." ], "tilted": "0" }, "threshold": "4.3013808317482471e-003", "left_val": "0.4172652065753937", "right_val": "0.6990845203399658" } ], [ { "feature": { "rects": [ "9 14 2 3 -1.", "9 15 2 1 3." ], "tilted": "0" }, "threshold": "4.5017572119832039e-003", "left_val": "0.4509715139865875", "right_val": "0.7801457047462463" } ], [ { "feature": { "rects": [ "0 12 9 6 -1.", "0 14 9 2 3." ], "tilted": "0" }, "threshold": "0.0241385009139776", "left_val": "0.5438212752342224", "right_val": "0.1319826990365982" } ] ], "stage_threshold": "9.4985427856445313", "parent": "1", "next": "-1" }, { "trees": [ [ { "feature": { "rects": [ "5 7 3 4 -1.", "5 9 3 2 2." ], "tilted": "0" }, "threshold": "1.9212230108678341e-003", "left_val": "0.1415266990661621", "right_val": "0.6199870705604553" } ], [ { "feature": { "rects": [ "9 3 2 16 -1.", "9 11 2 8 2." ], "tilted": "0" }, "threshold": "-1.2748669541906565e-004", "left_val": "0.6191074252128601", "right_val": "0.1884928941726685" } ], [ { "feature": { "rects": [ "3 6 13 8 -1.", "3 10 13 4 2." ], "tilted": "0" }, "threshold": "5.1409931620582938e-004", "left_val": "0.1487396955490112", "right_val": "0.5857927799224854" } ], [ { "feature": { "rects": [ "12 3 8 2 -1.", "12 3 4 2 2." ], "tilted": "0" }, "threshold": "4.1878609918057919e-003", "left_val": "0.2746909856796265", "right_val": "0.6359239816665649" } ], [ { "feature": { "rects": [ "8 8 4 12 -1.", "8 12 4 4 3." ], "tilted": "0" }, "threshold": "5.1015717908740044e-003", "left_val": "0.5870851278305054", "right_val": "0.2175628989934921" } ], [ { "feature": { "rects": [ "11 3 8 6 -1.", "15 3 4 3 2.", "11 6 4 3 2." ], "tilted": "0" }, "threshold": "-2.1448440384119749e-003", "left_val": "0.5880944728851318", "right_val": "0.2979590892791748" } ], [ { "feature": { "rects": [ "7 1 6 19 -1.", "9 1 2 19 3." ], "tilted": "0" }, "threshold": "-2.8977119363844395e-003", "left_val": "0.2373327016830444", "right_val": "0.5876647233963013" } ], [ { "feature": { "rects": [ "9 0 6 4 -1.", "11 0 2 4 3." ], "tilted": "0" }, "threshold": "-0.0216106791049242", "left_val": "0.1220654994249344", "right_val": "0.5194202065467835" } ], [ { "feature": { "rects": [ "3 1 9 3 -1.", "6 1 3 3 3." ], "tilted": "0" }, "threshold": "-4.6299318782985210e-003", "left_val": "0.2631230950355530", "right_val": "0.5817409157752991" } ], [ { "feature": { "rects": [ "8 15 10 4 -1.", "13 15 5 2 2.", "8 17 5 2 2." ], "tilted": "0" }, "threshold": "5.9393711853772402e-004", "left_val": "0.3638620078563690", "right_val": "0.5698544979095459" } ], [ { "feature": { "rects": [ "0 3 6 10 -1.", "3 3 3 10 2." ], "tilted": "0" }, "threshold": "0.0538786612451077", "left_val": "0.4303531050682068", "right_val": "0.7559366226196289" } ], [ { "feature": { "rects": [ "3 4 15 15 -1.", "3 9 15 5 3." ], "tilted": "0" }, "threshold": "1.8887349870055914e-003", "left_val": "0.2122603058815002", "right_val": "0.5613427162170410" } ], [ { "feature": { "rects": [ "6 5 8 6 -1.", "6 7 8 2 3." ], "tilted": "0" }, "threshold": "-2.3635339457541704e-003", "left_val": "0.5631849169731140", "right_val": "0.2642767131328583" } ], [ { "feature": { "rects": [ "4 4 12 10 -1.", "10 4 6 5 2.", "4 9 6 5 2." ], "tilted": "0" }, "threshold": "0.0240177996456623", "left_val": "0.5797107815742493", "right_val": "0.2751705944538117" } ], [ { "feature": { "rects": [ "6 4 4 4 -1.", "8 4 2 4 2." ], "tilted": "0" }, "threshold": "2.0543030404951423e-004", "left_val": "0.2705242037773132", "right_val": "0.5752568840980530" } ], [ { "feature": { "rects": [ "15 11 1 2 -1.", "15 12 1 1 2." ], "tilted": "0" }, "threshold": "8.4790197433903813e-004", "left_val": "0.5435624718666077", "right_val": "0.2334876954555512" } ], [ { "feature": { "rects": [ "3 11 2 2 -1.", "3 12 2 1 2." ], "tilted": "0" }, "threshold": "1.4091329649090767e-003", "left_val": "0.5319424867630005", "right_val": "0.2063155025243759" } ], [ { "feature": { "rects": [ "16 11 1 3 -1.", "16 12 1 1 3." ], "tilted": "0" }, "threshold": "1.4642629539594054e-003", "left_val": "0.5418980717658997", "right_val": "0.3068861067295075" } ], [ { "feature": { "rects": [ "3 15 6 4 -1.", "3 15 3 2 2.", "6 17 3 2 2." ], "tilted": "0" }, "threshold": "1.6352549428120255e-003", "left_val": "0.3695372939109802", "right_val": "0.6112868189811707" } ], [ { "feature": { "rects": [ "6 7 8 2 -1.", "6 8 8 1 2." ], "tilted": "0" }, "threshold": "8.3172752056270838e-004", "left_val": "0.3565036952495575", "right_val": "0.6025236248970032" } ], [ { "feature": { "rects": [ "3 11 1 3 -1.", "3 12 1 1 3." ], "tilted": "0" }, "threshold": "-2.0998890977352858e-003", "left_val": "0.1913982033729553", "right_val": "0.5362827181816101" } ], [ { "feature": { "rects": [ "6 0 12 2 -1.", "6 1 12 1 2." ], "tilted": "0" }, "threshold": "-7.4213981861248612e-004", "left_val": "0.3835555016994476", "right_val": "0.5529310107231140" } ], [ { "feature": { "rects": [ "9 14 2 3 -1.", "9 15 2 1 3." ], "tilted": "0" }, "threshold": "3.2655049581080675e-003", "left_val": "0.4312896132469177", "right_val": "0.7101895809173584" } ], [ { "feature": { "rects": [ "7 15 6 2 -1.", "7 16 6 1 2." ], "tilted": "0" }, "threshold": "8.9134991867467761e-004", "left_val": "0.3984830975532532", "right_val": "0.6391963958740234" } ], [ { "feature": { "rects": [ "0 5 4 6 -1.", "0 7 4 2 3." ], "tilted": "0" }, "threshold": "-0.0152841797098517", "left_val": "0.2366732954978943", "right_val": "0.5433713793754578" } ], [ { "feature": { "rects": [ "4 12 12 2 -1.", "8 12 4 2 3." ], "tilted": "0" }, "threshold": "4.8381411470472813e-003", "left_val": "0.5817500948905945", "right_val": "0.3239189088344574" } ], [ { "feature": { "rects": [ "6 3 1 9 -1.", "6 6 1 3 3." ], "tilted": "0" }, "threshold": "-9.1093179071322083e-004", "left_val": "0.5540593862533569", "right_val": "0.2911868989467621" } ], [ { "feature": { "rects": [ "10 17 3 2 -1.", "11 17 1 2 3." ], "tilted": "0" }, "threshold": "-6.1275060288608074e-003", "left_val": "0.1775255054235458", "right_val": "0.5196629166603088" } ], [ { "feature": { "rects": [ "9 9 2 2 -1.", "9 10 2 1 2." ], "tilted": "0" }, "threshold": "-4.4576259097084403e-004", "left_val": "0.3024170100688934", "right_val": "0.5533593893051148" } ], [ { "feature": { "rects": [ "7 6 6 4 -1.", "9 6 2 4 3." ], "tilted": "0" }, "threshold": "0.0226465407758951", "left_val": "0.4414930939674377", "right_val": "0.6975377202033997" } ], [ { "feature": { "rects": [ "7 17 3 2 -1.", "8 17 1 2 3." ], "tilted": "0" }, "threshold": "-1.8804960418492556e-003", "left_val": "0.2791394889354706", "right_val": "0.5497952103614807" } ], [ { "feature": { "rects": [ "10 17 3 3 -1.", "11 17 1 3 3." ], "tilted": "0" }, "threshold": "7.0889107882976532e-003", "left_val": "0.5263199210166931", "right_val": "0.2385547012090683" } ], [ { "feature": { "rects": [ "8 12 3 2 -1.", "8 13 3 1 2." ], "tilted": "0" }, "threshold": "1.7318050377070904e-003", "left_val": "0.4319379031658173", "right_val": "0.6983600854873657" } ], [ { "feature": { "rects": [ "9 3 6 2 -1.", "11 3 2 2 3." ], "tilted": "0" }, "threshold": "-6.8482700735330582e-003", "left_val": "0.3082042932510376", "right_val": "0.5390920042991638" } ], [ { "feature": { "rects": [ "3 11 14 4 -1.", "3 13 14 2 2." ], "tilted": "0" }, "threshold": "-1.5062530110299122e-005", "left_val": "0.5521922111511231", "right_val": "0.3120366036891937" } ], [ { "feature": { "rects": [ "1 10 18 4 -1.", "10 10 9 2 2.", "1 12 9 2 2." ], "tilted": "0" }, "threshold": "0.0294755697250366", "left_val": "0.5401322841644287", "right_val": "0.1770603060722351" } ], [ { "feature": { "rects": [ "0 10 3 3 -1.", "0 11 3 1 3." ], "tilted": "0" }, "threshold": "8.1387329846620560e-003", "left_val": "0.5178617835044861", "right_val": "0.1211019009351730" } ], [ { "feature": { "rects": [ "9 1 6 6 -1.", "11 1 2 6 3." ], "tilted": "0" }, "threshold": "0.0209429506212473", "left_val": "0.5290294289588928", "right_val": "0.3311221897602081" } ], [ { "feature": { "rects": [ "8 7 3 6 -1.", "9 7 1 6 3." ], "tilted": "0" }, "threshold": "-9.5665529370307922e-003", "left_val": "0.7471994161605835", "right_val": "0.4451968967914581" } ] ], "stage_threshold": "18.4129695892333980", "parent": "2", "next": "-1" }, { "trees": [ [ { "feature": { "rects": [ "1 0 18 9 -1.", "1 3 18 3 3." ], "tilted": "0" }, "threshold": "-2.8206960996612906e-004", "left_val": "0.2064086049795151", "right_val": "0.6076732277870178" } ], [ { "feature": { "rects": [ "12 10 2 6 -1.", "12 13 2 3 2." ], "tilted": "0" }, "threshold": "1.6790600493550301e-003", "left_val": "0.5851997137069702", "right_val": "0.1255383938550949" } ], [ { "feature": { "rects": [ "0 5 19 8 -1.", "0 9 19 4 2." ], "tilted": "0" }, "threshold": "6.9827912375330925e-004", "left_val": "0.0940184295177460", "right_val": "0.5728961229324341" } ], [ { "feature": { "rects": [ "7 0 6 9 -1.", "9 0 2 9 3." ], "tilted": "0" }, "threshold": "7.8959012171253562e-004", "left_val": "0.1781987994909287", "right_val": "0.5694308876991272" } ], [ { "feature": { "rects": [ "5 3 6 1 -1.", "7 3 2 1 3." ], "tilted": "0" }, "threshold": "-2.8560499195009470e-003", "left_val": "0.1638399064540863", "right_val": "0.5788664817810059" } ], [ { "feature": { "rects": [ "11 3 6 1 -1.", "13 3 2 1 3." ], "tilted": "0" }, "threshold": "-3.8122469559311867e-003", "left_val": "0.2085440009832382", "right_val": "0.5508564710617065" } ], [ { "feature": { "rects": [ "5 10 4 6 -1.", "5 13 4 3 2." ], "tilted": "0" }, "threshold": "1.5896620461717248e-003", "left_val": "0.5702760815620422", "right_val": "0.1857215017080307" } ], [ { "feature": { "rects": [ "11 3 6 1 -1.", "13 3 2 1 3." ], "tilted": "0" }, "threshold": "0.0100783398374915", "left_val": "0.5116943120956421", "right_val": "0.2189770042896271" } ], [ { "feature": { "rects": [ "4 4 12 6 -1.", "4 6 12 2 3." ], "tilted": "0" }, "threshold": "-0.0635263025760651", "left_val": "0.7131379842758179", "right_val": "0.4043813049793243" } ], [ { "feature": { "rects": [ "15 12 2 6 -1.", "15 14 2 2 3." ], "tilted": "0" }, "threshold": "-9.1031491756439209e-003", "left_val": "0.2567181885242462", "right_val": "0.5463973283767700" } ], [ { "feature": { "rects": [ "9 3 2 2 -1.", "10 3 1 2 2." ], "tilted": "0" }, "threshold": "-2.4035000242292881e-003", "left_val": "0.1700665950775147", "right_val": "0.5590974092483521" } ], [ { "feature": { "rects": [ "9 3 3 1 -1.", "10 3 1 1 3." ], "tilted": "0" }, "threshold": "1.5226360410451889e-003", "left_val": "0.5410556793212891", "right_val": "0.2619054019451141" } ], [ { "feature": { "rects": [ "1 1 4 14 -1.", "3 1 2 14 2." ], "tilted": "0" }, "threshold": "0.0179974399507046",