123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef __ABANDCLIP_STRATEGY_H
- #define __ABANDCLIP_STRATEGY_H
- #include "Strategy.h"
- #include "AbandClipCfg.h"
- NAMESPACE_MAS_BEGIN
- NAMESPACE_ABANDCLIP_BEGIN
- class AbandClipStrategy : public Strategy {
- public:
- AbandClipStrategy ();
- virtual ~AbandClipStrategy();
- virtual TZ_INT Initialize();
- virtual TZ_INT Dispose();
- virtual TZ_INT SetStrategyCfg(const std::string & param);
- virtual TZ_INT DoStrategy(SPtr<StreamInfo> & streamInfo);
- private:
- TZ_DOUBLE m_featureThreshold;
- std::vector<TextFeature> m_textFeatureList;
-
- std::queue<std::string> m_qClipQueue;
- std::queue<std::string> m_qAbandClipQueue;
-
- tzc::Mutex m_clipLock;
- tzc::Mutex m_abandClipLock;
- TZ_FLOAT calculateDotProduct(const std::vector<TZ_FLOAT>& matrix1, const std::vector<TZ_FLOAT>& matrix2);
- };
- NAMESPACE_ABANDCLIP_END
- NAMESPACE_MAS_END
- #endif
|