fix(katana): improve the image analyzing process

Zamn, decreasing contrast and also copying Nori code.
This commit is contained in:
2024-01-10 01:24:22 +07:00
parent 1b943f5698
commit 6f35d05a3e
6 changed files with 79 additions and 43 deletions

View File

@ -1,12 +1,12 @@
use crate::database;
use crate::structs::Character;
use mongodb::Collection;
use std::sync::OnceLock;
use std::time::{SystemTime, UNIX_EPOCH};
use tokio::sync::OnceCell;
use tokio::task;
use tracing::trace;
pub static KATANA: OnceLock<Collection<Character>> = OnceLock::new();
pub static KATANA: OnceCell<Collection<Character>> = OnceCell::const_new();
///
/// Initialize the "katana" collection in MongoDB