Skip to content

Commit 0af795e

Browse files
committed
v1.1.5
1 parent 26c2176 commit 0af795e

File tree

8 files changed

+33
-550
lines changed

8 files changed

+33
-550
lines changed

build/lib/pcv/something_fishy.py

Lines changed: 0 additions & 539 deletions
This file was deleted.

build/lib/pcv/vidIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def _initialise_delay(self, auto_delay):
718718
''' Determines the delay automatically, or leaves as None. '''
719719
if auto_delay:
720720
if self._fps == 0 or self._fps >= 1e3:
721-
self.verbos_print('failed to determine fps, setting to 25')
721+
self.verbose_print('failed to determine fps, setting to 25')
722722
self._period = 1e3 / 25
723723
# set a bit low to allow image read times
724724
self._delay = self._period - 5

dist/pythonic-cv-1.1.4.tar.gz

-25.8 KB
Binary file not shown.

dist/pythonic-cv-1.1.5.tar.gz

20.9 KB
Binary file not shown.
-24.5 KB
Binary file not shown.
18.6 KB
Binary file not shown.

pythonic_cv.egg-info/PKG-INFO

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Metadata-Version: 2.1
22
Name: pythonic-cv
3-
Version: 1.1.4
3+
Version: 1.1.5
44
Summary: Performant pythonic wrapper of unnecessarily painful opencv functionality
55
Home-page: https://github.com/ES-Alexander/pythonic-cv
66
Author: ES-Alexander
77
Author-email: sandman.esalexander@gmail.com
88
License: UNKNOWN
99
Description: _________________________________
10-
Version: 1.1.4
10+
Version: 1.1.5
1111
Author: ES Alexander
12-
Release Date: 11/Oct/2020
12+
Release Date: 17/Oct/2020
1313
_________________________________
1414

1515
# About
@@ -142,12 +142,35 @@ Description: _________________________________
142142
vid.headless_stream()
143143
```
144144

145-
### Advanced Example (something_fishy.py)
146-
Copy the `names.txt` file to where you want to create your gallery (or create your
147-
own `names.txt` with one name per line, of your friends and family for example),
148-
and run `python3 -m pcv.something_fishy` to run the example. There are several
149-
generally useful processing techniques included, so take a look through the code
150-
and find the functionality that's most interesting to you to explore and modify.
145+
### Advanced Examples
146+
Check the `pcv/examples` folder for some examples of full programs using this library.
147+
148+
#### Something Fishy
149+
This example is a relatively basic augmented reality example, which creates a tank of
150+
fish that swim around on top of a video/webbcam feed. You can catch the fish (click and
151+
drag a 'net' over them with your mouse), or tickle them (move around in your webcam feed).
152+
There are several generally useful processing techniques included, so take a look
153+
through the code and find the functionality that's most interesting to you to explore
154+
and modify.
155+
156+
To run the example use `python3 -m pcv.examples.something_fishy`, or optionally specify
157+
the path to a newline separated text file of names (of your friends and family for
158+
example), and run with `python3 -m pcv.examples.something_fishy path/to/names.txt`.
159+
160+
#### Video Switcher
161+
This was made in response to a question from `u/guillerubio` on reddit, to show how to
162+
efficiently read multiple videos simultaneously while only displaying one, and switching
163+
between videos based on what's happening in a webcam feed.
164+
165+
The current video is switched out when the camera is covered/uncovered. Switching is
166+
performed intelligently by only actually reading frames from a single 'active' video
167+
at a time. The `VideoSwitcher` class allows tracking along all the videos simultaneously
168+
based on how many frames have occurred since they were last active, as well as just
169+
resuming from where each one left off when it was last active. When a video ends it gets
170+
started again (in an infinite loop).
171+
172+
To run the example use `python3 -m pcv.examples.cam_video_switch` while in a directory
173+
with the `.mp4` files you want to switch between.
151174

152175
Platform: UNKNOWN
153176
Classifier: Programming Language :: Python :: 3

pythonic_cv.egg-info/SOURCES.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ setup.py
33
pcv/__init__.py
44
pcv/interact.py
55
pcv/process.py
6-
pcv/something_fishy.py
76
pcv/vidIO.py
87
pythonic_cv.egg-info/PKG-INFO
98
pythonic_cv.egg-info/SOURCES.txt

0 commit comments

Comments
 (0)