ChartProcessor

Trait ChartProcessor 

Source
pub trait ChartProcessor: Send + Sync {
    // Required methods
    fn analyze_chart(&self, image_path: &Path) -> RragResult<AnalyzedChart>;
    fn extract_data_points(
        &self,
        chart_image: &Path,
    ) -> RragResult<Vec<DataPoint>>;
    fn identify_type(&self, chart_image: &Path) -> RragResult<ChartType>;
    fn analyze_trends(
        &self,
        data_points: &[DataPoint],
    ) -> RragResult<TrendAnalysis>;
}
Expand description

Chart processor trait

Required Methods§

Source

fn analyze_chart(&self, image_path: &Path) -> RragResult<AnalyzedChart>

Analyze chart

Source

fn extract_data_points(&self, chart_image: &Path) -> RragResult<Vec<DataPoint>>

Extract data points

Source

fn identify_type(&self, chart_image: &Path) -> RragResult<ChartType>

Identify chart type

Analyze trends

Implementors§