NateScarlet / auto-derby

🐎🖥《赛马娘》(ウマ娘: Pretty Derby)辅助脚本
MIT License
464 stars 107 forks source link

fix: assertion error due to image format #328

Closed Small-Ku closed 2 years ago

Small-Ku commented 2 years ago

Fix the error mentioned in https://github.com/NateScarlet/auto-derby/issues/322#issuecomment-1173680185 since alpha channel is unexpected

  File "D:\dev\auto-derby\auto_derby\single_mode\context.py", line 107, in _is_empty
    assert v.shape == (3,), v.shape
AssertionError: (4,)
NateScarlet commented 2 years ago

reason for this is screenshot().convert("RGB") been accidently removed during refactoring

fixed in 6dfecacd1bb13301c56862a9f828fa3f15e5ed15