hn-88 / ocvwarp Goto Github PK
View Code? Open in Web Editor NEWWarping images and videos for planetarium fulldome display using OpenCV
License: MIT License
Warping images and videos for planetarium fulldome display using OpenCV
License: MIT License
With Google Cloud Shell, got an image upside down. Will check if the same parameters give the same output on Windows.
for transform type 4 & 5.
Seem to be discontinuous with the pixels above. Check map file.
The tool is amazing, and now works way much better still does not allow to be used as a commandline tool for images for two reasons:
We could possibly add some parameters to ini file like
fps
number of frames
which would decide how long the video needs to be, instead of outputting just a single frame.
Of course, this can be worked around using avisynth, so this is just an enhancement.
Currently anglex and angley - the viewing angles inside the 3d scene - can be varied on the fly using keyboard shortcuts. It would be easier to use if we can give initial anglex/y and final anglex/y, with a spline to ramp up rotation ... or at least constant velocity rotation.
Don't work properly for non-zero anglex angley
Submitter: HN2
More details
One pixel wide seam (for 1080x1080 output) is seen for transformtype 0, 1, 5 where the leftmost image pixels meet the right-most image pixels.
For example, along centre of image when Anglex = 90, Angley = -90
Hello,
Could a version for Windows be compiled that works as a command-line tool? So, instead of opening dialogs, it reads three paths as command-line parameters.
Thank You,
Maciej Mucha
Check out various ways of choosing your own codec. Adding a fourcc line to the ini file should be easy.
This is the body of the message
via Email
January 16, 2021 at 09:08PM
Submitter: HN
Testing gitreports.com
Try and create an appveyor build with mingw
Try an appveyor build. Check Windows build using a VM. If it doesn't work, try another build just removing the tinyfiledialogs. Because ViewportSaverc appveyor build works.
Currently, single frame input seems to work OK on Linux, to be tested on Windows. Output filename like output.mp4 works, from which the single frame can be extracted with avidemux.
Bottom ten pixels are black. This seems to be due to clipping in transformtype=1 When transformtype=1 mapping is changed to allow r<=1.01, the extra pixels are not continuous.
As seen with hn-88/OCVvid2fulldome#10 - OpenCV's undocumented support for image sequences has the quirk that it assumes the input fps (based on locale?) - to be 25 fps (could be different for people in different locales). So, if processing a 30 fps image sequence, I would initially get a 25 fps video which I would then need to convert to 30 fps, for example using the method at https://hnsws.blogspot.com/2024/02/60-fps-to-30-fps-with-ffmpeg-without.html
Maybe can fix using the technique at https://dev.to/katkelly/changing-your-repo-s-language-in-github-5gjo
For transformtype 4 and 5, multiple flips, remaps and resizes slow down processing. Explore the possibility of refactoring code to have a single remap, to speed up processing a little bit.
transformtype 1 goes at 10 fps while 5 goes at 3.8 fps. For the same input and output resolutions.
If we want support for multiple still image files + position each of them individually + animate each of them individually, it may be easier to enter all the details using a ui?
Appveyor build at
https://ci.appveyor.com/project/hn-88/ocvwarp/build/artifacts
does not run on windows. Probably linked to some other dlls.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.