{ "info": { "author": "newliver", "author_email": "updatanow@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# \u4e07\u8c61\u4f18\u56fe\u667a\u80fd\u9274\u9ec4Python SDK\uff08\u975e\u5b98\u65b9\uff09\n\n\u672c\u7a0b\u5e8f\u57fa\u4e8e\u817e\u8baf\u4e91\u4e07\u8c61\u4f18\u56fe\u667a\u80fd\u9274\u9ec4\u670d\u52a1\n\n* \u5730\u5740\uff1a(http://www.qcloud.com/event/pd)\n\n## Install\n\n\t\n\tpip install tencentyun-porndetect\n\nor\n\n\t# download package\t\n\tpython setup install\t\n\t\n## Example\n\n\t>>> from tencentyun_porndetect.porndetect import TencentYunPornDetect\n\t>>> appid = ''\n\t>>> secret_id = ''\n\t>>> secret_key = ''\n\t>>> bucket = ''\n\t>>> img_url = 'http://'\n\t>>> pd = TencentYunPornDetect(appid, secret_id, secret_key, bucket)\n\t>>> # default expired: 10\n\t>>> pd.porn_detect(img_url, expired)\n\t>>> {u'message': u'success', u'code': 0, u'data': {u'confidence': 14.737, u'hot_score': 100.0, u'porn_score': 0.0, u'result': 0, u'normal_score': 0.0}}\n\t\n## Response\n\n### Ok\n \u6b63\u786e\u8fd4\u56de\u7ed3\u679c\u8bf4\u660e\uff1a\n result int \u4f9b\u53c2\u8003\u7684\u8bc6\u522b\u7ed3\u679c\uff0c0\u6b63\u5e38\uff0c1\u9ec4\u56fe\n confidence double \u8bc6\u522b\u4e3a\u9ec4\u56fe\u7684\u7f6e\u4fe1\u5ea6\uff0c\u8303\u56f40-100\uff1b\u662fnormal_score, hot_score, porn_score\u7684\u603b\u548c\u8bc4\u5206\n normal_score double \u56fe\u7247\u4e3a\u6b63\u5e38\u56fe\u7247\u7684\u8bc4\u5206\n hot_score double \u56fe\u7247\u4e3a\u6027\u611f\u56fe\u7247\u7684\u8bc4\u5206\n porn_score double \u56fe\u7247\u4e3a\u8272\u60c5\u56fe\u7247\u7684\u8bc4\u5206\n\n \u4f8b\u5982\uff1a\n {\n 'message': 'success',\n 'code': 0,\n 'data': {\n 'confidence': 14.737,\n 'hot_score': 100.0,\n 'porn_score': 0.0,\n 'result': 0,\n 'normal_score': 0.0\n }\n }\n\n### error code\n\n \u9519\u8bef\u8fd4\u56de\u8bf4\u660e\uff1ahttp://www.qcloud.com/wiki/\u4e07\u8c61\u4f18\u56fe\u9ec4\u56fe\u9274\u522b\u6587\u6863#2.3_.E9.94.99.E8.AF.AF.E7.A0.81\n \u9519\u8bef\u7801 \u542b\u4e49\n 1 \u9519\u8bef\u7684\u8bf7\u6c42\n 2 \u7b7e\u540d\u4e3a\u7a7a\n 3 \u7b7e\u540d\u4e32\u9519\u8bef\n 4 appid/bucket/url\u4e0d\u5339\u914d\n 5 \u7b7e\u540d\u7f16\u7801\u5931\u8d25\uff08\u5185\u90e8\u9519\u8bef\uff09\n 6 \u7b7e\u540d\u89e3\u7801\u5931\u8d25\uff08\u5185\u90e8\u9519\u8bef\uff09\n 7 \u7b7e\u540d\u8fc7\u671f\n 8 appid\u4e0d\u5b58\u5728\n 9 secretid\u4e0d\u5b58\u5728\n 10 appid\u4e0d\u5339\u914d\n 11 \u91cd\u653e\u653b\u51fb\n 12 \u7b7e\u540d\u5931\u8d25\n 13 \u9519\u8bef\u7684\u68c0\u6d4b\u7c7b\u578b\n 14 CGI\u9519\u8bef\n 15 \u8bf7\u6c42\u5305body\u9519\u8bef\n 16 \u8bf7\u6c42\u5904\u7406\u5931\u8d25\uff08\u5185\u90e8\u9519\u8bef\uff09\n 17 \u5904\u7406\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef\uff08\u5185\u90e8\u9519\u8bef\uff09\n 18 \u5904\u7406\u9519\u8bef\n\t\n## License\nMIT", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/newliver/tencentyun-prondetect", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tencentyun-porndetect", "package_url": "https://pypi.org/project/tencentyun-porndetect/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tencentyun-porndetect/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/newliver/tencentyun-prondetect" }, "release_url": "https://pypi.org/project/tencentyun-porndetect/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "TencentYun Porndetect for Python SDK", "version": "1.0.0" }, "last_serial": 1831123, "releases": { "0.0.1": [], "0.0.2": [], "1.0.0": [ { "comment_text": "", "digests": { "md5": "fad185715e1cb16ae0ab2856c6e32d8f", "sha256": "9800830ec8e94e3e486d9880b1d81d388d7c0219b15ea613201af08aed0d7eeb" }, "downloads": -1, "filename": "tencentyun-porndetect-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fad185715e1cb16ae0ab2856c6e32d8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4176, "upload_time": "2015-11-24T10:04:01", "url": "https://files.pythonhosted.org/packages/a5/da/6b79e14f8a902ad62f2a2c7a2cdf76ceecc5780256bec3dd3cac6597f0f6/tencentyun-porndetect-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fad185715e1cb16ae0ab2856c6e32d8f", "sha256": "9800830ec8e94e3e486d9880b1d81d388d7c0219b15ea613201af08aed0d7eeb" }, "downloads": -1, "filename": "tencentyun-porndetect-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fad185715e1cb16ae0ab2856c6e32d8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4176, "upload_time": "2015-11-24T10:04:01", "url": "https://files.pythonhosted.org/packages/a5/da/6b79e14f8a902ad62f2a2c7a2cdf76ceecc5780256bec3dd3cac6597f0f6/tencentyun-porndetect-1.0.0.tar.gz" } ] }