mapillary / mapillary/mapillary-python-sdk
[Feature Request] Get all point cloud/sfm clusters
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Python
- Estrelas
- 66
- Forks
- 23
- Merge médio
- 1d 20h
- PRs com merge (30d)
- 11
Descrição
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:
- a list of links
- a list of point cloud objects
The function could be something like get_point_clouds(bbox,links=false) which does the following:
- calls graph.mapillary.com/images?bbox=lon1,lat1,lon2,lat2&limit=5000
- checks if bbox includes 5000 or more response items (if so, it is maxxed out, we need smaller bbox)
- if not maxxed out, get all the images in the bbox with fields=sfm_cluster
- if links=false (default) run a loop, for each image, do a get request for the sfm_cluster URL, and append to a list
- return the list of sfm_cluster data objects
- if links=true, then just return a list of the URLs, do not request the data
- 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)
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece com a recuperação existente de imagens por bounding box do SDK e com o endpoint graph.mapillary.com/images. Verifique como sfm_cluster é exposto e, em seguida, defina o comportamento de get_point_clouds(bbox, links=false) para links em comparação com objetos buscados e para caixas grandes demais. Considera-se concluído quando os resultados de nuvens de pontos solicitados são retornados para uma bbox válida e o limite de 5000 itens é tratado explicitamente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- api, data
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 32/100