Class: WorldOptions
Defined in: src/world/WorldOptions.ts:7
Constructors
Constructor
new WorldOptions(
options?
):WorldOptions
Defined in: src/world/WorldOptions.ts:13
Parameters
options?
debugging?
boolean
= false
enabled?
boolean
= false
enableObjectDetection?
() => WorldOptions
enablePlaneDetection?
() => WorldOptions
objects?
{ backendConfig?
: { activeBackend?
: "gemini"
| "mediapipe"
; gemini?
: { responseSchema?
: { items?
: ... | ...; type?
: ... | ...; }; systemInstruction?
: string
; }; mediapipe?
: { }; }; debugging?
: boolean
; enable?
: () => ObjectsOptions
; enabled?
: boolean
; objectImageMargin?
: number
; showDebugVisualizations?
: boolean
; } = ...
objects.backendConfig?
{ activeBackend?
: "gemini"
| "mediapipe"
; gemini?
: { responseSchema?
: { items?
: ... | ...; type?
: ... | ...; }; systemInstruction?
: string
; }; mediapipe?
: { }; } = ...
Configuration for the detection backends.
objects.backendConfig.activeBackend?
"gemini"
| "mediapipe"
= ...
The active backend to use for detection.
objects.backendConfig.gemini?
{ responseSchema?
: { items?
: ... | ...; type?
: ... | ...; }; systemInstruction?
: string
; } = ...
objects.backendConfig.gemini.responseSchema?
{ items?
: ... | ...; type?
: ... | ...; } = ...
objects.backendConfig.gemini.responseSchema.items?
... | ... = ...
objects.backendConfig.gemini.responseSchema.type?
... | ... = 'ARRAY'
objects.backendConfig.gemini.systemInstruction?
string
= ...
objects.backendConfig.mediapipe?
{ } = {}
Placeholder for a future MediaPipe backend configuration.
objects.debugging?
boolean
= false
objects.enable?
() => ObjectsOptions
objects.enabled?
boolean
= false
objects.objectImageMargin?
number
= 0.05
Margin to add when cropping the object image, as a percentage of image size.
objects.showDebugVisualizations?
boolean
= false
planes?
{ debugging?
: boolean
; enable?
: () => PlanesOptions
; enabled?
: boolean
; showDebugVisualizations?
: boolean
; } = ...
planes.debugging?
boolean
= false
planes.enable?
() => PlanesOptions
planes.enabled?
boolean
= false
planes.showDebugVisualizations?
boolean
= false
Returns
WorldOptions
Properties
debugging
debugging:
boolean
=false
Defined in: src/world/WorldOptions.ts:8
enabled
enabled:
boolean
=false
Defined in: src/world/WorldOptions.ts:9
objects
objects:
ObjectsOptions
Defined in: src/world/WorldOptions.ts:11
planes
planes:
PlanesOptions
Defined in: src/world/WorldOptions.ts:10
Methods
enableObjectDetection()
enableObjectDetection():
WorldOptions
Defined in: src/world/WorldOptions.ts:31
Enables object detection.
Returns
WorldOptions
enablePlaneDetection()
enablePlaneDetection():
WorldOptions
Defined in: src/world/WorldOptions.ts:22
Enables plane detection.
Returns
WorldOptions