onnxtr

View on PyPIReverse Dependencies (0)

0.5.1 onnxtr-0.5.1-py3-none-any.whl

Wheel Details

Project: onnxtr
Version: 0.5.1
Filename: onnxtr-0.5.1-py3-none-any.whl
Download: [link]
Size: 103702
MD5: 36d4c04395af0ce2710218ea08b112c3
SHA256: 2f53f271a43213348c7ec507d3d1fcb96ae0e05fd11df0ddbb7b1a996a179b07
Uploaded: 2024-10-17 10:28:03 +0000

dist-info

METADATA

Metadata-Version: 2.1
Name: onnxtr
Version: 0.5.1
Summary: Onnx Text Recognition (OnnxTR): docTR Onnx-Wrapper for high-performance OCR on documents.
Author-Email: Felix Dittrich <felixdittrich92[at]gmail.com>
Maintainer: Felix Dittrich
Project-Url: repository, https://github.com/felixdittrich92/OnnxTR
Project-Url: tracker, https://github.com/felixdittrich92/OnnxTR/issues
Project-Url: changelog, https://github.com/felixdittrich92/OnnxTR/releases
License: Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Keywords: OCR,deep learning,computer vision,onnx,text detection,text recognition,docTR,document analysis,document processing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: <4,>=3.9.0
Requires-Dist: numpy (<3.0.0,>=1.16.0)
Requires-Dist: scipy (<2.0.0,>=1.4.0)
Requires-Dist: pypdfium2 (<5.0.0,>=4.11.0)
Requires-Dist: pyclipper (<2.0.0,>=1.2.0)
Requires-Dist: shapely (<3.0.0,>=1.6.0)
Requires-Dist: rapidfuzz (<4.0.0,>=3.0.0)
Requires-Dist: langdetect (<2.0.0,>=1.0.9)
Requires-Dist: huggingface-hub (<1.0.0,>=0.23.0)
Requires-Dist: Pillow (>=9.2.0)
Requires-Dist: defusedxml (>=0.7.0)
Requires-Dist: anyascii (>=0.3.2)
Requires-Dist: tqdm (>=4.30.0)
Requires-Dist: onnxruntime (>=1.11.0); extra == "cpu"
Requires-Dist: opencv-python (<5.0.0,>=4.5.0); extra == "cpu"
Requires-Dist: onnxruntime (>=1.11.0); extra == "cpu-headless"
Requires-Dist: opencv-python-headless (<5.0.0,>=4.5.0); extra == "cpu-headless"
Requires-Dist: onnxruntime (>=1.11.0); extra == "dev"
Requires-Dist: opencv-python (<5.0.0,>=4.5.0); extra == "dev"
Requires-Dist: weasyprint (>=55.0); extra == "dev"
Requires-Dist: matplotlib (>=3.1.0); extra == "dev"
Requires-Dist: mplcursors (>=0.3); extra == "dev"
Requires-Dist: pytest (>=5.3.2); extra == "dev"
Requires-Dist: coverage[toml] (>=4.5.4); extra == "dev"
Requires-Dist: requests (>=2.20.0); extra == "dev"
Requires-Dist: ruff (>=0.1.5); extra == "dev"
Requires-Dist: mypy (>=0.812); extra == "dev"
Requires-Dist: pre-commit (>=2.17.0); extra == "dev"
Requires-Dist: onnxruntime-gpu (>=1.11.0); extra == "gpu"
Requires-Dist: opencv-python (<5.0.0,>=4.5.0); extra == "gpu"
Requires-Dist: onnxruntime-gpu (>=1.11.0); extra == "gpu-headless"
Requires-Dist: opencv-python-headless (<5.0.0,>=4.5.0); extra == "gpu-headless"
Requires-Dist: weasyprint (>=55.0); extra == "html"
Requires-Dist: ruff (>=0.1.5); extra == "quality"
Requires-Dist: mypy (>=0.812); extra == "quality"
Requires-Dist: pre-commit (>=2.17.0); extra == "quality"
Requires-Dist: pytest (>=5.3.2); extra == "testing"
Requires-Dist: coverage[toml] (>=4.5.4); extra == "testing"
Requires-Dist: requests (>=2.20.0); extra == "testing"
Requires-Dist: matplotlib (>=3.1.0); extra == "viz"
Requires-Dist: mplcursors (>=0.3); extra == "viz"
Provides-Extra: cpu
Provides-Extra: cpu-headless
Provides-Extra: dev
Provides-Extra: gpu
Provides-Extra: gpu-headless
Provides-Extra: html
Provides-Extra: quality
Provides-Extra: testing
Provides-Extra: viz
Description-Content-Type: text/markdown
License-File: LICENSE
[Description omitted; length: 16539 characters]

