Hilfe für 360° Panorama-Korrektur-Tool gesucht (Request for support on 360° panorama correction tool)

mit matplotlib, NumPy, pandas, SciPy, SymPy und weiteren mathematischen Programmbibliotheken.
Antworten
Tester17
User
Beiträge: 10
Registriert: Donnerstag 6. April 2023, 14:06

Hi,

I would like to programme a panorama correction tool which is able to:
  • align an existing panorama to a new vertical axis
  • lower or lift the horizon
  • shift the forward direction of the panorama (already solved with PIL [pillow] with picture shifting)
The input is an (all around = 360°) equirectangular panorama picture (2:1) as jpg file.
The output shall be the same panorama with corrected axis, corrected horizon and corrected forward direction in equirectangular format.

Analogue ot my current tool (Bildshifter) I would like to do the following:
  • convert the equirectangular panorama picture to a small version for a faster preview
  • show panorama picture (preview) in browser with javascript panorama viewer (PanoradoViewer.js)
  • interactively change the vertical angle, horizontal line and forward direction line in browser
  • take the values of Theta (angle of vertical [=upright] correction in starting view), Gamma (angle of horizon correction) and Phi (shifting angle for new fwd direction) and calculate a new
    equirectangular panorama in 3 steps:
1. correct vertical angle
2. correct horizon
3. shift fwd view position (picture shifting already coded)

I would use an interactive web page (with flask / flaskwebgui) with a javascript viewer (panorado) for the ineractive part (already working with picture shifting).
The small preview picture for the web page is created using PIL (pillow).
WiIth help of a suitable python library (not found yet) or directly with numpy (?) I would do the recalculation of the panorama itself.

Is there a good library for this kind of panorama recalculation?
Is there example code doing these operations (mainly step 1 and 2) on an equirectangular picture (not on a projected one) already existing?

I was inspired by a blog:
https://blogs.codingballad.com/unwrappi ... 09bd5bca94

I would be grateful for any help.


P.S. How do I add tags or metadata to this topic?
Antworten