1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

fixed bug #1153; updated tutorials

This commit is contained in:
Vadim Pisarevsky
2011-06-20 14:26:22 +00:00
parent 9a7d86d939
commit a971e06177
7 changed files with 76 additions and 44 deletions
+44 -36
View File
@@ -111,26 +111,28 @@ Making a project
#. We are only missing one final step: To tell OpenCV where the OpenCV headers and libraries are. For this, do the following:
* Go to **Project-->Properties**
*
Go to **Project-->Properties**
.. image:: images/Eclipse_Tutorial_Screenshot-8.png
:height: 400px
:alt: Eclipse Tutorial Screenshot 8
:align: center
.. image:: images/Eclipse_Tutorial_Screenshot-8.png
:height: 400px
:alt: Eclipse Tutorial Screenshot 8
:align: center
* In **C/C++ Build**, click on **Settings**. At the right, choose the **Tool Settings** Tab. Here we will enter the headers and libraries info:
*
In **C/C++ Build**, click on **Settings**. At the right, choose the **Tool Settings** Tab. Here we will enter the headers and libraries info:
a. In **GCC C++ Compiler**, go to **Includes**. In **Include paths(-l)** you should include the path of the folder where opencv was installed. In our example, this is:
::
*
In **GCC C++ Compiler**, go to **Includes**. In **Include paths(-l)** you should include the path of the folder where opencv was installed. In our example, this is: ::
/usr/local/include/opencv
/usr/local/include/opencv
.. image:: images/Eclipse_Tutorial_Screenshot-9.png
.. image:: images/Eclipse_Tutorial_Screenshot-9.png
:height: 400px
:alt: Eclipse Tutorial Screenshot 9
:align: center
.. note::
.. note::
If you do not know where your opencv files are, open the **Terminal** and type:
.. code-block:: bash
@@ -144,48 +146,54 @@ Making a project
-I/usr/local/include/opencv -I/usr/local/include
b. Now go to **GCC C++ Linker**,there you have to fill two spaces:
*
Now go to **GCC C++ Linker**,there you have to fill two spaces:
* In **Library search path (-L)** you have to write the path to where the opencv libraries reside, in my case the path is:
::
*
In **Library search path (-L)** you have to write the path to where the opencv libraries reside, in my case the path is: ::
/usr/local/lib
/usr/local/lib
* In **Libraries(-l)** add the OpenCV libraries that you may need. Usually just the 3 first on the list below are enough (for simple applications) . In my case, I am putting all of them since I plan to use the whole bunch:
*
In **Libraries(-l)** add the OpenCV libraries that you may need. Usually just the 3 first on the list below are enough (for simple applications) . In my case, I am putting all of them since I plan to use the whole bunch:
* opencv_core
* opencv_imgproc
* opencv_highgui
* opencv_ml
* opencv_video
* opencv_features2d
* opencv_calib3d
* opencv_objdetect
* opencv_contrib
* opencv_legacy
* opencv_flann
* opencv_core
* opencv_imgproc
* opencv_highgui
* opencv_ml
* opencv_video
* opencv_features2d
* opencv_calib3d
* opencv_objdetect
* opencv_contrib
* opencv_legacy
* opencv_flann
.. image:: images/Eclipse_Tutorial_Screenshot-10.png
.. image:: images/Eclipse_Tutorial_Screenshot-10.png
:height: 400px
:alt: Eclipse Tutorial Screenshot 10
:align: center
.. note::
.. note::
If you don't know where your libraries are (or you are just psychotic and want to make sure the path is fine), type in **Terminal**:
If you don't know where your libraries are (or you are just psychotic and want to make sure the path is fine), type in **Terminal**:
.. code-block:: bash
.. code-block:: bash
pkg-config --libs opencv
pkg-config --libs opencv
My output (in case you want to check) was:
My output (in case you want to check) was:
.. code-block:: bash
.. code-block:: bash
-L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann
-L/usr/local/lib -lopencv_core -lopencv_imgproc \
-lopencv_highgui -lopencv_ml -lopencv_video \
-lopencv_features2d -lopencv_calib3d \
-lopencv_objdetect -lopencv_contrib \
-lopencv_legacy -lopencv_flann
Now you are done. Click **OK**
Now you are done. Click **OK**
* Your project should be ready to be built. For this, go to **Project->Build all**
+18 -2
View File
@@ -1,5 +1,3 @@
.. toctree::
The following links describe a set of basic OpenCV tutorials. All the source code mentioned here is provide as part of the OpenCV regular releases, so check before you start copy & pasting the code. The list of tutorials below is automatically generated from reST files located in our SVN repository.
.. note::
@@ -203,3 +201,21 @@ As always, we would be happy to hear your comments and receive your contribution
.. |ImageProcessing_2| image:: images/Morphology_1_Tutorial_Cover.png
:height: 200px
.. toctree::
:hidden:
Linux_Installation.rst
Windows_Installation.rst
Linux_GCC_Usage.rst
Linux_Eclipse_Usage.rst
Display_Image.rst
Load_Save_Image.rst
Basic_Linear_Transform.rst
Adding_Images.rst
Adding_Trackbars.rst
Drawing_1.rst
Drawing_2.rst
Smoothing.rst
Morphology_1.rst