MaaXYZ / MaaFramework

基于图像识别的自动化黑盒测试框架 | An automation black-box testing framework based on image recognition
GNU Lesser General Public License v3.0
1.34k stars 161 forks source link

依旧是分辨率识别问题,识别出了宽和高,但值设置错误 #252

Closed qbk929 closed 3 months ago

qbk929 commented 3 months ago

错误依旧如下所示,设备的物理分辨率参数为:1280,720

但程序在识别时的结果为: "resolution": { "height": 1280, "width": 720 },

下面为maa.log的完整运行日志

maa.log

出错代码如下

[2024-06-12 22:24:00.642][TRC][Px2604][Tx48304][UnitBase.cpp][L61][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] output: 1280 720

[2024-06-12 22:24:00.642][DBG][Px2604][Tx48304][DeviceInfo.cpp][L99][MaaNS::CtrlUnitNs::DeviceInfo::requestorientation] | enter [2024-06-12 22:24:00.644][TRC][Px2604][Tx48304][ChildPipeIOStream.cpp][L100][MaaNS::ChildPipeIOStream::ChildPipeIOStream] [exec=D:/Program Files/Nox/bin/noxadb.exe] [args=["-s","127.0.0.1:62001","shell","dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]"]] [child_.id()=10276] [2024-06-12 22:24:00.698][TRC][Px2604][Tx48304][UnitBase.cpp][L59][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] [output.size()=3] [duration=56ms] [2024-06-12 22:24:00.698][TRC][Px2604][Tx48304][UnitBase.cpp][L61][MaaNS::CtrlUnitNs::UnitBase::startup_and_read_pipe] output: 0

[2024-06-12 22:24:00.698][TRC][Px2604][Tx48304][DeviceInfo.cpp][L99][MaaNS::CtrlUnitNs::DeviceInfo::request_orientation] | leave, 56ms [2024-06-12 22:24:00.698][INF][Px2604][Tx48304][DeviceInfo.cpp][L82][MaaNS::CtrlUnitNs::DeviceInfo::request_resolution] portrait [orientation=0] [width=720] [height=1280] [2024-06-12 22:24:00.698][TRC][Px2604][Tx48304][DeviceInfo.cpp][L54][MaaNS::CtrlUnitNs::DeviceInfo::request_resolution] | leave, 118ms [2024-06-12 22:24:00.698][DBG][Px2604][Tx48304][Utils/MessageNotifier.hpp][L23][MaaNS::MessageNotifier<void (_cdecl)(char const ,char const ,void ),void *>::notify] [callback=0000000000000000] [callbackarg=0000000000000000] [msg=Controller.ResolutionGot] [details={ "adb": "D:/Program Files/Nox/bin/nox_adb.exe", "address": "127.0.0.1:62001", "resolution": { "height": 1280, "width": 720 }, "uuid": "624004f74bef005b" }] | enter