# Find Clothing

Clothing analysis provides the location of the clothing for a person who has been identified by face detection or object class recognition.

To determine the location of clothing

1. Open the configuration file in which you configured your face detection or object class recognition task for identifying people.

2. In the `[Session]` section, add a new analysis task by setting the `EngineN` parameter. You can give the task any name, for example:

       [Session]
       Engine0=Ingest
       Engine1=FaceDetect
       Engine2=Clothing

3. Create a new configuration section to contain the task settings, and set the following parameters:

   `Type` | The analysis engine to use. Set this parameter to `Clothing`.
   `Input` | The track on which you want to run analysis. You can specify: the `DataWithSource` output track from a face detection task. the `ResultWithSource` output track from any face analysis task. the `ResultWithSource` output track from an object class recognition task, when that task runs detection using the pre-trained person recognizer.
   `ClothingMode` | (Optional) A comma-separated list of regions to identify. You can use the values `Full` (clothing covering the full body), `Upper` (upper body), and `Lower` (lower body). By default, clothing analysis only identifies the location of the clothing covering the full body.

   For example:

       [Clothing]
       Type=Clothing
       Input=FaceDetect.ResultWithSource
       ClothingMode=Upper,Lower

4. Save and close the configuration file. Micro Focus recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

You can run clothing analysis followed by a color analysis task to find the dominant color of a person's clothing. For more information about the color analysis task, see Color Clustering. The following procedure describes how to add a task for color analysis.

To determine the color of clothing

1. Open the configuration file in which you configured the clothing analysis task.

2. In the `[Session]` section, add a new analysis task (for color analysis) by setting the `EngineN` parameter. You can give the task any name, for example:

       [Session]
       Engine0=Ingest
       Engine1=FaceDetect
       Engine2=Clothing
       Engine3=ClothingColors

3. Create a new configuration section to contain the task settings, and set the following parameters:

   `Type` | The analysis engine to use. Set this parameter to `ColorCluster`.
   `Input` | The track that contains information about the location of the clothing (and the image to analyze). Set this parameter to the `ResultWithSource` output track from your clothing analysis task. For example, if your clothing analysis task is named `Clothing`, set this parameter to `Clothing.ResultWithSource`.
   `RestrictToInputRegion` | A Boolean value that specifies whether to analyze a region of the input image or video frame that is specified in the input record, instead of the entire image. Set this parameter to `TRUE`, because you want the color analysis task to analyze only the region that represents the clothing, and not the entire image.

   For example:

       [ClothingColors]
       Type=ColorCluster
       Input=Clothing.ResultWithSource
       RestrictToInputRegion=True

4. Save and close the configuration file. Micro Focus recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm