(basename, image, array)
| 22 | } |
| 23 | |
| 24 | var 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 | |
| 35 | describe('Tesseract', function(){ |
| 36 | this.timeout(12000); |