private void Run() { faceLandmarkDetector = new FaceLandmarkDetector(shape_predictor_68_face_landmarks_dat_filepath); webCamTextureToMatHelper = gameObject.GetComponent <OptimizationWebCamTextureToMatHelper> (); webCamTextureToMatHelper.Init(); }
private void Run() { cascade = new CascadeClassifier(haarcascade_frontalface_alt_xml_filepath); // if (cascade.empty ()) { // Debug.LogError ("cascade file is not loaded.Please copy from “FaceTrackerExample/StreamingAssets/” to “Assets/StreamingAssets/” folder. "); // } faceLandmarkDetector = new FaceLandmarkDetector(sp_human_face_68_dat_filepath); webCamTextureToMatHelper = gameObject.GetComponent <OptimizationWebCamTextureToMatHelper> (); webCamTextureToMatHelper.Initialize(); }