Example #1
0
 public void Add(PDetection d)
 {
     PapillonPINVOKE.PExampleSet_Add__SWIG_0(swigCPtr, PDetection.getCPtr(d));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
    public static PResult CropDetection(PDetection detection, PImage croppedImage)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_CropDetection__SWIG_1(PDetection.getCPtr(detection), PImage.getCPtr(croppedImage)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #3
0
    public static PResult DisplayDetection(PDetection detection, string windowTitle, float scaleFactor, PColour3i colour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetection__SWIG_3(PDetection.getCPtr(detection), windowTitle, scaleFactor, PColour3i.getCPtr(colour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #4
0
    public static PResult DisplayDetection(PDetection detection, string windowTitle)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetection__SWIG_5(PDetection.getCPtr(detection), windowTitle), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #5
0
    public static PResult DisplayDetection(PDetection detection, string windowTitle, float scaleFactor, PColour3i colour, bool drawId, bool boundingBoxOnly, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetection__SWIG_0(PDetection.getCPtr(detection), windowTitle, scaleFactor, PColour3i.getCPtr(colour), drawId, boundingBoxOnly, lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #6
0
    public PResult Describe(PDetection detection, PDescription description)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDescriber_Describe__SWIG_2(swigCPtr, PDetection.getCPtr(detection), PDescription.getCPtr(description)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #7
0
    public PResult Describe(PDetection example, string name, PGuid identityId, PDescription description)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDescriber_Describe__SWIG_1(swigCPtr, PDetection.getCPtr(example), name, PGuid.getCPtr(identityId), PDescription.getCPtr(description)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #8
0
 public PDetection(PDetection other) : this(PapillonPINVOKE.new_PDetection__SWIG_3(PDetection.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #9
0
    public static PResult BlurDetection(PImage image, PDetection detection, PColour3i color, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_BlurDetection(PImage.getCPtr(image), PDetection.getCPtr(detection), PColour3i.getCPtr(color), lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #10
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PColour3i backgroundColour, PColour3i fontColour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_12(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(backgroundColour), PColour3i.getCPtr(fontColour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #11
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PColour3i backgroundColour, PColour3i fontColour, PUtils.ELabelPosition position, double fontSize, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_9(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(backgroundColour), PColour3i.getCPtr(fontColour), (int)position, fontSize, lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #12
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_6(PImage.getCPtr(image), PDetection.getCPtr(detection), message), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #13
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PUtils.ELabelPosition position, PUtils.ELabelColourScheme colourScheme)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_4(PImage.getCPtr(image), PDetection.getCPtr(detection), message, (int)position, (int)colourScheme), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #14
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PUtils.ELabelPosition position, PUtils.ELabelColourScheme colourScheme, double fontSize, int lineWidth, PColour3i boundingBoxColour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_1(PImage.getCPtr(image), PDetection.getCPtr(detection), message, (int)position, (int)colourScheme, fontSize, lineWidth, PColour3i.getCPtr(boundingBoxColour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #15
0
    public static PResult DrawDetection(PImage image, PDetection detection, string message, PColour3i colour, bool boundingBoxOnly)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawDetection__SWIG_6(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(colour), boundingBoxOnly), true);

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