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.