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.
- Camera
Config - Configuration used to open a camera.
- Camera
Info - Information about a Camera e.g. its name.
descriptionamdmiscmay contain information that may differ from backend to backend. Refer to each backend for details.indexis a camera’s index given to it by (usually) the OS usually in the order it is known to the system. - Camera
Viewer - Renders the latest frame produced by a
Camera. - Stream
Info - Negotiated information about a running camera.
Enums§
- Camera
Error - All errors in
nokhwa. - Camera
Format - Requested capture format. The negotiated values are reported via
StreamInfo. - Camera
Index - Describes the index of the camera.
Functions§
- init
- Request access to the system cameras. Always
trueon Linux/Windows. On macOS, blocks on the authorization prompt and returns whether access was granted; call once frommainbefore launching the app. - query
- Enumerate the cameras available on the system.
- use_
camera - Open a camera and return a
Camerahandle.initruns once on mount.