支持 JPG、JPEG、PNG、BMP 格式图片,单张最大 16 MB。
POST /plateimage (整车图片)
{
"success": true,
"image_name": "car.jpg",
"num_plates": 1,
"results": [{
"color": "蓝",
"detection_confidence": 0.8149,
"plate_number": "粤V·JX888",
"recognition_confidence": 0.8257
}],
"time_ms": 156.29
}
POST /ocrimage (仅包含文字区域的图片)
{
"success": true,
"image_name": "text.png",
"text": "你好世界",
"confidence": 0.9876,
"time_ms": 45.32
}
POST /savephotoimage (multipart/form-data 图片文件)mjphoto 目录,文件名从 1 开始递增
{
"success": true,
"filename": "1.jpg"
}
# 车牌识别
curl -X POST -F "image=@/path/to/car.jpg" http://localhost:6000/plate
# 通用文字识别
curl -X POST -F "image=@/path/to/text.jpg" http://localhost:6000/ocr
# 保存图片
curl -X POST -F "image=@/path/to/photo.jpg" http://localhost:6000/savephoto
GET /health - 健康检查服务运行在端口 6000,模型已预热,请直接调用。