Skip to content

Noizrom/Simple-cv2-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Cv2 Wrapper

a simple wrapper for cv2 common stuff

Installation

pip install simple-cv2-wrapper

Usage

the most basic usage

with CV2Capture(0) as video:
    for frame in video:
        video.show(frame) # video.show() also works if there is no modification on the frame

Features

  • access cv2.VideoCapture within context manager. which handles exits when invoking ctrl + c or pressing the exit button on the window or just pressing the letter q alone.
  • frames can be accessed by iterating over the context manager

Version

  • 0.1.0
    • initial release and uploaded to pypi

About

a very simple wrapper for cv2 to handle exits and some other common stuff

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages