Skip to content

Landmark Detection

Algorithm Name: detect_landmark

This algorithm is for recognising what type of landmark is in the image (if there is any), it returns the information of what the image is about.

Input: an image file

Output: a dictionary of possible landmarks

import Aiii
c = Aiii.Client("YOUR_API_KEY")

algo = c.algo('algo://adamleo/detect_landmark')
with open("LOCAL_PATH_TO_IMAGE", "rb") as img:
    response = algo.pipe(img.read())

Or use local file path directly:

import Aiii
c = Aiii.Client("YOUR_API_KEY")

algo = c.algo('algo://adamleo/detect_landmark')
response = algo.pipe("LOCAL_PATH_TO_IMAGE")

For cloud storage users, please specify the file path in the cloud:

import Aiii
c = Aiii.Client("YOUR_API_KEY")

algo = c.algo('algo://adamleo/detect_landmark')
response = algo.pipe("data://CLOUD_PATH_TO_IMAGE")