public final class PhotoTaskDetails extends AbstractTaskDetails
SimilarPhotoList
and/or DissimilarPhotoList
, it is recommended to provide only a single reference photo in the ReferencePhotoList
, and the photos should not contain media objects with updated metadata (i.e. media object feedback).
For the media object feedback, a separate feedback task should be generated.
For tasks of type AsyncTask.TaskType.ANALYSIS
and AsyncTask.TaskType.BACKEND_FEEDBACK
, the valid list is PhotoList
, and for tasks of type AsyncTask.TaskType.FEEDBACK
the valid lists are DeletedPhotoList
, DissimilarPhotoList
, ReferencePhotoList
and SimilarPhotoList
.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <taskDetails> <backendId>471551117</backendId> <taskId>1378727252259501697</taskId> <taskType>ANALYSIS</taskType> <callbackUri>http://fe.example.org/rest/cars/taskFinished</callbackUri> <taskParameters> <analysisTypeList> <analysisType>FACE_DETECTION</analysisType> <analysisType>KEYWORD_EXTRACTION</analysisType> <analysisType>VISUAL</analysisType> </analysisTypeList> </taskParameters> <userId>5651331966575954185</userId> <mediaList> <media> <credits>JGVKaVKbSeQtWbPwKryAadThdoYmBzqedqBmdIVovaLvqviZRMjXsXSHvoKQJExT</credits> <description>DQGCOQLmZSoBBQpKQvSKJmunznnUNrTqSDwRGvfmDHmxvHxLiBMYQZYnomWgHTeJ</description> <UID>71c49f72-74a9-440e-9fb1-04c6493a8fde</UID> <name>vMBKgOvEohIHFyinsTVcEKIqQIyzEBduRlNzBZYFExIYrOMrCFlPjpZEqEgyKfSZ</name> <serviceId>1</serviceId> <visibility>GROUP</visibility> <objectList> <object> <backendId>807998609</backendId> <confidence>0.6985345915681368</confidence> <mediaObjectId>5096748399360700864</mediaObjectId> <mediaType>PHOTO</mediaType> <objectId>ucntfVXOqKjimUqrcCrQjxsZqzRxKTOXjgaDMUiZuvqXZshiezcwrDboHShQFzco</objectId> <rank>1150269330</rank> <serviceId>6</serviceId> <status>CANDIDATE</status> <objectType>KEYWORD</objectType> <value>TrdLiFGmhAxBeEryXvfMogpYHQcyZtfCvfIRrZiqHAraWfXaeIxPztYvOkiKUsDD</value> <visibility>GROUP</visibility> <userId>5651331966575954185</userId> </object> </objectList> <mediaType>PHOTO</mediaType> <userId>5651331966575954185</userId> <url>http://fe.example.org/rest/carc/r?uid=71c49f72-74a9-440e-9fb1-04c6493a8fde&service_id=1</url> </media> </mediaList> </taskDetails>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <taskDetails> <backendId>295522108</backendId> <taskId>6091923708826463887</taskId> <taskType>BACKEND_FEEDBACK</taskType> <callbackUri>http://fe.example.org/rest/cars/taskFinished</callbackUri> <taskParameters> <analysisTypeList> <analysisType>FACE_DETECTION</analysisType> <analysisType>KEYWORD_EXTRACTION</analysisType> <analysisType>VISUAL</analysisType> </analysisTypeList> </taskParameters> <userId>8854890180605275902</userId> <mediaList> <media> <credits>VgwsOPxshCgyhPWCEvBDaPkrsHSdueDhFRScEmtsqlmusLzPSaGvcmaOUZxKgjqG</credits> <description>gFRZZvkgaKTxDdKwLGydIClVLiVyUuHNlCnPfwGOqkuhOlWGMJSArSGqzfcfYbdW</description> <UID>884a2559-11d3-4611-80a1-8fafca8c6522</UID> <name>JMdpJZZFNduUCLKQRyfmAgQqymdKbHcbVImXASvBGdPwGVCbuoCGBFrtCCjLfDPL</name> <serviceId>6</serviceId> <visibility>PUBLIC</visibility> <objectList> <object> <backendId>1453343072</backendId> <confidence>0.47309048285446154</confidence> <mediaObjectId>1950101601717108612</mediaObjectId> <mediaType>PHOTO</mediaType> <objectId>RINSvRqjXrzxrHwZMVPHTbzHfSXSTEEYEtBzYdKdPwvUuzulKxGXAzbSukttwDUt</objectId> <rank>1367105213</rank> <serviceId>6</serviceId> <status>CANDIDATE</status> <objectType>KEYWORD</objectType> <value>wpIVJQoJLpeddxjaomAUQXTBdvYMHFAmiVFrAMJCJEKjWSMWdSmrbnCmqEffJqML</value> <visibility>PUBLIC</visibility> <userId>8854890180605275902</userId> </object> </objectList> <mediaType>PHOTO</mediaType> <userId>8854890180605275902</userId> <url>http://fe.example.org/rest/carc/r?uid=884a2559-11d3-4611-80a1-8fafca8c6522&service_id=6</url> </media> </mediaList> </taskDetails>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <taskDetails> <backendId>311797085</backendId> <taskId>7612897666964009233</taskId> <taskType>FEEDBACK</taskType> <callbackUri>http://fe.example.org/rest/cars/taskFinished</callbackUri> <taskParameters> <analysisTypeList> <analysisType>FACE_DETECTION</analysisType> <analysisType>KEYWORD_EXTRACTION</analysisType> <analysisType>VISUAL</analysisType> </analysisTypeList> </taskParameters> <userId>5060870059696750463</userId> <dissimilarMediaList> <media> <UID>ba5ea86e-1308-4e57-963e-c1df91de8e7a</UID> <serviceId>6</serviceId> <mediaType>PHOTO</mediaType> <userId>6163040006737610253</userId> <url>http://fe.example.org/rest/carc/r?uid=ba5ea86e-1308-4e57-963e-c1df91de8e7a&service_id=6</url> </media> </dissimilarMediaList> <similarMediaList> <media> <UID>ce33658c-6c17-4630-ba3f-3d1920fe8819</UID> <serviceId>1</serviceId> <mediaType>PHOTO</mediaType> <userId>3910564330661476731</userId> <url>http://fe.example.org/rest/carc/r?uid=ce33658c-6c17-4630-ba3f-3d1920fe8819&service_id=1</url> </media> </similarMediaList> <referenceMediaList> <media> <UID>8608045255601043468</UID> <mediaType>PHOTO</mediaType> </media> </referenceMediaList> <userConfidence>0.8031709659509181</userConfidence> </taskDetails>
AbstractTaskDetails.TaskParameters
Constructor and Description |
---|
PhotoTaskDetails() |
PhotoTaskDetails(AsyncTask.TaskType type) |
getBackendId, getBackends, getDataClasses, getTaskId, getTaskType, getUserId, getUserIdValue, setBackend, setBackendId, setBackends, setCallbackUri, setTaskId, setTaskType, setUserId
public PhotoTaskDetails()
public PhotoTaskDetails(AsyncTask.TaskType type)
type
- public PhotoList getPhotoList()
public void setPhotoList(PhotoList photoList)
photoList
- getPhotoList()
public DeletedPhotoList getDeletedPhotoList()
setDeletedPhotoList(DeletedPhotoList)
public void setDeletedPhotoList(DeletedPhotoList deletedPhotoList)
deletedPhotoList
- getDeletedPhotoList()
public SimilarPhotoList getSimilarPhotoList()
getReferencePhotoList()
,
setSimilarPhotoList(SimilarPhotoList)
public void setSimilarPhotoList(SimilarPhotoList similarPhotoList)
similarPhotoList
- getSimilarPhotoList()
public DissimilarPhotoList getDissimilarPhotoList()
getReferencePhotoList()
,
setDissimilarPhotoList(DissimilarPhotoList)
public void setDissimilarPhotoList(DissimilarPhotoList dissimilarPhotoList)
dissimilarPhotoList
- getDissimilarPhotoList()
public ReferencePhotoList getReferencePhotoList()
getDissimilarPhotoList()
,
getSimilarPhotoList()
,
setReferencePhotoList(ReferencePhotoList)
public void setReferencePhotoList(ReferencePhotoList referencePhotoList)
referencePhotoList
- the referencePhotoList to setgetReferencePhotoList()
public void addReferencePhoto(Photo photo)
photo
- getReferencePhotoList()
public void addPhoto(Photo photo)
photo
- getPhotoList()
public void addDeletedPhoto(Photo photo)
photo
- getDeletedPhotoList()
public void addSimilarPhoto(Photo photo)
photo
- getSimilarPhotoList()
public void addDissimilarPhoto(Photo photo)
photo
- getDissimilarPhotoList()
public boolean isEmpty()
public java.lang.Double getUserConfidence()
setUserConfidence(Double)
public void setUserConfidence(java.lang.Double userConfidence)
userConfidence
- getUserConfidence()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in class AbstractTaskDetails
AbstractTaskDetails.setMetadata(Map)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
setMetadata
in class AbstractTaskDetails
metadata
- the metadata to setAbstractTaskDetails.getMetadata()
public java.lang.String getCallbackUri()
getCallbackUri
in class AbstractTaskDetails
AbstractTaskDetails.setCallbackUri(String)
public static java.lang.String generateFinishedCallbackUri()
public PhotoParameters getTaskParameters()
getTaskParameters
in class AbstractTaskDetails
AbstractTaskDetails.setTaskParameters(TaskParameters)
public void setTaskParameters(AbstractTaskDetails.TaskParameters parameters)
setTaskParameters
in class AbstractTaskDetails
parameters
- the parameters to setAbstractTaskDetails.getTaskParameters()
public void setTaskParameters(PhotoParameters parameters)
parameters
- Copyright © 2015 Tampere University of Technology, Pori Department.