mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Drop Python2 support.
This commit is contained in:
@@ -108,7 +108,7 @@ You can verify it with any image editing tools like GIMP.
|
||||
|
||||
### Method 3 : OpenCV sample style !!
|
||||
|
||||
There is a sample code for color-histogram in OpenCV-Python2 samples
|
||||
There is a sample code for color-histogram in OpenCV-Python samples
|
||||
(samples/python/color_histogram.py).
|
||||
If you run the code, you can see the histogram shows the corresponding color also.
|
||||
Or simply it outputs a color coded histogram.
|
||||
|
||||
+1
-1
@@ -157,7 +157,7 @@ should be due to the sky)
|
||||
|
||||
Well, here you adjust the values of histograms along with its bin values to look like x,y
|
||||
coordinates so that you can draw it using cv.line() or cv.polyline() function to generate same
|
||||
image as above. This is already available with OpenCV-Python2 official samples. Check the
|
||||
image as above. This is already available with OpenCV-Python official samples. Check the
|
||||
code at samples/python/hist.py.
|
||||
|
||||
Application of Mask
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
Install OpenCV-Python in Fedora {#tutorial_py_setup_in_fedora}
|
||||
===============================
|
||||
|
||||
@warning
|
||||
The instruction is deprecated. Please use OpenCV-Python package instead. See https://github.com/opencv/opencv-python for more details
|
||||
|
||||
Goals
|
||||
-----
|
||||
|
||||
|
||||
@@ -64,12 +64,6 @@ We need **CMake** to configure the installation, **GCC** for compilation, **Pyth
|
||||
sudo apt-get install cmake
|
||||
sudo apt-get install gcc g++
|
||||
```
|
||||
to support python2:
|
||||
|
||||
```
|
||||
sudo apt-get install python-dev python-numpy
|
||||
```
|
||||
|
||||
to support python3:
|
||||
|
||||
```
|
||||
@@ -154,12 +148,6 @@ For additional information about CMake options refer to OpenCV @ref tutorial_lin
|
||||
You should see these lines in your CMake output (they mean that Python is properly found):
|
||||
|
||||
```
|
||||
-- Python 2:
|
||||
-- Interpreter: /usr/bin/python2.7 (ver 2.7.6)
|
||||
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.6)
|
||||
-- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)
|
||||
-- packages path: lib/python2.7/dist-packages
|
||||
--
|
||||
-- Python 3:
|
||||
-- Interpreter: /usr/bin/python3.4 (ver 3.4.3)
|
||||
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.4m.so (ver 3.4.3)
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
Install OpenCV-Python in Windows {#tutorial_py_setup_in_windows}
|
||||
================================
|
||||
|
||||
@warning
|
||||
The instruction is deprecated. Please use OpenCV-Python package instead. See https://github.com/opencv/opencv-python for more details
|
||||
|
||||
Goals
|
||||
-----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user