Skip to content

smroid/asi_camera2

Repository files navigation

This is a thin Rust wrapper of the ASI Camera2 SDK.

Usage

Please consult the binaries in src/bin for examples of how to use the wrapped ASI Camera2 SDK. These programs are:

camera_info

This program uses the SDK to enumerate all attached ASI camera(s) and print out properties for each.

one_exposure

This program opens the first ASI camera, and:

  1. Configures the ROI for greyscale image, whole sensor, no binning.
  2. Sets an exposure time. You can adjust the exposure time by editing the example code.
  3. Starts an exposure and sleeps for the expected exposure duration.
  4. Waits for the exposure to finish, sleeping in additional increments if necessary.
  5. Reads out the image and saves it to a JPG file.

video_frame

This is similar to the "one_exposure" program except it operates the camera in video capture mode.

Dependencies

This crate depends on the 'image' library, but that's only needed for the example binary programs. The asi_camera_sdk module itself does not depend on anything beside 'std::'.

About

Thin Rust wrapper of the ASI Camera2 SDK.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published