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