Resource Base
Table of contents

IntermediateResultManager

The IntermediateResultManager class is responsible for handling intermediate results obtained during the process of an image. It offers methods to both register and deregister receivers of these intermediate results, as well as to retrieve the original image data.

Name Description
addResultReceiver() Adds a IntermediateResultReceiver object as the receiver of intermediate results.
removeResultReceiver() Removes the specified IntermediateResultReceiver object.
getOriginalImage() Retrieves the original image data.

addResultReceiver

Adds a IntermediateResultReceiver object as the receiver of intermediate results.

Syntax

addResultReceiver(receiver: IntermediateResultReceiver): void;

Parameters

receiver: the receiver object, of type IntermediateResultReceiver.

Return Value

None.

Code snippet

router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
const intermediateResultReceiver = new Dynamsoft.CVR.IntermediateResultReceiver();
intermediateResultReceiver.onDecodedBarcodesReceived = (result, info) => {
    /* Do something with the result */
};
const intermediateResultManager = router.getIntermediateResultManager();
intermediateResultManager.addResultReceiver(intermediateResultReceiver);

See Also

IntermediateResultReceiver

removeResultReceiver

Removes the specified IntermediateResultReceiver object.

Syntax

removeResultReceiver(receiver: IntermediateResultReceiver): void;

Parameters

receiver: the receiver object, of type IntermediateResultReceiver.

Return Value

None.

Code snippet

router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
const intermediateResultReceiver = new Dynamsoft.CVR.IntermediateResultReceiver();
intermediateResultReceiver.onDecodedBarcodesReceived = (result, info) => {
    /* Do something with the result */
};
const intermediateResultManager = router.getIntermediateResultManager();
intermediateResultManager.addResultReceiver(intermediateResultReceiver);
// ...
intermediateResultManager.removeResultReceiver(intermediateResultReceiver);

See Also

IntermediateResultReceiver

getOriginalImage

Retrieves the original image data.

getOriginalImage(): DSImageData;

Parameters

None.

Return value

The original image on native resolution.

See Also

DSImageData

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version(2.2.30)
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support