Skip to content

图片大小不匹配 #2

@YaoXiangtian

Description

@YaoXiangtian

有这样的报错
Error in main loop iteration processing instance 0
<2026-01-19 22:51:04,533>src.MCtrl:
Traceback (most recent call last):
File "C:\wowsbot\src\MCtrl.py", line 338, in _main_loop_iteration
match = inst.alctr.match_template(screen)
File "C:\wowsbot\src\ArLctr.py", line 189, in match_template
result = cv2.matchTemplate(roi, img_tmpl, cv2.TM_CCOEFF_NORMED)
cv2.error: OpenCV(4.13.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:1179: error: (-215:Assertion failed) _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate'

分辨率没办法调整到config.json的1440900,于是把config改成1200720,是否还需要修改模板图片和config中的其它数字

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions