A method that returns an instantiated object that implements the ModelSpec interface with values set for the use of the selfie segmentation model.
an object that implements the ModelSpec interface.
Set up the builder to use the default model implementation.
Members of this interface can change without a major version bump to accommodate new browser bugs and capabilities. If you extend this type, you might need to rework your code for new minor versions of this library.
a reference to the current builder.
A method to override the input shape to the segmentation model.
An object that defines input shape of the segmentation model.
the builder to allow for fluent API (e.g., ModelSpecBuilder.builder().withInput({}).build()).
A method to override the output shape to the segmentation model.
the builder to allow for fluent API (e.g., ModelSpecBuilder.builder().withOutput({}).build()).
A method to override the path to the segmentation model.
A function that returns the path to the segmentation model.
the builder to allow for fluent API (e.g., ModelSpecBuilder.builder().withPath("some path").build()).
Set up the builder to use the defaults for selfie segmentation model.
the builder to allow for fluent API (e.g., ModelSpecBuilder.withSelfieSegmentationDefaults().build()).
Generated using TypeDoc
A builder class to instantiate a model spec.