延寿水库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
WangGuangYuan d0930a4f8b feat:1.识别的时候,记录识别到物体的时间戳;2.视频截取前后2.5s,截取时需要保证物体的识别,返回mp4文件 1 month ago
app feat:1.识别的时候,记录识别到物体的时间戳;2.视频截取前后2.5s,截取时需要保证物体的识别,返回mp4文件 1 month ago
Dockerfile 初使提交 1 month ago
README_API.md 初使提交 1 month ago
docker-compose.yml 初使提交 1 month ago
docker-compose.yml.v1.cpu 初使提交 1 month ago
docker-compose.yml.v1.gpu 初使提交 1 month ago
readme.txt 初使提交 1 month ago
requirements.txt 初使提交 1 month ago
test.jpg 初使提交 1 month ago

readme.txt

### 编译部署日志
##########################################################################################
# 释放redis镜像
sudo gunzip -c redis-atia-x86.tar.gz | sudo docker load

# 编译镜像
sudo docker-compose build

# 启动服务
sudo docker-compose up -d

# 结束服务
sudo docker-compose down -v

# 观察API日志
sudo docker logs -f reservoir_ai-api-1

# 观察Worker日志
sudo docker logs -f reservoir_ai-worker-1

# 观察显卡
watch -n 1 nvidia-smi
########################################################################################


### 测试
##########################################################################################
# 测试图片接口
curl -X 'POST' \
'http://localhost:18005/v1/predict/image' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@test.jpg;type=image/jpeg'

# 测试视频流
curl -X 'POST' \
'http://localhost:18005/v1/task/stream' \
-H 'Content-Type: application/json' \
-d '{
"source_url": "/app/app/TioTech.mp4",
"webhook_url": "https://webhook.site/d8513b78-f299-41f8-ab49-eb49db7b1b6e",
"scene_type": "illegal_fishing",
"roi": [[0, 0], [1920, 0], [1920, 1080], [0, 1080]]
}'


# 实时视频流
curl -X 'POST' \
'http://localhost:18005/v1/task/stream' \
-H 'Content-Type: application/json' \
-d '{
"source_url": "rtsp://admin:wd19216811@192.168.1.244:554/h264/ch1/sub/av_stream",
"webhook_url": "https://webhook.site/d8513b78-f299-41f8-ab49-eb49db7b1b6e",
"scene_type": "illegal_fishing",
"roi": [[0, 0], [1920, 0], [1920, 1080], [0, 1080]]
}'

# 注
## webhook_url使用的是 https://webhook.site提供的

#########################################################################################