ocr 0.1.2

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

use anyhow::Result;

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(())
}