Scanning barcode from UIImage natively (i.e., not using ZBar)
问题 I've been using the native barcode scanner functionality provided by apple since iOS7 and it is great, but I needed to scan some static images I had so I could automatically catalogue some barcodes. I couldn't find a way to do this natively, so I used an open source package called zBar, and for the most part, it works fine. However, it returns false values often and sometimes flat out fails to find the barcode. I also built the c++ library from scratch but I got the same results in my OS X