# Design of the ImageSource Object

An `ImageSource` object defines an image source to be created and maintained by Capture Vision Router (CVR).

```json
{
    "Name": "DirectoryFetcher_0",
    "Type": "IST_DIRECTORY_FETCHER",
    "DirectoryPath": "C:\\Users\\Admin\\Pictures\\",
    "FileFilter": "",
    "Recursive": 1,
    "PDFReadingMode": {
        "Mode": "PDFRM_RASTER",
        "DPI": 300,
        "TargetType": "TT_PAGE"
    },
    "Pages": [0,3,5,7,10]
}
```


## Summary of ImageSource top-level parameters

| Parameter Name   | Description                                                                                              |
| ---------------- | -------------------------------------------------------------------------------------------------------- |
| [`Name`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-source-options/name.md)           | Represents the name of the `ImageSource` object, which serves as its unique identifier.                    |
| [`Type`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-source-options/type.md)           | Indicates the type of the `ImageSource` object, which helps CVR create the correct type of image source. |
| [`DirectoryPath`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-source-options/directory-path.md)  | Specifies a local directory, the files within which are fetched as images to process.                    |
| [`FileFilter`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-source-options/file-filter.md)     | Specifies a file name filter string, which determines which files are fetched.                           |
| [`Recursive`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-source-options/recursive.md)      | Indicates whether to fetch files recursively.                                                            |
| [`PDFReadingMode`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-source-options/pdf-reading-mode.md) | Defines how to handle PDF files.                                                                         |
| [`Pages`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-source-options/pages.md)          | Sets the 0-based page indexes of a file (.tiff or .pdf) for barcode searching. |

