Inserts a new, empty, object into a database of objects.


After adding a new object, you must add images of the object using the action AddObjectImages. You can also set training attributes using the action SetObjectTrainingOption. After adding images, train Media Server to recognize the object using the action BuildObject.

Type: synchronous

Parameter Description Required
database The name of the database to add the object to. The database must already exist. Yes
identifier A unique identifier for the object (maximum 254 bytes). If you do not set this parameter, Media Server generates an identifier automatically. No


The following example adds an object to the CompanyLogos database:


You can use the name of the object as the identifier. All identifiers must be unique within the database:



The action returns the identifier assigned to the object:


See Also