mapillary / mapillary/mapillary-python-sdk
[Feature Request] Get all point cloud/sfm clusters
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 66
- Fork
- 23
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 11
Mô tả
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)
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với chức năng truy xuất hình ảnh theo bounding box hiện có của SDK và endpoint graph.mapillary.com/images. Xác minh cách sfm_cluster được exposed, sau đó xác định hành vi của get_point_clouds(bbox, links=false) đối với links so với các đối tượng được truy xuất và đối với các box quá lớn. Hoàn tất khi các kết quả point-cloud được yêu cầu được trả về cho một bbox hợp lệ và giới hạn 5000 mục được xử lý một cách rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api, data
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 32/100