--- title: "Face Analytics" url: https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/face-analytics/ description: "This page describes the method to use the Face Analytics feature to detect faces with specified criteria in your Python application with sample code snippets" last_updated: 2026-06-09T07:46:16Z service: Zia Services type: general related_links: - name: "Face Analytics - API" url: /en/api/code-reference/zia-services/face-analytics/#FaceAnalytics - name: "SDK Scopes" url: /en/sdk/python/v1/sdk-scopes --- # Face Analytics [Zia Face Analytics](https://docs.catalyst.zoho.com/en/zia-services/help/face-analytics/introduction) performs facial detection in images, and analyzes the facial features to provide information such as the gender, age, and emotion of the detected faces. You must provide a .webp/.jpeg or .png file as the input to the `open()` method to perform Face Analytics on that image. This opens the provided file and returns a file object as a response. The `analyse_face()` method accepts the input image as its argument. You can also specify the analysis mode as `basic`, `moderate`, or `advanced`. You can also specify the attributes `age`, `smile`, or `gender` as `true` to detect or `false` to not detect. These values are optional. All attributes are detected and the `advanced` mode is processed by default. Refer to the [API documentation](https://docs.catalyst.zoho.com/en/api/code-reference/zia-services/face-analytics/#FaceAnalytics) for the request and response formats. To know more about the component instance `zia` used below, please refer to [this help section](https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/get-component-instance/). The response returns the prediction of the enabled attributes, the coordinates and landmarks of facial features of each face, and the confidence score of each analysis. **Parameters Used**
| Parameter Name | Data Type | Definition |
|---|---|---|
| `img` | Image | A **Mandatory** parameter. Will store the image of the face to be analyzed. |
| `mode` | String | A **Optional** parameter. Will store the analysis mode values - "basic", "moderate" or "advanced". |
| `age` | Boolean | A **Optional** parameter. Will decide whether to determine age or not. Values accepted are "Yes" or "No" |
| `emotion` | Boolean | A **Optional** parameter. Will decide whether to determine emotion or not. Values accepted are "Yes" or "No" |
| `gender` | Boolean | A **Optional** parameter. Will decide whether to determine gender or not. Values accepted are "True" or "False" |