GithubHelp home page GithubHelp logo

thinkski / coralvid Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 19 KB

Command line tool for capturing video with the Google Coral EdgeTPU camera module. Akin to raspivid for the Raspberry Pi.

License: GNU General Public License v2.0

CMake 6.18% C++ 90.60% Python 3.22%
edgetpu h264 google-coral coral-dev-board coral-tpu coral video

coralvid's Introduction

coralvid

Command line tool for capturing video with the Google Coral EdgeTPU camera module.

Quickstart

Build:

mendel@edgetpu:~/coralvid$ mkdir build
mendel@edgetpu:~/coralvid$ cd build
mendel@edgetpu:~/coralvid/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
mendel@edgetpu:~/coralvid/build$ make
mendel@edgetpu:~/coralvid/build$ sudo make install

The above is for on-target builds. Cross-compilation is left as an exercise to the reader.

Print usage:

mendel@edgetpu:~$ coralvid --help
Capture H264 from CSI/MIPI camera at the requested bitrate

usage: coralvid [options]

Options:
  -b, --bitrate=<int>   Bitrate in Kbps (default: 1000)
  -f, --fps=<int>       Frame rate (default: 30)
  -h, --height=<int>    Frame height (default: 720)
  -w, --width=<int>     Frame width (default: 1280)
  -i, --input=<device>  Input device (default: /dev/video0)
  -n, --num-buffers=<n> Number of video buffers (default: 4)
  -o, --output=<file>   Output file (default: stdout)
  -p, --profile=<str>   H.264 profile (default: baseline)
  -t, --timeout=<int>   Seconds to capture (default: 10)
      --autofocus       Enable autofocus
      --help            Print this message
  -v, --version         Print version
      --verbose         Print frames/sec information

Capture sample:

mendel@edgetpu:~$ coralvid -o sample.264

coralvid's People

Contributors

thinkski avatar

Stargazers

 avatar

Watchers

 avatar  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.