iink SDK on Device

Answered

iink SDK with drawing as input

Hey Hi,


I have tried integrating your Interactive Ink SDK for iOS.

What we are trying to achieve is, we have an external pad where we can write a drawing on the pad and the pad transmits the coordinates of the drawing to an iOS device where we can replicate the same on the display. 

What I'm expecting from your SDK is if I can send the coordinates or the drawing as an image to the SDK and the SDK can give me a string of the drawing.


Is this possible? or can you tell us is there any other way we achieve this?


Best Answer

Dear Kishore,


currently, the easier is that you refer to the swift sample you can find at the following link: https://myscript.filecamp.com/s/k4eyDOQNnemxh7Bd/fo


In the latter, the strokes are added as a series of events, and we export as text.


Best regards,


Olivier


Dear Kishore,


Thank you for contacting us.


When you mean "coordinates of the drawing as an image", are you referring to an image file (png, bmp), or you have all the x and y coordinates of the strokes?


Indeed, if you have an image, then the MyScript technology is not able to recognize images: https://developer.myscript.com/docs/concepts/digital-ink-vs-ocr/


If you have the x and y coordinates of each stroke, then you can use the MyScript iink providing the strokes as a series of events:

-https://developer.myscript.com/docs/interactive-ink/1.4/android/fundamentals/editing/#series-of-events

-https://github.com/MyScript/interactive-ink-additional-examples-android/tree/master/java/samples/batch-mode/src/main/java/com/myscript/iink/samples/batchmode


Best regards,


Olivier

Hi Olivier,

 

Thanks for your reply, 


For clarification: we have all the x and y coordinates of the strokes, 

We would like to use iOS SDK so I referred this like https://developer.myscript.com/docs/interactive-ink/1.4/ios/fundamentals/editing/#series-of-events 

according to the docs I see that the coordinates of the strokes are accepted by the SDK and the result will be displayed on IINKEditor , is there any way I can get the processed text as String object so that I can use it for further processing?

Answer

Dear Kishore,


currently, the easier is that you refer to the swift sample you can find at the following link: https://myscript.filecamp.com/s/k4eyDOQNnemxh7Bd/fo


In the latter, the strokes are added as a series of events, and we export as text.


Best regards,


Olivier