edu.berkeley.guir.papier_mache.barcode
Class BarcodePhobProducer
java.lang.Object
edu.berkeley.guir.papier_mache.PhobProducer
edu.berkeley.guir.papier_mache.barcode.BarcodePhobProducer
- All Implemented Interfaces:
- java.util.EventListener, InputDataListener
- public class BarcodePhobProducer
- extends PhobProducer
- implements InputDataListener
- Author:
- Scott Klemmer ( srk(AT)cs.berkeley.edu ), Ray Su ( raysu(AT)cal.berkeley.edu )
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BarcodePhobProducer
public BarcodePhobProducer(VisionPhobProducer producer)
- Creates a new Barcode phob producer that finds PDF417, EAN, and Cybercodes.
BarcodePhobProducer
public BarcodePhobProducer(VisionPhobProducer producer,
int codeType)
- Creates a new Barcode phob producer that finds only the specified code type.
getPhobType
public java.lang.Class getPhobType()
- Specified by:
getPhobType
in class PhobProducer
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
dataReceived
public void dataReceived(InputDataEvent event)
- Specified by:
dataReceived
in interface InputDataListener
conductBarcodeTracking
public void conductBarcodeTracking(java.lang.String decodedString,
VisionPhobCollection barcodeGroup,
java.util.List barcodePhobs,
java.util.List newBarcodePhobs,
int barcodeType)
- Conduct tracking of newly generated BarcodePhob to the existing set.
- Parameters:
decodedString
- the newly decoded Barcode to be created into a BarcodePhobbarcodeGroup
- a VisionPhobCollection representing the group of VisionPhobs that the decoded barcode belongs tobarcodePhobs
- a List representing a list of current existing BarcodePhobsnewBarcodePhobs
- the List of newBarcodePhobs created
refreshBarcodes
public void refreshBarcodes(java.util.List barcodePhobs)
- Given a list of BarcodePhobs, fire a PhobRemovedEvent for each one of them.
- Parameters:
barcodePhobs
-