Skip to content

Commit 1e8f280

Browse files
committed
feat: update doc for opencv 4 and setup.py
1 parent 625ac9c commit 1e8f280

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Readme.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ python3 test.py
4343

4444
## Generation with setup.py
4545

46-
*Note* : This method only support opencv 2.4 and opencv 3 at this time. Opencv 4 is not supported yet.
4746

4847
### install pybind11
4948

@@ -53,7 +52,18 @@ pip3 install pybind11
5352

5453
### Compile
5554

55+
#### Opencv2.4+, Opencv3+
56+
57+
```
58+
python3 setup.py build
59+
```
60+
61+
#### Opencv4
62+
63+
In Opencv4, there a extra folder level for header (ex: `opencv4/opencv2/core/core.hpp`). To be able to compile with `setup.py` we need a extra command to indicate header location.
64+
5665
```
66+
python3 setup.py build_ext --include-dirs "/usr/local/include/opencv4"
5767
python3 setup.py build
5868
```
5969

0 commit comments

Comments
 (0)