nonebot-plugin-antimonkey


Namenonebot-plugin-antimonkey JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/phquathi/nonebot_plugin_antimonkey
Summary一个用于自动检测和撤回包含猴子图片的QQ机器人插件。
upload_time2024-05-28 13:24:22
maintainerNone
docs_urlNone
authorphquathi
requires_python<4.0,>=3.7
licenseNone
keywords nonebot plugin antimonkey
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # NoneBot-Plugin-AntiMonkey

基于cv2和预训练的机器学习模型(TensorFlow)实现检测🐒猴子图并撤回的nonebot插件

## 声明

本项目的开发旨在提供一个技术解决方案,以应对在线群聊中出现的特定类型的刷屏行为。重要的是要强调,此举并非反映出对任何动物,特别是猴子,的不喜欢或成见。作者深知动物在自然界和文化中的重要地位,并且尊重所有生命的多样性和独特性。此项目仅针对那些利用猴子图片进行刷屏、干扰正常交流的行为。作者的目标是促进在线交流的健康和秩序,同时保护用户免受持续的信息干扰和不适内容的影响。

## 介绍

你是否被某些人高频刷的猴子图恶心过?

🐒🐒🐒

本插件能在bot是管理员的群持续检测群聊人员所发图片,判断是否为🐒图并自动撤回,值得注意的是,**撤回功能并不受tx风控影响!**

## 安装

使用nb-cli进行安装

``nb plugin install nonebot-plugin-antimonkey``


使用pip进行安装

``pip install nonebot-plugin-antimonkey``



## 使用

安装运行后,插件将自动加载并开始监控管理的群消息。

## 存在的问题

不是百分百能识别准确!特别是抽象🐒图!

偶尔会有cv2报错,可能存在于检测表情包这类较小的图片,调整尺寸时发生了错误从而无法读取图片

~~与部分插件比如“今日运势”冲突,正在加紧修复~~ 已修复!

管理员的🐒图撤不了

群主的🐒图更撤不了

## 贡献
欢迎提交Pull Request或报告Issues。

## 许可
[MIT License](LICENSE)

