Git Product home page Git Product logo

asi_camera2's Introduction

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

Preparation

  1. Download the ASI Camera SDK from ZWO's downloads page.
  2. Unzip the download and make note of where the "lib" directory lands.
  3. Edit build.rs to update the "cargo:rustc-link-search" setting.

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::'.

asi_camera2's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.