OpenCV4 machine learning: principle and implementation of K-means
preface:
This column mainly combines OpenCV4 to realize some basic image processing operations, classical machine learning algorithms (such as K-Means, KNN, SVM, decision tree, Bayesian classifier, etc.), and common deep learning algorithms.
Series of articles, continuously updated:
OpenCV4 machine learning (I): Construction and configuratio ...
Posted by Christopher on Tue, 07 Sep 2021 06:41:32 +0200
Contour correlation algorithm
Contour detection refers to the detection of object boundaries in an image, more focused on the upper semantic objects.For example, the findContours() function in OpenCV gets each contour and stores it as a point vector. In addition, it gets the topological information of an image, that is, the index number of the last contour, the previo ...
Posted by marf on Tue, 07 Sep 2021 05:57:34 +0200
Adjusting the brightness and contrast of an image with opencv4.3.0 Tutorial
Catalog
Preface
1. Brightness and Contrast
1. What is brightness and contrast
2. Brightness and Contrast Adjustment Principle
3. Brightness and Contrast Adjustment Code Implementation
4,API-convertScaleAbs
2. Gamma Correction
1. Introduction of Gamma Correction
2. Gamma Correction Principle
...
Posted by master82 on Thu, 11 Jun 2020 02:58:03 +0200
AS Cmake OpenCV Foundation
JniOpencv environment configuration
I. preparation of development package
2. Preparation Library
Three configuration CPU platform architecture types
A small Demo to enhance image brightness
JniOpencv environment configuration
1, Prepare development package
Copy opencv Android SDK - > SDK - > nati ...
Posted by robin on Sat, 02 May 2020 06:45:50 +0200
opencv calls Nu book / zxing CPP to identify QR code
Environment installation: 1. The source code of zxing CPP and the lib generated after the source code compilation. My version is V1.0.8. The compilation method is as follows: https://www.cnblogs.com/zhenjin-huaxiazongdai/p/12545959.html . Zxing CPP project path: https://github.com/nu-book/zxing-cpp 2. Visual Studio 2017 installation https://vi ...
Posted by AnarchistX on Thu, 26 Mar 2020 05:15:22 +0100
Wu university students use Python to knock out Cherry Blossom open (with source code)
Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on!
This year's Wuhan University is not as crowded as before, but the beautiful cherry blossom is still blooming alone in spring
Wuda has opened a live broadcast of Cherry Blossom ...
Posted by vidhatanand on Wed, 25 Mar 2020 10:32:13 +0100
Opencv drawing basic graphics
Basic application of Opencv
Article directory
1. Line drawing
2. Rectangle drawing
3. Ellipse and sector drawing
4. Draw a circle
5. Drawing of arbitrary shapes
1. Line drawing
Method
cv2.line(img, pt1, pt2, color, thickness, lineType, shift )
Parameters:
1. img: image;
2. pt1: the first point ...
Posted by mrinfin1ty on Thu, 27 Feb 2020 06:30:29 +0100
qt +opencv dnn+tensorflow for early warning of sensitive areas
qt +opencv dnn+tensorflow to realize on duty early warning
In the process of security, have you ever had such experience? When someone enters the sensitive area, they do not find out in time. Today, qt +opencv dnn+tensorflow is used to realize the early warning of sensitive areas
The following picture:
...
Posted by pahunrepublic on Wed, 05 Feb 2020 15:43:54 +0100
Panoramic mosaic of Opencv
Requirement
Combine the following two pictures to produce panoramic mosaic effect.
Code implementation process
1. Import required libraries
import numpy as np
import cv2
2. Create a class Stitcher
The Stitcher class contains five methods, which are
stitch(self, images, ratio=0.75, reprojThresh ...
Posted by Nirvana on Sat, 18 Jan 2020 07:46:50 +0100
openCV4 Image Correction Implementation Scheme
Requirements:
In image processing, sometimes due to the inconsistent angle of the photo taken, the resulting image has a certain degree of offset and needs to be corrected, such as the following two pictures.
Figure 1
Figure 2
For example, Fig. 1, what should I do if I want to correct the lab ...
Posted by snog on Thu, 16 Jan 2020 02:45:38 +0100