Vision barcode detection can read multiple types of barcodes at once.
It can also be used for business purposes such as the medical field.
Detection method
The results include:
・Barcode Bounding Box (coordinates normalized to a value between 0 and 1)
・String read from payload
・Type of barcode
・Low-level description (used when regenerating barcodes with CIImage)
A two-dimensional bar code such as a QR code returns a box that surrounds the whole, and a one-dimensional bar code returns a thin box that is read horizontally as a straight line.
(0.01536397757353606, 0.5692257563273112, 0.38412154692190664, 0.21521108945210776)
Optional (“ https://ja.wikipedia.org/" )
VNBarcodeSymbology (_rawValue: VNBarcodeSymbologyQR)
Optional (CIQRCodeDescriptor: 0x28112bd50)(0.5915124398690683, 0.5233462015787761, 0.15230130796079278, 0.08319133122762035)
Optional (“ http://www.irasutoya.com/" )
VNBarcodeSymbology (_rawValue: VNBarcodeSymbologyQR)
Optional (CIQRCodeDescriptor: 0x28112a1f0)(0.27184558444552953, 0.37421875, 0.27779362996419266, 0.0015625000000000222)
Optional (“Wikipedia”)
VNBarcodeSymbology (_rawValue: VNBarcodeSymbologyCode128)
nil
By default, all recognizable barcodes are observed.
Specify the type of barcode to be recognized.
The types of barcodes that can be recognized are as follows.
.Aztec
.Codabar
.Code128.
.Code39
.Code39Checksum
.Code39FullASCII
.Code39FullASCIIChecksum
.Code93
.Code93i
.DataMatrix
.Ean13
.Ean8
.Gs1DataBar
.Gs1DataBarExpanded
.Gs1DataBarLimited
.I2of5
.I2of5Checksum
.Itf14
.MicroPDF417
.MicroQR
.Pdf417
.Qr
.Upce
You can also get the result by focusing on a specific area in the frame.
In this case, the coordinates within the region of interest are returned.
I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.
rockyshikoku@gmail.com
I am making an app that uses Core ML and ARKit.
We send machine learning / AR related information.