Table of contents

Single-File Processing Methods - CaptureVisionRouter Class

Method Description
capture Process an image or file to derive important information.
captureMultiPages Processes an image or file containing multiple pages to derive important information.

capture

Process an image or file to derive important information. It can optionally use a specified template for the capture.

public CapturedResult capture(String filePath)
public CapturedResult capture(String filePath, String templateName)
public CapturedResult capture(byte[] fileBytes)
public CapturedResult capture(byte[] fileBytes, String templateName)
public CapturedResult capture(ImageData pImageData)
public CapturedResult capture(ImageData pImageData, String templateName)

Parameters

filePath <String>: Specifies the path of the file to process.

fileBytes <byte[]>: Specifies the image file bytes in memory to process.

pImageData <ImageData>: Specifies the image data to process.

templateName <String, optional>: Specifies a CaptureVisionTemplate to use for capturing.

Remarks

  • There are two types of CaptureVisionTemplate: the preset ones which come with the SDK and the custom ones that get initialized when the user calls initSettings / initSettingsFromFile.
  • When using a custom template, the parameter templateName should be the name of the CaptureVisionTemplate object in the JSON template file.
  • Please be aware that the preset CaptureVisionTemplates will be overwritten should the user call initSettings / initSettingsFromFile and pass his own settings.
  • If parameter templateName is not specified, the preset one named ‘Default’ will be used. However, if the preset ones have been overwritten as described above, the first CaptureVisionTemplate from the user’s own settings will be used instead.

Return Value

Returns a CapturedResult object containing the captured items.

See Also

ImageData

CapturedResult

captureMultiPages

Processes an image or file containing multiple pages to derive important information. It can optionally use a specified template for the capture.

public CapturedResult[] captureMultiPages(String filePath)
public CapturedResult[] captureMultiPages(String filePath, String templateName)
public CapturedResult[] captureMultiPages(byte[] fileBytes)
public CapturedResult[] captureMultiPages(byte[] fileBytes, String templateName)

Parameters

filePath <String>: Specifies the path of the file containing multiple pages to process.

fileBytes <byte[]>: Specifies the image file bytes in memory containing multiple pages to process.

templateName <String, optional>: Specifies a CaptureVisionTemplate to use for capturing.

Remarks

  • There are two types of CaptureVisionTemplate: the preset ones which come with the SDK and the custom ones that get initialized when the user calls initSettings / initSettingsFromFile.
  • When using a custom template, the parameter templateName should be the name of the CaptureVisionTemplate object in the JSON template file.
  • Please be aware that the preset CaptureVisionTemplates will be overwritten should the user call initSettings / initSettingsFromFile and pass his own settings.
  • If parameter templateName is not specified, the preset one named ‘Default’ will be used. However, if the preset ones have been overwritten as described above, the first CaptureVisionTemplate from the user’s own settings will be used instead.

Return Value

Returns an array of CapturedResult objects containing a collection of captured results, where each entry corresponds to a processed page.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: