> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analyze images and match Document Definitions

> Analyze images before recognition and apply Document Definitions in ABBYY FlexiCapture using the Match Document Definition command or the selection panel.

In most cases FlexiCapture selects the right Document Definition on its own. Sometimes you need to analyze a page or apply a Document Definition yourself.

<Info>
  To apply Document Definitions manually, a user needs a role with the **Modify document layout** permission enabled. To see the permissions enabled for a role, open the **User Roles** tab of the project properties dialog box.
</Info>

## Analyze images in a distributed installation

In a distributed installation, the program analyzes and recognizes images automatically and finds matching Document Definitions.

Verification operators and senior verification operators can also start image analysis and Document Definition matching themselves. On a Verification Station, click **Tools → Reanalyze**.

## Analyze a page in a standalone installation

Analyze a page before recognizing it to determine a matching Document Definition. Use one of the following ways:

* Click **Recognition → Analyze**.
* Click the arrow to the right of the **Recognize** button, and then click **Analyze**.

The document containing the page takes the name of the Document Definition, and the page takes the name of its corresponding Document Definition section.

## Apply a Document Definition manually

<Steps>
  <Step title="Select a document or page">
    Select a document or a document page.
  </Step>

  <Step title="Open the Select Document Definition dialog box">
    Use one of the following ways:

    * Click **Recognition → Match Document Definition...** in the main menu.
    * Right-click the document and click **Match Document Definition...** on the shortcut menu.
    * In a standalone installation, click the arrow to the right of the **Recognize** button, and then click **Match Document Definition...**.
  </Step>

  <Step title="Select the Document Definition">
    Select the Document Definition in the **Select Document Definition** dialog box.

    A document can have only a Document Definition assigned, and a page can have only a Document Definition section assigned. When you apply a Document Definition that has several sections to a document, the program analyzes how the sections apply across the pages. A Document Definition with only one section skips that analysis.
  </Step>

  <Step title="Confirm">
    Click **OK**. The definition is applied to the selected document or page.

    The **Analyze and recognize documents after matching** option is enabled by default, so analysis and recognition start automatically. Turn it off to apply a Document Definition without a further analysis and a second recognition.
  </Step>
</Steps>

## Apply a Document Definition from the side panel

The **Select Document Definition** panel applies a Document Definition to a page or a document quickly. The top of the panel shows the most recently used Document Definitions. The bottom lists all the Document Definitions and sections available to you.

<Frame>
  <img src="https://mintcdn.com/abbyy/XVEmG3cTpHwMKf5X/images/flexi-capture/SetDocumentDefenitionPanel.png?fit=max&auto=format&n=XVEmG3cTpHwMKf5X&q=85&s=76bd9011dd1d44918dc3fe02466ded66" alt="Screenshot of the Select Document Definition side panel in ABBYY FlexiCapture, showing recently used Document Definitions at the top and the full list of Document Definitions and their sections below, with the Analyze and recognize after matching option selected." width="256" height="585" data-path="images/flexi-capture/SetDocumentDefenitionPanel.png" />
</Frame>

To show or hide the panel, click **View → Side Panels → Select Document Definition**. To find a Document Definition, type its name in the search bar.

<Tip>
  Click <img src="https://mintcdn.com/abbyy/8aWHPAJyzWmTqglX/images/flexi-capture/pin.png?fit=max&auto=format&n=8aWHPAJyzWmTqglX&q=85&s=9bbc7d2d3881663577c641ba2223cc71" alt="Pin button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="20" height="19" data-path="images/flexi-capture/pin.png" /> to pin the Document Definitions you use most often.
</Tip>

<Steps>
  <Step title="Select a page or a document">
    Select the page or document you want to apply a Document Definition to.
  </Step>

  <Step title="Select a Document Definition in the panel">
    Click the Document Definition you want in the panel.
  </Step>
</Steps>
