FisherFaceRecognizer.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/face.hpp"
  8. #import "opencv2/face/facerec.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "BasicFaceRecognizer.h"
  14. NS_ASSUME_NONNULL_BEGIN
  15. // C++: class FisherFaceRecognizer
  16. /**
  17. * The FisherFaceRecognizer module
  18. *
  19. * Member of `Face`
  20. */
  21. CV_EXPORTS @interface FisherFaceRecognizer : BasicFaceRecognizer
  22. #ifdef __cplusplus
  23. @property(readonly)cv::Ptr<cv::face::FisherFaceRecognizer> nativePtrFisherFaceRecognizer;
  24. #endif
  25. #ifdef __cplusplus
  26. - (instancetype)initWithNativePtr:(cv::Ptr<cv::face::FisherFaceRecognizer>)nativePtr;
  27. + (instancetype)fromNative:(cv::Ptr<cv::face::FisherFaceRecognizer>)nativePtr;
  28. #endif
  29. #pragma mark - Methods
  30. //
  31. // static Ptr_FisherFaceRecognizer cv::face::FisherFaceRecognizer::create(int num_components = 0, double threshold = DBL_MAX)
  32. //
  33. /**
  34. * @param num_components The number of components (read: Fisherfaces) kept for this Linear
  35. * Discriminant Analysis with the Fisherfaces criterion. It's useful to keep all components, that
  36. * means the number of your classes c (read: subjects, persons you want to recognize). If you leave
  37. * this at the default (0) or set it to a value less-equal 0 or greater (c-1), it will be set to the
  38. * correct number (c-1) automatically.
  39. * @param threshold The threshold applied in the prediction. If the distance to the nearest neighbor
  40. * is larger than the threshold, this method returns -1.
  41. *
  42. * ### Notes:
  43. *
  44. * - Training and prediction must be done on grayscale images, use cvtColor to convert between the
  45. * color spaces.
  46. * - **THE FISHERFACES METHOD MAKES THE ASSUMPTION, THAT THE TRAINING AND TEST IMAGES ARE OF EQUAL
  47. * SIZE.** (caps-lock, because I got so many mails asking for this). You have to make sure your
  48. * input data has the correct shape, else a meaningful exception is thrown. Use resize to resize
  49. * the images.
  50. * - This model does not support updating.
  51. *
  52. * ### Model internal data:
  53. *
  54. * - num_components see FisherFaceRecognizer::create.
  55. * - threshold see FisherFaceRecognizer::create.
  56. * - eigenvalues The eigenvalues for this Linear Discriminant Analysis (ordered descending).
  57. * - eigenvectors The eigenvectors for this Linear Discriminant Analysis (ordered by their
  58. * eigenvalue).
  59. * - mean The sample mean calculated from the training data.
  60. * - projections The projections of the training data.
  61. * - labels The labels corresponding to the projections.
  62. */
  63. + (FisherFaceRecognizer*)create:(int)num_components threshold:(double)threshold NS_SWIFT_NAME(create(num_components:threshold:));
  64. /**
  65. * @param num_components The number of components (read: Fisherfaces) kept for this Linear
  66. * Discriminant Analysis with the Fisherfaces criterion. It's useful to keep all components, that
  67. * means the number of your classes c (read: subjects, persons you want to recognize). If you leave
  68. * this at the default (0) or set it to a value less-equal 0 or greater (c-1), it will be set to the
  69. * correct number (c-1) automatically.
  70. * is larger than the threshold, this method returns -1.
  71. *
  72. * ### Notes:
  73. *
  74. * - Training and prediction must be done on grayscale images, use cvtColor to convert between the
  75. * color spaces.
  76. * - **THE FISHERFACES METHOD MAKES THE ASSUMPTION, THAT THE TRAINING AND TEST IMAGES ARE OF EQUAL
  77. * SIZE.** (caps-lock, because I got so many mails asking for this). You have to make sure your
  78. * input data has the correct shape, else a meaningful exception is thrown. Use resize to resize
  79. * the images.
  80. * - This model does not support updating.
  81. *
  82. * ### Model internal data:
  83. *
  84. * - num_components see FisherFaceRecognizer::create.
  85. * - threshold see FisherFaceRecognizer::create.
  86. * - eigenvalues The eigenvalues for this Linear Discriminant Analysis (ordered descending).
  87. * - eigenvectors The eigenvectors for this Linear Discriminant Analysis (ordered by their
  88. * eigenvalue).
  89. * - mean The sample mean calculated from the training data.
  90. * - projections The projections of the training data.
  91. * - labels The labels corresponding to the projections.
  92. */
  93. + (FisherFaceRecognizer*)create:(int)num_components NS_SWIFT_NAME(create(num_components:));
  94. /**
  95. * Discriminant Analysis with the Fisherfaces criterion. It's useful to keep all components, that
  96. * means the number of your classes c (read: subjects, persons you want to recognize). If you leave
  97. * this at the default (0) or set it to a value less-equal 0 or greater (c-1), it will be set to the
  98. * correct number (c-1) automatically.
  99. * is larger than the threshold, this method returns -1.
  100. *
  101. * ### Notes:
  102. *
  103. * - Training and prediction must be done on grayscale images, use cvtColor to convert between the
  104. * color spaces.
  105. * - **THE FISHERFACES METHOD MAKES THE ASSUMPTION, THAT THE TRAINING AND TEST IMAGES ARE OF EQUAL
  106. * SIZE.** (caps-lock, because I got so many mails asking for this). You have to make sure your
  107. * input data has the correct shape, else a meaningful exception is thrown. Use resize to resize
  108. * the images.
  109. * - This model does not support updating.
  110. *
  111. * ### Model internal data:
  112. *
  113. * - num_components see FisherFaceRecognizer::create.
  114. * - threshold see FisherFaceRecognizer::create.
  115. * - eigenvalues The eigenvalues for this Linear Discriminant Analysis (ordered descending).
  116. * - eigenvectors The eigenvectors for this Linear Discriminant Analysis (ordered by their
  117. * eigenvalue).
  118. * - mean The sample mean calculated from the training data.
  119. * - projections The projections of the training data.
  120. * - labels The labels corresponding to the projections.
  121. */
  122. + (FisherFaceRecognizer*)create NS_SWIFT_NAME(create());
  123. @end
  124. NS_ASSUME_NONNULL_END