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.
Docker is recommended.
Execute go-cqhttp/go-cqhttp.tar.gz
first, you'll get a config.yml
.
Edit it according to go-cqhttp.
In compose-files/docker-compose.yml
, edit ROOM_ID
.
In compose-files/docker-compose.yml
, edit PASSWORD
.
In go-server/src/main.go
line 26, edit secret
.
In qq_bot
, create secret.py
, fill in:
secret_qq_debugger = YOUR_QQ
secret_qq_group = YOUR_QQ_GROUP
In qq_bot/localize.py
, edit function send
and/or interp
.
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
.
- Golang: Gin, Gorm, go-cqhttp, rtsp-simple-server
- Python: yolov7, Nonebot, bilibili-live-recorder
- ffmpeg
- Mysql
Pull requests are welcomed :)
As yolov7 is licensed by GPL-3.0, this software inherits GPL-3.0 as well.