Commit Graph

33 Commits

Author SHA1 Message Date
cde01d45d7 fix(katana): add more workaround to regex
💀
2024-01-10 23:05:32 +07:00
d46e0f8e6f fix(katana): add more workarounds 2024-01-10 22:59:34 +07:00
8c1e39708f fix(katana): only regex if the word length is > 2 2024-01-10 15:32:30 +07:00
952467d4b1 chore(katana): move regex building to swordfish
Welp, I can add my dirty workaround now
2024-01-10 12:31:29 +07:00
5accadf277 fix(katana): algo 2024-01-10 06:30:37 +07:00
ba0bdfee37 fix(katana): for real
Basically a partial revert of 6f35d05a3e and also using char instead
2024-01-10 06:20:32 +07:00
5d614df9f9 fix(katana): fix broken text algorithm 2024-01-10 06:16:10 +07:00
6f35d05a3e fix(katana): improve the image analyzing process
Zamn, decreasing contrast and also copying Nori code.
2024-01-10 01:24:22 +07:00
1b943f5698 fix(katana): add () to allowed chars 2024-01-08 23:45:46 +07:00
c347abd07d chore: restructure the structs and its functions a bit 2024-01-08 20:56:02 +07:00
56e51c8d2f fix(katana): detect 4 cards dropping
I forgor
2024-01-08 19:42:32 +07:00
0f9331ba60 feat: introduce querying card with partial match using regex 2024-01-08 12:44:04 +07:00
872e551157 fix(katana): Il -> II at the end of the string 2024-01-08 00:00:56 +07:00
b7519ac75a feat: multithreading
Multithreading in tokio::main and also a new queue system for LepTess (libtesseract)
2024-01-07 23:52:49 +07:00
53e576ab56 fix(katana): update the libtesseract code 2024-01-07 22:38:51 +07:00
fa9ecaf59c feat(tesseract): set DPI to 70
I copied Nori code.
2024-01-07 22:34:47 +07:00
6d735e76cc fix(katana): replace all, not just once 2024-01-07 20:59:49 +07:00
8eb622f479 feat: swordfish-user
Also move tesseract implementation to swordfish cuz only the bot uses it.
2024-01-07 19:19:40 +07:00
ebafd93110 fix(katana): add workaround for text parsing 2024-01-07 18:15:51 +07:00
5281cdebed fix(katana): add . to regex
SSSS.Gridman 💀
2024-01-07 14:08:18 +07:00
bd1d54e202 fix(katana): regex & y offset 2024-01-07 01:05:01 +07:00
d5be81f786 fix(katana): remove the last character if it's a - 2024-01-06 21:16:56 +07:00
4b14ee7c90 fix: check for db connection first 2024-01-06 15:30:11 +07:00
dbc168a955 feat(common): implement database reading
Also fix some bugs
2024-01-06 14:34:45 +07:00
f4c23b02f6 feat(katana): migrate to tokio::task 2024-01-05 22:41:44 +07:00
f15b07c68b fix(katana): add another workaround 2024-01-05 22:07:04 +07:00
0ada9f6e46 feat: use rusty-tesseract as another backend
Also use OnceLock & LazyLock
2024-01-05 20:18:54 +07:00
3c47a90611 feat: add ~info command 2024-01-05 01:28:58 +07:00
d1cee333ed feat(katana): proper name & series reading 2024-01-05 00:40:57 +07:00
65911d3706 feat: regex 2024-01-01 20:15:51 +07:00
9536539e8c debug: add more info 2023-12-31 23:49:07 +07:00
34c52cd9ab feat: use Arc & Mutex for LepTess 2023-12-31 22:55:32 +07:00
19dc2963f5 feat: add proper logging 2023-12-30 21:39:44 +07:00