edu.berkeley.guir.papier_mache.barcode
Class PDF417Decoder

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.barcode.PDF417Decoder
All Implemented Interfaces:
BarcodeDecoder, CurrentPhobsListener, java.util.EventListener

public class PDF417Decoder
extends java.lang.Object
implements BarcodeDecoder, CurrentPhobsListener

Author:
Ray Su ( raysu(AT)cal.berkeley.edu ), Scott Klemmer ( srk(AT)cs.berkeley.edu ) Based on PDF417Decode C code, originally written by Ian Goldberg, and modified by OOO S. (ooosawaddee3@hotmail.com) This class decodes barcodes found by a Vision Phob Producer. It is robust enough to decode Cybercodes in all orientations except for 1. up-side down orientations 2. orientations where the barcode is capture with perspective skew. The decoder is rather simple, and ignores error correction info. For more information about the PDF417 specification, see http://www.pdf417.com/PDF417_tutorial/pdf417_tutorial_table_of_contents.htm Created on Jul 16, 2003

Constructor Summary
PDF417Decoder(VisionPhobProducer visionProducer, BarcodePhobProducer bcodeProducer)
           
 
Method Summary
 void phobSetUpdated(CurrentPhobsEvent e)
          Implement a CurrentPhobsListener method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDF417Decoder

public PDF417Decoder(VisionPhobProducer visionProducer,
                     BarcodePhobProducer bcodeProducer)
Method Detail

phobSetUpdated

public void phobSetUpdated(CurrentPhobsEvent e)
Implement a CurrentPhobsListener method. When the current set of VisionPhobs get updated, group the phobs based on proximity to one another and attempt to decode all PDF417 barcodes in the set and fire the appropriate PhobEvent.

Specified by:
phobSetUpdated in interface CurrentPhobsListener