Re-exports§
pub use bbox::Bbox;pub use color::detect_background_color;pub use color::detect_colors;pub use color::detect_dominant_color;pub use color::detect_element_color;pub use component::Component;pub use config::Config;pub use element::compute_prominence;pub use element::prominence_label;pub use element::AiOutput;pub use element::CompactElement;pub use element::Element;pub use element::ElementPosition;pub use element::OutputResult;pub use element::TreeNode;pub use element::TreeOutput;pub use export::draw_elements;pub use export::draw_object_detections;pub use export::save_ai_json;pub use export::save_compact_json;pub use export::save_detection_tree_json;pub use export::save_detection_tree_text;pub use export::save_json;pub use export::save_object_detection_visualization;pub use export::save_text_summary;pub use export::save_tree_json;pub use export::save_tree_text;pub use export::save_visualization;pub use icon_classifier::IconClassifier;pub use merger::check_containment;pub use merger::merge;pub use merger::merge_text_lines;pub use merger::reassign_ids;pub use merger::refine_elements;pub use merger::refine_texts;pub use merger::remove_bottom_bar;pub use merger::remove_top_bar;pub use merger::synthesize_orphan_text_regions;pub use object_detector::build_detection_tree;pub use object_detector::Detection;pub use object_detector::DetectionBbox;pub use object_detector::DetectionNode;pub use text_detection::detect_text;pub use text_detection::TextResult;
Modules§
- bbox
- color
- component
- config
- detection
- download
- element
- export
- icon_
classifier - merger
- object_
detector - pipeline
- 分步式流水线 API
- preprocess
- text_
detection
Functions§
- clean_
models - 清理所有已加载的模型,释放 GPU/CPU 内存。
- init_
models - 预加载所有模型(OCR + Icon 分类器 + YOLO 物体检测)。
- object_
detection_ to_ json_ string - 物体检测树 JSON 输出
- object_
detection_ to_ tree_ text - 物体检测树文本输出
- to_
ai_ json_ string - AI 归一化输出(坐标 0-1000)
- to_
compact_ string - 压缩 JSON 格式输出(短键名,-50% token)
- to_
json_ string - 标准 JSON 格式输出
- to_
text_ summary - 纯文本摘要输出(适合直接粘贴到 prompt)
- to_
tree_ json_ string - 树形 JSON 输出(嵌套 children,推荐 AI 使用)
- to_
tree_ text_ string - 树形文本输出(适合人眼阅读)