Update minor version. Removed unnecessary prints.
This commit is contained in:
@@ -4,7 +4,7 @@ Display any array, webcam, or video file.
|
||||
display is a function that displays these in their own windows.
|
||||
"""
|
||||
|
||||
__version__ = "1.1.1"
|
||||
__version__ = "1.3.1"
|
||||
|
||||
from .window.subscriber_windows import display, breakpoint_display, read_updates, publish_updates
|
||||
from . import effects
|
||||
|
||||
@@ -157,7 +157,6 @@ def pub_cam_loop_opencv(
|
||||
cam.set(cv2.CAP_PROP_FRAME_HEIGHT, request_size[1])
|
||||
|
||||
if not cam.isOpened():
|
||||
print("camera failed to open")
|
||||
subscriber_dictionary.CV_CAMS_DICT[name].status_pub.publish("failed")
|
||||
return False
|
||||
now = time.time()
|
||||
@@ -168,7 +167,6 @@ def pub_cam_loop_opencv(
|
||||
if ret is False or not isinstance(frame, (np.ndarray, list)):
|
||||
cam.release()
|
||||
subscriber_dictionary.CV_CAMS_DICT[name].status_pub.publish("failed")
|
||||
print("cam returned false")
|
||||
return False
|
||||
if cam.get(cv2.CAP_PROP_FRAME_COUNT) > 0:
|
||||
frame_counter += 1
|
||||
|
||||
@@ -23,7 +23,7 @@ if os.path.exists(readme_path):
|
||||
setup(
|
||||
long_description=readme,
|
||||
name="displayarray",
|
||||
version="1.3.0",
|
||||
version="1.3.1",
|
||||
description="Tool for displaying numpy arrays.",
|
||||
python_requires="==3.*,>=3.6.0",
|
||||
project_urls={"repository": "https://github.com/simleek/displayarray"},
|
||||
|
||||
Reference in New Issue
Block a user