-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shape recognition #2
Comments
There is already a basic recognizer of several geometrical shapes in the INK_ API. See Doc. |
There is another problem i have met during work with a shape recognition. Documentation says: a function SHAPETYPE INK_RecognizeShape(CGStroke *pStroke, int nStrokeCnt, SHAPETYPE inType) analyzes the stroke. If a geometrical shape is recognized, your pStroke will point on a new array of points representing recognized shape. Also function returns a type of shape. I may say the function returns a correct type of a recognized shape, but, unfortunately, it doesn't change CGStroke data i have passed as parameter. By the way, it makes sense to say InkWrapper.h has the same function, but the first parameter is CGStroke stroke, not CGStroke *pStroke. |
Right, the INK_RecognizeShape will not return the new stroke data only the type if it is recognized shape, if any. |
Thanks. It really works. |
Also, i have noticed a shape recognition doesn't work from background threads (INK_RecognizeShape returns SHAPE_UNKNOWN; INK_AddStroke - false). But from the main thread it properly works. |
Is it possible to learn SDK to recognize shapes? Circle, Square, Arrow, Line, etc..
The text was updated successfully, but these errors were encountered: