Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c20546659d | ||
|
|
b2e98351dd | ||
|
|
5d96fe81b6 | ||
|
|
8c0e2f8ff6 | ||
|
|
dfaadfcff3 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -10,6 +10,8 @@ tmp/
|
|||||||
*.tmp
|
*.tmp
|
||||||
*.bak
|
*.bak
|
||||||
*.swp
|
*.swp
|
||||||
|
*.tlog
|
||||||
|
*.idb
|
||||||
*~.nib
|
*~.nib
|
||||||
local.properties
|
local.properties
|
||||||
.classpath
|
.classpath
|
||||||
@@ -43,8 +45,6 @@ local.properties
|
|||||||
|
|
||||||
# Build results
|
# Build results
|
||||||
|
|
||||||
[Dd]ebug/
|
|
||||||
[Rr]elease/
|
|
||||||
x64/
|
x64/
|
||||||
build/
|
build/
|
||||||
[Bb]in/
|
[Bb]in/
|
||||||
@@ -214,3 +214,4 @@ pip-log.txt
|
|||||||
|
|
||||||
#Mr Developer
|
#Mr Developer
|
||||||
.mr.developer.cfg
|
.mr.developer.cfg
|
||||||
|
部署版本/主程序-主函数版本/HWCV-exe/Debug/vc120.idb
|
||||||
|
|||||||
BIN
测试/服务器测试/鉴定主程序/Debug/HWCV-exe.exe
Normal file
BIN
测试/服务器测试/鉴定主程序/Debug/HWCV-exe.exe
Normal file
Binary file not shown.
@@ -137,13 +137,16 @@ int DbUpdate(string stuNum, vector<string> dateVec, vector<string> subjectVec, v
|
|||||||
|
|
||||||
/*更新字串设置*/
|
/*更新字串设置*/
|
||||||
int count = subjectVec.size();
|
int count = subjectVec.size();
|
||||||
|
|
||||||
vector<string> sqlKC; //课程表:作弊第一字段
|
vector<string> sqlKC; //课程表:作弊第一字段
|
||||||
int ci = 0; //循环
|
int ci = 0; //循环
|
||||||
|
string flag = "0";
|
||||||
|
/*构造更新语句--KC表的更新 */
|
||||||
/*构造更新语句*/
|
|
||||||
for (ci = 0; ci < count; ++ci)
|
for (ci = 0; ci < count; ++ci)
|
||||||
{
|
{
|
||||||
|
if(flagVec[ci]=="1") // 此人若有作弊嫌疑的图像,就认定此人为作弊嫌疑
|
||||||
|
flag = "1";
|
||||||
|
|
||||||
/*作弊的*/
|
/*作弊的*/
|
||||||
string sqlKC1 = "UPDATE ";
|
string sqlKC1 = "UPDATE ";
|
||||||
sqlKC1 += g_db_hoster_zk;
|
sqlKC1 += g_db_hoster_zk;
|
||||||
@@ -160,7 +163,11 @@ int DbUpdate(string stuNum, vector<string> dateVec, vector<string> subjectVec, v
|
|||||||
|
|
||||||
sqlKC.push_back(sqlKC1);
|
sqlKC.push_back(sqlKC1);
|
||||||
}
|
}
|
||||||
|
/* 更新语句--视图更新 */
|
||||||
|
string sqlView = "UPDATE YANNSY.V_BYSQ_BJSH_JQ_KS SET BJSH_JG_JQ=";
|
||||||
|
sqlView += flag;
|
||||||
|
sqlView += "WHERE KS_ZKZ = ";
|
||||||
|
sqlView += stuNum;
|
||||||
::CoInitialize(NULL);//初始化com组件
|
::CoInitialize(NULL);//初始化com组件
|
||||||
|
|
||||||
/*更新数据库表*/
|
/*更新数据库表*/
|
||||||
@@ -181,6 +188,11 @@ int DbUpdate(string stuNum, vector<string> dateVec, vector<string> subjectVec, v
|
|||||||
adLockOptimistic,
|
adLockOptimistic,
|
||||||
adCmdText);
|
adCmdText);
|
||||||
}
|
}
|
||||||
|
p_recordset->Open(_bstr_t(sqlView.c_str()),//更新第二条
|
||||||
|
p_conn.GetInterfacePtr(),
|
||||||
|
adOpenStatic,
|
||||||
|
adLockOptimistic,
|
||||||
|
adCmdText);
|
||||||
}
|
}
|
||||||
catch (_com_error e){ return 0; cerr << "Err:"; }
|
catch (_com_error e){ return 0; cerr << "Err:"; }
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@@ -36,9 +36,11 @@
|
|||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\..\资料\opencv属性表-台式机\opencv2413_debug.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\..\资料\opencv属性表-台式机\opencv2413_release.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
|||||||
8
资料/opencv属性表-台式机/opencv2413_release.props
Normal file
8
资料/opencv属性表-台式机/opencv2413_release.props
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemDefinitionGroup />
|
||||||
|
<ItemGroup />
|
||||||
|
</Project>
|
||||||
BIN
部署版本/主程序-主函数版本/Debug/HWCV.exe
Normal file
BIN
部署版本/主程序-主函数版本/Debug/HWCV.exe
Normal file
Binary file not shown.
16
部署版本/主程序-主函数版本/HWCV-exe/opencv2413_debug.props
Normal file
16
部署版本/主程序-主函数版本/HWCV-exe/opencv2413_debug.props
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<ExecutablePath>D:\programe files\opencv2413\opencv\build\x86\vc12\bin;$(ExecutablePath)</ExecutablePath>
|
||||||
|
<IncludePath>D:\programe files\opencv2413\opencv\build\include;D:\programe files\opencv2413\opencv\build\include\opencv;D:\programe files\opencv2413\opencv\build\include\opencv2;$(IncludePath)</IncludePath>
|
||||||
|
<LibraryPath>D:\programe files\opencv2413\opencv\build\x86\vc12\lib;D:\programe files\opencv2413\opencv\build\x86\vc12\staticlib;$(LibraryPath)</LibraryPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>opencv_calib3d2413d.lib;opencv_contrib2413d.lib;opencv_core2413d.lib;opencv_features2d2413d.lib;opencv_flann2413d.lib;opencv_gpu2413d.lib;opencv_highgui2413d.lib;opencv_imgproc2413d.lib;opencv_legacy2413d.lib;opencv_ml2413d.lib;opencv_nonfree2413d.lib;opencv_objdetect2413d.lib;opencv_photo2413d.lib;opencv_stitching2413d.lib;opencv_ts2413d.lib;opencv_video2413d.lib;opencv_videostab2413d.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user