mapillary-tools 0.14.0a1__py3-none-any.whl → 0.14.0b1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. mapillary_tools/__init__.py +1 -1
  2. mapillary_tools/api_v4.py +5 -4
  3. mapillary_tools/authenticate.py +9 -9
  4. mapillary_tools/blackvue_parser.py +79 -22
  5. mapillary_tools/camm/camm_parser.py +5 -5
  6. mapillary_tools/commands/__main__.py +1 -2
  7. mapillary_tools/config.py +41 -18
  8. mapillary_tools/constants.py +3 -2
  9. mapillary_tools/exceptions.py +1 -1
  10. mapillary_tools/exif_read.py +65 -65
  11. mapillary_tools/exif_write.py +7 -7
  12. mapillary_tools/exiftool_read.py +23 -46
  13. mapillary_tools/exiftool_read_video.py +88 -49
  14. mapillary_tools/exiftool_runner.py +4 -24
  15. mapillary_tools/ffmpeg.py +417 -242
  16. mapillary_tools/geo.py +4 -21
  17. mapillary_tools/geotag/__init__.py +0 -1
  18. mapillary_tools/geotag/{geotag_from_generic.py → base.py} +34 -50
  19. mapillary_tools/geotag/factory.py +105 -103
  20. mapillary_tools/geotag/geotag_images_from_exif.py +15 -51
  21. mapillary_tools/geotag/geotag_images_from_exiftool.py +118 -63
  22. mapillary_tools/geotag/geotag_images_from_gpx.py +33 -16
  23. mapillary_tools/geotag/geotag_images_from_gpx_file.py +2 -34
  24. mapillary_tools/geotag/geotag_images_from_nmea_file.py +0 -3
  25. mapillary_tools/geotag/geotag_images_from_video.py +51 -14
  26. mapillary_tools/geotag/geotag_videos_from_exiftool.py +123 -0
  27. mapillary_tools/geotag/geotag_videos_from_gpx.py +35 -123
  28. mapillary_tools/geotag/geotag_videos_from_video.py +14 -147
  29. mapillary_tools/geotag/image_extractors/base.py +18 -0
  30. mapillary_tools/geotag/image_extractors/exif.py +60 -0
  31. mapillary_tools/geotag/image_extractors/exiftool.py +18 -0
  32. mapillary_tools/geotag/options.py +26 -3
  33. mapillary_tools/geotag/utils.py +62 -0
  34. mapillary_tools/geotag/video_extractors/base.py +18 -0
  35. mapillary_tools/geotag/video_extractors/exiftool.py +70 -0
  36. mapillary_tools/geotag/video_extractors/gpx.py +116 -0
  37. mapillary_tools/geotag/video_extractors/native.py +135 -0
  38. mapillary_tools/gpmf/gpmf_parser.py +16 -16
  39. mapillary_tools/gpmf/gps_filter.py +5 -3
  40. mapillary_tools/history.py +8 -3
  41. mapillary_tools/mp4/construct_mp4_parser.py +9 -8
  42. mapillary_tools/mp4/mp4_sample_parser.py +27 -27
  43. mapillary_tools/mp4/simple_mp4_builder.py +10 -9
  44. mapillary_tools/mp4/simple_mp4_parser.py +13 -12
  45. mapillary_tools/process_geotag_properties.py +21 -15
  46. mapillary_tools/process_sequence_properties.py +49 -49
  47. mapillary_tools/sample_video.py +15 -14
  48. mapillary_tools/serializer/description.py +587 -0
  49. mapillary_tools/serializer/gpx.py +132 -0
  50. mapillary_tools/telemetry.py +6 -5
  51. mapillary_tools/types.py +64 -635
  52. mapillary_tools/upload.py +176 -197
  53. mapillary_tools/upload_api_v4.py +94 -51
  54. mapillary_tools/uploader.py +284 -138
  55. mapillary_tools/utils.py +16 -18
  56. {mapillary_tools-0.14.0a1.dist-info → mapillary_tools-0.14.0b1.dist-info}/METADATA +87 -31
  57. mapillary_tools-0.14.0b1.dist-info/RECORD +75 -0
  58. {mapillary_tools-0.14.0a1.dist-info → mapillary_tools-0.14.0b1.dist-info}/WHEEL +1 -1
  59. mapillary_tools/geotag/geotag_images_from_exiftool_both_image_and_video.py +0 -77
  60. mapillary_tools/geotag/geotag_videos_from_exiftool_video.py +0 -151
  61. mapillary_tools/video_data_extraction/cli_options.py +0 -22
  62. mapillary_tools/video_data_extraction/extract_video_data.py +0 -157
  63. mapillary_tools/video_data_extraction/extractors/base_parser.py +0 -75
  64. mapillary_tools/video_data_extraction/extractors/blackvue_parser.py +0 -49
  65. mapillary_tools/video_data_extraction/extractors/camm_parser.py +0 -62
  66. mapillary_tools/video_data_extraction/extractors/exiftool_runtime_parser.py +0 -74
  67. mapillary_tools/video_data_extraction/extractors/exiftool_xml_parser.py +0 -52
  68. mapillary_tools/video_data_extraction/extractors/generic_video_parser.py +0 -52
  69. mapillary_tools/video_data_extraction/extractors/gopro_parser.py +0 -58
  70. mapillary_tools/video_data_extraction/extractors/gpx_parser.py +0 -108
  71. mapillary_tools/video_data_extraction/extractors/nmea_parser.py +0 -24
  72. mapillary_tools/video_data_extraction/video_data_parser_factory.py +0 -39
  73. mapillary_tools-0.14.0a1.dist-info/RECORD +0 -78
  74. {mapillary_tools-0.14.0a1.dist-info → mapillary_tools-0.14.0b1.dist-info}/entry_points.txt +0 -0
  75. {mapillary_tools-0.14.0a1.dist-info → mapillary_tools-0.14.0b1.dist-info}/licenses/LICENSE +0 -0
  76. {mapillary_tools-0.14.0a1.dist-info → mapillary_tools-0.14.0b1.dist-info}/top_level.txt +0 -0