## 致谢
感谢google公司开发的MobileNetV2模型,这是一个由Google开发的高效的轻量级深度学习模型。更多关于MobileNetV2的信息可以在[官方论文](https://arxiv.org/abs/1801.04381)中找到

感谢低嫩群友刷的恶心吗喽🐒🐒🐒,让这个项目得以实现。


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/phquathi/nonebot_plugin_antimonkey",
    "name": "nonebot-plugin-antimonkey",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.7",
    "maintainer_email": null,
    "keywords": "nonebot, plugin, antimonkey",
    "author": "phquathi",
    "author_email": "yangziqi233@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/7f/308ea917f0a485f828fe6c991a4b9bbe8b4e4dce187a6344d87b8b0dc163/nonebot_plugin_antimonkey-1.1.1.tar.gz",
    "platform": null,
    "description": "# NoneBot-Plugin-AntiMonkey\n\n\u57fa\u4e8ecv2\u548c\u9884\u8bad\u7ec3\u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\uff08TensorFlow\uff09\u5b9e\u73b0\u68c0\u6d4b\ud83d\udc12\u7334\u5b50\u56fe\u5e76\u64a4\u56de\u7684nonebot\u63d2\u4ef6\n\n## \u58f0\u660e\n\n\u672c\u9879\u76ee\u7684\u5f00\u53d1\u65e8\u5728\u63d0\u4f9b\u4e00\u4e2a\u6280\u672f\u89e3\u51b3\u65b9\u6848\uff0c\u4ee5\u5e94\u5bf9\u5728\u7ebf\u7fa4\u804a\u4e2d\u51fa\u73b0\u7684\u7279\u5b9a\u7c7b\u578b\u7684\u5237\u5c4f\u884c\u4e3a\u3002\u91cd\u8981\u7684\u662f\u8981\u5f3a\u8c03\uff0c\u6b64\u4e3e\u5e76\u975e\u53cd\u6620\u51fa\u5bf9\u4efb\u4f55\u52a8\u7269\uff0c\u7279\u522b\u662f\u7334\u5b50\uff0c\u7684\u4e0d\u559c\u6b22\u6216\u6210\u89c1\u3002\u4f5c\u8005\u6df1\u77e5\u52a8\u7269\u5728\u81ea\u7136\u754c\u548c\u6587\u5316\u4e2d\u7684\u91cd\u8981\u5730\u4f4d\uff0c\u5e76\u4e14\u5c0a\u91cd\u6240\u6709\u751f\u547d\u7684\u591a\u6837\u6027\u548c\u72ec\u7279\u6027\u3002\u6b64\u9879\u76ee\u4ec5\u9488\u5bf9\u90a3\u4e9b\u5229\u7528\u7334\u5b50\u56fe\u7247\u8fdb\u884c\u5237\u5c4f\u3001\u5e72\u6270\u6b63\u5e38\u4ea4\u6d41\u7684\u884c\u4e3a\u3002\u4f5c\u8005\u7684\u76ee\u6807\u662f\u4fc3\u8fdb\u5728\u7ebf\u4ea4\u6d41\u7684\u5065\u5eb7\u548c\u79e9\u5e8f\uff0c\u540c\u65f6\u4fdd\u62a4\u7528\u6237\u514d\u53d7\u6301\u7eed\u7684\u4fe1\u606f\u5e72\u6270\u548c\u4e0d\u9002\u5185\u5bb9\u7684\u5f71\u54cd\u3002\n\n## \u4ecb\u7ecd\n\n\u4f60\u662f\u5426\u88ab\u67d0\u4e9b\u4eba\u9ad8\u9891\u5237\u7684\u7334\u5b50\u56fe\u6076\u5fc3\u8fc7\uff1f\n\n\ud83d\udc12\ud83d\udc12\ud83d\udc12\n\n\u672c\u63d2\u4ef6\u80fd\u5728bot\u662f\u7ba1\u7406\u5458\u7684\u7fa4\u6301\u7eed\u68c0\u6d4b\u7fa4\u804a\u4eba\u5458\u6240\u53d1\u56fe\u7247\uff0c\u5224\u65ad\u662f\u5426\u4e3a\ud83d\udc12\u56fe\u5e76\u81ea\u52a8\u64a4\u56de\uff0c\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c**\u64a4\u56de\u529f\u80fd\u5e76\u4e0d\u53d7tx\u98ce\u63a7\u5f71\u54cd\uff01**\n\n## \u5b89\u88c5\n\n\u4f7f\u7528nb-cli\u8fdb\u884c\u5b89\u88c5\n\n``nb plugin install nonebot-plugin-antimonkey``\n\n\n\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\n\n``pip install nonebot-plugin-antimonkey``\n\n\n\n## \u4f7f\u7528\n\n\u5b89\u88c5\u8fd0\u884c\u540e\uff0c\u63d2\u4ef6\u5c06\u81ea\u52a8\u52a0\u8f7d\u5e76\u5f00\u59cb\u76d1\u63a7\u7ba1\u7406\u7684\u7fa4\u6d88\u606f\u3002\n\n## \u5b58\u5728\u7684\u95ee\u9898\n\n\u4e0d\u662f\u767e\u5206\u767e\u80fd\u8bc6\u522b\u51c6\u786e\uff01\u7279\u522b\u662f\u62bd\u8c61\ud83d\udc12\u56fe\uff01\n\n\u5076\u5c14\u4f1a\u6709cv2\u62a5\u9519\uff0c\u53ef\u80fd\u5b58\u5728\u4e8e\u68c0\u6d4b\u8868\u60c5\u5305\u8fd9\u7c7b\u8f83\u5c0f\u7684\u56fe\u7247\uff0c\u8c03\u6574\u5c3a\u5bf8\u65f6\u53d1\u751f\u4e86\u9519\u8bef\u4ece\u800c\u65e0\u6cd5\u8bfb\u53d6\u56fe\u7247\n\n~~\u4e0e\u90e8\u5206\u63d2\u4ef6\u6bd4\u5982\u201c\u4eca\u65e5\u8fd0\u52bf\u201d\u51b2\u7a81\uff0c\u6b63\u5728\u52a0\u7d27\u4fee\u590d~~ \u5df2\u4fee\u590d\uff01\n\n\u7ba1\u7406\u5458\u7684\ud83d\udc12\u56fe\u64a4\u4e0d\u4e86\n\n\u7fa4\u4e3b\u7684\ud83d\udc12\u56fe\u66f4\u64a4\u4e0d\u4e86\n\n## \u8d21\u732e\n\u6b22\u8fce\u63d0\u4ea4Pull Request\u6216\u62a5\u544aIssues\u3002\n\n## \u8bb8\u53ef\n[MIT License](LICENSE)\n\n## \u81f4\u8c22\n\u611f\u8c22google\u516c\u53f8\u5f00\u53d1\u7684MobileNetV2\u6a21\u578b\uff0c\u8fd9\u662f\u4e00\u4e2a\u7531Google\u5f00\u53d1\u7684\u9ad8\u6548\u7684\u8f7b\u91cf\u7ea7\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u3002\u66f4\u591a\u5173\u4e8eMobileNetV2\u7684\u4fe1\u606f\u53ef\u4ee5\u5728[\u5b98\u65b9\u8bba\u6587](https://arxiv.org/abs/1801.04381)\u4e2d\u627e\u5230\n\n\u611f\u8c22\u4f4e\u5ae9\u7fa4\u53cb\u5237\u7684\u6076\u5fc3\u5417\u55bd\ud83d\udc12\ud83d\udc12\ud83d\udc12\uff0c\u8ba9\u8fd9\u4e2a\u9879\u76ee\u5f97\u4ee5\u5b9e\u73b0\u3002\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "\u4e00\u4e2a\u7528\u4e8e\u81ea\u52a8\u68c0\u6d4b\u548c\u64a4\u56de\u5305\u542b\u7334\u5b50\u56fe\u7247\u7684QQ\u673a\u5668\u4eba\u63d2\u4ef6\u3002",
    "version": "1.1.1",
    "project_urls": {
        "Homepage": "https://github.com/phquathi/nonebot_plugin_antimonkey",
        "Repository": "https://github.com/phquathi/nonebot_plugin_antimonkey"
    },
    "split_keywords": [
        "nonebot",
        " plugin",
        " antimonkey"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "81ed71cbc5fc7650f276377fbd58f3ba0bd45fa9a0f42bc6e79c192ee9041d09",
                "md5": "a674e05d1659d39490719bd07bed5cd7",
                "sha256": "0b6a3830625a8e4a5734fc898a28adf8f750df22c11f392ea2279cec02a214ad"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_antimonkey-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a674e05d1659d39490719bd07bed5cd7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.7",
            "size": 40765,
            "upload_time": "2024-05-28T13:24:20",
            "upload_time_iso_8601": "2024-05-28T13:24:20.658577Z",
            "url": "https://files.pythonhosted.org/packages/81/ed/71cbc5fc7650f276377fbd58f3ba0bd45fa9a0f42bc6e79c192ee9041d09/nonebot_plugin_antimonkey-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c27f308ea917f0a485f828fe6c991a4b9bbe8b4e4dce187a6344d87b8b0dc163",
                "md5": "06618b5649a36045689e0fa6e30e9e93",
                "sha256": "989c8074cf5e6feeb4947daa25b0e193cc0f5bc159d49bd3172543b7769847ea"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_antimonkey-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "06618b5649a36045689e0fa6e30e9e93",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.7",
            "size": 40577,
            "upload_time": "2024-05-28T13:24:22",
            "upload_time_iso_8601": "2024-05-28T13:24:22.907644Z",
            "url": "https://files.pythonhosted.org/packages/c2/7f/308ea917f0a485f828fe6c991a4b9bbe8b4e4dce187a6344d87b8b0dc163/nonebot_plugin_antimonkey-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-28 13:24:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "phquathi",
    "github_project": "nonebot_plugin_antimonkey",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-antimonkey"
}
        
Elapsed time: 0.30296s