Detect and decode 1-D or 2-D barcode in image
[
additionally returns the format, msg
,detectedFormat
,loc
] = readBarcode(___)detectedFormat
, and location,
loc
, of the detected barcode.
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.
imrotate
| imsharpen
| insertMarker
| insertShape
| insertText
| ocr
| readAprilTag