# ตอนที่ 1

มาทำระบบจดจำใบหน้า พร้อมส่งข้อมูลเข้า Google Sheet เพื่อทำระบบลงเวลา ด้วยบอร์ด CorgiDude กัน โดยตอนนี้จะเป็น ทฤษฏีแบบคร่าว ๆ นะครับปูพื้นฐานสำหรับคนที่ไม่เคยรู้มาก่อนว่ามันทำยังไงก่อนที่จะเริ่มเขียนโปรแกรม

หัวใจสำคัญของ Face Recognition ก็คือตัว Face Encoder (หรือจะเรียน face embedding / feature extractor ก็แล้วแต่) หน้าที่ของมันคือ จะแปลงภาพใบหน้าให้ออกมาเป็นตัวเลขจำนวนหนึ่ง (ใน CorgiDude เป็นเลขทศนิยม 128 ตัว) ความพิเศษของโมเดลนี้คือ ถ้าเราเอาภาพใบหน้าที่คล้าย ๆ กันเข้าไปมันจะได้เลขชุดที่คล้าย ๆ กันออกมา เราจึงสามารถเอาเลขชุดนี้ไปเปรียบเทียบกับฐานข้อมูลเลขใบหน้าแต่ละคนที่เราเก็บไว้ เพื่อหาว่ามันคล้ายกับเลขไหนมากที่สุด แล้วทายว่าเป็นคนนั้นออกมา รายละเอียดจะเป็นยังไง ดูใน Video นี้ได้เลยครับ

{% embed url="<https://youtu.be/LljmJzQvlgI>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://corgidude.makerasia.com/demo-projects/face-recognition/ep1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
