net.sourceforge.javaocr.ocrPlugins.lineExtractor
Class LineExtractor

java.lang.Object
  extended by net.sourceforge.javaocr.scanner.DocumentScannerListenerAdaptor
      extended by 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

Field Summary
private  DocumentScanner documentScanner
           
private  File inputImage
           
private static Logger LOG
           
private  int num
           
private  File outputDir
           
 
Constructor Summary
LineExtractor()
           
 
Method Summary
 void beginRow(PixelImage pixelImage, int y1, int y2)
           
 void slice(File inputImage, File outputDir)
           
 
Methods inherited from class net.sourceforge.javaocr.scanner.DocumentScannerListenerAdaptor
beginDocument, endDocument, endRow, processChar, processSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num

private int num

documentScanner

private DocumentScanner documentScanner

outputDir

private File outputDir

inputImage

private File inputImage

LOG

private static final Logger LOG
Constructor Detail

LineExtractor

public LineExtractor()
Method Detail

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.