@@ -1,24 +0,0 @@
1
- import typing as T
2
-
3
- from ... import geo
4
- from ...geotag import geotag_images_from_nmea_file
5
- from .base_parser import BaseParser
6
-
7
-
8
- class NmeaParser(BaseParser):
9
- default_source_pattern = "%g.nmea"
10
- must_rebase_times_to_zero = True
11
- parser_label = "nmea"
12
-
13
- def extract_points(self) -> T.Sequence[geo.Point]:
14
- source_path = self.geotag_source_path
15
- if not source_path:
16
- return []
17
- points = geotag_images_from_nmea_file.get_lat_lon_time_from_nmea(source_path)
18
- return points
19
-
20
- def extract_make(self) -> T.Optional[str]:
21
- return None
22
-
23
- def extract_model(self) -> T.Optional[str]:
24
- return None
@@ -1,39 +0,0 @@
1
- import typing as T
2
- from pathlib import Path
3
-
4
- from .cli_options import CliOptions
5
-
6
- from .extractors.base_parser import BaseParser
7
-
8
- from .extractors.blackvue_parser import BlackVueParser
9
- from .extractors.camm_parser import CammParser
10
-
11
- from .extractors.exiftool_runtime_parser import ExiftoolRuntimeParser
12
- from .extractors.exiftool_xml_parser import ExiftoolXmlParser
13
- from .extractors.generic_video_parser import GenericVideoParser
14
- from .extractors.gopro_parser import GoProParser
15
- from .extractors.gpx_parser import GpxParser
16
- from .extractors.nmea_parser import NmeaParser
17
-
18
-
19
- known_parsers = {
20
- "gpx": GpxParser,
21
- "nmea": NmeaParser,
22
- "exiftool_xml": ExiftoolXmlParser,
23
- "exiftool_runtime": ExiftoolRuntimeParser,
24
- "camm": CammParser,
25
- "blackvue": BlackVueParser,
26
- "gopro": GoProParser,
27
- "video": GenericVideoParser,
28
- }
29
-
30
-
31
- def make_parsers(file: Path, options: CliOptions) -> T.Sequence[BaseParser]:
32
- src_options = options["geotag_sources_options"]
33
- parsers = [
34
- known_parsers[s["source"]](file, options, s)
35
- for s in src_options
36
- if s["source"] in known_parsers
37
- ]
38
-
39
- return parsers
@@ -1,78 +0,0 @@
1
- mapillary_tools/__init__.py,sha256=QLNHmol7wzyKCCv_FiGax8HmQcDUu0qcI16mFQJqGPw,21
2
- mapillary_tools/api_v4.py,sha256=jAuhmWDSeP06dK-D2Wm-jDbDb317q3028q_LeTBf0_s,10117
3
- mapillary_tools/authenticate.py,sha256=KG3p_7D4D7nUvrGRLGp56_ogLy7JUHzkGSpBw8V70LY,11091
4
- mapillary_tools/blackvue_parser.py,sha256=Gmz3M1cvBmB2W3Pme6x3w2yuixDpKiTOkQe82iPXr2s,3613
5
- mapillary_tools/config.py,sha256=-s_cfpS3sOgtAydmElRDjOh5mNFCj8DxOxoxDc1ubPE,2624
6
- mapillary_tools/constants.py,sha256=D0_SP1Zaa7ovGkPkTwuxXLqOauU6fH-WrnyOZs-V_RM,3791
7
- mapillary_tools/exceptions.py,sha256=I6mmz_OvnHppu9eDJvluBXU3G8b4sqAb-rP8yyPDA2g,2404
8
- mapillary_tools/exif_read.py,sha256=CtdDOOOhaqp9icaXAfMlvZKaFO2GjHwGvsvatmCjwu8,32500
9
- mapillary_tools/exif_write.py,sha256=3PawLnBOY8Z86TYiA_F4LxRhe5Ui6CTNhxYm9yeJNX8,8786
10
- mapillary_tools/exiftool_read.py,sha256=qjhL_JUNwZE7EIvJkmH8PLFzUpeTmnmuqcDU3VLXh5o,16632
11
- mapillary_tools/exiftool_read_video.py,sha256=7GoCiy-YL9sdMquoLzh2SZF4J3eIxr0K4_MXOBQYC6U,14875
12
- mapillary_tools/exiftool_runner.py,sha256=J04V0Y70kTiGE2q2m5TKWfORd0hmYNmAsmrZxb34S3s,2316
13
- mapillary_tools/ffmpeg.py,sha256=p1a5VxlbpLGLkzulMv51bpyD5omwK7Qg8277TGYmcZA,15780
14
- mapillary_tools/geo.py,sha256=6t6EVtAOgHvzz6XGvxR3wCtE1NnpcE2XH-fuuAwgvKk,11136
15
- mapillary_tools/history.py,sha256=VCrN-TXZMhGRUyL8hEGRSDsz7uliMyvFR6T5FXtXm5k,1620
16
- mapillary_tools/ipc.py,sha256=DwWQb9hNshx0bg0Fo5NjY0mXjs-FkbR6tIQmjMgMtmg,1089
17
- mapillary_tools/process_geotag_properties.py,sha256=H9AvrTWh-3uWyJAn0RmQY63dIVQlWPLMP5xGnblXqvk,13949
18
- mapillary_tools/process_sequence_properties.py,sha256=dOdjZOZB8BY_foQlQqQ5NmsdlqePQL-Ca5qg5SHLZZc,23442
19
- mapillary_tools/sample_video.py,sha256=RyUgpdpV3-nmCRo1o5rPVAWvnvNI5_o-BIaenJKvyAg,13908
20
- mapillary_tools/telemetry.py,sha256=FQNSP2qCbLWPJsqF7aN6iS0_hueDrvRXrJOf_JBEXoI,1571
21
- mapillary_tools/types.py,sha256=zaaW7kg_io67xUPrQoNbHe21p0YRZP85BqWiH_L2GrU,23479
22
- mapillary_tools/upload.py,sha256=exQeEh3jpys94k-3QDT-4xoeJ_lAHbQBoy749hbPfnA,24878
23
- mapillary_tools/upload_api_v4.py,sha256=dTEpQDnV11TyPf5hefd-FVeEfw7WEVYyZcIUJttUEp0,6417
24
- mapillary_tools/uploader.py,sha256=xPEszuXlgcgCklGfsgL8qN1ozsFuU4rLT4jocMD2dVI,18694
25
- mapillary_tools/utils.py,sha256=zm8ndI7wWrBWVll5HuI7G5QqKJ7fY9llM0T2l4Ywoto,6679
26
- mapillary_tools/camm/camm_builder.py,sha256=ub6Z9ijep8zAo1NOlU51Gxk95kQ2vfN58YgVCLmNMRk,9211
27
- mapillary_tools/camm/camm_parser.py,sha256=Rf29dHyMzaXiXMmetoR4fTS1MTtLmSylfj4QmMeDGi8,18053
28
- mapillary_tools/commands/__init__.py,sha256=41CFrPLGlG3566uhxssEF3TGAtSpADFPPcDMHbViU0E,171
29
- mapillary_tools/commands/__main__.py,sha256=CPSShHJJniNA8sZYmk2lG8bGtrDsixw-BAW1etwUk00,5067
30
- mapillary_tools/commands/authenticate.py,sha256=yqtpHMYzkyBrrchj6MARxB0ywUTfqCEOPkMbkyaO9Ks,1344
31
- mapillary_tools/commands/process.py,sha256=Japc6_P0B_8HzoM8_82P3_YAiyBBaQZXS9TZF46pbMM,9771
32
- mapillary_tools/commands/process_and_upload.py,sha256=-RB_86a5xKfQ7Ye79dh6yyJQpZg2xnJZAWOJsUNbUtQ,1041
33
- mapillary_tools/commands/sample_video.py,sha256=jtnrZrsqqv5eYV1chNTas7RhfbeKBqbAUDUNRFjF01w,3253
34
- mapillary_tools/commands/upload.py,sha256=YnA1iSvNcFeV7kMs1p4TdaPBUWUFYb7X-vFhQeSz0eI,2005
35
- mapillary_tools/commands/video_process.py,sha256=-wQeeIwWXPmy81HQHam5A0huMLRHknkEFa_V1OwElU4,890
36
- mapillary_tools/commands/video_process_and_upload.py,sha256=hOyq9L9TuD0JcqFSOOxdCdgsBA1iJ6fu1TtDbsUr8sI,1088
37
- mapillary_tools/commands/zip.py,sha256=DVQuMLpbstwiy5o4pU_fBvM6eORuFjLeySd80AhHKU0,991
38
- mapillary_tools/geotag/__init__.py,sha256=ohud7lLsqO1b9ddCF0SjrNOcUcRdQzNVR43RkcVVLAc,33
39
- mapillary_tools/geotag/factory.py,sha256=M1xTeoGGk0xLgjzUmlElhnWeuCUDiy0jSpRrElljHeI,9814
40
- mapillary_tools/geotag/geotag_from_generic.py,sha256=mk1R8ZaYFEnTlk-AitdGROdo4Bj8TXHIgoEtQZY1BdM,4901
41
- mapillary_tools/geotag/geotag_images_from_exif.py,sha256=UvIsHjEkGQMlEA__wSTcep0jPKxfMm46DCH_pWhs9O8,2216
42
- mapillary_tools/geotag/geotag_images_from_exiftool.py,sha256=J0lkEQvPId0CdDX7P-8OORCTe2ZcZBCarzstA88CSc4,3566
43
- mapillary_tools/geotag/geotag_images_from_exiftool_both_image_and_video.py,sha256=7lcvRCih3sVdYXvxZOlP05gZd7fAe0GIUlk8tT6G9gA,2593
44
- mapillary_tools/geotag/geotag_images_from_gpx.py,sha256=Za7_o8ZTCvijtKyFRZRK4diTqSdRZI7wE3QldEWVAIo,6193
45
- mapillary_tools/geotag/geotag_images_from_gpx_file.py,sha256=qySMYrHexE31xeJJJCqiGzE13BE6LslpeLUNBfwXzA4,1953
46
- mapillary_tools/geotag/geotag_images_from_nmea_file.py,sha256=_WizWxlbt5eIguGJKqlKNZM-eLNDCcsDXHUitMlFrx4,1680
47
- mapillary_tools/geotag/geotag_images_from_video.py,sha256=2FZDbrYKXFzuUALH_QunIL8mQuOPTk3BTv3Cq2TR6oI,3114
48
- mapillary_tools/geotag/geotag_videos_from_exiftool_video.py,sha256=5AWDQuGV7U0szOCQ3BIeZW0brUl_F8ks0ymcXBTN8H8,5178
49
- mapillary_tools/geotag/geotag_videos_from_gpx.py,sha256=Q57lgqpvPdXzyvSfnNhTi9ZtuvEwX-Zti9khCzVFteE,4724
50
- mapillary_tools/geotag/geotag_videos_from_video.py,sha256=A2buI4iGSaceujzCjGLH7p7OzEALlWs5NOqrvBvYhGE,6060
51
- mapillary_tools/geotag/options.py,sha256=JaRWnDMZIGsh5Wt_nhfWrBgwg-V5SuGc61gg_RehhlI,4291
52
- mapillary_tools/gpmf/gpmf_gps_filter.py,sha256=7cg8wEjC1DrujKY76FZguXsaPqTRkG9-t32OeuOJQIc,2755
53
- mapillary_tools/gpmf/gpmf_parser.py,sha256=aj9IT2BUDZpFXs0Jpoz5wVEss-p71GoNTWz4bk_N5jA,24732
54
- mapillary_tools/gpmf/gps_filter.py,sha256=4CPL8glxdzPWIbfGPPgyqMLyiZFt-djce5vhiFPuZB8,3766
55
- mapillary_tools/mp4/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
- mapillary_tools/mp4/construct_mp4_parser.py,sha256=31oJbg6umKJjdZ0Ni5eCudC0lXd0Y-K_EiCCj6yW9js,17199
57
- mapillary_tools/mp4/io_utils.py,sha256=KZaJTlgFS27Oh3pcA5MKXYFoCifqgFaEZJyU6lb1jc4,5416
58
- mapillary_tools/mp4/mp4_sample_parser.py,sha256=vqpURHJZ-DRhwccdwKYCDTrOQNN70LCWqLFEPuGZLTc,11586
59
- mapillary_tools/mp4/simple_mp4_builder.py,sha256=7zVepmW-2SwoAeA-fvucmBW94jlcCFExDcEg8P3TOGY,12727
60
- mapillary_tools/mp4/simple_mp4_parser.py,sha256=M5e2MuUUIfo1rUarX_VJl65LRVKjk842SmwNA-OJtYI,6326
61
- mapillary_tools/video_data_extraction/cli_options.py,sha256=N0uHi9Uzaw1C8N-PE3yu8J3uEQP3HvSjJ9AZbIqoREg,535
62
- mapillary_tools/video_data_extraction/extract_video_data.py,sha256=sVumfYDJ9Pf8tSxatHI3x9vs3eGjyftdJ7noYgP2b1I,5400
63
- mapillary_tools/video_data_extraction/video_data_parser_factory.py,sha256=qaJHvLgwI5lukJncMd8ggxeSxXOiVzBSJO5GlGQYiXY,1134
64
- mapillary_tools/video_data_extraction/extractors/base_parser.py,sha256=s7Xuwg4I5JZ27oL4ebMSdo093plAXfZ-6uDQ_h97WHY,2134
65
- mapillary_tools/video_data_extraction/extractors/blackvue_parser.py,sha256=PE06HW8b8eTIGrDCoAlt7qkPb88T_rdnFO2ArZJlLLk,1209
66
- mapillary_tools/video_data_extraction/extractors/camm_parser.py,sha256=8xHg-KJ_tG-ApR1MbAPsGGnx0TN2s07IHV7A-oeQ-Ic,1609
67
- mapillary_tools/video_data_extraction/extractors/exiftool_runtime_parser.py,sha256=qDk9avFBAHfzbSQ32ifxoIZNuUXqRcHs2z1HEpR_X6E,2385
68
- mapillary_tools/video_data_extraction/extractors/exiftool_xml_parser.py,sha256=rzMwRzF9erKTtzNCHKhAN7nAaRRIIHToZglkxHab7NE,1679
69
- mapillary_tools/video_data_extraction/extractors/generic_video_parser.py,sha256=34O6Km5kNDoJNJtIUOwtAzzMntuqkSZJfeli7caWSkA,1693
70
- mapillary_tools/video_data_extraction/extractors/gopro_parser.py,sha256=LDBzj_DKQkc0gYHWKt_WSuSry-fOLNJCBWpi0lUjXLs,1568
71
- mapillary_tools/video_data_extraction/extractors/gpx_parser.py,sha256=FNrdnXl48k8I1I5fGwYsClhfFEHVsooRLRboUYECv3I,3811
72
- mapillary_tools/video_data_extraction/extractors/nmea_parser.py,sha256=raSXavBvP-0LJCB_TwLL0mOv2uHSsB744igTsaKAaGc,658
73
- mapillary_tools-0.14.0a1.dist-info/licenses/LICENSE,sha256=l2D8cKfFmmJq_wcVq_JElPJrlvWQOzNWx7gMLINucxc,1292
74
- mapillary_tools-0.14.0a1.dist-info/METADATA,sha256=Txd8DvdzG4Z2DH7sunqecdOAi80TUZIY5Y5WYytBcpo,19782
75
- mapillary_tools-0.14.0a1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
76
- mapillary_tools-0.14.0a1.dist-info/entry_points.txt,sha256=A3f3LP-BO_P-U8Y29QfpT4jx6Mjk3sXjTi2Yew4bvj8,75
77
- mapillary_tools-0.14.0a1.dist-info/top_level.txt,sha256=FbDkMgOrt1S70ho1WSBrOwzKOSkJFDwwqFOoY5-527s,16
78
- mapillary_tools-0.14.0a1.dist-info/RECORD,,