InkAnalyzer UWP - custom shapes

376 views Asked by At

Just wondering - is there a way to add custom shape recognition to UWP ink analyzer?

I need to be able to recognize a semi-circle, an arrow an couple of other simple shapes.

What is the best approach to solve this issue?

2

There are 2 answers

2
Jayden On BEST ANSWER

As far as I known, we can not recognize a semi-circle, an arrow an couple of other simple shapes by the InkAnalyzer class. It can recognize the specified shape in the Ink​Analysis​Drawing​Kind.

The Ink​Analysis​Drawing​Kind enum lists Circle, Diamond, Drawing, Ellipse,
EquilateralTriangle, Hexagon, IsoscelesTriangle, Parallelogram, Pentagon, Quadrilateral, Rectangle, RightTriangle, Square, Trapezoid and Triangle. We can not add our custom shape to it.

If you draw a semi-circle, it maybe will recognize to Ellipse or Rectangle that we can not know it is a semi-circle. If you draw an arrow, it will not be recognized as one of the shapes listed. Then it will return Ink​Analysis​Drawing​​Kind.Drawing.

0
beatnikthedan On

https://github.com/Microsoft/MTC_WindowsSmartInk

You can do it if you use it in conjunction with Azure's Custom Vision service. I've seen a lot of demo videos from Build about it.