Documentation/P600 UAV WikiEnglish · Allspark2
Browse documentation
Additional documentation

Installing OpenCV

OpenCV, short for Open Source Computer Vision Library, is a cross platform computer vision library. OpenCV was initiated and co developed by Intel and is distributed under the B…

1 min read · English documentation

# OpenCV4
chmod +x opencv470-install.sh && ./opencv470-install.sh

# Installation tip
The standard installation script works correctly, but it is relatively slow. Open the script to view the commands used during the final OpenCV compilation stage:

make -j2
sudo make install

SpireCV may use -j2 to support platforms with different performance levels. This compiles with only two cores, which is slow.
You can change this value according to the number of CPU cores in your computer. For example, the computer shown below has 12 cores, so you can change the option to -j12 for much faster compilation:

make -j12
sudo make install

image.png

OpenCV

image.png

OpenCV, short for Open Source Computer Vision Library, is a cross-platform computer-vision library. OpenCV was initiated and co-developed by Intel and is distributed under the BSD license, allowing free use in commercial and research applications. OpenCV can be used to develop real-time image-processing, computer-vision, and pattern-recognition applications.

Its main functions include:

1. Image processing: Provides a range of image-processing functions, including filtering, transformation, and edge detection. 2. Computer vision: Supports tasks such as facial recognition, object detection, and motion tracking. 3. Video analysis: Enables video capture, processing, and analysis. 4. Machine learning: Provides support for basic machine-learning algorithms. 5. Cross-platform support: Compatible with multiple operating systems and suitable for different development environments.

OpenCV is widely used in autonomous driving, security surveillance, AR/VR, and other fields.