Open topic with navigation
Returns a list of objects in a specified database. The action can also return information about the images, training options, and metadata associated with each object.
||The name of the database that contains the objects.||Yes|
||A comma-separated list of identifiers to specify the objects to list. If you do not set this parameter, HPE Media Server lists all of the objects in the specified database.||No|
||A Boolean value (default false) that specifies whether to return the label and training status of each image associated with each object.||No|
||The maximum number of objects to return.||No|
||A Boolean value (default false) that specifies whether to return the metadata associated with each object.||No|
||The starting point for the list when you set the
||A Boolean value (default false) that specifies whether to return the training options set for each object.||No|
The following example lists up to 10 objects contained in the
/action=ListObjects&database=CompanyLogos &imagestatus=TRUE &metadata=TRUE &trainingoptions=TRUE &start=1 &maxresults=10
The response always includes the following information for each object:
identifier- The identifier for the object.
numimages- The number of training images associated with the object.
numtrained- The number of images associated with the object that have been trained (the number that are used for object recognition).
numfailed- The number of images associated with the object where training failed.
numuntrained- The number of images associated with the object that have not yet been trained.
If you set the action parameter
true, HPE Media Server returns the status of each training image associated with each object.
status element indicates the status of training:
trainedindicates that training was successful.
untrainedindicates that training has not been attempted. Run training for the object using the action BuildObject, or run training for all objects that have incomplete training using the action BuildAllObjects.
failedindicates that HPE Media Server could not use the image for training. Remove the failed image using the action RemoveObjectImages.
hasimagedataelement indicates whether the training image is stored in the database. If the value of this element is
false, the image has been removed from the database by the action NullObjectImageData. Images that have been removed and have a status of
untrainedcannot be trained, so HPE recommends you remove these images with the action RemoveObjectImages.
<autnresponse> <action>LISTOBJECTS</action> <response>SUCCESS</response> <responsedata> <entry> <identifier>HP</identifier> <numimages>3</numimages> <numtrained>1</numtrained> <numfailed>1</numfailed> <numuntrained>1</numuntrained> <images> <image> <label>image1</label> <status>trained</status> <hasimagedata>true</hasimagedata> </image> <image> <label>image2</label> <status>untrained</status> <hasimagedata>true</hasimagedata> </image> <image> <label>image3</label> <status>failed</status> <hasimagedata>true</hasimagedata> </image> </images> <trainingoptions> <trainingoption> <key>usecolor</key> <value>false</value> </trainingoption> </trainingoptions> <metadata> <item> <key>CompanyName</key> <value>Hewlett Packard</value> </item> </metadata> </entry> </responsedata> </autnresponse>