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?
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?
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.
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 theInkAnalysisDrawingKind
.The
InkAnalysisDrawingKind
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
InkAnalysisDrawingKind.Drawing
.