Giter Club home page Giter Club logo

t5fastcam's Introduction

t5fastcam

Records frames through the Tilt Five glasses with a 120fps monochrome camera and filters the frames through a virtual color wheel to produce a color video stream without flicker or color banding.

Building

This is built with Rust and tested on Ubuntu 22.04.1 LTS but should work on other Linux distros which have Video For Linux v2 (v4l2).

Ensure dependencies are available with: sudo apt install cmake libclang-dev libfontconfig-dev

And then cargo build.

Running

The camera I'm using is: "Arducam 120fps Global Shutter USB Camera Board, 1MP 720P OV9281 UVC Webcam Module with Low Distortion M12 Lens". Other monochrome high-speed global shutter cameras should also work.

Create a loopback video device sudo modprobe v4l2loopback devices=1 video_nr=2 card_label="Fake" exclusive_caps=1

Extract luminance channel from 120fps mjpeg stream and provide raw stream on fake device ffmpeg -re -input_format mjpeg -framerate 120 -i /dev/video0 -vcodec rawvideo -pix_fmt gray -f v4l2 /dev/video2

Run against raw stream cargo run -- /dev/video2

If something goes wrong and ffmpeg gives the error "Could not write header for output file", then teardown the loopback with sudo rmmod v4l2loopback and recreate it.

License

Copyright 2022 The t5fastcam Authors.

This project is licensed under either of

Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.

"Tilt Five" and "T5" are trademarks owned by Tilt Five, Inc.

Contribution

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

t5fastcam's People

Contributors

davidkern avatar

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.