net.sourceforge.javaocr.ocrPlugins.lineExtractor
Class LineExtractor
java.lang.Object
net.sourceforge.javaocr.scanner.DocumentScannerListenerAdaptor
net.sourceforge.javaocr.ocrPlugins.lineExtractor.LineExtractor
- All Implemented Interfaces:
- DocumentScannerListener
public class LineExtractor
- extends DocumentScannerListenerAdaptor
Saves all the characters in an image to an output directory individually.
- Author:
- William Whitney
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
num
private int num
documentScanner
private DocumentScanner documentScanner
outputDir
private File outputDir
inputImage
private File inputImage
LOG
private static final Logger LOG
LineExtractor
public LineExtractor()
slice
public void slice(File inputImage,
File outputDir)
beginRow
public void beginRow(PixelImage pixelImage,
int y1,
int y2)
- Specified by:
beginRow in interface DocumentScannerListener- Overrides:
beginRow in class DocumentScannerListenerAdaptor
Copyright © -2012. All Rights Reserved.