A two-dimensional code image preprocessing method

An image preprocessing and two-dimensional code technology, applied in the field of image processing, can solve the problems of unclear two-dimensional code image, difficulty in recognizing two-dimensional code image, and inability to recognize it

Pending Publication Date: 2019-04-30
CASHWAY FINTECH CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, two-dimensional codes are widely used in people's lives, which greatly facilitates people's lives. Sometimes the two-dimensional code image is unclear or blurred. There are difficulties in the image and cannot be recognized

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A two-dimensional code image preprocessing method
  • A two-dimensional code image preprocessing method
  • A two-dimensional code image preprocessing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0024] see Figure 1-5 As shown, a method for two-dimensional code image preprocessing, including

[0025] (1) Perform grayscale processing on the input image containing the two-dimensional code image to be recognized.

[0026] (2) Perform filtering and denoising on the gray-scaled image in step (1).

[0027] (3) Perform contrast enhancement processing on the image after the denoising processing in step 2).

[0028] (4) Select the objective function for the established threshold value to solve the optimal threshold value for image binarization.

[0029] (5) Using the optimal threshold value obtained in step (4) to perform binarization processing on the contrast-enhanced image obta...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a two-dimensional code image preprocessing method. The two-dimensional code image preprocessing method comprises the steps of filtering and denoising an image which is subjected to graying processing and contains a to-be-identified two-dimensional code image; performing contrast enhancement on the denoised image; selecting an objective function for the established thresholdvalue to solve an optimal threshold value of image binaryzation; carrying out binarization processing on the image with the enhanced contrast by using an optimal threshold value;correcting and positioning a two-dimensional code image of the obtained binarized image, and finding out a rectangular area where the two-dimensional code to be identified is located; cutting the image according to the rectangular area to obtain a two-dimensional code image, and performing gray scale and filtering; and introducing a size weight factor to carry out size amplification of a corresponding weight on the obtained to-be-identified two-dimensional code image and then outputting the image. According to the invention, the fuzzy two-dimensional code image can be quickly identified and then sent to the identification module for identification processing.

Description

technical field [0001] The invention relates to the technical field of image processing, in particular to a method for preprocessing a two-dimensional code image. Background technique [0002] At present, two-dimensional codes are widely used in people's lives, which greatly facilitates people's lives. Sometimes the two-dimensional code image is unclear or blurred. There are difficulties in the image and cannot be recognized. Contents of the invention [0003] The purpose of the present invention is to provide a method for preprocessing two-dimensional code images based on differential search and scale weighting factors, aiming at accurately and quickly identifying fuzzy two-dimensional code images. [0004] The technical scheme adopted for realizing the purpose of the present invention is: [0005] A method for preprocessing a two-dimensional code image, comprising the following steps: [0006] Filter and denoise the image containing the two-dimensional code image to b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06K7/14G06T5/00G06T5/40G06T7/11G06T7/136
CPCG06K7/1417G06K7/146G06T5/40G06T7/11G06T7/136G06T2207/20132G06T5/70
Inventor刘贯伟张东婧赵亮武艳红
OwnerCASHWAY FINTECH CO LTD