Wiki
Clone wikiML-ImageSynthesis / Installation
How to add to existing project
- Copy contents of the repository into your Unity project
- Add
ImageSynthesis
component to your camera(s) - 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. CallGetComponent<ImageSynthesis>().Save(framename)
from your script code - 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