Updated requirements and version
This commit is contained in:
@ -1 +1 @@
|
|||||||
__version__ = '0.2.0'
|
__version__ = '0.2.1'
|
||||||
|
@ -5,7 +5,7 @@ description = 'Simple tool for working with multiple streams from OpenCV.'
|
|||||||
author = 'SimLeek'
|
author = 'SimLeek'
|
||||||
author_email = 'josh.miklos@gmail.com'
|
author_email = 'josh.miklos@gmail.com'
|
||||||
license = 'MIT/Apache-2.0'
|
license = 'MIT/Apache-2.0'
|
||||||
url = 'https://github.com/_/CVPubSubs'
|
url = 'https://github.com/simleek/CVPubSubs'
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = ['2.7', '3.5', '3.6', 'pypy', 'pypy3']
|
python_version = ['2.7', '3.5', '3.6', 'pypy', 'pypy3']
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
pubsub
|
pubsub
|
||||||
opencv-python
|
numpy
|
||||||
|
opencv_python
|
2
setup.py
2
setup.py
@ -13,7 +13,7 @@ with open('cvpubsubs/__init__.py', 'r') as f:
|
|||||||
with open('README.md', 'r', encoding='utf-8') as f:
|
with open('README.md', 'r', encoding='utf-8') as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
REQUIRES = []
|
REQUIRES = ['pubsub', 'numpy', 'opencv_python']
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='CVPubSubs',
|
name='CVPubSubs',
|
||||||
|
@ -47,8 +47,7 @@ class TestSubWin(ut.TestCase):
|
|||||||
def test_sub_with_callback(self):
|
def test_sub_with_callback(self):
|
||||||
def redden_frame_print_spam(frame, cam_id):
|
def redden_frame_print_spam(frame, cam_id):
|
||||||
frame[:, :, 0] = 0
|
frame[:, :, 0] = 0
|
||||||
frame[:, :, 1] = 0
|
frame[:, :, 2] = 0
|
||||||
print("Spam!")
|
|
||||||
|
|
||||||
w.VideoHandlerThread(callbacks=[redden_frame_print_spam] + w.display_callbacks).display()
|
w.VideoHandlerThread(callbacks=[redden_frame_print_spam] + w.display_callbacks).display()
|
||||||
|
|
||||||
@ -71,8 +70,8 @@ class TestSubWin(ut.TestCase):
|
|||||||
t.join()
|
t.join()
|
||||||
|
|
||||||
def test_multi_cams_multi_source(self):
|
def test_multi_cams_multi_source(self):
|
||||||
t1 = w.VideoHandlerThread(0)
|
t1 = w.VideoHandlerThread(0, request_size=(1920,1080))
|
||||||
t2 = w.VideoHandlerThread(1)
|
t2 = w.VideoHandlerThread(1, request_size=(1920,1080))
|
||||||
|
|
||||||
t1.start()
|
t1.start()
|
||||||
t2.start()
|
t2.start()
|
||||||
|
Reference in New Issue
Block a user