ใช้ 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
「cnn python code」的推薦目錄:
- 關於cnn python code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
- 關於cnn python code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
- 關於cnn python code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳貼文
- 關於cnn python code 在 Convolutional Neural Networks | CNN Tutorial for Beginners 的評價
- 關於cnn python code 在 Deep Learning basics with Python, TensorFlow and Keras p.3 的評價
- 關於cnn python code 在 Convolutional Neural Network from Scratch - YouTube 的評價
- 關於cnn python code 在 cnn.ipynb - Colaboratory - Google Colab 的評價
- 關於cnn python code 在 cnn-image-classification · GitHub Topics 的評價
- 關於cnn python code 在 5. CNN-LSTM — PseudoLab Tutorial Book 的評價
- 關於cnn python code 在 Python code of CNN with attention layer giving error in Keras 的評價
- 關於cnn python code 在 A CNN in Python WITHOUT frameworks 的評價
- 關於cnn python code 在 Fake image detection using cnn github 的評價
- 關於cnn python code 在 Coco dataset github 的評價
- 關於cnn python code 在 Multi label classification pytorch github 的評價
cnn python code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
โค้ดตัวอย่างการใช้ AI
ทำการแยกแยะภาพว่าเป็นภาพโป้ ลามก อนาจาร (classification)
.
เทคนิคที่ใช้คือ deep neural network (เป็น CNN)
ไลบรารี่ที่ใช้คือ Caffe เขียนโดย python
.
ซึ่งเป็นผลงานวิจัยจาก yahoo เมื่อ 3 ปีที่แล้ว
ในโปรเจคชื่อว่า open nsfw
แต่ความแม่นยำตรวจจับถือว่าโอเคเลย
.
_______________________
สนใจโค้ดก็ตามลิงค์นี้
👉 https://colab.research.google.com/…/1aFQgXH9WAvA_aJiZU4GZpp…
_______________________
.
+++++++++++++++++++++
(ชั่วโมงขายของ)
สำหรับผู้ที่สนใจ AI (ปัญญาประดิษฐ์)
เลยอยากขอแนะนำหนังสือ AI
ฉบับเรียนรู้ด้วยเลข ม.ปลาย เนื้อหาภาษาไทย
เล่ม ebook สนใจสั่งซื้อได้ที่นี้
.
👉 https://www.mebmarket.com/web/index.php…
(เล่มกระดาษตอนนี้ยังไม่มีนะครับ)
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ลิงค์นี้
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai progammer
ภาพโดย cocoparisienne จาก Pixabay
Sample code using AI
Digesting pornography as pornography (classification)
.
The technique used is deep neural network (CNN)
Library used is Caffe. Written by python
.
Which was a research result from Yahoo 3 years ago.
In the project called open nsfw
But precision detects is ok
.
_______________________
If you are interested, please follow this link.
👉 https://colab.research.google.com/drive/1aFQgXH9WAvA_aJiZU4GZppWrLnZNJ7Hh
_______________________
.
+++++++++++++++++++++
(Sale hours)
For those who are interested in AI (AI)
I would like to recommend AI book.
The version of learning with the number. Thai language content tip
Ebook. If interested, order here.
.
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ&fbclid=IwAR11zxJea0OnJy5tbfIlSxo4UQmsemh_8TuBF0ddjJQzzliMFFoFz1AtTo4
(I don't have paper book now.)
.
Personal like the book. You can see this link.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
.
✍ Written by Thai programmer thai progammer
Photo by cocoparisienne from PixabayTranslated
cnn python code 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳貼文
โค้ดตัวอย่างการใช้ AI
ทำการแยกแยะภาพว่าเป็นภาพโป้ ลามก อนาจาร (classification)
.
เทคนิคที่ใช้คือ deep neural network (เป็น CNN)
ไลบรารี่ที่ใช้คือ Caffe เขียนโดย python
.
ซึ่งเป็นผลงานวิจัยจาก yahoo เมื่อ 3 ปีที่แล้ว
ในโปรเจคชื่อว่า open nsfw
แต่ความแม่นยำตรวจจับถือว่าโอเคเลย
.
_______________________
สนใจโค้ดก็ตามลิงค์นี้
👉 https://colab.research.google.com/…/1aFQgXH9WAvA_aJiZU4GZpp…
_______________________
.
+++++++++++++++++++++
(ชั่วโมงขายของ)
สำหรับผู้ที่สนใจ AI (ปัญญาประดิษฐ์)
เลยอยากขอแนะนำหนังสือ AI
ฉบับเรียนรู้ด้วยเลข ม.ปลาย เนื้อหาภาษาไทย
เล่ม ebook สนใจสั่งซื้อได้ที่นี้
.
👉 https://www.mebmarket.com/web/index.php…
(เล่มกระดาษตอนนี้ยังไม่มีนะครับ)
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ลิงค์นี้
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai progammer
ภาพโดย cocoparisienne จาก Pixabay
AI sample code
Digesting into pornography (classification)
.
The technique used is deep neural network (CNN)
Library used is Caffe written by python
.
Which is a research result from Yahoo 3 years ago.
In a project called open nsfw
But accuracy is okay.
.
_______________________
If interested in the code, follow this link.
👉 https://colab.research.google.com/drive/1aFQgXH9WAvA_aJiZU4GZppWrLnZNJ7Hh
_______________________
.
+++++++++++++++++++++
(Sales hours)
For those interested in AI (Artificial Intelligence)
I want to recommend AI book.
The edition of learning with high school numbers. Thai language content end
The ebook book. If interested, order here.
.
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ&fbclid=IwAR11zxJea0OnJy5tbfIlSxo4UQmsemh_8TuBF0ddjJQzzliMFFoFz1AtTo4
(There is no paper book yet.)
.
Personal like the book, please see this link.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
.
✍ Written by Thai programmer thai progammer
Photo by cocoparisienne from PixabayTranslated
cnn python code 在 Deep Learning basics with Python, TensorFlow and Keras p.3 的推薦與評價

Convolutional Neural Networks - Deep Learning basics with Python, TensorFlow and Keras p.3 ... Text tutorials and sample code : ... ... <看更多>
cnn python code 在 Convolutional Neural Network from Scratch - YouTube 的推薦與評價

Convolutional Neural Network from Scratch | Mathematics & Python Code. Watch later. Share. Copy link. Info. Shopping. Tap to unmute. ... <看更多>
cnn python code 在 Convolutional Neural Networks | CNN Tutorial for Beginners 的推薦與評價
Professional Certificate Program In AI And Machine Learning: ... ... <看更多>