Chapter 3. Scanning barcodes

This chapter covers

  • How to scan barcodes with AV Foundation’s metadata detector
  • Optimizing scanning performance and user experience
  • UI considerations for different kinds of barcode-scanning scenarios
  • Navigating around common barcode-scanning pitfalls

The previous chapter introduced you to capturing media with AV Foundation. You learned about the components of AV Foundation that allow you to take a video stream from the device’s cameras and display it in a preview layer and capture media to files.

In this chapter you’ll learn how to add the AV Foundation metadata detector to this video stream, and have it report back about barcodes it has detected.

3.1. Metadata detection in AV Foundation

In chapter 2 you ...

Get Barcodes with iOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.