List of functions available through XML-RPC, JSON-RPC and SOAP.
| array |
queryImgID(dbId,
id,
numres=12,
fast=False) Return the most similar images to the supplied one. |
|
|
| number |
addImg(dbId,
id,
filename,
fileIsUrl=False) Add image to database space. |
|
|
| number |
saveDb(dbId)
Save the supplied database space if the it has already been saved
with a filename (previous call to
href=”#saveDbAs”
class=”link”>saveDbAs). |
|
|
| number |
saveDbAs(dbId,
filename)
Save the supplied database space if the it has already been saved
with a filename (subsequent save calls can be made to
href=”#saveDb”
class=”link”>saveDb). |
|
|
| number |
loadDb(dbId,
filename)
Load the supplied single-database-space-dump into a database space
of given id. |
|
|
| number |
removeImg(dbId,
id)
Remove image from database space. |
|
|
| number |
resetDb(dbId)
Removes all images from a database space, frees memory, reset
statistics. |
|
|
| number |
|
| number |
|
| number |
| getDbImgCount(dbId) Return count of indexed images on database space. |
|
|
| boolean |
isImgOnDb(dbId,
id) Return whether image id exists on database space. |
|
|
| array |
getImgDimensions(dbId,
id) Returns image original dimensions when indexed into database. |
|
|
| number |
calcImgAvglDiff(dbId,
id1,
id2) Return average luminance (over three color channels) difference
ratio |
|
|
| number |
calcImgDiff(dbId,
id1,
id2) Return image similarity difference ratio |
|
|
| array |
getImgAvgl(dbId,
id1) Return image average color levels on the three color channels (YIQ
color system) |
|
|
| array |
getDbIdsBloomFilter(dbId)
Returns a byte array (bloom filter) representing image ids on this
server instance. |
|
|
| array |
getDbList()
Return list defined database spaces. |
|
|
| array |
|
| map |
|
| number |
|
| boolean |
|
| bloom filter |
|
| boolean |
getClusterKeywords(dbId,
numClusters,
keywords)
Return whether image id exists on database space. |
|
|
| boolean |
getClusterDb(dbId,
numClusters)
Return whether image id exists on database space. |
|
|
| boolean |
|
| boolean |
|
| array |
|
| array |
queryImgIDFastKeywords(dbId,
imgId,
numres,
kwJoinType,
keywords) Fast query (only considers average color) for similar images
considering keywords |
|
|
| array |
queryImgIDKeywords(dbId,
imgId,
numres,
kwJoinType,
keywords) Query for similar images considering keywords. |
|
|
| array |
mostPopularKeywords(dbId,
imgs,
excludedKwds,
count,
mode) const int dbId, imageId_list imgs, int_vector excludedKwds, int
count, int mode |
|
|
| array |
getKeywordsImg(dbId,
imgId) Returns all keywords currently associated with an image. |
|
|
| boolean |
|
| boolean |
removeKeywordImg(dbId,
imgId,
hash) Remove the association of a keyword to an image |
|
|
| boolean |
|
| number |
addDir(dbId,
path,
recurse) Visits a directory recursively and add supported images into
database space. |
|
|
| number |
loadAllDbsAs(path)
Loads from disk all previously persisted database spaces. |
|
|
| number |
saveAllDbs()
Persist all existing database spaces on the data file defined at
the config file settings.py |
|
|
| number |
loadAllDbs()
Loads from disk all previously persisted database spaces on the
data file defined at the config file settings.py |
|
|
| boolean |
|
| map |
|
| boolean |
isValidDb(dbId)
Return whether database space id has already been defined |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|