Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
Method | Description |
---|---|
getIntermediateResults |
Get intermediate results. |
enableResultVerification |
Result will be verified before output. |
enableDuplicateFilter |
Duplicate results will be filtered and output only once for every 3 seconds |
Get intermediate results containing the original image, the color clustered image, the binarized Image, contours, Lines, TextBlocks, etc.
IntermediateResult[] getIntermediateResults() throws BarcodeReaderException
Return Value
The intermediate results were returned by the SDK.
Exceptions
Code Snippet
BarcodeReader reader = new BarcodeReader();
PublicRuntimeSettings settings = reader.getRuntimeSettings();
settings.intermediateResultTypes = EnumIntermediateResultType.IRT_ORIGINAL_IMAGE | EnumIntermediateResultType.IRT_COLOUR_CLUSTERED_IMAGE | EnumIntermediateResultType.IRT_COLOUR_CONVERTED_GRAYSCALE_IMAGE;
reader.updateRuntimeSettings(settings);
TextResult[] result = reader.decodeFile("your file path", "");
IntermediateResult[] irtResult = reader.getIntermediateResults();
reader.destroy();
The text results will be verified before output if the result verification is enabled.
void enableResultVerification(boolean) throws BarcodeReaderException
Exceptions
Code Snippet
reader.enableResultVerification(true)
// To check the status of this mode:
boolean x = reader.getEnableResultVerificationStatus();
The duplicated text result will be filtered. The barcode reader will not output the result for the same barcode a second time in 3 seconds.
void enableDuplicateFilter(boolean) throws BarcodeReaderException
Exceptions
Code Snippet
reader.enableDuplicateFilter(true)
// To check the status of this mode:
boolean x = reader.getEnableDuplicateFilterStatus();
latest version