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§
Sourcefn analyze_chart(&self, image_path: &Path) -> RragResult<AnalyzedChart>
fn analyze_chart(&self, image_path: &Path) -> RragResult<AnalyzedChart>
Analyze chart
Sourcefn extract_data_points(&self, chart_image: &Path) -> RragResult<Vec<DataPoint>>
fn extract_data_points(&self, chart_image: &Path) -> RragResult<Vec<DataPoint>>
Extract data points
Sourcefn identify_type(&self, chart_image: &Path) -> RragResult<ChartType>
fn identify_type(&self, chart_image: &Path) -> RragResult<ChartType>
Identify chart type
Sourcefn analyze_trends(&self, data_points: &[DataPoint]) -> RragResult<TrendAnalysis>
fn analyze_trends(&self, data_points: &[DataPoint]) -> RragResult<TrendAnalysis>
Analyze trends