setup.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. from setuptools import setup
  15. from io import open
  16. with open('requirements.txt', encoding="utf-8-sig") as f:
  17. requirements = f.readlines()
  18. requirements.append('tqdm')
  19. def readme():
  20. with open('README.md', encoding="utf-8-sig") as f:
  21. README = f.read()
  22. return README
  23. setup(
  24. name='PPOCRLabel',
  25. packages=['PPOCRLabel'],
  26. package_data = {'PPOCRLabel': ['libs/*','resources/strings/*','resources/icons/*']},
  27. package_dir={'PPOCRLabel': ''},
  28. include_package_data=True,
  29. entry_points={"console_scripts": ["PPOCRLabel= PPOCRLabel.PPOCRLabel:main"]},
  30. version='2.1.3',
  31. install_requires=requirements,
  32. license='Apache License 2.0',
  33. description='PPOCRLabelv2 is a semi-automatic graphic annotation tool suitable for OCR field, with built-in PP-OCR model to automatically detect and re-recognize data. It is written in Python3 and PyQT5, supporting rectangular box, table, irregular text and key information annotation modes. Annotations can be directly used for the training of PP-OCR detection and recognition models.',
  34. long_description=readme(),
  35. long_description_content_type='text/markdown',
  36. url='https://github.com/PaddlePaddle/PaddleOCR',
  37. download_url='https://github.com/PaddlePaddle/PaddleOCR.git',
  38. keywords=[
  39. 'ocr textdetection textrecognition paddleocr crnn east star-net rosetta ocrlite db chineseocr chinesetextdetection chinesetextrecognition'
  40. ],
  41. classifiers=[
  42. 'Intended Audience :: Developers', 'Operating System :: OS Independent',
  43. 'Natural Language :: English',
  44. 'Programming Language :: Python :: 3.6',
  45. 'Programming Language :: Python :: 3.7', 'Topic :: Utilities'
  46. ], )