Mobile native

Media Vision

You can perceive and understand an image or to extract information from images in your application.

This feature is supported in mobile applications only.

The main features of Media Vision API include:

  • Handling images

    You can handle images by creating a source handle and filling it from an image buffer or media packet. Create the source handle with the mv_create_source() function, and fill it with the mv_source_fill_by_buffer() or mv_source_fill_by_media_packet() function.

  • Detecting barcodes

    You can detect barcodes in an image or from camera preview streams, and then decrypt them to display messages to the user.

    Before detecting a barcode, you must define the barcode detection target attribute value:

    • Detect both 1D and 2D barcodes
    • Detect 1D barcodes only
    • Detect 2D barcodes only
  • Generating barcodes

    You can encrypt a given message, generate a barcode from it, and save it in a memory or as a file.

    Before generating a barcode, you must define the barcode text generation attribute value:

    • Generate barcode without an input message
    • Generate barcode with an input message (supports only 1D barcodes)

    You must also define the following specifications:

The following tables provides more information about the barcode generation specifications.

Table: Supported barcode types
1D or 2D Type Description Example
1-D UPC-A Universal product code with numeric 12-digit

UPC-A

UPC-E Universal product code with numeric 6-digit

UPC-E

EAN-8 International article number with numeric 8-digit

EAN-8

EAN-13 International article number with numeric 13-digit

EAN-13

CODE-128 Code 128; supports alphanumeric or numeric-only

CODE-128

CODE-39 Code 39; supports 34 characters consisting of uppercase letters (A to Z), numeric digits (0 to 9), and special characters(-, ., $, /, %, space)

CODE-39

INTERLEAVED 2 of 5 Interleaved two of five with numeric digits

UPC-A

2-D QR code Quick Response code

UPC-A

Table: Supported QR code specifications
Specification Support type Description
Error Correction Code (ECC) Level ECC Low Recovery up to 7% damage
ECC Medium Recovery up to 15% damage
ECC Quartile Recovery up 25% damage
ECC High Recovery up to 30% damage
Encoding mode Numeric Numeric digits ('0', '1', ..., '9')
Alphanumeric Alphanumeric characters: numeric (0, 1, ..., 9), characters (A, B, ..., Z), and punctuation (' ', $, %, *, +, -, '.', /, ':')
Byte 8-bit Raw 8-bit bytes
UTF-8 Universal character set and Transformation Format 8-bit, encoding characters
Go to top