-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command line parameter --output filename or similar syntax in order to control output path, filename on command line #106
Comments
I took a look at main.cc and added logic to read argv[1] as the output file name to pass an variable output file name. This works and input image file paths are read from argv[2] to argc. I am having a problem getting the void work() function Tried replacing filename with a string variable, pointer etc but no luck. It just creates a file with whatever text is between the IMGFILE( ) braces to read a variable in place of the out name.. |
Code below works fine since I pass a full output file path name including .jpg extension. I removed the IMGFILE function and replaced with the pano_out variable derived from argv[1]. I have added help in the main.cc main() function. Will add --h, --help, --v --version, command syntax, etc checking for argc < 3 to display command syntax. This will make life easier when spawning parallel processes so the output files do not clash since the output file paths can be unique since I include a unique sequence number for each group of image stitch job input files eg argv[2] ....... with the same seq number for the output stitch filepath image file per argv[1].
Regards |
Just for your information I have modified the project to make the first parameter the output file path. Also updated the command help to be more helpful. Was a good learning experience for me and updated some of my c++ skills. For code changes to main.cc see my github repo at https://github.com/pageauc/OpenPano Let me know if you would like a push as I have found this change is more useful for my needs. |
I compiled source on Raspberry Pi 3B and runs OK. Wrote a python program to take timelapse images simultaneously on multiple RPI's and transmit data back to a hub using ZMQ to stitch images. The problem I am having is I would like to control the path and name of the output file from the command line. Currently I copy out.jpg to a destination folder but this has issues. Can you add this feature or point me to code location where I can add this feature and recompile my own version and/or post pull request. Looked at source but not sure where or how to add new feature
I want to generate a panoramic timelapse video. Had to build adjustable RPI supports to fine tune pointing and alignment.
Little tricky to get camera aligned correctly but stitching works once positioned correctly Pano Quality could be better and some inconsistencies with cropping so I may have to use video motion stabilization. Otherwise basic prototype code is working.
Let me know.
Thanks Claude ....
The text was updated successfully, but these errors were encountered: