void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); if (!(image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(image); if (!(faces.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("faces is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_faces = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(faces); storeResult.Value = wrapped_owner.detect(wrapped_image, wrapped_faces); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); storeResult.Value = wrapped_owner.getScoreThreshold(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); wrapped_owner.setInputSize(new OpenCVForUnity.CoreModule.Size((double)input_size_width.Value, (double)input_size_height.Value)); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); wrapped_owner.setTopK(top_k.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Size)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Size(); } ((OpenCVForUnityPlayMakerActions.Size)storeResult.Value).wrappedObject = wrapped_owner.getInputSize(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); if (!(input_size.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("input_size is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_input_size = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(input_size); wrapped_owner.setInputSize(wrapped_input_size); }
public FaceDetectorYN(OpenCVForUnity.ObjdetectModule.FaceDetectorYN nativeObj) : base(nativeObj) { }