pub struct DefaultChartProcessor { /* private fields */ }Expand description
Default chart processor implementation
Implementations§
Source§impl DefaultChartProcessor
impl DefaultChartProcessor
Sourcepub fn new(config: ChartAnalysisConfig) -> RragResult<Self>
pub fn new(config: ChartAnalysisConfig) -> RragResult<Self>
Create new chart processor
Sourcepub fn analyze_comprehensive(
&self,
image_path: &Path,
) -> RragResult<ChartAnalysisResult>
pub fn analyze_comprehensive( &self, image_path: &Path, ) -> RragResult<ChartAnalysisResult>
Comprehensive chart analysis
Trait Implementations§
Source§impl ChartProcessor for DefaultChartProcessor
impl ChartProcessor for DefaultChartProcessor
Source§fn analyze_chart(&self, image_path: &Path) -> RragResult<AnalyzedChart>
fn analyze_chart(&self, image_path: &Path) -> RragResult<AnalyzedChart>
Analyze chart
Source§fn extract_data_points(&self, chart_image: &Path) -> RragResult<Vec<DataPoint>>
fn extract_data_points(&self, chart_image: &Path) -> RragResult<Vec<DataPoint>>
Extract data points
Source§fn identify_type(&self, chart_image: &Path) -> RragResult<ChartType>
fn identify_type(&self, chart_image: &Path) -> RragResult<ChartType>
Identify chart type
Source§fn analyze_trends(&self, data_points: &[DataPoint]) -> RragResult<TrendAnalysis>
fn analyze_trends(&self, data_points: &[DataPoint]) -> RragResult<TrendAnalysis>
Analyze trends
Auto Trait Implementations§
impl Freeze for DefaultChartProcessor
impl RefUnwindSafe for DefaultChartProcessor
impl Send for DefaultChartProcessor
impl Sync for DefaultChartProcessor
impl Unpin for DefaultChartProcessor
impl UnwindSafe for DefaultChartProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more