MCPcopy Create free account
hub / github.com/creatale/node-dv / writeImageBoxes

Function writeImageBoxes

test/tesseract.test.js:24–33  ·  view source on GitHub ↗
(basename, image, array)

Source from the content-addressed store, hash-verified

22}
23
24var writeImageBoxes = function(basename, image, array){
25 //console.log(util.inspect(array, false, 100));
26 var canvas = new dv.Image(image);
27 for (var i in array) {
28 canvas.drawBox(array[i].box.x, array[i].box.y,
29 array[i].box.width, array[i].box.height,
30 2, 'flip')
31 }
32 fs.writeFileSync(__dirname + '/fixtures_out/' + basename, canvas.toBuffer('png'));
33}
34
35describe('Tesseract', function(){
36 this.timeout(12000);

Callers 1

tesseract.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected