|
@@ -266,11 +266,6 @@ int handwriting(string strImage, std::string &json_result, const std::string &ac
|
|
|
|
|
|
int IdentifyCallback(result::spinfo& pinfo, void* param)
|
|
int IdentifyCallback(result::spinfo& pinfo, void* param)
|
|
{
|
|
{
|
|
- string strToken = "24.086aba1dfaa5d4fdba74f2c62b591b35.2592000.1668825495.282335-21782130";
|
|
|
|
- string strResult;
|
|
|
|
- string strEncode = GetImageEncodeString("d:\\202210122100_0001.jpg");
|
|
|
|
- handwriting(strEncode, strResult, strToken);
|
|
|
|
-
|
|
|
|
CMFCApplication1Dlg* pWnd = (CMFCApplication1Dlg*)theApp.m_pMainWnd;
|
|
CMFCApplication1Dlg* pWnd = (CMFCApplication1Dlg*)theApp.m_pMainWnd;
|
|
if (pinfo.choiceRes.size() < 3 || pinfo.vecUrlAPath.size() == 0)
|
|
if (pinfo.choiceRes.size() < 3 || pinfo.vecUrlAPath.size() == 0)
|
|
{
|
|
{
|
|
@@ -295,6 +290,11 @@ int IdentifyCallback(result::spinfo& pinfo, void* param)
|
|
number += pow(2, length - 1 - i);
|
|
number += pow(2, length - 1 - i);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ string strToken = CT2A(CConfig::Instance()->m_strToken);
|
|
|
|
+ string strResult;
|
|
|
|
+ string strEncode = GetImageEncodeString(pinfo.vecUrlAPath[0]);
|
|
|
|
+ handwriting(strEncode, strResult, strToken);
|
|
|
|
+
|
|
std::string strJsonDir = CT2A(CConfig::Instance()->m_strMode);
|
|
std::string strJsonDir = CT2A(CConfig::Instance()->m_strMode);
|
|
strJsonDir.append("/");
|
|
strJsonDir.append("/");
|
|
strJsonDir.append(std::to_string(number));
|
|
strJsonDir.append(std::to_string(number));
|