/// <summary>
 /// Initializes a new instance of the <see cref="SecurityFeatureResult" /> class.
 /// </summary>
 /// <param name="elementType">elementType.</param>
 /// <param name="elementRect">elementRect.</param>
 /// <param name="visibility">visibility.</param>
 /// <param name="criticalFlag">criticalFlag.</param>
 /// <param name="areaList">areaList.</param>
 /// <param name="reserved2">reserved2.</param>
 public SecurityFeatureResult(int elementType = default(int), RectangleCoordinates elementRect = default(RectangleCoordinates), int visibility = default(int), int criticalFlag = default(int), List <AreaContainer> areaList = default(List <AreaContainer>), int reserved2 = default(int), int type = 0, int elementResult = default(int), int elementDiagnose = default(int)) : base(type, elementResult, elementDiagnose)
 {
     this.ElementType  = elementType;
     this.ElementRect  = elementRect;
     this.Visibility   = visibility;
     this.CriticalFlag = criticalFlag;
     this.AreaList     = areaList;
     this.Reserved2    = reserved2;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotoIdentResult" /> class.
 /// </summary>
 /// <param name="lightIndex">lightIndex.</param>
 /// <param name="area">area.</param>
 /// <param name="sourceImage">sourceImage.</param>
 /// <param name="resultImages">resultImages.</param>
 /// <param name="fieldTypesCount">fieldTypesCount.</param>
 /// <param name="fieldTypesList">fieldTypesList.</param>
 /// <param name="step">step.</param>
 /// <param name="angle">angle.</param>
 /// <param name="reserved3">reserved3.</param>
 public PhotoIdentResult(int lightIndex = default(int), RectangleCoordinates area = default(RectangleCoordinates), ImageData sourceImage = default(ImageData), RawImageContainerList resultImages = default(RawImageContainerList), int fieldTypesCount = default(int), List <int> fieldTypesList = default(List <int>), int step = default(int), int angle = default(int), int reserved3 = default(int), int type = 0, int elementResult = default(int), int elementDiagnose = default(int)) : base(type, elementResult, elementDiagnose)
 {
     this.LightIndex      = lightIndex;
     this.Area            = area;
     this.SourceImage     = sourceImage;
     this.ResultImages    = resultImages;
     this.FieldTypesCount = fieldTypesCount;
     this.FieldTypesList  = fieldTypesList;
     this.Step            = step;
     this.Angle           = angle;
     this.Reserved3       = reserved3;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="SymbolRecognitionResult" /> class.
        /// </summary>
        /// <param name="symbolRect">symbolRect (required).</param>
        /// <param name="listOfCandidates">Array of candidate characters. Sorted in descending order of recognition probabilities (the first element has highest probability) (required).</param>
        public SymbolRecognitionResult(RectangleCoordinates symbolRect = default(RectangleCoordinates), List <SymbolCandidate> listOfCandidates = default(List <SymbolCandidate>))
        {
            // to ensure "symbolRect" is required (not null)
            if (symbolRect == null)
            {
                throw new InvalidDataException("symbolRect is a required property for SymbolRecognitionResult and cannot be null");
            }
            else
            {
                this.SymbolRect = symbolRect;
            }

            // to ensure "listOfCandidates" is required (not null)
            if (listOfCandidates == null)
            {
                throw new InvalidDataException("listOfCandidates is a required property for SymbolRecognitionResult and cannot be null");
            }
            else
            {
                this.ListOfCandidates = listOfCandidates;
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="TextFieldValue" /> class.
        /// </summary>
        /// <param name="source">source (required).</param>
        /// <param name="value">Parsed/processed value. Date format converted for output, delimiters removed (required).</param>
        /// <param name="originalValue">Original value as seen in the document.</param>
        /// <param name="originalSymbols">originalSymbols.</param>
        /// <param name="pageIndex">Page index of the image from input list (required).</param>
        /// <param name="probability">Min recognition probability. Combined minimum probability from single characters probabilities.</param>
        /// <param name="fieldRect">fieldRect.</param>
        /// <param name="rfidOrigin">rfidOrigin.</param>
        public TextFieldValue(string source = default(string), string value = default(string), string originalValue = default(string), List <OriginalSymbol> originalSymbols = default(List <OriginalSymbol>), int pageIndex = default(int), int probability = default(int), RectangleCoordinates fieldRect = default(RectangleCoordinates), RfidOrigin rfidOrigin = default(RfidOrigin))
        {
            // to ensure "source" is required (not null)
            if (source == null)
            {
                throw new InvalidDataException("source is a required property for TextFieldValue and cannot be null");
            }
            else
            {
                this.Source = source;
            }

            // to ensure "value" is required (not null)
            if (value == null)
            {
                throw new InvalidDataException("value is a required property for TextFieldValue and cannot be null");
            }
            else
            {
                this.Value = value;
            }

            // to ensure "pageIndex" is required (not null)
            if (pageIndex == null)
            {
                throw new InvalidDataException("pageIndex is a required property for TextFieldValue and cannot be null");
            }
            else
            {
                this.PageIndex = pageIndex;
            }

            this.OriginalValue   = originalValue;
            this.OriginalSymbols = originalSymbols;
            this.Probability     = probability;
            this.FieldRect       = fieldRect;
            this.RfidOrigin      = rfidOrigin;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DocVisualExtendedField" /> class.
        /// </summary>
        /// <param name="wFieldType">wFieldType (required).</param>
        /// <param name="fieldName">Field name. Only use to search values for fields with fieldType&#x3D;50(other). In general, use wFieldType for lookup. (required).</param>
        /// <param name="wLCID">wLCID (required).</param>
        /// <param name="stringsResult">Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results..</param>
        /// <param name="bufText">Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by &#39;^&#39;.</param>
        /// <param name="fieldRect">fieldRect.</param>
        /// <param name="rFIDOriginDG">Origin data group information. Only for Result.RFID_TEXT results..</param>
        /// <param name="rFIDOriginTagEntry">Index of the text field record in origin data group. Only for Result.RFID_TEXT results..</param>
        public DocVisualExtendedField(int wFieldType = default(int), string fieldName = default(string), int wLCID = default(int), List <StringRecognitionResult> stringsResult = default(List <StringRecognitionResult>), string bufText = default(string), RectangleCoordinates fieldRect = default(RectangleCoordinates), int rFIDOriginDG = default(int), int rFIDOriginTagEntry = default(int))
        {
            // to ensure "wFieldType" is required (not null)
            if (wFieldType == null)
            {
                throw new InvalidDataException("wFieldType is a required property for DocVisualExtendedField and cannot be null");
            }
            else
            {
                this.WFieldType = wFieldType;
            }

            // to ensure "fieldName" is required (not null)
            if (fieldName == null)
            {
                throw new InvalidDataException("fieldName is a required property for DocVisualExtendedField and cannot be null");
            }
            else
            {
                this.FieldName = fieldName;
            }

            // to ensure "wLCID" is required (not null)
            if (wLCID == null)
            {
                throw new InvalidDataException("wLCID is a required property for DocVisualExtendedField and cannot be null");
            }
            else
            {
                this.WLCID = wLCID;
            }

            this.StringsResult      = stringsResult;
            this.BufText            = bufText;
            this.FieldRect          = fieldRect;
            this.RFIDOriginDG       = rFIDOriginDG;
            this.RFIDOriginTagEntry = rFIDOriginTagEntry;
        }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OriginalSymbol" /> class.
 /// </summary>
 /// <param name="code">Unicode symbol code.</param>
 /// <param name="probability">Probability of correctness reading of a single character.</param>
 /// <param name="rect">rect.</param>
 public OriginalSymbol(long code = default(long), int probability = default(int), RectangleCoordinates rect = default(RectangleCoordinates))
 {
     this.Code        = code;
     this.Probability = probability;
     this.Rect        = rect;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IdentResult" /> class.
 /// </summary>
 /// <param name="elementType">elementType.</param>
 /// <param name="lightIndex">lightIndex.</param>
 /// <param name="area">area.</param>
 /// <param name="image">image.</param>
 /// <param name="etalonImage">etalonImage.</param>
 /// <param name="percentValue">Probability percent for IMAGE_PATTERN check or element&#39;s visibility for IR_VISIBILITY.</param>
 /// <param name="areaList">areaList.</param>
 public IdentResult(int elementType = default(int), int lightIndex = default(int), RectangleCoordinates area = default(RectangleCoordinates), ImageData image = default(ImageData), ImageData etalonImage = default(ImageData), int percentValue = default(int), List <AreaContainer> areaList = default(List <AreaContainer>), int type = 0, int elementResult = default(int), int elementDiagnose = default(int)) : base(type, elementResult, elementDiagnose)
 {
     this.ElementType  = elementType;
     this.LightIndex   = lightIndex;
     this.Area         = area;
     this.Image        = image;
     this.EtalonImage  = etalonImage;
     this.PercentValue = percentValue;
     this.AreaList     = areaList;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="GraphicField" /> class.
        /// </summary>
        /// <param name="fieldType">fieldType (required).</param>
        /// <param name="image">image (required).</param>
        /// <param name="fieldRect">fieldRect.</param>
        /// <param name="rFIDOriginDG">Source data group file. Only for Result.RFID_GRAPHICS result..</param>
        /// <param name="rFIDOriginDGTag">Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result..</param>
        /// <param name="rFIDOriginTagEntry">Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result..</param>
        /// <param name="rFIDOriginEntryView">Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result..</param>
        public GraphicField(int fieldType = default(int), ImageData image = default(ImageData), RectangleCoordinates fieldRect = default(RectangleCoordinates), int rFIDOriginDG = default(int), int rFIDOriginDGTag = default(int), int rFIDOriginTagEntry = default(int), int rFIDOriginEntryView = default(int))
        {
            // to ensure "fieldType" is required (not null)
            if (fieldType == null)
            {
                throw new InvalidDataException("fieldType is a required property for GraphicField and cannot be null");
            }
            else
            {
                this.FieldType = fieldType;
            }

            // to ensure "image" is required (not null)
            if (image == null)
            {
                throw new InvalidDataException("image is a required property for GraphicField and cannot be null");
            }
            else
            {
                this.Image = image;
            }

            this.FieldRect           = fieldRect;
            this.RFIDOriginDG        = rFIDOriginDG;
            this.RFIDOriginDGTag     = rFIDOriginDGTag;
            this.RFIDOriginTagEntry  = rFIDOriginTagEntry;
            this.RFIDOriginEntryView = rFIDOriginEntryView;
        }
Exemplo n.º 9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ImagesFieldValue" /> class.
        /// </summary>
        /// <param name="source">source (required).</param>
        /// <param name="value">Base64 encoded image (required).</param>
        /// <param name="originalValue">Base64 encoded image.</param>
        /// <param name="pageIndex">Page index of the image from input list (required).</param>
        /// <param name="lightIndex">lightIndex (required).</param>
        /// <param name="containerType">Same as Result type, but used for safe parsing of not-described values. See Result type. (required) (default to 0).</param>
        /// <param name="fieldRect">fieldRect.</param>
        /// <param name="rfidOrigin">rfidOrigin.</param>
        public ImagesFieldValue(string source = default(string), byte[] value = default(byte[]), byte[] originalValue = default(byte[]), int pageIndex = default(int), int lightIndex = default(int), int containerType = 0, RectangleCoordinates fieldRect = default(RectangleCoordinates), RfidOrigin rfidOrigin = default(RfidOrigin))
        {
            // to ensure "source" is required (not null)
            if (source == null)
            {
                throw new InvalidDataException("source is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.Source = source;
            }

            // to ensure "value" is required (not null)
            if (value == null)
            {
                throw new InvalidDataException("value is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.Value = value;
            }

            // to ensure "pageIndex" is required (not null)
            if (pageIndex == null)
            {
                throw new InvalidDataException("pageIndex is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.PageIndex = pageIndex;
            }

            // to ensure "lightIndex" is required (not null)
            if (lightIndex == null)
            {
                throw new InvalidDataException("lightIndex is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.LightIndex = lightIndex;
            }

            // to ensure "containerType" is required (not null)
            if (containerType == null)
            {
                throw new InvalidDataException("containerType is a required property for ImagesFieldValue and cannot be null");
            }
            else
            {
                this.ContainerType = containerType;
            }

            this.OriginalValue = originalValue;
            this.FieldRect     = fieldRect;
            this.RfidOrigin    = rfidOrigin;
        }