Create a text recognition application on the mobile app with nativescript

Tram Ho

It is not difficult to code simple Mobile apps.

Hello Word

We will go to https://play.nativescript.org/ select new item, depending on what language taste, currently I will choose NS + Vue.js

Click Preview in the right corner of the screen, to scan the QR code, we have to download the app of nativeScript to be able to display Preview.

2 apps to download are playground and preview of nativescript. Playground to scan the QR code, while the preview is the app to display.

We will now have a realtime interface that synchronizes the code on that platform.

OCR Simple

Identify letters, invoices in the field of AI, I will not go into this section but use a free API provided from 3rd parties to detect them, because the image here has Vietnamese text so the accuracy is not high because its default config for this API is in english. Temporary use for fun.

Source Code: https://play.nativescript.org/?template=play-vue&id=kjPTc7&v=8

First we will initialize the photography function for our application

Conclude

This is just a simple example, in addition we can combine many different components and functions into a variety of applications.

Share the news now

Source : Viblo