feat: swordfish-user

Also move tesseract implementation to swordfish cuz only the bot uses it.
This commit is contained in:
2024-01-07 19:19:40 +07:00
parent ebafd93110
commit 8eb622f479
12 changed files with 291 additions and 22 deletions

View File

@ -1,3 +1,4 @@
use crate::tesseract::{libtesseract, subprocess};
use crate::CONFIG;
use image::imageops::colorops::contrast_in_place;
use image::io::Reader as ImageReader;
@ -8,7 +9,6 @@ use std::io::Cursor;
use std::sync::LazyLock;
use swordfish_common::database::katana as db;
use swordfish_common::structs::Card;
use swordfish_common::tesseract::{libtesseract, subprocess};
use swordfish_common::{trace, warn};
use tokio::task;