目录

class info
com.huawei.hms.mlsdk.text.TextLanguage
Languages detected in an image.

Public Method Summary

Return typeMethod name
booleanequals(Object object)
StringgetLanguage()
inthashCode()

Public Methods

Method
public boolean equals(Object object)
Determines whether the input instance is equal to the current instance.

Parameters

Parameter nameParameter desc
objectInstance to be compared.


Return

Typedesc
booleantrue: The instances are equal.
false: The instances are not equal.
Method
public String getLanguage()
Obtains the detected languages.

Return

Typedesc
StringReturns BCP-47 language codes.
Supported languages:
en (English), zh (Chinese), ja (Japanese), ko (Korean),
ru (Russian), de (German), fr (French), it (Italian),
pt (Portuguese), es (Spanish), and rm (Romance languages)
The cloud API also supports the following languages:
pl (Polish), no (Norwegian), sv (Swedish), da (Danish),
tr (Turkish), fi (Finnish), th (Thai), ar (Arabic), and hi (Hindi)
Method
public int hashCode()
Obtains the hash value of the current instance.

Return

Typedesc
intReturns the hash value of the instance.