首页 > 编程知识 正文

ai少女药和食物,ai智能削水果

时间:2023-05-03 08:34:08 阅读:12316 作者:1495

水果分类模型的建立

模型已创建。 代码在这里。

3359 github.com/Microsoft docs/ms learn-Oxford.create-image-recognition-with-azure-IOT-edge/tree/main

Azure定制视觉服务是创建图像分类机器学习模型的简单方法,不需要成为数据科学或机器学习专家。 可以上传多个标记的图像的集合。 例如,您可以上传一组香蕉图像并将其标记为“香蕉”。

本模块使用预生成的分类模型。 图像分类模块是从Azure的自定义视觉创建和导出的。

查看cv-amd64文件夹下的自述. txt文件:

首先,编译Docker镜像,并将其发布(运行)为本地地址

# customvisiondockerfileexportedfromcustomvision.ai.# # build ` ` bashdockerbuild-tyourimagename.` # # buildarmcontaineronx 64 machine导出' arm ' dockerfilefromcustomvision.ai.thenbuilditusingdockerbuildxcommand.` ` ` ` ` babard arm/V7-tyourimagename-- load.` ` # # runthecontainerlocally ` ` ` ` ` ` bashdockerrun-p 127.0.0.133:80336080 werunmanualimageresizingtomaintainparitywithcvswebservicepredictionresults.ifparityisnotrequired, youcanenablefasterimageresizingbyuncommentingthelinesinstallingopencvinthedockerfile .如果Linux环境中没有用户桌面,则使用curl命令

thenuseyourfavoritetooltoconnecttotheendpoints.post http://127.0.0.1/imagewithmultipart/form-datausingtheimagedatake image-fimagedata=@ some _ file _ name.jpg post 333 octet-streame.g.curl-xpost http://127.0.0.1/image-h ' cost octet-stream '-- data-binary @ some _ file _ name.jpg post http://127.0.0.1/urlwithajsonbodyof { ' URL ' 3360 ' URL-d ' { ' URL ' 3360 ' testurlhere ' } ' forinformationonhowtousethesefilestocreateandddeploythroughazuremlcheckoutherereadmouthethereadmed

curl-xpost http://127.0.0.1/URL-d ' { ' URL ' : ' https://gimg2. Baidu.com/image _ search/src=http:/fmt size=42&; h=508&; w=900&; PPV=1. jpg refer=http://QQ public.qpic.cn app=2002 size=f999,10000 sec=1641007378 t=7d 2156 e 89 eee 36 b 6cd 8065 D6 ff ' predictions ' : [ { ' bounding box ' : null,' probability ' :8.6600212542713 e-05,' tagId': ',' tagity ' tagid ' ' probability ' :1.5800000028320937 e-06,' tagId': ',' tagName':'Green Apple'} ' ',{ ' bounddd } {'boundingBox':null,' probability ' :5.100006704524 e-0004 { ' bounding box ' : null,' probability ' :604 ' tagname ' : ' reda ppping ' project ' : ' ' } curl-xpost http://127.0.0.1/URL-d ' { ' URL ' : ' https://gimin 5b 695 dadn 58168 f6d.png refer=http://m.360buy img.com app=2002 size=f 9999,10000 q sec=1641104786 t=3d77a 973 c 8800707 predictions ' : [ { ' bounding box ' : null,' probability ' :0.0006651600124314427,' tagId': ',' ' probability ' :9.98999853132758 e-06,' tagid ' : ' hand ' },' probability ' :0.0984000 ' tagName':'Orange'} ',{ ' bounding box ' : null ' tagid ' : ',' tagName':'Purple Grapes'},{ } ' probability ' 33600.90091514874440 } ' project ' : ' ' } curl-xpost http://127.0.0.1/URL-d ' { ' URL ' : ' 180919041044 _ 846676 _ water.jpg refer=http://f.3dxy.com app=2002 size=f 9999, 10000 q=a80n=0g=0nfmt=jpmt sec=1641104951 t=b 9679 b2d 0800 c 73448 FDE 4ff 3c 152 BD0' } { ' created ' : ' 2021-12-033 ' 03t 06336026.897402 ' ' predictions ' : [ { ' bounding box ' : null,' probability':1.0,' tagId': ', ' tagname ' : ' Banan ce ] ' probability ' :5.99999978589949 e-08,' tagId': ',' tagName':'Hand'}]

' Green Apple ',' orange ' ' purple grapes ' ' red apple ' ' banana '。

请参阅以下内容:

创建水果分类模型- Learn | Microsoft Docs

项目全文: GitHub - MicrosoftDocs/ms learn-Oxford.create-image-recognition-with-azure-IOT-edge : microsoftlearnrepoformslearnmoduleoxford.cred oduleprovidesatutorialtoenablevisuallyimpairedpeopletousetheselfcheckout,thesystemwillincludeimagetospeeechcapabability

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。

  • 相关阅读