Exemplo n.º 1
0
 public PFrame(PFrame other) : this(PapillonPINVOKE.new_PFrame__SWIG_4(PFrame.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public void SetFrame(PFrame frame)
 {
     PapillonPINVOKE.PDetection_SetFrame(swigCPtr, PFrame.getCPtr(frame));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 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);
    }
Exemplo n.º 4
0
    public static PResult DisplayFeatureMap(PFrame frame, PFeatureMap featureMap, string windowTitle)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayFeatureMap__SWIG_4(PFrame.getCPtr(frame), PFeatureMap.getCPtr(featureMap), windowTitle), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 5
0
    public PResult Apply(PFrame frame, PList events)
    {
        PResult ret = new PResult(PapillonPINVOKE.PAnalytics_Apply(swigCPtr, PFrame.getCPtr(frame), PList.getCPtr(events)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 6
0
    public static PResult DisplayFeatureMap(PFrame frame, PFeatureMap featureMap, string windowTitle, float scaleFactor, PColour3i colour, bool boundingBoxOnly)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayFeatureMap__SWIG_1(PFrame.getCPtr(frame), PFeatureMap.getCPtr(featureMap), windowTitle, scaleFactor, PColour3i.getCPtr(colour), boundingBoxOnly), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 7
0
    public PResult PutFrame(PFrame frame)
    {
        PResult ret = new PResult(PapillonPINVOKE.POutputVideoStream_PutFrame__SWIG_1(swigCPtr, PFrame.getCPtr(frame)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 8
0
    public PResult Apply(PFrame frame)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImageFilter_Apply__SWIG_1(swigCPtr, PFrame.getCPtr(frame)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 9
0
    public PResult GetFrame(PFrame frame, int timeOutMs)
    {
        PResult ret = new PResult(PapillonPINVOKE.PInputVideoStream_GetFrame__SWIG_0(swigCPtr, PFrame.getCPtr(frame), timeOutMs), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 10
0
 public PDetection(PGuid objectId, PGuid detectorId, PFrame frame, PObjectType objectType, PTrack track, PFeatureMap featureMap, float confidence) : this(PapillonPINVOKE.new_PDetection__SWIG_2(PGuid.getCPtr(objectId), PGuid.getCPtr(detectorId), PFrame.getCPtr(frame), PObjectType.getCPtr(objectType), PTrack.getCPtr(track), PFeatureMap.getCPtr(featureMap), confidence), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 11
0
 public PDetection(PObjectType objectType, PGuid detectorId, PFrame frame, PFeatureMap featureMap, float reliability) : this(PapillonPINVOKE.new_PDetection__SWIG_1(PObjectType.getCPtr(objectType), PGuid.getCPtr(detectorId), PFrame.getCPtr(frame), PFeatureMap.getCPtr(featureMap), reliability), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 12
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);
    }
Exemplo n.º 13
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);
    }
Exemplo n.º 14
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);
    }
Exemplo n.º 15
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);
    }