Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by MuraliVenkat · Jun 02, 2017 at 11:47 AM · augmented-realityaugmented realityrecognitionaugmented

How do i implement OCR text recognition in unity?

@Bunny83 @Eric5h5 @robertbu @Aurore @whydoidoit @fafase Hi, I am working in Text recognition. I need to recognize hand written texts or printed texts. I have tried vuforia for this and it worked but i don’t want to spend that much money on it. I have tried the following,

  1. Tesseract

  2. Google cloud vision API.

Tesseract - I can’t able to complete it. I have searched in google and am doing.

Google cloud vision - I am getting 403 forbidden error. I have to check this.

Does anyone help me on this? i have struggling in this for past 2 weeks. i desperately in need of your help.

Thanks.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DavidTree · Jun 09, 2017 at 11:04 AM 0
Share

I want to implement OCR in multiple languages on Android but vuforia only supports English.

I've been looking to alternatives but I'm not sure if Google Cloud Vision is feasible because I wanted it to be in real time.

The other alternative is Tesseract but I did not find a plugin or wrapper for unity so I'm not sure if I will be able to make it work.

How are your trying to do it?

Thanks

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by $$anonymous$$ · Jun 09, 2017 at 02:29 PM

@MuraliVenkat I was able to get Tesseract to compile but as I remember there were also many dependent libraries like Leptonica and Libtiff that also had to be successfully compiled and linked as well. I found a version of these libraries somewhere on the net and added those to my project. My app successfully recognized text at about 300 dpi. You could create a Unity plugin that then calls this OCR function. There is a sample plugin project in the Unity Documentation.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MuraliVenkat · Jul 26, 2017 at 07:23 AM 0
Share

@$$anonymous$$ : Thanks for your reply. Can you share any POC for it so that i will move forward to complete this one. I am stuck on it. Thank you.

avatar image $$anonymous$$ · Jul 26, 2017 at 09:10 AM 0
Share

@$$anonymous$$uraliVenkat Here is the line of code in my xCode project that interfaces with Tesseract to perform the OCR:

text = tess->TesseractRect((const unsigned char*)imageData, (int)([imageRep bitsPerPixel]/8), bytes_per_line, 0, 0, imageSize.width, imageSize.height);

avatar image
0

Answer by G9host · Aug 12, 2017 at 07:10 AM

@digland2000 Can please post the link of the sample Plugin Project (which i couldn't find any where even documentations)..Thank you...

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · Aug 12, 2017 at 07:29 AM 0
Share

@G9host Go to this page:

https://docs.unity3d.com/$$anonymous$$anual/PluginsForDesktop.html

Look under the section titled Examples and there is a small link you can click under the heading Simplest Plugin. It was a very basic project but helped a lot.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

110 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity and Vuforia app crashes on iOS after reloading scene with ARCamera 3 Answers

Augmented Reality. Draw dynamic walls 0 Answers

How to stop plane detection using ARKit 2 Answers

Is it possible to have an AR without image target or marker?,Is it possible to make an AR without a marker or target image? 1 Answer

Vuforia on HoloLens 2 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges