Media Server 25.4
Media Server Help

# Add a Reference to a Database

To add a new reference for image comparison, follow these steps.

To add a reference to a database

- Add the reference using the action TrainImageComparisonReference.

  For example:

  `curl http://localhost:14000/action=TrainImageComparisonReference -F database=ReferenceImages -F imagedata=@camera39.png -F metadata=Location:Cambridge`

  Alternatively, the following example provides the path of the training image rather than sending the image data:

  `curl http://localhost:14000/action=TrainImageComparisonReference -F database=ReferenceImages -F imagepath=./training/comparison/camera39.png -F "metadata=Location:Cambridge"`

  Media Server adds the reference 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 a Reference to a Database