<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<div class="moz-cite-prefix">2021. 04. 26. 8:20 keltezéssel, KAMI911
KAMI911 írta:<br>
</div>
<blockquote type="cite"
cite="mid:CAFg1WTxsm6PsWv8fBg4NQywJNfwaHNOvj_0Kua+dxnXBd42ARQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">
<div>Ha a Mapillary tools-sal töltitek fel, ez nem lehet
segítség?
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<h3>Derive image direction and Upload</h3>
<ul>
<li>Derive image direction (image heading or camera angle)
based on image latitude and longitude. If images are
missing
direction, the direction is derived automatically, if
direction is present, it will be derived and overwritten
only if
the flag <code>--interpolate directions</code> is
specified.</li>
</ul>
<div dir="auto"><br>
</div>
</div>
</div>
</blockquote>
<p>Esetleg valami Mapillary független megoldás nincs erre? Kód
példa:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/mapillary/mapillary_tools/blob/073aa96278e8de46cae77b6d4062f7269e81bc8d/mapillary_tools/geo.py#L143">https://github.com/mapillary/mapillary_tools/blob/073aa96278e8de46cae77b6d4062f7269e81bc8d/mapillary_tools/geo.py#L143</a><br>
</p>
<p>Általánosan is hasznos lenne az ilyen képekbe ez a javítás a
track alapján. Nekem is teljesen rosszul rakja bele a Mapillary
App:<br>
</p>
<img moz-do-not-send="false"
src="cid:part1.5EC02E84.5F0F0722@cmsbazar.hu" alt="" width="502"
height="705">
<p><br>
</p>
<p>Üdv,</p>
<p>Feri</p>
<p>def compute_bearing(start_lat, start_lon, end_lat, end_lon):<br>
'''<br>
Get the compass bearing from start to end.<br>
Formula from<br>
<a class="moz-txt-link-freetext" href="http://www.movable-type.co.uk/scripts/latlong.html">http://www.movable-type.co.uk/scripts/latlong.html</a><br>
'''<br>
# make sure everything is in radians<br>
start_lat = math.radians(start_lat)<br>
start_lon = math.radians(start_lon)<br>
end_lat = math.radians(end_lat)<br>
end_lon = math.radians(end_lon)<br>
<br>
dLong = end_lon - start_lon<br>
<br>
dPhi = math.log(math.tan(end_lat / 2.0 + math.pi / 4.0) /<br>
math.tan(start_lat / 2.0 + math.pi / 4.0))<br>
if abs(dLong) > math.pi:<br>
if dLong > 0.0:<br>
dLong = -(2.0 * math.pi - dLong)<br>
else:<br>
dLong = (2.0 * math.pi + dLong)<br>
<br>
y = math.sin(dLong) * math.cos(end_lat)<br>
x = math.cos(start_lat) * math.sin(end_lat) - \<br>
math.sin(start_lat) * math.cos(end_lat) * math.cos(dLong)<br>
bearing = (math.degrees(math.atan2(y, x)) + 360.0) % 360.0<br>
<br>
return bearing<br>
</p>
<p></p>
</body>
</html>