feat(storage-check): add storage check #317
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
这项feature为baas添加了识别装备库存的功能,目前已经实现三服的导航适配及基本不失误的检测结果
主要的实现方法
主要使用cv2.matchTemplate方法来进行识别,先针对装备栏区域定位第一行所在位置(考虑到后续的滑动),并以此为基点划分块,再循环模板,取最高分的模板,并认为对于区域的装备即为模板对应的装备,随后进行OCR识别数量(若数量过大以K显示,则程序方面为保持数据的类型一致,转换为000(即舍弃后面的精度))
同时,这项PR将使用到的(常用的)matchTemplate的实现加入了core.image来方便后期调用
(注:后续装备模板识别使用的是matchTemplate 的SQDIFF模式,并添加手动取平均处理)
使用方法
目前存在的问题
针对上述问题1,目前可能的解决方案
示例输出
示例说明