fix.尝试修复识别“干员被选择”时偶现的崩溃问题

This commit is contained in:
MistEO
2021-10-29 21:52:19 +08:00
parent 23e905fd20
commit 41731d8ddd
4 changed files with 8 additions and 7 deletions

View File

@@ -844,9 +844,9 @@
"algorithm": "justReturn",
"rectMove_Doc": "基于笑脸的位置移动",
"rectMove": [
-8,
0,
-202,
82,
74,
100
]
},
@@ -1233,9 +1233,9 @@
255
],
"rectMove": [
13,
0,
-252,
82,
74,
320
]
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -63,7 +63,8 @@ bool asst::InfrastMoodImageAnalyzer::mood_detect()
prg_rect.y += smiley.rect.y;
// mood_analyze是可以识别长度不够的心情条的
// 这里主要是为了算立绘hash宽度不够的hash不好算直接忽略了
if (prg_rect.x + prg_rect.width >= m_image.cols) {
if (prg_rect.x + prg_rect.width >= roi.x + roi.width
|| prg_rect.x < roi.x) {
continue;
}
#ifdef LOG_TRACE

View File

@@ -190,7 +190,7 @@
<Filter>头文件\Task</Filter>
</ClInclude>
<ClInclude Include="InfrastOfficeTask.h">
<Filter>头文件</Filter>
<Filter>头文件\Task</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
@@ -309,7 +309,7 @@
<Filter>源文件\Task</Filter>
</ClCompile>
<ClCompile Include="InfrastOfficeTask.cpp">
<Filter>源文件</Filter>
<Filter>源文件\Task</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>