# VKFrame

Start from base library version 2.20.0. Please remaining backward compatible.

vision kit Session object.

# attribute

# number timestamp

Generation time

# VKCamera camera

Camera object

# method

# YUVTextureRes VKFrame.getCameraTexture(WebGLRenderingContext ctx)

Gets the current frame texture, currently only supports YUV Texture.

# Float32Array VKFrame.getDisplayTransform()

Gets the texture adjustment matrix. By default, the obtained texture is an untrimmed texture, which can be used in shaders to crop the texture according to the frame object size.