Name | nonebot-plugin-imagemaster JSON |
Version |
1.0.8
JSON |
| download |
home_page | None |
Summary | 提供多种图像处理功能的bot插件 |
upload_time | 2024-06-11 08:30:15 |
maintainer | None |
docs_url | None |
author | phquathi |
requires_python | <4.0,>=3.7 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# nonebot-plugin-imagemaster
基于cv2的轻量化在线图片编辑插件,提供多种图像处理功能,包括色彩调整、裁剪、表情包和特殊效果等
## 介绍
简易修图、表情包,随手使用
## 安装
使用nb-cli进行安装
``nb plugin install nonebot-plugin-imagemaster``
使用pip进行安装
``pip install nonebot-plugin-imagemaster``
## 使用
| 指令 | 描述 |
|---------------|--------------|
| @机器人+图片处理 | 应用不同的图像处理滤镜 |
| @机器人+图像裁剪 | 对图片进行裁剪 |
| @机器人+图像拼接 | 将多张图片拼接成一张 |
| @机器人+表情包制作 | 制作自定义文字的表情包 |
### 图片处理
1. 发送 `图片处理`
2. 发送图片
3. 等待机器人发送进一步的指令提示
### 图像裁剪
1. 发送 `图像裁剪`
2. 发送图片
3. 等待机器人发送进一步的指令提示
### 图像拼接
1. 发送``图像拼接``
2. 根据指令发送图片数量
3. **重点!!!** 需要**一次性**发送所有张图片,安卓端选择好一定数量的图片后发送并不是**一次性**发送,需要把所有图像**合并为一条消息**才能发送出去
(1). pc端
具体地,在电脑端的操作为把所有图片都放到消息框里发送,较为容易
![pc端](src/1.png)
此时发送即为**合并成一条消息**发送
![pc2](src/2.png)
(2). 安卓端**(最新版qq已不支持此特性,拼接功能只能使用pc端实现)**
在安卓端的操作较复杂一点,并且必须为**非简洁模式**才能合并多张图片为一条消息,简洁模式无法实现
首先在文本框里**打入一个空格**,后再选择图片
![andriod](src/3.png)
然后发送即可实现合并
![android2](src/4.png)
如果发生数字输入错误,可以发送``停止拼接``以停止当前活动
### 表情包
1. 发送 `表情包制作`
2. 发送图片
3. 等待机器人发送进一步的指令提示
## 画饼
未来将添加文字识别、~~图像拼接~~等功能
## 贡献
欢迎提交Pull Request或报告Issues。
## 许可
[MIT License](LICENSE)
## 致谢
特此感谢本学期计算机视觉课程的教授,他的专业指导和启发性教学为本项目提供了宝贵的理论支持和灵感。作者在课程中学习到的知识和技能,对于本项目的成功实现起到了关键性作用。我们对他的辛勤付出和深厚的专业知识表示最深的敬意和感激。
Raw data
{
"_id": null,
"home_page": null,
"name": "nonebot-plugin-imagemaster",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": null,
"keywords": null,
"author": "phquathi",
"author_email": "yangziqi233@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/bd/3a/871f6f5b78f803497f57a38a15ebc448961bcc7a78e36dccfb7124bb9fa7/nonebot_plugin_imagemaster-1.0.8.tar.gz",
"platform": null,
"description": "# nonebot-plugin-imagemaster\n\u57fa\u4e8ecv2\u7684\u8f7b\u91cf\u5316\u5728\u7ebf\u56fe\u7247\u7f16\u8f91\u63d2\u4ef6\uff0c\u63d0\u4f9b\u591a\u79cd\u56fe\u50cf\u5904\u7406\u529f\u80fd\uff0c\u5305\u62ec\u8272\u5f69\u8c03\u6574\u3001\u88c1\u526a\u3001\u8868\u60c5\u5305\u548c\u7279\u6b8a\u6548\u679c\u7b49\n\n## \u4ecb\u7ecd\n\n\u7b80\u6613\u4fee\u56fe\u3001\u8868\u60c5\u5305\uff0c\u968f\u624b\u4f7f\u7528\n\n\n## \u5b89\u88c5\n\u4f7f\u7528nb-cli\u8fdb\u884c\u5b89\u88c5\n\n``nb plugin install nonebot-plugin-imagemaster``\n\n\n\n\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\n\n``pip install nonebot-plugin-imagemaster``\n## \u4f7f\u7528\n\n| \u6307\u4ee4 | \u63cf\u8ff0 | \n|---------------|--------------|\n| @\u673a\u5668\u4eba+\u56fe\u7247\u5904\u7406 | \u5e94\u7528\u4e0d\u540c\u7684\u56fe\u50cf\u5904\u7406\u6ee4\u955c |\n| @\u673a\u5668\u4eba+\u56fe\u50cf\u88c1\u526a | \u5bf9\u56fe\u7247\u8fdb\u884c\u88c1\u526a |\n| @\u673a\u5668\u4eba+\u56fe\u50cf\u62fc\u63a5 | \u5c06\u591a\u5f20\u56fe\u7247\u62fc\u63a5\u6210\u4e00\u5f20 |\n| @\u673a\u5668\u4eba+\u8868\u60c5\u5305\u5236\u4f5c | \u5236\u4f5c\u81ea\u5b9a\u4e49\u6587\u5b57\u7684\u8868\u60c5\u5305 |\n\n\n\n### \u56fe\u7247\u5904\u7406\n\n1. \u53d1\u9001 `\u56fe\u7247\u5904\u7406`\n2. \u53d1\u9001\u56fe\u7247\n3. \u7b49\u5f85\u673a\u5668\u4eba\u53d1\u9001\u8fdb\u4e00\u6b65\u7684\u6307\u4ee4\u63d0\u793a\n\n\n### \u56fe\u50cf\u88c1\u526a\n\n1. \u53d1\u9001 `\u56fe\u50cf\u88c1\u526a`\n2. \u53d1\u9001\u56fe\u7247\n3. \u7b49\u5f85\u673a\u5668\u4eba\u53d1\u9001\u8fdb\u4e00\u6b65\u7684\u6307\u4ee4\u63d0\u793a\n\n### \u56fe\u50cf\u62fc\u63a5\n\n1. \u53d1\u9001``\u56fe\u50cf\u62fc\u63a5``\n\n2. \u6839\u636e\u6307\u4ee4\u53d1\u9001\u56fe\u7247\u6570\u91cf\n\n3. **\u91cd\u70b9\uff01\uff01\uff01** \u9700\u8981**\u4e00\u6b21\u6027**\u53d1\u9001\u6240\u6709\u5f20\u56fe\u7247\uff0c\u5b89\u5353\u7aef\u9009\u62e9\u597d\u4e00\u5b9a\u6570\u91cf\u7684\u56fe\u7247\u540e\u53d1\u9001\u5e76\u4e0d\u662f**\u4e00\u6b21\u6027**\u53d1\u9001\uff0c\u9700\u8981\u628a\u6240\u6709\u56fe\u50cf**\u5408\u5e76\u4e3a\u4e00\u6761\u6d88\u606f**\u624d\u80fd\u53d1\u9001\u51fa\u53bb\n\n (1). pc\u7aef\n\n \u200b\t\t\u5177\u4f53\u5730\uff0c\u5728\u7535\u8111\u7aef\u7684\u64cd\u4f5c\u4e3a\u628a\u6240\u6709\u56fe\u7247\u90fd\u653e\u5230\u6d88\u606f\u6846\u91cc\u53d1\u9001\uff0c\u8f83\u4e3a\u5bb9\u6613\n\n ![pc\u7aef](src/1.png)\n\n \u200b\t\t\u6b64\u65f6\u53d1\u9001\u5373\u4e3a**\u5408\u5e76\u6210\u4e00\u6761\u6d88\u606f**\u53d1\u9001\n\n ![pc2](src/2.png)\n\n \u200b\t(2). \u5b89\u5353\u7aef**\uff08\u6700\u65b0\u7248qq\u5df2\u4e0d\u652f\u6301\u6b64\u7279\u6027\uff0c\u62fc\u63a5\u529f\u80fd\u53ea\u80fd\u4f7f\u7528pc\u7aef\u5b9e\u73b0\uff09**\n\n \u200b\t\t\t\u5728\u5b89\u5353\u7aef\u7684\u64cd\u4f5c\u8f83\u590d\u6742\u4e00\u70b9\uff0c\u5e76\u4e14\u5fc5\u987b\u4e3a**\u975e\u7b80\u6d01\u6a21\u5f0f**\u624d\u80fd\u5408\u5e76\u591a\u5f20\u56fe\u7247\u4e3a\u4e00\u6761\u6d88\u606f\uff0c\u7b80\u6d01\u6a21\u5f0f\u65e0\u6cd5\u5b9e\u73b0\n\n \u200b\t\t\t\u9996\u5148\u5728\u6587\u672c\u6846\u91cc**\u6253\u5165\u4e00\u4e2a\u7a7a\u683c**\uff0c\u540e\u518d\u9009\u62e9\u56fe\u7247\n\n \u200b\t![andriod](src/3.png)\n\n \u200b\t\t\t\u7136\u540e\u53d1\u9001\u5373\u53ef\u5b9e\u73b0\u5408\u5e76\n\n \u200b\t![android2](src/4.png)\n\n \u5982\u679c\u53d1\u751f\u6570\u5b57\u8f93\u5165\u9519\u8bef\uff0c\u53ef\u4ee5\u53d1\u9001``\u505c\u6b62\u62fc\u63a5``\u4ee5\u505c\u6b62\u5f53\u524d\u6d3b\u52a8\n\n \n\n### \u8868\u60c5\u5305\n\n1. \u53d1\u9001 `\u8868\u60c5\u5305\u5236\u4f5c`\n2. \u53d1\u9001\u56fe\u7247\n3. \u7b49\u5f85\u673a\u5668\u4eba\u53d1\u9001\u8fdb\u4e00\u6b65\u7684\u6307\u4ee4\u63d0\u793a\n\n## \u753b\u997c\n\n\u672a\u6765\u5c06\u6dfb\u52a0\u6587\u5b57\u8bc6\u522b\u3001~~\u56fe\u50cf\u62fc\u63a5~~\u7b49\u529f\u80fd\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\u7279\u6b64\u611f\u8c22\u672c\u5b66\u671f\u8ba1\u7b97\u673a\u89c6\u89c9\u8bfe\u7a0b\u7684\u6559\u6388\uff0c\u4ed6\u7684\u4e13\u4e1a\u6307\u5bfc\u548c\u542f\u53d1\u6027\u6559\u5b66\u4e3a\u672c\u9879\u76ee\u63d0\u4f9b\u4e86\u5b9d\u8d35\u7684\u7406\u8bba\u652f\u6301\u548c\u7075\u611f\u3002\u4f5c\u8005\u5728\u8bfe\u7a0b\u4e2d\u5b66\u4e60\u5230\u7684\u77e5\u8bc6\u548c\u6280\u80fd\uff0c\u5bf9\u4e8e\u672c\u9879\u76ee\u7684\u6210\u529f\u5b9e\u73b0\u8d77\u5230\u4e86\u5173\u952e\u6027\u4f5c\u7528\u3002\u6211\u4eec\u5bf9\u4ed6\u7684\u8f9b\u52e4\u4ed8\u51fa\u548c\u6df1\u539a\u7684\u4e13\u4e1a\u77e5\u8bc6\u8868\u793a\u6700\u6df1\u7684\u656c\u610f\u548c\u611f\u6fc0\u3002\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "\u63d0\u4f9b\u591a\u79cd\u56fe\u50cf\u5904\u7406\u529f\u80fd\u7684bot\u63d2\u4ef6",
"version": "1.0.8",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0215f57bcede9f8a1cda6862596f5f8c32e77ab9c695d39d16d1894754f808a3",
"md5": "2294660cefe02be5b6f87a609ea05475",
"sha256": "c723e0e9e1eff7911fba8a214c7498c0e219dcb3d620495cbce2a9f611cf5b7e"
},
"downloads": -1,
"filename": "nonebot_plugin_imagemaster-1.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2294660cefe02be5b6f87a609ea05475",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 6026051,
"upload_time": "2024-06-11T08:30:12",
"upload_time_iso_8601": "2024-06-11T08:30:12.643663Z",
"url": "https://files.pythonhosted.org/packages/02/15/f57bcede9f8a1cda6862596f5f8c32e77ab9c695d39d16d1894754f808a3/nonebot_plugin_imagemaster-1.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bd3a871f6f5b78f803497f57a38a15ebc448961bcc7a78e36dccfb7124bb9fa7",
"md5": "7abb2a6341859a706fae5efda8786b1d",
"sha256": "4ae812630e01ca2ceea2ec4b9499e817f6905e156ba3a11ffc809ae128763298"
},
"downloads": -1,
"filename": "nonebot_plugin_imagemaster-1.0.8.tar.gz",
"has_sig": false,
"md5_digest": "7abb2a6341859a706fae5efda8786b1d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 6011720,
"upload_time": "2024-06-11T08:30:15",
"upload_time_iso_8601": "2024-06-11T08:30:15.483556Z",
"url": "https://files.pythonhosted.org/packages/bd/3a/871f6f5b78f803497f57a38a15ebc448961bcc7a78e36dccfb7124bb9fa7/nonebot_plugin_imagemaster-1.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-11 08:30:15",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "nonebot-plugin-imagemaster"
}