Giter VIP home page Giter VIP logo

Comments (57)

aphex3k avatar aphex3k commented on May 13, 2024 6

Ok, spent all day today to get this working for iOS and currently have a very hacky version of functioning for english language. I will have to look at the Android side of things to kind of match the API for iOS. I might have something presentable some time this week. Stay tuned...

from react-native-tesseract-ocr.

neilkuumar avatar neilkuumar commented on May 13, 2024 4

I got it working using one of the other users forks from above:

https://github.com/newoceaninfosys/react-native-tesseract-ocr

However it can be a bit slow and performance varies on an iPhone - I will need to play around with the GPUImage settings to see if I can get better results

from react-native-tesseract-ocr.

allthetime avatar allthetime commented on May 13, 2024 4

BUMP. But really, as others have pointed out, it's a little confusing that it says iOS is not supported, but there are installation instructions... What's the current situation? And also, what would it take to complete iOS support, I'm sure some people would be willing to help.

from react-native-tesseract-ocr.

daominhsangvn avatar daominhsangvn commented on May 13, 2024 3

@tommydudehead Check my fork https://github.com/newoceaninfosys/react-native-tesseract-ocr Make sure you read Readme carefully

from react-native-tesseract-ocr.

wayne1203 avatar wayne1203 commented on May 13, 2024 3

@tommydudehead Hi, how can you fixed the "#import <TesseractOCR/TesseractOCR.h>" error?
I got this error even I using the example project.

from react-native-tesseract-ocr.

jonathanpalma avatar jonathanpalma commented on May 13, 2024 2

@ljubic Heey man!! I'm really sorry I had to leave the country for a few days but I'm back now and I will try to work on this these days. Happy Holidays 🍻🎉

from react-native-tesseract-ocr.

setrin avatar setrin commented on May 13, 2024 2

Nice to hear, Happy Holidays to You as well 🙂 Thanks for Your work man

from react-native-tesseract-ocr.

aphex3k avatar aphex3k commented on May 13, 2024 2

@jonathanpalma I want to revisit the work I contributed to finally get this working. Can you give me your feedback on what parts of the iOS work you wanted changed?

If I recall correctly, you wanted me to change it to promises instead?!? I have that part down but please refresh my mind before I create the pull request.

from react-native-tesseract-ocr.

standemchuk avatar standemchuk commented on May 13, 2024 2

@aphex3k @jonathanpalma hey guys, any help needed to get this done faster?

from react-native-tesseract-ocr.

MeKyleH avatar MeKyleH commented on May 13, 2024 2

Can someone write a quick summary of where this issue is and what needs to be done so we can help out as necessary?

from react-native-tesseract-ocr.

jonathanpalma avatar jonathanpalma commented on May 13, 2024 1

Hey @pannz !! I'm sorry to say that I could not work on it (iOS implementation) these days but I don't have a Mac. 😞
So I decided to ask a friend for help and we hope that it could be ready in the second or third week of December, 2016.

from react-native-tesseract-ocr.

jonathanpalma avatar jonathanpalma commented on May 13, 2024 1

Hey @peacechen it is a nice idea! But unfortunately we've been working on it for a few time without making it works for react-native.

naptha/tesseract.js#55

from react-native-tesseract-ocr.

jonathanpalma avatar jonathanpalma commented on May 13, 2024 1

@peacechen I just updated the index.ios.js file of the sample project to make it easier to test. You could check it out here.

Don't forget to follow some steps to run the example

from react-native-tesseract-ocr.

pmth avatar pmth commented on May 13, 2024 1

@jonathanpalma I tried to follow instruction using patch-1 branch. I got errors after trying to select a picture:

