gulp-converter-tjs
Converts new type of OpenCV HaarCascade XML data to the new one.
Process
converter-tjs takes a XML of OpenCV training data (new type), parses it to an internal representation (JavaScript object) and then pushes to its standard output the tracking.js format of it.
Example
var gulp = ;var converterTjs = ; gulp;
BOOST HAAR 20 20 1 0 1 1 -1.4562760591506958e+00 0 -1 0 1.2963959574699402e-01 -7.7304208278656006e-01 6.8350148200988770e-01 0 8 20 12 -1. 0 14 20 6 2. 1
turns into
which turns into
2020-14562760591506958112082012-10142062012963959574699402 -077304208278656006-068350148200988770 // which is similar to a flattened nested array w/ loops ('[]') like the following: width height stageThreshold nodeLength tilted rectsLength rL rT rW rH rWeigth nThreshold nL nR