Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HUAWEI HMS Core
Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.
| class info |
| com.huawei.hms.mlsdk.landmark.MLRemoteLandmark |
| Describes the detected landmarks in a supplied image. The information includes: 1. landmark: landmark name and description 2. border: axis-aligned bounding rectangle, including left, top, right, and bottom. The values of left and top form the upper-left corner coordinates of the bounding rectangle, and the values of right and bottom form the lower-right corner coordinates. Currently, there is no gradient. 3. possibility: result confidence. The value range is [0,1]. A value closer to 0 indicates lower confidence. A value closer to 1 indicates higher confidence. 4. landmarkId: entity ID 5. positionInfos: a set of longitude and latitude coordinates of landmarks. Each MLCoordinate object contains lat and lng. lat indicates the latitude, which must be within the range of [–90.0,+90.0].lng indicates the longitude, which must be within the range of [–180.0,+180.0]. |
| Return type | Method name |
| android.graphics.Rect | getBorder() |
| String | getLandmark() |
| List<MLCoordinate> | getPositionInfos() |
| float | getPossibility() |
Return
| Type | desc |
| android.graphics.Rect | Returns the axis-aligned bounding rectangle of a landmark in an image. |
| Method |
| public String getLandmark() |
| Obtains the landmark description. |
Return
| Type | desc |
| String | Returns the landmark description. |
Return
| Type | desc |
| List<MLCoordinate> | Returns a set of landmark location information. |
| Method |
| public float getPossibility() |
| Obtains the result confidence. The value range is [0,1]. A value closer to 0 indicates lower confidence, and a value closer to 1 indicates higher confidence. |
Return
| Type | desc |
| float | Returns the result confidence. |
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.