Wiki

Clone wiki

ML-ImageSynthesis / Installation

How to add to existing project

  1. Copy contents of the repository into your Unity project
  2. Add ImageSynthesis component to your camera(s)
  3. Either: a. Add ExampleUI component to your camera, it will show simple GUI button and save data every single frame when button was pressed OR b. Call GetComponent<ImageSynthesis>().Save(framename) from your script code
  4. No further changes to content should be necessary

OnSceneChange callback

If you have new objects being created at runtime, then you will have to call GetComponent<ImageSynthesis>().OnSceneChange on order to notify ImageSynthesis component.

Preview inside the Editor

You can preview data right inside the Editor. Enter play mode (press 'Play' button) and use 'Display' drop down in the Game View. 'Display 1' provides usual image, while 'Display 2' to 'Display 6' - displays the additional data like image segmentation, optical flow, etc.

Updated