📑[Note]YOLO & Line Messaging API

Nonpavit Detbun 🔋🍺
1 min readJun 5, 2020

--

Object Detection Chat Bot

บทความนี้จะลองนำ You only look once (YOLO) มาแสดงผลลัพธ์ในรูปแบบ Object Detection อย่างง่าย บน Line Messaging API ด้วย Flask

สามารถอ่านบทความที่เกี่ยวข้องก่อนหน้าได้ที่นี่

จากบทความที่แล้ว ใน app.py จะพบว่าส่วนที่ใช้ในการจัดการกับรูปภาพที่เข้ามาในระบบ คือ Other Message Type เราจะใช้ส่วนนี้ในการทำระบบ Object Detection

# Other Message Type@handler.add(MessageEvent, message=(ImageMessage, VideoMessage, AudioMessage))

โดยส่วนที่ต้องทำการแก้ไขให้เข้ากับ Model คือ net (network ที่ได้เรียนรู้) และ classes (class ที่ได้ทำการเรียนรู้ไว้) ในระบบนี้ไม่ได้ทำการส่งค่ากลับใน class ที่ไม่ใช่ Dog ผู้อ่านสามารถไปแก้ไขเพิ่มเติมในส่วนการตอบโต้นี้ได้ เพื่อให้ user ที่มาใช้ได้ทราบผลลัพธ์ว่าระบบสามารถตรวจสอบได้ แค่ระบบไม่รู้จักสิ่งที่ส่งมาตรวจสอบ

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Nonpavit Detbun 🔋🍺
Nonpavit Detbun 🔋🍺

Written by Nonpavit Detbun 🔋🍺

I’m Electrical Engineering. 📟 I have an interest in Web App, Mobile App, IoT and Microcontroller 🧐

No responses yet

Write a response