simplelatexocr


Namesimplelatexocr JSON
Version 0.0.6 PyPI version JSON
download
home_page
SummaryA simple LaTeX OCR package
upload_time2024-03-11 10:39:37
maintainer
docs_urlNone
authorchaodreaming
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Simple-LaTeX-OCR
The encoder is resnetv2+simplevit, the decoder is transformer, the attention mechanism uses flashattention2.0 from pytorch2.0, and the dataset size is 112 million

Install the package `simplelatexocr`: 

```
pip install simplelatexocr
```

Use from within Python

    
    from simplelatexocr.models import Latex_OCR
    model = Latex_OCR()
    img_path = "tests/test_files/5.png"
    result = model.predict(img_path)
    print(result['formula'])
    print(result['confidence'])
    print(result['elapse'])
    
## Contribution
Contributions of any kind are welcome.

## Acknowledgment
Code taken and modified from [lukas-blecher](https://github.com/lukas-blecher/LaTeX-OCR), [RapidAI](https://github.com/RapidAI/RapidLaTeXOCR),[ultralytics](https://github.com/ultralytics/ultralytics)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "simplelatexocr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "chaodreaming",
    "author_email": "chaodreaming@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/80/8f/239c138bbe056f551e29b45fad703f9d26dfb0c0aec3d324510adecf8a7f/simplelatexocr-0.0.6.tar.gz",
    "platform": null,
    "description": "# Simple-LaTeX-OCR\r\nThe encoder is resnetv2+simplevit, the decoder is transformer, the attention mechanism uses flashattention2.0 from pytorch2.0, and the dataset size is 112 million\r\n\r\nInstall the package `simplelatexocr`: \r\n\r\n```\r\npip install simplelatexocr\r\n```\r\n\r\nUse from within Python\r\n\r\n    \r\n    from simplelatexocr.models import Latex_OCR\r\n    model = Latex_OCR()\r\n    img_path = \"tests/test_files/5.png\"\r\n    result = model.predict(img_path)\r\n    print(result['formula'])\r\n    print(result['confidence'])\r\n    print(result['elapse'])\r\n    \r\n## Contribution\r\nContributions of any kind are welcome.\r\n\r\n## Acknowledgment\r\nCode taken and modified from [lukas-blecher](https://github.com/lukas-blecher/LaTeX-OCR), [RapidAI](https://github.com/RapidAI/RapidLaTeXOCR),[ultralytics](https://github.com/ultralytics/ultralytics)\r\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "A simple LaTeX OCR package",
    "version": "0.0.6",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2bdd4a7a3411a071a95c9f98282d76dbd3b6f0b966a26bf2e2604b812a9cdb23",
                "md5": "b76c867166e8529b5befccf0a5550af2",
                "sha256": "f8f289e9c2ce80ffd4d5398bfbb12914f785f25e0a2ee9bba365ac14fdc04e72"
            },
            "downloads": -1,
            "filename": "simplelatexocr-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b76c867166e8529b5befccf0a5550af2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 18513,
            "upload_time": "2024-03-11T10:39:35",
            "upload_time_iso_8601": "2024-03-11T10:39:35.741210Z",
            "url": "https://files.pythonhosted.org/packages/2b/dd/4a7a3411a071a95c9f98282d76dbd3b6f0b966a26bf2e2604b812a9cdb23/simplelatexocr-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "808f239c138bbe056f551e29b45fad703f9d26dfb0c0aec3d324510adecf8a7f",
                "md5": "d1f1415c07436b6bb0f7b0bc703242ec",
                "sha256": "f191545b08f678d6a84408e8c9aa7b99eb56c1951683ea2494393b561e9b6869"
            },
            "downloads": -1,
            "filename": "simplelatexocr-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "d1f1415c07436b6bb0f7b0bc703242ec",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 16700,
            "upload_time": "2024-03-11T10:39:37",
            "upload_time_iso_8601": "2024-03-11T10:39:37.537879Z",
            "url": "https://files.pythonhosted.org/packages/80/8f/239c138bbe056f551e29b45fad703f9d26dfb0c0aec3d324510adecf8a7f/simplelatexocr-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-11 10:39:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "simplelatexocr"
}
        
Elapsed time: 0.24119s