QR code positioning method and system
A positioning method and positioning system technology, applied in the field of image recognition, can solve problems such as affecting the reading efficiency and taking a lot of time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0107] see figure 1 , a kind of location method of QR code, comprises the steps:
[0108] S1: Preprocessing the target image containing the QR code. The preprocessing includes grayscale and filtering processing, improving the contrast of the target image and removing noise;
[0109] The preprocessing specifically includes, using a weighted average method to grayscale the target image, and convert it into an 8-bit bmp format. The grayscale target image is processed by using histogram equalization to increase the contrast of the target image. The K-nearest neighbor mean filter is used to process the histogram equalized target image to remove the noise of the target image.
[0110] The methods used in the preprocessing are the prior art, and after being processed by these preprocessing methods, the target graphics become clearer and have less noise.
[0111] S2: Perform binarization processing on the preprocessed target image. The binarization process adopts OTSU algorithm; ...
Embodiment 2
[0168] A positioning system for a QR code, including a memory and a processor, the memory stores instructions, and the instructions are adapted to be loaded by the processor and perform the following steps:
[0169] S1: Preprocessing the target image containing the QR code, the preprocessing includes grayscale and filtering processing, improving the contrast of the target image, and removing noise;
[0170] S2: Perform binarization processing on the preprocessed target image by calling the OTSU algorithm;
[0171] S3: Perform connected domain search on the binarized target image: find equivalent cliques line by line, and the obtained set of equivalent cliques is the connected domain, wherein the cliques have the same gray value and are continuous A segment of pixel collection;
[0172] S4: Searching for a position detection pattern from the connected domain obtained in step S3: when the connected domain only contains one sub-connected domain and the sub-connected domain also ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


