cv2-collage


Namecv2-collage JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/cv2_collage
SummaryCreate a collage from images with OpenCV
upload_time2022-12-29 20:29:47
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords cv2 numpy collage
VCS
bugtrack_url
requirements a_cv_imwrite_imread_plus create_empty_image cv2watermark
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
<h2>Create a collage from images with OpenCV </h2>





```python



from cv2_collage import create_collage



lst = [

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2003_40_27-.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2003_49_27-.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2004_01_57-.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2004_02_09-.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind1.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind2.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind3.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind4.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000006.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000007.png",

    "https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000008.png",

]





from numpy_choices import get_random_items_from_list



coldone = create_collage(

    lst=get_random_items_from_list(lst, 16),

    width=1000,

    background=(0, 0, 0),

    save_path=r"F:\cv2mergepics\m\tetete.png",

)









```



<img src="https://github.com/hansalemaos/screenshots/raw/main/collage.png"/>






            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/cv2_collage",
    "name": "cv2-collage",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "cv2,numpy,collage",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/7a/81/9d50f3e879fc5f72a705a1acd8533558c3508af70b16b260d38c8086e273/cv2_collage-0.10.tar.gz",
    "platform": null,
    "description": "\n<h2>Create a collage from images with OpenCV </h2>\n\n\n\n\n\n```python\n\n\n\nfrom cv2_collage import create_collage\n\n\n\nlst = [\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2003_40_27-.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2003_49_27-.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2004_01_57-.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/2022-12-27%2004_02_09-.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind1.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind2.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind3.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/colorfind4.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000006.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000007.png\",\n\n    \"https://raw.githubusercontent.com/hansalemaos/screenshots/main/zoompics_0000008.png\",\n\n]\n\n\n\n\n\nfrom numpy_choices import get_random_items_from_list\n\n\n\ncoldone = create_collage(\n\n    lst=get_random_items_from_list(lst, 16),\n\n    width=1000,\n\n    background=(0, 0, 0),\n\n    save_path=r\"F:\\cv2mergepics\\m\\tetete.png\",\n\n)\n\n\n\n\n\n\n\n\n\n```\n\n\n\n<img src=\"https://github.com/hansalemaos/screenshots/raw/main/collage.png\"/>\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Create a collage from images with OpenCV",
    "version": "0.10",
    "split_keywords": [
        "cv2",
        "numpy",
        "collage"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "e6996011fad1dd84486172e6c6c4e124",
                "sha256": "317aa39edc9cc810d5052fd7b585db52065a1c9f0420f6cd0f5805d3de055010"
            },
            "downloads": -1,
            "filename": "cv2_collage-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e6996011fad1dd84486172e6c6c4e124",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4984,
            "upload_time": "2022-12-29T20:29:46",
            "upload_time_iso_8601": "2022-12-29T20:29:46.502477Z",
            "url": "https://files.pythonhosted.org/packages/aa/bb/39d7b25ead9ab6b895ac8b8084d723ee84ececa6dc401a0c72048bd248ef/cv2_collage-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "1525d742df7684d027b87f14d02960f1",
                "sha256": "2b3935f830d09880166c3c09a50a7ddda9977cc119262b175456cc6900348462"
            },
            "downloads": -1,
            "filename": "cv2_collage-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "1525d742df7684d027b87f14d02960f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3681,
            "upload_time": "2022-12-29T20:29:47",
            "upload_time_iso_8601": "2022-12-29T20:29:47.964916Z",
            "url": "https://files.pythonhosted.org/packages/7a/81/9d50f3e879fc5f72a705a1acd8533558c3508af70b16b260d38c8086e273/cv2_collage-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-29 20:29:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "cv2_collage",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "a_cv_imwrite_imread_plus",
            "specs": []
        },
        {
            "name": "create_empty_image",
            "specs": []
        },
        {
            "name": "cv2watermark",
            "specs": []
        }
    ],
    "lcname": "cv2-collage"
}
        
Elapsed time: 0.12911s