installing_opencv4_on_ubuntu_18
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
installing_opencv4_on_ubuntu_18 [2021/01/29 13:40] – leogeorgescu | installing_opencv4_on_ubuntu_18 [2021/07/02 23:17] (current) – dongbinkim | ||
---|---|---|---|
Line 1: | Line 1: | ||
<fs x-large> | <fs x-large> | ||
\\ | \\ | ||
- | **Author:** Leonardo Georgescu \\ | + | **Author:** Leonardo Georgescu, Dongbin Kim \\ |
**Email:** [email protected]\\ | **Email:** [email protected]\\ | ||
- | **Date:** Last Edited | + | **Date:** Last Edited |
**Keywords: | **Keywords: | ||
\\ | \\ | ||
Line 11: | Line 11: | ||
<fs large> | <fs large> | ||
- | 1. Check to see if Ubuntu | + | 1. Check to see if OpenCV |
dasl@dasl-XPS-8900:</ | dasl@dasl-XPS-8900:</ | ||
| | ||
Line 18: | Line 18: | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
| | ||
- | 3. Delete all the existing libraries: | + | 3. Delete all the existing |
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
- | 4. Update packages on Ubuntu: | + | 4. Update |
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
- | + | | |
- | 5. Install build-essential packages: | + | |
+ | 5. Install build-essential | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
Line 43: | Line 44: | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
| | ||
- | 11. Install OpenGL: | + | 11. Install OpenGL |
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
| | ||
- | 12. Install OpenCV: | + | 12. Install |
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
| | ||
Line 52: | Line 53: | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
| | ||
- | 14. Create OpenCV directory: | + | 14. Create OpenCV directory |
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
Line 74: | Line 75: | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
| | ||
- | 19. Produce pkg-config files in your build file. Could not upload the code here because daslhub would not accept it. To find the code go to the original page which is linked at the top and copy accordingly. If you can't find it, please email me. | + | 19. Utilize |
- | dasl@dasl-XPS-8900: | + | dasl@dasl-XPS-8900: |
- | + | | |
+ | -D CMAKE_INSTALL_PREFIX=/ | ||
+ | -D WITH_TBB=OFF \ | ||
+ | -D WITH_IPP=OFF \ | ||
+ | -D WITH_1394=OFF \ | ||
+ | -D BUILD_WITH_DEBUG_INFO=OFF \ | ||
+ | -D BUILD_DOCS=OFF \ | ||
+ | -D INSTALL_C_EXAMPLES=ON \ | ||
+ | -D INSTALL_PYTHON_EXAMPLES=ON \ | ||
+ | -D BUILD_EXAMPLES=OFF \ | ||
+ | -D BUILD_TESTS=OFF \ | ||
+ | -D BUILD_PERF_TESTS=OFF \ | ||
+ | -D WITH_QT=OFF \ | ||
+ | -D WITH_GTK=ON \ | ||
+ | -D WITH_OPENGL=ON \ | ||
+ | -D OPENCV_EXTRA_MODULES_PATH=../../ | ||
+ | -D WITH_V4L=ON | ||
+ | -D WITH_FFMPEG=ON \ | ||
+ | -D WITH_XINE=ON \ | ||
+ | -D BUILD_NEW_PYTHON_SUPPORT=ON \ | ||
+ | -D OPENCV_GENERATE_PKGCONFIG=ON | ||
+ | |||
+ | if you see the message like below, you successfully finished configuration | ||
+ | - Configuring done | ||
+ | - Generating done | ||
+ | - Build files have been written to: / | ||
+ | |||
+ | You may have hard time doing the job here, if you are in trouble, please let us know, or look at the link the top of the tutorial. Everything is explained in Korean, but you will understand if you run " | ||
20. Installation should be successful. Then, check how many cores you have available on the computer: | 20. Installation should be successful. Then, check how many cores you have available on the computer: | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
Line 93: | Line 122: | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
| | ||
- | 26. To view image on camera: | + | 25. Install cheese to verity in ubuntu if your camera works. Running the commands below should allow you to view camera feedback. If it does not work, then it's an issue related to the drivers of your camera which need to be installed. |
+ | dasl@dasl-XPS-8900: | ||
+ | dasl@dasl-XPS-8900: | ||
+ | |||
+ | |||
+ | 26. To view image on camera | ||
dasl@dasl-XPS-8900: | dasl@dasl-XPS-8900: | ||
+ | | ||
+ | 27. This will be used to publish the camera feedback. To be able to subscribe we must be able to publish the data. Instill the video stream package first: | ||
+ | dasl@dasl-XPS-8900: | ||
+ | | ||
+ | 28. Sometimes the camera feedback is too bright or if you want to change the values manually install the software below and run it. | ||
+ | dasl@dasl-XPS-8900: | ||
+ | dasl@dasl-XPS-8900: | ||
+ | | ||
+ | 29. Once the camera is calibrated, you can check | ||
| | ||
26. | 26. | ||
<fs large> | <fs large> | ||
installing_opencv4_on_ubuntu_18.1611956419.txt.gz · Last modified: 2021/01/29 13:40 by leogeorgescu