ocrservice
Advanced tools
Comparing version 0.1.25 to 0.1.26
@@ -372,3 +372,3 @@ (function() { | ||
file = path.join(me.pathName, me.files[me.fileIndex]); | ||
debug('fullscann', file); | ||
debug('fullscann', file, 'failpath', failpath); | ||
recognizer = new Recognizer; | ||
@@ -412,4 +412,5 @@ recognizer.setDebug(false); | ||
name = codes.join('.'); | ||
if (boxes.length > 0 && codes.length > 0) { | ||
if (boxes.length > 0 && codes.length > 0 && boxes[0].box.length > 0) { | ||
boxes[0].codes = codes; | ||
console.log(path.join(me.pathName, 'good', name + path.extname(file))); | ||
return fs.rename(file, path.join(me.pathName, 'good', name + path.extname(file)), function(err) { | ||
@@ -425,2 +426,3 @@ if (err) { | ||
} else { | ||
console.log(path.join(me.pathName, failpath, name + path.extname(file))); | ||
return fs.rename(file, path.join(me.pathName, failpath, name + path.extname(file)), function(err) { | ||
@@ -427,0 +429,0 @@ if (err) { |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"engines": { | ||
@@ -12,0 +12,0 @@ "node": ">=0.12.0" |
Sorry, the diff of this file is not supported yet
151435
2375
63