DouZero_For_HLDDZ_FullAuto icon indicating copy to clipboard operation
DouZero_For_HLDDZ_FullAuto copied to clipboard

连对 顺子 等多牌经常报错重置

Open dysf888 opened this issue 2 years ago • 2 comments

下家 出牌 KKQQJJTT 运行时出现错误,已重置 ValueError("Coordinate 'lower' is less than 'upper'") Traceback (most recent call last): File "D:\Study\DouZero_For_HLDDZ_FullAuto\main.py", line 269, in init_cards self.start() File "D:\Study\DouZero_For_HLDDZ_FullAuto\main.py", line 525, in start self.handle_others(self.RPlayedCardsPos, self.RPlayedCard, "下家") File "D:\Study\DouZero_For_HLDDZ_FullAuto\main.py", line 391, in handle_others self.waitUntilNoAnimation() File "D:\Study\DouZero_For_HLDDZ_FullAuto\main.py", line 281, in waitUntilNoAnimation ani = self.haveAnimation(ms) File "D:\Study\DouZero_For_HLDDZ_FullAuto\main.py", line 759, in haveAnimation if not self.compareImage(img.crop(region), lastImg.crop(region)): File "D:\Programe\py310\lib\site-packages\PIL\Image.py", line 1206, in crop raise ValueError("Coordinate 'lower' is less than 'upper'") ValueError: Coordinate 'lower' is less than 'upper'

dysf888 avatar Apr 14 '22 12:04 dysf888

应该是作者把haveAnimation里的regions列表中的某个区域参数设置错了,把(478, 433, 852, 63)这行注释掉就行,但是可能会影响部分动画的判断。

maxiaowei0216 avatar Apr 16 '22 13:04 maxiaowei0216

应该是作者把haveAnimation里的regions列表中的某个区域参数设置错了,把(478, 433, 852, 63)这行注释掉就行,但是可能会影响部分动画的判断。

谢谢,我修复一下

Vincentzyx avatar Apr 16 '22 15:04 Vincentzyx