Video and Image Processing Blockset 2.8
Barcode Recognition Using Live Video Acquisition
This demo uses the From Video Device block provided by Image Acquisition Toolbox™ to acquire live image data from a Point Grey Flea® 2 camera into Simulink®. The demo uses the Video and Image Processing Blockset™ to create an image processing system which can recognize and interpret a GTIN-13 barcode. The GTIN-13 barcode, formally known as EAN-13, is an international barcode standard. It is a superset of the widely used UPC standard.
Image Acquisition Toolbox™ provides functions for acquiring images and video directly into MATLAB® and Simulink from PC-compatible imaging hardware. You can detect hardware automatically, configure hardware properties, preview an acquisition, and acquire images and video.
This demo requires Image Acquisition Toolbox and a Point Grey Flea® 2 camera to run the model.
Watch barcode recognition on live video stream. (11 seconds)
Contents
Demo Model
The following figure shows the demo model using the From Video Device block.
Demo Description
This demo uses the same algorithm as the Barcode Recognition demo. Refer to the Barcode Recognition demo for detailed information.
Results
The scan lines that have been used to detect barcodes are displayed in red. When a GTIN-13 is correctly recognized and verified, the code is displayed at the top of the image.
Even though a Point Grey Flea® 2 camera was used for this demo, you can update this model to use other supported image acquisition devices, for example, webcams. This enables you to use the same Simulink model with different image acquisition hardware. Before using this demo, please adjust the focus of your imaging device such that the barcodes are legible.
Available Demo Versions
Demo using live video acquisition: viplivebarcoderecognition_win.mdl (Windows® only)
Demo using stored video data: vipbarcoderecognition.mdl (platform independent)
Store