Webcam show fix (#9847)
* Webcam show fix Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update common.py Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
c4710012d8
commit
6371de8879
2 files changed
+3
-6
No files matched your search
@@ -395,7 +395,6 @@ def check_imshow(warn=False):
|
||||
try:
|
||||
assert not is_notebook()
|
||||
assert not is_docker()
|
||||
assert 'NoneType' not in str(type(IPython.get_ipython())) # SSH terminals, GitHub CI
|
||||
cv2.imshow('test', np.zeros((1, 1, 3)))
|
||||
cv2.waitKey(1)
|
||||
cv2.destroyAllWindows()
|
||||
|
||||
Reference in new issue
Block a user