TrackerNano.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/video.hpp"
  8. #import "opencv2/video/tracking.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "Tracker.h"
  14. @class TrackerNanoParams;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class TrackerNano
  17. /**
  18. * the Nano tracker is a super lightweight dnn-based general object tracking.
  19. *
  20. * Nano tracker is much faster and extremely lightweight due to special model structure, the whole model size is about 1.9 MB.
  21. * Nano tracker needs two models: one for feature extraction (backbone) and the another for localization (neckhead).
  22. * Model download link: https://github.com/HonglinChu/SiamTrackers/tree/master/NanoTrack/models/nanotrackv2
  23. * Original repo is here: https://github.com/HonglinChu/NanoTrack
  24. * Author: HongLinChu, 1628464345@qq.com
  25. *
  26. * Member of `Video`
  27. */
  28. CV_EXPORTS @interface TrackerNano : Tracker
  29. #ifdef __cplusplus
  30. @property(readonly)cv::Ptr<cv::TrackerNano> nativePtrTrackerNano;
  31. #endif
  32. #ifdef __cplusplus
  33. - (instancetype)initWithNativePtr:(cv::Ptr<cv::TrackerNano>)nativePtr;
  34. + (instancetype)fromNative:(cv::Ptr<cv::TrackerNano>)nativePtr;
  35. #endif
  36. #pragma mark - Methods
  37. //
  38. // static Ptr_TrackerNano cv::TrackerNano::create(TrackerNano_Params parameters = TrackerNano::Params())
  39. //
  40. /**
  41. * Constructor
  42. * @param parameters NanoTrack parameters TrackerNano::Params
  43. */
  44. + (TrackerNano*)create:(TrackerNanoParams*)parameters NS_SWIFT_NAME(create(parameters:));
  45. /**
  46. * Constructor
  47. */
  48. + (TrackerNano*)create NS_SWIFT_NAME(create());
  49. //
  50. // float cv::TrackerNano::getTrackingScore()
  51. //
  52. /**
  53. * Return tracking score
  54. */
  55. - (float)getTrackingScore NS_SWIFT_NAME(getTrackingScore());
  56. @end
  57. NS_ASSUME_NONNULL_END