bbox-merger


Namebbox-merger JSON
Version 0.0.11 PyPI version JSON
download
home_pagehttps://github.com/SohaibAnwaar
SummaryThis Module will help you out in merging your bboxes if overlaps
upload_time2023-09-06 10:04:48
maintainer
docs_urlNone
authorSohaib Anwaar
requires_python
license
keywords bbox merge computer vision image processing object detection segmentation
VCS
bugtrack_url
requirements pylint shapely black pypandoc
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Bounding Box Merger
===================

Merge your AI predicted Bounding boxes to get a single bounding box for
each object.

Example Usage
=============

Merge Boxes
-----------

.. code:: python

    from bbox_merger import merge_boxes
    boxes = [[0, 0, 2, 2], [1, 1, 3, 3], [4, 4, 6, 6]]
    merged_boxes = merge_boxes(boxes)
    print(merged_boxes)

::

    Output: [[0.0, 0.0, 3.0, 3.0], [4.0, 4.0, 6.0, 6.0]]

Calculate IoU
-------------

.. code:: python

    from bbox_merger import calculate_iou
    box1 = [0, 0, 2, 2]
    box2 = [1, 1, 3, 3]
    merged_boxes = calculate_iou(box1, box2)
    print(merged_boxes)

::

    Output: 0.14285714285714285

Example
-------

1. Before Merging Bounding Boxes |Image1|
2. After Merging Bounding Boxes |Image2|

.. |Image1| image:: https://github.com/SohaibAnwaar/bbox-merger/blob/v_001/attachments/Image1.png?raw=true
.. |Image2| image:: https://github.com/SohaibAnwaar/bbox-merger/blob/v_001/attachments/merged.png?raw=true


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SohaibAnwaar",
    "name": "bbox-merger",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "bbox,merge,Computer Vision,Image processing,Object Detection,Segmentation",
    "author": "Sohaib Anwaar",
    "author_email": "sohaibanwaar36@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d6/f1/30e4b1fe50dde88cdaf82ffb7c22f243ce3a88fbc0c18f9a9ecaef1ad058/bbox_merger-0.0.11.tar.gz",
    "platform": null,
    "description": "Bounding Box Merger\n===================\n\nMerge your AI predicted Bounding boxes to get a single bounding box for\neach object.\n\nExample Usage\n=============\n\nMerge Boxes\n-----------\n\n.. code:: python\n\n    from bbox_merger import merge_boxes\n    boxes = [[0, 0, 2, 2], [1, 1, 3, 3], [4, 4, 6, 6]]\n    merged_boxes = merge_boxes(boxes)\n    print(merged_boxes)\n\n::\n\n    Output: [[0.0, 0.0, 3.0, 3.0], [4.0, 4.0, 6.0, 6.0]]\n\nCalculate IoU\n-------------\n\n.. code:: python\n\n    from bbox_merger import calculate_iou\n    box1 = [0, 0, 2, 2]\n    box2 = [1, 1, 3, 3]\n    merged_boxes = calculate_iou(box1, box2)\n    print(merged_boxes)\n\n::\n\n    Output: 0.14285714285714285\n\nExample\n-------\n\n1. Before Merging Bounding Boxes |Image1|\n2. After Merging Bounding Boxes |Image2|\n\n.. |Image1| image:: https://github.com/SohaibAnwaar/bbox-merger/blob/v_001/attachments/Image1.png?raw=true\n.. |Image2| image:: https://github.com/SohaibAnwaar/bbox-merger/blob/v_001/attachments/merged.png?raw=true\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This Module will help you out in merging your bboxes if overlaps",
    "version": "0.0.11",
    "project_urls": {
        "Download": "https://github.com/SohaibAnwaar/bbox-merger/archive/refs/tags/v_001.tar.gz",
        "Homepage": "https://github.com/SohaibAnwaar"
    },
    "split_keywords": [
        "bbox",
        "merge",
        "computer vision",
        "image processing",
        "object detection",
        "segmentation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d6f130e4b1fe50dde88cdaf82ffb7c22f243ce3a88fbc0c18f9a9ecaef1ad058",
                "md5": "5e7f61d34f688d0a88eaa8bcc798b510",
                "sha256": "c40519d3899617c5af6636b47e11f4ab413ad6bb6695e7e10f003809362889b2"
            },
            "downloads": -1,
            "filename": "bbox_merger-0.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "5e7f61d34f688d0a88eaa8bcc798b510",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3109,
            "upload_time": "2023-09-06T10:04:48",
            "upload_time_iso_8601": "2023-09-06T10:04:48.327249Z",
            "url": "https://files.pythonhosted.org/packages/d6/f1/30e4b1fe50dde88cdaf82ffb7c22f243ce3a88fbc0c18f9a9ecaef1ad058/bbox_merger-0.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-06 10:04:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SohaibAnwaar",
    "github_project": "bbox-merger",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pylint",
            "specs": [
                [
                    "==",
                    "2.17.5"
                ]
            ]
        },
        {
            "name": "shapely",
            "specs": [
                [
                    "==",
                    "2.0.1"
                ]
            ]
        },
        {
            "name": "black",
            "specs": []
        },
        {
            "name": "pypandoc",
            "specs": []
        }
    ],
    "lcname": "bbox-merger"
}
        
Elapsed time: 1.96728s