Commit 2849ad44a40c39ff12b875205f5ba2c2b5d321f7
1 parent
341effc6
授权控制
Showing
1 changed file
with
4 additions
and
2 deletions
src/ai_platform/MultiSourceProcess.cpp
@@ -28,6 +28,8 @@ | @@ -28,6 +28,8 @@ | ||
28 | 28 | ||
29 | #define WITH_FACE_DET_SS | 29 | #define WITH_FACE_DET_SS |
30 | 30 | ||
31 | +#define AUTHORIZATION | ||
32 | + | ||
31 | #define productSN "51C4B28135604F649671727185949A91" //linux 通途抓拍引擎产品序列号 | 33 | #define productSN "51C4B28135604F649671727185949A91" //linux 通途抓拍引擎产品序列号 |
32 | 34 | ||
33 | using namespace std; | 35 | using namespace std; |
@@ -90,7 +92,7 @@ int CMultiSourceProcess::InitAlgorthim(tsl_aiplatform_param vptParam){ | @@ -90,7 +92,7 @@ int CMultiSourceProcess::InitAlgorthim(tsl_aiplatform_param vptParam){ | ||
90 | set_default_logger(LogLevel(vptParam.log_level), "multi_source_process", vptParam.log_path, vptParam.log_mem, vptParam.log_mem); | 92 | set_default_logger(LogLevel(vptParam.log_level), "multi_source_process", vptParam.log_path, vptParam.log_mem, vptParam.log_mem); |
91 | LOG_INFO("编译时间:{} {}", __DATE__, __TIME__); | 93 | LOG_INFO("编译时间:{} {}", __DATE__, __TIME__); |
92 | 94 | ||
93 | -#ifdef USE_VILLAGE | 95 | +#ifndef AUTHORIZATION |
94 | if (!CheckTime()) { //时间限制 | 96 | if (!CheckTime()) { //时间限制 |
95 | LOG_ERROR("sy_licence_check failed."); | 97 | LOG_ERROR("sy_licence_check failed."); |
96 | return AUTHOR_ERROR; | 98 | return AUTHOR_ERROR; |
@@ -700,7 +702,7 @@ int CMultiSourceProcess::algorthim_process_thread(){ | @@ -700,7 +702,7 @@ int CMultiSourceProcess::algorthim_process_thread(){ | ||
700 | ACL_CALL(aclrtCreateContext(&ctx, m_devId), ACL_SUCCESS, 1); | 702 | ACL_CALL(aclrtCreateContext(&ctx, m_devId), ACL_SUCCESS, 1); |
701 | 703 | ||
702 | while (true){ | 704 | while (true){ |
703 | -#ifdef USE_VILLAGE | 705 | +#ifndef AUTHORIZATION |
704 | if (!CheckTime()) { //时间限制 | 706 | if (!CheckTime()) { //时间限制 |
705 | LOG_FATAL("authority failed!"); | 707 | LOG_FATAL("authority failed!"); |
706 | break; | 708 | break; |