winrtocr


Namewinrtocr JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/winrtocr
SummaryMultiprocessing library for OCR with WinRT
upload_time2023-04-02 04:17:14
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords multiprocessing winrt ocr tesseract
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Multiprocessing library for OCR with WinRT  



## pip install winrtocr



### Tested against Windows 10 / Python 3.10 / Anaconda 



#### The results are not as good as the ones from Tesseract or EasyOCR, but it is way faster. 







```python



from winrtocr import WinRTocr

from time import perf_counter

from a_cv_imwrite_imread_plus import open_image_in_cv







winrto = WinRTocr(cpus=5, language="en-US")

picslinks = [

    r"https://github.com/hansalemaos/screenshots/raw/main/pandsnesteddicthtml.png",

    r"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000000.png",

    r"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000008.png",

    r"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000017.png",

]



picsunique = [open_image_in_cv(x, channels_in_output=4) for x in picslinks]

pics = []

for _ in range(100):

    pics.extend(picsunique)



start = perf_counter()

dfa = winrto.get_ocr_df(pics)

print(f"Multi: {perf_counter()-start}")



dfa2 = winrto.get_ocr_df_and_pics(pics)

```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/winrtocr",
    "name": "winrtocr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Multiprocessing,WinRT,ocr,tesseract",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/97/bc/b46ecbcff76d375cb17ca6262637747c516f7ccb48b134be2be80e7f6b3d/winrtocr-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# Multiprocessing library for OCR with WinRT  \r\n\r\n\r\n\r\n## pip install winrtocr\r\n\r\n\r\n\r\n### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\r\n\r\n#### The results are not as good as the ones from Tesseract or EasyOCR, but it is way faster. \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n```python\r\n\r\n\r\n\r\nfrom winrtocr import WinRTocr\r\n\r\nfrom time import perf_counter\r\n\r\nfrom a_cv_imwrite_imread_plus import open_image_in_cv\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nwinrto = WinRTocr(cpus=5, language=\"en-US\")\r\n\r\npicslinks = [\r\n\r\n    r\"https://github.com/hansalemaos/screenshots/raw/main/pandsnesteddicthtml.png\",\r\n\r\n    r\"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000000.png\",\r\n\r\n    r\"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000008.png\",\r\n\r\n    r\"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000017.png\",\r\n\r\n]\r\n\r\n\r\n\r\npicsunique = [open_image_in_cv(x, channels_in_output=4) for x in picslinks]\r\n\r\npics = []\r\n\r\nfor _ in range(100):\r\n\r\n    pics.extend(picsunique)\r\n\r\n\r\n\r\nstart = perf_counter()\r\n\r\ndfa = winrto.get_ocr_df(pics)\r\n\r\nprint(f\"Multi: {perf_counter()-start}\")\r\n\r\n\r\n\r\ndfa2 = winrto.get_ocr_df_and_pics(pics)\r\n\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Multiprocessing library for OCR with WinRT",
    "version": "0.10",
    "split_keywords": [
        "multiprocessing",
        "winrt",
        "ocr",
        "tesseract"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4be0757e9daa4223111bb899432b046a11a4927e273751bdd8ac561e381f11fe",
                "md5": "76e23df9405e8fb3d1752afb38c6a2fa",
                "sha256": "ffa805b9622905909390a80ad8c95eae07b5342014edb52af0fcbddfca3ed88b"
            },
            "downloads": -1,
            "filename": "winrtocr-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "76e23df9405e8fb3d1752afb38c6a2fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8997,
            "upload_time": "2023-04-02T04:17:11",
            "upload_time_iso_8601": "2023-04-02T04:17:11.715180Z",
            "url": "https://files.pythonhosted.org/packages/4b/e0/757e9daa4223111bb899432b046a11a4927e273751bdd8ac561e381f11fe/winrtocr-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97bcb46ecbcff76d375cb17ca6262637747c516f7ccb48b134be2be80e7f6b3d",
                "md5": "1b7554d485843ec06774a5303896d17e",
                "sha256": "2b6e69e031e3d212158fbdfc0f1d10ae0bb662d66147eeebaf4a6db4ac8028fc"
            },
            "downloads": -1,
            "filename": "winrtocr-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "1b7554d485843ec06774a5303896d17e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6991,
            "upload_time": "2023-04-02T04:17:14",
            "upload_time_iso_8601": "2023-04-02T04:17:14.185984Z",
            "url": "https://files.pythonhosted.org/packages/97/bc/b46ecbcff76d375cb17ca6262637747c516f7ccb48b134be2be80e7f6b3d/winrtocr-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-02 04:17:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "winrtocr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "winrtocr"
}
        
Elapsed time: 0.05630s