void DoProcess() { if (!(classifier.Value is OpenCVForUnityPlayMakerActions.OCRHMMDecoder_ClassifierCallback)) { LogError("classifier is not initialized. Add Action \"newOCRHMMDecoder_ClassifierCallback\"."); return; } OpenCVForUnity.TextModule.OCRHMMDecoder_ClassifierCallback wrapped_classifier = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.OCRHMMDecoder_ClassifierCallback, OpenCVForUnity.TextModule.OCRHMMDecoder_ClassifierCallback>(classifier); if (!(transition_probabilities_table.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("transition_probabilities_table is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_transition_probabilities_table = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(transition_probabilities_table); if (!(emission_probabilities_table.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("emission_probabilities_table is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_emission_probabilities_table = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(emission_probabilities_table); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.OCRHMMDecoder)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.OCRHMMDecoder(); } ((OpenCVForUnityPlayMakerActions.OCRHMMDecoder)storeResult.Value).wrappedObject = OpenCVForUnity.TextModule.OCRHMMDecoder.create(wrapped_classifier, vocabulary.Value, wrapped_transition_probabilities_table, wrapped_emission_probabilities_table, mode.Value); }
public OCRHMMDecoder_ClassifierCallback(OpenCVForUnity.TextModule.OCRHMMDecoder_ClassifierCallback nativeObj) : base(nativeObj) { }