Not sure if I am doing this correctly. I am trying to use generate.py and get started using the examples. I have done a pip install Pillow, however, I do not know if nona has been installed.
Running generate.py alma.jpg does not work because it says I do not have nona installed.
Hugin seemed like a longer installation process. Is there any additional steps I have to do to use pillow and generate.py?
Since you don't get an import error, you have Pillow working correctly. As for nona, it needs to either be on your path (in which case you can call nona from a terminal window), or you need to specify the path to the nona executable with the -n flag.
yup, tried looking for that, but I don't think I see it. I assume it's not available globally? which nona does not work either. I do have Pillow in my python modules however.
I went to the module folder for Pillow, but I didn't see it in there either. Is there an intermediate step I'm missing.
nona is part of Hugin, not Pillow. You need to look where you installed Hugin.
Ah ok. I didn't get Hugin. Was a little confused with the docs:
which is available as part of Hugin, as well as Python with the Pillow package.
So I thought it was either/or. I'll try getting up and running with Hugin. Thank You
Perfect it worked! Thank You. I'm running on MacOS For the next user who might need help with this:
1.) Get Hugin
2.) Get the DMG and Move it to Applications
3.) You can find the nona package as part of the HuginStitchProject, right click and open package contents: the path is smth like this: /Applications/Hugin/HuginStitchProject.app/Contents/MacOS/nona
4.) run with
python generate.py -n /Applications/Hugin/HuginStitchProject.app/Contents/MacOS/nona <img_name>
@rlingineni Thanks for posting the steps, it is extremely helpful!
The Hugin program for Windows uses nona as and an .exe extension when I try to run:
python generate.py C: \Program Files\Hugin\bin\nona.exe 01.jpg
erro
generate.py: error: argument -n/--nona is required
Or do you have multires panoramas on Windows?
The error is self-explanatory; you need to specify the path to nona.exe using the -n flag, which you aren't providing, e.g. python generate.py -n C:\Program Files\Hugin\bin\nona.exe 01.jpg.
Get more, which is a copy of a bin folder from the Hugin program into the folder where the file is the image and generate.py getting like this
python generate.py -n bin/nona.exe 01.jpg
Everything went well, take the space here to thank for the excellent work @mpetroff
This should be added to the documentation.
Most helpful comment
Perfect it worked! Thank You. I'm running on MacOS For the next user who might need help with this:
1.) Get Hugin
2.) Get the DMG and Move it to Applications
3.) You can find the
nonapackage as part of theHuginStitchProject, right click and open package contents: the path is smth like this:/Applications/Hugin/HuginStitchProject.app/Contents/MacOS/nona4.) run with
python generate.py -n /Applications/Hugin/HuginStitchProject.app/Contents/MacOS/nona <img_name>