Vision Framework - Barcode Descriptor

Hi,


I've been implementing a test of the new Vision framework, looking specifically at the barcode detection - I've been able to get some of the results out in the form of VNBarcodeObservation objects. However, I can't see what the actual barcode value is when looking at the barcodeDescriptor. There appears to be nothing exposed on the https://developer.apple.com/documentation/coreimage/cibarcodedescriptor page to identify any of the properties.


I also tried casting as a specific descriptor for CIPDF417CodeDescriptor and checking the data output for errorCorrectedPayload, which returned some data, but nothing that could be converted back to a string.


Is there any way to access the barcode value from the VNBarcodeObservation?


Regards,

Rob

The barcode detection in Vision and CoreImage frameworks looks like it's not quite finished.


The observation objects currently only give you encoded data so far as I can see. Also, there aren't any descriptors for 1D barcodes yet. I've filed a bug requesting more descriptors be added (rdar://32698569). I'd suggest filing bugs for any features you want to see.

Hey RTDev,


I am trying to figure out the same thing if you get any update, please let me know.

I am getting these errors:

1. Cannot connect to remote service: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.BarcodeSupport.BarcodeNotificationService"

2. libMobileGestalt MobileGestalt.c:555: no access to InverseDeviceID (see problem/11744455>)

3. connection to service named com.apple.BarcodeSupport.BarcodeNotificationService Error Domain=NSCocoaErrorDomain Code=4097

According to an answer comment to similar question you need to add some run argument.

However, you will probably hit the same wall as all of us trying to convert the read content into string.

Vision Framework - Barcode Descriptor
 
 
Q