lanms-nova


Namelanms-nova JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/AndranikSargsyan/lanms-nova
Summarylanms-nova is a python binding for LANMS - Locality-Aware Non-Max Suppression
upload_time2023-04-15 13:16:48
maintainer
docs_urlNone
authorAndranik Sargsyan
requires_python
licenseGPL
keywords nms lanms
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Locality-Aware Non-Maximum Suppression (LANMS)

This is a python binding for LANMS as described by Zhout et al.
in their paper "EAST: An Efficient and Accurate Scene Text Detector", CVPR 2017. The C++ code is  taken from the
implementation available on: https://github.com/argman/EAST

### Installation

`pip install lanms-nova`

### Usage example
```python
import numpy as np
import lanms

boxes = np.array([
     [137.0, 113.6, 162.3, 113.3, 162.4, 122.2, 137.2, 122.6, 0.75],
     [137.2, 113.8, 163.2, 114.6, 163.0, 122.6, 137.0, 121.9, 0.97],
     [136.8, 113.4, 163.2, 114.5, 162.9, 122.7, 136.5, 121.6, 0.15],
     [136.6, 112.9, 163.3, 114.5, 162.8, 122.9, 136.1, 121.3, 0.95],
     [136.4, 112.6, 163.4, 114.5, 162.8, 123.0, 135.8, 121.2, 0.96],
     [131.4, 89.2,  137.8, 89.0,  138.2, 98.5,  131.8,  98.7, 0.98],
     [131.6, 89.2,  137.8, 89.1,  138.1, 98.6,  131.8,  98.8, 0.32],
     [131.5, 89.2,  137.9, 89.1,  138.0, 98.6,  131.6,  98.7, 0.99],
     [131.5, 89.2,  138.0, 89.1,  138.1, 98.5,  131.6,  98.5, 0.87],
     [131.5, 89.3,  137.8, 89.0,  138.2, 98.4,  132.0,  98.7, 0.97]
], dtype=np.float32)

boxes = lanms.merge_quadrangle_n9(boxes, nms_thresh=0.5)
print(boxes)
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AndranikSargsyan/lanms-nova",
    "name": "lanms-nova",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "NMS,LANMS",
    "author": "Andranik Sargsyan",
    "author_email": "and.sargsyab@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/96/d5/8f5d23d0fa49f96ff2b82d7047160311430199eeb15e5163f36b6213af2d/lanms-nova-1.0.3.tar.gz",
    "platform": null,
    "description": "# Locality-Aware Non-Maximum Suppression (LANMS)\n\nThis is a python binding for LANMS as described by Zhout et al.\nin their paper \"EAST: An Efficient and Accurate Scene Text Detector\", CVPR 2017. The C++ code is  taken from the\nimplementation available on: https://github.com/argman/EAST\n\n### Installation\n\n`pip install lanms-nova`\n\n### Usage example\n```python\nimport numpy as np\nimport lanms\n\nboxes = np.array([\n     [137.0, 113.6, 162.3, 113.3, 162.4, 122.2, 137.2, 122.6, 0.75],\n     [137.2, 113.8, 163.2, 114.6, 163.0, 122.6, 137.0, 121.9, 0.97],\n     [136.8, 113.4, 163.2, 114.5, 162.9, 122.7, 136.5, 121.6, 0.15],\n     [136.6, 112.9, 163.3, 114.5, 162.8, 122.9, 136.1, 121.3, 0.95],\n     [136.4, 112.6, 163.4, 114.5, 162.8, 123.0, 135.8, 121.2, 0.96],\n     [131.4, 89.2,  137.8, 89.0,  138.2, 98.5,  131.8,  98.7, 0.98],\n     [131.6, 89.2,  137.8, 89.1,  138.1, 98.6,  131.8,  98.8, 0.32],\n     [131.5, 89.2,  137.9, 89.1,  138.0, 98.6,  131.6,  98.7, 0.99],\n     [131.5, 89.2,  138.0, 89.1,  138.1, 98.5,  131.6,  98.5, 0.87],\n     [131.5, 89.3,  137.8, 89.0,  138.2, 98.4,  132.0,  98.7, 0.97]\n], dtype=np.float32)\n\nboxes = lanms.merge_quadrangle_n9(boxes, nms_thresh=0.5)\nprint(boxes)\n```\n\n\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "lanms-nova is a python binding for LANMS - Locality-Aware Non-Max Suppression",
    "version": "1.0.3",
    "split_keywords": [
        "nms",
        "lanms"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "96d58f5d23d0fa49f96ff2b82d7047160311430199eeb15e5163f36b6213af2d",
                "md5": "7e1eb43d27c511ec9e6463cecf954d46",
                "sha256": "5ab1eb97edf4ecf13d794db7a0ecbf861c96053a625bca4f40ff967e5d548272"
            },
            "downloads": -1,
            "filename": "lanms-nova-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "7e1eb43d27c511ec9e6463cecf954d46",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 219292,
            "upload_time": "2023-04-15T13:16:48",
            "upload_time_iso_8601": "2023-04-15T13:16:48.827134Z",
            "url": "https://files.pythonhosted.org/packages/96/d5/8f5d23d0fa49f96ff2b82d7047160311430199eeb15e5163f36b6213af2d/lanms-nova-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-15 13:16:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "AndranikSargsyan",
    "github_project": "lanms-nova",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "lanms-nova"
}
        
Elapsed time: 0.19745s