Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 08e9c35

Browse files
committed
README update
1 parent aec52a2 commit 08e9c35

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

+35
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,41 @@ sudo apt-get install libtbb2
2626
pip3 install opencv-python-inference-engine
2727
```
2828

29+
## Known problems and TODOs
30+
31+
#### No GTK/QT support
32+
33+
[skvarks's package](https://github.com/skvark/opencv-python) came with `Qt4` GUI for `opencv`.
34+
And it is +16 MB to file size.
35+
Also it is a lot of problems and extra work to compile Qt\GTK libs from sources.
36+
In 95% of cases `matplotlib.imshow()` will be sufficient, in other 5% use another package for now or compile it with GUI
37+
support by yourself.
38+
39+
To compile it with `GTK-2` support (checked):
40+
All changes in `opencv-python-inference-engine/build/opencv/opencv_setup.sh`.
41+
42+
1. change string `-D WITH_GTK=OFF \` to `-D WITH_GTK=ON \`
43+
2. change `export PKG_CONFIG_PATH=$ABS_PORTION/build/ffmpeg/binaries/lib/pkgconfig:$PKG_CONFIG_PATH` -- you will need to
44+
add absolute paths to `.pc` files. On Ubuntu 18.04 it were
45+
`/usr/lib/x86_64-linux-gnu/pkgconfig/:/usr/share/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/`
46+
47+
Exporting `PKG_CONFIG_PATH` for `ffmpeg` somehow messes with default values.
48+
49+
#### Not really `manylinux1`
50+
51+
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.
52+
And compiling it for CentOS 2007 is pretty challenging and long and denies from using some of the necessary libs (like tbb).
53+
Also, I suspect that it will be poorly optimized.
54+
55+
#### `ffmpeg` with `pthreads`, all other stuff with `tbb`
56+
57+
`OpenCV` compiled with `tbb` support, and `ffmpeg` compiled with `pthreads` and this is feels not right.
58+
There is some unproved solution for how to compile `ffmpeg` with `tbb` support:
59+
<https://stackoverflow.com/questions/6049798/ffmpeg-mt-and-tbb>.
60+
61+
Maybe someday I will try it.
62+
63+
2964
## Compiling from source
3065

3166
### Requirements

0 commit comments

Comments
 (0)