void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.OCRBeamSearchDecoder)) { LogError("owner is not initialized. Add Action \"newOCRBeamSearchDecoder\"."); return; } OpenCVForUnity.TextModule.OCRBeamSearchDecoder wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.OCRBeamSearchDecoder, OpenCVForUnity.TextModule.OCRBeamSearchDecoder>(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 (!(mask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("mask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_mask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(mask); storeResult.Value = wrapped_owner.run(wrapped_image, wrapped_mask, min_confidence.Value, component_level.Value); }
// // C++: static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(Ptr_OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500) // // Unknown type 'Ptr_OCRBeamSearchDecoder_ClassifierCallback' (I), skipping the function // // C++: static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(String filename, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500) // /** * Creates an instance of the OCRBeamSearchDecoder class. Initializes HMMDecoder from the specified path. * * * param filename automatically generated * param vocabulary automatically generated * param transition_probabilities_table automatically generated * param emission_probabilities_table automatically generated * param mode automatically generated * param beam_size automatically generated * return automatically generated */ public static OCRBeamSearchDecoder create(string filename, string vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode, int beam_size) { if (transition_probabilities_table != null) { transition_probabilities_table.ThrowIfDisposed(); } if (emission_probabilities_table != null) { emission_probabilities_table.ThrowIfDisposed(); } return(OCRBeamSearchDecoder.__fromPtr__(text_OCRBeamSearchDecoder_create_10(filename, vocabulary, transition_probabilities_table.nativeObj, emission_probabilities_table.nativeObj, mode, beam_size))); }
//javadoc: OCRBeamSearchDecoder::create(filename, vocabulary, transition_probabilities_table, emission_probabilities_table, mode) public static OCRBeamSearchDecoder create(string filename, string vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode) { if (transition_probabilities_table != null) { transition_probabilities_table.ThrowIfDisposed(); } if (emission_probabilities_table != null) { emission_probabilities_table.ThrowIfDisposed(); } #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER OCRBeamSearchDecoder retVal = OCRBeamSearchDecoder.__fromPtr__(text_OCRBeamSearchDecoder_create_11(filename, vocabulary, transition_probabilities_table.nativeObj, emission_probabilities_table.nativeObj, mode)); return(retVal); #else return(null); #endif }
public OCRBeamSearchDecoder(OpenCVForUnity.TextModule.OCRBeamSearchDecoder nativeObj) : base(nativeObj) { }