2017-12-07 07:25:10.377900-0800 tesseractOcrSample[45351:2350188] [discovery] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
2017-12-07 07:25:11.233 [error][tid:com.apple.root.background-qos][RCTModuleMethod.m:58] Argument 0 (NSString) of RNTesseractOcr. must not be null
2017-12-07 07:25:11.233383-0800 tesseractOcrSample[45351:2350184] Argument 0 (NSString) of RNTesseractOcr. must not be null
2017-12-07 07:25:11.393 [error][tid:com.apple.root.background-qos][RCTModuleMethod.m:58] Argument 0 (<null>) of RNTesseractOcr. could not be processed. Aborting method call.
2017-12-07 07:25:11.392896-0800 tesseractOcrSample[45351:2350184] Argument 0 (<null>) of RNTesseractOcr. could not be processed. Aborting method call.
2017-12-07 07:25:11.457563-0800 tesseractOcrSample[45351:2350188] [] nw_connection_get_connected_socket 9 Connection has no connected handler
2017-12-07 07:25:11.458124-0800 tesseractOcrSample[45351:2350188] TCP Conn 0x60800016a440 Failed : error 0:61 [61]

I will try to look into it myself.

from react-native-tesseract-ocr.

jonathanpalma avatar jonathanpalma commented on May 13, 2024 1

Hi everyone,

Considering that this project does not have a solid support for iOS, I would like you to try the following link and help me create a specific list about the tasks that must be done to improve the functionality. as the usability of this library.

tag: @anagar23 @dilipchandima @ziyafenn @Rafah-Mehfooz @wayne1203 @allthetime @peacechen @goleador0322 @neilkuumar @MeKyleH @tommydudehead @pmth

https://github.com/newoceaninfosys/react-native-tesseract-ocr

@daominhsangvn Could we set up a meeting to talk about the work you have done with this? Maybe we can make some changes on both sides to facilitate its use and have better documentation.

from react-native-tesseract-ocr.

mikasjoman avatar mikasjoman commented on May 13, 2024

That would be fantastic! I was a bit confused when I read the iOS instructions and could't get it to work. Then I finally got to the bottom of the instructions and saw the TODO ;) Wish I knew how to code in Swift, but I just don't have the time :( Hoping for this project to run ahead fast instead :) Thanks for working on it!

from react-native-tesseract-ocr.

ljubic avatar ljubic commented on May 13, 2024

Hello, any news? 😄

from react-native-tesseract-ocr.

JonathanWi avatar JonathanWi commented on May 13, 2024

Hey there! Any news on this @jonathanpalma, really looking forward to using this!

from react-native-tesseract-ocr.

johnrosenbaud11 avatar johnrosenbaud11 commented on May 13, 2024

Hello everyone, is there any iOS version coming out?

Thanks

from react-native-tesseract-ocr.

peacechen avatar peacechen commented on May 13, 2024

How about a pure Javascript version of Tesseract? That would allow support for both Android and iOS in React Native.
http://tesseract.projectnaptha.com/

from react-native-tesseract-ocr.

peacechen avatar peacechen commented on May 13, 2024

@jonathanpalma Thanks for exploring that and sharing the issues. Saves some time for us trying to go down that path. I may lend a hand for the iOS implementation in the future (date unknown, depends on work commitments). Would you mind documenting the architecture of this project? For instance, what methods & callbacks should be implemented.

Edit: Another JS OCR library
http://antimatter15.com/ocrad.js/demo.html

from react-native-tesseract-ocr.

jonathanpalma avatar jonathanpalma commented on May 13, 2024

@peacechen You're welcome! And I'm sorry it's pretty hard work on the iOS implementation without having a mac, that's why I was working on naptha/tesseract project to bring a general solution that works everywhere.

And sure, I'm already working on the documentation while whitelist/blacklist's support is ready.

from react-native-tesseract-ocr.

aphex3k avatar aphex3k commented on May 13, 2024

Looking forward to any update on this matter. Right now, this is mostly unusable due to lacking iOS support 👎

from react-native-tesseract-ocr.

NaleenDissanayake avatar NaleenDissanayake commented on May 13, 2024

Hey, Did you finish IOS version?

from react-native-tesseract-ocr.

mikasjoman avatar mikasjoman commented on May 13, 2024

Any progress on this? If not, could you share the code you have written so far? cheers

from react-native-tesseract-ocr.

aphex3k avatar aphex3k commented on May 13, 2024

it is actually merged but I currently have no time budget available to make the currently proposed changes by @jonathanpalma. So it is kind of janky right now...

from react-native-tesseract-ocr.

kaberibasu avatar kaberibasu commented on May 13, 2024

By when can we expect the fully supported and running iOS version? Its very much needed.

