Commit Graph
1506 Commits
Author SHA1 Message Date
icecraft 969101ddf2 fix: uncorrect pair match 2024-10-25 20:44:17 +08:00
icecraft 2c60172b83 feat: update return result 2024-10-25 15:58:09 +08:00
icecraft 92579040c4 feat: update table match caption algorithm 2024-10-25 15:55:47 +08:00
Xiaomeng Zhao 82dd7ac5bf Merge pull request #782 from icecraft/feat/data_api
Feat/data api
2024-10-24 11:37:09 +08:00
icecraft c200effc3a style: remove unsed log info 2024-10-24 11:14:31 +08:00
icecraft bb1799541d feat: update docs deps 2024-10-24 11:09:30 +08:00
icecraft 283b597a6e feat: add [figure | table] match [caption | footnote] match algorithm v2
feat: add Data api
2024-10-24 10:50:04 +08:00
Xiaomeng Zhao e36627beee Merge pull request #777 from myhloli/add-doclayout-yolo
feat: add support for non-PDF file conversion to PDF
2024-10-23 19:46:51 +08:00
myhloli 4834baf4ba feat: add support for non-PDF file conversion to PDF
- Implement to_pdf function to convert non-PDF files to PDF format
- Integrate file upload functionality for PDF and image files- Update UI to include file upload component and PDF preview
- Add conversion button and update its functionality to handle new file types
2024-10-23 19:29:31 +08:00
Xiaomeng Zhao d1c0546a10 Merge pull request #776 from myhloli/add-doclayout-yolo
build(docker): add doclayout-yolo dependency
2024-10-23 18:51:12 +08:00
myhloli 2468016b42 build(docker): add doclayout-yolo dependency
- Add doclayout-yolo==0.0.2 to requirements-docker.txt
2024-10-23 18:50:38 +08:00
Xiaomeng Zhao 97585a725f Merge pull request #774 from myhloli/add-doclayout-yolo
build(setup): add doclayout_yolo dependency
2024-10-23 17:33:09 +08:00
myhloli 73fe8914cb build(setup): add doclayout_yolo dependency
- Add doclayout_yolo==0.0.2 to the list of dependencies in setup.py
2024-10-23 17:32:07 +08:00
Xiaomeng Zhao c1ba9dcbfa Merge pull request #773 from myhloli/add-doclayout-yolo
feat(model): add support for DocLayout-YOLO model
2024-10-23 17:10:00 +08:00
myhloli 1279f2cd0f feat(model): add support for DocLayout-YOLO model
- Add new layout model option: DocLayout-YOLO
- Implement model initialization and prediction for DocLayout-YOLO
- Update configuration options to include new model- Modify existing code to support both LayoutLMv3 and DocLayout-YOLO models
- Update Gradio app to support more Custom Switch
2024-10-23 17:07:39 +08:00
Xiaomeng Zhao efb5851f4b Merge pull request #769 from myhloli/add-doclayout-yolo
update:update config json
2024-10-23 10:38:31 +08:00
myhloli 790691d63c update:update config json 2024-10-23 10:34:42 +08:00
Xiaomeng Zhao d18a55ecd4 Merge pull request #766 from myhloli/docs-update
docs:Update the driver requirements on the Ubuntu system.
2024-10-21 17:31:41 +08:00
myhloli 8e72f9db6a docs:Update the driver requirements on the Ubuntu system. 2024-10-21 17:30:23 +08:00
myhloli 644085760b fix(ocr_mkcontent): expand para_to_standard_format_v2 to handle list and index blocks
- Modified the condition to include List and Index block types- This change enhances the function's capability to process different paragraph types
2024-10-21 17:16:42 +08:00
Xiaomeng Zhao e4904cd6d3 Merge pull request #765 from myhloli/add-list-group
refactor(para): improve paragraph splitting algorithm
2024-10-21 16:59:50 +08:00
myhloli 8cc76c4921 refactor(para): improve paragraph splitting algorithm
- Adjust the threshold for identifying index blocks from 3 lines to 2 lines
- Add a new function __is_list_group to detect if a group of blocks is a list
- Modify the paragraph merging logic to handle list groups differently
2024-10-21 16:57:27 +08:00
myhloli fc49f5c446 refactor(magic_pdf): remove unused parameters and simplify functions
- Remove unused parameters parse_type and lang from various functions
- Simplify function calls by removing unnecessary arguments
- Update related files to reflect these changes
2024-10-18 18:51:45 +08:00
Xiaomeng Zhao fe21eebd8c Merge pull request #753 from myhloli/dev
refactor(ocr):Increase the dilation factor in OCR to address the issue of word concatenation.
2024-10-17 14:43:47 +08:00
myhloli 011a1b973b refactor(ocr):Increase the dilation factor in OCR to address the issue of word concatenation.
- Remove unused functions such as split_long_words, ocr_mk_mm_markdown_with_para, etc.
- Simplify ocr_mk_markdown_with_para_core_v2 by removing unnecessary language detection and word splitting logic- Remove wordninja dependency from requirements
- Update ocr_model_init to include additional parameters for OCR model configuration
2024-10-17 14:42:09 +08:00
Xiaomeng Zhao 2a40984596 Merge pull request #747 from myhloli/dev
update example files
2024-10-16 16:29:01 +08:00
myhloli cf377ce4a1 update example files 2024-10-16 16:21:25 +08:00
myhloli ab3d2d1781 Merge remote-tracking branch 'origin/dev' into dev 2024-10-16 10:17:03 +08:00
myhloli 237c062de4 docs: enhance document parsing capabilities
- Improve reading order with model-based sorting- Add list recognition within text
- Implement table of contents recognition
- Support table recognition
- Enhance code block and geometric shape recognition
- Address known issues in both English and Chinese READMEs
2024-10-16 10:16:49 +08:00
Xiaomeng Zhao f50bc87be6 Merge pull request #744 from myhloli/para-split-v3
fix(para_split_v3): refine list block detection in paragraph splitting
2024-10-15 22:35:32 +08:00
myhloli 81b9fd7bdb refactor(para_split_v3): refine list block detection in paragraph splitting
- Update list block detection logic to require at least 2 numeric start lines
- Ensure the number of numeric start lines matches the number of end lines
- Remove detection of non-border starting lines for simplicity
2024-10-15 22:32:43 +08:00
Xiaomeng Zhao 0d83fb77dd Merge pull request #743 from myhloli/para-split-v3
refactor(para_split_v3): merge list and index block detection
2024-10-15 20:19:40 +08:00
myhloli 244b868443 fix(split_v3): Fix the rule adaptation for some special list samples. 2024-10-15 20:17:08 +08:00
myhloli 7e301b849b refactor(pdf): adjust span filling threshold in block construction
Increased the threshold for filling spans in blocks from 0.3 to 0.5 to improve the accuracy of block formation. This change helps refine the grouping of spans into blocks, potentially enhancing the overall structure and readability of the PDF content.
2024-10-15 20:16:05 +08:00
myhloli fdcb49d327 refactor(para_split_v3): merge list and index block detection
- Combine __is_list_block() and __is_index_block() into a single function __is_list_or_index_block()
- Simplify block type determination logic
- Remove redundant code and improve readability
- Optimize block merging process
2024-10-15 11:11:57 +08:00
myhloli 0a9a6d3e53 fix(magic_pdf): include List and Index block types in processing
Add List and Index to the list of block types being processed in the draw_bbox.py file. This inclusion ensures that these block types are handled similarly to other text-containing blocks, improving the overall document processing accuracy and consistency.
2024-10-15 01:30:27 +08:00
Xiaomeng Zhao 702b6ac92c Merge pull request #740 from myhloli/para-split-v3
feat(list&index block): detect and merge list and index blocks
2024-10-15 00:52:46 +08:00
myhloli 1f1dd3538d feat(list&index block): detect and merge list and index blocks
- Add detection for list and index blocks in OCR processing- Implement merging of list and index blocks across pages
- Update block types to include list and index categories
- Adjust text merging logic to handle new block types
- Modify layout drawing to distinguish list and index blocks
2024-10-15 00:50:48 +08:00
icecraftandicecraft c479245e7a feat: manager docs with sphinx (#737)
* feat: manager docs with sphinx

* fix: readthedocs configure

* feat: support multiple language

* fix: add .readthedocs.yaml

* fix: requirments.txt path

---------

Co-authored-by: icecraft <xurui1@pjlab.org.cn>
2024-10-14 19:42:49 +08:00
Xiaomeng Zhao b9631f30a9 Merge pull request #718 from myhloli/para-split-v3
fix: Solving the Grouping Anomaly Issue with Multiple Consecutive Non-Text Blocks
2024-10-10 22:23:05 +08:00
myhloli 7b42d5a0c4 fix: Solving the Grouping Anomaly Issue with Multiple Consecutive Non-Text Blocks 2024-10-10 22:21:01 +08:00
Xiaomeng Zhao 964715b26c Merge pull request #717 from myhloli/dev
Update how_to_download_models_zh_cn.md
2024-10-10 19:03:02 +08:00
Xiaomeng Zhao d1c9c7dd89 Merge branch 'opendatalab:dev' into dev 2024-10-10 19:01:39 +08:00
Xiaomeng Zhao ea7bc620f3 Merge pull request #716 from myhloli/para-split-v3
feat(pdf_parse_union_core_v2): reintegrate para_split_v3 and add page range support
2024-10-10 19:01:16 +08:00
myhloli 6f63e70e94 feat(pdf_parse_union_core_v2): reintegrate para_split_v3 and add page range support
- Reintegrate para_split_v3 into the pdf_parse_union_core_v2 process
- Add support for specifying page range in doc_analyze_by_custom_model
- Implement garbage collection and memory cleaning after processing
- Refine image loading from PDF, including handling out-of-range pages
2024-10-10 18:54:31 +08:00
Xiaomeng Zhao 7f9d80fc0d Update how_to_download_models_zh_cn.md 2024-10-09 17:03:16 +08:00
Xiaomeng Zhao 675f8e66f4 Merge pull request #706 from myhloli/dev
Update README_Windows_CUDA_Acceleration_en_US.md
2024-10-09 16:38:42 +08:00
Xiaomeng Zhao 4e58bf8f5a Update README_Windows_CUDA_Acceleration_en_US.md 2024-10-09 16:35:50 +08:00
Xiaomeng Zhao 1030ebad08 Merge pull request #701 from myhloli/dev
docs: update CUDA acceleration guides and README content
2024-10-09 00:28:23 +08:00
myhloli a1c7b5a7af docs: update CUDA acceleration guides and README content
- Update GPU hardware support information in README.md and README_zh-CN.md
- Enhance CUDA acceleration guides for Ubuntu and Windows
- Modify README_zh-CN.md to reflect changes in GPU requirements and configurations
- Update TODO list to mark semantic reading order as completed
2024-10-09 00:27:39 +08:00