WHEEL

Wheel-Version: 1.0
Generator: setuptools (75.2.0)
Root-Is-Purelib: true
Tag: py3-none-any

RECORD

Path Digest Size
onnxtr/__init__.py sha256=h7Wc2tuHLsaoCk5xNpEFEK-g11A6SJA7nAasA76TQ_Y 100
onnxtr/file_utils.py sha256=WjUKalEdR53aoeIY4e-ihy3r7J_C9qFxL40JHGPfutc 1107
onnxtr/py.typed sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
onnxtr/version.py sha256=6swtMqpBHD3aLY2AA1x8huT5k183agnIJ6bjR3m048c 23
onnxtr/contrib/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
onnxtr/contrib/artefacts.py sha256=tdmfhvfXVRYEH7uj4_hqf2cuUGoTieyNK8bXsD3zHwo 5383
onnxtr/contrib/base.py sha256=KyJ8_zDSKEWSFBszgCbLjEeI7SKg4N_iH_ZQNf90SWQ 3288
onnxtr/io/__init__.py sha256=kS7tKGFvzxOCWBOun-Y8n9CsziwRKNynjwpZEUUI03M 106
onnxtr/io/elements.py sha256=GX6rhwg_ByAlL8rAsuLgPAeJ7JsN3_V2o_ETkhh_U68 17977
onnxtr/io/html.py sha256=Em_7PjZ56SugJ9bjjcWLCMVe5ee6uUMKeZovNxJFAXw 737
onnxtr/io/image.py sha256=4tLTh2bGdA0ohh3a6mV6xD0KqNOtIVi5lJ06XSmeyMI 1759
onnxtr/io/pdf.py sha256=tD0klmxI-gkMXp56f_ZXWyPHLsUBKa_xlhNTtGV6tpU 1367
onnxtr/io/reader.py sha256=BA7DPhW-Gkmce_ZfzrOl4H3pSXVy2JBeQEuY3pWrBFg 2852
onnxtr/models/__init__.py sha256=QTfZlqUyv1d7NUCbGIUFM1DLOOXe-cqHZ7uaKkGdXvk 157
onnxtr/models/_utils.py sha256=KncsNcoWqbsxFwduce2STuGHLhv63nXEHv7CMuh6wYA 6606
onnxtr/models/builder.py sha256=dEZPHkyq-qXo4ZPs9CrufkkWYRrbvxU38ujTx333Mmo 14294
onnxtr/models/engine.py sha256=w1vzEduzVDHuxOb0JEkhPp2whrK7ViP03KZiNUNbe4I 4837
onnxtr/models/zoo.py sha256=Zcx0mOfMwUR2YAMd7ug06RvXeG2T1PzR2twS6y9X19A 5352
onnxtr/models/classification/__init__.py sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE 41
onnxtr/models/classification/zoo.py sha256=45l0gM3rMrGd_CTxA-OwULA7AOHjTx55_HMidorIjdc 3908
onnxtr/models/classification/models/__init__.py sha256=rohbM6ZQslfYchi7feZwwh-sX3XXRUhgtEJQeurAytQ 24
onnxtr/models/classification/models/mobilenet.py sha256=rgxkTpRUk_QtU2fAA-Qg3u6y0iWA-zFsmMmYVZRAWiw 4900
onnxtr/models/classification/predictor/__init__.py sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY 20
onnxtr/models/classification/predictor/base.py sha256=J-EckJM88S4V7f50ukMVgK0tCQEbRZTQ7d1p77x8lUg 2357
onnxtr/models/detection/__init__.py sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE 41
onnxtr/models/detection/core.py sha256=ZmVDHLJ1l4LQ8rFSKc7enXDkGcOWrcQv4H0SJWyLsag 3584
onnxtr/models/detection/zoo.py sha256=5kz4l67Xkr4YTDoI2wDTiI6HSaB926zfua0SZU-Kaw8 2735
onnxtr/models/detection/_utils/__init__.py sha256=oPkIYbySSbLsOk02wVPNO9bUuywC47YjaenfyTwfOsw 20
onnxtr/models/detection/_utils/base.py sha256=fOWnvBKluWKTNXSBKg3U6ckzYuF7onEKQ4AvheuTJQk 2346
onnxtr/models/detection/models/__init__.py sha256=6Ea6knYrVCR2jAmPlsVWmCdHe-c6lSRETSAuZGfhx8I 85
onnxtr/models/detection/models/differentiable_binarization.py sha256=bJ_bkeDBweY_bfyzI681rx2BpE4BcgDZe49M1FPJJig 6736
onnxtr/models/detection/models/fast.py sha256=VkwboSA7IHCXCnxUDwMTEbxXWdrpCM477PY8nO2tPOI 6294
onnxtr/models/detection/models/linknet.py sha256=aVRkCVvMDO74izdCFZRPtub7AJkxZntpsqqFrxMr8ts 6772
onnxtr/models/detection/postprocessor/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
onnxtr/models/detection/postprocessor/base.py sha256=FIhSNktNLQjGWup3xEMaOCjKQmRvtt0h8M9IFQk_5jM 5823
onnxtr/models/detection/predictor/__init__.py sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY 20
onnxtr/models/detection/predictor/base.py sha256=bt8M6I14tWC9DYjrFrqg-AU5u670_uPpuC7LmcegcCQ 2328
onnxtr/models/factory/__init__.py sha256=cKPoH2V2157lLMTR2zsljG3_IQHziodqR-XK_LG0D_I 19
onnxtr/models/factory/hub.py sha256=Fk6pX9VJD422rnVgLh37o136T_0YAsQFzY2dQplDfa4 7176
onnxtr/models/predictor/__init__.py sha256=XL25XkRkgyK7mldF-CWhg2MMakSdP5vLpDLwL59hphk 25
onnxtr/models/predictor/base.py sha256=JnaOMy6pQh0ht2bc0koGqA9rBi_F6mHNyPYGcg0T7C8 9471
onnxtr/models/predictor/predictor.py sha256=-ZQfPT70HKTfAP4etywSTy_W-pq5uPDHU00toHuWVcI 6431
onnxtr/models/preprocessor/__init__.py sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY 20
onnxtr/models/preprocessor/base.py sha256=8ZCKsB-o9uRaUm0x4x9FYpYxLXpwHyq2nVv_TlRgaMw 3990
onnxtr/models/recognition/__init__.py sha256=h1bZs55iLJBMATtzS4ntTKwfD6OGXBiiqGv_hEnOFnE 41
onnxtr/models/recognition/core.py sha256=0Q1dVXqRcDUr_ycT5tpoSH9-zuDF58GtnmxWpUS8Ibo 739
onnxtr/models/recognition/utils.py sha256=04abbjx-_OuF5iEANWIAOK3tQQl1tExPmBQx4IG04Lc 3569
onnxtr/models/recognition/zoo.py sha256=144aDgOpieatiVB0FO-otCNOAKS13AedLk7PWt4Z02M 2521
onnxtr/models/recognition/models/__init__.py sha256=IXfiuzzkft8O1CpBZWYTpFw19y49mt5rJ_iGSdaWiU0 105
onnxtr/models/recognition/models/crnn.py sha256=rTMh_stR_4oKJKHKDCTEssQsXW56meYhWHahkaDPYpc 8965
onnxtr/models/recognition/models/master.py sha256=UTsd2hSLrnTeafisVgdumAiJrpAeBm-WwYFI2ZEYERw 4778
onnxtr/models/recognition/models/parseq.py sha256=nn-LsqQ_n1bmyE_QmVMgciillIkHlcpr8OFOunOQthQ 4579
onnxtr/models/recognition/models/sar.py sha256=yEQ9_bH2kcjPr8iI-9Doq_Bm2SKhBCOeiRMv3IXp6mY 4590
onnxtr/models/recognition/models/vitstr.py sha256=D9PR2N7IjhIh_YdPCSzlGRW91c3hrn2tCE_UTd89nxg 6055
onnxtr/models/recognition/predictor/__init__.py sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY 20
onnxtr/models/recognition/predictor/_utils.py sha256=ZNm5I7ibiWfTlz302uiifCkUOu65YWa-oUBUMPrrUuQ 3406
onnxtr/models/recognition/predictor/base.py sha256=YvqSNEM3rCEttxl6hsC9zl1R97N9zO2WZfD5_-nfkR0 2483
onnxtr/transforms/__init__.py sha256=ERmmOxz_9mUkIuccNbzUa5Y6gVLLVDdyc4cCxbCCUbY 20
onnxtr/transforms/base.py sha256=sVQIIQLzPRl0Uc6OyDGrJ4H_f6CMune5j0C9VVRAV0s 3577
onnxtr/utils/__init__.py sha256=pESRJKtcQyjRxiMgZPhtPYeLbCj-YSGyMVRHTbcMONU 94
onnxtr/utils/common_types.py sha256=eC_NyIwbo9qVF33LiNPqHKfyabWq9mYEKD9gAloo5UU 601
onnxtr/utils/data.py sha256=Dh0mgeHJhyPwmm63J90uDVmIYbrp63hh1_SnYLnpgJI 4354
onnxtr/utils/fonts.py sha256=27v0cojgUrVxNF8Krb1FybSoykoxFy1XjG8lHRUuiEY 1353
onnxtr/utils/geometry.py sha256=mYsxRYpMm-UtwmXTcbiSfe2j6-50ZSWAohTcfyi7aZU 20929
onnxtr/utils/multithreading.py sha256=30T7AylM3rb52ZEI3Pk1pfB0VYraTbc7yO2vNODVVFY 2011
onnxtr/utils/reconstitution.py sha256=DGb2Isxc2At2GTOO93rbzNvnLRG2vTc5cpdzdijnA8w 6162
onnxtr/utils/repr.py sha256=kfbjGL6KymGT8spo2UL4FJXZ0XRwa7CO7Y1dTVR8dIk 2129
onnxtr/utils/visualization.py sha256=CX09qvDnNIw3BFW5F3jM4R9OcpLWAeZyoDyTAOGRvls 9925
onnxtr/utils/vocabs.py sha256=KGGsSLjGl9YLbAYcVCloNR5OIwMKMUc4idpn08EqYYY 4160
onnxtr-0.5.1.dist-info/LICENSE sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ 11357
onnxtr-0.5.1.dist-info/METADATA sha256=VvjTLpK86BT_Psv02B0MbC9GbFflt33d93uRSf3q5wE 32873
onnxtr-0.5.1.dist-info/WHEEL sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA 91
onnxtr-0.5.1.dist-info/top_level.txt sha256=r_MSUTpspp4pWEEWvly-s7ZkfCg1KwrK6-kBlXkWKU8 7
onnxtr-0.5.1.dist-info/zip-safe sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs 1
onnxtr-0.5.1.dist-info/RECORD

top_level.txt

onnxtr

zip-safe