pub struct InfraredFrameCapture { /* private fields */ }Expand description
Manages the Kinect sensor and provides access to infrared frame data.
This struct is responsible for initializing and holding the necessary Kinect resources to capture infrared frames.
Implementations§
Source§impl InfraredFrameCapture
impl InfraredFrameCapture
Sourcepub fn new() -> Result<Self, Error>
pub fn new() -> Result<Self, Error>
Creates a new InfraredFrameCapture instance.
This function initializes the default Kinect sensor, opens it, and sets up the infrared frame source and reader.
§Errors
Returns an error if the Kinect sensor cannot be initialized, opened, or if the infrared frame source is not active.
Sourcepub fn iter(&self) -> Result<InfraredFrameCaptureIter, Error>
pub fn iter(&self) -> Result<InfraredFrameCaptureIter, Error>
Returns an iterator over infrared frames.
The iterator will block waiting for new frames. Each item yielded by
the iterator is a Result<InfraredFrameData, Error>, allowing for error
handling during frame acquisition.
§Errors
Returns an error if it fails to subscribe to the frame arrived event, which is necessary for the iterator to function.