> For the complete documentation index, see [llms.txt](https://corgidude.makerasia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://corgidude.makerasia.com/demo-projects/face-recognition/ep1.md).

# ตอนที่ 1

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

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
