Helllo,
Thank you for contacting us.
You error means that your strokes contain too many points.
We have observed that you are using your own canvas to capture and draw strokes. As you seem to want to use our Math Solver feature, we recommend you to use an OffScreenEditor object rather than an Editor, as Editor is dedicated for use cases for which you want to use iink SDK to perform the strokes rendering.
OffscreenEditor lets you programmatically drive the content model update by keeping the incremental recognition principle and using gesture notifications.
Your application can rely on its own rendering to manage the captured strokes and display its model. Recognition results are available on demand with dedicated APIs.
Documentation input about OffscreenEditor can be found here: https://developer.myscript.com/docs/interactive-ink/latest/android/advanced/off-screen-usage//
We also have a offscreen-interactivity sample that shows how to integrate MyScript iink SDK interactivity with your own rendering. It drives the content model by sending the captured strokes to iink SDK and keeps the incremental recognition principle and gesture notifications. This sample uses a third-party rendering library to manage the captured strokes and display its model, that you can easily replace by your com.iprima.canvas one and get real-time recognition results and gesture notifications.
It is available on the MyScript Git repository containing the additional examples for the Android platform. https://github.com/MyScript/interactive-ink-additional-examples-android
Best regards,
Gwenaëlle
1130030641
这段代码报错提示Recognition error: stroke has too many ,如果跳过所有中间点,只使用起点和终点,不会报错,会提示识别成功,但是画布上没有路迹,空白的画布