Processing multiple Images/Pages
| Method | Description |
|---|---|
SetInput |
Sets up an image source to provide images for continuous processing. |
GetInput |
Returns the image source object. |
AddResultReceiver |
Adds a ICapturedResultReceiver object as the receiver of captured results. |
RemoveResultReceiver |
Removes the specified CapturedResultReceiver object. |
StartCapturing |
Initiates a capturing process based on a specified template. This process is repeated for each image fetched from the source. |
StopCapturing |
Stops the capturing process. |
AddResultFilter |
Adds a CaptureResultFilter object to filter non-essential results. |
RemoveResultFilter |
Removes the specified CaptureResultFilter object. |
SwitchCapturingTemplate |
Switch the image processing settings with the CaptureVisionTemplate name during the image processing workflow. |
SetInput
Sets up an image source to provide images for continuous processing.
void SetInput(ImageSourceAdapter adapter);
Parameters
[in] adapter: An object of ImageSourceAdapter.
You can use an object of
CameraEnhanceras theImageSourceAdapterobject.
Possible Errors
| Error Code | Value | Description |
|---|---|---|
| EC_CALL_REJECTED_WHEN_CAPTURING | -10062 | Function call is rejected when capturing in progress. |
GetInput
Returns the image source object.
ImageSourceAdapter GetInput();
Return Value
The ImageSourceAdapter object that is bind with this CaptureVisionRouter object.
AddResultReceiver
Adds a ICapturedResultReceiver object as the receiver of captured results.
void AddResultReceiver(ICapturedResultReceiver receiver);
Parameters
[in] receiver: The receiver object, of type ICapturedResultReceiver.
RemoveResultReceiver
Removes the specified ICapturedResultReceiver object.
void RemoveResultReceiver(ICapturedResultReceiver receiver);
Parameters
[in] receiver: The receiver object, of type ICapturedResultReceiver.
StartCapturing
Initiates a capturing process based on a specified template. This process is repeated for each image fetched from the source.
void StartCapturing(string templateName, ICompletionListener completionHandler);
Parameters
[in] templateName: Specifies a “CaptureVisionTemplate” to use. The following value are available for this parameter:
- One of the
EnumPresetTemplatemember. This is available only if you have never upload a new template viaInitSettingsorInitSettingsFromFile. - A string that represents one of the template name that you have uploaded via
InitSettingsorInitSettingsFromFile. - ”” (empty string) to use the default template. The first template will be used if you have uploaded a template file via
InitSettingsFromFileorInitSettings.
[in] completionHandler: A CompletionListener the system calls after it finishes the StartCapturing.
StopCapturing
Stops the capturing process.
void StopCapturing();
AddResultFilter
Adds a CapturedResultFilter object to filter non-essential results. Currnetly, MultiFrameCrossFilter is the only supported implementation of the CapturedResultFilter.
void AddResultFilter(ICapturedResultFilter filter);
Parameters
[in] filter: The filter object, of type CapturedResultFilter. Currnetly, is must be a MultiFrameCrossFilter object.
RemoveResultFilter
Removes the specified CapturedResultFilter object.
void RemoveResultFilter(ICapturedResultFilter filter);
Parameters
[in] filter: The filter object, of type CapturedResultFilter.
SwitchCapturingTemplate
Switch the image processing settings with the CaptureVisionTemplate name during the image processing workflow.
partial void SwitchCapturingTemplate(string template);
Parameters
[in] template: The name of the new capturing template to apply.
Exception
| Error Code | Value | Description |
|---|---|---|
| EC_TEMPLATE_NAME_INVALID | -10036 | The target template name is invalid. |
Remarks
- Introduced in Dynamsoft Barcode Reader SDK version 11.2.3000 and Dynamsoft Capture Vision version 3.2.3000.