FacemarkTrain.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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/facemark_train.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "Facemark.h"
  14. NS_ASSUME_NONNULL_BEGIN
  15. // C++: class FacemarkTrain
  16. /**
  17. * Abstract base class for trainable facemark models
  18. *
  19. * To utilize this API in your program, please take a look at the REF: tutorial_table_of_content_facemark
  20. * ### Description
  21. *
  22. * The AAM and LBF facemark models in OpenCV are derived from the abstract base class FacemarkTrain, which
  23. * provides a unified access to those facemark algorithms in OpenCV.
  24. *
  25. * Here is an example on how to declare facemark algorithm:
  26. *
  27. * // Using Facemark in your code:
  28. * Ptr<Facemark> facemark = FacemarkLBF::create();
  29. *
  30. *
  31. *
  32. * The typical pipeline for facemark detection is listed as follows:
  33. * - (Non-mandatory) Set a user defined face detection using FacemarkTrain::setFaceDetector.
  34. * The facemark algorithms are designed to fit the facial points into a face.
  35. * Therefore, the face information should be provided to the facemark algorithm.
  36. * Some algorithms might provides a default face recognition function.
  37. * However, the users might prefer to use their own face detector to obtains the best possible detection result.
  38. * - (Non-mandatory) Training the model for a specific algorithm using FacemarkTrain::training.
  39. * In this case, the model should be automatically saved by the algorithm.
  40. * If the user already have a trained model, then this part can be omitted.
  41. * - Load the trained model using Facemark::loadModel.
  42. * - Perform the fitting via the Facemark::fit.
  43. *
  44. * Member of `Face`
  45. */
  46. CV_EXPORTS @interface FacemarkTrain : Facemark
  47. #ifdef __cplusplus
  48. @property(readonly)cv::Ptr<cv::face::FacemarkTrain> nativePtrFacemarkTrain;
  49. #endif
  50. #ifdef __cplusplus
  51. - (instancetype)initWithNativePtr:(cv::Ptr<cv::face::FacemarkTrain>)nativePtr;
  52. + (instancetype)fromNative:(cv::Ptr<cv::face::FacemarkTrain>)nativePtr;
  53. #endif
  54. #pragma mark - Methods
  55. @end
  56. NS_ASSUME_NONNULL_END