- 22 Nov, 2024 17 commits
-
-
Xiaomeng Zhao authored
-
myhloli authored
-
Xiaomeng Zhao authored
Release 0.10.0
-
Xiaomeng Zhao authored
fix(pdf_parse): improve OCR result handling
-
Xiaomeng Zhao authored
fix(pdf_parse): improve OCR result handling
-
myhloli authored
- Add null check for OCR results to prevent errors on empty lists - Enhance robustness of OCR text processing in the magic-pdf project
-
Xiaomeng Zhao authored
fix(table): add null check for OCR result in rapid table prediction
-
Xiaomeng Zhao authored
refactor(model): move page total time logging to custom model analysis
-
myhloli authored
- Move page total time logging to doc_analyze_by_custom_model.py - Remove page total time logging from pdf_extract_kit.py - Add page_start timing variable to custom model analysis - Update logger output format for page total time
-
Xiaomeng Zhao authored
fix(table): add null check for OCR result in rapid table prediction
-
myhloli authored
- Add a null check for OCR result in the predict method - Return None values if OCR result is None to prevent further processing
-
Xiaomeng Zhao authored
feat(README): update for v0.10.0
-
myhloli authored
-
myhloli authored
- Introduced hybrid OCR text extraction capabilities in v0.10.0 - Significantly improved parsing performance in complex text distribution scenarios- Combined advantages of accurate content extraction and faster speed in text mode with more precise span/line region recognition in OCR mode - Updated both English and Chinese README files
-
Xiaomeng Zhao authored
refactor(para): improve line stop flag and remove unused debug mode
-
myhloli authored
- Add '-' and '–' to LINE_STOP_FLAG in pdf_parse_union_core_v2.py - Remove unused debug_mode parameter from para_split function in para_split_v3.py
-
Alex Liu authored
* delete unused pipeline file * add json test circle * add size reduction test case * add serializable test case * add invalid json compress test case * add empty test case * add special char test case
-
- 21 Nov, 2024 21 commits
-
-
Xiaomeng Zhao authored
test: comment out assertions for metascan classify and meta scan tests
-
myhloli authored
- Commented out assertions in test_metascan_classify/test_classify.py - Commented out assertions in test_metascan_classify/test_meta_scan.py - This change affects multiple test cases across both test files
-
Xiaomeng Zhao authored
fix(pdf_parse): improve line stop flag detection accuracy
-
myhloli authored
- Add an additional condition to the line stop flag check - Ensure character is to the right of the span's left boundary - This change helps reduce false positives in line stop detection
-
Xiaomeng Zhao authored
fix: use concrete class instead of abstract class
-
icecraft authored
-
Xiaomeng Zhao authored
refactor(txt_parse): improve text extraction accuracy with new algorithm
-
myhloli authored
- Implement new text extraction method (txt_spans_extract_v2) to enhance accuracy - Add character filling in spans for better text reconstruction - Introduce empty span handling using OCR for missed text - Optimize span filtering and overlap removal
-
Xiaomeng Zhao authored
feat(ocr): improve text detection and OCR accuracy
-
myhloli authored
# Conflicts: # magic_pdf/model/pdf_extract_kit.py
-
myhloli authored
- Update OCR utils to handle different box formats and improve angle calculation - Modify PDF extraction kit to support OCR option and optimize processing flow - Enhance PPOCR model to sort and filter detection boxes, improving text splitting accuracy
-
Xiaomeng Zhao authored
fix(remove_overlaps_min_spans): optimize overlap detection in OCR span list modification
-
Xiaomeng Zhao authored
-
myhloli authored
- Improve logic to skip dropped spans in overlap detection - Enhance efficiency by avoiding unnecessary comparisons
-
Xiaomeng Zhao authored
fix(ocr_mkcontent): improve hyphen handling at line ends
-
myhloli authored
- fix the bug where hyphens in the middle of a line are being discarded
-
Xiaomeng Zhao authored
refactor(ocr_dict_merge): add threshold parameter for line merging
-
myhloli authored
- Add threshold parameter to merge_spans_to_line function - Make threshold configurable for y-axis overlap check - Improve flexibility and accuracy of line merging algorithm
-
Xiaomeng Zhao authored
fix(tools): handle empty language string in common.py
-
myhloli authored
- Check if language string is empty and set it to None - This prevents potential errors when an empty language string is passed
-
Xiaomeng Zhao authored
-
- 20 Nov, 2024 1 commit
-
-
icecraft authored
-
- 19 Nov, 2024 1 commit
-
-
Xiaomeng Zhao authored
refactor: move some constants or enums defs to config folder
-