I am trying to achieve handwriting shape recognition in my 64-bit WPF application using the .net framework 4.7.2. The Ink Analysis API documentation says
32-bit Support Only
Note that the Ink Analysis libraries are only supported in 32-bit processes.
Did Microsoft replace this with another API I can use on 64-bit platforms, or did they just drop the feature?
When I use IACore.dll, and IALoader.dll for a 64-bit application, I get the following error:
System.BadImageFormatException: ‘Could not load file or assembly ‘IALoader.dll’ or one of its dependencies. It is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)’
Sample code –
public System.Windows.Ink.InkAnalyzer analyzerAutoShapeReognition;
private void Strokes_StrokesChanged(object sender, StrokeCollectionChangedEventArgs e)
{
analyzerAutoShapeReognition = new InkAnalyzer(this.Dispatcher);
analyzerAutoShapeReognition.ResultsUpdated += new ResultsUpdatedEventHandler(analyzer_ResultsUpdated);
if (e.Added.Count > 0)
{
analyzerAutoShapeReognition.AddStrokes(e.Added);
analyzerAutoShapeReognition.SetStrokesType(e.Added, StrokeType.Drawing);
}
if (e.Removed.Count > 0)
{
analyzerAutoShapeReognition.RemoveStrokes(e.Removed);
}
analyzerAutoShapeReognition.BackgroundAnalyze();
}
void analyzer_ResultsUpdated(object sender, ResultsUpdatedEventArgs e)
{
try
{
AddShapes(analyzerAutoShapeReognition.RootNode);
}
catch (Exception ex) { Console.WriteLine(ex); }
}