DecodedResult
The DecodedResult object will provide the result of the scanned object. It will contain:
// A string containing the scanned content. Might be null if the content can't be represented as a string
String resultString;
// Raw bytes containing the scanned content
byte[] resultByte;
// Type of the decoded code
long codeType;
// Subtype of the decoded code
long codeSubType;
// Only used in qr code for now.
// If the warning isn’t null, there has been an issue while trying convert the data into text.
// You might want to use the resultByte if there is warning.
boolean errorParsingQrCode;
// Map containing metadata about the result
HashMap<String, String> metadata
Note on the DecodedResult.metadata
All decoders:
- type: a text description of the type of code found in the image.
Theia decoder:
- score: plate recognition score (between 0.0 and 1.0).
- color: color of the plate (not the car).
- country: if determined, the origin of the plate.
- stage_number: the number of stages of the plate.
- plate_type: the plate type. It can take the following values:
- Swiss plates: Unknown, Agricultural, Carrier, Diplomatic, Exceptional, Garage, Military, Regular, Slow, Temporary, Utility
- All other countries: Unknown.