2sh / stereoscopy Goto Github PK
View Code? Open in Web Editor NEWStereoscopic 3D image creator: anaglyph, side-by-side (cross-eye and parallel), over/under, wiggle GIF, interlaced, checkerboard
License: GNU General Public License v3.0
Stereoscopic 3D image creator: anaglyph, side-by-side (cross-eye and parallel), over/under, wiggle GIF, interlaced, checkerboard
License: GNU General Public License v3.0
Please add left.jpg
and right.jpg
to the example_images
directory to be able to try out the provided examples from README.md
directly.
This isn't a real feature request, just an idea (since the discussion tab isn't enabled):
Consider adding MPO support, since some digital 3D cameras produce this format natively.
File "/Users/cmahnke/projects/StereoscoPy/stereoscopy/__init__.py", line 370, in resize
image = image.resize(re_size, Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
This has changed with Pillow 10, see https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants
Got in working on Linux Mint 19.2, by changing in .local/lib/python2.7/site-packages/PIL/Image.py:
Line 1968: rotn_center = (int(w / 2.0), int(h / 2.0))
Line 2387: self.im.transform2(( int(box[0]),int(box[1]),int(box[2]),int(box[3]) ), image.im, method, data, resample, fill)
Line 2495: return Image()._new(core.new(mode, (int(size[0]),int(size[1])) ))
how to do right pair prediction in python from left image and depthmap ,it will be very helpful , if you find in solution python ,gpu.
Thanks..
I like this project. I used it to make a puzzle for a treasure hunt for my wife. I see that there has not been any activity for a while, so this may fall on deaf ears. However, I was working in an environment where OpenCV (4.2.0 I believe) was already installed. I pip installed StereoscoPy on a Windows machine. When I first tried to run the script, there was an error in the call to findTransformECC. It wanted an inputMask and a gaussian blur radius. I modified the code to pass None and 1 respectively, and it worked.
Calling this:
stereoscopy.create_anaglyph((left, right), color_scheme="red-green", method="gray").save(rgAnagFileName)
Shouldn't the background be white / gray, like calling without the color_scheme
param? That is just green where the are cyan parts without the color_scheme
param.
After searching for example it seems that the orange tint is actually to be expected...
Can anyone confirm?
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.