-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated image entity fields #155
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -338,42 +338,54 @@ Gets an image for the given key argument | |
10. computed_rotation - enum, corrected orientation of the image | ||
|
||
|
||
11. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
11. creator - the username and user ID who owns and uploaded the image | ||
|
||
|
||
12. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
(see: [https://sylvana.net/jpegcrop/exif_orientation.html](https://sylvana.net/jpegcrop/exif_orientation.html)) | ||
|
||
|
||
12. geometry - GeoJSON Point geometry | ||
13. geometry - GeoJSON Point geometry | ||
|
||
|
||
14. height - int, height of the original image uploaded | ||
|
||
|
||
15. make - string, the manufacturer name of the camera device | ||
|
||
|
||
16. model - string, the model or product series name of the camera device | ||
|
||
|
||
13. height - int, height of the original image uploaded | ||
17. thumb_256_url - string, URL to the 256px wide thumbnail | ||
|
||
|
||
14. thumb_256_url - string, URL to the 256px wide thumbnail | ||
18. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
|
||
|
||
15. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
19. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
|
||
|
||
16. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
20. thumb_original_url - string, URL to the original wide thumbnail | ||
|
||
|
||
17. merge_cc - int, id of the connected component of images that were aligned | ||
21. merge_cc - int, id of the connected component of images that were aligned | ||
together | ||
|
||
|
||
18. mesh - { id: string, url: string } - URL to the mesh | ||
22. mesh - { id: string, url: string } - URL to the mesh | ||
|
||
|
||
19. quality_score - float, how good the image is (experimental) | ||
23. quality_score - float, how good the image is (experimental) | ||
|
||
|
||
20. sequence - string, ID of the sequence | ||
24. sequence - string, ID of the sequence | ||
|
||
|
||
21. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
25. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
|
||
|
||
22. width - int, width of the original image uploaded | ||
26. width - int, width of the original image uploaded | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM! 👍 Docs can be updated with the |
||
|
||
Refer to [https://www.mapillary.com/developer/api-documentation/#image](https://www.mapillary.com/developer/api-documentation/#image) for more details | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,19 +75,23 @@ def get_image(image_id: str, fields: list) -> str: | |
8. computed_compass_angle - float, compass angle after running image processing | ||
9. computed_geometry - GeoJSON Point, location after running image processing | ||
10. computed_rotation - enum, corrected orientation of the image | ||
11. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
11. creator - the username and user ID who owns and uploaded the image | ||
12. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
(see: https://sylvana.net/jpegcrop/exif_orientation.html) | ||
12. geometry - GeoJSON Point geometry | ||
13. height - int, height of the original image uploaded | ||
14. thumb_256_url - string, URL to the 256px wide thumbnail | ||
15. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
16. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
17. merge_cc - int, id of the connected component of images that were aligned together | ||
18. mesh - { id: string, url: string } - URL to the mesh | ||
19. quality_score - float, how good the image is (experimental) | ||
20. sequence - string, ID of the sequence | ||
21. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
22. width - int, width of the original image uploaded | ||
13. geometry - GeoJSON Point geometry | ||
14. height - int, height of the original image uploaded | ||
15. make - string, the manufacturer name of the camera device | ||
16. model - string, the model or product series name of the camera device | ||
17. thumb_256_url - string, URL to the 256px wide thumbnail | ||
18. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
19. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
20. thumb_original_url - string, URL to the original wide thumbnail | ||
21. merge_cc - int, id of the connected component of images that were aligned together | ||
22. mesh - { id: string, url: string } - URL to the mesh | ||
23. quality_score - float, how good the image is (experimental) | ||
24. sequence - string, ID of the sequence | ||
25. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
26. width - int, width of the original image uploaded | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
""" | ||
|
||
fields = Entities.__field_validity( | ||
|
@@ -127,19 +131,23 @@ def get_images( | |
8. computed_compass_angle - float, compass angle after running image processing | ||
9. computed_geometry - GeoJSON Point, location after running image processing | ||
10. computed_rotation - enum, corrected orientation of the image | ||
11. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
11. creator - the username and user ID who owns and uploaded the image | ||
12. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
(see: https://sylvana.net/jpegcrop/exif_orientation.html) | ||
12. geometry - GeoJSON Point geometry | ||
13. height - int, height of the original image uploaded | ||
14. thumb_256_url - string, URL to the 256px wide thumbnail | ||
15. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
16. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
17. merge_cc - int, id of the connected component of images that were aligned together | ||
18. mesh - { id: string, url: string } - URL to the mesh | ||
19. quality_score - float, how good the image is (experimental) | ||
20. sequence - string, ID of the sequence | ||
21. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
22. width - int, width of the original image uploaded | ||
13. geometry - GeoJSON Point geometry | ||
14. height - int, height of the original image uploaded | ||
15. make - string, the manufacturer name of the camera device | ||
16. model - string, the model or product series name of the camera device | ||
17. thumb_256_url - string, URL to the 256px wide thumbnail | ||
18. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
19. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
20. thumb_original_url - string, URL to the original wide thumbnail | ||
21. merge_cc - int, id of the connected component of images that were aligned together | ||
22. mesh - { id: string, url: string } - URL to the mesh | ||
23. quality_score - float, how good the image is (experimental) | ||
24. sequence - string, ID of the sequence | ||
25. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
26. width - int, width of the original image uploaded | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
|
||
Raises:: | ||
|
||
|
@@ -373,12 +381,16 @@ def get_image_fields() -> list: | |
"computed_compass_angle", | ||
"computed_geometry", | ||
"computed_rotation", | ||
"creator", | ||
"exif_orientation", | ||
"geometry", | ||
"height", | ||
"make", | ||
"model", | ||
"thumb_256_url", | ||
"thumb_1024_url", | ||
"thumb_2048_url", | ||
"thumb_original_url", | ||
"merge_cc", | ||
"mesh", | ||
"quality_score", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -927,20 +927,23 @@ def image_from_key(key: str, fields: list = []) -> str: | |
8. computed_compass_angle - float, compass angle after running image processing | ||
9. computed_geometry - GeoJSON Point, location after running image processing | ||
10. computed_rotation - enum, corrected orientation of the image | ||
11. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
11. creator - the username and user ID who owns and uploaded the image | ||
12. exif_orientation - enum, orientation of the camera as given by the exif tag | ||
(see: https://sylvana.net/jpegcrop/exif_orientation.html) | ||
12. geometry - GeoJSON Point geometry | ||
13. height - int, height of the original image uploaded | ||
14. thumb_256_url - string, URL to the 256px wide thumbnail | ||
15. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
16. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
17. merge_cc - int, id of the connected component of images that were aligned | ||
together | ||
18. mesh - { id: string, url: string } - URL to the mesh | ||
19. quality_score - float, how good the image is (experimental) | ||
20. sequence - string, ID of the sequence | ||
21. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
22. width - int, width of the original image uploaded | ||
13. geometry - GeoJSON Point geometry | ||
14. height - int, height of the original image uploaded | ||
15. make - string, the manufacturer name of the camera device | ||
16. model - string, the model or product series name of the camera device | ||
17. thumb_256_url - string, URL to the 256px wide thumbnail | ||
18. thumb_1024_url - string, URL to the 1024px wide thumbnail | ||
19. thumb_2048_url - string, URL to the 2048px wide thumbnail | ||
20. thumb_original_url - string, URL to the original wide thumbnail | ||
21. merge_cc - int, id of the connected component of images that were aligned together | ||
22. mesh - { id: string, url: string } - URL to the mesh | ||
23. quality_score - float, how good the image is (experimental) | ||
24. sequence - string, ID of the sequence | ||
25. sfm_cluster - { id: string, url: string } - URL to the point cloud | ||
26. width - int, width of the original image uploaded | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here as well. |
||
|
||
Refer to https://www.mapillary.com/developer/api-documentation/#image for more details | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there needs to be the mention for detections as well, given the last item under
width
for the fields under theImage
entity,https://www.mapillary.com/developer/api-documentation#image