____  ___    _  _     _   _ _____     _______
 / ___|/ _ \  | || |   | | | |_ _\ \   / / ____|
| |  _| | | | | || |_  | |_| || | \ \ / /|  _|
| |_| | |_| | |__   _| |  _  || |  \ V / | |___
 \____|\___/     |_|   |_| |_|___|  \_/  |_____|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Android Studio: Text Detector using Mobile Vision

BY: @zynagraphy | CREATED: Jan. 30, 2018, 6:32 a.m. | VOTES: 0 | PAYOUT: $0.00 | [ VOTE ]

This is a simple project from Android Studio that detects texts using Mobile Vision in an image after capturing with a special feature of cropping the image and encode it through a .txt File Extension in your phone.

What you'll learn?
Initializing the Mobile Vision TextRecognizer
Applying the cropping function in a program
Creating a file that was scanned

What you'll need
Android Studio version 3.0
Android phone (Testing) or Phone Emulator

Difficulty
Basic

Tutorial Contents

Step 1: Open the build.gradle file in the app and add the following dependecies and sync.
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517292063/iar6rdv4v8pzbmmlxp3g.png]

Step 2: Open the Android.Manifest.xml and add the permissions in accessing the Camera, Phone Storage and Internet.
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517292243/yquxg8f5capuhmobbnuq.png]

Step 3: Set up your UI with buttons CROP for cropping the images, SCAN to scan the images and produces texts, and Create to create the .txt file of the scanned images.
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517292388/cxvyqwhermwif2i77r4s.png]

Step 4: CODING
Snippet to an Intent to access CAMERA (Available in Kitkat up to Nougat)
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517293400/dul8jutfcaz4lxj0mtbf.png]

Snippet to set-up TEXT RECOGNITION (Available in Kitkat up to Nougat)
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517293521/tlfznhp5ktut8v0jpnos.png]

Snippet to store the scanned images in a TEXT FILE (Available in Kitkat up to Nougat)
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517293588/kqovbkt26rw9gvtxhuj0.png]
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517293624/ydcx8slgebig9q14thfd.png]
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517293662/xddzjs0ormmsqp3sybpl.png]

Step 5: Merge everything in the Activity Result
[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1517293787/eetwi9oev7kjumnf4lic.png]

Note: Add also all the permissions.
Code is available in Versions KitKat up to Nougat.

Posted on Utopian.io - Rewarding Open Source Contributors

TAGS: [ #utopian-io ] [ #utopian-io ] [ #programming ] [ #steemiteducation ] [ #philippines ]

Replies

@ms10398 | Jan. 30, 2018, 8:10 a.m. | Votes: 0 | [ VOTE ]

Your contribution cannot be approved because it does not follow the Utopian Rules.

  • > It is in wrong category.
  • > it is attached to wrong repository.
  • > It's not up to the quality standards to be accepted as a tutorial.

Thanks!

You can contact us on Discord.
[utopian-moderator]

@steemitboard | Feb. 28, 2018, 9:26 a.m. | Votes: 0 | [ VOTE ]

Congratulations @zynagraphy! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[IMAGE: https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png] Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

> Upvote this notification to help all Steemit users. Learn why here!

@steemitboard | Jan. 9, 2019, 1:07 a.m. | Votes: 0 | [ VOTE ]

Congratulations @zynagraphy! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@zynagraphy/birthday1.png1 Year on Steemit

Click here to view your Board

Do not miss the last post from @steemitboard:

SteemWhales has officially moved to SteemitBoard RankingSteemitBoard - Witness Update

> Support SteemitBoard's project! Vote for its witness and get one more award!

@steemitboard | Jan. 9, 2020, 12:31 a.m. | Votes: 0 | [ VOTE ]

Congratulations @zynagraphy! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@zynagraphy/birthday2.pngHappy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!
[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>