Playing photo/video data
Project description
Playing photo/video data
Release history | Documentation in Russian |
---|
Installation
pip install pvv
Note for Windows!
-
Delete
PyOpenGL
pip uninstall PyOpenGL
-
Download and installing PyOpenGL
Update
pip install --upgrade pvv
Required packages
Packages | Min version | Current version |
---|---|---|
numpy |
1.18.4 |
|
opencv-contrib-python |
4.2.0.34 |
|
PyOpenGL |
3.1.5 |
|
Pillow |
7.1.2 |
Class for playing photo/video data
Command line arguments
Argument | Type | Description | Valid Values |
---|---|---|---|
command | str | LanguageDefault value: en |
en ru |
--file | str | Path to photo/video fileDefault value: 0 |
- |
--config | str | Path to configuration file | - |
--frames_to_update | int | How many steps to check the configuration file (works with --automatic_update )Default value: 25 |
From 0 to ∞ |
--automatic_update | bool | Automatic verification of the configuration file at the time the program is running (it works with --config ) |
No value |
--no_clear_shell | bool | Do not clean the console before running | No value |
Configuration file
Параметры
Json parameter |
Type | Description | Valid Values |
---|---|---|---|
hide_metadata | bool | Hide metadata | - |
window_name | str | Window name | - |
resize | dict | Window size for resize | From 0 to ∞ |
info_text_color | dict | Text color of information notifications | From 0 to 255 |
info_background_color | dict | Background color of information notifications | From 0 to 255 |
info_size | int | Font size for information notification | From 0 to 60 |
info_stroke | int | Stroke width for information notifications | From 0 to 4 |
info_stroke_color | int | Stroke color for informational notifications text | From 0 to 255 |
error_text_color | dict | Text color of error notifications | From 0 to 255 |
error_background_color | dict | Background color of error notifications | From 0 to 255 |
error_size | int | Font size for error notification | From 0 to 60 |
error_stroke | int | Stroke Width for error notifications | From 0 to 4 |
error_stroke_color | int | Stroke color for error notifications text | From 0 to 255 |
repeat_text_color | dict | Text color of repeat playing | From 0 to 255 |
repeat_background_color | dict | Background color of repeat playing | From 0 to 255 |
repeat_size | int | Font size for repeat playing | From 0 to 120 |
repeat_stroke | int | Stroke width for repeat playing | From 0 to 4 |
repeat_stroke_color | int | Stroke color for repeat playing | From 0 to 255 |
labels_base_coords | int | The start coordinate for the upper left informational notifications | From 0 to 100 |
labels_padding | int | Padding size for all notification texts | From 0 to 30 |
labels_distance | int | Text spacing | From 0 to 15 |
clear_image_buffer | bool | Clear image buffer | - |
real_time | bool | Playing a photo/video data with a real time of FPS | - |
repeat | bool | Repeat video stream playback | - |
fps | int | Custom FPS"real_time" = true |
From 0 to 60 |
show_labels | bool | Display labels in the playback window | - |
Hotkeys
Keyboard key | Execution |
---|---|
esc |
Closing the app window |
r |
Repeat video stream playback |
Examples
Note! Supported Formats
Video | Photo |
---|---|
mp4 and avi |
png and jpg |
-
Playing video file with automatic update of the configuration file (Language:
Russian
)CMD
pvv_play ru --file path_to_video_file --config path_to_config_file --automatic_update
-
Streaming from a WEB-camera with automatic updating of the configuration file every 50 frames (Language:
English
)CMD
pvv_play en --file 0 --config path_to_config_file --automatic_update --frames_to_update 50
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pvv-1.0.0rc4-py3-none-any.whl (319.5 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pvv-1.0.0rc4.tar.gz (313.1 kB) | File type Source | Python version None | Upload date | Hashes View |