DepthMap_dataset

by LouisFoucard

LouisFoucard / DepthMap_dataset

Python Blender script to generate random scene, depth map and corresponding Stereo images for machin...

135 Stars 39 Forks Last release: Not found 65 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

DepthMap_dataset

pby_script is a Python Blender script for creating large numbers of randomized 3d scenes and corresponding sets of stereoscopic images and depth maps, for machine learning and computer vision. Everything is configurable, from the camera convergence plane or interocular distance and focus length to the color and shapes of the randomized object.

Blender is a open source 3D graphics and animation software, downloadable at "https://www.blender.org/".

Example scene:

alt tag

and corresponding Depth map:

alt tag

Intallation:

-Download the latest blender build (script was tested on v2.72), install and open blender.

Either open with blender the .blend file in the "blender file" folder, or ,alternatively, do the following:

-Change the display button on the bottom left (represented by a cube symbol, left of the view menu) to text editor.

-Click new, then simply paste the contents of pby_script.

Usage:

-Change the saving path name "YourPath" at the end of the script to whatever directory you wish to save the output images and depth maps.

-Click run script to generate a few random 3d scenes with corresponding depth map.

This is just a simple stater example, you can then play with the script to randomize the shapes, colors, locations, surface properties etc..

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.