Barcode Xpress Mobile for Android
|
Interface for the Barcode Xpress Mobile native recognition library. More...
Public Member Functions | |
BXAPI (BXLicense license) | |
Constructor. | |
byte[] | binarizeImage (byte[] rawPixels, int width, int height, int stride, int bpp) |
Binarize (threshold and reduce to 1 bit per pixel) image contained in an array of uncompressed pixel data, which can be in either 8-bit grayscale, 16-bit RGB_565, 32-bit ARGB_8888 format. | |
boolean | getBlurDetection () |
Getter for doBlurDetection member variable. | |
BXResult | recognizeImage (Bitmap image, long barcodeTypes) |
BXResult | recognizeImage (byte[] rawPixels, int width, int height, int stride, int bpp, long barcodeTypes) |
BXResult | recognizeImageFromJPEGPixels (byte[] jpegPixels, long barcodeTypes) |
BXResult[] | recognize (Bitmap image, long barcodeTypes, int maxBarcodeCount) |
Recognize and decode barcodes from a Bitmap image, which may be in RGB_565 (16 bits per pixel), ARGB_8888 (32 bits per pixel), or grayscale (8 bits per pixel) format. | |
BXResult[] | recognize (byte[] rawPixels, int width, int height, int stride, int bpp, long barcodeTypes, int maxBarcodeCount) |
Recognize and decode barcodes from an array of uncompressed pixel data, which can be in RGB_565, ARGB_8888, or 8-bit gray format. | |
BXResult[] | recognizeFromJPEGPixels (byte[] jpegPixels, long barcodeTypes, int maxBarcodeCount) |
Recognize and decode barcodes from a byte array of JPEG-compressed pixel data. | |
void | setBlurDetection (boolean blurToggle) |
Setter for doBlurDetection member variable. | |
Static Public Member Functions | |
static String | getWorkerLibraryVersion () |
Get the version information from the decoding library via JNI. | |
static byte[] | YUVtoRGB565 (byte[] pixels, int width, int height) |
Converts YUV NV21 format image to RGB 565 format. | |
Static Package Functions | |
[static initializer] | |
Load the native library. |
Interface for the Barcode Xpress Mobile native recognition library.
This class contains methods to call recognition and get the results back. Some additional utility functions are in this class as well.
Constructor.
Sets the License to be used when invoking recognizeImage().
byte [] binarizeImage | ( | byte[] | rawPixels, |
int | width, | ||
int | height, | ||
int | stride, | ||
int | bpp | ||
) | [inline] |
Binarize (threshold and reduce to 1 bit per pixel) image contained in an array of uncompressed pixel data, which can be in either 8-bit grayscale, 16-bit RGB_565, 32-bit ARGB_8888 format.
rawPixels | An array of bytes containing the pixel data. |
width | Width of the image, measured in pixels. |
height | Height of the image, measured in pixels. |
stride | Width of the image, measured in bytes. |
bpp | Bits per pixel of the image. |
boolean getBlurDetection | ( | ) | [inline] |
Getter for doBlurDetection member variable.
static String getWorkerLibraryVersion | ( | ) | [inline, static] |
Get the version information from the decoding library via JNI.
BXResult [] recognize | ( | Bitmap | image, |
long | barcodeTypes, | ||
int | maxBarcodeCount | ||
) | [inline] |
Recognize and decode barcodes from a Bitmap image, which may be in RGB_565 (16 bits per pixel), ARGB_8888 (32 bits per pixel), or grayscale (8 bits per pixel) format.
image | Bitmap that contains an image to be decoded. |
barcodeTypes | The type of barcode(s) that should be decoded. See BXTypeConstants. To create this value, use the sum of the desired constant types. |
maxBarcodeCount | The maximum number of barcodes that may be returned by this call. A maxCount of zero means read as many as possible. |
BXResult [] recognize | ( | byte[] | rawPixels, |
int | width, | ||
int | height, | ||
int | stride, | ||
int | bpp, | ||
long | barcodeTypes, | ||
int | maxBarcodeCount | ||
) | [inline] |
Recognize and decode barcodes from an array of uncompressed pixel data, which can be in RGB_565, ARGB_8888, or 8-bit gray format.
rawPixels | An array of bytes containing an image to be decoded. |
width | Width of the image, measured in pixels. |
height | Height of the image, measured in pixels. |
stride | Width of the image, measured in bytes. |
bpp | Bits per pixel of the image. |
barcodeTypes | The type of barcode(s) that should be decoded. See BXTypeConstants. To create this value, use the sum of the desired constant types. |
maxBarcodeCount | The maximum number of barcodes that may be returned by this call. A maxCount of zero means read as many as possible. |
BXResult [] recognizeFromJPEGPixels | ( | byte[] | jpegPixels, |
long | barcodeTypes, | ||
int | maxBarcodeCount | ||
) | [inline] |
Recognize and decode barcodes from a byte array of JPEG-compressed pixel data.
jpegPixels | An array of JPEG-encoded bytes containing an image to be decoded. |
barcodeTypes | The types of barcodes that will be decoded from the image. See BXTypeConstants. |
maxBarcodeCount | The maximum number of barcodes that may be returned by this call. A maxCount of zero means read as many as possible. |
BXResult recognizeImage | ( | byte[] | rawPixels, |
int | width, | ||
int | height, | ||
int | stride, | ||
int | bpp, | ||
long | barcodeTypes | ||
) | [inline] |
Recognize and decode barcode from an array of uncompressed pixel data, which can be in RGB_565, ARGB_8888, or 8-bit gray format.
rawPixels | An array of bytes containing an image to be decoded. |
width | Width of the image, measured in pixels. |
height | Height of the image, measured in pixels. |
stride | Width of the image, measured in bytes. |
bpp | Bits per pixel of the image. |
barcodeTypes | The type of barcode(s) that should be decoded. See BXTypeConstants. To create this value, use the sum of the desired constant types. |
BXResult recognizeImage | ( | Bitmap | image, |
long | barcodeTypes | ||
) | [inline] |
Recognize and decode barcode from a Bitmap image, which may be in RGB_565 (16 bits per pixel), ARGB_8888 (32 bits per pixel), or grayscale (8 bits per pixel) format.
image | Bitmap that contains an image to be decoded. |
barcodeTypes | The type of barcode(s) that should be decoded. See BXTypeConstants. To create this value, use the sum of the desired constant types. |
BXResult recognizeImageFromJPEGPixels | ( | byte[] | jpegPixels, |
long | barcodeTypes | ||
) | [inline] |
Recognize and decode barcode from a byte array of JPEG-compressed pixel data.
jpegPixels | An array of JPEG-encoded bytes containing an image to be decoded. |
barcodeTypes | The types of barcodes that will be decoded from the image. See BXTypeConstants. |
static byte [] YUVtoRGB565 | ( | byte[] | pixels, |
int | width, | ||
int | height | ||
) | [inline, static] |
Converts YUV NV21 format image to RGB 565 format.
pixels | An array of bytes that contains a YUV image encoded in NV21 format, 12 bits per pixel |
width | Width of the image, measured in pixels. |
height | Height of the image, measured in pixels. |