Read barcode along a line

Read barcode along a line

Reads value of a barcode along a line specified by start and end points.

Inputs

image
Input image.
codeType
The type of the barcode to be recognized.
startPoint
Start point of the reading line in world coordinates
endPoint
End point of the reading line in world coordinates.

Outputs

code
The contents of the barcode as an N-by-1 integer array.
correlation
Correlation metric of the selected code. This entity can be used for detecting code words which may be wrong but have passed the check sum by chance.