锚定点bug解决:已锁定的模板,打开是未锁定状态
This commit is contained in:
parent
f5b8090e92
commit
ba01228675
|
|
@ -22,8 +22,7 @@ using MySql.Data.MySqlClient;
|
||||||
using Emgu.CV.Flann;
|
using Emgu.CV.Flann;
|
||||||
using System.Data.SqlTypes;
|
using System.Data.SqlTypes;
|
||||||
using System.Security.AccessControl;
|
using System.Security.AccessControl;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using PaddleOCRSharp;
|
|
||||||
|
|
||||||
public partial class 外部答题卡_Default : System.Web.UI.Page
|
public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
{
|
{
|
||||||
|
|
@ -556,29 +555,29 @@ public partial class 外部答题卡_Default : System.Web.UI.Page
|
||||||
|
|
||||||
//commonUse.ShowMatWaitKey("maodingdian", bytimg.Mat, 2);
|
//commonUse.ShowMatWaitKey("maodingdian", bytimg.Mat, 2);
|
||||||
|
|
||||||
var ocrResult = OcrHelper.GetOcrResult(bytimg.Bitmap);
|
////var ocrResult = OcrHelper.GetOcrResult(bytimg.Bitmap);
|
||||||
if (ocrResult == null || string.IsNullOrWhiteSpace(ocrResult.Text))
|
////if (ocrResult == null || string.IsNullOrWhiteSpace(ocrResult.Text))
|
||||||
{
|
////{
|
||||||
// 未找到任何文字
|
//// // 未找到任何文字
|
||||||
return false;
|
//// return false;
|
||||||
}
|
////}
|
||||||
|
|
||||||
ocrResultText = ocrResult.Text;
|
//ocrResultText = ocrResult.Text;
|
||||||
|
|
||||||
if (bytimg != null)
|
//if (bytimg != null)
|
||||||
{
|
//{
|
||||||
bytimg.Dispose();
|
// bytimg.Dispose();
|
||||||
}
|
//}
|
||||||
|
|
||||||
var ocrResultArr = ocrResult.Text.ToCharArray();
|
//var ocrResultArr = ocrResult.Text.ToCharArray();
|
||||||
var ocrTestArr = ocrText[5].ToCharArray();
|
//var ocrTestArr = ocrText[5].ToCharArray();
|
||||||
var interList = ocrTestArr.Intersect(ocrResultArr);
|
//var interList = ocrTestArr.Intersect(ocrResultArr);
|
||||||
if (interList.Count() == ocrTestArr.Length)
|
//if (interList.Count() == ocrTestArr.Length)
|
||||||
{
|
//{
|
||||||
// 找到输入文字
|
// // 找到输入文字
|
||||||
return true;
|
// return true;
|
||||||
}
|
//}
|
||||||
ocrResultText = ocrResult.Text;
|
//ocrResultText = ocrResult.Text;
|
||||||
// 未找到输入文字
|
// 未找到输入文字
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -677,6 +677,7 @@ function BaseDataBind() {
|
||||||
var piyueList = "";
|
var piyueList = "";
|
||||||
var zhunkaozhenghao = "";
|
var zhunkaozhenghao = "";
|
||||||
var biaozhundian = "";
|
var biaozhundian = "";
|
||||||
|
var maodingdian = "";
|
||||||
if (Bindlist != "") {
|
if (Bindlist != "") {
|
||||||
maodian = list[0].trim('^');//左边距,右边距,长,高
|
maodian = list[0].trim('^');//左边距,右边距,长,高
|
||||||
xuehao = list[1].trim('^');//左边距,右边距,长,高,学号数量
|
xuehao = list[1].trim('^');//左边距,右边距,长,高,学号数量
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue