void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.legacy_MultiTracker)) { LogError("owner is not initialized. Add Action \"newlegacy_MultiTracker\"."); return; } OpenCVForUnity.TrackingModule.legacy_MultiTracker wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.legacy_MultiTracker, OpenCVForUnity.TrackingModule.legacy_MultiTracker>(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 (!(boundingBox.Value is OpenCVForUnityPlayMakerActions.MatOfRect2d)) { LogError("boundingBox is not initialized. Add Action \"newMatOfRect2d\"."); return; } OpenCVForUnity.CoreModule.MatOfRect2d wrapped_boundingBox = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect2d, OpenCVForUnity.CoreModule.MatOfRect2d>(boundingBox); storeResult.Value = wrapped_owner.update(wrapped_image, wrapped_boundingBox); Fsm.Event(storeResult.Value ? trueEvent : falseEvent); }
void DoProcess() { if (!(bboxes.Value is OpenCVForUnityPlayMakerActions.MatOfRect2d)) { LogError("bboxes is not initialized. Add Action \"newMatOfRect2d\"."); return; } OpenCVForUnity.CoreModule.MatOfRect2d wrapped_bboxes = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect2d, OpenCVForUnity.CoreModule.MatOfRect2d>(bboxes); if (!(scores.Value is OpenCVForUnityPlayMakerActions.MatOfFloat)) { LogError("scores is not initialized. Add Action \"newMatOfFloat\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat wrapped_scores = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat, OpenCVForUnity.CoreModule.MatOfFloat>(scores); if (!(indices.Value is OpenCVForUnityPlayMakerActions.MatOfInt)) { LogError("indices is not initialized. Add Action \"newMatOfInt\"."); return; } OpenCVForUnity.CoreModule.MatOfInt wrapped_indices = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfInt, OpenCVForUnity.CoreModule.MatOfInt>(indices); OpenCVForUnity.DnnModule.Dnn.NMSBoxes(wrapped_bboxes, wrapped_scores, score_threshold.Value, nms_threshold.Value, wrapped_indices, eta.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfRect2d)) { LogError("owner is not initialized. Add Action \"newMatOfRect2d\"."); return; } OpenCVForUnity.CoreModule.MatOfRect2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect2d, OpenCVForUnity.CoreModule.MatOfRect2d>(owner); wrapped_owner.alloc(elemNumber.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfRect2d)) { LogError("owner is not initialized. Add Action \"newMatOfRect2d\"."); return; } OpenCVForUnity.CoreModule.MatOfRect2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect2d, OpenCVForUnity.CoreModule.MatOfRect2d>(owner); OpenCVForUnity.CoreModule.Rect2d[] wrapped_a = new OpenCVForUnity.CoreModule.Rect2d[a.Length]; OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToArray <OpenCVForUnityPlayMakerActions.Rect2d, OpenCVForUnity.CoreModule.Rect2d>(a, wrapped_a); wrapped_owner.fromArray(wrapped_a); OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.Rect2d, OpenCVForUnityPlayMakerActions.Rect2d>(wrapped_a, a); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfRect2d)) { LogError("owner is not initialized. Add Action \"newMatOfRect2d\"."); return; } OpenCVForUnity.CoreModule.MatOfRect2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect2d, OpenCVForUnity.CoreModule.MatOfRect2d>(owner); List <OpenCVForUnity.CoreModule.Rect2d> wrapped_storeResult = wrapped_owner.toList(); if (!storeResult.IsNone) { OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Rect2d, OpenCVForUnityPlayMakerActions.Rect2d>(wrapped_storeResult, storeResult); } }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfRect2d)) { LogError("owner is not initialized. Add Action \"newMatOfRect2d\"."); return; } OpenCVForUnity.CoreModule.MatOfRect2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect2d, OpenCVForUnity.CoreModule.MatOfRect2d>(owner); List <OpenCVForUnity.CoreModule.Rect2d> wrapped_lr = new List <OpenCVForUnity.CoreModule.Rect2d>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Rect2d, OpenCVForUnity.CoreModule.Rect2d>(lr, wrapped_lr); wrapped_owner.fromList(wrapped_lr); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Rect2d, OpenCVForUnityPlayMakerActions.Rect2d>(wrapped_lr, lr); }
public MatOfRect2d(OpenCVForUnity.CoreModule.MatOfRect2d nativeObj) : base(nativeObj) { }