[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-08-08 UTC."],[],[],null,["public class **FirebaseVisionCloudLandmarkDetector** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Closeable](//developer.android.com/reference/java/io/Closeable.html) \nDetector for finding popular natural and man-made structures within an image.\n\nA cloud landmark is created via [getVisionCloudLandmarkDetector(FirebaseVisionCloudDetectorOptions)](/docs/reference/android/com/google/firebase/ml/vision/FirebaseVision#getVisionCloudLandmarkDetector(com.google.firebase.ml.vision.cloud.FirebaseVisionCloudDetectorOptions)) or\n[getVisionCloudLandmarkDetector()](/docs/reference/android/com/google/firebase/ml/vision/FirebaseVision#getVisionCloudLandmarkDetector()) if you wish to use the default [FirebaseVisionCloudDetectorOptions](/docs/reference/android/com/google/firebase/ml/vision/cloud/FirebaseVisionCloudDetectorOptions). For example, the code below creates a cloud\nlandmark detector with default options. \n\n\n FirebaseVisionCloudLandmarkDetector cloudLandmarkDetector =\n FirebaseVision.getInstance().getVisionCloudLandmarkDetector();\n \nTo find landmark in an image, you first need to create an instance of [FirebaseVisionImage](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage) from a [Bitmap](//developer.android.com/reference/android/graphics/Bitmap.html), [ByteBuffer](//developer.android.com/reference/java/nio/ByteBuffer.html), etc. See [detectInImage(FirebaseVisionImage)](/docs/reference/android/com/google/firebase/ml/vision/cloud/landmark/FirebaseVisionCloudLandmarkDetector#detectInImage(com.google.firebase.ml.vision.common.FirebaseVisionImage)) documentation for more details. For example, the code below creates a [FirebaseVisionImage](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage) from a [Bitmap](//developer.android.com/reference/android/graphics/Bitmap.html). \n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n\nThen the code below can detect landmarks in the supplied [FirebaseVisionImage](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage). \n\n\n Task\u003cList\u003cFirebaseVisionCloudLandmark\u003e\u003e task =\n cloudLandmarkDetector.detectInImage(image);\n task.addOnSuccessListener(...).addOnFailureListener(...);\n \nPublic Method Summary\n\nInherited Method Summary \nFrom class java.lang.Object \n\nFrom interface java.io.Closeable \n\nFrom interface java.lang.AutoCloseable \n\nPublic Methods \n\npublic void **close** () \n\nThrows\n\npublic [Task](//developers.google.com/android/reference/com/google/android/gms/tasks/Task.html)\\\u003c[List](//developer.android.com/reference/java/util/List.html)\\\u003c[FirebaseVisionCloudLandmark](/docs/reference/android/com/google/firebase/ml/vision/cloud/landmark/FirebaseVisionCloudLandmark)\\\u003e\\\u003e\n**detectInImage** ([FirebaseVisionImage](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage) image) \nDetects landmarks from supplied image.\n\nFor best efficiency, create a [FirebaseVisionImage](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage) object using one of the following ways:\n\n- [fromMediaImage(Image, int)](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage#fromMediaImage(android.media.Image, int)) with a [JPEG](//developer.android.com/reference/android/graphics/ImageFormat.html#JPEG) formatted image from [android.hardware.camera2](/docs/reference/android/reference/android/hardware/camera2/package-summary).\n- [fromBitmap(android.graphics.Bitmap)](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage#fromBitmap(android.graphics.Bitmap)).\n\nAll other [FirebaseVisionImage](/docs/reference/android/com/google/firebase/ml/vision/common/FirebaseVisionImage) factory methods will work as well, but possibly slightly slower. \n\nReturns\n\n- A [Task](//developers.google.com/android/reference/com/google/android/gms/tasks/Task.html) that asynchronously returns the detected [List](//developer.android.com/reference/java/util/List.html) of [FirebaseVisionCloudLandmark](/docs/reference/android/com/google/firebase/ml/vision/cloud/landmark/FirebaseVisionCloudLandmark). The list is empty if nothing is found."]]