Aracılığıyla paylaş


OCR Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.contentmoderator.models.OCR

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<KeyValuePair> 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:

the cacheId value

candidates

public List candidates()

Get the candidates value.

Returns:

the candidates value

language

public String language()

Get the language value.

Returns:

the language value

metadata

public List metadata()

Get the metadata value.

Returns:

the metadata value

status

public Status status()

Get the status value.

Returns:

the status value

text

public String text()

Get the text value.

Returns:

the text value

trackingId

public String trackingId()

Get the trackingId value.

Returns:

the trackingId value

withCacheId

public OCR withCacheId(String cacheId)

Set the cacheId value.

Parameters:

cacheId - the cacheId value to set

Returns:

the OCR object itself.

withCandidates

public OCR withCandidates(List candidates)

Set the candidates value.

Parameters:

candidates - the candidates value to set

Returns:

the OCR object itself.

withLanguage

public OCR withLanguage(String language)

Set the language value.

Parameters:

language - the language value to set

Returns:

the OCR object itself.

withMetadata

public OCR withMetadata(List metadata)

Set the metadata value.

Parameters:

metadata - the metadata value to set

Returns:

the OCR object itself.

withStatus

public OCR withStatus(Status status)

Set the status value.

Parameters:

status - the status value to set

Returns:

the OCR object itself.

withText

public OCR withText(String text)

Set the text value.

Parameters:

text - the text value to set

Returns:

the OCR object itself.

withTrackingId

public OCR withTrackingId(String trackingId)

Set the trackingId value.

Parameters:

trackingId - the trackingId value to set

Returns:

the OCR object itself.

Applies to