void MeasureSkewRotation(string imageFile)
{
// Open image file
CiServer ci = Inlite.ClearImageNet.Server.GetThreadServer();
CiTools Tools = ci.CreateTools();
Tools.Image.Open(imageFile, 1);
// Do processing
double skew; EPageRotation rot;
skew = Tools.MeasureSkew();
Console.WriteLine("Skew= " + skew + " Confidence= " + Tools.rConfidence + "%");
rot = Tools.MeasureRotation();
Console.WriteLine("Rotation= " + rot.ToString() + " Confidence=" + Tools.rConfidence + "%");
}
Sub MeasureSkewRotation(imageFile As String)
' Open image file
Dim ci As CiServer = Inlite.ClearImageNet.Server.GetThreadServer()
Dim Tools As CiTools = ci.CreateTools()
Tools.Image.Open(imageFile, 1)
' Do processing
Dim skew As Double, rot As EPageRotation
skew = Tools.MeasureSkew()
Console.WriteLine("Skew= " + skew + " Confidence= " + Tools.rConfidence + "%")
rot = Tools.MeasureRotation()
Console.WriteLine("Rotation= " + rot.ToString() + " Confidence=" + Tools.rConfidence + "%")
End Sub