void DoProcess() { if (!(classifier.Value is OpenCVForUnityPlayMakerActions.OCRBeamSearchDecoder_ClassifierCallback)) { LogError("classifier is not initialized. Add Action \"newOCRBeamSearchDecoder_ClassifierCallback\"."); return; } OpenCVForUnity.TextModule.OCRBeamSearchDecoder_ClassifierCallback wrapped_classifier = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.OCRBeamSearchDecoder_ClassifierCallback, OpenCVForUnity.TextModule.OCRBeamSearchDecoder_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.OCRBeamSearchDecoder)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.OCRBeamSearchDecoder(); } ((OpenCVForUnityPlayMakerActions.OCRBeamSearchDecoder)storeResult.Value).wrappedObject = OpenCVForUnity.TextModule.OCRBeamSearchDecoder.create(wrapped_classifier, vocabulary.Value, wrapped_transition_probabilities_table, wrapped_emission_probabilities_table, mode.Value, beam_size.Value); }
public OCRBeamSearchDecoder_ClassifierCallback(OpenCVForUnity.TextModule.OCRBeamSearchDecoder_ClassifierCallback nativeObj) : base(nativeObj) { }