Skip to content

A lightweight OpenCV video player designed to facilitate frame analysis. It features real-time on-screen data including timestamp, frame index, and playback performance.

License

Notifications You must be signed in to change notification settings

rodrigomologni/CVVideoPlayerLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVVideoPlayerLite

A lightweight OpenCV video player designed to facilitate frame analysis. It features real-time on-screen data including timestamp, frame index, and playback performance.

import cv2 as cv

from video_player import VideoPlayer, LSize

player = VideoPlayer('../videos/5911716-hd_1920_1080_25fps.mp4')
player.resize(LSize.SD)
player.run()

Man in Denim Jacket Riding His Fixie Bicycle Passing By

Features

  1. Resize OpenCV windows to SD, HD, or FHD resolutions (landscape or portrait). Example: player.resize(LSize.SD).
  2. Callback support to handle external routines. Example: player.run(lambda image: cv.cvtColor(image, cv.COLOR_BGR2GRAY)).
  3. Start video playback from a specific timestamp. Example: player.run(start=1000).

Controls

  • SPACE: play or pause the video.
  • ⬅️/➡️: step one frame backward or forward.
  • ⬇️/⬆️: jump to first or last frame.

Credits

About

A lightweight OpenCV video player designed to facilitate frame analysis. It features real-time on-screen data including timestamp, frame index, and playback performance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages