You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+15-9
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,23 @@
4
4
5
5
It is *Unofficial* pre-built OpenCV+dldt_module package for Python.
6
6
7
-
**Why:**
8
-
There is a [guy with an exellent pre-built set of OpenCV packages](https://github.com/skvark/opencv-python), but they are all came without [dldt module](https://github.com/opencv/dldt).
7
+
**Why:**
8
+
There is a [guy with an exellent pre-built set of OpenCV packages](https://github.com/skvark/opencv-python), but they are all came without [dldt module](https://github.com/opencv/dldt). And you need that module if you want to run models from [Intel's model zoo](https://github.com/opencv/open_model_zoo/).
9
9
10
+
**Limitations**:
10
11
+ Package comes without contrib modules.
11
12
+ It was tested on Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10 as Windows 10 Subsystem and Gentoo.
12
-
+ I had not made a builds for Windows or MacOS.
13
+
+ I had not made builds for Windows or MacOS.
13
14
+ It is 64 bit.
14
15
+ It built with `ffmpeg` and `v4l` support (`ffmpeg` libs included).
15
16
+ No GTK/QT support -- use `matplotlib` for plotting your results.
16
17
18
+
This package is most similar to `opencv-python-headless`, main differences are:
19
+
+ Usage of `AVX512_SKX` instructions
20
+
+ No `JPEG 2000`, `WEBP`, `OpenEXR` support
21
+
+`TBB` used as a parallel framework
22
+
+ Inference Engine with `MYRIAD` plugin
23
+
17
24
For additional info read `cv2.getBuildInformation()` output.
18
25
19
26
## Installing from `pip3`
@@ -33,9 +40,9 @@ Also it is a lot of problems and extra work to compile Qt\GTK libs from sources.
33
40
In 95% of cases `matplotlib.imshow()` will be sufficient, in other 5% use another package for now or compile it with GUI
34
41
support by yourself.
35
42
36
-
To compile it with `GTK-2` support (checked):
37
-
All changes in `opencv-python-inference-engine/build/opencv/opencv_setup.sh`.
43
+
#### Steps to compile it with `GTK-2` support (checked)
38
44
45
+
Make next changes in `opencv-python-inference-engine/build/opencv/opencv_setup.sh`:
39
46
1. change string `-D WITH_GTK=OFF \` to `-D WITH_GTK=ON \`
40
47
2. change `export PKG_CONFIG_PATH=$ABS_PORTION/build/ffmpeg/binaries/lib/pkgconfig:$PKG_CONFIG_PATH` -- you will need to
41
48
add absolute paths to `.pc` files. On Ubuntu 18.04 it were
@@ -46,7 +53,7 @@ Exporting `PKG_CONFIG_PATH` for `ffmpeg` somehow messes with default values.
46
53
### Not really `manylinux1`
47
54
48
55
The package is renamed to `manylinux1` from `linux`, because, according to [PEP 513](https://www.python.org/dev/peps/pep-0513/), PyPi repo does not want to apply other architectures.
49
-
And compiling it for CentOS 2007 is pretty challenging and long and denies from using some of the necessary libs (like tbb).
56
+
And compiling it for CentOS 5.11 is pretty challenging (there is no such lxd container plus I do not want to mess with docker) and denies from using some of the necessary libs (like tbb).
50
57
Also, I suspect that it will be poorly optimized.
51
58
52
59
### Build `ffmpeg` with `tbb`
@@ -62,12 +69,11 @@ Maybe someday I will try it.
62
69
63
70
First 3 letters are the version of OpenCV, the last one -- package version. E.g, `4.1.0.2` -- 2nd version of based on 4.1.0 OpenCV package. Package versions are not continuously numbered -- each new OpenCV version starts its own numbering.
64
71
65
-
### MYRIAD plugin
66
-
67
-
MYRIAD plugin became opensource from dldt-2019_R1.1. It is possible to compile it -- read comments in `opencv-python-inference-engine/build/dldt/dldt_setup.sh`. And do not forget to copy not only `*.so` files but also `*.mvcmd`.
0 commit comments