Objdetect.h 1.9 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/objdetect.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. @class IntVector;
  13. @class Rect2i;
  14. // C++: enum ObjectStatus (cv.DetectionBasedTracker.ObjectStatus)
  15. typedef NS_ENUM(int, ObjectStatus) {
  16. DetectionBasedTracker_DETECTED_NOT_SHOWN_YET = 0,
  17. DetectionBasedTracker_DETECTED = 1,
  18. DetectionBasedTracker_DETECTED_TEMPORARY_LOST = 2,
  19. DetectionBasedTracker_WRONG_OBJECT = 3
  20. };
  21. NS_ASSUME_NONNULL_BEGIN
  22. // C++: class Objdetect
  23. /**
  24. * The Objdetect module
  25. *
  26. * Member classes: `BaseCascadeClassifier`, `CascadeClassifier`, `HOGDescriptor`, `QRCodeEncoder`, `QRCodeEncoderParams`, `QRCodeDetector`, `FaceDetectorYN`, `FaceRecognizerSF`
  27. *
  28. * Member enums: `HistogramNormType`, `DescriptorStorageFormat`, `EncodeMode`, `CorrectionLevel`, `ECIEncodings`, `ObjectStatus`, `DisType`
  29. */
  30. CV_EXPORTS @interface Objdetect : NSObject
  31. #pragma mark - Class Constants
  32. @property (class, readonly) int CASCADE_DO_CANNY_PRUNING NS_SWIFT_NAME(CASCADE_DO_CANNY_PRUNING);
  33. @property (class, readonly) int CASCADE_SCALE_IMAGE NS_SWIFT_NAME(CASCADE_SCALE_IMAGE);
  34. @property (class, readonly) int CASCADE_FIND_BIGGEST_OBJECT NS_SWIFT_NAME(CASCADE_FIND_BIGGEST_OBJECT);
  35. @property (class, readonly) int CASCADE_DO_ROUGH_SEARCH NS_SWIFT_NAME(CASCADE_DO_ROUGH_SEARCH);
  36. #pragma mark - Methods
  37. //
  38. // void cv::groupRectangles(vector_Rect& rectList, vector_int& weights, int groupThreshold, double eps = 0.2)
  39. //
  40. + (void)groupRectangles:(NSMutableArray<Rect2i*>*)rectList weights:(IntVector*)weights groupThreshold:(int)groupThreshold eps:(double)eps NS_SWIFT_NAME(groupRectangles(rectList:weights:groupThreshold:eps:));
  41. + (void)groupRectangles:(NSMutableArray<Rect2i*>*)rectList weights:(IntVector*)weights groupThreshold:(int)groupThreshold NS_SWIFT_NAME(groupRectangles(rectList:weights:groupThreshold:));
  42. @end
  43. NS_ASSUME_NONNULL_END