
# PDQ Hash Enricher
```{admonition} Module type

<span style='color: #0000FF'>[enricher](/core_modules.md#enricher-modules)</a></span>
```

PDQ Hash Enricher for generating perceptual hashes of media files.

### Features
- Calculates perceptual hashes for image files using the PDQ hashing algorithm.
- Enables detection of duplicate or near-duplicate visual content.
- Processes images stored in `Metadata` objects, adding computed hashes to the corresponding `Media` entries.
- Skips non-image media or files unsuitable for hashing (e.g., corrupted or unsupported formats).

### Notes
- Best used after enrichers like `thumbnail_enricher` or `antibot_extractor_enricher` (takes screenshots) to ensure images are available.
- Uses the `pdqhash` library to compute 256-bit perceptual hashes, which are stored as hexadecimal strings.

```{code} yaml

# steps configuration
steps:
...
  enrichers:
  - pdq_hash_enricher
...

# module configuration
...

# No configuration options for pdq_hash_enricher.*



```

[API Reference](../../../autoapi/pdq_hash_enricher/index)
