Open topic with navigation

# Run Image Analysis on Specific Documents

To run image analysis on specific documents, run the `ImageServerAnalysis` task. This task only processes documents that have the `AUTN_NEEDS_IMAGE_SERVER_ANALYSIS` document field, so you must add this field to any document that you want to process.

If you run analysis on a document that does not represent an image (or does not represent an image in a supported format), the task fails. CFS writes an error message to the field `ImportErrorDescription`, and indexes the document. For information about the image formats supported by Image Server, refer to the Image Server Administration Guide.

The following example shows how to configure the `ImageServerAnalysis` task.

    [ImportTasks]
    Post0=Lua:EnableImageAnalysis.lua
    Post1=ImageServerAnalysis:ImageServerSettings

    [ImageServerSettings]
    ImageServerHost=server:18000,server2:18000
    ImageAnalysisTaskSections=dococrtask,facerectask,objecttask
    ImageAnalysisTransform=xslt/My_ImageAnalysis_Transform.xsl

The `Post0` import task runs a Lua script that determines whether a file is suitable for image analysis. Your script must add the field `AUTN_NEEDS_IMAGE_SERVER_ANALYSIS` to any documents that are identified. For an example script that adds a field to a document, see Add a Field to a Document.

The `Post1` import task is the `ImageServerAnalysis` task. It specifies the name of a section in the configuration file that contains the settings for the task. For information about the parameters that you can use to configure this task, refer to the Connector Framework Server Reference.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm