Skip to content

antmicro/pyvidctrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyvidctrl

Copyright (c) 2018-2021 Antmicro

A small python utility for controlling video4linux cameras. It queries user-controls from the v4l2 devices and creates a TUI to display and adjust their values.

Features vi-like keybindings.

Keybindings

Key Function
q quit app
? toggle help
s toggle statusline
⇧ ⇆ select previous tab
select next tab
d reset to default
D reset all to default
k / ↑ select previous control
j / ↓ select next control
u / , decrease value by step
p / . increase value by step
U / < decrease value by 10 steps
P / > increase value by 10 steps
h / ← decrease value by 1% / set value false / previous choice
l / → increase value by 1% / set value true / next choice
H / ⇧ ← decrease value by 10%
L / ⇧ → increase value by 10%
^ / ⇤ set value to minimum
$ / ⇥ set value to maximum
negate value / click button

Command Line Options

Option Description
-r Restore current parameter values. Optionally takes a filename as an argument and restores from that file. If no filename is specified, it restores from a file named '.pyvidctrl-' followed by the driver name.
-s Store current parameter values. Optionally takes a filename as an argument and saves to that file. If no filename is specified, it saves to a file named '.pyvidctrl-' followed by the driver name.
-d Specifies the path to the camera device node or its ID. Default is "/dev/video0".

Installation

pip install git+https://github.com/antmicro/pyvidctrl

About

A simple TUI util to control V4L2 camera parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages