OCR 全流程(版面分析、二值化、倾斜校正、字符分割、识别、后处理)
| 项目 | 数量 |
|---|---|
| 公开函数 | 352 |
| 公开类型 | 142 |
| 常量 | 0 |
| 错误类型 | 0 |
pub(all) struct AccuracyStats {
pub(all) struct AdaptivePreprocessConfig {
pub(all) struct AdvancedChineseOcrConfig {
pub(all) struct ApiServerConfig {
pub(all) struct AugmentationConfig {
pub(all) enum AugmentationType {
pub(all) struct BatchOcrConfig {
pub(all) struct BatchProgress {
pub(all) struct BatchResultSummary {
pub(all) struct BatchTask {
pub(all) enum BatchTaskStatus {
pub(all) struct CharRecognitionResult {
pub(all) struct CharSegment {
pub(all) struct ChineseCharInfo {
pub(all) struct ChineseCharStructure {
pub(all) struct ChineseOcrConfig {
pub(all) struct ChineseRadical {
pub(all) struct ClassificationResult {
pub(all) struct CliConfig {
pub(all) struct CommonErrorPattern {
pub(all) struct ComplexLayoutAnalysis {
pub(all) enum ComplexLayoutType {
pub(all) struct ConfusionEntry {
pub(all) struct ConfusionMatrix {
pub(all) struct CorrectionEntry {
pub(all) struct CorrectionResult {
pub(all) struct DLCnnModelConfig {
pub(all) struct DLConv2DConfig {
pub(all) struct DLDenseConfig {
pub(all) struct DLFeatureExtractor {
pub(all) struct DLInferenceResult {
pub(all) enum DLLayerType {
pub(all) struct DLNeuralLayer {
pub(all) struct DLTrainingHistory {
pub(all) struct DLTrainingSample {
pub(all) struct DataLoader {
pub(all) enum DeploymentEnvironment {
pub(all) struct DictCharEntry {
pub(all) struct DictCharMatch {
pub(all) enum DictCharStructure {
pub(all) struct DictChineseDict {
pub(all) struct DictComponent {
pub(all) struct DictComponentResult {
pub(all) struct Dictionary {
pub(all) struct DictionaryEntry {
pub(all) struct DigitOcrConfig {
pub(all) enum DistanceMetric {
pub(all) struct DistortionDetectionResult {
pub(all) enum DistortionType {
pub(all) struct DockerConfig {
pub(all) struct DocumentBlock {
pub(all) enum DocumentBlockType {
pub(all) struct DocumentElement {
pub(all) enum DocumentElementType {
pub(all) struct DocumentStructure {
pub(all) struct DocumentTreeNode {
pub(all) struct DocumentUnderstandingEnhancedConfig {
pub(all) struct DropFallResult {
pub(all) struct EnglishOcrConfig {
pub(all) struct EnhancedChineseOcrConfig {
pub(all) struct EnhancedDocument {
pub(all) struct EnhancedDocumentElement {
pub(all) struct EnhancedTableResult {
pub(all) struct EnsembleConfig {
pub(all) struct ErrorAnalysisEntry {
pub(all) struct ErrorAnalysisReport {
pub(all) struct ExtractedImage {
pub(all) struct GridFeatures {
pub(all) struct HandwritingCharFeature {
pub(all) struct HandwritingOcrConfig {
pub(all) struct HandwritingOcrEnhancedConfig {
pub(all) struct HandwritingRecognitionConfig {
pub(all) struct HandwritingRecognitionResult {
pub(all) struct HandwritingStrokeFeatures {
pub(all) enum HandwritingStyle {
pub(all) struct HandwritingTemplate {
pub(all) struct HogFeatures {
pub(all) struct KnnClassifier {
pub(all) struct LRSchedulerConfig {
pub(all) enum LRSchedulerType {
pub(all) struct LanguageDetectionResult {
pub(all) struct LanguageModelState {
pub(all) enum LanguageType {
pub(all) enum LayoutType {
pub(all) struct LbpFeatures {
pub(all) struct ListItemInfo {
pub(all) enum ListItemType {
pub(all) struct MarkdownDocument {
pub(all) struct MarkdownElement {
pub(all) enum MarkdownElementType {
pub(all) struct MarkdownImage {
pub(all) struct MarkdownSymbol {
pub(all) struct MarkdownTable {
pub(all) struct MemoryUsageStats {
pub(all) struct ModelPackageConfig {
pub(all) struct MultilingualOcrConfig {
pub(all) struct MultilingualOcrEnhancedConfig {
pub(all) struct NgramModel {
pub(all) struct OCRPageResult {
pub(all) struct OcrAccuracyEnhancedConfig {
pub(all) struct OcrCharResult {
pub(all) struct OcrConnectedComponent {
pub(all) struct OcrConnectedComponentsResult {
pub(all) enum OcrErrorType {
pub(all) struct OcrResult {
pub(all) struct OptimizerConfig {
pub(all) enum OptimizerType {
pub(all) struct PageRegion {
pub(all) enum PageRegionType {
pub(all) struct PerformanceBenchmark {
pub(all) struct PostProcessConfig {
pub(all) struct ProjectionFeatures {
pub(all) struct ProjectionResult {
pub(all) struct PunctuationTemplate {
pub(all) struct RobustnessReport {
pub(all) struct ScanOCRConfig {
pub(all) struct ScanQuality {
pub(all) enum ScanQualityLevel {
pub(all) struct SimilarCharMapping {
pub(all) struct SplitPoint {
pub(all) struct StatisticalFeatures {
pub(all) struct StrokeFeature {
pub(all) struct StrokeSegmentationResult {
pub(all) enum StrokeType {
pub(all) struct TableCell {
pub(all) struct TableCellContent {
pub(all) struct TableDetectionResult {
pub(all) struct TableLine {
pub(all) enum TableLineType {
pub(all) struct TableStructure {
pub(all) struct TemplateMatcher {
pub(all) struct TextBlock {
pub(all) struct TextLine {
pub(all) struct TextLineAttributes {
pub(all) struct TextLineInfo {
pub(all) struct TextRegion {
pub(all) enum TextRegionType {
pub(all) struct TrainingConfig {
pub(all) struct TrainingDataset {
pub(all) struct TrainingMetrics {
pub(all) struct TrainingSample {
pub(all) struct TrainingState {pub fn adaptive_threshold_ocr(@types.Image, block_size? : Int, c? : Int) -> @types.Image raise @types.LoadError
pub fn advanced_chinese_ocr_default_config() -> AdvancedChineseOcrConfig
pub fn analyze_complex_layout(Array[TextBlock], Int, Int) -> ComplexLayoutAnalysis
pub fn analyze_document_layout(@types.Image) -> DocumentStructure raise @types.LoadError
pub fn analyze_layout_enhanced(@types.Image, config? : DocumentUnderstandingEnhancedConfig) -> Array[DocumentBlock] raise @types.LoadError
pub fn analyze_layout_scan(@types.Image) -> Array[TextBlock] raise @types.LoadError
pub fn analyze_markdown_element_distribution(MarkdownDocument) -> Array[(String, Int)]
pub fn analyze_table_results(Array[EnhancedTableResult]) -> Array[(String, Int)]
pub fn analyze_table_structure(Array[TableLine], Array[TableLine]) -> TableStructure raise @types.LoadError
pub fn apply_augmentation(DLTrainingSample, AugmentationConfig) -> DLTrainingSample
pub fn augment_features(Array[Double], noise_level? : Double) -> Array[Double]
pub fn augment_random_noise(DLTrainingSample, Double) -> DLTrainingSample
pub fn augment_random_rotation(DLTrainingSample, Double) -> DLTrainingSample
pub fn augment_random_scale(DLTrainingSample, Double) -> DLTrainingSample
pub fn augment_random_shift(DLTrainingSample, Double) -> DLTrainingSample
pub fn background_normalization(@types.Image, kernel_size? : Int) -> @types.Image raise @types.LoadError
pub fn batch_correct_texts(Array[String], context_type? : String) -> Array[CorrectionResult] raise @types.LoadError
pub fn batch_recognize_chars(Array[@types.Image], DLCnnModelConfig, Array[String]) -> Array[DLInferenceResult] raise @types.LoadError
pub fn batch_scan_ocr(Array[@types.Image], ScanOCRConfig) -> Array[OCRPageResult] raise @types.LoadError
pub fn batch_summary_to_string(BatchResultSummary) -> String
pub fn build_document_structure_tree(Array[DocumentBlock]) -> Array[DocumentTreeNode]
pub fn build_enhanced_elements(Array[TextLineAttributes], Int, Int) -> EnhancedDocument raise @types.LoadError
pub fn build_gaussian_kernel_lut(Double, Int) -> Array[Double] raise @types.LoadError
pub fn build_grayscale_lut() -> Array[Int]
pub fn build_markdown_document(OCRPageResult, title? : String) -> MarkdownDocument raise @types.LoadError
pub fn build_threshold_lut(Int) -> Array[Int]
pub fn cache_friendly_horizontal_projection(@types.Image) -> Array[Int] raise @types.LoadError
pub fn cache_friendly_vertical_projection(@types.Image) -> Array[Int] raise @types.LoadError
pub fn calculate_accuracy(Array[Int], Array[Int]) -> Double
pub fn calculate_accuracy_improvement(Array[CorrectionResult], Array[String]) -> (Double, Double, Double)
pub fn calculate_accuracy_stats(Array[String], Array[String]) -> AccuracyStats raise @types.LoadError
pub fn calculate_batch_progress(Array[BatchTask], Double) -> BatchProgress raise @types.LoadError
pub fn calculate_char_accuracy(String, String) -> Double
pub fn calculate_chinese_similarity(DictCharEntry, DictCharEntry) -> Double
pub fn calculate_edit_distance(String, String) -> Int
pub fn calculate_learning_rate(LRSchedulerConfig, Int, Double, Double) -> Double raise @types.LoadError
pub fn calculate_word_accuracy(String, String) -> Double
pub fn calibrate_confidence(OcrResult, factor? : Double) -> OcrResult raise @types.LoadError
pub fn calibrate_confidence_enhanced(Double, Array[Double]) -> Double
pub fn chebyshev_distance(Array[Double], Array[Double]) -> Double raise @types.LoadError
pub fn check_accuracy_threshold(AccuracyStats, min_char_accuracy? : Double, min_word_accuracy? : Double, min_f1_score? : Double) -> (Bool, Array[String]) raise @types.LoadError
pub fn check_early_stopping(TrainingState, TrainingConfig, Double) -> (Bool, TrainingState)
pub fn chinese_ocr_default_config() -> ChineseOcrConfig
pub fn classify_markdown_element(TextBlock, avg_font_size? : Double) -> MarkdownElementType
pub fn cnn_confusion_matrix(Array[DLTrainingSample], DLCnnModelConfig, Array[String]) -> Array[Array[Int]] raise @types.LoadError
pub fn cnn_infer(Array[Double], DLCnnModelConfig, Array[String]) -> DLInferenceResult
pub fn cnn_recognize_char(@types.Image, DLCnnModelConfig, Array[String]) -> DLInferenceResult raise @types.LoadError
pub fn cnn_recognize_digits(@types.Image, DLCnnModelConfig) -> DLInferenceResult raise @types.LoadError
pub fn cnn_recognize_letters(@types.Image, DLCnnModelConfig) -> DLInferenceResult raise @types.LoadError
pub fn cnn_train(Array[DLTrainingSample], Array[Double], Array[Double], Array[Double], Array[Double], Int, Int, Int, Int, Int, Int, Double, Int) -> (Array[Double], Array[Double], Array[Double], Array[Double], Array[DLTrainingHistory]) raise @types.LoadError
pub fn cnn_train_step(Array[Double], Int, Array[Double], Array[Double], Array[Double], Array[Double], Int, Int, Int, Int, Int, Int, Double) -> (Array[Double], Array[Double], Array[Double], Array[Double], Double) raise @types.LoadError
pub fn combined_features(@types.Image) -> Array[Double] raise @types.LoadError
pub fn complete_char_segmentation(@types.Image, min_char_width? : Int, max_char_width? : Int) -> Array[(Int, Int, Int, Int)] raise @types.LoadError
pub fn compute_confusion_matrix(Array[Int], Array[Int], Int) -> Array[Array[Int]]
pub fn compute_distance(Array[Double], Array[Double], DistanceMetric) -> Double raise @types.LoadError
pub fn compute_per_class_accuracy(Array[Array[Int]]) -> Array[Double]
pub fn compute_reading_order(Array[DocumentElement]) -> Array[Int] raise @types.LoadError
pub fn connected_components_analysis(@types.Image, connectivity? : Int) -> OcrConnectedComponentsResult raise @types.LoadError
pub fn conv2d(Array[Double], Int, Int, Int, Array[Double], Int, Int, Int, Int) -> Array[Double] raise @types.LoadError
pub fn correct_common_patterns(String) -> CorrectionResult
pub fn correct_similar_chars(String, String) -> CorrectionResult raise @types.LoadError
pub fn correct_slant(@types.Image, max_slant? : Double) -> @types.Image raise @types.LoadError
pub fn cosine_distance(Array[Double], Array[Double]) -> Double raise @types.LoadError
pub fn cosine_similarity(Array[Double], Array[Double]) -> Double
pub fn create_batch_tasks(Array[String], String, String) -> Array[BatchTask] raise @types.LoadError
pub fn create_data_loader(Array[DLTrainingSample], Int, Bool) -> DataLoader raise @types.LoadError
pub fn create_default_api_server_config() -> ApiServerConfig
pub fn create_default_batch_config() -> BatchOcrConfig
pub fn create_default_char_cnn_config(Int) -> DLCnnModelConfig
pub fn create_default_chinese_dictionary() -> DictChineseDict
pub fn create_default_cli_config() -> CliConfig
pub fn create_default_docker_config() -> DockerConfig
pub fn create_default_handwriting_config() -> HandwritingRecognitionConfig
pub fn create_default_language_model() -> LanguageModelState
pub fn create_default_model_package_config() -> ModelPackageConfig
pub fn create_default_training_config() -> TrainingConfig
pub fn create_feature_extractor(String, Int) -> DLFeatureExtractor
pub fn create_handwriting_template(String, HandwritingStyle, Array[@types.Image]) -> HandwritingTemplate raise @types.LoadError
pub fn create_neural_layer(DLLayerType, String, Array[Int]) -> DLNeuralLayer
pub fn create_training_history(Int, Double, Double, Double, Double, Double, Double) -> DLTrainingHistory
pub fn create_training_sample(@types.Image, Int, String) -> DLTrainingSample raise @types.LoadError
pub fn create_training_state() -> TrainingState
pub fn cross_entropy_loss(Array[Double], Int) -> Double
pub fn dataset_add_sample(TrainingDataset, Array[Double], String) -> TrainingDataset
pub fn dataset_create() -> TrainingDataset
pub fn dataset_stats(TrainingDataset) -> (Int, Int, Array[(String, Int)])
pub fn decompose_chinese_char(String) -> ChineseCharStructure raise @types.LoadError
pub fn dense_backward(Array[Double], Array[Double], Int, Int) -> (Array[Double], Array[Double], Array[Double])
pub fn dense_forward(Array[Double], Array[Double], Array[Double], Int, Int, String) -> Array[Double]
pub fn deskew(@types.Image) -> @types.Image raise @types.LoadError
pub fn detect_char_language(@types.Image) -> LanguageType raise @types.LoadError
pub fn detect_column_boundaries(Array[TextLineAttributes], Int, LayoutType) -> Array[Int]
pub fn detect_columns(@types.Image) -> (Int, Array[(Int, Int)]) raise @types.LoadError
pub fn detect_distortions(@types.Image) -> Array[DistortionDetectionResult] raise @types.LoadError
pub fn detect_document_columns(@types.Image) -> Int raise @types.LoadError
pub fn detect_document_language(@types.Image) -> LanguageType raise @types.LoadError
pub fn detect_handwriting_slant(@types.Image) -> Double raise @types.LoadError
pub fn detect_header_footer(Array[TextLineAttributes], Int) -> (Int, Int) raise @types.LoadError
pub fn detect_horizontal_lines(@types.Image, min_length? : Int, max_gap? : Int) -> Array[TableLine] raise @types.LoadError
pub fn detect_horizontal_table_lines(@types.Image, min_length? : Int, max_gap? : Int) -> Array[(Int, Int, Int)] raise @types.LoadError
pub fn detect_image_regions_markdown(@types.Image, min_area? : Int) -> Array[MarkdownImage] raise @types.LoadError
pub fn detect_language_enhanced(@types.Image) -> LanguageDetectionResult raise @types.LoadError
pub fn detect_layout_type(Array[TextLineAttributes], Int, Int) -> LayoutType raise @types.LoadError
pub fn detect_list_item(TextLineAttributes) -> ListItemInfo
pub fn detect_paragraphs(Array[DocumentBlock], max_line_spacing_ratio? : Double) -> Array[Array[Int]]
pub fn detect_skew_angle(@types.Image) -> Double raise @types.LoadError
pub fn detect_skew_angle_robust(@types.Image) -> Double raise @types.LoadError
pub fn detect_table_enhanced(@types.Image, min_table_size? : Int) -> Array[EnhancedTableResult] raise @types.LoadError
pub fn detect_text_lines_projection(@types.Image, min_height? : Int, max_gap? : Int) -> Array[TextLineInfo] raise @types.LoadError
pub fn detect_text_regions(@types.Image) -> Array[TextRegion] raise @types.LoadError
pub fn detect_titles(Array[DocumentBlock], title_font_size_threshold? : Int) -> Array[Int]
pub fn detect_touching_chars(@types.Image, min_char_width? : Int, max_char_width? : Int) -> Array[Int] raise @types.LoadError
pub fn detect_vertical_lines(@types.Image, min_length? : Int, max_gap? : Int) -> Array[TableLine] raise @types.LoadError
pub fn detect_vertical_table_lines(@types.Image, min_length? : Int, max_gap? : Int) -> Array[(Int, Int, Int)] raise @types.LoadError
pub fn determine_reading_order_markdown(Array[MarkdownElement]) -> Array[Int]
pub fn dictionary_create(Array[String]) -> Dictionary raise @types.LoadError
pub fn dictionary_create_common_english() -> Dictionary
pub fn dictionary_match(String, Dictionary, max_distance? : Int) -> Array[(String, Int)] raise @types.LoadError
pub fn digit_ocr_default_config() -> DigitOcrConfig
pub fn document_enhance(@types.Image) -> @types.Image raise @types.LoadError
pub fn document_statistics_enhanced(Array[DocumentBlock]) -> (Int, Int, Int, Int, Int, Int, Int)
pub fn document_structure_stats(DocumentStructure) -> (Int, Int, Int, Int, Int)
pub fn document_understanding_enhanced_default_config() -> DocumentUnderstandingEnhancedConfig
pub fn drop_fall_segmentation(@types.Image, start_x? : Int) -> DropFallResult raise @types.LoadError
pub fn edit_distance(String, String) -> Int raise @types.LoadError
pub fn elastic_match(Array[Double], Array[Double], elasticity? : Double, grid_size? : Int) -> Double
pub fn english_ocr_default_config() -> EnglishOcrConfig
pub fn enhanced_chinese_ocr_default_config() -> EnhancedChineseOcrConfig
pub fn enhanced_document_to_markdown(EnhancedDocument, include_header_footer? : Bool) -> String
pub fn enhanced_element_distribution(EnhancedDocument) -> Array[(String, Int)]
pub fn enhanced_table_to_markdown(EnhancedTableResult) -> String
pub fn ensemble_default_config() -> EnsembleConfig
pub fn ensemble_predict(Array[Double], KnnClassifier, Array[(String, Array[Double])], config? : EnsembleConfig) -> ClassificationResult raise @types.LoadError
pub fn estimate_memory_usage(Int, Int, Int, Int) -> MemoryUsageStats
pub fn euclidean_distance(Array[Double], Array[Double]) -> Double raise @types.LoadError
pub fn evaluate_cnn_model(Array[DLTrainingSample], DLCnnModelConfig, Array[String]) -> (Double, Double) raise @types.LoadError
pub fn evaluate_scan_quality(@types.Image) -> ScanQuality raise @types.LoadError
pub fn extract_all_cells(@types.Image, TableStructure, padding? : Int) -> Array[@types.Image] raise @types.LoadError
pub fn extract_cell_image(@types.Image, TableCell, padding? : Int) -> @types.Image raise @types.LoadError
pub fn extract_char_image(@types.Image, CharSegment, target_size? : Int, padding? : Int) -> @types.Image raise @types.LoadError
pub fn extract_combined_enhanced_features(@types.Image, OcrAccuracyEnhancedConfig) -> Array[Double] raise @types.LoadError
pub fn extract_combined_ocr_features(@types.Image) -> Array[Double] raise @types.LoadError
pub fn extract_directional_features(@types.Image) -> Array[Double]
pub fn extract_document_text(Array[DocumentBlock], include_headers? : Bool, include_footers? : Bool) -> String
pub fn extract_features(DLFeatureExtractor, @types.Image) -> Array[Double]
pub fn extract_gabor_ocr_features(@types.Image, num_orientations? : Int, num_frequencies? : Int) -> Array[Double]
pub fn extract_handwriting_features(@types.Image, String) -> HandwritingCharFeature raise @types.LoadError
pub fn extract_handwriting_stroke_features(@types.Image) -> HandwritingStrokeFeatures raise @types.LoadError
pub fn extract_headings(DocumentStructure) -> Array[DocumentElement]
pub fn extract_hw_stroke_features(@types.Image) -> Array[StrokeFeature]
pub fn extract_images_enhanced(@types.Image, min_area? : Int) -> Array[ExtractedImage]
pub fn extract_paragraphs(DocumentStructure) -> Array[DocumentElement]
pub fn extract_stroke_features(@types.Image) -> Array[Double] raise @types.LoadError
pub fn extract_text_line_image(@types.Image, TextLineInfo, padding? : Int) -> @types.Image raise @types.LoadError
pub fn extract_text_lines(@types.Image) -> Array[@types.Image] raise @types.LoadError
pub fn extract_title(DocumentStructure) -> String
pub fn extract_zernike_moments(@types.Image, max_order? : Int) -> Array[Double] raise @types.LoadError
pub fn fast_connected_components(@types.Image) -> Array[Int] raise @types.LoadError
pub fn fast_downsample_2x(@types.Image) -> @types.Image raise @types.LoadError
pub fn fast_gaussian_blur_1d(@types.Image, Array[Double]) -> @types.Image raise @types.LoadError
pub fn fast_threshold_lut(@types.Image, Array[Int]) -> @types.Image raise @types.LoadError
pub fn filter_components_by_area(OcrConnectedComponentsResult, Int, Int) -> Array[OcrConnectedComponent] raise @types.LoadError
pub fn filter_components_by_aspect_ratio(OcrConnectedComponentsResult, Double, Double) -> Array[OcrConnectedComponent] raise @types.LoadError
pub fn filter_components_by_position(OcrConnectedComponentsResult, Int, Int, Int, Int) -> Array[OcrConnectedComponent] raise @types.LoadError
pub fn filter_noise_segments(Array[(Int, Int, Int, Int)], Int, Int, min_area_ratio? : Double, max_area_ratio? : Double) -> Array[(Int, Int, Int, Int)] raise @types.LoadError
pub fn find_line_intersections(Array[(Int, Int, Int)], Array[(Int, Int, Int)]) -> Array[(Int, Int)]
pub fn find_similar_chinese_chars(DictChineseDict, String, top_n? : Int) -> Array[DictCharMatch] raise @types.LoadError
pub fn full_postprocess_correction(String, context_type? : String) -> CorrectionResult raise @types.LoadError
pub fn generate_3500_chinese_templates(char_set? : String) -> Array[(String, Array[Double])]
pub fn generate_accuracy_report(AccuracyStats, String) -> String
pub fn generate_api_config_json(ApiServerConfig) -> String
pub fn generate_batch_summary(Array[BatchTask], Double) -> BatchResultSummary raise @types.LoadError
pub fn generate_chinese_char_info_db() -> Array[ChineseCharInfo]
pub fn generate_chinese_dictionary_report(DictChineseDict) -> String
pub fn generate_chinese_templates(char_set? : String) -> Array[(String, Array[Double])]
pub fn generate_cli_help() -> String
pub fn generate_correction_report(Array[CorrectionResult]) -> String
pub fn generate_deployment_package(DockerConfig, ApiServerConfig, ModelPackageConfig) -> String
pub fn generate_digit_templates() -> Array[(String, Array[Double])]
pub fn generate_docker_compose(DockerConfig) -> String
pub fn generate_dockerfile(DockerConfig) -> String
pub fn generate_english_templates(case_sensitive? : Bool) -> Array[(String, Array[Double])]
pub fn generate_enhanced_chinese_templates(char_set_size? : Int) -> Array[(String, Array[Double])]
pub fn generate_enhanced_handwriting_templates(char_set? : String, num_variants? : Int) -> Array[(String, Array[Double])]
pub fn generate_env_config(DeploymentEnvironment) -> String
pub fn generate_handwriting_templates(char_set? : String) -> Array[(String, Array[Double])]
pub fn generate_health_check_config(ApiServerConfig) -> String
pub fn generate_image_extraction_report(Array[ExtractedImage]) -> String
pub fn generate_markdown_image_placeholder(MarkdownImage, Int) -> String
pub fn generate_model_manifest(ModelPackageConfig) -> String
pub fn generate_performance_report(PerformanceBenchmark, String) -> String
pub fn generate_punctuation_templates() -> Array[PunctuationTemplate]
pub fn generate_robustness_report(ScanQuality, Array[DistortionDetectionResult], ComplexLayoutAnalysis) -> RobustnessReport
pub fn generate_training_progress_report(TrainingState, TrainingConfig) -> String
pub fn generate_training_report(Array[DLTrainingHistory], DLCnnModelConfig) -> String
pub fn get_elements_in_reading_order(DocumentStructure) -> Array[DocumentElement]
pub fn grid_features(@types.Image, grid_rows? : Int, grid_cols? : Int) -> GridFeatures raise @types.LoadError
pub fn handwriting_feature_similarity(HandwritingCharFeature, HandwritingCharFeature) -> Double
pub fn handwriting_ocr_default_config() -> HandwritingOcrConfig
pub fn handwriting_ocr_enhanced_default_config() -> HandwritingOcrEnhancedConfig
pub fn handwriting_postprocess(String, Double) -> (String, Double)
pub fn handwriting_report_to_string(HandwritingRecognitionResult) -> String
pub fn hog_features(@types.Image, cell_size? : Int, num_bins? : Int) -> HogFeatures raise @types.LoadError
pub fn horizontal_projection(@types.Image) -> ProjectionResult raise @types.LoadError
pub fn hu_moments_features(@types.Image) -> Array[Double] raise @types.LoadError
pub fn is_code_block_line(TextLineAttributes, Int) -> Bool
pub fn is_heading_line(TextLineAttributes, Double) -> (Bool, Int)
pub fn is_quote_line(TextLineAttributes, Int) -> Bool
pub fn knn_add_sample(KnnClassifier, Array[Double], String) -> KnnClassifier raise @types.LoadError
pub fn knn_add_samples(KnnClassifier, Array[(Array[Double], String)]) -> KnnClassifier raise @types.LoadError
pub fn knn_create(k? : Int, distance_metric? : String) -> KnnClassifier raise @types.LoadError
pub fn knn_predict(KnnClassifier, Array[Double]) -> ClassificationResult raise @types.LoadError
pub fn language_model_postprocess(String, Array[String], Array[Double]) -> (String, Array[Double])
pub fn lbp_features(@types.Image, radius? : Int, num_points? : Int, num_bins? : Int) -> LbpFeatures raise @types.LoadError
pub fn load_model(String) -> DLCnnModelConfig?
pub fn lookup_by_pinyin(DictChineseDict, String) -> Array[DictCharEntry] raise @types.LoadError
pub fn lookup_by_radical(DictChineseDict, String) -> Array[DictCharEntry] raise @types.LoadError
pub fn lookup_by_structure(DictChineseDict, DictCharStructure) -> Array[DictCharEntry]
pub fn lookup_char(DictChineseDict, String) -> DictCharEntry? raise @types.LoadError
pub fn manhattan_distance(Array[Double], Array[Double]) -> Double raise @types.LoadError
pub fn mark_task_completed(BatchTask, Int, Double, Double) -> BatchTask
pub fn mark_task_failed(BatchTask, String, Double) -> BatchTask
pub fn markdown_document_to_string(MarkdownDocument) -> String
pub fn markdown_table_to_string(MarkdownTable) -> String
pub fn max_pool2d(Array[Double], Int, Int, Int, Int) -> Array[Double] raise @types.LoadError
pub fn max_pool2d_backward(Array[Double], Array[Double], Int, Int, Int, Int) -> Array[Double]
pub fn merge_adjacent_components(Array[OcrConnectedComponent], Int) -> Array[OcrConnectedComponent] raise @types.LoadError
pub fn merge_small_segments(Array[(Int, Int, Int, Int)], Int, Int) -> Array[(Int, Int, Int, Int)] raise @types.LoadError
pub fn multi_scale_recognize(@types.Image, Array[(String, Array[Double])], Array[Int], distance_metric? : String) -> (String, Double)
pub fn multilingual_ocr_default_config() -> MultilingualOcrConfig
pub fn multilingual_ocr_enhanced_default_config() -> MultilingualOcrEnhancedConfig
pub fn next_batch(DataLoader) -> (Array[DLTrainingSample], DataLoader) raise @types.LoadError
pub fn ngram_create(Array[String], n? : Int) -> NgramModel raise @types.LoadError
pub fn ngram_score(String, NgramModel) -> Double raise @types.LoadError
pub fn niblack_threshold(@types.Image, window_size? : Int, k? : Double) -> @types.Image raise @types.LoadError
pub fn normalize_features(Array[Double]) -> Array[Double] raise @types.LoadError
pub fn normalize_handwriting_size(@types.Image, Int) -> @types.Image raise @types.LoadError
pub fn normalize_image(Array[Double], Double, Double) -> Array[Double] raise @types.LoadError
pub fn normalize_punctuation(String, Array[String]) -> String
pub fn ocr_accuracy_enhanced_default_config() -> OcrAccuracyEnhancedConfig
pub fn ocr_pipeline_stats(@types.Image) -> (Int, Int, Double) raise @types.LoadError
pub fn ocr_postprocess(OcrResult, config? : PostProcessConfig, dictionary? : Dictionary, ngram_model? : NgramModel) -> OcrResult raise @types.LoadError
pub fn ocr_preprocess(@types.Image, binarization_method? : String) -> @types.Image raise @types.LoadError
pub fn ocr_result_to_hocr(OCRPageResult) -> String
pub fn ocr_result_to_json(OCRPageResult) -> String
pub fn ocr_result_to_text(OCRPageResult) -> String
pub fn optimize_reading_order(Array[DocumentBlock], Int) -> Array[Int]
pub fn otsu_threshold(@types.Image) -> @types.Image raise @types.LoadError
pub fn parse_cli_args(Array[String]) -> CliConfig raise @types.LoadError
pub fn postprocess_default_config() -> PostProcessConfig
pub fn progress_bar_to_string(Double, width? : Int) -> String
pub fn projection_features(@types.Image) -> ProjectionFeatures raise @types.LoadError
pub fn recognize_by_components(DictChineseDict, DictCharStructure, Array[String], stroke_count_hint? : Int) -> Array[(String, Double)]
pub fn recognize_chinese(@types.Image, config? : ChineseOcrConfig) -> OcrResult raise @types.LoadError
pub fn recognize_chinese_advanced(@types.Image, config? : AdvancedChineseOcrConfig) -> OcrResult raise @types.LoadError
pub fn recognize_digits(@types.Image, config? : DigitOcrConfig) -> OcrResult raise @types.LoadError
pub fn recognize_english(@types.Image, config? : EnglishOcrConfig) -> OcrResult raise @types.LoadError
pub fn recognize_enhanced_chinese(@types.Image, config? : EnhancedChineseOcrConfig) -> OcrResult raise @types.LoadError
pub fn recognize_handwriting(@types.Image, config? : HandwritingOcrConfig) -> OcrResult raise @types.LoadError
pub fn recognize_handwriting_char(@types.Image, Array[HandwritingTemplate], HandwritingRecognitionConfig) -> HandwritingRecognitionResult raise @types.LoadError
pub fn recognize_handwriting_enhanced(@types.Image, config? : HandwritingOcrEnhancedConfig) -> OcrResult raise @types.LoadError
pub fn recognize_multilingual(@types.Image, config? : MultilingualOcrConfig) -> OcrResult raise @types.LoadError
pub fn recognize_multilingual_enhanced(@types.Image, config? : MultilingualOcrEnhancedConfig) -> OcrResult raise @types.LoadError
pub fn recognize_ocr_enhanced(@types.Image, Array[(String, Array[Double])], config? : OcrAccuracyEnhancedConfig) -> OcrResult raise @types.LoadError
pub fn recognize_symbols_markdown(String) -> Array[MarkdownSymbol]
pub fn recognize_table(@types.Image, min_line_length? : Int) -> TableStructure raise @types.LoadError
pub fn record_training_metrics(TrainingState, TrainingMetrics) -> TrainingState
pub fn relu(Double) -> Double
pub fn relu_backward(Array[Double], Array[Double]) -> Array[Double]
pub fn resize_image_for_cnn(@types.Image, Int, Int) -> Array[Double] raise @types.LoadError
pub fn robustness_report_to_string(RobustnessReport) -> String
pub fn rotate_document(@types.Image, Double) -> @types.Image raise @types.LoadError
pub fn sauvola_threshold(@types.Image, window_size? : Int, k? : Double, r? : Double) -> @types.Image raise @types.LoadError
pub fn save_model(DLCnnModelConfig, Array[Double], String) -> Bool
pub fn scan_document_preprocess(@types.Image, ScanOCRConfig) -> @types.Image raise @types.LoadError
pub fn scan_ocr_default_config() -> ScanOCRConfig
pub fn scan_ocr_recognize(@types.Image, ScanOCRConfig) -> OCRPageResult raise @types.LoadError
pub fn segment_by_connected_components(@types.Image, min_area? : Int, max_area? : Int) -> Array[(Int, Int, Int, Int)] raise @types.LoadError
pub fn segment_chars_projection(@types.Image, TextLineInfo, min_width? : Int, max_gap? : Int) -> Array[CharSegment] raise @types.LoadError
pub fn segment_connected_strokes(@types.Image, HandwritingRecognitionConfig) -> StrokeSegmentationResult
pub fn segment_cursive_chars(@types.Image, min_char_width? : Int, max_char_width? : Int) -> Array[(Int, Int, Int, Int)]
pub fn segment_page(@types.Image) -> Array[TextRegion] raise @types.LoadError
pub fn segment_paragraphs(Array[TextLineAttributes]) -> Array[Array[TextLineAttributes]]
pub fn select_adaptive_config(ScanQuality) -> AdaptivePreprocessConfig raise @types.LoadError
pub fn shadow_removal(@types.Image, kernel_size? : Int) -> @types.Image raise @types.LoadError
pub fn sigmoid(Double) -> Double
pub fn sigmoid_backward(Array[Double], Array[Double]) -> Array[Double]
pub fn smart_reading_order(Array[EnhancedDocumentElement], LayoutType, Array[Int]) -> Array[Int] raise @types.LoadError
pub fn smart_segment_chars(@types.Image, MultilingualOcrEnhancedConfig) -> Array[(Int, Int, Int, Int, String)] raise @types.LoadError
pub fn smart_spacing_process(String, Array[String]) -> String
pub fn softmax(Array[Double]) -> Array[Double]
pub fn softmax_cross_entropy_backward(Array[Double], Int) -> Array[Double] raise @types.LoadError
pub fn split_train_validation(Array[DLTrainingSample], Double, Bool) -> (Array[DLTrainingSample], Array[DLTrainingSample])
pub fn standardize_features(Array[Double]) -> Array[Double] raise @types.LoadError
pub fn statistical_features(@types.Image) -> StatisticalFeatures raise @types.LoadError
pub fn structure_based_filter(@types.Image, Array[ChineseCharInfo], max_candidates? : Int) -> Array[ChineseCharInfo]
pub fn template_matcher_add(TemplateMatcher, String, Array[Double]) -> TemplateMatcher raise @types.LoadError
pub fn template_matcher_create(distance_metric? : String) -> TemplateMatcher
pub fn template_matcher_predict(TemplateMatcher, Array[Double]) -> ClassificationResult raise @types.LoadError
pub fn understand_document(@types.Image) -> DocumentStructure raise @types.LoadError
pub fn understand_document_enhanced(@types.Image, config? : DocumentUnderstandingEnhancedConfig) -> (Array[DocumentBlock], Array[DocumentTreeNode], String) raise @types.LoadError
pub fn unrolled_pixel_sum(@types.Image) -> Int raise @types.LoadError
pub fn update_task_progress(BatchTask, Double, Int, Int) -> BatchTask
pub fn update_weights_sgd(Array[Double], Array[Double], Double) -> Array[Double] raise @types.LoadError
pub fn vertical_projection(@types.Image) -> ProjectionResult raise @types.LoadError
pub fn weighted_knn_classify(Array[Double], Array[(String, Array[Double])], k? : Int, distance_metric? : String) -> (String, Double, Array[(String, Double)])
pub fn AugmentationType::equal(Self, Self) -> Bool
pub fn AugmentationType::not_equal(Self, Self) -> Bool
pub fn BatchTaskStatus::equal(Self, Self) -> Bool
pub fn BatchTaskStatus::not_equal(Self, Self) -> Bool
pub fn ComplexLayoutType::equal(Self, Self) -> Bool
pub fn ComplexLayoutType::not_equal(Self, Self) -> Bool
pub fn DLLayerType::equal(Self, Self) -> Bool
pub fn DLLayerType::not_equal(Self, Self) -> Bool
pub fn DeploymentEnvironment::equal(Self, Self) -> Bool
pub fn DeploymentEnvironment::not_equal(Self, Self) -> Bool
pub fn DictCharStructure::equal(Self, Self) -> Bool
pub fn DictCharStructure::not_equal(Self, Self) -> Bool
pub fn DistanceMetric::equal(Self, Self) -> Bool
pub fn DistanceMetric::not_equal(Self, Self) -> Bool
pub fn DistortionType::equal(Self, Self) -> Bool
pub fn DistortionType::not_equal(Self, Self) -> Bool
pub fn DocumentBlockType::equal(Self, Self) -> Bool
pub fn DocumentBlockType::not_equal(Self, Self) -> Bool
pub fn DocumentElementType::equal(Self, Self) -> Bool
pub fn DocumentElementType::not_equal(Self, Self) -> Bool
pub fn HandwritingStyle::equal(Self, Self) -> Bool
pub fn HandwritingStyle::not_equal(Self, Self) -> Bool
pub fn LRSchedulerType::equal(Self, Self) -> Bool
pub fn LRSchedulerType::not_equal(Self, Self) -> Bool
pub fn LanguageType::equal(Self, Self) -> Bool
pub fn LanguageType::not_equal(Self, Self) -> Bool
pub fn LayoutType::equal(Self, Self) -> Bool
pub fn LayoutType::not_equal(Self, Self) -> Bool
pub fn ListItemType::equal(Self, Self) -> Bool
pub fn ListItemType::not_equal(Self, Self) -> Bool
pub fn MarkdownElementType::equal(Self, Self) -> Bool
pub fn MarkdownElementType::not_equal(Self, Self) -> Bool
pub fn OcrErrorType::equal(Self, Self) -> Bool
pub fn OcrErrorType::not_equal(Self, Self) -> Bool
pub fn OptimizerType::equal(Self, Self) -> Bool
pub fn OptimizerType::not_equal(Self, Self) -> Bool
pub fn PageRegionType::equal(Self, Self) -> Bool
pub fn PageRegionType::not_equal(Self, Self) -> Bool
pub fn ScanQualityLevel::equal(Self, Self) -> Bool
pub fn ScanQualityLevel::not_equal(Self, Self) -> Bool
pub fn StrokeType::equal(Self, Self) -> Bool
pub fn StrokeType::not_equal(Self, Self) -> Bool
pub fn TableLineType::equal(Self, Self) -> Bool
pub fn TableLineType::not_equal(Self, Self) -> Bool
pub fn TextRegionType::equal(Self, Self) -> Bool
pub fn TextRegionType::not_equal(Self, Self) -> Boolpub(all) struct AccuracyStats {
total_chars : Int
correct_chars : Int
char_accuracy : Double
total_words : Int
correct_words : Int
word_accuracy : Double
total_lines : Int
correct_lines : Int
line_accuracy : Double
false_positives : Int
false_negatives : Int
precision : Double
recall : Double
f1_score : Double
} derive(Eq, Debug)pub(all) struct AdaptivePreprocessConfig {
quality_level : ScanQualityLevel
denoise_strength : Int
contrast_enhance : Double
binarization_method : String
deskew_enabled : Bool
sharpen_enabled : Bool
morph_open_enabled : Bool
morph_close_enabled : Bool
recommended_dpi : Int
} derive(Eq, Debug)fn AdaptivePreprocessConfig::not_equal(x : AdaptivePreprocessConfig, y : AdaptivePreprocessConfig) -> Boolfn AdvancedChineseOcrConfig::not_equal(x : AdvancedChineseOcrConfig, y : AdvancedChineseOcrConfig) -> Boolpub(all) struct AugmentationConfig {
enabled : Bool
augmentation_types : Array[AugmentationType]
rotation_range : Double
shift_range : Double
scale_range : Double
noise_level : Double
blur_sigma : Double
brightness_range : Double
contrast_range : Double
probability : Double
} derive(Eq, Debug)pub(all) struct BatchProgress {
total_tasks : Int
completed_tasks : Int
failed_tasks : Int
skipped_tasks : Int
current_task_index : Int
overall_progress : Double
current_task_progress : Double
elapsed_time_ms : Double
estimated_remaining_ms : Double
pages_per_second : Double
chars_per_second : Double
} derive(Eq, Debug)pub(all) struct BatchResultSummary {
total_tasks : Int
successful_tasks : Int
failed_tasks : Int
skipped_tasks : Int
success_rate : Double
total_pages : Int
total_chars : Int
total_time_ms : Double
average_accuracy : Double
average_pages_per_second : Double
average_chars_per_second : Double
failed_task_ids : Array[String]
output_files : Array[String]
} derive(Eq, Debug)pub(all) struct BatchTask {
task_id : String
input_path : String
output_path : String
status : BatchTaskStatus
progress : Double
error_message : String
start_time : Double
end_time : Double
page_count : Int
char_count : Int
accuracy_estimate : Double
} derive(Eq, Debug)pub(all) struct ComplexLayoutAnalysis {
layout_type : ComplexLayoutType
num_columns : Int
has_floating_elements : Bool
has_cross_page_elements : Bool
column_boundaries : Array[Int]
reading_order_strategy : String
confidence : Double
} derive(Eq, Debug)pub(all) struct ConfusionMatrix {
entries : Array[ConfusionEntry]
total_errors : Int
} derive(Eq, Debug)pub(all) struct CorrectionResult {
original : String
corrected : String
is_corrected : Bool
confidence : Double
corrections : Array[CorrectionEntry]
} derive(Eq, Debug)pub(all) struct DLCnnModelConfig {
model_name : String
input_width : Int
input_height : Int
input_channels : Int
num_classes : Int
conv_layers : Array[DLConv2DConfig]
dense_layers : Array[DLDenseConfig]
learning_rate : Double
batch_size : Int
epochs : Int
} derive(Eq, Debug)pub(all) struct DataLoader {
samples : Array[DLTrainingSample]
batch_size : Int
shuffle : Bool
current_index : Int
epoch : Int
} derive(Eq, Debug)pub(all) struct DictCharEntry {
char : String
unicode : String
pinyin : Array[String]
stroke_count : Int
structure : DictCharStructure
radical : String
components : Array[DictComponent]
frequency : Int
level : String
} derive(Eq, Debug)pub(all) struct DictComponentResult {
char : String
detected_components : Array[DictComponent]
detected_structure : DictCharStructure
confidence : Double
candidate_chars : Array[(String, Double)]
} derive(Eq, Debug)pub(all) struct DistortionDetectionResult {
distortion_type : DistortionType
severity : Double
angle : Double
confidence : Double
correction_params : Array[(String, Double)]
} derive(Eq, Debug)fn DistortionDetectionResult::not_equal(x : DistortionDetectionResult, y : DistortionDetectionResult) -> Boolpub(all) struct DockerConfig {
base_image : String
app_port : Int
memory_limit_mb : Int
cpu_limit : Double
enable_gpu : Bool
environment : DeploymentEnvironment
volumes : Array[(String, String)]
} derive(Eq, Debug)pub(all) struct DocumentBlock {
block_type : DocumentBlockType
x : Int
y : Int
width : Int
height : Int
text : String
confidence : Double
font_size : Int
is_bold : Bool
is_italic : Bool
line_spacing : Double
indent_level : Int
column_index : Int
reading_order : Int
parent_id : Int
children_ids : Array[Int]
} derive(Eq, Debug)pub(all) struct DocumentElement {
element_type : DocumentElementType
x : Int
y : Int
width : Int
height : Int
text : String
confidence : Double
font_size : Int
font_weight : String
reading_order : Int
} derive(Eq, Debug)pub(all) struct DocumentStructure {
elements : Array[DocumentElement]
num_elements : Int
title : String
num_headings : Int
num_paragraphs : Int
reading_order : Array[Int]
bounding_box : (Int, Int, Int, Int)
} derive(Eq, Debug)pub(all) struct DocumentTreeNode {
node_id : Int
block : DocumentBlock
children : Array[DocumentTreeNode]
depth : Int
} derive(Eq, Debug)pub(all) struct DocumentUnderstandingEnhancedConfig {
min_block_width : Int
min_block_height : Int
title_font_size_threshold : Int
heading_font_size_threshold : Int
max_line_spacing_ratio : Double
enable_column_detection : Bool
enable_hierarchy : Bool
enable_title_detection : Bool
} derive(Eq, Debug)fn DocumentUnderstandingEnhancedConfig::not_equal(x : DocumentUnderstandingEnhancedConfig, y : DocumentUnderstandingEnhancedConfig) -> Boolpub(all) struct DropFallResult {
split_points : Array[SplitPoint]
char_regions : Array[(Int, Int)]
success : Bool
} derive(Eq, Debug)fn EnhancedChineseOcrConfig::not_equal(x : EnhancedChineseOcrConfig, y : EnhancedChineseOcrConfig) -> Boolpub(all) struct EnhancedDocument {
layout_type : LayoutType
num_columns : Int
page_width : Int
page_height : Int
header_height : Int
footer_height : Int
body_top : Int
body_bottom : Int
elements : Array[EnhancedDocumentElement]
reading_order : Array[Int]
column_boundaries : Array[Int]
} derive(Eq, Debug)pub(all) struct EnhancedDocumentElement {
element_type : MarkdownElementType
x : Int
y : Int
width : Int
height : Int
content : String
confidence : Double
font_size : Double
font_weight : String
alignment : String
list_info : ListItemInfo
column_index : Int
indent_level : Int
is_header : Bool
is_footer : Bool
} derive(Eq, Debug)fn EnhancedDocumentElement::not_equal(x : EnhancedDocumentElement, y : EnhancedDocumentElement) -> Boolpub(all) struct EnhancedTableResult {
x : Int
y : Int
width : Int
height : Int
rows : Int
cols : Int
cells : Array[TableCellContent]
has_header : Bool
header_rows : Int
detection : TableDetectionResult
confidence : Double
} derive(Eq, Debug)pub(all) struct ErrorAnalysisEntry {
error_type : OcrErrorType
expected : String
actual : String
context_before : String
context_after : String
confidence : Double
count : Int
} derive(Eq, Debug)pub(all) struct ErrorAnalysisReport {
total_errors : Int
substitution_count : Int
insertion_count : Int
deletion_count : Int
reorder_count : Int
top_errors : Array[ErrorAnalysisEntry]
suggestions : Array[String]
} derive(Eq, Debug)pub(all) struct HandwritingCharFeature {
char : String
num_strokes : Int
stroke_types : Array[StrokeType]
aspect_ratio : Double
density : Double
center_of_mass_x : Double
center_of_mass_y : Double
horizontal_projection : Array[Double]
vertical_projection : Array[Double]
contour_complexity : Double
slant_angle : Double
size_normalized : Bool
} derive(Eq, Debug)fn HandwritingCharFeature::not_equal(x : HandwritingCharFeature, y : HandwritingCharFeature) -> Boolpub(all) struct HandwritingOcrEnhancedConfig {
min_char_width : Int
max_char_width : Int
min_char_height : Int
max_char_height : Int
target_size : Int
distance_metric : String
num_variants : Int
elasticity : Double
use_slant_correction : Bool
use_elastic_matching : Bool
use_stroke_features : Bool
use_postprocessing : Bool
} derive(Eq, Debug)fn HandwritingOcrEnhancedConfig::equal(HandwritingOcrEnhancedConfig, HandwritingOcrEnhancedConfig) -> Boolfn HandwritingOcrEnhancedConfig::not_equal(x : HandwritingOcrEnhancedConfig, y : HandwritingOcrEnhancedConfig) -> Boolpub(all) struct HandwritingRecognitionConfig {
min_stroke_length : Double
max_stroke_angle : Double
segmentation_threshold : Double
similarity_threshold : Double
enable_slant_correction : Bool
enable_size_normalization : Bool
enable_stroke_order : Bool
max_candidates : Int
style_priority : HandwritingStyle
} derive(Eq, Debug)fn HandwritingRecognitionConfig::equal(HandwritingRecognitionConfig, HandwritingRecognitionConfig) -> Boolfn HandwritingRecognitionConfig::not_equal(x : HandwritingRecognitionConfig, y : HandwritingRecognitionConfig) -> Boolpub(all) struct HandwritingRecognitionResult {
predicted_char : String
confidence : Double
top_candidates : Array[(String, Double)]
detected_style : HandwritingStyle
num_strokes_detected : Int
slant_angle : Double
preprocessing_time_ms : Double
feature_extraction_time_ms : Double
matching_time_ms : Double
total_time_ms : Double
} derive(Eq, Debug)fn HandwritingRecognitionResult::equal(HandwritingRecognitionResult, HandwritingRecognitionResult) -> Boolfn HandwritingRecognitionResult::not_equal(x : HandwritingRecognitionResult, y : HandwritingRecognitionResult) -> Boolfn HandwritingStrokeFeatures::not_equal(x : HandwritingStrokeFeatures, y : HandwritingStrokeFeatures) -> Boolpub(all) struct HandwritingTemplate {
char : String
style : HandwritingStyle
features : HandwritingCharFeature
sample_count : Int
avg_accuracy : Double
} derive(Eq, Debug)pub(all) struct KnnClassifier {
samples : Array[TrainingSample]
k : Int
distance_metric : String
} derive(Eq, Debug)pub(all) struct LRSchedulerConfig {
scheduler_type : LRSchedulerType
initial_lr : Double
min_lr : Double
decay_rate : Double
decay_steps : Int
warmup_steps : Int
patience : Int
factor : Double
} derive(Eq, Debug)fn LanguageDetectionResult::not_equal(x : LanguageDetectionResult, y : LanguageDetectionResult) -> Boolpub(all) struct LanguageModelState {
dictionary : Array[DictionaryEntry]
common_errors : Array[CommonErrorPattern]
similar_chars : Array[SimilarCharMapping]
total_words : Int
total_corrections : Int
} derive(Eq, Debug)pub(all) struct ListItemInfo {
item_type : ListItemType
marker : String
level : Int
number : Int
} derive(Eq, Debug)pub(all) struct MarkdownDocument {
title : String
elements : Array[MarkdownElement]
tables : Array[MarkdownTable]
images : Array[MarkdownImage]
symbols : Array[MarkdownSymbol]
reading_order : Array[Int]
} derive(Eq, Debug)pub(all) struct MarkdownElement {
element_type : MarkdownElementType
x : Int
y : Int
width : Int
height : Int
content : String
confidence : Double
} derive(Eq, Debug)pub(all) struct MultilingualOcrEnhancedConfig {
enable_chinese : Bool
enable_english : Bool
enable_digits : Bool
enable_punctuation : Bool
enable_japanese : Bool
enable_korean : Bool
target_size : Int
distance_metric : String
auto_language_detection : Bool
smart_spacing : Bool
punctuation_normalization : Bool
use_language_model : Bool
} derive(Eq, Debug)fn MultilingualOcrEnhancedConfig::equal(MultilingualOcrEnhancedConfig, MultilingualOcrEnhancedConfig) -> Boolfn MultilingualOcrEnhancedConfig::not_equal(x : MultilingualOcrEnhancedConfig, y : MultilingualOcrEnhancedConfig) -> Boolfn OcrAccuracyEnhancedConfig::not_equal(x : OcrAccuracyEnhancedConfig, y : OcrAccuracyEnhancedConfig) -> Boolpub(all) struct OcrConnectedComponentsResult {
labels : Array[Int]
num_components : Int
components : Array[OcrConnectedComponent]
} derive(Eq, Debug)fn OcrConnectedComponentsResult::equal(OcrConnectedComponentsResult, OcrConnectedComponentsResult) -> Boolfn OcrConnectedComponentsResult::not_equal(x : OcrConnectedComponentsResult, y : OcrConnectedComponentsResult) -> Boolpub(all) struct OcrResult {
text : String
confidence : Double
characters : Array[OcrCharResult]
} derive(Eq, Debug)pub(all) struct OptimizerConfig {
optimizer_type : OptimizerType
learning_rate : Double
momentum : Double
beta1 : Double
beta2 : Double
epsilon : Double
weight_decay : Double
grad_clip : Double
} derive(Eq, Debug)pub(all) struct PageRegion {
region_type : PageRegionType
x : Int
y : Int
width : Int
height : Int
confidence : Double
} derive(Eq, Debug)pub(all) struct StrokeFeature {
stroke_type : StrokeType
start_x : Double
start_y : Double
end_x : Double
end_y : Double
length : Double
angle : Double
curvature : Double
pressure : Double
} derive(Eq, Debug)pub(all) struct StrokeSegmentationResult {
num_strokes : Int
strokes : Array[StrokeFeature]
segmentation_points : Array[(Int, Int)]
confidence : Double
} derive(Eq, Debug)fn StrokeSegmentationResult::not_equal(x : StrokeSegmentationResult, y : StrokeSegmentationResult) -> Boolpub(all) struct TableLine {
x1 : Int
y1 : Int
x2 : Int
y2 : Int
line_type : TableLineType
thickness : Int
} derive(Eq, Debug)pub(all) struct TextRegion {
x : Int
y : Int
width : Int
height : Int
region_type : TextRegionType
} derive(Eq, Debug)pub(all) struct TrainingConfig {
epochs : Int
batch_size : Int
optimizer : OptimizerConfig
lr_scheduler : LRSchedulerConfig
augmentation : AugmentationConfig
early_stopping_patience : Int
early_stopping_min_delta : Double
save_best_only : Bool
checkpoint_interval : Int
log_interval : Int
validation_split : Double
shuffle : Bool
random_seed : Int
} derive(Eq, Debug)pub(all) struct TrainingDataset {
samples : Array[TrainingSample]
labels : Array[String]
num_samples : Int
num_classes : Int
} derive(Eq, Debug)pub(all) struct TrainingState {
current_epoch : Int
best_val_accuracy : Double
best_epoch : Int
epochs_without_improvement : Int
total_training_time_ms : Double
history : Array[TrainingMetrics]
is_completed : Bool
stop_reason : String
} derive(Eq, Debug)fn adaptive_threshold_ocr(img : core/types.Image, block_size? : Int, c? : Int) -> core/types.Image raise core/types.LoadErrorfn analyze_complex_layout(text_blocks : Array[TextBlock], page_width : Int, page_height : Int) -> ComplexLayoutAnalysisfn analyze_layout_enhanced(img : core/types.Image, config? : DocumentUnderstandingEnhancedConfig) -> Array[DocumentBlock] raise core/types.LoadErrorfn analyze_table_structure(horizontal_lines : Array[TableLine], vertical_lines : Array[TableLine]) -> TableStructure raise core/types.LoadErrorfn background_normalization(img : core/types.Image, kernel_size? : Int) -> core/types.Image raise core/types.LoadErrorfn batch_correct_texts(texts : Array[String], context_type? : String) -> Array[CorrectionResult] raise core/types.LoadErrorfn batch_recognize_chars(images : Array[core/types.Image], config : DLCnnModelConfig, labels : Array[String]) -> Array[DLInferenceResult] raise core/types.LoadErrorfn batch_scan_ocr(images : Array[core/types.Image], config : ScanOCRConfig) -> Array[OCRPageResult] raise core/types.LoadErrorfn build_enhanced_elements(lines : Array[TextLineAttributes], page_width : Int, page_height : Int) -> EnhancedDocument raise core/types.LoadErrorfn build_gaussian_kernel_lut(sigma : Double, radius : Int) -> Array[Double] raise core/types.LoadErrorfn build_markdown_document(ocr_result : OCRPageResult, title? : String) -> MarkdownDocument raise core/types.LoadErrorfn cache_friendly_horizontal_projection(img : core/types.Image) -> Array[Int] raise core/types.LoadErrorfn cache_friendly_vertical_projection(img : core/types.Image) -> Array[Int] raise core/types.LoadErrorfn calculate_accuracy_improvement(before_results : Array[CorrectionResult], expected_texts : Array[String]) -> (Double, Double, Double)fn calculate_accuracy_stats(expected_lines : Array[String], actual_lines : Array[String]) -> AccuracyStats raise core/types.LoadErrorfn calculate_batch_progress(tasks : Array[BatchTask], elapsed_time_ms : Double) -> BatchProgress raise core/types.LoadErrorfn calculate_char_accuracy(expected : String, actual : String) -> Doublefn calculate_edit_distance(s1 : String, s2 : String) -> Intfn calculate_learning_rate(config : LRSchedulerConfig, epoch : Int, current_lr : Double, val_loss : Double) -> Double raise core/types.LoadErrorfn calculate_word_accuracy(expected : String, actual : String) -> Doublefn calibrate_confidence_enhanced(raw_confidence : Double, distance_distribution : Array[Double]) -> Doublefn check_accuracy_threshold(stats : AccuracyStats, min_char_accuracy? : Double, min_word_accuracy? : Double, min_f1_score? : Double) -> (Bool, Array[String]) raise core/types.LoadErrorfn check_early_stopping(state : TrainingState, config : TrainingConfig, current_val_accuracy : Double) -> (Bool, TrainingState)fn cnn_confusion_matrix(test_samples : Array[DLTrainingSample], config : DLCnnModelConfig, labels : Array[String]) -> Array[Array[Int]] raise core/types.LoadErrorfn cnn_infer(image_data : Array[Double], config : DLCnnModelConfig, labels : Array[String]) -> DLInferenceResultfn cnn_recognize_char(img : core/types.Image, config : DLCnnModelConfig, labels : Array[String]) -> DLInferenceResult raise core/types.LoadErrorfn cnn_recognize_digits(img : core/types.Image, config : DLCnnModelConfig) -> DLInferenceResult raise core/types.LoadErrorfn cnn_recognize_letters(img : core/types.Image, config : DLCnnModelConfig) -> DLInferenceResult raise core/types.LoadErrorfn cnn_train(samples : Array[DLTrainingSample], conv_weights : Array[Double], conv_bias : Array[Double], dense_weights : Array[Double], dense_bias : Array[Double], in_h : Int, in_w : Int, in_c : Int, conv_out_c : Int, k_size : Int, num_classes : Int, learning_rate : Double, epochs : Int) -> (Array[Double], Array[Double], Array[Double], Array[Double], Array[DLTrainingHistory]) raise core/types.LoadErrorfn cnn_train_step(input : Array[Double], target : Int, conv_weights : Array[Double], conv_bias : Array[Double], dense_weights : Array[Double], dense_bias : Array[Double], in_h : Int, in_w : Int, in_c : Int, conv_out_c : Int, k_size : Int, num_classes : Int, learning_rate : Double) -> (Array[Double], Array[Double], Array[Double], Array[Double], Double) raise core/types.LoadErrorfn complete_char_segmentation(img : core/types.Image, min_char_width? : Int, max_char_width? : Int) -> Array[(Int, Int, Int, Int)] raise core/types.LoadErrorfn compute_distance(a : Array[Double], b : Array[Double], metric : DistanceMetric) -> Double raise core/types.LoadErrorfn compute_reading_order(elements : Array[DocumentElement]) -> Array[Int] raise core/types.LoadErrorfn connected_components_analysis(img : core/types.Image, connectivity? : Int) -> OcrConnectedComponentsResult raise core/types.LoadErrorfn correct_similar_chars(text : String, context_type : String) -> CorrectionResult raise core/types.LoadErrorfn correct_slant(img : core/types.Image, max_slant? : Double) -> core/types.Image raise core/types.LoadErrorfn create_data_loader(samples : Array[DLTrainingSample], batch_size : Int, shuffle : Bool) -> DataLoader raise core/types.LoadErrorfn create_handwriting_template(char : String, style : HandwritingStyle, samples : Array[core/types.Image]) -> HandwritingTemplate raise core/types.LoadErrorfn create_neural_layer(layer_type : DLLayerType, name : String, input_shape : Array[Int]) -> DLNeuralLayerfn create_training_history(epoch : Int, train_loss : Double, train_accuracy : Double, val_loss : Double, val_accuracy : Double, learning_rate : Double, time_ms : Double) -> DLTrainingHistoryfn create_training_sample(img : core/types.Image, label : Int, label_text : String) -> DLTrainingSample raise core/types.LoadErrorfn dataset_add_sample(dataset : TrainingDataset, features : Array[Double], label : String) -> TrainingDatasetfn deskew(img : core/types.Image) -> core/types.Image raise core/types.LoadErrorfn detect_column_boundaries(text_lines : Array[TextLineAttributes], page_width : Int, layout_type : LayoutType) -> Array[Int]fn detect_distortions(img : core/types.Image) -> Array[DistortionDetectionResult] raise core/types.LoadErrorfn detect_document_columns(img : core/types.Image) -> Int raise core/types.LoadErrorfn detect_handwriting_slant(img : core/types.Image) -> Double raise core/types.LoadErrorfn detect_header_footer(text_lines : Array[TextLineAttributes], page_height : Int) -> (Int, Int) raise core/types.LoadErrorfn detect_horizontal_table_lines(binary_img : core/types.Image, min_length? : Int, max_gap? : Int) -> Array[(Int, Int, Int)] raise core/types.LoadErrorfn detect_image_regions_markdown(binary_img : core/types.Image, min_area? : Int) -> Array[MarkdownImage] raise core/types.LoadErrorfn detect_language_enhanced(char_img : core/types.Image) -> LanguageDetectionResult raise core/types.LoadErrorfn detect_layout_type(text_lines : Array[TextLineAttributes], page_width : Int, page_height : Int) -> LayoutType raise core/types.LoadErrorfn detect_paragraphs(blocks : Array[DocumentBlock], max_line_spacing_ratio? : Double) -> Array[Array[Int]]fn detect_skew_angle(img : core/types.Image) -> Double raise core/types.LoadErrorfn detect_skew_angle_robust(binary_img : core/types.Image) -> Double raise core/types.LoadErrorfn detect_table_enhanced(binary_img : core/types.Image, min_table_size? : Int) -> Array[EnhancedTableResult] raise core/types.LoadErrorfn detect_text_lines_projection(img : core/types.Image, min_height? : Int, max_gap? : Int) -> Array[TextLineInfo] raise core/types.LoadErrorfn detect_touching_chars(img : core/types.Image, min_char_width? : Int, max_char_width? : Int) -> Array[Int] raise core/types.LoadErrorfn detect_vertical_table_lines(binary_img : core/types.Image, min_length? : Int, max_gap? : Int) -> Array[(Int, Int, Int)] raise core/types.LoadErrorfn dictionary_match(word : String, dictionary : Dictionary, max_distance? : Int) -> Array[(String, Int)] raise core/types.LoadErrorfn document_enhance(img : core/types.Image) -> core/types.Image raise core/types.LoadErrorfn document_statistics_enhanced(blocks : Array[DocumentBlock]) -> (Int, Int, Int, Int, Int, Int, Int)fn drop_fall_segmentation(img : core/types.Image, start_x? : Int) -> DropFallResult raise core/types.LoadErrorfn edit_distance(s1 : String, s2 : String) -> Int raise core/types.LoadErrorfn ensemble_predict(features : Array[Double], knn_classifier : KnnClassifier, templates : Array[(String, Array[Double])], config? : EnsembleConfig) -> ClassificationResult raise core/types.LoadErrorfn estimate_memory_usage(image_count : Int, image_width : Int, image_height : Int, channels : Int) -> MemoryUsageStatsfn evaluate_cnn_model(test_samples : Array[DLTrainingSample], config : DLCnnModelConfig, labels : Array[String]) -> (Double, Double) raise core/types.LoadErrorfn extract_all_cells(img : core/types.Image, structure : TableStructure, padding? : Int) -> Array[core/types.Image] raise core/types.LoadErrorfn extract_cell_image(img : core/types.Image, cell : TableCell, padding? : Int) -> core/types.Image raise core/types.LoadErrorfn extract_char_image(img : core/types.Image, char : CharSegment, target_size? : Int, padding? : Int) -> core/types.Image raise core/types.LoadErrorfn extract_combined_enhanced_features(char_img : core/types.Image, config : OcrAccuracyEnhancedConfig) -> Array[Double] raise core/types.LoadErrorfn extract_combined_ocr_features(img : core/types.Image) -> Array[Double] raise core/types.LoadErrorfn extract_document_text(blocks : Array[DocumentBlock], include_headers? : Bool, include_footers? : Bool) -> Stringfn extract_gabor_ocr_features(char_img : core/types.Image, num_orientations? : Int, num_frequencies? : Int) -> Array[Double]fn extract_handwriting_features(img : core/types.Image, char : String) -> HandwritingCharFeature raise core/types.LoadErrorfn extract_handwriting_stroke_features(char_img : core/types.Image) -> HandwritingStrokeFeatures raise core/types.LoadErrorfn extract_text_line_image(img : core/types.Image, line : TextLineInfo, padding? : Int) -> core/types.Image raise core/types.LoadErrorfn extract_zernike_moments(char_img : core/types.Image, max_order? : Int) -> Array[Double] raise core/types.LoadErrorfn fast_connected_components(binary_img : core/types.Image) -> Array[Int] raise core/types.LoadErrorfn fast_downsample_2x(img : core/types.Image) -> core/types.Image raise core/types.LoadErrorfn fast_gaussian_blur_1d(img : core/types.Image, kernel : Array[Double]) -> core/types.Image raise core/types.LoadErrorfn fast_threshold_lut(img : core/types.Image, lut : Array[Int]) -> core/types.Image raise core/types.LoadErrorfn filter_components_by_area(result : OcrConnectedComponentsResult, min_area : Int, max_area : Int) -> Array[OcrConnectedComponent] raise core/types.LoadErrorfn filter_components_by_aspect_ratio(result : OcrConnectedComponentsResult, min_ratio : Double, max_ratio : Double) -> Array[OcrConnectedComponent] raise core/types.LoadErrorfn filter_components_by_position(result : OcrConnectedComponentsResult, x : Int, y : Int, width : Int, height : Int) -> Array[OcrConnectedComponent] raise core/types.LoadErrorfn find_similar_chinese_chars(dict : DictChineseDict, target_char : String, top_n? : Int) -> Array[DictCharMatch] raise core/types.LoadErrorfn full_postprocess_correction(text : String, context_type? : String) -> CorrectionResult raise core/types.LoadErrorfn generate_batch_summary(tasks : Array[BatchTask], total_time_ms : Double) -> BatchResultSummary raise core/types.LoadErrorfn generate_deployment_package(docker_config : DockerConfig, api_config : ApiServerConfig, model_config : ModelPackageConfig) -> Stringfn generate_robustness_report(quality : ScanQuality, distortions : Array[DistortionDetectionResult], layout : ComplexLayoutAnalysis) -> RobustnessReportfn generate_training_report(history : Array[DLTrainingHistory], config : DLCnnModelConfig) -> Stringfn grid_features(img : core/types.Image, grid_rows? : Int, grid_cols? : Int) -> GridFeatures raise core/types.LoadErrorfn handwriting_feature_similarity(feat1 : HandwritingCharFeature, feat2 : HandwritingCharFeature) -> Doublefn handwriting_postprocess(text : String, confidence : Double) -> (String, Double)fn hog_features(img : core/types.Image, cell_size? : Int, num_bins? : Int) -> HogFeatures raise core/types.LoadErrorfn knn_add_sample(classifier : KnnClassifier, features : Array[Double], label : String) -> KnnClassifier raise core/types.LoadErrorfn knn_add_samples(classifier : KnnClassifier, samples : Array[(Array[Double], String)]) -> KnnClassifier raise core/types.LoadErrorfn knn_predict(classifier : KnnClassifier, features : Array[Double]) -> ClassificationResult raise core/types.LoadErrorfn lbp_features(img : core/types.Image, radius? : Int, num_points? : Int, num_bins? : Int) -> LbpFeatures raise core/types.LoadErrorfn lookup_by_pinyin(dict : DictChineseDict, pinyin : String) -> Array[DictCharEntry] raise core/types.LoadErrorfn lookup_by_radical(dict : DictChineseDict, radical : String) -> Array[DictCharEntry] raise core/types.LoadErrorfn lookup_by_structure(dict : DictChineseDict, structure : DictCharStructure) -> Array[DictCharEntry]fn merge_adjacent_components(components : Array[OcrConnectedComponent], max_gap : Int) -> Array[OcrConnectedComponent] raise core/types.LoadErrorfn next_batch(loader : DataLoader) -> (Array[DLTrainingSample], DataLoader) raise core/types.LoadErrorfn niblack_threshold(img : core/types.Image, window_size? : Int, k? : Double) -> core/types.Image raise core/types.LoadErrorfn normalize_handwriting_size(img : core/types.Image, target_size : Int) -> core/types.Image raise core/types.LoadErrorfn ocr_pipeline_stats(img : core/types.Image) -> (Int, Int, Double) raise core/types.LoadErrorfn ocr_postprocess(result : OcrResult, config? : PostProcessConfig, dictionary? : Dictionary, ngram_model? : NgramModel) -> OcrResult raise core/types.LoadErrorfn ocr_preprocess(img : core/types.Image, binarization_method? : String) -> core/types.Image raise core/types.LoadErrorfn otsu_threshold(img : core/types.Image) -> core/types.Image raise core/types.LoadErrorfn progress_bar_to_string(progress : Double, width? : Int) -> Stringfn recognize_by_components(dict : DictChineseDict, detected_structure : DictCharStructure, detected_components : Array[String], stroke_count_hint? : Int) -> Array[(String, Double)]fn recognize_chinese(img : core/types.Image, config? : ChineseOcrConfig) -> OcrResult raise core/types.LoadErrorfn recognize_chinese_advanced(img : core/types.Image, config? : AdvancedChineseOcrConfig) -> OcrResult raise core/types.LoadErrorfn recognize_digits(img : core/types.Image, config? : DigitOcrConfig) -> OcrResult raise core/types.LoadErrorfn recognize_english(img : core/types.Image, config? : EnglishOcrConfig) -> OcrResult raise core/types.LoadErrorfn recognize_enhanced_chinese(img : core/types.Image, config? : EnhancedChineseOcrConfig) -> OcrResult raise core/types.LoadError#deprecated("Use recognize_handwriting_enhanced instead")
fn recognize_handwriting(img : core/types.Image, config? : HandwritingOcrConfig) -> OcrResult raise core/types.LoadErrorfn recognize_handwriting_char(img : core/types.Image, templates : Array[HandwritingTemplate], config : HandwritingRecognitionConfig) -> HandwritingRecognitionResult raise core/types.LoadErrorfn recognize_handwriting_enhanced(img : core/types.Image, config? : HandwritingOcrEnhancedConfig) -> OcrResult raise core/types.LoadError#deprecated("Use recognize_multilingual_enhanced instead")
fn recognize_multilingual(img : core/types.Image, config? : MultilingualOcrConfig) -> OcrResult raise core/types.LoadErrorfn recognize_multilingual_enhanced(img : core/types.Image, config? : MultilingualOcrEnhancedConfig) -> OcrResult raise core/types.LoadErrorfn recognize_ocr_enhanced(img : core/types.Image, templates : Array[(String, Array[Double])], config? : OcrAccuracyEnhancedConfig) -> OcrResult raise core/types.LoadErrorfn recognize_table(img : core/types.Image, min_line_length? : Int) -> TableStructure raise core/types.LoadErrorfn resize_image_for_cnn(img : core/types.Image, target_width : Int, target_height : Int) -> Array[Double] raise core/types.LoadErrorfn rotate_document(img : core/types.Image, angle : Double) -> core/types.Image raise core/types.LoadErrorfn sauvola_threshold(img : core/types.Image, window_size? : Int, k? : Double, r? : Double) -> core/types.Image raise core/types.LoadErrorfn scan_document_preprocess(img : core/types.Image, config : ScanOCRConfig) -> core/types.Image raise core/types.LoadErrorfn scan_ocr_recognize(img : core/types.Image, config : ScanOCRConfig) -> OCRPageResult raise core/types.LoadErrorfn segment_by_connected_components(img : core/types.Image, min_area? : Int, max_area? : Int) -> Array[(Int, Int, Int, Int)] raise core/types.LoadErrorfn segment_chars_projection(img : core/types.Image, line : TextLineInfo, min_width? : Int, max_gap? : Int) -> Array[CharSegment] raise core/types.LoadErrorfn segment_connected_strokes(img : core/types.Image, config : HandwritingRecognitionConfig) -> StrokeSegmentationResultfn segment_cursive_chars(img : core/types.Image, min_char_width? : Int, max_char_width? : Int) -> Array[(Int, Int, Int, Int)]fn select_adaptive_config(quality : ScanQuality) -> AdaptivePreprocessConfig raise core/types.LoadErrorfn shadow_removal(img : core/types.Image, kernel_size? : Int) -> core/types.Image raise core/types.LoadErrorfn smart_reading_order(elements : Array[EnhancedDocumentElement], layout_type : LayoutType, column_boundaries : Array[Int]) -> Array[Int] raise core/types.LoadErrorfn smart_segment_chars(img : core/types.Image, config : MultilingualOcrEnhancedConfig) -> Array[(Int, Int, Int, Int, String)] raise core/types.LoadErrorfn split_train_validation(samples : Array[DLTrainingSample], validation_split : Double, shuffle : Bool) -> (Array[DLTrainingSample], Array[DLTrainingSample])fn structure_based_filter(char_img : core/types.Image, char_db : Array[ChineseCharInfo], max_candidates? : Int) -> Array[ChineseCharInfo]fn template_matcher_add(matcher : TemplateMatcher, label : String, template : Array[Double]) -> TemplateMatcher raise core/types.LoadErrorfn template_matcher_predict(matcher : TemplateMatcher, features : Array[Double]) -> ClassificationResult raise core/types.LoadError#deprecated("Use understand_document_enhanced instead")
fn understand_document(img : core/types.Image) -> DocumentStructure raise core/types.LoadErrorfn understand_document_enhanced(img : core/types.Image, config? : DocumentUnderstandingEnhancedConfig) -> (Array[DocumentBlock], Array[DocumentTreeNode], String) raise core/types.LoadErrorfn unrolled_pixel_sum(img : core/types.Image) -> Int raise core/types.LoadErrorInstall
Download zipMoonBit computer vision: OCR, face recognition, pose estimation, SLAM, video, 3D vision.