Traditional lane line detection canny edge detection Hough transform complete code (python)
This article is the original article of CSDN blogger "hanging small", and the reprint has been approved by the original blogger. Original link: https://blog.csdn.net/m0_46988935/article/details/109234900
catalogue
preface
1, What is Hough transform
2, Edge detection algorithm
3, Experimental environment
4, Traditional lane li ...
Added by hannnndy on Mon, 03 Jan 2022 20:59:58 +0200
OpenCV learning notes - day1 (image reading, display and saving imread, imshow, namedWindow, imwrite function)
day1 - image reading, display and saving
use OpenCV Development module, open a picture in the host directory,
And displayed on the desktop
Function:
imread, imshow, namedWindow and imwrite functions in the highug module
imread() reads the image Mat imread(const string& filename, int flags=1)
parameterexplainfilenameRead file add ...
Added by MoMoMajor on Mon, 03 Jan 2022 18:28:19 +0200
[machine vision case] AI vision, gesture control computer mouse, with complete python code
Hello, everyone. Today, I'd like to share with you how to use {MediaPipe+Opencv to control the movement and click of the computer mouse through gesture recognition. If you are interested, you can play games instead of the mouse. Let's see the effect first. Test with a drawing board
The yellow box represents the range of the computer screen and ...
Added by putraaridana on Mon, 03 Jan 2022 16:37:12 +0200
*** Part 2: image preprocessing interface cv::dnn::blobFromImage()
preface
When deploying CV algorithm based on deep learning, almost all of them involve input image preprocessing.
In python, the task of image preprocessing is basically contracted by numpy.
But, when the deployment needs to be implemented in C + +, the problem arises: numpy cannot be used. How to convert the image into the format accept ...
Added by jovanross on Sun, 02 Jan 2022 23:00:37 +0200
Face recognition case based on OpenCV
principle
We use machine learning to complete face detection, First, we need a large number of positive sample images (face images) and negative sample images (images without faces) to train the classifier. We need to extract features from them. The Haar feature in the figure below will be used, just like our convolution kernel. Each feature i ...
Added by ddragas on Sat, 01 Jan 2022 20:46:19 +0200
OpenCV image processing
OpenCV image processing
1. Image threshold
ret, dst = cv2.threshold(src, thresh, maxval, type)
src: input image, only single channel image can be input, usually gray imagedst: output diagramthresh: thresholdmaxval: the value assigned when the pixel value exceeds the threshold (or is less than the threshold, depending on the type)Type: t ...
Added by melbell on Fri, 31 Dec 2021 10:49:57 +0200
opencv C: color space conversion, pixel maximization, binarization, LUT
Color space
RGB, RGBA, YUV (brightness, interpolation between red component and brightness signal, interpolation between blue and brightness), HSV (chroma, saturation, brightness).....
void cv::cvtColor ( InputArray src,
OutputArray dst,
int code,
int dstCn = 0
)
// Data type conversion
void cv::Mat::convertTo ( ...
Added by Threehearts on Wed, 29 Dec 2021 18:17:54 +0200
Opencv learning 3 Shape recognition module
Shape Detection
Contour detection
contours, hierarchy = cv2.findContours(image,mode,method)
The first parameter input image,The second parameter represents the retrieval mode of contour, which has four types: 1.cv2.RETR_EXTERNAL means that only the outer contour is detected 2.cv2. RETR_ The contour detected by list does not establish a hiera ...
Added by erikjan on Wed, 29 Dec 2021 11:29:23 +0200
3 image coding technology and standard for Python image processing - wavelet transform coding
6.3 image coding technology and standard of Python image processing - wavelet transform coding
1 algorithm principle
The so-called wavelet is small for Fourier waves, Fourier wave refers to sine wave (or cosine wave) that oscillates infinitely in time domain. Relatively speaking, wavelet refers to a wave with very concentrated energy in t ...
Added by txmedic03 on Wed, 29 Dec 2021 08:25:53 +0200
OpenCV expansion and corrosion (callback function)
catalogue
1, Structural element
2, Swell
1. Principle
2. Dilation function
3. Code
4. Effect
3, Corrode
1. Principle
2. Corrosion function (erode)
3. Code
4. Effect
4, Simple operation - callback function and slider
1. Callback function
2. Slider creation
3. Code
4. Effect
reference material
1, Structural element
The ge ...
Added by MikeDXUNL on Mon, 27 Dec 2021 17:43:53 +0200