net.sourceforge.javaocr.ocrPlugins.charTracer
Class CharacterTracer
java.lang.Object
net.sourceforge.javaocr.scanner.DocumentScannerListenerAdaptor
net.sourceforge.javaocr.ocrPlugins.charTracer.CharacterTracer
- All Implemented Interfaces:
- DocumentScannerListener
public class CharacterTracer
- extends DocumentScannerListenerAdaptor
Saves all the characters in an image to an output directory individually.
- Author:
- William Whitney
|
Method Summary |
BufferedImage |
getTracedImage(File inputImage)
|
void |
processChar(PixelImage pixelImage,
int x1,
int y1,
int x2,
int y2,
int rowY1,
int rowY2)
|
void |
processSpace(PixelImage pixelImage,
int x1,
int y1,
int x2,
int y2)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
documentScanner
private DocumentScanner documentScanner
bfImage
private BufferedImage bfImage
bfImageGraphics
private Graphics2D bfImageGraphics
LOG
private static final Logger LOG
CharacterTracer
public CharacterTracer()
getTracedImage
public BufferedImage getTracedImage(File inputImage)
processChar
public void processChar(PixelImage pixelImage,
int x1,
int y1,
int x2,
int y2,
int rowY1,
int rowY2)
- Specified by:
processChar in interface DocumentScannerListener- Overrides:
processChar in class DocumentScannerListenerAdaptor
processSpace
public void processSpace(PixelImage pixelImage,
int x1,
int y1,
int x2,
int y2)
- Specified by:
processSpace in interface DocumentScannerListener- Overrides:
processSpace in class DocumentScannerListenerAdaptor
Copyright © -2012. All Rights Reserved.