youbbs avatar

Open Vision API 基于开源模型的开源计算机视觉API

🕛 by youbbs

Open Vision API是基于开源模型的开源计算机视觉API。

  • 支持多种硬件加速器
  • 支持多种深度学习框架
  • 基于开源模型

使用 demo

Bash: demo
1
2
3
4
$ git clone https://github.com/openvisionapi/ova-client.git
$ cd ova-client
$ make setup
$ make demo

客户端的使用

比如通过 API 识别一张图片的内容

Bash: openvisionapi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$ http -f POST https://api.openvisionapi.com/api/v1/detection  model="yolov4" image@images/cat.jpeg

HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 128
Content-Type: application/json
Date: Sat, 08 May 2021 18:08:03 GMT
Server: nginx
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload

{
    "description": "Detected objects",
    "predictions": [
        {
            "bbox": {
                "x1": 442,
                "x2": 982,
                "y1": 199,
                "y2": 1270
            },
            "label": "cat",
            "score": "0.93"
        }
    ]
}

💘 相关文章

写一条评论

Based on Golang + fastHTTP + sdb | go1.16.5 Processed in 0ms