You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, great project, thanks!
But I found some problems when using automatic battle, the source of these problems are usually caused by failure to interpret battle id, and I tried adding grayscale/binary conversion to solve the problem, now it works well.
for core.util get_battle_id function:
Replace
text = image_to_string(
region, config='--psm 7 --oem 3 -c tessedit_char_whitelist=/1234')
to
THRESHOLD = 200
BINARY_TABLE=[0 if i < THRESHOLD else 1 for i in range(256)]
text = image_to_string(
region.convert('L').point(BINARY_TABLE, '1'), config='--psm 7 --oem 3 -c tessedit_char_whitelist=/1234')
The text was updated successfully, but these errors were encountered:
Great, thanks a lot.
I would fix it , but I can't test it right now... maybe future testing is required.
Besides, feel free to enhance these features and raising pull requests :)
First, great project, thanks!
But I found some problems when using automatic battle, the source of these problems are usually caused by failure to interpret battle id, and I tried adding grayscale/binary conversion to solve the problem, now it works well.
for core.util get_battle_id function:
Replace
to
The text was updated successfully, but these errors were encountered: