ValueError: time data 'microTime' does not match format '%Y:%m:%d %H:%M:%S.%f' Inserting csv data in image EXIF: 0it Traceback (most recent call last):įile "mapillary_tools\commands\process_csv.py", line 49, in runįile "mapillary_tools\process_csv.py", line 269, in process_csvįile "mapillary_tools\process_csv.py", line 146, in parse_csv_geotag_dataįile "mapillary_tools\process_csv.py", line 27, in format_timeįile "_strptime.py", line 332, in _strptime I use dataframe.to_csv('/path/to/export_loc, index=False) and run mapillary_tools again pointing to the fixed CSV, but get the following error: mapillary_tools process_csv -import_path "Videos/mapillary_images" -csv_path "Videos/mapillary_videos/20180823 mapillary 360 test " -timestamp_column 1 -latitude_column 2 -longitude_column 3 -altitude_column 4 -heading_column 5 -advanced I’m using pandas to bring the CSV in as a dataframe, then I created a helper function to fix the timestamp: def convert_microtime(microtime): Hitting a brick wall and I should’ve been asleep hours ago, so here’s where I’m at. In the the meantime, I’m banging out some helper functions outside of mapillary_tools that will update CSV file so it has the headers and data in the format I need it in. Ultimately, I hope Mapillary will include an upstream fix in the form of a switch that will automatically convert the microtime values into the format format_time() is looking for and determine the GPS week automatically. The default time_format parameter value in format_time() expects the time data in a different format than how the CSV file reports it. If you want to help people on the internet, take the time to learn the subject matter first.įor your own education, the problem is with the microTime column in the CSV file. I’m sure you’re trying to help, but please be more introspective of your actions in the future. This is the internet equivalent of someone jumping into a conversation where they have nothing of substance to add. All you did is quote the first ~30 lines from the file that makes up the process_csv command. By your own admittance, you haven’t played with this script before and you have no idea what my issue is. If anyone has a better way of doing this or can write out some of the code out in advance, I’d greatly appreciate it (and I’ll be able to upload HD 360° segments to express my gratitude).Īt the risk of sounding like a jerk, you commented nothing useful. I need the heading value, which is determined by the camera sensors at the corresponding second in time. I probably won’t be able to work on this until the weekend, and even then, the only thing I can think of is coming up with some sort of transform functions that will replace the first column with the expected time format and inserting a column between heading and pitch that will add and populate a “gps week” column via the gnsscal Python library. I have some experience with Python, but I’m a mediocre programmer at best. The process_csv argument in the command line Python utility can’t parse this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |