openocr-python


Nameopenocr-python JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/Topdu/OpenOCR
Summarya python package for openocr, which is used to help developers quickly deploy OCR algorithms implemented in the openocr framework.
upload_time2024-09-18 05:09:29
maintainerNone
docs_urlNone
authorOpenOCR
requires_pythonNone
licenseNone
keywords python ocr str openocr openocr
VCS
bugtrack_url
requirements imgaug lmdb numpy opencv-python pyyaml rapidfuzz tqdm
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# OpenOCR

This is the application deployment from the [OpenOCR](https://github.com/Topdu/OpenOCR) project. We currently offer three functionalities: text detection, text recognition, and end-to-end recognition. The models are based on the results from the [FVL](https://fvl.fudan.edu.cn)OCR team's performance in the recent [PaddleOCR Algorithm Model Challenge—Task 1: End-to-End OCR Recognition](https://aistudio.baidu.com/competition/detail/1131/0/introduction). In terms of results, the end-to-end recognition accuracy on the B leaderboard has improved by 2.5% compared to PP-OCRv4, while the inference speed remains the same.

### Installation and Usage

We provide a quick method for deploying OCR inference:

`pip install paddlepaddle-gpu`

`pip install openocr-python`

You can quickly access the features of OpenOCR by using:

`import openocr`

### Quick Inference

Use `openocr.infer(ImgPath)` for fast end-to-end inference on the image at the specified path.

### Features List

OpenOCR currently includes three core inference interfaces, implemented using the class's __call__ method:

- Text Detection
  Use the `OpenOCRDet` class to create a text detector:
  `text_detector = openocr.OpenOCRDet()`
  Then, use `text_detector(img)` to detect text in the image. This text detector returns a list of text bounding boxes found in the image.
- Text Recognition
  Use the `OpenOCRRec` class to create a text recognizer:
  `text_recognizer = openocr.OpenOCRRec()`
  Then, use `text_recognizer(imglist)` to recognize text in the images. The text recognizer accepts a list of image elements and returns the recognition results and inference time in list format.
- End-to-End
  Use the `OpenOCRE2E` class to create an end-to-end recognizer:
  `text_sys = OpenOCRE2E()`
  Then, use `text_sys(img)` to perform detection on the image. The end-to-end recognizer returns a list containing both the detection boxes and the corresponding recognition results.

### Introduction to OpenOCR

OpenOCR aims to establish a unified training and evaluation benchmark for scene text detection and recognition algorithms, at the same time, serves as the official code repository for the OCR team from the [FVL](https://fvl.fudan.edu.cn) Laboratory, Fudan University.

We sincerely welcome the researcher to recommend OCR or relevant algorithms and point out any potential factual errors or bugs. Upon receiving the suggestions, we will promptly evaluate and critically reproduce them. We look forward to collaborating with you to advance the development of OpenOCR and continuously contribute to the OCR community!

### Acknowledgement

This codebase is built based on the [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR). Thanks for their awesome work!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Topdu/OpenOCR",
    "name": "openocr-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, OCR, STR, OpenOCR, openocr",
    "author": "OpenOCR",
    "author_email": "18300180089@fudan.edu.cn",
    "download_url": "https://files.pythonhosted.org/packages/d0/bc/7e37f3fc220b37b259790691ff0cb4a9788541af87d0caaf2f5d949ac609/openocr-python-0.1.0.tar.gz",
    "platform": null,
    "description": "\n# OpenOCR\n\nThis is the application deployment from the [OpenOCR](https://github.com/Topdu/OpenOCR) project. We currently offer three functionalities: text detection, text recognition, and end-to-end recognition. The models are based on the results from the [FVL](https://fvl.fudan.edu.cn)OCR team's performance in the recent [PaddleOCR Algorithm Model Challenge\u2014Task 1: End-to-End OCR Recognition](https://aistudio.baidu.com/competition/detail/1131/0/introduction). In terms of results, the end-to-end recognition accuracy on the B leaderboard has improved by 2.5% compared to PP-OCRv4, while the inference speed remains the same.\n\n### Installation and Usage\n\nWe provide a quick method for deploying OCR inference:\n\n`pip install paddlepaddle-gpu`\n\n`pip install openocr-python`\n\nYou can quickly access the features of OpenOCR by using:\n\n`import openocr`\n\n### Quick Inference\n\nUse `openocr.infer(ImgPath)` for fast end-to-end inference on the image at the specified path.\n\n### Features List\n\nOpenOCR currently includes three core inference interfaces, implemented using the class's __call__ method:\n\n- Text Detection\n  Use the `OpenOCRDet` class to create a text detector:\n  `text_detector = openocr.OpenOCRDet()`\n  Then, use `text_detector(img)` to detect text in the image. This text detector returns a list of text bounding boxes found in the image.\n- Text Recognition\n  Use the `OpenOCRRec` class to create a text recognizer:\n  `text_recognizer = openocr.OpenOCRRec()`\n  Then, use `text_recognizer(imglist)` to recognize text in the images. The text recognizer accepts a list of image elements and returns the recognition results and inference time in list format.\n- End-to-End\n  Use the `OpenOCRE2E` class to create an end-to-end recognizer:\n  `text_sys = OpenOCRE2E()`\n  Then, use `text_sys(img)` to perform detection on the image. The end-to-end recognizer returns a list containing both the detection boxes and the corresponding recognition results.\n\n### Introduction to OpenOCR\n\nOpenOCR aims to establish a unified training and evaluation benchmark for scene text detection and recognition algorithms, at the same time, serves as the official code repository for the OCR team from the [FVL](https://fvl.fudan.edu.cn) Laboratory, Fudan University.\n\nWe sincerely welcome the researcher to recommend OCR or relevant algorithms and point out any potential factual errors or bugs. Upon receiving the suggestions, we will promptly evaluate and critically reproduce them. We look forward to collaborating with you to advance the development of OpenOCR and continuously contribute to the OCR community!\n\n### Acknowledgement\n\nThis codebase is built based on the [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR). Thanks for their awesome work!\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "a python package for openocr, which is used to help developers quickly deploy OCR algorithms implemented in the openocr framework.",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/Topdu/OpenOCR",
        "Source Code": "https://github.com/Topdu/OpenOCR"
    },
    "split_keywords": [
        "python",
        " ocr",
        " str",
        " openocr",
        " openocr"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57761ccde3d90a6c3252217f5a3c1e3f0731ed3306eef98e59f77e9eff7bbd7a",
                "md5": "a200174adaa3fe8fa3355d99c10fdcee",
                "sha256": "7df44f8114253888cab3e67bb37eb92abea76935aad8d9e4a39fff54e3cdd456"
            },
            "downloads": -1,
            "filename": "openocr_python-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a200174adaa3fe8fa3355d99c10fdcee",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 44375,
            "upload_time": "2024-09-18T05:09:27",
            "upload_time_iso_8601": "2024-09-18T05:09:27.065090Z",
            "url": "https://files.pythonhosted.org/packages/57/76/1ccde3d90a6c3252217f5a3c1e3f0731ed3306eef98e59f77e9eff7bbd7a/openocr_python-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0bc7e37f3fc220b37b259790691ff0cb4a9788541af87d0caaf2f5d949ac609",
                "md5": "3231b9b09d46c8f929d08b735d544943",
                "sha256": "b0ffa132637fe43ef513c8f91d1cfbcff8b7e58c6ea11d981c952424aa465c5c"
            },
            "downloads": -1,
            "filename": "openocr-python-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3231b9b09d46c8f929d08b735d544943",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 42582,
            "upload_time": "2024-09-18T05:09:29",
            "upload_time_iso_8601": "2024-09-18T05:09:29.442508Z",
            "url": "https://files.pythonhosted.org/packages/d0/bc/7e37f3fc220b37b259790691ff0cb4a9788541af87d0caaf2f5d949ac609/openocr-python-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-18 05:09:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Topdu",
    "github_project": "OpenOCR",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "imgaug",
            "specs": []
        },
        {
            "name": "lmdb",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "opencv-python",
            "specs": [
                [
                    "<=",
                    "4.6.0.66"
                ]
            ]
        },
        {
            "name": "pyyaml",
            "specs": []
        },
        {
            "name": "rapidfuzz",
            "specs": []
        },
        {
            "name": "tqdm",
            "specs": []
        }
    ],
    "lcname": "openocr-python"
}
        
Elapsed time: 0.42505s