Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_paiping-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_paiping-0.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_paiping-0.1.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_paiping-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: nonebot-plugin-paiping-uploader/0.1

File hashes

Hashes for nonebot_plugin_paiping-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4981fd7003af92e2878630167f684eed8a6801cbea02f75008ec48425024d897
MD5 d448ed5dc2b912907a39f940d1b870c5
BLAKE2b-256 3bc841cf17996216d6ca3690f968d68470114a35d812121ac611a933e3841fb4

See more details on using hashes here.

File details

Details for the file nonebot_plugin_paiping-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_paiping-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee68f6f17ad6e4ab9eee9af13d0e6dfa8d79e57bcc742af34aa747f0db61af8
MD5 a2a5d096851e766a907b9838a4c080be
BLAKE2b-256 2dad95e331caff2a1d13fd98ccb7d945af7a66b7ed6a4daba72ac5d63213e2dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page