123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #if !UNITY_WSA_10_0
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.TextModule
- {
- // C++: class ClassifierCallback
- //javadoc: ClassifierCallback
- public class ClassifierCallback : DisposableOpenCVObject
- {
- protected override void Dispose (bool disposing)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- text_ClassifierCallback_delete (nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal ClassifierCallback (IntPtr addr)
- : base (addr)
- {
- }
- public IntPtr getNativeObjAddr ()
- {
- return nativeObj;
- }
- // internal usage only
- public static ClassifierCallback __fromPtr__ (IntPtr addr)
- {
- return new ClassifierCallback (addr);
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
-
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void text_ClassifierCallback_delete (IntPtr nativeObj);
- }
- }
- #endif
|