Пример #1
0
 public void Add(PDetectionList d)
 {
     PapillonPINVOKE.PExampleSet_Add__SWIG_1(swigCPtr, PDetectionList.getCPtr(d));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
    public PResult DescribeBatch(PDetectionList batchDetections, SWIGTYPE_p_papillon__PDescriptionList batchDescription)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDescriber_DescribeBatch(swigCPtr, PDetectionList.getCPtr(batchDetections), SWIGTYPE_p_papillon__PDescriptionList.getCPtr(batchDescription)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #3
0
    public PResult Detect(PFrame frame, PDetectionList detectionList)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDetector_Detect(swigCPtr, PFrame.getCPtr(frame), PDetectionList.getCPtr(detectionList)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #4
0
    public virtual PResult ApplyBatch(PDetectionList detectionList, SWIGTYPE_p_papillon__PDescriptionList outputDescription)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDescriberInterface_ApplyBatch(swigCPtr, PDetectionList.getCPtr(detectionList), SWIGTYPE_p_papillon__PDescriptionList.getCPtr(outputDescription)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #5
0
 public PDetectionList(PDetectionList other) : this(PapillonPINVOKE.new_PDetectionList__SWIG_2(PDetectionList.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
0
    public static PResult DisplayFirstFaceDetection(PFrame frame, PDetectionList detectionList, string windowTitle)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayFirstFaceDetection__SWIG_3(PFrame.getCPtr(frame), PDetectionList.getCPtr(detectionList), windowTitle), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #7
0
    public static PResult BlurDetectionList(PImage image, PDetectionList detectionList, PColour3i color, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_BlurDetectionList(PImage.getCPtr(image), PDetectionList.getCPtr(detectionList), PColour3i.getCPtr(color), lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #8
0
    public static PResult DisplayFirstFaceDetection(PFrame frame, PDetectionList detectionList, string windowTitle, PColour3i colour, bool boundingBoxOnly, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayFirstFaceDetection__SWIG_0(PFrame.getCPtr(frame), PDetectionList.getCPtr(detectionList), windowTitle, PColour3i.getCPtr(colour), boundingBoxOnly, lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #9
0
    public static PResult DisplayDetectionList(PFrame frame, PDetectionList detectionList, string windowTitle, float scaleFactor)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetectionList__SWIG_5(PFrame.getCPtr(frame), PDetectionList.getCPtr(detectionList), windowTitle, scaleFactor), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #10
0
    public static PResult DisplayDetectionList(PFrame frame, PDetectionList detectionList, string windowTitle, float scaleFactor, PColour3i colour, bool drawId, bool boundingBoxOnly)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetectionList__SWIG_2(PFrame.getCPtr(frame), PDetectionList.getCPtr(detectionList), windowTitle, scaleFactor, PColour3i.getCPtr(colour), drawId, boundingBoxOnly), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #11
0
    public static PResult DrawDetectionList(PImage image, PDetectionList detectionList)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawDetectionList__SWIG_4(PImage.getCPtr(image), PDetectionList.getCPtr(detectionList)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #12
0
    public static PResult DrawDetectionList(PImage image, PDetectionList detectionList, PColour3i colour, bool drawId)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawDetectionList__SWIG_2(PImage.getCPtr(image), PDetectionList.getCPtr(detectionList), PColour3i.getCPtr(colour), drawId), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }