Skip to content

为任务流水线协议OCR算法类型新增数字比较 #1459

Description

@huzesama

功能描述 / Feature Description

希望添加的功能:

  • 为OCR算法添加关于数字比较的字段(如"operators":"gt|lt|eq|ge|le"value: {int}等。

  • expected对数字提取的支持,如文本“剩余的数量:100”通过字段"expected": "剩余的数量:{int}"或文本"30/100"通过字段"expected": "/{int}"提取数字100,并且该recognition必须画ROI。

使用场景:在一些游戏界面中,task需要在处理游戏任务的同时识别剩余需要处理的,我的使用场景的数字制式为{int}/{int},第一个{int}为当前进入处理的任务数量,第二个{int}为所有任务的总量。我需要识别第二个{Int}在大于指定值命中时节点进入next,当不命中则在前置节点的next轮询到另一个节点走其它的节点。数字比较在一些经营类的玩法中显得尤其普遍。

Image Image

MaaFramework 版本 / Version

No response

其他信息 / Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions