QRCodeDetectorAruco_Params.cs 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. using OpenCVForUnity.CoreModule;
  2. using OpenCVForUnity.UtilsModule;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Runtime.InteropServices;
  6. namespace OpenCVForUnity.ObjdetectModule
  7. {
  8. // C++: class Params
  9. public class QRCodeDetectorAruco_Params : DisposableOpenCVObject
  10. {
  11. protected override void Dispose(bool disposing)
  12. {
  13. try
  14. {
  15. if (disposing)
  16. {
  17. }
  18. if (IsEnabledDispose)
  19. {
  20. if (nativeObj != IntPtr.Zero)
  21. objdetect_QRCodeDetectorAruco_1Params_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. }
  25. finally
  26. {
  27. base.Dispose(disposing);
  28. }
  29. }
  30. protected internal QRCodeDetectorAruco_Params(IntPtr addr) : base(addr) { }
  31. public IntPtr getNativeObjAddr() { return nativeObj; }
  32. // internal usage only
  33. public static QRCodeDetectorAruco_Params __fromPtr__(IntPtr addr) { return new QRCodeDetectorAruco_Params(addr); }
  34. //
  35. // C++: cv::QRCodeDetectorAruco::Params::Params()
  36. //
  37. public QRCodeDetectorAruco_Params()
  38. {
  39. nativeObj = DisposableObject.ThrowIfNullIntPtr(objdetect_QRCodeDetectorAruco_1Params_QRCodeDetectorAruco_1Params_10());
  40. }
  41. //
  42. // C++: float QRCodeDetectorAruco_Params::minModuleSizeInPyramid
  43. //
  44. public float get_minModuleSizeInPyramid()
  45. {
  46. ThrowIfDisposed();
  47. return objdetect_QRCodeDetectorAruco_1Params_get_1minModuleSizeInPyramid_10(nativeObj);
  48. }
  49. //
  50. // C++: void QRCodeDetectorAruco_Params::minModuleSizeInPyramid
  51. //
  52. public void set_minModuleSizeInPyramid(float minModuleSizeInPyramid)
  53. {
  54. ThrowIfDisposed();
  55. objdetect_QRCodeDetectorAruco_1Params_set_1minModuleSizeInPyramid_10(nativeObj, minModuleSizeInPyramid);
  56. }
  57. //
  58. // C++: float QRCodeDetectorAruco_Params::maxRotation
  59. //
  60. public float get_maxRotation()
  61. {
  62. ThrowIfDisposed();
  63. return objdetect_QRCodeDetectorAruco_1Params_get_1maxRotation_10(nativeObj);
  64. }
  65. //
  66. // C++: void QRCodeDetectorAruco_Params::maxRotation
  67. //
  68. public void set_maxRotation(float maxRotation)
  69. {
  70. ThrowIfDisposed();
  71. objdetect_QRCodeDetectorAruco_1Params_set_1maxRotation_10(nativeObj, maxRotation);
  72. }
  73. //
  74. // C++: float QRCodeDetectorAruco_Params::maxModuleSizeMismatch
  75. //
  76. public float get_maxModuleSizeMismatch()
  77. {
  78. ThrowIfDisposed();
  79. return objdetect_QRCodeDetectorAruco_1Params_get_1maxModuleSizeMismatch_10(nativeObj);
  80. }
  81. //
  82. // C++: void QRCodeDetectorAruco_Params::maxModuleSizeMismatch
  83. //
  84. public void set_maxModuleSizeMismatch(float maxModuleSizeMismatch)
  85. {
  86. ThrowIfDisposed();
  87. objdetect_QRCodeDetectorAruco_1Params_set_1maxModuleSizeMismatch_10(nativeObj, maxModuleSizeMismatch);
  88. }
  89. //
  90. // C++: float QRCodeDetectorAruco_Params::maxTimingPatternMismatch
  91. //
  92. public float get_maxTimingPatternMismatch()
  93. {
  94. ThrowIfDisposed();
  95. return objdetect_QRCodeDetectorAruco_1Params_get_1maxTimingPatternMismatch_10(nativeObj);
  96. }
  97. //
  98. // C++: void QRCodeDetectorAruco_Params::maxTimingPatternMismatch
  99. //
  100. public void set_maxTimingPatternMismatch(float maxTimingPatternMismatch)
  101. {
  102. ThrowIfDisposed();
  103. objdetect_QRCodeDetectorAruco_1Params_set_1maxTimingPatternMismatch_10(nativeObj, maxTimingPatternMismatch);
  104. }
  105. //
  106. // C++: float QRCodeDetectorAruco_Params::maxPenalties
  107. //
  108. public float get_maxPenalties()
  109. {
  110. ThrowIfDisposed();
  111. return objdetect_QRCodeDetectorAruco_1Params_get_1maxPenalties_10(nativeObj);
  112. }
  113. //
  114. // C++: void QRCodeDetectorAruco_Params::maxPenalties
  115. //
  116. public void set_maxPenalties(float maxPenalties)
  117. {
  118. ThrowIfDisposed();
  119. objdetect_QRCodeDetectorAruco_1Params_set_1maxPenalties_10(nativeObj, maxPenalties);
  120. }
  121. //
  122. // C++: float QRCodeDetectorAruco_Params::maxColorsMismatch
  123. //
  124. public float get_maxColorsMismatch()
  125. {
  126. ThrowIfDisposed();
  127. return objdetect_QRCodeDetectorAruco_1Params_get_1maxColorsMismatch_10(nativeObj);
  128. }
  129. //
  130. // C++: void QRCodeDetectorAruco_Params::maxColorsMismatch
  131. //
  132. public void set_maxColorsMismatch(float maxColorsMismatch)
  133. {
  134. ThrowIfDisposed();
  135. objdetect_QRCodeDetectorAruco_1Params_set_1maxColorsMismatch_10(nativeObj, maxColorsMismatch);
  136. }
  137. //
  138. // C++: float QRCodeDetectorAruco_Params::scaleTimingPatternScore
  139. //
  140. public float get_scaleTimingPatternScore()
  141. {
  142. ThrowIfDisposed();
  143. return objdetect_QRCodeDetectorAruco_1Params_get_1scaleTimingPatternScore_10(nativeObj);
  144. }
  145. //
  146. // C++: void QRCodeDetectorAruco_Params::scaleTimingPatternScore
  147. //
  148. public void set_scaleTimingPatternScore(float scaleTimingPatternScore)
  149. {
  150. ThrowIfDisposed();
  151. objdetect_QRCodeDetectorAruco_1Params_set_1scaleTimingPatternScore_10(nativeObj, scaleTimingPatternScore);
  152. }
  153. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  154. const string LIBNAME = "__Internal";
  155. #else
  156. const string LIBNAME = "opencvforunity";
  157. #endif
  158. // C++: cv::QRCodeDetectorAruco::Params::Params()
  159. [DllImport(LIBNAME)]
  160. private static extern IntPtr objdetect_QRCodeDetectorAruco_1Params_QRCodeDetectorAruco_1Params_10();
  161. // C++: float QRCodeDetectorAruco_Params::minModuleSizeInPyramid
  162. [DllImport(LIBNAME)]
  163. private static extern float objdetect_QRCodeDetectorAruco_1Params_get_1minModuleSizeInPyramid_10(IntPtr nativeObj);
  164. // C++: void QRCodeDetectorAruco_Params::minModuleSizeInPyramid
  165. [DllImport(LIBNAME)]
  166. private static extern void objdetect_QRCodeDetectorAruco_1Params_set_1minModuleSizeInPyramid_10(IntPtr nativeObj, float minModuleSizeInPyramid);
  167. // C++: float QRCodeDetectorAruco_Params::maxRotation
  168. [DllImport(LIBNAME)]
  169. private static extern float objdetect_QRCodeDetectorAruco_1Params_get_1maxRotation_10(IntPtr nativeObj);
  170. // C++: void QRCodeDetectorAruco_Params::maxRotation
  171. [DllImport(LIBNAME)]
  172. private static extern void objdetect_QRCodeDetectorAruco_1Params_set_1maxRotation_10(IntPtr nativeObj, float maxRotation);
  173. // C++: float QRCodeDetectorAruco_Params::maxModuleSizeMismatch
  174. [DllImport(LIBNAME)]
  175. private static extern float objdetect_QRCodeDetectorAruco_1Params_get_1maxModuleSizeMismatch_10(IntPtr nativeObj);
  176. // C++: void QRCodeDetectorAruco_Params::maxModuleSizeMismatch
  177. [DllImport(LIBNAME)]
  178. private static extern void objdetect_QRCodeDetectorAruco_1Params_set_1maxModuleSizeMismatch_10(IntPtr nativeObj, float maxModuleSizeMismatch);
  179. // C++: float QRCodeDetectorAruco_Params::maxTimingPatternMismatch
  180. [DllImport(LIBNAME)]
  181. private static extern float objdetect_QRCodeDetectorAruco_1Params_get_1maxTimingPatternMismatch_10(IntPtr nativeObj);
  182. // C++: void QRCodeDetectorAruco_Params::maxTimingPatternMismatch
  183. [DllImport(LIBNAME)]
  184. private static extern void objdetect_QRCodeDetectorAruco_1Params_set_1maxTimingPatternMismatch_10(IntPtr nativeObj, float maxTimingPatternMismatch);
  185. // C++: float QRCodeDetectorAruco_Params::maxPenalties
  186. [DllImport(LIBNAME)]
  187. private static extern float objdetect_QRCodeDetectorAruco_1Params_get_1maxPenalties_10(IntPtr nativeObj);
  188. // C++: void QRCodeDetectorAruco_Params::maxPenalties
  189. [DllImport(LIBNAME)]
  190. private static extern void objdetect_QRCodeDetectorAruco_1Params_set_1maxPenalties_10(IntPtr nativeObj, float maxPenalties);
  191. // C++: float QRCodeDetectorAruco_Params::maxColorsMismatch
  192. [DllImport(LIBNAME)]
  193. private static extern float objdetect_QRCodeDetectorAruco_1Params_get_1maxColorsMismatch_10(IntPtr nativeObj);
  194. // C++: void QRCodeDetectorAruco_Params::maxColorsMismatch
  195. [DllImport(LIBNAME)]
  196. private static extern void objdetect_QRCodeDetectorAruco_1Params_set_1maxColorsMismatch_10(IntPtr nativeObj, float maxColorsMismatch);
  197. // C++: float QRCodeDetectorAruco_Params::scaleTimingPatternScore
  198. [DllImport(LIBNAME)]
  199. private static extern float objdetect_QRCodeDetectorAruco_1Params_get_1scaleTimingPatternScore_10(IntPtr nativeObj);
  200. // C++: void QRCodeDetectorAruco_Params::scaleTimingPatternScore
  201. [DllImport(LIBNAME)]
  202. private static extern void objdetect_QRCodeDetectorAruco_1Params_set_1scaleTimingPatternScore_10(IntPtr nativeObj, float scaleTimingPatternScore);
  203. // native support for java finalize()
  204. [DllImport(LIBNAME)]
  205. private static extern void objdetect_QRCodeDetectorAruco_1Params_delete(IntPtr nativeObj);
  206. }
  207. }