TextDetectionModel_EAST.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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/dnn.hpp"
  8. #import "opencv2/dnn/dnn.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "TextDetectionModel.h"
  14. @class Net;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class TextDetectionModel_EAST
  17. /**
  18. * This class represents high-level API for text detection DL networks compatible with EAST model.
  19. *
  20. * Configurable parameters:
  21. * - (float) confThreshold - used to filter boxes by confidences, default: 0.5f
  22. * - (float) nmsThreshold - used in non maximum suppression, default: 0.0f
  23. *
  24. * Member of `Dnn`
  25. */
  26. CV_EXPORTS @interface TextDetectionModel_EAST : TextDetectionModel
  27. #ifdef __cplusplus
  28. @property(readonly)cv::Ptr<cv::dnn::TextDetectionModel_EAST> nativePtrTextDetectionModel_EAST;
  29. #endif
  30. #ifdef __cplusplus
  31. - (instancetype)initWithNativePtr:(cv::Ptr<cv::dnn::TextDetectionModel_EAST>)nativePtr;
  32. + (instancetype)fromNative:(cv::Ptr<cv::dnn::TextDetectionModel_EAST>)nativePtr;
  33. #endif
  34. #pragma mark - Methods
  35. //
  36. // cv::dnn::TextDetectionModel_EAST::TextDetectionModel_EAST(Net network)
  37. //
  38. /**
  39. * Create text detection algorithm from deep learning network
  40. * @param network Net object
  41. */
  42. - (instancetype)initWithNetwork:(Net*)network;
  43. //
  44. // cv::dnn::TextDetectionModel_EAST::TextDetectionModel_EAST(string model, string config = "")
  45. //
  46. /**
  47. * Create text detection model from network represented in one of the supported formats.
  48. * An order of @p model and @p config arguments does not matter.
  49. * @param model Binary file contains trained weights.
  50. * @param config Text file contains network configuration.
  51. */
  52. - (instancetype)initWithModel:(NSString*)model config:(NSString*)config;
  53. /**
  54. * Create text detection model from network represented in one of the supported formats.
  55. * An order of @p model and @p config arguments does not matter.
  56. * @param model Binary file contains trained weights.
  57. */
  58. - (instancetype)initWithModel:(NSString*)model;
  59. //
  60. // TextDetectionModel_EAST cv::dnn::TextDetectionModel_EAST::setConfidenceThreshold(float confThreshold)
  61. //
  62. /**
  63. * Set the detection confidence threshold
  64. * @param confThreshold A threshold used to filter boxes by confidences
  65. */
  66. - (TextDetectionModel_EAST*)setConfidenceThreshold:(float)confThreshold NS_SWIFT_NAME(setConfidenceThreshold(confThreshold:));
  67. //
  68. // float cv::dnn::TextDetectionModel_EAST::getConfidenceThreshold()
  69. //
  70. /**
  71. * Get the detection confidence threshold
  72. */
  73. - (float)getConfidenceThreshold NS_SWIFT_NAME(getConfidenceThreshold());
  74. //
  75. // TextDetectionModel_EAST cv::dnn::TextDetectionModel_EAST::setNMSThreshold(float nmsThreshold)
  76. //
  77. /**
  78. * Set the detection NMS filter threshold
  79. * @param nmsThreshold A threshold used in non maximum suppression
  80. */
  81. - (TextDetectionModel_EAST*)setNMSThreshold:(float)nmsThreshold NS_SWIFT_NAME(setNMSThreshold(nmsThreshold:));
  82. //
  83. // float cv::dnn::TextDetectionModel_EAST::getNMSThreshold()
  84. //
  85. /**
  86. * Get the detection confidence threshold
  87. */
  88. - (float)getNMSThreshold NS_SWIFT_NAME(getNMSThreshold());
  89. @end
  90. NS_ASSUME_NONNULL_END