No video

Text Recognition App - Android Studio - Java

  Рет қаралды 81,909

Atif Pervaiz

Atif Pervaiz

Күн бұрын

In this video we will extract Text from the Image taken from:
✓Camera
✓Gallery
Using the Google Vision API.
We will also handle run-time permission for
✓CAMERA
✓WRITE_EXTERNAL_STORAGE
Buy Me a Coffee:
paypal.me/atif...
Purchase Code:
www.technifyso...
Libraries Used:
Google Vision: developers.goo...
Image Cropper: github.com/Art...
Watch Using Google/Firebbase ML: • Recognize text in imag...
Note:
Camera: If the Android version is or above TIRAMISU ask only Camera permission otherwise camera and storage permissions
Gallery: If the Android version is or above TIRAMISU don't ask any permission otherwise storage permission
Feel free to comment in case of any problem
Chanel:
/ mohammadatif1
Websites:
technifysoft.com/
devofandroid.b...
Apps/Games on PlayStore:
play.google.co...
If u like this video, Like, Comment, Subscribe to support us...

Пікірлер: 455
@AtifSayings
@AtifSayings 6 ай бұрын
Note: Camera: If the Android version is or above TIRAMISU ask only Camera permission otherwise camera and storage permissions Gallery: If the Android version is or above TIRAMISU don't ask any permission otherwise storage permission
@asfandyarniazi1234
@asfandyarniazi1234 5 жыл бұрын
ur tutorial helped me in my final year project ALLAH apko khush rakay es tutorial pe..
@AtifSayings
@AtifSayings 5 жыл бұрын
JazakAllah
@585Evan
@585Evan 4 жыл бұрын
Everything works but when i crop the image it doesnt preview the text or the image
@ananyasa7494
@ananyasa7494 3 жыл бұрын
heyy did you fix this?
@theophiluswilsonennin2694
@theophiluswilsonennin2694 4 жыл бұрын
I could not see my etracted text after succesfully croping the image from my emulator
@jagjotsingh9492
@jagjotsingh9492 3 жыл бұрын
Can you share the source code?
@saanvishendge3424
@saanvishendge3424 2 жыл бұрын
Hi I am not getting any results and after taking the pic the cropping action doesn't take place..what do I do?
@585Evan
@585Evan 4 жыл бұрын
getting error "Overriding method should call super.onActivityResult" this is making it so I cant preview the image or the text. I tried to suppress the MissingSuperCall and it still would not preview. I have tried adding the super call and it stil would not preview. Any help Please
@perfumeaddict3854
@perfumeaddict3854 4 жыл бұрын
Have you fixed this ?
@nailbobic1387
@nailbobic1387 3 жыл бұрын
Does it save image to phone memory and how can i delete it if does?
@lichtaus7733
@lichtaus7733 5 жыл бұрын
wow, thank you so much! first working tutorial after a week of searching. cheers
@sairanoonari8476
@sairanoonari8476 5 жыл бұрын
after clicking image from camera is it showing cropping option directly ? i have tried but its not showing cropping option after taking image!!
@randomvideosshideos8508
@randomvideosshideos8508 4 жыл бұрын
@@sairanoonari8476 can you send me the project at decentaamir009@gmail.com thanks in advance
@shadowthegermanshepherd9839
@shadowthegermanshepherd9839 3 жыл бұрын
​@@sairanoonari8476 b/c u have changed toolbar setting to NoActionToolbar in resources in style...over there set ......then it will show u crop ratio
@chandravarshtih6844
@chandravarshtih6844 3 жыл бұрын
I am not getting the result after inserting the pic and croping it. No image preview and no result. Please help me!
@AtifSayings
@AtifSayings 3 жыл бұрын
there may be some mistake in onActivityResults method
@ankitajadhav7027
@ankitajadhav7027 4 жыл бұрын
On activity result when I put cursor on requestCode == IMAGE_PICK_GALLERY_CODE and requestCode == IMAGE_PICK_CAMERA_CODE and requestCode == RESULT_OK in get cropped image showing condition is always false .....and at the time of running application when I campure image or choose image from gallary now showing image for cropping and hense not showing in image preview....what to do plz help with it..thanks in advance
@AtifSayings
@AtifSayings 4 жыл бұрын
Show your onactivityResults method
@ankitajadhav7027
@ankitajadhav7027 4 жыл бұрын
@@AtifSayings @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); //got image from camera if (requestCode == RESULT_OK) { if (requestCode == IMAGE_PICK_GALLERY_CODE) { //got image from gallery now crop it CropImage.activity(data.getData()) .setGuidelines(CropImageView.Guidelines.ON) //enable image guidelines .start(this); } if (requestCode == IMAGE_PICK_CAMERA_CODE) { //got image from camera now crop it CropImage.activity(image_uri) .setGuidelines(CropImageView.Guidelines.ON) //enable image guidelines .start(this); } } //get cropped image if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) { CropImage.ActivityResult result = CropImage.getActivityResult(data); if (requestCode == RESULT_OK) { Uri resultUri = result.getUri(); //get image uri //set image to image view mPreviewIV.setImageURI(resultUri); //get drawable bitmap for text recognition BitmapDrawable bitmapDrawable = (BitmapDrawable) mPreviewIV.getDrawable(); Bitmap bitmap = bitmapDrawable.getBitmap(); TextRecognizer recognizer = new TextRecognizer.Builder(getApplicationContext()).build(); if (!recognizer.isOperational()) { Toast.makeText(this, "Error", Toast.LENGTH_SHORT).show(); } else { Frame frame = new Frame.Builder().setBitmap(bitmap).build(); SparseArray items = recognizer.detect(frame); StringBuilder sb = new StringBuilder(); //get text from sb until there is no text for (int i = 0; i < items.size(); i++) { TextBlock myItem = items.valueAt(i); sb.append(myItem.getValue()); sb.append(" "); } //set text to edit text mResultEdt.setText(sb.toString()); } } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) { //if there is any error show it Exception error = result.getError(); Toast.makeText(this, "" + error, Toast.LENGTH_SHORT).show(); } } } this is my onActivityResult
@AnonymOus-vr4qy
@AnonymOus-vr4qy 5 жыл бұрын
great video thanx a lot , the only issue is the video voice it is hard to watch 45 minute silently
@AtifSayings
@AtifSayings 5 жыл бұрын
You're welcome :) Ill try in future with voice
@ManjotSD
@ManjotSD 5 жыл бұрын
@@AtifSayings add music from creative common license using yt editor its hard to watch silently
@prateekaggarwal3704
@prateekaggarwal3704 5 жыл бұрын
Hey, Thanks a lot man. Really worked. Waiting for more such videos from you.
@AtifSayings
@AtifSayings 5 жыл бұрын
You're welcome :)
@patrickperalta6811
@patrickperalta6811 4 жыл бұрын
Why when i click allow the app is closing
@randomvideosshideos8508
@randomvideosshideos8508 4 жыл бұрын
prateek can you send me the project at decentaamir009@gmail.com thanks in advance
@anjan99pai
@anjan99pai 4 жыл бұрын
@@patrickperalta6811 are you getting the image preview?
@allstar1528
@allstar1528 2 жыл бұрын
Bro this code not working...in the the end value are null
@585Evan
@585Evan 4 жыл бұрын
Followed the tutorial perfectly and it does not work. the code runs without any errors. when I either take image or upload from gallery - the image and text won't display on the preview.
@anmolgupta945
@anmolgupta945 4 жыл бұрын
Same problem dude.. What to do?
@waltergutierrez910
@waltergutierrez910 4 жыл бұрын
Excelente video, logré realizar todo el ejercicio, con unos pequeños cambios debido a las actualizaciones del IDE, pero todo ha estado excelente, saludos¡¡
@jumps63
@jumps63 4 жыл бұрын
I wrote everything as you but when I run app and press add image button nothing happens, and i added actionBar.setSubtitle("Click + button to insert Image"); and in your case instead of "+" it writes "Image" on action bar. In my app it just writes "+". Please help me
@asfandyarniazi1234
@asfandyarniazi1234 5 жыл бұрын
this tutorial helped me alot.. a nice tutorial this is really helpful for beginners..
@netby690
@netby690 5 жыл бұрын
I did everything in the video exactly as you did and compiles me and I can see it on my cell phone but when I take or select an image and I want to extract the text, it does not show it to me as a result
@AtifSayings
@AtifSayings 5 жыл бұрын
i've checked your code you sent via email and replied the solution there, check in your code line 196: if(requestCode == RESULT_OK){... replace requestCode with resultCode i.e. if (resultCode == RESULT_OK){
@HackerHacker-nk5kl
@HackerHacker-nk5kl 5 жыл бұрын
@@AtifSayings same problem of him after i installed the app when i try to pick camera or gallery it does not show it
@AbdulHannan-sj2xi
@AbdulHannan-sj2xi 3 жыл бұрын
Love you bro Its working perfectly. Thanks you so much. May you live long with a happy life
@tushargangurde1779
@tushargangurde1779 5 жыл бұрын
E/AndroidRuntime: FATAL EXCEPTION: main Process: in.multifix.textreadimage, PID: 15981 java.lang.RuntimeException: Unable to start activity ComponentInfo{in.multifix.textreadimage/in.multifix.textreadimage.MainActivity}: android.view.InflateException: Binary XML file line #19: Binary XML file line #19: Error inflating class android.support.v7.widget.CardView It show this error after run
@ramadhanhussein4936
@ramadhanhussein4936 4 жыл бұрын
the app runs well but doesnt display text after cropping. what might be the problem
@AtifSayings
@AtifSayings 4 жыл бұрын
If image is also setting in imageview then make sure you are setting text to textview/edittext
@ramadhanhussein4936
@ramadhanhussein4936 4 жыл бұрын
@@AtifSayings thanks very much i've tried a number of times and it has worked. but in some images it just duplicate the first sentence rather than detecting the whole text
@jrjuniorgames1957
@jrjuniorgames1957 4 жыл бұрын
@@AtifSayings Hey, the app runs without erros, but neither the text, nor the image are showing after I crop it
@AtifSayings
@AtifSayings 4 жыл бұрын
@@jrjuniorgames1957 the problem is in on activity results, kindly check again
@danielarodriguez1967
@danielarodriguez1967 5 жыл бұрын
Great video! Love the way you code, it's so nice and clean! Thanks.
@prasanapoudel3155
@prasanapoudel3155 5 жыл бұрын
Thank you for this awesome tutorial. It was of great help and also easy to understand. Cheers!!!
@AtifSayings
@AtifSayings 5 жыл бұрын
You're welcome
@theabk1237
@theabk1237 4 жыл бұрын
@@AtifSayings bro i have problem in this app...my crop image option will not show..the pic is save in gallery but not show in app ui
@PeeyuSquad
@PeeyuSquad 3 жыл бұрын
Bro can you pls share this whole Source code at email: peeyusshyadav@gmail.com
@shadowthegermanshepherd9839
@shadowthegermanshepherd9839 3 жыл бұрын
@@theabk1237 ​ @Saira Noonari b/c u have changed toolbar setting to NoActionToolbar in resources in style...over there set ......then it will show u crop ratio
@damarisvides8251
@damarisvides8251 3 жыл бұрын
@@shadowthegermanshepherd9839 What is the solution is that it only takes the photo, it does not crop and nothing is shown, can you help me please
@matniazi
@matniazi 5 жыл бұрын
Hi Atif you showed a very good example but i am having a problem using it in android studios 3.2.1 problem is when i run the app and i take picture from camera it do not display it in imageview and it is not saved in anywhere. please do tell what is wrong.
@AtifSayings
@AtifSayings 5 жыл бұрын
i think you are missing something in on activity result check that method
@igorsreznikov6594
@igorsreznikov6594 5 жыл бұрын
@@AtifSayings need swap resultcode between image and gallery
@igorsreznikov6594
@igorsreznikov6594 5 жыл бұрын
need swap resultcode between image and gallery in onActivityResult
@ananyasa7494
@ananyasa7494 3 жыл бұрын
Thank you!!!This video really saved me
@AtifSayings
@AtifSayings 3 жыл бұрын
You're welcome!
@vishnuv3854
@vishnuv3854 5 жыл бұрын
It worked superbly, Thank you, God Bless You
@AtifSayings
@AtifSayings 5 жыл бұрын
You're welcome :)
@devaaravind1604
@devaaravind1604 5 жыл бұрын
bro i need that code
@mirzanumanbaig9221
@mirzanumanbaig9221 4 жыл бұрын
Assalam o alikum ! Sir, ik chota sa issue a rha h app gallery sy image pick ni kr rha means k jesy hi image select krta hn main page again a jaata h kindly thora sa guide kr daien jazakAllah!!
@AtifSayings
@AtifSayings 4 жыл бұрын
WaAlaikumAssalam please check onActivityResults method carefully
@shadowthegermanshepherd9839
@shadowthegermanshepherd9839 3 жыл бұрын
everything is working fine but a little mistake occurs is when i click on camera option. For the first time it shows me gallery ...After clicking back it shows camera..i mean to say when i click camera it shows gallery and camera simultaneously .i have copied the whole code same to same..kindly any hint ?
@adityapotdar9073
@adityapotdar9073 5 жыл бұрын
Image preview not showing up and text is also not visible
@yaroslavsulyma3389
@yaroslavsulyma3389 5 жыл бұрын
I have the same problem.do you have a solution to this problem?
@HackerHacker-nk5kl
@HackerHacker-nk5kl 4 жыл бұрын
In short text it can scan well but if you take a picture in the document it cannot recognize well. Can you help me sir to improve this app so that it can recognize documents well..
@AtifSayings
@AtifSayings 4 жыл бұрын
Don't know any better way
@ambicagupta8405
@ambicagupta8405 4 жыл бұрын
I implemented this application and after clicking photo from camera, I am not able to crop the image.Directly home page is coming.
@raghavaggarwal8644
@raghavaggarwal8644 4 жыл бұрын
can i use the firebase ml vision dependency?
@AtifSayings
@AtifSayings 4 жыл бұрын
i've not tried it
@Sport-word
@Sport-word 5 жыл бұрын
permission denied ,,, my camera can not open ,, but the gallery is working fine ... please help me ..my best teacher
@AtifSayings
@AtifSayings 5 жыл бұрын
Recheck your onRequestPermsissionsResults method
@PeeyuSquad
@PeeyuSquad 3 жыл бұрын
bro is this google vision ocr is Free to use unlimited to extract text ?
@AtifSayings
@AtifSayings 3 жыл бұрын
Yes
@arielaustria2037
@arielaustria2037 3 жыл бұрын
Thank you! Great Tutorial!
@unzilamemon4898
@unzilamemon4898 5 жыл бұрын
the following classes could not be found - android.support.v7.widget.cardview How to resolve this issue? App crashes on opening?
@zakblacki
@zakblacki 4 жыл бұрын
stackoverflow.com/questions/58424077/missing-classes-android-support-v7-widget-cardview App doesn't crash your missing something
@sauravbansal5722
@sauravbansal5722 5 жыл бұрын
I don't want to crop images when image is clicked. It will crop automatically after recognize the image and background surface is remove automatically.
@aderojuisrael3237
@aderojuisrael3237 5 жыл бұрын
Please answer this
@saanvishendge3424
@saanvishendge3424 2 жыл бұрын
Hi, I am getting an error in the Builder and Frame part, I don't know what it is related to Bitmap and says the actual and formal length of the argument differ. Can anyone help me here please:)
@klynemontanano1069
@klynemontanano1069 5 жыл бұрын
Hello , I did exactly what you did but when i try to run the program it says : Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:9:5-28:19 to override.
@saiteja-st1os
@saiteja-st1os 4 жыл бұрын
Am getting error in the beginning only that is.. Could not find the method implementation.
@samii5205
@samii5205 5 жыл бұрын
recognizer is not operational error sir how to solve it .................. i read all the comment and my code is complete same as you code .......... any suggestion friends ?
@AtifSayings
@AtifSayings 5 жыл бұрын
i don't know the reason because I've used this library a lot and never faced this issue
@kristyken3649
@kristyken3649 3 жыл бұрын
Hi, sir. i hope you could reply me. after i scanned and cropped, it does not show any result. what could be the problem?
@AtifSayings
@AtifSayings 3 жыл бұрын
Kindly check onActivityResults function This is the function that is called after picking image
@kristyken3649
@kristyken3649 3 жыл бұрын
@@AtifSayings thanks for your reply, i found the problem. there is a typo for me....resultCode>> requestCode
@asmitapatel554
@asmitapatel554 3 жыл бұрын
I have done same but after crop photo nothing will be getting in image view and textview. can u help?
@AtifSayings
@AtifSayings 3 жыл бұрын
Check your onActivityResults method. The issue must be there.
@asmitapatel554
@asmitapatel554 3 жыл бұрын
@@AtifSayings I checked all, but not getting.. ☹️
@asmitapatel554
@asmitapatel554 3 жыл бұрын
Can u plz helppp.... It's important..?
@sahilagrawal4074
@sahilagrawal4074 5 жыл бұрын
Thanks a lot for the tutorial. It works fine. I need to scan text in other languages like "hindi", please guide through implementing the same.
@AtifSayings
@AtifSayings 5 жыл бұрын
ill try, but this library supports only English
@sahilagrawal4074
@sahilagrawal4074 5 жыл бұрын
@@AtifSayings it now supports many languages. Please check the documentation. But I'm not understanding the way of implementing it. Also thanks for the earliest reply.
@AtifSayings
@AtifSayings 5 жыл бұрын
Ok sure
@ritukanse8950
@ritukanse8950 2 жыл бұрын
Have you figured out how to scan text in other languages ?
@ritukanse8950
@ritukanse8950 2 жыл бұрын
@@AtifSayings how to scan other language text ? Waiting for your reply.
@HackerHacker-nk5kl
@HackerHacker-nk5kl 4 жыл бұрын
Thank you a lots sir you save my project .
@AtifSayings
@AtifSayings 4 жыл бұрын
You're welcome
@haithamzein2478
@haithamzein2478 4 жыл бұрын
@Hacker123456 Hacker, Hi Bro, I have the same graduation project, would you mind if I seek your support if you have the source code working properly? Thank you
@jabbarrefaghatjoo6897
@jabbarrefaghatjoo6897 5 жыл бұрын
This is awesome!! Thanks bro.
@mirzanumanbaig9221
@mirzanumanbaig9221 4 жыл бұрын
Hi bro can u share ur code with me i got an error my image is nt set in app ui.
@bebopvoxlee3291
@bebopvoxlee3291 3 жыл бұрын
It work perfect for me that help me a lot, Thank you for you tutorial
@md.mehedihasan5096
@md.mehedihasan5096 3 жыл бұрын
Hi, bro . I need your help, I already do it , but after select any pic ,it's not converted in text .
@fenerbahce7134
@fenerbahce7134 5 жыл бұрын
TextRecognizer.isOperational() API always returns false so it doesn't work.how can I solve this problem
@AtifSayings
@AtifSayings 5 жыл бұрын
I'm using this library in my apps on playstore and i didn't face this problem ever, check the code again, you may have made mistake somewhere
@reelunreel009
@reelunreel009 4 жыл бұрын
hi, whole code if fine, click on camera it takes picture but didn't display crop dialogue, same ass for gallery , plzz response asap
@reelunreel009
@reelunreel009 4 жыл бұрын
Error:(33, 20) Failed to resolve: com.google.android.gms:play-services-version:16.2.0 as i am using android 3.0.1 version. please guide me
@prasannaakolka
@prasannaakolka 4 жыл бұрын
This is the best tutorial.. Thanks a lot.
@mansirayal3143
@mansirayal3143 5 жыл бұрын
The app works fine but when try to open camera it shows the has stopped restart again.Can you tell what problem is coming?
@tushargangurde1779
@tushargangurde1779 5 жыл бұрын
image_uri = getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); i debug this it shows image_uri = null
@AtifSayings
@AtifSayings 5 жыл бұрын
run the app and check in logcat what error shows
@Badar2310
@Badar2310 3 жыл бұрын
Line number 194. protected void onActivity. I am not getting it in my suggestions, what am I missing? I am adding aspects from your project to another, let me know please!!
@safasbai9329
@safasbai9329 4 жыл бұрын
can this application read numbers or not ?
@AtifSayings
@AtifSayings 4 жыл бұрын
Yes Numbers, letter, special characters etc
@safasbai9329
@safasbai9329 4 жыл бұрын
@@AtifSayings thank you very much
@sairanoonari8476
@sairanoonari8476 5 жыл бұрын
after clicking image from camera is it showing cropping option directly ? i have tried but its not showing cropping option after taking image!!
@nazlslm3479
@nazlslm3479 2 жыл бұрын
CropImage not working??
@AtifSayings
@AtifSayings 2 жыл бұрын
What is the issue?
@shrishtikohli4575
@shrishtikohli4575 4 жыл бұрын
You have done a great work .. very nice Actually, this is not detecting the Hindi text. Can you suggest something that would detect the Hindi text also properly...
@AtifSayings
@AtifSayings 4 жыл бұрын
I'll let you know if I get any resources.
@muhammadtayyabbashir1513
@muhammadtayyabbashir1513 4 жыл бұрын
I want to just extract numbers from text? What should I do?
@HackerHacker-nk5kl
@HackerHacker-nk5kl 4 жыл бұрын
Helo sir what version of Android studiy do you use?
@AtifSayings
@AtifSayings 4 жыл бұрын
Now v3.5
@Sposhal
@Sposhal 5 жыл бұрын
My app is working 3 Days ago then now it says error after the image crop.. Please Reply Anyone who encounter my problem please help. God Bless !!!
@raghavrastogi1990
@raghavrastogi1990 4 жыл бұрын
camera is opening twice
@bharatdholariya1270
@bharatdholariya1270 5 жыл бұрын
Hello Sir, I did same in the video, but resylt is not showing and image preview is not showing. Inage is also not crop. And no any toast show what can i have to do plaease answer me. Thanks.
@Sposhal
@Sposhal 5 жыл бұрын
same here Bro: Reply Please
@HackerHacker-nk5kl
@HackerHacker-nk5kl 5 жыл бұрын
Can you help i followed all the steps but after building an app and i installed in my phone when i pick camera or gallery its say access denied please help me
@fatmaar5473
@fatmaar5473 3 жыл бұрын
Does it works for scanning business cards?
@AtifSayings
@AtifSayings 3 жыл бұрын
yes
@freedomphiliplachica5414
@freedomphiliplachica5414 5 жыл бұрын
Hey, thank you so much for the tutorial, it really did help me... But I'd like to add another feature: if I choose to scan another image, the new results will just be added (both the texy and the image) instead of clearing the previous result... What would be the new codes?? Thank you..
@AtifSayings
@AtifSayings 5 жыл бұрын
instead of setting text to textview: mResultEt.setText(sb.toString()); append text to textview: mResultEt.append(sb.toString());
@freedomphiliplachica5414
@freedomphiliplachica5414 5 жыл бұрын
@@AtifSayings Thank you so much Sir ... It really worked! Sir, how about the image display? What will be the codes if I want that the images will just be added instead of clearing the previous images? Thanks again
@AtifSayings
@AtifSayings 5 жыл бұрын
i think one ImageView can display only one Image at a time
@freedomphiliplachica5414
@freedomphiliplachica5414 5 жыл бұрын
@@AtifSayings oh, so does it mean I have to add multiple imageViews?? If so, how can I set the new resultUri to another empty imageView sir?
@techByteswithfarooq
@techByteswithfarooq 5 жыл бұрын
@@freedomphiliplachica5414 No it can be achieve by Girdview search about gridview
@rockybalboa6836
@rockybalboa6836 4 жыл бұрын
What about google vision not free its work only 1000/month i think words pls describe what happen when in a month we exceed 1000 words how google charge us on that??
@AtifSayings
@AtifSayings 4 жыл бұрын
link?
@rockybalboa6836
@rockybalboa6836 4 жыл бұрын
@@AtifSayings kya link
@734_sonaligupta9
@734_sonaligupta9 4 жыл бұрын
Sir,,, source code plzzz
@rkomanohar7932
@rkomanohar7932 4 жыл бұрын
this code is not working for me
@yasseralbrikeet2292
@yasseralbrikeet2292 3 жыл бұрын
keep giving errors!! not recognizing the text in emulator, but in Samsung note 8 work fine! Thank you
@Arslanzakir4
@Arslanzakir4 5 жыл бұрын
sir please upload code here for saving text into database after capturing text from image
@AtifSayings
@AtifSayings 5 жыл бұрын
Hello... I've made seprate series on firesbase, if you learn them then you can do that too
@gee3199
@gee3199 3 жыл бұрын
which part of the code should i edit if i would like to save the cropped image?
@AtifSayings
@AtifSayings 3 жыл бұрын
Uri received in onActivityResults
@gee3199
@gee3199 3 жыл бұрын
@@AtifSayings thanks!
@bbgbbg6033
@bbgbbg6033 2 жыл бұрын
It will work for offline also
@AtifSayings
@AtifSayings 2 жыл бұрын
Yes
@abhisheksoni8247
@abhisheksoni8247 5 жыл бұрын
after clicking on the image the crop window in not displaying
@Androidalians
@Androidalians Жыл бұрын
this is old version use new version phone not working or ha es vedio ko ab kisi kam ka nahi
@codewithmi7749
@codewithmi7749 3 жыл бұрын
nice and great video it is working.... it extract text from iage by selcting imae from gallery...but it is not extracting any text using directly camera showing no error...it also take image and then on click oky button it go to home screen but not showing any text in text view....please help me out
@osamamohsen3993
@osamamohsen3993 4 жыл бұрын
This is awesome!! Thanks bro . I appreciate your work. i have issue but not in your code , did you test your project on arabic words? like that اهلا وسهلا بكم
@haithamzein2478
@haithamzein2478 4 жыл бұрын
Hi Osama, I have a graduation project on the same app, could you please support me if you have the source code working properly? thank you
@nailbobic1387
@nailbobic1387 3 жыл бұрын
U can go and see mlkit text recognition documentation, maybe u will find something there
@ayushsrivastava-0496
@ayushsrivastava-0496 4 жыл бұрын
can you tell me that what is the algoritm implemented behind this?
@llaabbssful
@llaabbssful 4 жыл бұрын
How edit the code to skip cropping? I'd like to upload a taken picture into a preview.
@llaabbssful
@llaabbssful 4 жыл бұрын
Sorry, I understood how to do it )). Need to replace: //Uri resultUri = result.getUri(); // Get cropped image uri Uri resultUri = image_uri; // Get uncropped image uri and comment out all lines related to cropping and its results.
@AtifSayings
@AtifSayings 4 жыл бұрын
@@llaabbssful Good
@revamp8436
@revamp8436 5 жыл бұрын
Hi.. My concern is the app is working but not display of image and result in textview.. what seems to be the problem?
@revamp8436
@revamp8436 5 жыл бұрын
Sir dont bother anymore.. i have just fix it.. //get cropped image i have put resultcode instead of requestCode in the if statement. and now it is working... thank you for your wonderful video sir.
@AtifSayings
@AtifSayings 5 жыл бұрын
@@revamp8436 You're welcome :)
@marionvailler2191
@marionvailler2191 5 жыл бұрын
Hi ! I was wondering if you'd have any idea on how to extract the text obtained from the text recognition, to send that to another part of the app (it's in order to use the sentence to look through a pdf to search for the page where the sentence is located) !
@sohelgani2227
@sohelgani2227 3 жыл бұрын
sir me jab camera open karke photo leta hu to right ke button par click ho kar bahar nhi aata hai
@AtifSayings
@AtifSayings 3 жыл бұрын
I didn't get anout "right button", can you explain
@husna.kausarhusna347
@husna.kausarhusna347 5 жыл бұрын
How to convert the image to text and crop the image in Android studio
@AtifSayings
@AtifSayings 5 жыл бұрын
This video has covered the same as you're saying...
@user-pv5sr8ly9h
@user-pv5sr8ly9h 5 жыл бұрын
implementation 'com.android.support:appcompat-v7:28.0.0'
@AtifSayings
@AtifSayings 5 жыл бұрын
you can ignore this, it will not cause problem(s)
@Antweezy
@Antweezy 4 жыл бұрын
How could we make this work with naming molecules?
@aleezarubab6571
@aleezarubab6571 5 жыл бұрын
is video may text extract ho raha hay ...can u add a bit extension into it by also converting the extracted text to speech???
@abhishekveeravelli9130
@abhishekveeravelli9130 5 жыл бұрын
My camera is working fine but I can't upload the photo from gallery and I am getting this error "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included"
@AtifSayings
@AtifSayings 5 жыл бұрын
Sorry, i didn't know bcs i've not face this issue ever. You may search your error on google. Or Check This: stackoverflow.com/questions/18068627/logcat-message-the-google-play-services-resources-were-not-found-check-your-pr
@user-cn9gs3vc9s
@user-cn9gs3vc9s 5 жыл бұрын
hi i watched video well. only English is recognized. Can you recognize other languages by adding them?
@ahmedsobhy3261
@ahmedsobhy3261 4 жыл бұрын
great !! , can you help me please ? i want to compare the result of text by a string i had assigned and if the result same , it shows a button to me to open new activity
@alexismontas866
@alexismontas866 4 жыл бұрын
Man, how i can copy the text with space
@AtifSayings
@AtifSayings 4 жыл бұрын
devofandroid.blogspot.com/2018/03/copy-text-to-clip-board.html
@octaviocossa7662
@octaviocossa7662 4 жыл бұрын
Sorry, Atif for your app is not necessary internet to convert image to text..?
@winstonj.mendozacastro102
@winstonj.mendozacastro102 4 жыл бұрын
Great tutorial.. Thank you so much..
@PeeyuSquad
@PeeyuSquad 3 жыл бұрын
bro is this google vision ocr is Free ?
@AtifSayings
@AtifSayings 3 жыл бұрын
Yes
@VinodKumar-kw6iw
@VinodKumar-kw6iw 4 жыл бұрын
It's not working....
@jasonalessio1058
@jasonalessio1058 4 жыл бұрын
I have an important question, once the text has been extracted how can I check for a specific String, then place it in a String Variable?? 'contains' doesn't seem to want to work? unless I'm doing it in the wrong way? thanks in advance
@gee3199
@gee3199 3 жыл бұрын
maybe try to convert it to string before trying the contain on it?
@clementb8683
@clementb8683 4 жыл бұрын
could we delete images from gallery when the app closes or if i choose to take another photo ?
@AtifSayings
@AtifSayings 4 жыл бұрын
We have uri of image so we can delete using that uri
@rajpootrajpoot2918
@rajpootrajpoot2918 4 жыл бұрын
bhai text read krky set text pr nai lga rha
@androiddev186
@androiddev186 5 жыл бұрын
Thank for the tutorial. I got an issue in alert dialog. When gallery opened and in the same time i tap on back button to go back to previous activity, its force closed...
@AtifSayings
@AtifSayings 5 жыл бұрын
i don't know the reason because i have tested many time with many variations but didn't faced any problem. i'll check again
@AhmedZahid1
@AhmedZahid1 4 жыл бұрын
!recognizer.isOperational() it returns false everytime
@sharary2738
@sharary2738 4 жыл бұрын
You should wait until the OCR dependencies download on the device.
@ji7716
@ji7716 5 жыл бұрын
Does it return vertices of the text in response.?
Slider using ViewPager - Android Studio - Java
10:22
Atif Pervaiz
Рет қаралды 3,9 М.
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 101 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 16 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 32 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 188 МЛН
Extract Text from image OCR using Google Vision API in Android Studio
9:55
Android with Haroon
Рет қаралды 59 М.
Speech To Text - Android Studio - Java
10:33
Atif Pervaiz
Рет қаралды 55 М.
Recognize text in images | Google ML | Android Studio | Java
40:09
Atif Pervaiz
Рет қаралды 13 М.
How to Hide & Protect API Keys in Your Android App (Reverse Engineering)
10:13
Make a Text Scanner App | OCR App | Full Tutorial | Android Development
29:14
Take Picture with Camera - Android Studio - Java
14:19
Atif Pervaiz
Рет қаралды 57 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 133 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10