Skip to main content

Module camera

Module camera 

Source
Available on crate feature camera only.
Expand description

Reexport freya-camera when the camera feature is enabled.

Re-exports§

pub use freya_camera::nokhwa;

Structs§

Camera
Handle to a running camera. Closed when its owning scope is dropped.
CameraConfig
Configuration used to open a camera.
CameraInfo
Information about a Camera e.g. its name. description amd misc may contain information that may differ from backend to backend. Refer to each backend for details. index is a camera’s index given to it by (usually) the OS usually in the order it is known to the system.
CameraViewer
Renders the latest frame produced by a Camera.
StreamInfo
Negotiated information about a running camera.

Enums§

CameraError
All errors in nokhwa.
CameraFormat
Requested capture format. The negotiated values are reported via StreamInfo.
CameraIndex
Describes the index of the camera.

Functions§

init
Request access to the system cameras. Always true on Linux/Windows. On macOS, blocks on the authorization prompt and returns whether access was granted; call once from main before launching the app.
query
Enumerate the cameras available on the system.
use_camera
Open a camera and return a Camera handle. init runs once on mount.