Table of contents
Swift
Objective-C

How can I use CameraX or third-party camera modules with Dynamsoft Barcode Reader?

« Back to FAQ index

You can read this article on how to use the video stream via CameraX such that the output frames from CameraX are converted into imageData which can be used as input for the barcode reader. If you would like to see a quick code snippet on how to convert these frames from CameraX into ImageData, please see it here.

NOTE: The Barcode Reader decodes barcodes from an ImageData object. The ImageData object stores the pixel buffer, width, height, stride and pixel format of the image. However, it is always recommended to use DBR in conjunction with DCE for the best results and performance.

Is this page helpful?

YesYes NoNo