Updated requirements and version

This commit is contained in:
SimLeek
2018-11-15 16:25:20 -07:00
parent e3b60a441f
commit fef4a335f0
5 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
__version__ = '0.2.0'
__version__ = '0.2.1'

View File

@ -5,7 +5,7 @@ description = 'Simple tool for working with multiple streams from OpenCV.'
author = 'SimLeek'
author_email = 'josh.miklos@gmail.com'
license = 'MIT/Apache-2.0'
url = 'https://github.com/_/CVPubSubs'
url = 'https://github.com/simleek/CVPubSubs'
[requires]
python_version = ['2.7', '3.5', '3.6', 'pypy', 'pypy3']

View File

@ -1,2 +1,3 @@
pubsub
opencv-python
numpy
opencv_python

View File

@ -13,7 +13,7 @@ with open('cvpubsubs/__init__.py', 'r') as f:
with open('README.md', 'r', encoding='utf-8') as f:
readme = f.read()
REQUIRES = []
REQUIRES = ['pubsub', 'numpy', 'opencv_python']
setup(
name='CVPubSubs',

View File

@ -47,8 +47,7 @@ class TestSubWin(ut.TestCase):
def test_sub_with_callback(self):
def redden_frame_print_spam(frame, cam_id):
frame[:, :, 0] = 0
frame[:, :, 1] = 0
print("Spam!")
frame[:, :, 2] = 0
w.VideoHandlerThread(callbacks=[redden_frame_print_spam] + w.display_callbacks).display()
@ -71,8 +70,8 @@ class TestSubWin(ut.TestCase):
t.join()
def test_multi_cams_multi_source(self):
t1 = w.VideoHandlerThread(0)
t2 = w.VideoHandlerThread(1)
t1 = w.VideoHandlerThread(0, request_size=(1920,1080))
t2 = w.VideoHandlerThread(1, request_size=(1920,1080))
t1.start()
t2.start()