def lookupImage(x, y, name): locations = tsneHandler.getLoc(name) for loc in locations: id = loc[0] a = loc[1] c = loc[2] b = loc[3] d = loc[4] if x > b and x < d and y > a and y < c: return id return None
def lookupImage(x, y, name): locations = tsneHandler.getLoc(name) for loc in locations: id = loc[0] a = loc[1] c = loc[2] b = loc[3] d = loc[4] if x > b and x < d and y > a and y < c: return id return None
def lookup_image_by_id(id_q, name): locations = tsneHandler.getLoc(name) for loc in locations: id = loc[0] a = loc[1] c = loc[2] b = loc[3] d = loc[4] if id == id_q: print a, b, c, d return None
def lookup_image_by_id(id_q, name): locations = tsneHandler.getLoc(name) for loc in locations: id = loc[0] a = loc[1] c = loc[2] b = loc[3] d = loc[4] if id == id_q: print a, b, c, d return None