Code Samples
The ABBYY Mobile Capture SDK distribution package includes several code samples that show API usage and provide examples of typical scenarios.
The code samples are found in the root folder of the distribution package. All samples are provided in Objective-C and/or Swift programming languages.
Sample scenario | Folder name | Description |
---|---|---|
Text Capture | sample-textcapture sample-textcapture-swift |
A simple text capture scenario. The only setting available to the user is the text language. |
Data Capture | sample-datacapture sample-datacapture-swift |
The general data capture scenario showing how to capture a predefined document and a custom data field. |
sample-ui-datacapture-swift | This sample illustrates the steps you need to perform to create a mobile application for data capture from document. | |
Image Capture | sample-imagecapture sample-imagecapture-swift |
This simple image capture scenarios demonstrate how to automatically capture an image from the smartphone video preview frames. |
sample-ui-imagecapture sample-ui-imagecapture-swift |
The image capture scenario for capturing single page from the video-stream, using the special API for user interface implementation. | |
sample-ui-imagecapture-multipage sample-ui-imagecapture-multipage-swift |
The sample code implementing a multipage image capture scenario with tuned user interface. | |
sample-ui-imagecapture-flexicapture | The sample demonstrating how to send several captured by ABBYY Mobile Capture images to the ABBYY FlexiCapture back-end (Application Server or FlexiCapture Cloud) for further processing. To investigate API, used in this sample, see the Web Services Mobile API in the FlexiCapture Developer's Help. | |
Core API | sample-coreapi sample-coreapi-swift |
The sample demonstrates a simple scenario of a single image processing with the core API. |
Configuring the code samples
The samples can be opened and built right from where they are in the downloaded distribution package. To work with any of the code samples you need to do only a little configuring first.
- Please change the bundle ID before building, modifying or otherwise using any of the samples.
- All samples expect that the license file (named license) is found into the assets folder located in the distribution package root. Copy your license to this folder and rename the file if necessary (a license obtained from your supplier may have a different name).
You can also change the license file name or path in the sample code: see the RTRViewController implementation.
3/2/2022 12:59:15 PM