> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenbot-extensions/artificial-intelligence/faceai.md).

# FaceAI

FaceAI is an extension for face recognition.

### Loading the extension for FaceAI

```
FaceAI is used alongside the Video Sensing Extension in this tutorial.
```

Open up the extension page.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/add.png)

Select FaceAI and Video Sensing.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai1.png)

New programming blocks will be added.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai2.png)

### Using FaceAI

Sample Picture:

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/lenna.png)

This picture is called Lenna, it is the most famous picture in computer vision.

#### Detecting Faces

Example 1: Detecting age of the person

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai3.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai4.png)

Example 2: Detecting gender of the person

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai5.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai6.png)

You can try out other functions as well.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai7.png)

#### Face Recognition

FaceAI can recognize the identity of an individual.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai8.png)

Example 1: Building the database for face recognition

Create a group of faces.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai9.png)

Add the person’s image and name into the database.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai10.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai16.png)

Continue until all individuals are added.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai11.png)

Example 2: Recognizing the identity of the person

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai12.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/faceai13.png)

### References

```
By Original full portrait: &quot;Playmate of the Month&quot;. Playboy Magazine. November 1972, photographed by Dwight Hooker.This 512x512 electronic/mechanical scan of a section of the full portrait: Alexander Sawchuk and two 
```


---

# 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:

```
GET https://sharinghub-eng.kittenbot.hk/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenbot-extensions/artificial-intelligence/faceai.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.
