12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #include "StrategyAPI.h"
- #include "HeadCountStrategy.h"
- SDKAPI TZ_INT Initialize()
- {
- return 0;
- }
- SDKAPI TZ_INT Dispose()
- {
- return 0;
- }
- SDKAPI masd::Strategy * BuildStrategy()
- {
- masd::Strategy * stra = new masd::headcount::HeadCountStrategy();
- return stra;
- }
- SDKAPI void DestroyStrategy(masd::Strategy * strategy)
- {
- TZ_delete(strategy);
- }
- SDKAPI TZ_INT GetInformation(TZ_CHAR * informatrion)
- {
- masd::StrategyInfo info;
- info.Key = "HeadCount";
- info.Name = "人头计数判定策略";
- info.Version = "V1.0.0-T-20241007R";
- info.Author = "杭州晨鹰军泰";
- info.UpdateDate = "2024-10-07 09:30:00";
- info.StraDets.emplace_back(0, -1, "YoloCrowd", "人头目标检测");
- /*info.StraCfgs.push_back({masd::DIT_INT, "TimeThreshold",
- "人头计数时间阈值", "5", "1", "60", "1",
- "单位:秒。人头计数时间阈值,每经过设定的时间向后续业务传输人头数量。"});*/
- info.StraRsts.emplace_back(masd::SRT_NOT_SHOW, "人头数量");
- strcpy(informatrion, info.toJson().c_str());
- return masd::MEC_OK;
- }
|