Skip to content

Commit f838dc0

Browse files
authored
omniparser remove dependency on opencv headless (#2698)
CVS-161265
1 parent cf02913 commit f838dc0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

notebooks/omniparser/omniparser.ipynb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,17 @@
118118
" \"defusedxml\",\n",
119119
" \"pyyaml\",\n",
120120
" \"scipy\",\n",
121+
" \"scikit-image\",\n",
122+
" \"python-bidi\",\n",
123+
" \"pyclipper\",\n",
124+
" \"Shapely\",\n",
125+
" \"ninja\",\n",
121126
" \"tqdm\",\n",
122127
" \"--extra-index-url\",\n",
123128
" \"https://download.pytorch.org/whl/cpu\",\n",
124129
")\n",
125130
"pip_install(\"--no-deps\", \"supervision==0.18.0\")\n",
126-
"pip_install(\"easyocr\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\")\n",
131+
"pip_install(\"--no-deps\", \"easyocr\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\")\n",
127132
"pip_install(\"-U\", \"--pre\", \"--extra-index-url\", \"https://storage.openvinotoolkit.org/simple/wheels/pre-release\", \"openvino>=2024.6.0\")\n",
128133
"\n",
129134
"if platform.system() == \"Darwin\":\n",

notebooks/optical-character-recognition/optical-character-recognition.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@
285285
}
286286
],
287287
"source": [
288-
"import cv2\n",
289-
"\n",
290288
"# The `image_file` variable can point to a URL or a local image.\n",
291289
"image_url = \"https://storage.openvinotoolkit.org/repositories/openvino_notebooks/data/data/image/intel_rnb.jpg\"\n",
292290
"\n",

0 commit comments

Comments
 (0)