Skip to content

v5.10.2版本以后ocr识别问题 #1335

@Witty36

Description

@Witty36

问题类型 / Issue Type

一般 Bug / General Bug

问题描述及复现步骤 / Problem Description & Reproduction Steps

测试了一下,从5.10.2版本以后,存在节点识别失败直接为空的问题。具体表现见图。测试了5.9.2、5.10.0、5.10.1,同样的代码均可正常运行。5.10.2、5.10.4不可以

Image 识别失败的时候,截图如下: Image Image 识别失败时的节点原始数据如下 { "reco_id": 400000457, "algorithm": "And", "box": null, "detail": [ { "algorithm": "OCR", "box": null, "detail": { "all": [], "best": null, "filtered": [] }, "name": "OCR", "reco_id": 400000458 } ], "name": "选取娃娃_三爪" } 同一个节点、同一个页面,成功时的截图如下: Image

MaaFramework 版本 / Version

v5.10.2

日志文件 / Log Files

maafw.log

Image

Pipeline JSON

"选取娃娃_三爪": {
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    {
                        "recognition": {
                            "type": "OCR",
                            "param": {
                                "expected": "[\u4e00-\u9fa5]",
                                "roi": [285, 534, 156, 154]
                            }
                        }
                    },
                    {
                        "recognition": {
                            "type": "ColorMatch",
                            "param": {
                                "lower": [94, 89, 117],
                                "upper": [114, 109, 137],
                                "roi": [242, 610, 274, 68],
                                "count": 750
                            }
                        }
                    }
                ],
                "box_index": 0
            }
        },
        "action": {
            "type": "DoNothing",
            "param": {}
        },
        "next": ["娃娃未集齐_三爪", "娃娃未获得_三爪", "娃娃已齐随便选_三爪"],
        "on_error": ["null"]
    },

    "过剧情": {
        "recognition": {
            "type": "OCR",
            "param": {
                "expected": ["自动", "", ""],
                "roi": [473, 1203, 33, 18]
            }
        },
        "action": {
            "type": "DoNothing",
            "param": {}
        },
        "timeout": 1000,
        "rate_limit": 500,
        "next": ["自动过剧情点点"],
        "on_error": ["null"]
    },

崩溃 Dump 文件 / Crash Dump (仅崩溃问题 / Crash only)

No response

Draw 调试图片 / Draw Debug Images (仅识别问题 / Recognition only)

No response

模板图片 / Template Images (仅识别问题 / Recognition only)

No response

其他信息 / Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions