OCRHMMDecoderClassifierCallback.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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/text.hpp"
  8. #import "opencv2/text/ocr.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class ClassifierCallback
  15. /**
  16. * Callback with the character classifier is made a class.
  17. *
  18. * This way it hides the feature extractor and the classifier itself, so developers can write
  19. * their own OCR code.
  20. *
  21. * The default character classifier and feature extractor can be loaded using the utility function
  22. * loadOCRHMMClassifierNM and KNN model provided in
  23. * <https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/OCRHMM_knn_model_data.xml.gz>.
  24. *
  25. * Member of `Text`
  26. */
  27. CV_EXPORTS @interface OCRHMMDecoderClassifierCallback : NSObject
  28. #ifdef __cplusplus
  29. @property(readonly)cv::Ptr<cv::text::OCRHMMDecoder::ClassifierCallback> nativePtr;
  30. #endif
  31. #ifdef __cplusplus
  32. - (instancetype)initWithNativePtr:(cv::Ptr<cv::text::OCRHMMDecoder::ClassifierCallback>)nativePtr;
  33. + (instancetype)fromNative:(cv::Ptr<cv::text::OCRHMMDecoder::ClassifierCallback>)nativePtr;
  34. #endif
  35. #pragma mark - Methods
  36. @end
  37. NS_ASSUME_NONNULL_END