/// <summary> /// Initializes a new instance of the ReadResult class. /// </summary> /// <param name="page">The 1-based page number of the recognition /// result.</param> /// <param name="angle">The orientation of the image in degrees in the /// clockwise direction. Range between [-180, 180).</param> /// <param name="width">The width of the image in pixels or the PDF in /// inches.</param> /// <param name="height">The height of the image in pixels or the PDF /// in inches.</param> /// <param name="unit">The unit used in the Width, Height and /// BoundingBox. For images, the unit is 'pixel'. For PDF, the unit is /// 'inch'. Possible values include: 'pixel', 'inch'</param> /// <param name="lines">A list of recognized text lines.</param> /// <param name="language">The BCP-47 language code of the recognized /// text page.</param> public ReadResult(int page, double angle, double width, double height, TextRecognitionResultDimensionUnit unit, IList <Line> lines, string language = default(string)) { Page = page; Language = language; Angle = angle; Width = width; Height = height; Unit = unit; Lines = lines; CustomInit(); }
internal static string ToSerializedValue(this TextRecognitionResultDimensionUnit value) { switch (value) { case TextRecognitionResultDimensionUnit.Pixel: return("pixel"); case TextRecognitionResultDimensionUnit.Inch: return("inch"); } return(null); }