ใช้ AI ตรวจจับใบหน้าคนในรูป
สมัยนี้ดูจะธรรมดาเกินไป คงเห็นกันทำเยอะแล้ว
เรามาดูผลงานวิจัย AI อีกเวอร์ชั่นหนึ่ง
ใช้ตรวจจับอารมณ์คนขณะเรียลไทม์ได้ด้วย ... อะฮะไม่ธรรมดา
.
จาก paper ต้นฉบับ
"Real-time Convolutional Neural Networks for emotion and gender classification"
https://arxiv.org/abs/1710.07557
.
เทคนิคโดยย่อเขาจะใช้ Deep learning เป็นประเภท CNN
มาทำการตรวจจับ 2 อย่างในรูปภาพได้แก่
1) ตรวจสอบว่าเป็น เพศชาย เพศหญิง ...มีความแม่นยำสูง ถูกต้อง 96%
2) ตรวจจับอารมณ์คนได้แก่ ....แต่ความแม่นยำยังต่ำอยู่ ถูกแค่ 66%
.
ซึ่งอารมณ์คนที่จับได้ มี่ 8 อย่าง ดังนี้
“angry”, “disgust”, “fear”, “happy”,“sad”, “surprise”, “neutral”
แปลเป็นไทย
“ โกรธ”,“ รังเกียจ”,“ กลัว”,“ มีความสุข”,“ เศร้า”,“ แปลกใจ”,“ เป็นกลาง”
.
ซึ่งเทคนิคนี้สามารถตรวจจับภาพหน้าคนได้ทั้งแบบภาพนิ่ง
หรือเป็นภาพวีดีโอก็ได้
ในระดับเรียลไทม์ ....ขอบอกเลย
.
แต่เท่าที่ลองจับอารมณ์คน
ก็ยังเห็นผิดพลาดเยอะอยู่นะ
ถ้าคนสีหน้านิ่งเกิ๊นไป ก็ตรวจไม่ได้
ถือว่าปราบเซียนอยู่เหมือนกัน
.
คิดไปคิดมา เปลี่ยนมาตรวจจับหน้าคนในละครแทนดีกว่า
เลยไปเอามาจากละคร "น้ำตากามเทพ" ของจีทีเฮช
เหตุผลนักแสดงเรื่องนี้ เขาเล่นโอเวอร์แอคติ้ง เล่นใหญ่ดี
ผลปรากฏว่าตรวจจับได้ดีขึ้นเยอะ
(แต่ก็ยังมีผิดอยู่ เอ่อๆ บ้าง)
.
ทั้งนี้ในคลิปจะตรวจจับอารมณ์คนอย่างเดียว
จะเห็นเป็นกรอบสี่เหลี่ยมครอบหน้าคน
แล้วขึ้นข้อความบอกว่าสีหน้าอารมณ์ตอนนี้คืออะไร?
แต่ไม่ได้โชว์เพศชาย หรือหญิงให้ดูนะบอกก่อน
:
:
ใครสนใจอยากลองทำ
ก็เชิญดูโค้ดเขาตามนี้เลยครับ
มันเป็นของงานวิจัยเขาโดยตรง
https://github.com/oarriaga/face_classification/
.
ทั้งนี้โค้ดสามารถอ่านจากรูปภาพ
หรือจากกล้องเวบเคมก็ได้ ...ชีวิตดีดี
ภาษาที่ใช้เป็น python ครับผม
แต่เท่าที่ลองรัน ก็เจอผู้สร้างวางยา ยังมีบั๊กอยู่นะครับ ฮ่าาาา
:
ยังไงก็เอาไปศึกษาได้
หรือจะไปต่อยอด ....ทำให้เหนือกว่าเขาก็ได้ครับ
:
สำหรับวิธีติดตั้งและใช้งานภาษาไทย ผมเขียนไว้ที่นี้นะครับ
https://www.patanasongsivilai.com/…/real-time-emotion-detec…
:
หมายเหตุ ในคลิปผมใส่เสียงพูดตัวละครเข้าไป เพื่ออรรถรสในการชม
ติดตามคลิปนี้ได้ที่ youtube อีกที
https://youtu.be/fzgXTNXHOME
.
.
ขอแนะนำหนังสือ "AI ไม่ยาก เรียนรู้ด้วยเลขม. ปลาย"
เน้นพื้นฐานคณิตศาสตร์ระดับเด็กม. ปลาย
ไม่มีโค้ดดิ้งให้ปวดหัว
ก็สั่งซื้อได้ที่นี้ (ขออภัยยังไม่มีเล่มกระดาษขาย)
👉 https://www.mebmarket.com/web/index.php…
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ที่
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai programmer
Use AI to detect faces in pictures
It seems too ordinary these days. We probably see a lot of people doing.
Let's see another version of AI research.
Use to detect real-time people's emotions too... Aha. Extraordinary.
.
From the original paper.
"Real-time Convolutional Neural Networks for emotion and gender classification"
https://arxiv.org/abs/1710.07557
.
Brief technique. He will use Deep learning as a CNN type.
Let's do 2 detections in the photo:
1) Check out male, female... High accuracy 96 % accurate
2) Emotional detection. People are.... but accuracy is still low. Only 66 % right.
.
The following 8 people who caught me.
“angry”, “disgust”, “fear”, “happy”,“sad”, “surprise”, “neutral”
Translate to Thai
′′ Angry "," disgusted "," afraid "," happy "," sad "," surprise "," neutral ′′
.
This technique can detect a human face in a slide way.
Or it can be a video.
In real time.... Let me tell you.
.
But I try to catch people's emotions.
Still see a lot of mistakes
If the face is too calm, I can't check.
It's considered a masterful defeat.
.
Think about it. Change to detect people in drama instead.
So I took it from GTH's ′′ Cupid Tears ′′ drama.
This actor reason he plays over action. He plays big.
Turns out a lot better detection
(but still wrong, well, some)
.
In the clip, I will detect emotion only.
I will see it as a square frame in front of people.
So what's the current expressions?
But I didn't show you male or female. I told you first.
:
:
Who is interested in trying it
Let's see his code according to this.
It belongs to his research directly.
https://github.com/oarriaga/face_classification/
.
The code can be read from pictures
Or from the web camera... Life is good.
The language used as python.
But as far as I try, I have found a poisoning creator. There is still a buck. Haha.
:
I can study it anyway.
Or you can go to the top.... You can do it above other people.
:
For how to install and use Thai language, I wrote this here.
https://www.patanasongsivilai.com/blog/real-time-emotion-detection-ai
:
Note in the clip, I put character voice in for the taste of watching.
Follow this clip on YouTube again.
https://youtu.be/fzgXTNXHOME
.
.
Introducing the book ′′ AI. It's not difficult to learn with university numbers. The end ′′
Focusing on the base of math. Level of middle school kids. The end.
No code to get headache
You can order here. (Sorry, no paper book for sale)
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ
.
Personal like a book. You can see it.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
✍ Written by Thai programmer thai coderTranslated
同時也有1部Youtube影片,追蹤數超過12萬的網紅prasertcbs,也在其Youtube影片中提到,เนื้อหาในคลิปนี้จะเป็นการจำลองสถานการณ์ว่าเรามีไฟล์ต่าง ๆ อยู่ใน folder ก่อนที่จะมาใช้ git และ github โดยสาธิตให้เห็นถึงขั้นตอนในการ ► 03:32 ทำ git i...
「python version change」的推薦目錄:
- 關於python version change 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳解答
- 關於python version change 在 prasertcbs Youtube 的最佳解答
- 關於python version change 在 How to switch Python versions in Windows 10. Set Python path 的評價
- 關於python version change 在 Change the Python3 default version in Ubuntu 的評價
- 關於python version change 在 Pyenv - Simple Python version management - GitHub 的評價
- 關於python version change 在 Python Version Support — AWS Chalice 的評價
python version change 在 prasertcbs Youtube 的最佳解答
เนื้อหาในคลิปนี้จะเป็นการจำลองสถานการณ์ว่าเรามีไฟล์ต่าง ๆ อยู่ใน folder ก่อนที่จะมาใช้ git และ github โดยสาธิตให้เห็นถึงขั้นตอนในการ
► 03:32 ทำ git init เพื่อสร้าง local repository ขึ้นมา
► 04:25 การสร้าง remote repository บน github
► 07:54 การกำหนด user.name และ email ของ git (สร้างไฟล์ .gitconfig)
► 09:07 การ commit change ด้วย Visual Studio Code
► 09:30 การ push (ส่ง) ไฟล์จาก local repository ไปยัง remote repository (บน github)
► 13:21 การ pull (ดึง) ไฟล์จาก remote repository (บน github) ลงมายัง local repository (local hard drive)
► 14:37 การ sync (push/pull) ไฟล์จาก local และ remote repository
เชิญสมัครเป็นสมาชิกของช่องนี้ได้ที่ ► https://www.youtube.com/subscription_center?add_user=prasertcbs
playlist สอน git เบื้องต้น ► https://www.youtube.com/playlist?list=PLoTScYm9O0GGsV1ZAyP4m_iyAbflQrKrX
playlist สอนภาษา Python ► https://www.youtube.com/playlist?list=PLoTScYm9O0GH4YQs9t4tf2RIYolHt_YwW
playlist สอนภาษาไพธอน Python OOP ► https://www.youtube.com/playlist?list=PLoTScYm9O0GEIZzlTKPUiOqkewkWmwadW
playlist สอน Python 3 GUI ► https://www.youtube.com/playlist?list=PLoTScYm9O0GFB1Y3cCmb9aPD5xRB1T11y
playlist สอนภาษา C เบื้องต้น ► https://www.youtube.com/playlist?list=PLoTScYm9O0GHHgz0S1tSyIl7vkG0y105z
playlist สอนภาษา C++ ► https://www.youtube.com/playlist?list=PLoTScYm9O0GEfZwqM2KyCBcPTVsc6cU_i
playlist สอนภาษา C# ► https://www.youtube.com/playlist?list=PLoTScYm9O0GE4trr-XPozJRwaY7V9hx8K
playlist สอนภาษา Java ► https://www.youtube.com/playlist?list=PLoTScYm9O0GF26yW0zVc2rzjkygafsILN
playlist สอนภาษา PHP เบื้องต้น ► https://www.youtube.com/playlist?list=PLoTScYm9O0GH_6LARFxozL_viEsXV2wgO
playlist สอนภาษา R เบื้องต้น ► https://www.youtube.com/playlist?list=PLoTScYm9O0GF6qjrRuZFSHdnBXD2KVICp
#prasertcbs #prasertcbs_git #prasertcbs_github

python version change 在 Change the Python3 default version in Ubuntu 的推薦與評價
Check python version on terminal: python --version · Execute this command to switch to python 3.6: sudo update-alternatives --install /usr/bin/ ... ... <看更多>
python version change 在 Pyenv - Simple Python version management - GitHub 的推薦與評價
Lets you change the global Python version on a per-user basis. Provides support for per-project Python versions. Allows you to override the Python version with ... ... <看更多>
python version change 在 How to switch Python versions in Windows 10. Set Python path 的推薦與評價
In this tutorial, I'll show how to switch between Python versions in Windows 10. It's important to know how to change the Python version ... ... <看更多>