| class info |
| com.huawei.hms.mlsdk.text.TextLanguage |
| Languages detected in an image. |
| Return type | Method name |
| boolean | equals(Object object) |
| String | getLanguage() |
| int | hashCode() |
| Method |
| public boolean equals(Object object) |
| Determines whether the input instance is equal to the current instance. |
Parameters
| Parameter name | Parameter desc |
| object | Instance to be compared. |
Return
| Type | desc |
| boolean | true: The instances are equal. false: The instances are not equal. |
| Method |
| public String getLanguage() |
| Obtains the detected languages. |
Return
| Type | desc |
| String | Returns 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
| Type | desc |
| int | Returns the hash value of the instance. |