Database and Training
In our database, there are two tables. One table “Person” is for storing the name of people and their index of 4 kinds of emotion which are stored in other table “Position”. In the “Position” table, for each index, there are 6 control points for lip Bezier curve, 6 control points for left eye Bezier curve, 6 control points for right eye Bezier curve, lip height and width, left eye height and width and right eye height and width. So, by this method, the program learns the emotion of the people.
Emotion Detection
For emotion detection of an image, we have to find the Bezier curve of the lip, left eye and right eye. Then we convert each width of the Bezier curve to 100 and height according to its width. If the person’s emotion information is available in the database, then the program will match which emotion’s height is nearest the current height and the program will give the nearest emotion as output.
If the person’s emotion information is not available in the database, then the program calculates the average height for each emotion in the database for all people and then get a decision according to the average height.
ฐานข้อมูลและการฝึกอบรม
ในฐานข้อมูลของเรามีโต๊ะสองโต๊ะ ตารางที่ " คน " คือสำหรับการจัดเก็บชื่อของผู้คนและดัชนีของ 4 ชนิดของอารมณ์ซึ่งจะถูกเก็บไว้ในโต๊ะ " ตำแหน่ง " ใน " ตำแหน่ง " ตารางสำหรับแต่ละดัชนี มี 6 จุดควบคุมเส้นโค้ง Bezier ริมฝีปาก , ตาซ้าย 6 จุดควบคุมเส้นโค้ง Bezier , 6 จุดควบคุมเส้นโค้ง Bezier ตาขวา ,ความสูงและความกว้าง ความสูง ริมฝีปาก , ตาซ้ายและตาขวาความกว้างและความสูงและความกว้าง ดังนั้น , โดยวิธีนี้ , โปรแกรมเรียนรู้อารมณ์ของคน
อารมณ์อารมณ์ตรวจจับตรวจจับภาพ เราต้องหาเส้นโค้ง Bezier ของริมฝีปาก , ตาซ้ายและตาขวา . แล้วเราแต่ละแปลงความกว้างของเส้นโค้ง Bezier 100 ตามความกว้างและความสูง .ถ้าอารมณ์ของบุคคลเป็นข้อมูลที่มีอยู่ในฐานข้อมูล จากนั้นโปรแกรมจะตรงกับที่อารมณ์ของความสูงที่ความสูงปัจจุบันและโปรแกรมจะให้อารมณ์ที่ใกล้ที่สุด
ถ้าข้อมูลที่เป็นผลลัพธ์ อารมณ์ของบุคคลไม่อยู่ในฐานข้อมูลจากนั้นโปรแกรมจะคำนวณความสูงเฉลี่ยของแต่ละอารมณ์ในฐานข้อมูล เพื่อทุกคน และจากนั้นได้รับการตัดสินตามความสูงเฉลี่ย
การแปล กรุณารอสักครู่..
