Skip to main content

Testing real-time scanning with a mock camera

Overview

The SDK's mock camera feature lets developers emulate a real camera's behavior using an image file in place of a live camera stream. You can set the path to a local or remote image file.

Initialization

caution

The mock camera feature is only intended for testing purposes. Please do not use it in production.

To initialize the mock camera, you need to configure it before initializing any Classic or Ready-to-Use UI Component.

You can provide a local or remote URL of the image.

Configuring Mock Camera passing URL
loading...

You can also provide the image name. In this case, the image is loaded from the application bundle.

Configuring Mock Camera passing URL
loading...

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

On this page