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.