Hello, I'm brand new to MyScript so chances are high I'm doing something dumb. I'm developing in Swift on iOS. I have been able to get a text recognizer to work, but am not having luck with the other recognizer types.
I query and log the supported recognizer types and get:
The supported types that you are referring too correspond to SupportedPartTypes that are the types supported by the Editor objects, while the Recognizers types are given by the SupportedRecognizerTypes.
Currently the Recognizers types are "Text", "Gesture", "Shape", "Raw Content" and "Math". (see
The main difference between the Recognizer and the Editor is :
So, if you want to use a "Text Document", you should use an Editor object. (you can refer to our Demo example)
If you want to use a Recognizer, you should use another type.
Best regards,
Gwenaëlle
S
Shannonholl
said
about 1 month ago
My apologies - I should have updated the posted code. I had been trying to instantiate a "Math" recognizer but was getting the cannot instantiate errors. I then tried the other types - the only type I can instantiate was Text. "Text Document" was just what I had checked last and I failed to update the posted code to be sure it was clear.
So, why would I be getting that error for a Math type?
Thank you!
G
Gwenaelle @MyScript
said
about 1 month ago
Hello,
Thank you for your update.
There are two things to check to use your "Math" recognizer:
For the moment, the Math Recognizer is not available on all platforms: check here whether your platform supports Math Recognizer
Hmmm, I must still be doing something else wrong. I have both the Math and Math2 resources installed (have also tried them independently). Ive tried running across a range of simulators - iPhone through to iPad pro - get the same error.
Nebo runs on my iPad and does math recognition (as does Goodnotes which I understand uses MyScript) so I'm assuming the basic hardware requirements are there.
Any other suggestions? Thank you!
G
Gwenaelle @MyScript
said
about 1 month ago
Hello,
Based on the information you gave us, we were able to reproduce this issue. So thank you for your update and for identifying and sharing this with us.
We have identified the source of the problem, which is that the specific library required for the "Math" recognizer is missing from the podfile, So, the Text recognizer and Math Editor in the demo sample work fine, as they don't use this library.
We will let you know when the fix is available.
Best regards,
Gwenaëlle
S
Shannonholl
said
about 1 month ago
Thank you!
G
Gwenaelle @MyScript
said
19 days ago
Answer
Hello Shannonholl,
Today we released version 3.1.3 of the iink SDK. This version fixes the problem with the "Math" recognizer that you faced.
Shannonholl
Hello, I'm brand new to MyScript so chances are high I'm doing something dumb. I'm developing in Swift on iOS. I have been able to get a text recognizer to work, but am not having luck with the other recognizer types.
I query and log the supported recognizer types and get:
Yet if I request a non-text type, I get the following error (in this case I'm asking for a Text Document, but I really want Math):
The code itself is quite simple:
Might anyone have any recommendations as to what I'm doing wrong here?
Thank you!
Hello Shannonholl,
Today we released version 3.1.3 of the iink SDK. This version fixes the problem with the "Math" recognizer that you faced.
For more details, please see https://github.com/MyScript/interactive-ink-examples-ios
We're looking forward to hearing your feedback on "Math" Recognizer with this new version.
Best regards,
Gwenaëlle
- Oldest First
- Popular
- Newest First
Sorted by PopularGwenaelle @MyScript
Hello
Thank you for your question.
The supported types that you are referring too correspond to SupportedPartTypes that are the types supported by the Editor objects, while the Recognizers types are given by the SupportedRecognizerTypes.
Currently the Recognizers types are "Text", "Gesture", "Shape", "Raw Content" and "Math". (see
The main difference between the Recognizer and the Editor is :
- The recognizers aim at performing real-time incremental recognition on transient ink. (see https://developer.myscript.com/docs/interactive-ink/3.1/overview/recognizers/ and https://developer.myscript.com/docs/interactive-ink/3.1/ios/advanced/recognizers/)
- The Editor support rendering-driven interactivity, meaning that you want to use iink SDK to perform the ink strokes rendering and use our interactive feature (see https://developer.myscript.com/docs/interactive-ink/3.1/concepts/ink-capture/)
So, if you want to use a "Text Document", you should use an Editor object. (you can refer to our Demo example)
If you want to use a Recognizer, you should use another type.
Best regards,
Gwenaëlle
Shannonholl
My apologies - I should have updated the posted code. I had been trying to instantiate a "Math" recognizer but was getting the cannot instantiate errors. I then tried the other types - the only type I can instantiate was Text. "Text Document" was just what I had checked last and I failed to update the posted code to be sure it was clear.
So, why would I be getting that error for a Math type?
Thank you!
Gwenaelle @MyScript
Hello,
Thank you for your update.
There are two things to check to use your "Math" recognizer:
recognizer.configuration-manager.search-path
key to the folder(s) containing your math Recognizer configuration file(s) (*.conf). For more details, please refer to https://developer.myscript.com/docs/interactive-ink/3.1/ios/advanced/recognizers/#math-recognizerBest regards,
Gwenaëlle
Shannonholl
Hmmm, I must still be doing something else wrong. I have both the Math and Math2 resources installed (have also tried them independently). Ive tried running across a range of simulators - iPhone through to iPad pro - get the same error.
Nebo runs on my iPad and does math recognition (as does Goodnotes which I understand uses MyScript) so I'm assuming the basic hardware requirements are there.
Any other suggestions? Thank you!
Gwenaelle @MyScript
Hello,
Based on the information you gave us, we were able to reproduce this issue. So thank you for your update and for identifying and sharing this with us.
We have identified the source of the problem, which is that the specific library required for the "Math" recognizer is missing from the podfile, So, the Text recognizer and Math Editor in the demo sample work fine, as they don't use this library.
We will let you know when the fix is available.
Best regards,
Gwenaëlle
Shannonholl
Thank you!
Gwenaelle @MyScript
Hello Shannonholl,
Today we released version 3.1.3 of the iink SDK. This version fixes the problem with the "Math" recognizer that you faced.
For more details, please see https://github.com/MyScript/interactive-ink-examples-ios
We're looking forward to hearing your feedback on "Math" Recognizer with this new version.
Best regards,
Gwenaëlle
Shannonholl
Awesome - thank you! I've installed the update and am successfully getting LaTeX back :)
Shannon
Gwenaelle @MyScript
Hello Shannon,
Thanks for your feedback. Glad to see that the math Recognizer works well for you too!
Best regards,
Gwenaëlle