from react-native-tesseract-ocr.

dzcpy avatar dzcpy commented on May 13, 2024

Any news guys?

from react-native-tesseract-ocr.

aphex3k avatar aphex3k commented on May 13, 2024

Sorry, I don't have any time to work on this for the foreseeable future...

from react-native-tesseract-ocr.

danleveille avatar danleveille commented on May 13, 2024

I wish I had the knowledge to help out with this, but I'm really looking forward to iOS support! 😄

from react-native-tesseract-ocr.

vtaseski avatar vtaseski commented on May 13, 2024

Is it working now on iOS?

from react-native-tesseract-ocr.

ryan-codingintrigue avatar ryan-codingintrigue commented on May 13, 2024

@aphex3k Was this commit functional? Seems like the only difference is that the API signature wasn't compatible with the Android one?

If that's the case, happy to help in getting this iOS support added.

from react-native-tesseract-ocr.

aphex3k avatar aphex3k commented on May 13, 2024

Yes, the commit is functional.

https://github.com/aphex3k/react-native-tesseract-ocr/tree/iOS
This branch is my rewrite to bring Android and iOS more in line but I'm having trouble figuring out the Android interface to shape the iOS interface the same way so that it can be used as a true react-native module.

from react-native-tesseract-ocr.

jonathanpalma avatar jonathanpalma commented on May 13, 2024

Currently I'm living in Vancouver due to work reasons, so it's kind of hard to check this out for me, but if some of you guys @aphex3k @ryan-codingintrigue @vtaseski @pannz @standemchuk @danleveille @andyhu @kaberibasu @mikasjoman @peacechen @johnrosenbaud11 @JonathanWi @setrin @ljubic could have a look on @daominhsangvn's fork and give some feedback we could create a pull request

from react-native-tesseract-ocr.

peacechen avatar peacechen commented on May 13, 2024

Great to hear there's progress on the iOS front. Is the sample project functional for iOS? Would be easier to provide feedback with a running app.

from react-native-tesseract-ocr.

ziyafenn avatar ziyafenn commented on May 13, 2024

Fingers crossed that it will work for iOS at least for English soon :)

from react-native-tesseract-ocr.

tmsd32 avatar tmsd32 commented on May 13, 2024

Hey guys, any update on iOS progress?

from react-native-tesseract-ocr.

tmsd32 avatar tmsd32 commented on May 13, 2024

@daominhsangvn thanks for the reply. I have followed the readme very carefully. Unfortunately I get errors when trying to launch the sim. Specifically:

node_modules/react-native-tesseract-ocr/ios/RNTesseractOcr.h:3:9: fatal error: 'TesseractOCR/TesseractOCR.h' file not found
#import <TesseractOCR/TesseractOCR.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

I have previously fixed another error in that file by changing the import path of the other import from #import "React/RCTBridgeModule.h" to #import "RCTBridgeModule.h" (in case it is relevant)

Any suggestions? I have spent many hours on this today, and am a bit stuck now.

Edit: In case it is more readable, here is the same error when attempting to run through Xcode:

screen shot 2018-01-23 at 16 25 43

from react-native-tesseract-ocr.

tmsd32 avatar tmsd32 commented on May 13, 2024

Four hours later and I have managed to get a Build Succeed within Xcode.

However, whenever I run the following code...

RNTesseractOcr.recognize(imgPath, lang, tessOptions) .then((result) => { this.setState({ ocrResult: result }); console.log("OCR Result: ", result); }) .catch((err) => { console.log("OCR Error: ", err); }) .done();

it crashes with the red screen on the iPhone sim with the following message:

screen shot 2018-01-23 at 20 21 01

If you have any suggestions it would be much appreciated. I have spent most of today trying to get this to work, and I am sort of out of ideas now.

from react-native-tesseract-ocr.

ziyafenn avatar ziyafenn commented on May 13, 2024

Don't understand why iOS is completely ignored. There are even no tasks/issues or so to help the project going further.

from react-native-tesseract-ocr.

neilkuumar avatar neilkuumar commented on May 13, 2024

anyone got an update on how to get this working?

from react-native-tesseract-ocr.

ziyafenn avatar ziyafenn commented on May 13, 2024

