Skip to main content

Crate quasivision

Crate quasivision 

Source

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
树形文本输出(适合人眼阅读)