Tag:opencv

  • How to configure opencv in Visual Studio 2010

    Time:2020-10-29

    When using OpenCV with VS, you don’t want to configure it globally. It’s boring to configure every time. In view of this, I would like to introduce a simple method. The premise of configuring the environment is that the appropriate version of OpenCV is successfully installed. I use opencv2.4.9 here. After decompressing this version, I […]

  • Text course of OpenCV configuration method under vs2015

    Time:2020-10-27

    This example for you to share the Android Jiugongge picture display of the specific code, for your reference, the specific content is as follows Please replace the pathname in the following configuration process with the actual pathname. Opencv website: http://opencv.org/ GitHub:https://github.com/Itseez/opencv Configuration process Create a new C + + project. Open project properties. Change the […]

  • Opencv 3.1.0 + vs2015 development environment configuration tutorial

    Time:2020-10-26

    This example for you to share the Android Jiugongge picture display of the specific code, for your reference, the specific content is as follows 1、 Preparatory work a. Vs2015 environment b. From https://opencv.org/ download 2、 Start installation a. Double clickThe following configuration installation path is obtained: b. Set a path and click extract to start […]

  • An example of region growth for automatic selection of initial seeds (Python + openCV)

    Time:2020-10-18

    In the algorithm, the initial seed can be automatically selected (different seeds can be obtained through different partition, and the algorithm can be improved according to your own needs). The images are the original image (I drew two strokes to divide into different regions), gray histogram, initial seed image, and region growth result map. In […]

  • Example of Python opencv reading RGB channel graph

    Time:2020-9-27

    I will not say much nonsense, directly on the code! #coding=utf-8 The core class in opencv is matrix, which is the abbreviation of matrix and represents matrix. This class is in the header file opencv2 / core\ core.hpp It contains a lot of basic matrix operations, C + + need to reference Python contains numpy, […]

  • Python opencv bilinear interpolation example

    Time:2020-9-25

    I will not say much nonsense, directly on the code! #coding=utf-8 import cv2 import numpy as np Bilinear interpolation img = cv2.imread(‘timg.jpeg’, cv2.CV_LOAD_IMAGE_GRAYSCALE) # load the gray image cv2.imwrite(‘img.jpg’, img) h, w = img.shape[:2] # shrink to half of the original a1 = np.array([[0.5, 0, 0], [0, 0.5, 0]], np.float32) d1 = cv2.warpAffine(img, a1, (w, […]

  • Analysis of the principle of image clipping based on OpenCV in Python

    Time:2020-7-27

    This article mainly introduces Python through OpenCV image cutting principle analysis, the article through the example code introduced in detail, for everyone’s study or work has a certain reference learning value, need friends can refer to Basic concepts of image clipping:Image clipping refers to the removal of the areas outside the research area that we […]

  • How to realize picture drawing with Python opencv

    Time:2020-7-22

    This article mainly introduces how Python opencv realizes the picture drawing. The article introduces in detail through the example code, which has certain reference learning value for everyone’s study or work, and friends in need can refer to it Points and circles: circle(img,center,radius,color,thickness=None,lineType=None,shift=None)。 The significance and function of the parameters are as follows. IMG: the […]

  • Opencv Hough algorithm for line detection in images

    Time:2020-7-5

    In this paper, we share the opencv Hough algorithm for line detection specific code, for your reference, the specific content is as follows (1) Load the image to be tested and display the original image Mat g_ Srcimage = imread (“C: \ \ users \ \ Lenovo \ \ pictures \ \ saved pictures \ […]

  • Detailed explanation of OpenCV Hough transform line detection

    Time:2020-7-4

    Hough’s main idea is transformation A line can be expressed by y = ax + B in the plane rectangular coordinate system (X-Y). For a certain point (x0, Y0) on the line, it always conforms to y0-ax0 = B, and it can be expressed as a straight line in the parametric plane coordinate system (a-b). […]

  • Opencv uses Hough transform to detect lines for image correction

    Time:2020-7-3

    The line is detected by Hough transform, and the oblique image is corrected #include<opencv2\opencv.hpp> #include <iostream> using namespace cv; using namespace std; #define ERROR 1234 //Degree conversion double DegreeTrans(double theta) { double res = theta / CV_PI * 180; return res; } //Rotate image degree angle counterclockwise (original size) void rotateImage(Mat src, Mat& img_rotate, double […]

  • Projection method of OpenCV method for line detection

    Time:2020-7-2

    In this paper, we share the specific code of OpenCV detection line projection method for your reference, the specific content is as follows The following is my understanding and experiment of projection method Projection method is the digital image pixel accumulation in a certain direction. Through horizontal and vertical projection, we can get several characteristics […]