{ "info": { "author": "Shawn Zhang", "author_email": "shawnzhang31@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# cv2ImageLoad\npython cv2\u901a\u8fc7\u56fe\u7247\u6587\u4ef6\u3001\u56fe\u7247url\u3001\u56fe\u7247\u7684base64\u7f16\u7801\u52a0\u8f7d\u56fe\u7247\u3002[cv2ImageLoad](https://github.com/ShawnZhang31/cv2ImageLoad/blob/master/README.md)\n\n## \u5b89\u88c5\n```\npip install cv2imageload\n```\n## \u4f7f\u7528\n```\nfrom cv2imageload import ImageLoad, ImageLoadError\n\nfile = 'th-108.jpg'\nurl = 'http://*.com/test.png'\nbase64_str = '\u56fe\u7247\u7684base64\u7f16\u7801\u5b57\u7b26\u4e32'\n\n# \u52a0\u8f7d\u56fe\u7247\u6587\u4ef6\ntry:\n image = ImageLoad.loadImage(file)\nexcept ImageLoadError as e:\n print(e.reason)\n\n# \u5c06\u56fe\u7247\u7f16\u7801\u4e3abase64\u5b57\u7b26\u4e32\ntry:\n base64_str = ImageLoad.base64EncodeImage(image, with_base64_header=True, file_ext='jpg')\nexcept ImageLoadError as error:\n print(error.reason)\nprint(base64_str[:30])\n\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ShawnZhang31/cv2ImageLoad.git", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cv2imageload", "package_url": "https://pypi.org/project/cv2imageload/", "platform": "", "project_url": "https://pypi.org/project/cv2imageload/", "project_urls": { "Homepage": "https://github.com/ShawnZhang31/cv2ImageLoad.git" }, "release_url": "https://pypi.org/project/cv2imageload/1.0.2/", "requires_dist": null, "requires_python": ">=3.0", "summary": "python cv2 load image from image file, url or base64 code of image", "version": "1.0.2" }, "last_serial": 5774202, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "20b79907ed25ad49d47050c2d4039e47", "sha256": "35ec8de862fbcabdc482ea3d0dc8a670857e5175867f696c758ac17b7311fd3e" }, "downloads": -1, "filename": "cv2imageload-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "20b79907ed25ad49d47050c2d4039e47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 4324, "upload_time": "2019-09-01T09:44:13", "url": "https://files.pythonhosted.org/packages/01/79/ebeb435bf23515ccefe5a1276c66312cec3dfb1410ed116f48e05626a990/cv2imageload-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8bff39f7c0627bafa7c5130f0653245a", "sha256": "0e026d21944eb1ae3394269d6e1b60b6843b66a04afce0d04be8a9d4c7ad5079" }, "downloads": -1, "filename": "cv2imageload-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8bff39f7c0627bafa7c5130f0653245a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 3050, "upload_time": "2019-09-01T09:44:15", "url": "https://files.pythonhosted.org/packages/89/c0/8d010a27e542d448f7cb38ad75b04e431eedb48ac2b574cc5b9a9a4159bb/cv2imageload-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "4c76ec26f000ddf9b9e348619c61411c", "sha256": "20ae0cabae363e3101abc28acd429fc555adce4155199af12b24c9b25e49196d" }, "downloads": -1, "filename": "cv2imageload-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4c76ec26f000ddf9b9e348619c61411c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 4656, "upload_time": "2019-09-03T06:28:47", "url": "https://files.pythonhosted.org/packages/f7/d7/f5027add86e80a288d00b178edc813080058db0879be7e35e008086994e6/cv2imageload-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d95ac6cd88870007dbab080d14b8a9d1", "sha256": "da02eef124949b4e0c93c277b692339d8ffd562d52319aaf0ec82983434fc41b" }, "downloads": -1, "filename": "cv2imageload-1.0.2.tar.gz", "has_sig": false, "md5_digest": "d95ac6cd88870007dbab080d14b8a9d1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 3368, "upload_time": "2019-09-03T06:28:50", "url": "https://files.pythonhosted.org/packages/d6/e0/1dc408bb38d5da0ca40c6c6069f8bef1249d9f9fc2c0fcd811b8d581fc97/cv2imageload-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c76ec26f000ddf9b9e348619c61411c", "sha256": "20ae0cabae363e3101abc28acd429fc555adce4155199af12b24c9b25e49196d" }, "downloads": -1, "filename": "cv2imageload-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4c76ec26f000ddf9b9e348619c61411c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 4656, "upload_time": "2019-09-03T06:28:47", "url": "https://files.pythonhosted.org/packages/f7/d7/f5027add86e80a288d00b178edc813080058db0879be7e35e008086994e6/cv2imageload-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d95ac6cd88870007dbab080d14b8a9d1", "sha256": "da02eef124949b4e0c93c277b692339d8ffd562d52319aaf0ec82983434fc41b" }, "downloads": -1, "filename": "cv2imageload-1.0.2.tar.gz", "has_sig": false, "md5_digest": "d95ac6cd88870007dbab080d14b8a9d1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 3368, "upload_time": "2019-09-03T06:28:50", "url": "https://files.pythonhosted.org/packages/d6/e0/1dc408bb38d5da0ca40c6c6069f8bef1249d9f9fc2c0fcd811b8d581fc97/cv2imageload-1.0.2.tar.gz" } ] }