CN112562021A - Image filter processing method for bar code - Google Patents
Image filter processing method for bar code Download PDFInfo
- Publication number
- CN112562021A CN112562021A CN202011569252.8A CN202011569252A CN112562021A CN 112562021 A CN112562021 A CN 112562021A CN 202011569252 A CN202011569252 A CN 202011569252A CN 112562021 A CN112562021 A CN 112562021A
- Authority
- CN
- China
- Prior art keywords
- bar code
- image
- image filter
- decoding
- processing method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000005260 corrosion Methods 0.000 claims abstract description 14
- 230000007797 corrosion Effects 0.000 claims abstract description 14
- 239000011159 matrix material Substances 0.000 claims description 9
- 230000003628 erosive effect Effects 0.000 claims description 4
- 238000000034 method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008961 swelling Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
- G06T5/30—Erosion or dilatation, e.g. thinning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration using histogram techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10008—Still image; Photographic image from scanner, fax or copier
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Quality & Reliability (AREA)
- Multimedia (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
The invention provides a bar code image filter processing method, wherein an image filter is arranged at a PC end connected with decoding equipment, and the functions of the image filter comprise expansion, corrosion, histogram stretching and reverse color; the image filter is used for processing the image bar code before the scanned and read image bar code is transmitted into the decoding library, and the processed image bar code is output to the decoding equipment for decoding. The user carries out image filter processing on the bar code according to the requirements of a real scene, the filter provides the functions of expansion, corrosion, histogram stretching and reverse color processing, and the dot code, the reverse color code and the bar code with low contrast can be identified by a decoding library through the combined use of the functions, so that the decoding is smoothly realized.
Description
Technical Field
The invention relates to a decoding processing method of an image bar code, in particular to an image filter processing method of a bar code.
Background
In many application scenarios, image barcodes to be scanned are all dot matrix codes, reversed color codes or low-contrast barcodes, and a decoding library cannot identify the barcodes, so that image processing is required before decoding by the decoding library, and the photographed and scanned barcode images are processed into a decodable state to complete decoding.
Disclosure of Invention
The invention aims to solve the problem that an image scanned by dot matrix codes, reversed color codes or low-contrast bar codes in the prior art cannot be directly decoded, and provides an image filter processing method of the bar codes.
In order to achieve the purpose, the invention adopts the following technical scheme:
a processing method of image filter of bar code, the said image filter is mounted to PC end linking with decoding equipment, the function of the said image filter includes swelling, corroding, histogram stretch, reverse color; the image filter is used for processing the image bar code before the scanned and read image bar code is transmitted into a decoding library, and the processed image bar code is output to the decoding equipment for decoding;
when the image bar code is a dot matrix code, starting the expansion and corrosion functions of the image filter; when the image bar code is a bar code with low contrast, starting a histogram stretching function of the image filter; when the image bar code is a color reflection code, starting a color reflection processing function of an image filter; the expansion, erosion, histogram stretching and inversion processing functions of the image filter are used in combination.
Preferably, a tool interface is configured on the PC side, the tool interface comprising 3 filters, each filter comprising expansion, erosion, histogram stretching, inversion and closing filter options for selection.
Preferably, when the scanned image bar code is processed by using the image filter, the switches and functions of the 3 filters are sequentially selected according to the condition of the image bar code.
Preferably, the tool interface is provided with a gain configuration item, and an operator inputs a gain value to the gain configuration item.
Preferably, the tool interface is provided with a storage item, and the storage content comprises a barcode picture before image filter processing, a barcode picture after image filter processing and format selection of the picture.
Preferably, the saved picture formats include jpg, png, bmp.
According to the image filter processing method of the bar code, a user carries out image filter processing on the bar code according to the needs of a real scene, the filter provides expansion, corrosion, histogram stretching and reverse color processing functions, and through the combined use of the functions, the dot code, the reverse color code and the bar code with low contrast can be identified by a decoding library, so that decoding is smoothly realized.
Drawings
FIG. 1 is a tool interface for a bar code image filter processing method.
Detailed Description
In order to further understand the objects, structures, features and functions of the present invention, the following embodiments are described in detail.
As shown in fig. 1, the present invention provides a method for processing an image filter of a barcode, wherein the image filter is installed at a PC end connected to a decoding device, and the functions of the image filter include expansion, corrosion, histogram stretching, and color inversion; the image filter is used for processing the image bar code before the scanned and read image bar code is transmitted into a decoding library, and the processed image bar code is output to the decoding equipment for decoding. The expansion function and the corrosion function can be regarded as processing of the highlight area, the expansion function can improve the area of the highlight area, and the corrosion function can reduce the area of the highlight area; the expansion function may expand points in the dot-matrix map into lines that may be recognized by the decoding device, and the erosion function may assist in removing burrs, making the edges smoother. The histogram stretching function can improve the contrast between the bar code and the background color in the picture, so that the picture is clearer and can be identified and decoded. The reverse color processing function can enable the scanned image bar codes to be opposite in color, and the picture of the white code black matrix is changed into the picture of the black code white matrix, so that the decoding equipment can decode conveniently.
When the image bar code is a dot matrix code, starting the expansion and corrosion functions of the image filter; when the image bar code is a bar code with low contrast, starting a histogram stretching function of the image filter; when the image bar code is a color reflection code, starting a color reflection processing function of an image filter; the expansion, corrosion, histogram stretching and reverse color processing functions of the image filter are combined for use, and the problems that an image bar code is a dot matrix code, has low contrast and is a reverse color code are solved.
Configuring a tool interface at the PC side, wherein the tool interface comprises 3 filters, and each filter comprises expansion, corrosion, histogram stretching, reverse color and closing filter options for selection. When the scanned image bar code is processed by using the image filter, the switches and functions of the 3 filters are sequentially selected according to the condition of the image bar code. When the image bar code comprises one or more of the 3 problems, the 3 filters respectively select one or more functions to solve the problems, and the image bar code is processed into the image bar code which can be decoded by decoding equipment.
The tool interface is provided with a gain configuration item, an operator inputs a gain value to the gain configuration item, and the gain value can be specifically processed according to the conditions of different image bar codes, so that the optimal state that the bar codes can be decoded by decoding equipment is achieved.
The tool interface is provided with a storage item, and the storage content comprises a bar code picture before image filter processing, a bar code picture after image filter processing and format selection of the picture. The saved picture formats include jpg, png, bmp. The bar code pictures before and after being processed by the image filter are stored, so that backup and reference are facilitated.
According to the image filter processing method of the bar code, disclosed by the invention, a user carries out image filter processing on the bar code according to the requirements of a real scene, the filter provides the functions of expansion, corrosion, histogram stretching and reverse color processing, and the dot code, the reverse color code and the bar code with low contrast can be identified by a decoding library through the combined use of the functions, so that the decoding is smoothly realized. The operation method is simple and convenient, has strong operability, is convenient for quickly processing the dot code, the reversed color code and the bar code with low contrast, and improves the decoding efficiency and accuracy.
The present invention has been described in relation to the above embodiments, which are only exemplary of the implementation of the present invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. Rather, it is intended that all such modifications and variations be included within the spirit and scope of this invention.
Claims (6)
1. The image filter processing method of the bar code is characterized in that the image filter is arranged at a PC end connected with decoding equipment, and the functions of the image filter comprise expansion, corrosion, histogram stretching and color reversal; the image filter is used for processing the image bar code before the scanned and read image bar code is transmitted into a decoding library, and the processed image bar code is output to the decoding equipment for decoding;
when the image bar code is a dot matrix code, starting the expansion and corrosion functions of the image filter; when the image bar code is a bar code with low contrast, starting a histogram stretching function of the image filter; when the image bar code is a color reflection code, starting a color reflection processing function of an image filter; the expansion, erosion, histogram stretching and inversion processing functions of the image filter are used in combination.
2. The image filter processing method of a barcode according to claim 1, characterized in that: configuring a tool interface at the PC side, wherein the tool interface comprises 3 filters, and each filter comprises expansion, corrosion, histogram stretching, reverse color and closing filter options for selection.
3. The image filter processing method of a barcode according to claim 2, characterized in that: when the scanned image bar code is processed by using the image filter, the switches and functions of the 3 filters are sequentially selected according to the condition of the image bar code.
4. The image filter processing method of a barcode according to claim 3, characterized in that: the tool interface is provided with a gain configuration item, and an operator inputs a gain value to the gain configuration item.
5. The image filter processing method of a barcode according to claim 4, characterized in that: the tool interface is provided with a storage item, and the storage content comprises a bar code picture before image filter processing, a bar code picture after image filter processing and format selection of the picture.
6. The image filter processing method of a barcode according to claim 5, characterized in that: the saved picture formats include jpg, png, bmp.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011569252.8A CN112562021B (en) | 2020-12-26 | 2020-12-26 | Image filter processing method for bar code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011569252.8A CN112562021B (en) | 2020-12-26 | 2020-12-26 | Image filter processing method for bar code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112562021A true CN112562021A (en) | 2021-03-26 |
CN112562021B CN112562021B (en) | 2023-05-23 |
Family
ID=75033257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011569252.8A Active CN112562021B (en) | 2020-12-26 | 2020-12-26 | Image filter processing method for bar code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112562021B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114299409A (en) * | 2022-03-07 | 2022-04-08 | 中煤科工开采研究院有限公司 | Method and device for positioning underground personnel based on image recognition and depth information |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049727A (en) * | 2012-12-11 | 2013-04-17 | 福建新大陆自动识别技术有限公司 | Bar code recognizing, reading and decoding module and handheld electronic device |
CN103177281A (en) * | 2013-04-12 | 2013-06-26 | 江苏圆坤二维码研究院有限公司 | Two-dimensional code compiling method |
CN104463795A (en) * | 2014-11-21 | 2015-03-25 | 高韬 | Processing method and device for dot matrix type data matrix (DM) two-dimension code images |
CN104680109A (en) * | 2013-12-03 | 2015-06-03 | 航天信息股份有限公司 | Image recognition-based location method for bar code area |
CN107609451A (en) * | 2017-09-14 | 2018-01-19 | 斯坦德机器人(深圳)有限公司 | A kind of high-precision vision localization method and system based on Quick Response Code |
CN110008782A (en) * | 2019-06-06 | 2019-07-12 | 江苏东大集成电路系统工程技术有限公司 | The acquisition methods and device of bar code information |
-
2020
- 2020-12-26 CN CN202011569252.8A patent/CN112562021B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103049727A (en) * | 2012-12-11 | 2013-04-17 | 福建新大陆自动识别技术有限公司 | Bar code recognizing, reading and decoding module and handheld electronic device |
CN103177281A (en) * | 2013-04-12 | 2013-06-26 | 江苏圆坤二维码研究院有限公司 | Two-dimensional code compiling method |
CN104680109A (en) * | 2013-12-03 | 2015-06-03 | 航天信息股份有限公司 | Image recognition-based location method for bar code area |
CN104463795A (en) * | 2014-11-21 | 2015-03-25 | 高韬 | Processing method and device for dot matrix type data matrix (DM) two-dimension code images |
CN107609451A (en) * | 2017-09-14 | 2018-01-19 | 斯坦德机器人(深圳)有限公司 | A kind of high-precision vision localization method and system based on Quick Response Code |
CN110008782A (en) * | 2019-06-06 | 2019-07-12 | 江苏东大集成电路系统工程技术有限公司 | The acquisition methods and device of bar code information |
Non-Patent Citations (1)
Title |
---|
张万鹏等: "复杂背景中模糊条形码的定位", 《国外电子测量技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114299409A (en) * | 2022-03-07 | 2022-04-08 | 中煤科工开采研究院有限公司 | Method and device for positioning underground personnel based on image recognition and depth information |
CN114299409B (en) * | 2022-03-07 | 2022-07-01 | 中煤科工开采研究院有限公司 | Underground personnel positioning method and device based on image recognition and depth information |
Also Published As
Publication number | Publication date |
---|---|
CN112562021B (en) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4771906B2 (en) | Method for classifying images with respect to JPEG compression history | |
Javed et al. | A review on document image analysis techniques directly in the compressed domain | |
CN102880849A (en) | Two-dimension code recognition method and device | |
KR20050102307A (en) | A bar code perfect virtue coding and decoding system for largeness a volume the two dimension color which a color revision is possible and method thereof | |
KR100429703B1 (en) | Method for capturing of real-time image | |
CN112562021A (en) | Image filter processing method for bar code | |
US20120091205A1 (en) | Apparatus and method for decoding matrix code symbol | |
KR20120067652A (en) | Apparatus and method for recognizing barcode | |
KR100708130B1 (en) | Video Extractor and Method | |
CN112714313A (en) | Image processing method, device, equipment and storage medium | |
US9380316B2 (en) | Image processing apparatus, image processing system and image processing method | |
Birmingham et al. | Using thumbnail affinity for fragmentation point detection of JPEG files | |
CN1848136A (en) | Method and system for decoding barcode images | |
JPH033566A (en) | Decoding method for compression data | |
Arizanović et al. | Efficient image compression and decompression algorithms for OCR systems | |
TWI669947B (en) | Image transcoding method, computational apparatus, and storage medium | |
KR100856880B1 (en) | Real time image processing device and method | |
US8116580B2 (en) | Embedded high frequency image details | |
CN114282556A (en) | Code scanning system and method based on plug-in | |
CN113297868B (en) | Low-delay high-performance industrial code reading equipment based on edge calculation | |
JP2004140749A (en) | Image compression method | |
JP2005182293A (en) | Bar code symbol reader | |
JP2005004642A (en) | Camera-equipped cellphone, bar code reading method and program | |
CN114066758A (en) | A Computer Image Processing System Using Intelligent Recognition Technology | |
JPH05183759A (en) | Encoder and decoder using arithmetic code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |