SkoltechRobotics / cam-vis

Simple camera visualization tool written using Rust and Vulkan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cam-vis

A simple camera visualization tool using v4l2 and Vulkan.

Usage

$ ./cam-vis --help
cam-vis 0.1.0
Artyom Pavlov<newpavlov@gmail.com>
Simple camera visualization tool

USAGE:
    cam-vis [OPTIONS] <camera>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -g, --grid-step <grid_step>    Grid step in pixels [default: 64]
    -m, --mode <mode>              Vulkan present mode: immediate, mailbox, fifo or relaxed [default: fifo]

ARGS:
    <camera>    Path to camera device

Controls

You can zoom and drag image using mouse. Additionally the following hotkeys are available:

  • s: save current frame as a PNG image.
  • g: turn grid on or off.
  • h: turn histogram on or off.
  • f: turn (console) FPS counter on or off.
  • r: fit image into the current window size (reset drag and zoom).
  • Space: pause on current frame.
  • Esc: exit the application.

Installation

  • Install Rust Programming Language.
  • Run cargo build --release.
  • Compiled binary will be saved to target/release/cam-vis.
  • You may need to install Vulkan related packages via your OS package manager.

License

The application is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Simple camera visualization tool written using Rust and Vulkan

License:Apache License 2.0


Languages

Language:Rust 96.9%Language:GLSL 3.1%