mapillary / mapillary/mapillary-python-sdk

[Feature Request] Get all point cloud/sfm clusters

Abierto
#127 1 comentario 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

feature
Lenguaje dominante
Python
Estrellas
66
Forks
23
Merge medio
1 d 20 h
PR fusionados (30 d)
11

Descripción

Is your feature request related to a problem? Please describe.
Some users may want to retrieve the point clouds for a geographic. Each Mapillary image has an associated point cloud in the sfm_cluster field.

Describe the solution you'd like
There are two ways to allow a user to retrieve this:

  1. a list of links
  2. a list of point cloud objects

The function could be something like get_point_clouds(bbox,links=false) which does the following:

  1. calls graph.mapillary.com/images?bbox=lon1,lat1,lon2,lat2&limit=5000
  2. checks if bbox includes 5000 or more response items (if so, it is maxxed out, we need smaller bbox)
  3. if not maxxed out, get all the images in the bbox with fields=sfm_cluster
  4. if links=false (default) run a loop, for each image, do a get request for the sfm_cluster URL, and append to a list
  5. return the list of sfm_cluster data objects
  6. if links=true, then just return a list of the URLs, do not request the data
  7. if bbox too big in step 2, then split into 4 smaller bboxes, or warn user to simply use a smaller bbox

Describe alternatives you've considered
It might be good to just request using the tiles, the way we get images from a bbox, but I am not certain that these images via tiles have the sfm_cluster URL, so it would not work

Additional context
The point cloud should be in .ply file format, but this is not important, just retrieving the objects lets the user make use of them (they would use it with the OpenSfM library)

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con la recuperación existente de imágenes mediante bounding box del SDK y el endpoint graph.mapillary.com/images. Verifica cómo se expone sfm_cluster y, después, define el comportamiento de get_point_clouds(bbox, links=false) para los enlaces frente a los objetos recuperados y para las cajas demasiado grandes. Se considera terminado cuando se devuelven los resultados de nubes de puntos solicitados para una bbox válida y el límite de 5000 elementos se gestiona explícitamente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api, data
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
32/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.