Step-by-Step tutorial to build an android application which reads text from an image like OCR, using Google Vision API
Step 1:- Create a new Project. Step 2:- Add the following dependency in module-level build.gradle file:- compile 'com.google.android.gms:play-services-vision:9.8.0' Step 3:- Set the style in styles.xml present in values folder of res folder, style name= "AppTheme" parent= "Theme.AppCompat.Light.NoActionBar" Step 4:- Add meta-data to AndroidManifest.xml, < meta-data android :name= "com.google.android.gms.vision.DEPENDENCIES" android :value= "orc" /> Step 5:- Now Design the layout in activity_main.xml, <? xml version= "1.0" encoding= "utf-8" ?> < ScrollView android :layout_width= "match_parent" android :layout_height= "match_parent" xmlns: android = "http://schemas.android.com/apk/res/android" > < RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns:...
Comments
Post a Comment