{"id":16934088,"url":"https://github.com/codeskyblue/imutils2","last_synced_at":"2025-07-01T12:05:15.418Z","repository":{"id":188222107,"uuid":"678320539","full_name":"codeskyblue/imutils2","owner":"codeskyblue","description":"another imutils for opencv simple use","archived":false,"fork":false,"pushed_at":"2024-01-09T03:49:38.000Z","size":512,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-22T02:51:27.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeskyblue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-14T09:25:05.000Z","updated_at":"2024-08-19T08:05:58.000Z","dependencies_parsed_at":"2023-11-28T11:30:01.887Z","dependency_job_id":"4fc13c78-e2d2-42ee-a974-fe26a6090721","html_url":"https://github.com/codeskyblue/imutils2","commit_stats":null,"previous_names":["codeskyblue/imutils2"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/codeskyblue/imutils2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fimutils2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fimutils2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fimutils2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fimutils2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeskyblue","download_url":"https://codeload.github.com/codeskyblue/imutils2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeskyblue%2Fimutils2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261243225,"owners_count":23129597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:51:16.571Z","updated_at":"2025-06-23T13:34:00.242Z","avatar_url":"https://github.com/codeskyblue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI version](https://badge.fury.io/py/imutils2.svg)](https://badge.fury.io/py/imutils2)\n[![codecov](https://codecov.io/gh/codeskyblue/imutils2/branch/master/graph/badge.svg?token=XZP5cusLGW)](https://codecov.io/gh/codeskyblue/imutils2)\n\n已经有了一个imutils库,但是这个imutils也不能完全满足我的需求,所以就整了一个imutils2\n\n# 安装\n```\npip install imutils2\n\n# or install with opencv\npip install imutils2[opencv]\n```\n\n# 常用函数\n- imread 读取或转化图像为opencv格式\n- pil2cv Pillow转Opencv格式\n- cv2pil Opencv转Pillow格式\n- cv2gray Opencv转成灰度图\n- url_to_image 下载URL为图像\n- show_image 查看图像兼容jupyter, requires matplotlib\n- merge_app_screenshots App下滑长截图拼接\n\n```python\nfrom imutils2 import *\n\nim1 = imread(\"m1.jpg\")\nim2 = imread(\"m2.jpg\")\nim3 = imread(\"m3.jpg\")\noutput = merge_app_screenshots([im1, im2, im3])\nshow_image(output)\n```\n\n写的不一定全，更多的例子可以去tests/test_imutils2.py中查看\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fimutils2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeskyblue%2Fimutils2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeskyblue%2Fimutils2/lists"}