# 2021/01/06 Azure AI Cognitive Services (中科大) 課前準備: 1.Microsoft Account(也就是hotmail.com, Outlook.com, 或Office 365帳號,請務必於上課前申請) https://account.microsoft.com/account?lang=zh-TW 2.Azure Portal Account (請務必於上課前申請,上課中申請失敗率非常高,同一個對外IP短時間內無法多次申請) https://azure.microsoft.com/zh-tw/free/ 或 (學員email可申請底下學生專用額度帳號) https://azure.microsoft.com/zh-tw/free/students/ 3.LINE Account (設計Chat Bot用,請務必於上課前申請,但我猜你一定有,只要能用email登入PC版的LINE,即可) 4.手機 (收取簡訊驗證身分用) 5.信用卡 (如果無法於上課前申請完成Azure Account則可能需要) 學員上課環境: 1.Postman https://www.getpostman.com/downloads/ 2.建議使用 Chrome 瀏覽器 硬體環境需求 1.由於大量實作均需要連上雲端,建議網路速度不低於100M的上課環境較佳 2.網路需要可以連線上網(80, 443),請勿阻擋 3389, 1433等port. 展示LINE Bot: 圖像、人臉辨識 翻譯王 您可以用LINE 搜尋 @ejn1954w 將其加入好友即可測試 或用手機點選底下連結: https://line.me/R/ti/p/%40ejn1954w 或掃描QR Code 使用 Comuter Vision 測試與申請位置: https://azure.microsoft.com/zh-tw/services/cognitive-services/computer-vision/ 免費圖床: Imgur.com postman工具下載 https://www.getpostman.com/downloads/ lab 目標 登入 https://portal.azure.com/ 申請computer vision(建立資源) 取得端點與金鑰 檢視快速入門 API(3.1) 文件位置: https://westcentralus.dev.cognitive.microsoft.com/docs/services/computer-vision-v3-1-ga/operations/56f91f2e778daf14a499f21b 使用postman存取Computer Vision: 端點 [POST] https://[換成你的]/vision/v3.1/analyze[?visualFeatures][&details][&language] 參數(辨識圖片,是否為成人?人臉數量?說明?): Ocp-Apim-Subscription-Key [金鑰] {"url":"https://i.imgur.com/h66UvxY.jpg"} hands-on video: https://youtu.be/3rUya2qb2UA Create line bot(建立機器人): https://developers.line.biz/ https://youtu.be/dWc21tALXiU cd\ dotnet new --install isRock.Template.LineWebHook::1.0.12 #... md testlinebot cd testlinebot dotnet new webapi dotnet add package linebotsdk dotnet new linewebhook code . #..... dotnet build dotnet run 下載ngrok: http://arock.blob.core.windows.net/blogdata202101/Ngrok.zip startup.cs //app.UseHttpsRedirection(); dotnet build dotnet run StartNgrok.bat ==> https://92b73b0c4e36.ngrok.io/api/ComputerVision 使用Translator Text [POST] https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=ja&to=en&to=ko Ocp-Apim-Subscription-Key [金鑰] :+1: [ {"Text":"嗨,大家今天過的好嗎?"}, {"Text":"端午節快到了,我想吃肉粽"} ] source code: https://github.com/isdaviddong/Linebot-Demo-TranslatorKing Custom Vision 建立服務畫面 圖片集: http://arock.blob.core.windows.net/blogdata201905/圖片集.zip LUIS(語意分析) 申請網址: https://luis.ai Tutorial: Build LUIS app to determine user intentions https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-quickstart-intents-only language understanding AI hands-on Lab 1.https://www.luis.ai 2.create a LUIS App 參考文章reference article: https://studyhost.blogspot.com/2016/08/bot-framework-4-luis.html 參考影片reference video: https://channel9.msdn.com/Shows/NET-Walker-5/luis-1 Exercise 目標Goal: 建立 1.客訴行為、點餐行為 兩個intents 2.建立 餐點名稱、飲料名稱 兩個entities 參考語句: 我要點一份燒餅油條 麻煩你我需要一份蛋餅 給我來個大亨堡 三明治帶走 今天請幫我來一個飯糰 memo: 只要train變成紅色都要點選並Publish LUIS API Document: https://westus.dev.cognitive.microsoft.com/docs/services/5819c76f40a6350ce09de1ac/operations/5819c77140a63516d81aee78 設計訂票 intent 與 entities 目標: 1.建立訂票intent 2.建立車站站別、票種 entity 建議例句: 我要一張從台北到高雄的對號座 我要三張車票,去高雄,從台北出發 我要兩張去台南的車票,下午3:30出發 QnA Maker: 請先至Azure Portal建立QnA Maker後,即可至底下後台位置進行設計。 建立完服務後,請至底下後台位置設計: https://www.qnamaker.ai/ 可匯入的pdf: https://li.oit.edu.tw/files/14-1006-8074,r452-1.php?Lang=zh-tw 其他補充資料 官網位置 QnA Maker(快速完成Q&A設計,PDF直接匯入知識庫實現QA): https://www.qnamaker.ai 相關資料 https://studyhost.blogspot.com/2019/01/qna-maker-1-qna-maker.html LUIS(自然語言識別,點餐客訴展示): https://www.luis.ai/ 相關資料 https://studyhost.blogspot.com/2018/01/clinebot19-luis.html Computer Vision(電腦視覺): https://azure.microsoft.com/zh-tw/pricing/details/cognitive-services/computer-vision/ Custom vision(自訂視覺): https://www.customvision.ai/projects Face API(人臉辨識): https://azure.microsoft.com/zh-tw/services/cognitive-services/face/ speech-to-text(語音轉文字): https://azure.microsoft.com/zh-tw/services/cognitive-services/speech-to-text/#speech-transcription Translator Text API(文字翻譯): https://azure.microsoft.com/zh-tw/services/cognitive-services/translator-text-api/ 相關資源: LINE HOL : https://github.com/isdaviddong/HOL-LineBotSDK LINE Bot blog: http://studyhost.blogspot.com/2018/01/index-clinebot.html LineBotSDK:https://www.nuget.org/packages/LineBotSDK Line Bot設計相關課程:http://www.studyhost.tw/NewCourses/LineBot
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up