AbandClipStrategy.h 871 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __ABANDCLIP_STRATEGY_H
  2. #define __ABANDCLIP_STRATEGY_H
  3. #include "Strategy.h"
  4. #include "AbandClipCfg.h"
  5. NAMESPACE_MAS_BEGIN
  6. NAMESPACE_ABANDCLIP_BEGIN
  7. class AbandClipStrategy : public Strategy {
  8. public:
  9. AbandClipStrategy ();
  10. virtual ~AbandClipStrategy();
  11. virtual TZ_INT Initialize();
  12. virtual TZ_INT Dispose();
  13. virtual TZ_INT SetStrategyCfg(const std::string & param);
  14. virtual TZ_INT DoStrategy(SPtr<StreamInfo> & streamInfo);
  15. private:
  16. TZ_DOUBLE m_featureThreshold;
  17. std::vector<TextFeature> m_textFeatureList;
  18. std::queue<std::string> m_qClipQueue;
  19. std::queue<std::string> m_qAbandClipQueue;
  20. tzc::Mutex m_clipLock;
  21. tzc::Mutex m_abandClipLock;
  22. TZ_FLOAT calculateDotProduct(const std::vector<TZ_FLOAT>& matrix1, const std::vector<TZ_FLOAT>& matrix2);
  23. };
  24. NAMESPACE_ABANDCLIP_END
  25. NAMESPACE_MAS_END
  26. #endif