Пример #1
0
        public bool DetectLandmarks(SWIGTYPE_p_cv__Mat_T_uchar_t image, SWIGTYPE_p_FaceModelParameters arg1)
        {
            bool ret = LandmarkDetectorPINVOKE.CLNF_DetectLandmarks(swigCPtr, SWIGTYPE_p_cv__Mat_T_uchar_t.getCPtr(image), SWIGTYPE_p_FaceModelParameters.getCPtr(arg1));

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public static System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_FaceModelParameters obj)
 {
     return(new System.Runtime.InteropServices.HandleRef(obj, obj.swigCPtr));
 }
Пример #3
0
    public static bool DetectLandmarksInImage(SWIGTYPE_p_cv__Mat_T_uchar_t grayscale_image, SWIGTYPE_p_cv__Rect_T_double_t bounding_box, SWIGTYPE_p_CLNF clnf_model, SWIGTYPE_p_FaceModelParameters arg3)
    {
        bool ret = LandmarkDetectorPINVOKE.DetectLandmarksInImage__SWIG_1(SWIGTYPE_p_cv__Mat_T_uchar_t.getCPtr(grayscale_image), SWIGTYPE_p_cv__Rect_T_double_t.getCPtr(bounding_box), SWIGTYPE_p_CLNF.getCPtr(clnf_model), SWIGTYPE_p_FaceModelParameters.getCPtr(arg3));

        if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
        {
            throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #4
0
    public static bool DetectLandmarksInVideo(SWIGTYPE_p_cv__Mat_T_uchar_t grayscale_image, SWIGTYPE_p_CLNF clnf_model, SWIGTYPE_p_FaceModelParameters arg2)
    {
        bool ret = LandmarkDetectorPINVOKE.DetectLandmarksInVideo__SWIG_0(SWIGTYPE_p_cv__Mat_T_uchar_t.getCPtr(grayscale_image), SWIGTYPE_p_CLNF.getCPtr(clnf_model), SWIGTYPE_p_FaceModelParameters.getCPtr(arg2));

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