Chapter 9. Developing a Document Scanning App

In this chapter, we will build a document scanning app similar to Microsoft's Office Lens. This app could cause a huge increase in productivity. For example, you can write down notes on paper and then just click on the image of it, not worrying about aligning it with the device. Then, using some of the algorithms we learned in the earlier chapters, we can detect the page and just grab that portion of the image.

In this chapter, we will directly jump on to the code, and we will see the outputs at every step. To get an idea of what we will achieve at the end of this chapter, let's take a look at the following figure. The following image shows a screenshot of Microsoft's Office Lens in action:

Let's begin ...

Get Mastering OpenCV Android Application Programming 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.