Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Version 0.2.0 (#6)
Browse files Browse the repository at this point in the history
* Animation with blits instead of draws.
* Matplotlib selects nbAgg if the backend is inline automatically
* Removing %matplotlib notebook from examples
* Updated documentation notebooks: removing print_info, as it is no longer supported.
* Added note about keeping a reference to the loops return value
  • Loading branch information
shoeffner committed Dec 20, 2016
1 parent 1e9ff15 commit dc7d4cc
Show file tree
Hide file tree
Showing 8 changed files with 282 additions and 172 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ ENV/

# temp files
*.swp

# Mac Files
.DS_Store
8 changes: 3 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,28 @@ Provides cvloop, a way to show opencv video loops. Designed for jupyter notebook

.. code-block:: python
%matplotlib notebook
from cvloop import cvloop
cvloop()
**More complex example**: Show webcam feed side by side with inverted image.

.. code-block:: python
%matplotlib notebook
from cvloop import cvloop
cvloop(function=lambda frame: 255 - frame, side_by_side=True)
**Complex example**: Show video file with background extraction (See `OpenCV Documentation`_).
**Complex example**: Show video file with background extraction (See `OpenCV Documentation`_; `Video`_).

.. code-block:: python
%matplotlib notebook
from cvloop import cvloop
import cv2
def mog2(frame):
return mog2.fgbg.apply(frame)
mog2.fgbg = cv2.createBackgroundSubtractorMOG2()
cvloop('test.avi', function=mog2, side_by_side=True)
cvloop('768x576.avi', function=mog2, side_by_side=True)
**More examples**: For more examples check out the `examples notebook`_.

Expand All @@ -49,5 +46,6 @@ Dependencies
- numpy

.. _`OpenCV Documentation`: http://docs.opencv.org/3.1.0/db/d5c/tutorial_py_bg_subtraction.html
.. _`Video`: https://github.com/opencv/opencv_extra/tree/master/testdata/cv/video
.. _`examples notebook`: examples/cvloop_examples.ipynb

Loading

0 comments on commit dc7d4cc

Please sign in to comment.