NoneBot plugin for detecting photos taken from screens in group chats.
Project description
nonebot-plugin-paiping
��������������������������������������� NoneBot2 ������������������������ OneBot V11 ��������������������������������������� OpenCV ������������������������������������������������������������������������������������������������������������������������
������
pip install -e .
��������� NoneBot ������������������
nonebot.load_plugin("nonebot_plugin_paiping")
YAML ������
������������������������������������������������
data/paiping/config.yml
���������������������
enabled: true
reply_when_detected: true
reply: ���������������������������������������������������������������
score_threshold: 0.62
group_whitelist: []
group_blacklist: []
debug: false
������������������ SuperUser ��������������������������������������� YAML��������������� /������ ���������
.env ������������������������������ YAML ������������������
PAIPING_CONFIG_FILE=data/paiping/config.yml
PAIPING_ENABLED=true
PAIPING_SCORE_THRESHOLD=0.62
PAIPING_REPLY="���������������������������������������������������������������"
PAIPING_DEBUG=false
���������������
| ��������� | ��������� | ������ |
|---|---|---|
PAIPING_CONFIG_FILE |
data/paiping/config.yml |
������������������������������ YAML ������������ |
PAIPING_ENABLED |
true |
������������������������ |
PAIPING_SCORE_THRESHOLD |
0.62 |
������������������������������ |
PAIPING_REPLY_WHEN_DETECTED |
true |
������������������������������ |
PAIPING_GROUP_WHITELIST |
[] |
��������������������������� |
PAIPING_GROUP_BLACKLIST |
[] |
������������������ |
PAIPING_MAX_IMAGES_PER_MESSAGE |
4 |
��������������������������������� |
PAIPING_MAX_IMAGE_BYTES |
10485760 |
������������������������������ |
PAIPING_DEBUG |
false |
������������������������������������ |
SuperUser ������
������������������ NoneBot SUPERUSERS ���������������
/������ ������
/������ ���
/������ ���
/������ ���������
/������ ���������
/������ ������ ���������������������������������������������
/������ ������ ���
/������ ������ ���
/������ ������ 0.62
/������ ������ ���
/������ ������ ���
/������ ������
���������/paiping���/���������������
������������������
���������������������������������������������������
python scripts/paiping_probe.py path\to\image_or_dir
������������������������������������������������������ OpenCV ������������������������������������������������
python scripts/paiping_probe.py samples --threshold 0.58
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_paiping-0.1.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_paiping-0.1.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: nonebot-plugin-paiping-uploader/0.1.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a42d189c1a54537d246be0a94cdb508d721de29e22be21d2c96302777fa5e304
|
|
| MD5 |
f80aa2de21c8263f5e11cb8a78938042
|
|
| BLAKE2b-256 |
f76f24dc9bb47daab93c6a718bb2859c0e8fcad5a6fc0dc5e6fa2cbf6fe0db28
|
File details
Details for the file nonebot_plugin_paiping-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_paiping-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: nonebot-plugin-paiping-uploader/0.1.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
340ffc03d5a19a3e19f83b595565676f7096b4c70501d6c835a185f5728502f8
|
|
| MD5 |
368853a02a8e34f9d55687ed8c5256ef
|
|
| BLAKE2b-256 |
c6792bb4330876a32a35b2a4d96ba6cfe69f4db6a48ef992ab1c1a51fa04f9a6
|