Export Depthmap and create Side-by-Side Images #71
Replies: 1 comment 4 replies
-
I've noticed firefox is inconsistent on being able to download the depth map or not when right clicking, I find it weird because
That's a common requested feature I can easily hook up! Tracking on #73 so I remember it I'll add a command to export the depth maps to uint16 pngs as they are saved in each of the depth estimator classes of mine! They all should be located in Also, as you're on linux it should be able to identify all the files ending in
With side by side do you mean rendering like this? video.mp4You can press "p" in the realtime window to cycle camera projection modes or programmatically change it in a custom script file like this (copied from import sys
from DepthFlow.Scene import DepthScene
from ShaderFlow.Modules.Camera import CameraProjection
class CustomScene(DepthScene):
def setup(self):
DepthScene.setup(self)
self.camera.projection = CameraProjection.VirtualReality
def manual():
scene = CustomScene()
scene.cli(sys.argv[1:])
def managed():
scene = CustomScene(backend="headless")
scene.input(image="image.png")
scene.main(output="./video.mp4", fps=30, time=5)
scene.main()
if __name__ == "__main__":
# managed()
manual() Hope that helps! Let me know if this is what you're looking for 🙂 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Somehow I can't download the Depthmap. I can press CTRL+I on Firefox and then go to Media and find it there. I also didn't find a comand line switch to save the Depthmap.
The reason is that I want to watch the result on a 3d capable display (a projector, google cardboard etc). It is even not easy to find a program that can create Side-by-Side Images from the Depthmap and the original image. The search results are cluttered with ai stuff how create the depthmap. But how to get it to view it on the hardware is complete gone. I have some old windows program from 2006 (3d combine) that could do that, but crashes under wine (I'm on linux only).
Would be happy if somebody has better options.
Beta Was this translation helpful? Give feedback.
All reactions