ocr 0.1.1

A pure Rust CLI OCR tool for printed text extraction
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::PathBuf;

use anyhow::{anyhow, Result};
use tracing::error;

use ocr::core::config::OcrConfig;

pub async fn handle_validate(config_file: PathBuf) -> Result<()> {
    let config = OcrConfig::from_file(&config_file)?;

    config.validate()?;
    println!("Configuration is valid");
    Ok(())
}