mapillary / mapillary/mapillary-python-sdk

[Feature Request] Get all point cloud/sfm clusters

未關閉
#127 1 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

feature
主要語言
Python
星號
66
分支
23
平均合併
1 天 20 小時
30 天內合併 PR
11

描述

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)

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 SDK 現有的 bounding-box 影像擷取功能和 graph.mapillary.com/images endpoint 開始。確認 sfm_cluster 的公開方式,然後定義 get_point_clouds(bbox, links=false) 在 links 與擷取到的物件之間,以及對過大的 box 的行為。完成標準是:對有效的 bbox 回傳所要求的 point-cloud 結果,並明確處理 5000 個項目的限制。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
api, data
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
32/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。