# Image direction interpolation?

**URL:** <https://forum.mapillary.com/t/image-direction-interpolation/2176>\
**Category:** Contributing and equipment\
**Created:** [December 5, 2018, 11:24pm UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176 "2018-12-05T23:24:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![4004](https://avatars.discourse-cdn.com/v4/letter/4/bbce88/32.png) [@4004](https://forum.mapillary.com/u/4004)\
**Post date:** [December 5, 2018, 11:24pm UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/1 "2018-12-05T23:24:05Z")

</div>

This is more of a recommendation thread, as I am thinking what I want to do already exists.  
Planning to shoot with a set of GoPros with GPS, but no compass. With GPS, provided it writes proper tags, I saved myself the headache of merging gpx and photos. Sadly, the compass direction would be missing.  
Knowing how the interpolation scripts can normalise sequences, is there software available that would interpolate my sequences, but with an offset (like you have an option in the mapillary app, in 45deg increments)?  
It might be possible with mapillary\_tools but I still can’t get python to run, and would prefer a gui  
Thanks

---

<div class="post-metadata">

**Author:** ![tryl](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/tryl/32/62_2.png) [@tryl](https://forum.mapillary.com/u/tryl)\
**Post date:** [December 6, 2018, 8:16am UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/2 "2018-12-06T08:16:39Z")

</div>

When the images are uploaded, it is possible to edit the sequence and press the Normalize Sequence button, which will interpolate the direction. Unfortunately there is no argument, but see the reply by @tastrax 2 posts down.

---

<div class="post-metadata">

**Author:** ![4004](https://avatars.discourse-cdn.com/v4/letter/4/bbce88/32.png) [@4004](https://forum.mapillary.com/u/4004)\
**Post date:** [December 6, 2018, 10:14am UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/3 "2018-12-06T10:14:36Z")

</div>

I was thinking maybe if the web uploader doesn’t have the functionality, some geotag software might? It is in the mobile app after all

---

<div class="post-metadata">

**Author:** ![tastrax](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/tastrax/32/68356_2.png) [@tastrax](https://forum.mapillary.com/u/tastrax)\
**Post date:** [December 6, 2018, 10:54am UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/4 "2018-12-06T10:54:39Z")

</div>

After normalising I think you can also offset a sequence

![image](https://us1.discourse-cdn.com/flex015/uploads/mapillary/original/3X/a/1/a126181737faf5f11ae26f8595cccdc916f43bab.jpeg)

I have done this for some sequences I uploaded by scripts without an offset

---

<div class="post-metadata">

**Author:** ![Gness](https://avatars.discourse-cdn.com/v4/letter/g/3be4f8/32.png) [@Gness](https://forum.mapillary.com/u/Gness)\
**Post date:** [December 6, 2018, 10:59am UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/5 "2018-12-06T10:59:20Z")

</div>

I use this:

> **[JaVaWa | IMGfromGPX](https://www.javawa.nl/imgfromgpx_en.html)**
>
> Create your own maps based on GPX files for your GPS and for MapSource/BaseCamp on your computer.

It allows you to interpolate direction (with a configured offset), but I’ve only used it when writing gps data from a gpx file.

It might do what you want.

---

<div class="post-metadata">

**Author:** ![4004](https://avatars.discourse-cdn.com/v4/letter/4/bbce88/32.png) [@4004](https://forum.mapillary.com/u/4004)\
**Post date:** [December 6, 2018, 11:44am UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/6 "2018-12-06T11:44:45Z")

</div>

Oh, I missed that! This is probably exactly what I need, normalise then offset for each per-camera sequence. Thanks

@Gness I downloaded it yesterday but couldn’t find an option for interpolation offset, only gpx matching and timecode sync

---

<div class="post-metadata">

**Author:** ![Gness](https://avatars.discourse-cdn.com/v4/letter/g/3be4f8/32.png) [@Gness](https://forum.mapillary.com/u/Gness)\
**Post date:** [December 6, 2018, 3:32pm UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/7 "2018-12-06T15:32:46Z")

</div>

![interpolate](https://us1.discourse-cdn.com/flex015/uploads/mapillary/original/3X/2/c/2c9e607bf086a924b05ac2ee6b7905d89cecbe5b.png)  
This is under Extra\>Preferences, however i think you’ve found your solution already 🙂

---

<div class="post-metadata">

**Author:** ![4004](https://avatars.discourse-cdn.com/v4/letter/4/bbce88/32.png) [@4004](https://forum.mapillary.com/u/4004)\
**Post date:** [December 6, 2018, 11:56pm UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/8 "2018-12-06T23:56:09Z")

</div>

Ahh, that’s where it is. Good to have a backup option, thanks!

(hopefully all this stuff goes to plan)

---

<div class="post-metadata">

**Author:** ![pbb](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pbb](https://forum.mapillary.com/u/pbb)\
**Post date:** [December 10, 2018, 7:20am UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/9 "2018-12-10T07:20:58Z")

</div>

Is the `offset_angle` parameter from the Python `mapillary_tools` what you want?

> **[GitHub - mapillary/mapillary\_tools: Command line tools for processing and...](https://github.com/mapillary/mapillary_tools)**
>
> Command line tools for processing and uploading Mapillary imagery - GitHub - mapillary/mapillary\_tools: Command line tools for processing and uploading Mapillary imagery

---

<div class="post-metadata">

**Author:** ![4004](https://avatars.discourse-cdn.com/v4/letter/4/bbce88/32.png) [@4004](https://forum.mapillary.com/u/4004)\
**Post date:** [December 10, 2018, 8:06am UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/10 "2018-12-10T08:06:19Z")

</div>

Yep, I believe that’s what used in the web ui as well

---

<div class="post-metadata">

**Author:** ![rubencarbonero](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rubencarbonero](https://forum.mapillary.com/u/rubencarbonero)\
**Post date:** [July 9, 2020, 3:49pm UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/11 "2020-07-09T15:49:39Z")

</div>

Hi again,

Similar setup here, I want to use TWO (2) GoPro cameras simultaneously to record front and back image sequences.

I have been happy with interpolate\_directions at mapillary command line tools so far, as per the command line tool mentioned here:

[http://mapillary.trydiscourse.com/t/my-gopro7-setup-and-workflow/3120/12](http://mapillary.trydiscourse.com/t/my-gopro7-setup-and-workflow/3120/12)

\*\*\* edit: it turns out I can use both interpolate\_directions AND offset\_angle set to 180 for the backwards facing camera sequence just by adding

—offset\_angle 180

Did a trial run, worked flawlessly 😌

---

<div class="post-metadata">

**Author:** ![4004](https://avatars.discourse-cdn.com/v4/letter/4/bbce88/32.png) [@4004](https://forum.mapillary.com/u/4004)\
**Post date:** [July 10, 2020, 5:23pm UTC](https://forum.mapillary.com/t/image-direction-interpolation/2176/12 "2020-07-10T17:23:21Z")

</div>

Yep, this way if you are shooting from a fixed point (say attached to a car), you can interpolate all images first to be facing direction of travel, and then flip them.  
There will be some lag depending on gps accuracy etc, but it’s good enough
