TextDetector.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/textDetector.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. @class FloatVector;
  14. @class Mat;
  15. @class Rect2i;
  16. NS_ASSUME_NONNULL_BEGIN
  17. // C++: class TextDetector
  18. /**
  19. * An abstract class providing interface for text detection algorithms
  20. *
  21. * Member of `Text`
  22. */
  23. CV_EXPORTS @interface TextDetector : NSObject
  24. #ifdef __cplusplus
  25. @property(readonly)cv::Ptr<cv::text::TextDetector> nativePtr;
  26. #endif
  27. #ifdef __cplusplus
  28. - (instancetype)initWithNativePtr:(cv::Ptr<cv::text::TextDetector>)nativePtr;
  29. + (instancetype)fromNative:(cv::Ptr<cv::text::TextDetector>)nativePtr;
  30. #endif
  31. #pragma mark - Methods
  32. //
  33. // void cv::text::TextDetector::detect(Mat inputImage, vector_Rect& Bbox, vector_float& confidence)
  34. //
  35. /**
  36. * Method that provides a quick and simple interface to detect text inside an image
  37. *
  38. * @param inputImage an image to process
  39. * @param Bbox a vector of Rect that will store the detected word bounding box
  40. * @param confidence a vector of float that will be updated with the confidence the classifier has for the selected bounding box
  41. */
  42. - (void)detect:(Mat*)inputImage Bbox:(NSMutableArray<Rect2i*>*)Bbox confidence:(FloatVector*)confidence NS_SWIFT_NAME(detect(inputImage:Bbox:confidence:));
  43. @end
  44. NS_ASSUME_NONNULL_END