A simple test for detecting video latency
Project description
video-latency-test
This project provides software for a simple video latency test, utilizing the Linux framebuffer for video output and OpenCV for camera capture.
Usage
Run video-latency-test
from the commandline.
root@raspberrypi4-64:~# video-latency-test -h
usage: video-latency-test [-h] [--frames FRAMES] [--hue HUE] [--csv CSV]
output_fb cv2_cap
Run a video latency test
positional arguments:
output_fb The name of the framebuffer to use, e.g. fb0
cv2_cap Index of the cv2 capture device, e.g. 0
optional arguments:
-h, --help show this help message and exit
--frames FRAMES Number of frames to capture for the test
--hue HUE Hue threshold (uses hue values of 0-180)
--csv CSV Location to save a CSV log of captured data
Implementation
The video-latency-test
executable accepts a VideoOutputInterface object, and a VideoCapture object,
then measures the latency between setting a color on the VideoOutputInterface and detecting
that color on the VideoCaptureInterface. The base implementation, using a Linux Framebuffer
for the output and a USB camera for the input, is shown in the diagram below.
Video Output
Interface
Framebuffer Implementation
Video Capture
Interface
Framebuffer Implementation
Frame Types
Frame types provide a method of generating frames written to the Video Output device, along with a method of validating those frames from the Video Capture device.
Interface
Solid Colors
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file video-latency-test-0.0.7.tar.gz
.
File metadata
- Download URL: video-latency-test-0.0.7.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e21617327d85b4ff21c186dc6a8003435d3e6642d8ca81e87aa4e74fbb88c111 |
|
MD5 | 618a6d70538cefbd39dd9c4455ee6fc4 |
|
BLAKE2b-256 | e1f07cf40a1c2e8730cbc9786d2495d8556abe5f4b930ae354f35185ebd1ad2c |
File details
Details for the file video_latency_test-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: video_latency_test-0.0.7-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a1f138a1618f32396ea301ff90838091285c90abde69652a7992b8ccd7287c |
|
MD5 | 0f801feeb83905af58f88e2685911086 |
|
BLAKE2b-256 | 18ce48353a00c11346ab3b79f128108d5577fa9a729d93ac8918f3e37989b57d |