1. 09 Sep, 2024 1 commit
    • myhloli's avatar
      feat(ocr): pass language parameter for custom model init · 4b372f3f
      myhloli authored
      Pass the `lang` parameter to `custom_model_init` in `doc_analyze` to support language-specific OCR configurations. This enhancement allows the use of language information to improve OCR accuracy when processing PDFs.
      4b372f3f
  2. 02 Sep, 2024 1 commit
  3. 30 Aug, 2024 1 commit
    • Xiaomeng Zhao's avatar
      feat(cli&analyze&pipeline): add start_page and end_page args for pagination (#507) · 0f91fcf6
      Xiaomeng Zhao authored
      * feat(cli&analyze&pipeline): add start_page and end_page args for paginationAdd start_page_id and end_page_id arguments to various components of the PDF parsing
      pipeline to support pagination functionality. This feature allows users to specify the
      range of pages to be processed, enhancing the efficiency and flexibility of the system.
      
      * feat(cli&analyze&pipeline): add start_page and end_page args for paginationAdd start_page_id and end_page_id arguments to various components of the PDF parsing
      pipeline to support pagination functionality. This feature allows users to specify the
      range of pages to be processed, enhancing the efficiency and flexibility of the system.
      
      * feat(cli&analyze&pipeline): add start_page and end_page args for paginationAdd start_page_id and end_page_id arguments to various components of the PDF parsing
      pipeline to support pagination functionality. This feature allows users to specify the
      range of pages to be processed, enhancing the efficiency and flexibility of the system.
      0f91fcf6
  4. 09 Aug, 2024 1 commit
    • myhloli's avatar
      fix(doc-analyze): adjust image scaling limit to 9000 pixels · 445a397f
      myhloli authored
      Previously, images were not enlarged if their width or height exceeded 3000 pixels.
      This threshold has been increased to 9000 pixels to better handle high-resolutionscans and improve the analysis of documents with larger dimensions.
      445a397f
  5. 02 Aug, 2024 1 commit
    • Kaiwen Liu's avatar
      feat(model inference): add table recognition and conversion to LaTeX (#284) · 37925f36
      Kaiwen Liu authored
      * # add table recognition using struct-eqtable
      ## Changelog
      31/07/20204
      - Support table recognition. Table images will be converted into html.
      
      ### how to use the new feature:
      set the attribute 'table-mode' to 'true' in magic-pdf.json
      
      ### caution:
      it takes 200s to 500s to convert a single table image using cpu
      
      * # add table recognition using struct-eqtable
      ## Changelog
      31/07/20204
      - Support table recognition. Table images will be converted into LaTex.
      
      ### how to use the new feature:
      set the attribute 'table-mode' to 'true' in magic-pdf.json
      
      ### caution:
      it takes 200s to 500s to convert a single table image using cpu
      
      * # feat(model inference): add table recognition and convertion to LaTeX
      
      # What's Changed
      
      ### New Features
      
      - Add table content recognition, we use weights of [StructEqTable](https://github.com/UniModal4Reasoning/StructEqTable-Deploy) to convert table image to LaTex.
      
      ### Instruction
      
      - pip install pypandoc struct-eqtable==0.1.0
      - Download [StructEqTable weights](https://huggingface.co/wanderkid/PDF-Extract-Kit/tree/main/models/TabRec
      
      ) and put it under models/ directory.
      - Edit 'table-mode' value to turn on table recognition function which is turned off by default.
      - If you did not download any models before, refer to [how to download models](docs/how_to_download_models_zh_cn.md)。
      
      * add table recognition and convertion to LaTeX
      
      * add table recognition and conversion to LaTeX
      
      * add table recognition and conversion to LaTeX
      
      * add table recognition and conversion to LaTeX
      
      ---------
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      37925f36
  6. 01 Aug, 2024 1 commit
  7. 31 Jul, 2024 1 commit
    • liukaiwen's avatar
      # add table recognition using struct-eqtable · b29badc1
      liukaiwen authored
      ## Changelog
      31/07/20204
      - Support table recognition. Table images will be converted into html.
      
      ### how to use the new feature:
      set the attribute 'table-mode' to 'true' in magic-pdf.json
      
      ### caution:
      it takes 200s to 500s to convert a single table image using cpu
      b29badc1
  8. 30 Jul, 2024 1 commit
  9. 14 Jul, 2024 1 commit
    • myhloli's avatar
      refactor(magic_pdf): implement model singleton pattern for custom models · 054abe33
      myhloli authored
      Introduce a Singleton pattern to manage custom models in the magic_pdf module.
      This change improves the efficiency by ensuring that a single instance of the
      custom model is created and reused, thereby reducing the overhead of multiple
      instantiate calls for the same model configuration.
      054abe33
  10. 12 Jul, 2024 1 commit
    • myhloli's avatar
      feat(config-reader): add models-dir and device-mode configurations · 695b3579
      myhloli authored
      Add new configuration options for custom model directories and device modeselection. This allows users to specify the directory where models are stored
      and choose between CPU and GPU modes for model inference. The configurations
      are read from a JSON file and can be easily extended to support additional
      options in the future.
      695b3579
  11. 11 Jul, 2024 2 commits
  12. 10 Jul, 2024 1 commit
  13. 09 Jul, 2024 1 commit
  14. 08 Jul, 2024 1 commit
    • 赵小蒙's avatar
      update: · 1ee81a9a
      赵小蒙 authored
      1.Disable scaling when loading large images.
      2.Moving the logic for channel conversion in image processing.
      1ee81a9a
  15. 28 Jun, 2024 1 commit
  16. 26 Jun, 2024 1 commit
  17. 18 Jun, 2024 1 commit