OCR Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. contentmoderator. models. OCR
- com.
public class OCR
Contains the text found in image for the language specified.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
cacheId()
Get the cacheId value. |
List<Candidate> |
candidates()
Get the candidates value. |
String |
language()
Get the language value. |
List<Key |
metadata()
Get the metadata value. |
Status |
status()
Get the status value. |
String |
text()
Get the text value. |
String |
trackingId()
Get the trackingId value. |
OCR |
withCacheId(String cacheId)
Set the cacheId value. |
OCR |
withCandidates(List<Candidate> candidates)
Set the candidates value. |
OCR |
withLanguage(String language)
Set the language value. |
OCR |
withMetadata(List<KeyValuePair> metadata)
Set the metadata value. |
OCR |
withStatus(Status status)
Set the status value. |
OCR |
withText(String text)
Set the text value. |
OCR |
withTrackingId(String trackingId)
Set the trackingId value. |
Method Details
cacheId
public String cacheId()
Get the cacheId value.
Returns:
candidates
public List
Get the candidates value.
Returns:
language
public String language()
Get the language value.
Returns:
metadata
public List
Get the metadata value.
Returns:
status
public Status status()
Get the status value.
Returns:
text
public String text()
Get the text value.
Returns:
trackingId
public String trackingId()
Get the trackingId value.
Returns:
withCacheId
public OCR withCacheId(String cacheId)
Set the cacheId value.
Parameters:
Returns:
withCandidates
public OCR withCandidates(List
Set the candidates value.
Parameters:
Returns:
withLanguage
public OCR withLanguage(String language)
Set the language value.
Parameters:
Returns:
withMetadata
public OCR withMetadata(List
Set the metadata value.
Parameters:
Returns:
withStatus
public OCR withStatus(Status status)
Set the status value.
Parameters:
Returns:
withText
public OCR withText(String text)
Set the text value.
Parameters:
Returns:
withTrackingId
public OCR withTrackingId(String trackingId)
Set the trackingId value.
Parameters:
Returns: