cirocosta / gulp-converter-tjs

Converts old/new type of OpenCV HaarCascade xml data to trackingJs' internal format.
MIT License
37 stars 6 forks source link

Gulp Version #1

Closed cirocosta closed 10 years ago

cirocosta commented 10 years ago

this pr modifies the transform to be fully gulp-ready. It currently lacks support to file streams (it is supporting only the default - buffer).

Something crazy is happening: it is doing it all right for a single file (gulp.src('files/file.xml')) but it throws an exception when i try to use it for more (gulp.src(files/*.xml)). The stacktrace is the following:

Error: junk after document element in line 11037
    at parseChunk (/home/ciro/Development/Javascript/cvc-converter/node_modules/xml-stream/lib/xml-stream.js:510:26)

(tests will fail. Won't merge this now) i can't understand why one of its tests is not passing. It is quite ready to merge