Package adams.data.barcode.decode
Class MultiQRCode
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.barcode.decode.AbstractBarcodeDecoder
-
- adams.data.barcode.decode.MultiQRCode
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class MultiQRCode extends AbstractBarcodeDecoder
Decodes all the QR codes using the ZXing library.
For more information see:
https://github.com/zxing/zxing
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
- Author:
- lx51 (lx51 at students dot waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
REPORT_PARAM_COUNT
Key name for code count.static String
REPORT_PARAM_DATA
Key name for text data in the report.static String
REPORT_PARAM_FORMAT
Key name for barcode format in the report.static String
REPORT_PARAM_HEIGHT
Key name for barcode height in report.static String
REPORT_PARAM_METADATA_PREFIX
Key name prefix for ZXing result metadata.static String
REPORT_PARAM_WIDTH
Key name for barcode width in report.static String
REPORT_PARAM_X
Key name for barcode top-left x in report.static String
REPORT_PARAM_Y
Key name for barcode top-left y in report.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description MultiQRCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TextContainer
doDecode(AbstractImageContainer image)
Performs the actual decoding.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.data.barcode.decode.AbstractBarcodeDecoder
check, decode
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
REPORT_PARAM_COUNT
public static final String REPORT_PARAM_COUNT
Key name for code count.- See Also:
- Constant Field Values
-
REPORT_PARAM_METADATA_PREFIX
public static final String REPORT_PARAM_METADATA_PREFIX
Key name prefix for ZXing result metadata.- See Also:
- Constant Field Values
-
REPORT_PARAM_DATA
public static final String REPORT_PARAM_DATA
Key name for text data in the report.- See Also:
- Constant Field Values
-
REPORT_PARAM_FORMAT
public static final String REPORT_PARAM_FORMAT
Key name for barcode format in the report.- See Also:
- Constant Field Values
-
REPORT_PARAM_X
public static final String REPORT_PARAM_X
Key name for barcode top-left x in report.- See Also:
- Constant Field Values
-
REPORT_PARAM_Y
public static final String REPORT_PARAM_Y
Key name for barcode top-left y in report.- See Also:
- Constant Field Values
-
REPORT_PARAM_WIDTH
public static final String REPORT_PARAM_WIDTH
Key name for barcode width in report.- See Also:
- Constant Field Values
-
REPORT_PARAM_HEIGHT
public static final String REPORT_PARAM_HEIGHT
Key name for barcode height in report.- See Also:
- Constant Field Values
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
doDecode
protected TextContainer doDecode(AbstractImageContainer image)
Performs the actual decoding.- Specified by:
doDecode
in classAbstractBarcodeDecoder
- Parameters:
image
- the image to extract the barcode from- Returns:
- a TextContainer with the decoded barcode text and (optional) meta-data
-
-