@neilkuumar Nothing seems to be happening...

from react-native-tesseract-ocr.

ziyafenn avatar ziyafenn commented on May 13, 2024

@neilkuumar Crazy!! Please keep us updated <3

from react-native-tesseract-ocr.

zoi-aoba avatar zoi-aoba commented on May 13, 2024

GOD!!!

from react-native-tesseract-ocr.

peacechen avatar peacechen commented on May 13, 2024

Yes?

from react-native-tesseract-ocr.

Rafah-Mehfooz avatar Rafah-Mehfooz commented on May 13, 2024

Anybody using it for iOS?

from react-native-tesseract-ocr.

ziyafenn avatar ziyafenn commented on May 13, 2024

@neilkuumar is that fork still works for you?

from react-native-tesseract-ocr.

dilipchandima avatar dilipchandima commented on May 13, 2024

Anybody using it for iOS development ?? I also getting "#import <TesseractOCR/TesseractOCR.h>" error after following all the steps for iOS ??

from react-native-tesseract-ocr.

daominhsangvn avatar daominhsangvn commented on May 13, 2024

Have you guys tried pod install and update Header Search Paths in RNTesseractOcr yet?
Make sure you're using .xcworkspace to open the xcode project

from react-native-tesseract-ocr.

anagar23 avatar anagar23 commented on May 13, 2024

@daominhsangvn , I tried with all your steps, project successfully compiled but at the time of launching app it throws runtime crash. Following log I found in Xcode:

dyld: lazy symbol binding failed: can't resolve symbol ___cxa_guard_acquire in /Users/amitnagar/Library/Developer/CoreSimulator/Devices/605F8113-1EB3-4391-B93B-23D1BE432DBF/data/Containers/Bundle/Application/9416CFAF-35E6-4D0C-9E39-976C6383C2DD/elth.app/elth because dependent dylib #1 could not be loaded

dyld: can't resolve symbol ___cxa_guard_acquire in /Users/amitnagar/Library/Developer/CoreSimulator/Devices/605F8113-1EB3-4391-B93B-23D1BE432DBF/data/Containers/Bundle/Application/9416CFAF-35E6-4D0C-9E39-976C6383C2DD/elth.app/elth because dependent dylib #1 could not be loaded

Do you know what could be the possible reason for the problem.

from react-native-tesseract-ocr.

SwagatRanjit84 avatar SwagatRanjit84 commented on May 13, 2024

@peacechen Is it working on android?

from react-native-tesseract-ocr.

peacechen avatar peacechen commented on May 13, 2024

This library was originally developed for Android. It's been a while since I've tried it, but it was working.

from react-native-tesseract-ocr.

SwagatRanjit84 avatar SwagatRanjit84 commented on May 13, 2024

@peacechen Can you share the code? I was having error of "Data Path doesn't exist".
Data path is : file:///storage/emulated/0/documents/a.jpg which is absolutely correct
Inside document folder there is an image called "a.jpg" still there is error

from react-native-tesseract-ocr.

tuicodemobile avatar tuicodemobile commented on May 13, 2024

Four hours later and I have managed to get a Build Succeed within Xcode.

However, whenever I run the following code...

RNTesseractOcr.recognize(imgPath, lang, tessOptions) .then((result) => { this.setState({ ocrResult: result }); console.log("OCR Result: ", result); }) .catch((err) => { console.log("OCR Error: ", err); }) .done();

it crashes with the red screen on the iPhone sim with the following message:

screen shot 2018-01-23 at 20 21 01

If you have any suggestions it would be much appreciated. I have spent most of today trying to get this to work, and I am sort of out of ideas now.

I think react-native can not load Tesseract-orc Native On IOS Maybe cause "RCTBridgeModule.h" not found solve. I facing with this problem.
@jonathanpalma

from react-native-tesseract-ocr.

lutakyn avatar lutakyn commented on May 13, 2024

This library has never worked for me on iOS, getting React/RCTDefines.h file not found

from react-native-tesseract-ocr.

stale avatar stale commented on May 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from react-native-tesseract-ocr.

ziyafenn avatar ziyafenn commented on May 13, 2024

#92

from react-native-tesseract-ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.