private Result ConvertToResult(G8RecognizedBlock r) { return(new Result { Confidence = (float)r.Confidence, Text = r.Text, Box = new Rectangle( (float)(_size.Width * r.BoundingBox.X), (float)(_size.Height * r.BoundingBox.Y), (float)(_size.Width * r.BoundingBox.Width), (float)(_size.Height * r.BoundingBox.Height) ) }); }
private Result ConvertToResult (G8RecognizedBlock r) { return new Result { Confidence = (float)r.Confidence, Text = r.Text, Box = new Rectangle ( (float)r.BoundingBox.X, (float)r.BoundingBox.Y, (float)r.BoundingBox.Width, (float)r.BoundingBox.Height ) }; }