Example #1
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PColour3i backgroundColour, PColour3i fontColour, PUtils.ELabelPosition position)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_11(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(backgroundColour), PColour3i.getCPtr(fontColour), (int)position), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #2
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 #3
0
    public static PResult DrawRectangle(PImage image, PRectanglei rectangle, string message, PUtils.ELabelPosition position)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawRectangle__SWIG_6(PImage.getCPtr(image), PRectanglei.getCPtr(rectangle), message, (int)position), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #4
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 #5
0
    public static PResult DrawRectangle(PImage image, PRectanglei rectangle, string message, PUtils.ELabelPosition position, double fontSize, int lineWidth, PColour3i rectangleColour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawRectangle__SWIG_3(PImage.getCPtr(image), PRectanglei.getCPtr(rectangle), message, (int)position, fontSize, lineWidth, PColour3i.getCPtr(rectangleColour)), true);

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