Skip to content

Sends messages to a QQ group when people lining up decreases below threshold.

License

Notifications You must be signed in to change notification settings

Fm233/LineUpNotifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Line Up Notifier

The software reads video stream from connected webcam or Bilibili Live (downloaded using bilibili-live-recorder, will be sent to rtsp-simple-server via ffmpeg first), and analyzes the stream with yolov7.

After getting a rough number of people in stream, it sends a warning message to a certain QQ group using Nonebot, if the number is low enough.

Requirements

Docker is recommended.

Configuration

Specify QQ Account

Execute go-cqhttp/go-cqhttp.tar.gz first, you'll get a config.yml.

Edit it according to go-cqhttp.

Edit Bilibili Live Room ID

In compose-files/docker-compose.yml, edit ROOM_ID.

Edit MySQL Password

In compose-files/docker-compose.yml, edit PASSWORD. In go-server/src/main.go line 26, edit secret.

Edit QQ Debugger and Group

In qq_bot, create secret.py, fill in:

secret_qq_debugger = YOUR_QQ
secret_qq_group = YOUR_QQ_GROUP

Edit message

In qq_bot/localize.py, edit function send and/or interp.

Deploy

Execute the following commands in root folder:

docker build -t go-cqhttp ./go-cqhttp
docker build -t bili-live-rec ./live-rec
docker build -t qq-bot ./qq_bot
docker build -t nab-server ./go-server/src
docker build -t nab-yolov7 ./yolov7

In compose-files, execute docker-compose up -d.

Stack

Contribute

Pull requests are welcomed :)

License

As yolov7 is licensed by GPL-3.0, this software inherits GPL-3.0 as well.

About

Sends messages to a QQ group when people lining up decreases below threshold.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published