Exemplo n.º 1
0
 public PDetection(PDetection other) : this(PapillonPINVOKE.new_PDetection__SWIG_3(PDetection.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public void Add(PDetection d)
 {
     PapillonPINVOKE.PExampleSet_Add__SWIG_0(swigCPtr, PDetection.getCPtr(d));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
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);
    }
Exemplo n.º 4
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);
    }
Exemplo n.º 5
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);
    }
Exemplo n.º 6
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);
    }
Exemplo n.º 7
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);
    }
Exemplo n.º 8
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);
    }
Exemplo n.º 9
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);
    }
Exemplo n.º 10
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);
    }
Exemplo n.º 11
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);
    }
Exemplo n.º 12
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);
    }
Exemplo n.º 13
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);
    }
Exemplo n.º 14
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);
    }
Exemplo n.º 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);
    }
Exemplo n.º 16
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PDetection obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 17
0
    public PDetection Get(int n)
    {
        PDetection ret = new PDetection(PapillonPINVOKE.PExampleSet_Get(swigCPtr, n), false);

        return(ret);
    }
Exemplo n.º 18
0
    public PDetection GetLargest()
    {
        PDetection ret = new PDetection(PapillonPINVOKE.PDetectionList_GetLargest(swigCPtr), true);

        return(ret);
    }
Exemplo n.º 19
0
    public PDetection Get(int n)
    {
        PDetection ret = new PDetection(PapillonPINVOKE.PDetectionList_Get(swigCPtr, n), true);

        return(ret);
    }
Exemplo n.º 20
0
    public static PDetection Bad()
    {
        PDetection ret = new PDetection(PapillonPINVOKE.PDetection_Bad(), false);

        return(ret);
    }