asciiframe 2.0.0

Convert any video to a stream of ASCII frames
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
	#[error("IO Error")]
	Io(#[from] std::io::Error),
	#[error("OpenCV Error")]
	OpenCV(#[from] opencv::Error),
	#[error("Invalid input file path")]
	InvalidPath(PathBuf),
	#[error("Invalid target bounds")]
	InvalidBounds(i32, i32),
}

pub type Result<T> = std::result::Result<T, Error>;