Media Server 25.4
Media Server Help

# Add an Image Hash to a Database

To add a new image hash and train Media Server to identify duplicate images, follow these steps.

To add an image hash to a database

- Add the image hash using the action TrainImageHash. For example:

  `curl http://localhost:14000/action=TrainImageHash -F database=ImageHashes -F imagedata=@image1.png`

  Alternatively, provide the path of the training image:

  `curl http://localhost:14000/action=TrainImageHash -F database=ImageHashes -F imagepath=./training/image1.png`

  Media Server adds the image hash to the database and returns the identifier.

Copyright 2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Media Server 25.4

Topic Title: Add an Image Hash to a Database