@HTTPService(name="vcars") public class ServerService extends java.lang.Object
VideoAnalysisService
Constructor and Description |
---|
ServerService() |
Modifier and Type | Method and Description |
---|---|
Response |
queryTaskDetails(IntegerParameter backendId,
LongParameter taskId,
DataGroups dataGroups,
Limits limits)
This method can be used to retrieve the up-to-date details and progress of a previously scheduled task.
|
void |
taskFinished(InputStreamParameter xml)
The request is to be sent in the body of POST method.
|
public ServerService()
@HTTPServiceMethod(name="taskFinished", acceptedMethods="POST") public void taskFinished(@HTTPMethodParameter(name="body",bodyParameter=true) InputStreamParameter xml)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <taskResults> <backendId>1620102725</backendId> <message>NYgBnLhjlgllDkfKXlTIkJEJpIEwxUjGKVEzezIIFUhhUpxumQXuCyFYXVgyveun</message> <status>ERROR</status> <taskId>8834324085167948755</taskId> <taskType>ANALYSIS</taskType> <mediaList> <media> <UID>90391993-1d36-4b11-9f54-a099aa8a1db6</UID> <serviceId>1</serviceId> <objectList> <object> <backendId>1620102725</backendId> <confidence>0.45921417755233573</confidence> <mediaObjectId>2959732922504565041</mediaObjectId> <mediaType>PHOTO</mediaType> <objectId>EnvwoZVVeBohRVtNXoBRpgnvnMMgOibsjBAORRkrCiSZHZZlrRvSyRBkVkcYJkFq</objectId> <rank>2132471482</rank> <serviceId>4</serviceId> <status>USER_CONFIRMED</status> <objectType>KEYWORD</objectType> <value>OnbWzhndoTtZWNgJGvHJlRJMphfWTAfzHZndJLbARITwkTHblyHHrZsvVYVHjUTF</value> <visibility>GROUP</visibility> <userId>1201709593448931725</userId> </object> </objectList> <mediaType>VIDEO</mediaType> <userId>1201709593448931725</userId> <url>http://fe.example.org/rest/vcarc/r?uid=90391993-1d36-4b11-9f54-a099aa8a1db6&service_id=1</url> </media> </mediaList> </taskResults>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response method="taskFinished" service="vcars"> <status>OK</status> </response>
xml
- Only the result data should be in the body. See VideoTaskResponse
@HTTPServiceMethod(name="queryTaskDetails", acceptedMethods="GET") public Response queryTaskDetails(@HTTPMethodParameter(name="backend_id") IntegerParameter backendId, @HTTPMethodParameter(name="task_id") LongParameter taskId, @HTTPMethodParameter(name="data_groups",required=false) DataGroups dataGroups, @HTTPMethodParameter(name="limits",required=false) Limits limits)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response method="queryTaskDetails" service="vcars"> <taskDetails> <backendId>1</backendId> <taskId>1</taskId> <taskType>ANALYSIS</taskType> <callbackUri>http://fe.example.org/rest/vcars/taskFinished</callbackUri> <taskParameters> <analysisTypeList> <analysisType>AUDIO</analysisType> <analysisType>FACE_DETECTION</analysisType> <analysisType>KEYWORD_EXTRACTION</analysisType> <analysisType>VISUAL</analysisType> </analysisTypeList> <sequenceType>FULL</sequenceType> <timeCodeList> <timeCode> <to>1555.6419697801434</to> <from>1538.0031846244524</from> </timeCode> <timeCode> <to>2353.9043492876062</to> <from>2280.628798922081</from> </timeCode> <timeCode> <to>5319.254579982735</to> <from>3830.817432174294</from> </timeCode> <timeCode> <to>6838.593765783511</to> <from>6513.126549416877</from> </timeCode> </timeCodeList> </taskParameters> <userId>8336175459584165820</userId> <mediaList> <media> <UID>52d718b6-be8b-461c-b92a-53ee2ce45255</UID> <serviceId>1</serviceId> <objectList> <object> <backendId>337059988</backendId> <confidence>0.4235947380417262</confidence> <mediaObjectId>7572399131935471372</mediaObjectId> <mediaType>PHOTO</mediaType> <objectId>RItMcjVeUsyZJVbbKsrevGqpPRSsvhKGOzvAJaogQPimgPKpPBXUomMToXQPGrup</objectId> <rank>1312017778</rank> <serviceId>1</serviceId> <status>USER_REJECTED</status> <objectType>KEYWORD</objectType> <value>ynnrDYgragtefvBTHgIwYKMynntkNSqUhGXlWAQwMCUQuGMuRkicTMdhpOkkGAGj</value> <visibility>GROUP</visibility> <userId>8336175459584165820</userId> </object> </objectList> <mediaType>VIDEO</mediaType> <userId>8336175459584165820</userId> <url>http://fe.example.org/rest/vcarc/r?uid=52d718b6-be8b-461c-b92a-53ee2ce45255&service_id=1</url> </media> </mediaList> </taskDetails> <status>OK</status> </response>
taskId
- backendId
- dataGroups
- limits
- Copyright © 2015 Tampere University of Technology, Pori Department.