Experimental
Exposes User Data
Wearable Only
Protected
constructorExperimental
Experimental
nameThe name of the Asset in Lens Studio.
Readonly
Experimental
uniqueStatic
createStatic
createExperimental
Exposes User Data
Wearable Only
Spectacles: create a CameraImage.ImageRequest. This object can be used to configure a request for a high resolution image of the user's camera stream. The resolution of this image will be fixed to 3200x2400.
Experimental
Returns the name of this object's type.
Experimental
Returns true if the object matches or derives from the passed in type.
Experimental
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Experimental
Returns a Texture whose provider is CameraTextureProvider which provides images from the requested camera ID.
Experimental
Spectacles: Request a still image of the user's camera stream. Unlike {@CameraModule.requestCamera}, this method takes more time but yields a higher resolution image (3200x2400) suitable for tasks like OCR. This method is asynchronous and when complete will return an ImageFrame that contains a {@Texture } that can be attached to a visual.
let cameraModule = require("LensStudio:CameraModule");
let imageRequest = CameraModule.createImageRequest();
try {
let imageFrame = await cameraModule.requestImage(imageRequest);
// Use the texture in some visual
script.image.mainPass.baseTex = imageFrame.texture;
let timestamp = imageFrame.timestampMillis; // scene-relative time
} catch (error) {
print(`Still image request failed: ${error}`);
}
Provides access to a specific camera on Spectacles device.
Remarks
Useful for requesting a specific camera on Spectacles or requesting images from both cameras simultaneously.
See
Camera Module guide.
Example