ultramango / gear360pano

Simple script to create equirectangular panorama by stitching images from Samsung Gear 360
MIT License
225 stars 55 forks source link

Hugin window opens and makes computer unusable #34

Closed miltonlaufer closed 7 years ago

miltonlaufer commented 7 years ago

Hi! First of all, thank you so much: this script is great. It even stitches the panorama better than the one that comes with the camera!

I have a problem running the video script (though this happens also with the panorama script, but in that case doesn't bother): when the panorama scripts (which is called by the video script for each frame) runs Hugin, that opens for a second a window. The problem is this turns impossible to use the computer, because that window gets the focus and I can't do anything on other windows.

Is there any workaround for this?

Edit: this happens using Ubuntu 16.04, with the Hugin from the official repo.

Thank you so much!

evertvorster commented 7 years ago

Hi there, Milton.

It is strange that the script opens any window, it does not do that on my computer. (Arch linux) Can you post a little of your console output?

The reason I ask is that hugin is not actually used by the script, only some of the panotools that Hugin also relies upon.

-Evert-

miltonlaufer commented 7 years ago

Hi, thank you for replying!

This is the output:

~/Downloads/360$ ../gear360/gear360pano.cmd -a 360_0024.JPG Processing file: 360_0024.JPG Processing input images (nona) nona: using graphics card: NVIDIA Corporation GeForce GTX 860M/PCIe/SSE2 Stitching input images enblend: info: loading next image: /tmp/tmp.othDiJx3Zb/out0000.tif 1/1 enblend: info: loading next image: /tmp/tmp.othDiJx3Zb/out0001.tif 1/1 enblend: info: writing final output Bogus input colorspace Setting EXIF data (exiftool) Processing took: 12 s Processed files are in ../gear360/html/data Here a (unlisted) video of what I see when I run the script.

https://youtu.be/ts0lzVrZRhY

I'm using the Ubuntu's repository version of Hugin (Xenial). Could that be the problem?

All best, Milton

evertvorster commented 7 years ago

I'm stumped. Thanks for the thorough reply, and the small video.

One thing you could try is to run each of the commands in the script one by one on the terminal to see which one it is that is creating that popup.

I am having a guess that .pto is defined as a Hugin file somewhere in your system setup, and it tries to open Hugin every time the system reads a .pto file. However, this should not happen from the command line.

miltonlaufer commented 7 years ago

I think that you're right.The PTO file type is associated with Hugin. What I don't understand is why, after editing every place where that association appears, is still opening the window! Anyway, it seems more a problem of my computer than of your script. Thank you again!