Main Content
readBarcode
Syntax
Description
[
additionally returns the format, msg
,detectedFormat
,loc
] = readBarcode(___)detectedFormat
, and location,
loc
, of the detected barcode.
Examples
Input Arguments
Output Arguments
Tips
The function detects only clearly visible barcodes.
Specifying a format can reduce the run time of the function by restricting the barcode search.
For noisy images with unclear barcodes, use image preprocessing functions, such as
imsharpen
.The function detects only horizontally or vertically aligned barcodes. Use
imrotate
to correct poorly aligned barcodes.
Extended Capabilities
Version History
Introduced in R2020aSee Also
Functions
imrotate
|imsharpen
|ocr
|insertText
|insertShape
|insertMarker
|readAprilTag