Opencv learning - basic image operation
Data reading - pictures
read
The smallest component of each image is pixels. It is composed of many pixels. The range of each pixel is 0-255 (0 is black, the brightness is the darkest, 255 is white, and the brightness is the brightest) RGB three color space. Generally, pictures are three channels. It can be regarded as represented by a th ...
Posted by psychowolvesbane on Mon, 17 Jan 2022 08:50:07 +0100
Image morphology
//Image morphology
void COpenCVTestDlg::OnCbnSelchangeComboMorphology()
{
if (m_comboMorphology.GetCurSel() == -1)
return;
if (!m_srcMatImg.empty())
{
//Define type
int MorphologyType = MORPH_RECT;
//Define size
int MorphlogySize = 3;
//Call ...
Posted by webtech123 on Sun, 16 Jan 2022 12:17:59 +0100
QT from entry to penetration (V) -- QThread
introduction The previous articles have made a simple summary of C + + threads, talking about multithreading in C++11 (III) - only their own powerful blog Garden (cnblogs.com). This paper focuses on the summary and implementation of Qt multithreading.
Much like C++11, Qt uses QThread to manage threads. A QThread object manages a thread. There ...
Posted by SpiderSprog on Sat, 15 Jan 2022 10:25:40 +0100
QT common controls from getting started to embedding - menu bar and dialog box
introduction
QMainWindow is a class that provides users with main window programs, including a menu bar, multiple tool bars, multiple dock widgets, a status bar and a central widget. It is the basis of many applications, such as text editor, picture editor, etc. (this chapter mainly introduces the menu bar and toolbar)
**
1, Menu bar
** A ...
Posted by sulen on Sat, 15 Jan 2022 05:24:47 +0100
[opencv3 learning record] Chapter 7 pixel operation on image
1: Image addition
You can use the function CV2 Add() adds two images. Of course, numpy, res=img1+img can also be used directly. The size and type of the two images must be the same, or the second image can make a simple scalar value.
Note: addition in OpenCV is different from addition in Numpy. OpenCV addition is a saturation operation, whil ...
Posted by Bac on Fri, 14 Jan 2022 22:04:55 +0100
(detailed tutorial) opencv+pycharm + notebook camera for face recognition
catalogue
1, Install opencv Python
2, Prepare classifier
3, Code explanation
4, Operation results
Appendix:
summary
1, Install opencv Python
It is recommended to directly install opencv Python using pycharm
Open file - Settings - python interpreter - click + sign
Search opencv python, click the installation package, and wait a mo ...
Posted by kpasiva on Fri, 14 Jan 2022 15:07:33 +0100
Image matching and stitching using sift feature extraction
Image fusion
Compilation environment: Python 3.0 8.3,OpenCV4.5.2,
Project code: https://download.csdn.net/download/zao_chao/20554332
Scale invariant feature transform (SIFT) is used for image matching and stitching. The image registration process based on SIFT point features includes feature extraction, feature description, feature matchin ...
Posted by gte604j on Thu, 13 Jan 2022 20:28:44 +0100
The beauty of python code beating
1. First effect
python [basketball teaching] code is being imitated
2. Operating environment
Python version: Python 3.0 7 (there should be no problem with Python 3.5 +). It is recommended to run with jupyter
2.1. Dependency Library:
①opencv-python(4.5.1.48)②Pillow (7.0.0)③moviepy(1.0.3)
2.2 installation method
pip install -i h ...
Posted by virtualdevl on Thu, 13 Jan 2022 17:37:00 +0100
OpenCV48: OCR handwriting recognition using KNN
target
In this chapter, you will learn
Use kNN to build a basic OCR applicationUse the numeric and alphabetic data sets that come with OpenCV
OCR of handwritten digits
The goal is to build an application that can read handwritten digits. To do this, you need some trains_ Data and test_data . OpenCV git project has a picture digits Png (in ...
Posted by ianr on Thu, 13 Jan 2022 16:12:02 +0100
Opencv Python image processing -- image contour detection and code implementation
I. contour detection Although edge detection can detect edges, its edges are not continuous. The image contour is used to detect a whole for subsequent processing. opencv provides two functions to complete these operations: findContours(): this function can find contours drawContours(): draw contours The difference between contour and edge is t ...
Posted by theslug on Sun, 09 Jan 2022 13:22:12 +0100