Skip to content

Commit

Permalink
openvino-dev return opencv-python back (#12957)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Sep 9, 2022
1 parent af29d22 commit c076284
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
3 changes: 2 additions & 1 deletion tools/benchmark_tool/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
py-cpuinfo>=7.0.0
numpy>=1.16.6,<=1.23.1
progress>=1.5
progress>=1.5
opencv-python>=4.5
10 changes: 0 additions & 10 deletions tools/benchmark_tool/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
$ python setup.py sdist bdist_wheel
"""
import importlib
import pkg_resources
import warnings
from setuptools import setup, find_packages

with open('README.md', 'r', encoding='utf-8') as f:
Expand All @@ -23,14 +21,6 @@
in pkg_resources.parse_requirements(requirements_txt)
]

try:
importlib.import_module('cv2')
except ImportError as opencv_import_error:
warnings.warn(
"Problem with cv2 import: \n{}\n opencv-python-headless will be added to requirements".format(opencv_import_error)
)
reqs.append('opencv-python-headless==4.5.*')

setup(
name='benchmark_tool',
version='0.0.0',
Expand Down

0 comments on commit c076284

Please sign in to comment.