public SegmentationResultVectorEnumerator(SegmentationResultVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public SegmentationResultVector(SegmentationResultVector other) : this(csSmartIdEnginePINVOKE.new_SegmentationResultVector__SWIG_1(SegmentationResultVector.getCPtr(other)), true)
 {
     if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending)
     {
         throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetRange(int index, SegmentationResultVector values)
 {
     csSmartIdEnginePINVOKE.SegmentationResultVector_SetRange(swigCPtr, index, SegmentationResultVector.getCPtr(values));
     if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending)
     {
         throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetSegmentationResults(SegmentationResultVector segmentation_results)
 {
     csSmartIdEnginePINVOKE.RecognitionResult_SetSegmentationResults(swigCPtr, SegmentationResultVector.getCPtr(segmentation_results));
     if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending)
     {
         throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public static SegmentationResultVector Repeat(SegmentationResult value, int count)
        {
            global::System.IntPtr    cPtr = csSmartIdEnginePINVOKE.SegmentationResultVector_Repeat(SegmentationResult.getCPtr(value), count);
            SegmentationResultVector ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SegmentationResultVector(cPtr, true);

            if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending)
            {
                throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public SegmentationResultVector GetRange(int index, int count)
        {
            global::System.IntPtr    cPtr = csSmartIdEnginePINVOKE.SegmentationResultVector_GetRange(swigCPtr, index, count);
            SegmentationResultVector ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SegmentationResultVector(cPtr, true);

            if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending)
            {
                throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public virtual void DocumentSegmented(SegmentationResultVector segmentation_results)
 {
     if (SwigDerivedClassHasMethod("DocumentSegmented", swigMethodTypes2))
     {
         csSmartIdEnginePINVOKE.ResultReporterInterface_DocumentSegmentedSwigExplicitResultReporterInterface(swigCPtr, SegmentationResultVector.getCPtr(segmentation_results));
     }
     else
     {
         csSmartIdEnginePINVOKE.ResultReporterInterface_DocumentSegmented(swigCPtr, SegmentationResultVector.getCPtr(segmentation_results));
     }
     if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending)
     {
         throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #8
0
 public override void DocumentSegmented(SegmentationResultVector segmentation_results)
 {
     Console.WriteLine("[Optional callback called]: Document segmented");
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SegmentationResultVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public RecognitionResult(StringFieldCollection string_fields, ImageFieldCollection image_fields, string document_type, MatchResultVector match_results, SegmentationResultVector segmentation_results, bool is_terminal) : this(csSmartIdEnginePINVOKE.new_RecognitionResult__SWIG_1(StringFieldCollection.getCPtr(string_fields), ImageFieldCollection.getCPtr(image_fields), document_type, MatchResultVector.getCPtr(match_results), SegmentationResultVector.getCPtr(segmentation_results), is_terminal), true)
 {
     if (csSmartIdEnginePINVOKE.SWIGPendingException.Pending)
     {
         throw csSmartIdEnginePINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public SegmentationResultVector GetSegmentationResults()
        {
            SegmentationResultVector ret = new SegmentationResultVector(csSmartIdEnginePINVOKE.RecognitionResult_GetSegmentationResults(swigCPtr), false);

            return(ret);
        }