> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/import-and-post-processing/facial-expression-analysis-extracting-facial-expressions-from-still-images.md).

# Facial Expression Analysis: Extracting Facial Expressions from Still Images

Batch-process a folder of JPEG or PNG images with Affectiva Affdex to get a CSV of facial expression metrics for up to 8 faces per image.

*The following article will describe how to post-process images using Affectiva Affdex with iMotions.*

> **Prerequisites:**
>
> * You must have iMotions 11.1.4 or newer installed
> * You must have the Affectiva module on your license
> * Images need to be stored in one folder
> * Images need to be saved in JPEG or PNG format
>
> **Note:**
>
> * This process will create an export file only, not a study

Navigate to Tools > Affectiva Batch Process Images

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-93a16c5be50553aa6258ebafb48584107343dd76%2Fc527e5522f_image-1777880926568.webp?alt=media)

Select the folder with your images in. *For best results, the folder should be saved to a local drive rather than a cloud-based drive.*

You can choose to apply a minimum threshold for the face (in pixels).

If you want to receive feedback on what faces were found and processed, you can select the option to “Add bounding box and face points, and save copy of images”. This will create a new folder with a copy of the processed images. The images contained in this folder will include a facebox with an ID number of the face.

The algorithm will identify and process a maximum of 8 faces per image.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-027f6b10c62de2810495366a8d41ecb967dd1ace%2Fc0f36d38e2_image-1777881081381.webp?alt=media)

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-20820f6951fc3143d1c4bd399a4219dff3668e2c%2F406cf5c2ad_Screenshot--98-.webp?alt=media)

iMotions will return a csv file with the extracted FEA metrics per image and face, in the same folder as the images you chose to process.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b7e5f03fa1699b72c276f9e4679d5da6bf25b136%2Fe5069e796b_Sk%C3%A6rmbillede-2026-03-27-094651.webp?alt=media)

*Note: If you choose to re-process the images, please ensure that the export csv is not open on your PC, else the new file cannot be created.*


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/import-and-post-processing/facial-expression-analysis-extracting-facial-expressions-from-still-images.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
