OpenCV4 entry to advanced

OpenCV4 entry to advanced

Chapter 1 Introduction and Learning Guide
Chapter 2 OpenCV Development Environment Construction
Chapter 3 Image & Video Loading and Display
Chapter 4 OpenCV Must Know the Basics
Chapter 5 OpenCV Realizes Graphics Drawing
Chapter 6 OpenCV Arithmetic and Bit Operations
Chapter 7 Basic Image Transformation
Chapter 8 Filters in OpenCV
Chapter 9 Morphology in OpenCV
Chapter 10 Object Recognition - Vehicle Statistics Project
Chapter 11 Feature Point Detection and Matching - Image Stitching Project
Chapter 12 Image Segmentation and Integration Repair
Chapter 13 Machine Learning - Face Recognition Project
Chapter 14 Course Summary



foreword

With the continuous development of artificial intelligence, the technology of machine learning is becoming more and more important. Machine learning is mostly based on vision, so let's introduce the most important module in vision: OpenCV.


提示:以下是本篇文章正文内容,下面案例仅供参考

1. What is OpenCV, why learn OpenCV?

insert image description here

1. OpenCV application scenarios


insert image description here


insert image description here


Target Recognition

For example, target recognition is a large category that can be subdivided into multiple branches.
For example, face recognition can solve problems such as reputation. Now the financial system basically adds face recognition modules.
insert image description here


vehicle tracking
insert image description here


animal classification, object classification;
insert image description here


Autopilot

Autonomous driving: Baidu, Google, Tesla, etc. are all vigorously developing;
insert image description here


For autonomous driving, when there were not so many applications of vision algorithms before, autonomous driving used laser radar to collect road information, which required a lot of transformation of road test information.
insert image description here


Distance detection:
insert image description here


Medical Image Analysis

insert image description here


Video content understanding and analysis

insert image description here

2. The relationship between OpenCV and graphics


The basic relationship between OpenCV and graphics:

insert image description here


The relationship between OpenCV and FFmpeg:

insert image description here
OpenCV calls FFmpeg mainly to process multimedia files. OpenCV generally needs to get the original video frame data, which is yuv and rgb data, but the data that users often give to OpenCV is basically png, jpg, or a video. When you need to call the decoding module of FFmpeg, after decoding the encoded data, it can be converted into yuv and rgb data required by OpenCV for processing.


insert image description here
1. The various industries introduced above are inseparable from the support of OpenCV;
2. It can be applied to platforms such as live broadcast, and can be used for Beijing replacement;
3. Change life.


insert image description here


insert image description here


The overall content is detailed in the catalog:
insert image description here


insert image description here


Two, OpenCV entry and actual combat

OpenCV can be divided into two parts: Open+CV.
CV: Compute Vision computer vision. Plus open means open source, it is an open source computer vision library.


insert image description here


insert image description here


insert image description here


insert image description here


1. Introduction to OpenCV:

insert image description here


insert image description here


2. What can I get?

insert image description here

3. Build OpenCV environment under ubuntu


1. Steps to install OpenCV environment under Ubuntu

insert image description here
For example:

apt install python-numpy

1. Install python3 first

Check the system:

uname -a
# 查看版本:
apt-cache search search python | grep python3
# 安装:
sudo apt install python3.9
# 卸载:
sudo remove python3.8

2. Install CV related libraries

Method 1: Install numpy:insert image description here

Method 2: Install numpy:

insert image description here

Install OpenCV:
insert image description here
Install matplotlib:
insert image description here







Guess you like

Origin blog.csdn.net/yechen1/article/details/128534052