Tesla model 3 Dashcam for Mapillary

Hello fellow mappers,
I am very excited because of three things. I like OSM and Mapillary, I drive a Tesla model 3 and I have learned that there are ways I can use the in build cameras of my Tesla to record and upload to Mapillary.

There is a Mapillary blog post from 2020 and a few post in this forum.

Before I dive head first into this adventure I wanted to ask around again if there are any follow ups to the blog post (anywhere on the net) or if there are other users that can share some of their experience with this undertaking?
I am curious to read what body of knowledge is out there!

From my side I have started this project. My first steps are to figure out mobile phone GPS recording and ā€˜Tesla Dashcam operationā€™ so that they donā€™t get in the way while driving.

I have opted to try https://gpslogger.app/ on my phone. Any other suggestions are welcome.
My first impressions are:

  • Lots of options, maybe too many
  • saving of files needs to be changed so that it is not stored by day but per recording session
  • accuracy reported by the app seems bad (around 4-5 m most of the time)

On the Tesla Dashcam side I have formatted by USB stick and are now trying to figure out if I need to press the recording button every 10 minutes or just to turn it on or off. The manual seems to indicate that I need to save every <10 minutes.

Once saved, Dashcam saves the last 10 minutes of footage.

1 Like

Status update 1.

~$ mapillary_tools --version
mapillary_tools version 0.11.1

time for some coffee and watching some recorded clips from my Tesla3 :slight_smile:

Great use of those cameras.
Iā€™ve seen a few images from what appeared to be vehicle positioning cameras, but donā€™t think there was a comprehensive write up.

Iā€™ve worked on/with this quite a bit!

I customized mapillary_tools to:

  • Not upload a sample for a location if thereā€™s still data less than 3 months old
  • Not upload a sample if itā€™s less than 5m away from the previous sample.

I should really do a proper write-up and release these modifications properly. In the meantime; Iā€™d be happy to help you get setup. Ask me if you get stuck anywhere.

BTW; The scripts from the blog-post are incompatible with current versions of mapillary_tools. This is my script: teslamapillary.py Ā· GitHub
But make sure to alter the video_sample_interval. Itā€™s currently set to 12fps which is fine since I hacked the tooling to wait until thereā€™s 5m between two samples, but for the default tooling itā€™s better to stick to 3-5fps or so.

3 Likes

Very cool projects. BTW @seb - you donā€™t have to use mapillary_tools to add gpx files to videos, this is now natively supported in the Mapillary Desktop uploader (overflow menu next to the video file will let you select the associated gpx).

1 Like

wow, this is really awesome and much more skilled that I am able to for now.
I read about the teslapi but donĀ“t have the time at the moment. will put it onto the whish list.

@boris, thanks for pointing this out. I did try to use the desktop uploader but get an ā€œUpload failedā€ error. I had a few tries but all without success. made separate forum post.

1 Like

Hey @TumbleCow , would you be able to help me with the python script a bit.

  • do you point the script to a folder with all cameras in (front, sides, back) or manually move them around?
  • What format is the time zone in? UCS+11, AEST or AEDT (for Australian Eastern Daylight Time) all result in an error
  • OK Australia/Sydney worked!
  • do I have to point the script to individual video files or to a folder?
  • do I need to point it to a GPX file or a folder with GPX files in?
  • the script seems to have issues with my mapillary email. Mine is in the form name+mapillary@gmail.com
  • how can I hand usename and password to the script more permanently?
$ python3 teslamapillary.py --help
usage: teslamapillary.py [-h] mapillary_user timezone gpxpath videofiles [videofiles ...]

Process Tesla dashcam videos with accompanying GPX file

positional arguments:
  mapillary_user  Mapillary username
  timezone        Timezone the Tesla ride was in. Default: Europe/Zurich
  gpxpath         The gpx file
  videofiles      The videofiles to process

  • The script takes videofiles as a last argument, so you can specify multiple files or a wildcard. For example:
python3  ../teslamapillary.py username "Europe/Amsterdam" track.gpx /path/to/videofiles/*`
  • but it takes a single .gpx file
  • The script still uses mapillary_tools. Login with mapillary_tools authenticate

Does it work with these pointers?

Yes it did work after I used mapillary_tools to authenticate again before. Then the uploads started to work.
Thanks for the help.

Will the script recognise the different camera directions too if I point it to whole folders with all 4 directions?

yeah, it will match based on filename. (front, back, etc)

1 Like