Skip to content

This repository contains a document scanner app that could perform Optical Character Recognition.

Notifications You must be signed in to change notification settings

Ravindu-Yasas-Nagasinghe/Document-scanner-app-with-Optical-Character-Recognition.

Repository files navigation

Document-scanner-app-with-Optical-Character-Recognition.

This repository contains a document scanner app that could perform Optical Character Recognition.

Here the approach is taken to build an app that can scan a document, crop the document and then perform Optical Character Recognition.

The app is developed using Android Studio and Java.

Libraries used for above processes are:

  1. Google's ML Kit Text Recognition API
  2. ArthurHub/Android-Image-Cropper

Given below is a test scenario of the app developed. Here we scan the document, crop the relevant part for OCR and then display the text in another activity. This app can be further improved to use this captured text in some other process.

Test 1

drawing drawing

video.mp4

Test 2

drawing drawing

Video.mp4

Confusion matrix

Finally the accuracy of the app is tested using practical scenarios and confusion matrix is created to evaluate the output. For the 150 words recognized, the confusion matrix is as follows.

image

  1. Accuracy = (TP+TN)/(TP+TN+FP+FN) = 0.9266
  2. Precision = TP/(TP+FP) = 0.9858
  3. Recall = TP/(TP+FN) = 0.9391

About

This repository contains a document scanner app that could perform Optical Character Recognition.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published