opencv opengl difference and connection

opencv and opengl

OpenCV is the Open Source Computer Vision Library
OpenGL is the Open Graphics Library

OpenCV mainly provides the basic algorithm library for image processing and video processing, and also involves some machine learning algorithms. For example, if you want to achieve video noise reduction, tracking of moving objects, and recognition of targets (such as faces), these are all areas of CV.

OpenGL focuses on Graphics and 3D drawing.

OpenGL is a C-based graphics library, mainly used for the rendering of three-dimensional graphics. OpenCV is a C-based computer vision library, mainly used for computer vision processing. Both libraries are open source and widely used in the computer graphics and computer vision neighborhoods, respectively.
The former focuses on obtaining information from the collected visual images and uses machines to understand the images; the latter uses machines to draw suitable visual images for people to see.


Why does OpenCV hook up with OpenGL?
In addition, in augmented reality (AR) applications, both OpenCV and OpenGL may be used.

Due to the enhanced capabilities of graphics cards, OpenCV now has a new form, that is, a large number of operations are located on graphics cards.
Computation through CUDA (CUDA (Compute Unified Device Architecture), a computing platform launched by graphics card manufacturer NVIDIA) or OpenCL (OpenCL (full name Open Computing Language, Open Computing Language)

rendering through OpenGL

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326610192&siteId=291194637