Components

CameraFrame

const CameraFrame: FC<CameraFrameProps>;

A live camera frame, scaled to cover the canvas, with the scene drawn over it.

Its children are laid out in frame pixel coordinates and share the one matrix that places the frame, so an overlay derived from the frame - a detector's box, a face contour - cannot drift from the image whatever the canvas size is. Pass detector output through unchanged; do not scale it.

The frame arrives as a hardware-buffer handle (imageFromNativeBuffer + image.setNativeBuffer), which is imported straight to a GPU texture: the pixels are never copied, never encoded and never touched by the CPU.

On this page

No Headings