Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
yqwu18 3403f91a1f | 1 year ago | |
---|---|---|
chart | 1 year ago | |
README.md | 1 year ago | |
demo.mov | 1 year ago |
通过 AthenaServing & Mmocr 共同构建可用的物体检测Ai能力服务。整套流程体现了AthenaServing如何高效部署Ai能力模型,方便用户完成训练模型的快速部署与上线。
cd chart
helm install athena .
## 等待AthenaServing服务组件全部启动成功后
helm install mmocr .
image = open("demo_text_det.jpg","rb") #待检测的图片
img = base64.b64encode(image.read())
url = "http://172.16.59.17:30889/mmocr" # url 可以是 hostIP:nodePort 也可以是 svcIP:svcPort
url = "http://172.16.59.17:30889/v1/private/mmocr"
method = "POST"
headers = {"Content-Type":"application/json"}
data = {
"header": {
"app_id": "123456",
"uid": "39769795890",
"did": "SR082321940000200",
"imei": "8664020318693660",
"imsi": "4600264952729100",
"mac": "6c:92:bf:65:c6:14",
"net_type": "wifi",
"net_isp": "CMCC",
"status": 3,
"request_id": None
},
"parameter": {
"mmocr": {
"category": "ai_category",
"application_mode": "common_gpu",
"gpu_id": "first",
"gpu_type": "T4G16",
"boxes": {
"encoding": "utf8",
"compress": "raw",
"format": "json"
}
}
},
"payload": {
"data": {
"encoding": "jpg",
"image": img.decode("utf-8"),
"status": 3
}
}
}
python demo.py
##################################
MMocr Result: box located at [190, 37, 253, 31, 254, 46, 191, 52], box score is 0.9566415548324585. Detected text is nboroughofs, text score is 1.0...
MMocr Result: box located at [253, 47, 257, 36, 287, 47, 282, 58], box score is 0.9649642705917358. Detected text is fsouthw, text score is 1.0...
MMocr Result: box located at [157, 59, 188, 41, 194, 52, 163, 70], box score is 0.9521175622940063. Detected text is londond, text score is 0.9897959183673469...
MMocr Result: box located at [280, 58, 286, 50, 306, 67, 300, 74], box score is 0.9397557377815247. Detected text is thwark, text score is 1.0...
...
No Description
Smarty Text Python Shell
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》