萤石云摄像头api+百度飞桨OCR 实现非智能电表读表-CSDN博客
这个方法不是ocr了,ocr不准确,也没有ai聪明和识别准确
上对接刚刚gemini pro 接口
curl http://167.88.**********.176:7080/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer AIzaSyA****************Yvgkk4WU3Bw" \
-d '{
"model": "gpt-4-vision-preview",
"messages": [{"role": "user", "content": [
{"type": "text", "text": "电表度数是多少?"},
{
"type": "image_url",
"image_url": {
"url": "http://download.10050.eu.org:8081/1.png"
}
}
]}],
"temperature": 0.7
}'
gemini 的api 申请
GitHub - google-gemini/cookbook: A collection of guides and examples for the Gemini API.
开始开发
转到谷歌人工智能工作室。
使用您的谷歌帐户登录。
创建API密钥。
对Python使用快速启动,或者使用curl调用RESTneneneba API。