CN110472455A - A kind of two-dimensional code scanning method and system based on background color identification - Google Patents
A kind of two-dimensional code scanning method and system based on background color identification Download PDFInfo
- Publication number
- CN110472455A CN110472455A CN201910757505.5A CN201910757505A CN110472455A CN 110472455 A CN110472455 A CN 110472455A CN 201910757505 A CN201910757505 A CN 201910757505A CN 110472455 A CN110472455 A CN 110472455A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- background color
- light source
- camera
- scanning
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 239000003086 colorant Substances 0.000 claims abstract description 22
- 238000010408 sweeping Methods 0.000 claims description 35
- 238000012360 testing method Methods 0.000 claims description 24
- 238000012216 screening Methods 0.000 claims description 8
- 239000002131 composite material Substances 0.000 claims description 3
- 238000003384 imaging method Methods 0.000 claims 1
- 238000004519 manufacturing process Methods 0.000 description 16
- 230000000694 effects Effects 0.000 description 9
- 235000013405 beer Nutrition 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000005286 illumination Methods 0.000 description 4
- 230000001795 light effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 239000004094 surface-active agent Substances 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000007648 laser printing Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
Classifications
-
- 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/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Image Input (AREA)
- Character Input (AREA)
Abstract
The invention discloses a kind of two-dimensional code scanning methods based on background color identification, comprising: obtains the background color of two dimensional code region;The background color is the color of image in the region in addition to two dimensional code itself;According to the background color, set information is generated by preset scanning rule;The set information is used to set the sweep parameter of two-dimensional code scanning device;The sweep parameter includes the photographic parameter of camera and the light source parameters of secondary light source;The set information is sent to the two-dimensional code scanning device, so as to be scanned after the two-dimensional code scanning device carries out parameter setting according to the set information to the two dimensional code.The present invention is also corresponding to disclose a kind of two-dimensional code scanning system based on background color identification.Method and system disclosed in the present invention can be directed to the two dimensional code of different background colors, the picture quality of the initial pictures for the two dimensional code that scanning means obtains be improved, to substantially increase scanning means to the recognition efficiency of two dimensional code.
Description
Technical field
The invention belongs to two-dimensional code scanning technical fields, and in particular to a kind of two-dimensional code scanning method based on background color identification
And system.
Background technique
Planar bar code technology is usually used in the transmitting of product identification or manufacturing parameter in product line, with the life to production line
Production is assisted, for example, can product in the production line outer surface packaging stamp include production information two dimensional code, and
On the construction equipment of assembly line dispose camera two dimensional code is scanned to obtain production information, can be improved production efficiency with
And the normalization of production, reduce the probability for production accident occur.
But due to varying in color for product on production line surfactant package, when two dimensional code is by laser printing to product surface,
The color of surfactant package namely the background color of two-dimension code area, the reading of meeting image two dimensional code, such as background color are more bright Huangs
When color, reflective material can make camera be difficult to two dimensional code of focusing, or there are one in the color of background color and two dimensional code itself
Determine degree it is close when, camera is also difficult to information in two dimensional code.
Existing technology, if encountering the two dimensional code being difficult to, will use image processing means pair when scanning the two-dimensional code
Two dimensional code is handled, and to identify the information in two dimensional code as far as possible, but this way needs Built-in Image algorithm, in face of specific
Background color when, need accordingly to research and develop different algorithms, development cost is larger, and can not solve the image in 2 D code sheet of initial acquisition
Body is because there is flaw in colour mixture, and there are biggish limitations.
Summary of the invention
In order to overcome the above technical defects, the present invention provide it is a kind of based on background color identification two-dimensional code scanning method and be
System can be directed to the two dimensional code of different background colors, improve the picture quality of the initial pictures for the two dimensional code that scanning means obtains, thus
Scanning means is substantially increased to the recognition efficiency of two dimensional code.
To solve the above-mentioned problems, the present invention is achieved by following technical scheme:
A kind of two-dimensional code scanning method based on background color identification, comprising the following steps:
Obtain the background color of two dimensional code region;The background color is the image face in the region in addition to two dimensional code itself
Color;
According to the background color, set information is generated by preset scanning rule;The set information is for setting two dimension
The sweep parameter of code scanning means;The sweep parameter includes the photographic parameter of camera and the light source parameters of secondary light source;
The set information is sent to the two-dimensional code scanning device, so that the two-dimensional code scanning device is according to
After set information carries out parameter setting, the two dimensional code is scanned.
Compared with the existing technology, this method has the beneficial effect that
This method is obtained by the background color to two-dimension code area, and is joined according to different background colors to the photography of camera
Several and secondary light source light source parameters are adjusted, so that scanning means is under the conditions of optimal scanning circumstance to image in 2 D code
It is obtained, the two dimensional code of different background colors can be directed to, improve the image matter of the initial pictures for the two dimensional code that scanning means obtains
Amount, to substantially increase scanning means to the recognition efficiency of two dimensional code.
This method further improvement lies in that, the photographic parameter include camera time for exposure and interior lighting switch
One or both of;The light source parameters include one of the switch of secondary light source, photochromic and brightness or a variety of.By right
The multiple parameters of camera and secondary light source are set, and can more targetedly be constructed and be adapted to for the two dimensional code of different background colors
Scanning circumstance.
This method further improvement lies in that, the scanning rule pass through following steps set:
The light source parameters of photographic parameter and secondary light source to camera carry out within a preset range continuous value obtain it is more
A testing program, and multiple testing programs of the multiple testing programs and light source parameters to camera parameter be combined to be formed it is multiple
Sweeping scheme;
It takes multiple scan to obtain multiple recognition result according to image in 2 D code of multiple sweeping schemes to different background colors;
Obtain the identification that identification decision rule is best suitable in the multiple recognition result of the image in 2 D code of each background color
As a result corresponding sweeping scheme;
The sweeping scheme is set as to the output set information of corresponding background color.
Scanning rule is set through the above steps, it can be preceding to different sweeping scheme progress trial and errors and sieve in formal application
Choosing, thus filter out optimal sweeping scheme for each background color and stored, it is subsequent only to choose background color automatically in application
Corresponding sweeping scheme is exported, and scheduling and planning cost is reduced.
This method further improvement lies in that, identification decision rule are as follows: recognition time is shortest and/or discrimination most
High recognition result is to meet item.
This method further improvement lies in that, in the set information of output, the secondary light source be open when, it is described
For the interior lighting switch of camera to close, the purpose of this setting is to prevent two kinds of light sources while opening to form excessive illumination
Brightness, or the photochromic auxiliaring effect of secondary light source is influenced because interior lighting switches on, to ensure that lighting environment
Brightness it is normal, and guarantee secondary light source fill-in light can achieve good floor light effect.
This method further improvement lies in that, the scanning rule includes:
When the background color is yellow, red, green or when black, the camera interior lighting is closed, when the exposure
Between for 510 μ s, the secondary light source is opened, photochromic for blue;
When the background color is blue, the camera interior lighting is opened, and the time for exposure is 455 μ s, described auxiliary
Light source is helped to close.
Through overtesting, the two-dimension code area of different background colors sets scanning means using above-mentioned scanning rule, it can
To reach good scanning effect, scanning speed is fast, high-efficient.
The present invention is also corresponding to disclose a kind of two-dimensional code scanning system based on background color identification, comprising:
Background color acquisition device, for obtaining the background color of two dimensional code region;The background color is in the region except two dimension
Color of image outside code book body;
Setting information generator apparatus, for generating set information by preset scanning rule according to the background color;It is described
Set information is used to set the sweep parameter of two-dimensional code scanning device;The sweep parameter includes the photographic parameter of camera and auxiliary
Help the light source parameters of light source;
Set information sending device, for the set information to be sent to the two-dimensional code scanning device, so that described
After two-dimensional code scanning device carries out parameter setting according to the set information, the two dimensional code is scanned.
Compared with the existing technology, this system has the beneficial effect that
This system is obtained by the background color to two-dimension code area, and is joined according to different background colors to the photography of camera
Several and secondary light source light source parameters are adjusted, so that scanning means is under the conditions of optimal scanning circumstance to image in 2 D code
It is obtained, the two dimensional code of different background colors can be directed to, improve the image matter of the initial pictures for the two dimensional code that scanning means obtains
Amount, to substantially increase scanning means to the recognition efficiency of two dimensional code.
This system further improvement lies in that, the photographic parameter include camera time for exposure and interior lighting switch
One or both of;The light source parameters include one of the switch of secondary light source, photochromic and brightness or a variety of.By right
The multiple parameters of camera and secondary light source are set, and can more targetedly be constructed and be adapted to for the two dimensional code of different background colors
Scanning circumstance.
This system further improvement lies in that, further include scanning rule setting device, comprising:
Scheme composite module, light source parameters for photographic parameter and secondary light source to camera within a preset range into
The continuous value of row obtains multiple testing programs, and multiple testing programs of the multiple testing programs and light source parameters to camera parameter
It is combined to form multiple sweeping schemes;
As a result module is obtained, is repeatedly swept for obtaining according to image in 2 D code of multiple sweeping schemes to different background colors
It retouches to obtain multiple recognition result;
As a result screening module is best suitable for knowledge in the multiple recognition result of the image in 2 D code for obtaining each background color
Sweeping scheme corresponding to the recognition result of other decision rule;
Setting module, for the sweeping scheme to be set as to the output set information of corresponding background color.
Scanning rule is set by above-mentioned scanning rule setting device, it can be preceding to different sweeping schemes in formal application
Trial and error and screening are carried out, thus filter out optimal sweeping scheme for each background color and stored, it is subsequent only to be needed in application
The automatic corresponding sweeping scheme of background color of choosing is exported, and scheduling and planning cost is reduced.
This system further improvement lies in that, identification decision rule are as follows: recognition time is shortest and/or discrimination most
High recognition result is to meet item.
This system further improvement lies in that, in the set information of output, the secondary light source be open when, it is described
For the interior lighting switch of camera to close, the purpose of this setting is to prevent two kinds of light sources while opening to form excessive illumination
Brightness, or the photochromic auxiliaring effect of secondary light source is influenced because interior lighting switches on, to ensure that lighting environment
Brightness it is normal, and guarantee secondary light source fill-in light can achieve good floor light effect.
This system further improvement lies in that, the scanning rule includes:
When the background color is yellow, red, green or when black, the camera interior lighting is closed, when the exposure
Between for 510 μ s, the secondary light source is opened, photochromic for blue;
When the background color is blue, the camera interior lighting is opened, and the time for exposure is 455 μ s, described auxiliary
Light source is helped to close.
Through overtesting, the two-dimension code area of different background colors sets scanning means using above-mentioned scanning rule, it can
To reach good scanning effect, scanning speed is fast, high-efficient.
Detailed description of the invention
Fig. 1 is the step schematic diagram of the two-dimensional code scanning method based on background color identification described in the embodiment of the present invention 1;
Fig. 2 is the step schematic diagram that scanning rule is set described in the embodiment of the present invention 1;
Fig. 3 is the functional module signal of the two-dimensional code scanning system based on background color identification described in the embodiment of the present invention 2
Figure;
Fig. 4 is the functional block diagram of scanning rule setting device 4 described in the embodiment of the present invention 2.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Embodiment 1
As shown in Figure 1, the present embodiment 1 discloses a kind of two-dimensional code scanning method based on background color identification, including following step
It is rapid:
S1, the background color for obtaining two dimensional code region;
Specifically, background color refers to the color of image in region in addition to two dimensional code itself;
Specifically, the background color of two dimensional code region can be identified to obtain by image recognition algorithm, it can also be pre-
The two dimensional code substrate of a variety of background color printings is first designed, and the information of background color is first passed through into human-computer interaction device input in advance;
, can be with the beer cartons of pre-designed different colours for example, in the production process of beer cartons, and it will be two-dimentional
Code is printed upon on carton, meanwhile, guarantee that the carton color type of same production line is consistent, and by the corresponding carton color of production line
It is input in identifying system, as long as subsequent obtain this information.
S2, according to background color, pass through preset scanning rule and generate set information;
Specifically, set information is used to set the sweep parameter of two-dimensional code scanning device;Sweep parameter includes camera
The light source parameters of photographic parameter and secondary light source;
Specifically, photographic parameter includes one or both of time for exposure and interior lighting switch of camera;Light source
Parameter includes one of the switch of secondary light source, photochromic and brightness or a variety of.
Specifically, as shown in Fig. 2, scanning rule can be set by following steps:
S21, it continuous value is carried out to the photographic parameter of camera and the light source parameters of secondary light source within a preset range obtains
Multiple testing programs of multiple testing programs and light source parameters to multiple testing programs, and to camera parameter are combined to be formed
Multiple sweeping schemes;For example, the time for exposure of camera is continuous by the interval of 10 μ s within the scope of this in 200 μ s to 600 μ s
Value obtains 40 test exposure times, then by the switch of secondary light source to open and be not turned on to obtain two light source test ginsengs
Number, so as to combine to form 80 sweeping schemes by 40 test exposure times and two light source test parameters;
S22, take multiple scan to obtain repeatedly identification knot according to image in 2 D code of multiple sweeping schemes to different background colors
Fruit;
Specifically, obtaining scanning result each time all obtains discrimination and recognition time, discrimination and recognition time are obtained
Taking can be read by the software connecting with probe;
S23, the image in 2 D code for obtaining each background color multiple recognition result in be best suitable for the identification of identification decision rule
As a result corresponding sweeping scheme;Specifically in the present embodiment, identification decision rule are as follows: recognition time is shortest and/or knows
The highest recognition result of rate is not to meet item.
S24, the output set information that sweeping scheme is set as to corresponding background color.
Scanning rule is set through the above steps, it can be preceding to different sweeping scheme progress trial and errors and sieve in formal application
Choosing, thus filter out optimal sweeping scheme for each background color and stored, it is subsequent only to choose background color automatically in application
Corresponding sweeping scheme is exported.
Specifically in the present embodiment, following setting is carried out to the set information of output:
Secondary light source is when opening, and the interior lighting switch of camera is closing.
The purpose of this setting is to prevent two kinds of light sources while opening to form excessive brightness of illumination, or because interior lighting is opened
The unlatching of pass and the photochromic auxiliaring effect for influencing secondary light source, thus ensure that the brightness of lighting environment is normal, Yi Jibao
The fill-in light of card secondary light source can achieve good floor light effect.
Specifically in the present embodiment, by screening obtained scanning rule are as follows:
When background color is yellow, red, green or when black, camera interior lighting is closed, and the time for exposure is 510 μ s, auxiliary
Light source is helped to open, it is photochromic for blue;
When background color is blue, camera interior lighting is opened, and the time for exposure is 455 μ s, and secondary light source is closed.
Through overtesting, the two-dimension code area of different background colors sets scanning means using above-mentioned scanning rule, it can
To reach good scanning effect, scanning speed is fast, high-efficient.
S3, set information is sent to two-dimensional code scanning device, so that two-dimensional code scanning device is carried out according to set information
After parameter setting, two dimensional code is scanned.
Two-dimensional code scanning method disclosed in the present embodiment is obtained by the background color to two-dimension code area, and according to not
Same background color is adjusted the photographic parameter of camera and the light source parameters of secondary light source, so that scanning means is swept optimal
It retouches and image in 2 D code is obtained under environmental condition, the two dimensional code of different background colors can be directed to, improve what scanning means obtained
The picture quality of the initial pictures of two dimensional code, to substantially increase scanning means to the recognition efficiency of two dimensional code.
Embodiment 2
As shown in figure 3, the present embodiment corresponds to the two-dimensional code scanning method based on background color identification in embodiment 1, it is open
A kind of two-dimensional code scanning system based on background color identification, comprising:
Background color acquisition device 1, for obtaining the background color of two dimensional code region;Background color be region in addition to two dimensional code itself
Color of image;Specifically, background color acquisition device can be the equipment for being built-in with image recognition algorithm, it is also possible to human-computer interaction
Device, by the way that background color information is manually entered;
Specifically, the background color of two dimensional code region can be identified to obtain by image recognition algorithm, it can also be pre-
The two dimensional code substrate of a variety of background color printings is first designed, and the information of background color is first passed through into human-computer interaction device input in advance;
, can be with the beer cartons of pre-designed different colours for example, in the production process of beer cartons, and it will be two-dimentional
Code is printed upon on carton, meanwhile, guarantee that the carton color type of same production line is consistent, and by the corresponding carton color of production line
It is input in identifying system, as long as subsequent obtain this information.
Setting information generator apparatus 2, for generating set information by preset scanning rule according to background color;Setting letter
Cease the sweep parameter for setting two-dimensional code scanning device;Sweep parameter includes the photographic parameter of camera and the light of secondary light source
Source parameter;
Specifically, photographic parameter includes one or both of time for exposure and interior lighting switch of camera;Light source
Parameter includes one of the switch of secondary light source, photochromic and brightness or a variety of.By to the multiple of camera and secondary light source
Parameter is set, the scanning circumstance that can more targetedly adapt to for the two dimensional code building of different background colors.
Set information sending device 3, for set information to be sent to two-dimensional code scanning device, so that two-dimensional code scanning fills
It sets after carrying out parameter setting according to set information, two dimensional code is scanned.
Scanning rule setting device 4, as shown in figure 4, comprising:
Scheme composite module 41, the light source parameters for photographic parameter and secondary light source to camera are within a preset range
It carries out continuous value and obtains multiple testing programs, and multiple test sides of the multiple testing programs and light source parameters to camera parameter
Case is combined to form multiple sweeping schemes;For example, the time for exposure of camera is pressed within the scope of this in 200 μ s to 600 μ s
The continuous value in interval of 10 μ s obtains 40 test exposure times, then the switch of secondary light source is obtained two to open and be not turned on
A light source test parameters, so as to combine to form 80 scanning sides by 40 test exposure times and two light source test parameters
Case;
As a result module 42 is obtained, is carried out repeatedly for obtaining according to image in 2 D code of multiple sweeping schemes to different background colors
Scanning obtains multiple recognition result;Specifically, result, which obtains module 42, all obtains discrimination when obtaining scanning result each time
And recognition time;
As a result screening module 43 are best suitable for identification in the multiple recognition result of the image in 2 D code for obtaining each background color
Sweeping scheme corresponding to the recognition result of decision rule;Specifically, identification decision is regular are as follows: recognition time it is shortest and/or
The highest recognition result of discrimination is to meet item.
Setting module 44, for sweeping scheme to be set as to the output set information of corresponding background color.Specifically, output is set
Determine in information, secondary light source is when opening, and for the interior lighting switch of camera to close, the purpose of this setting is to prevent two kinds
Light source is opened to form excessive brightness of illumination simultaneously, or influences the photochromic auxiliary of secondary light source because interior lighting switches on
Effect is helped, to ensure that the brightness of lighting environment is normal, and to guarantee that the fill-in light of secondary light source can achieve good
Floor light effect.
Scanning rule is set by scanning rule setting device disclosed above, different can be swept before formal application
It retouches scheme and carries out trial and error and screening, thus filter out optimal sweeping scheme for each background color and stored, it is subsequent to apply
When only need to choose the corresponding sweeping scheme of background color automatically and exported.
In specific the present embodiment, include: by the scanning rule that the result screening module 43 screening obtains
When background color is yellow, red, green or when black, camera interior lighting is closed, and the time for exposure is 510 μ s, auxiliary
Light source is helped to open, it is photochromic for blue;
When background color is blue, camera interior lighting is opened, and the time for exposure is 455 μ s, and secondary light source is closed.
Through overtesting, the two-dimension code area of different background colors sets scanning means using above-mentioned scanning rule, it can
To reach good scanning effect, scanning speed is fast, high-efficient.
Background color is based on disclosed in two-dimensional code scanning system and embodiment 1 based on background color identification disclosed in the present embodiment
The two-dimensional code scanning method of identification is corresponding, and specific technical detail is also similar with technical effect, and details are not described herein.
More than, it is only presently preferred embodiments of the present invention, is not intended to limit the present invention in any form, thus it is all
Without departing from technical solution of the present invention content, any modification to the above embodiments, equivalent according to the technical essence of the invention
Variation and modification, still fall within the range of technical solution of the present invention.
Claims (10)
1. a kind of two-dimensional code scanning method based on background color identification, which comprises the following steps:
Obtain the background color of two dimensional code region;The background color is the color of image in the region in addition to two dimensional code itself;
According to the background color, set information is generated by preset scanning rule;The set information is swept for setting two dimensional code
The sweep parameter of imaging apparatus;The sweep parameter includes the photographic parameter of camera and the light source parameters of secondary light source;
The set information is sent to the two-dimensional code scanning device, so that the two-dimensional code scanning device is according to the setting
After information carries out parameter setting, the two dimensional code is scanned.
2. the two-dimensional code scanning method according to claim 1 based on background color identification, which is characterized in that the photographic parameter
One or both of time for exposure and interior lighting switch including camera;The light source parameters include opening for secondary light source
One of pass, photochromic and brightness are a variety of.
3. the two-dimensional code scanning method according to claim 1 based on background color identification, which is characterized in that the scanning rule
It is set by following steps:
The light source parameters of photographic parameter and secondary light source to camera carry out continuous value within a preset range and obtain multiple examinations
Proved recipe case, and multiple testing programs of the multiple testing programs and light source parameters to camera parameter are combined to form multiple scannings
Scheme;
It takes multiple scan to obtain multiple recognition result according to image in 2 D code of multiple sweeping schemes to different background colors;
Obtain the recognition result that identification decision rule is best suitable in the multiple recognition result of the image in 2 D code of each background color
Corresponding sweeping scheme;
The sweeping scheme is set as to the output set information of corresponding background color.
4. the two-dimensional code scanning method according to claim 3 based on background color identification, which is characterized in that the identification decision
Rule are as follows: recognition time is shortest and/or the highest recognition result of discrimination is to meet item.
5. the two-dimensional code scanning method according to claim 3 based on background color identification, which is characterized in that the scanning rule
Include:
When the background color is yellow, red, green or when black, the camera interior lighting is closed, and the time for exposure is
510 μ s, the secondary light source are opened, photochromic for blue;
When the background color is blue, the camera interior lighting is opened, and the time for exposure is 455 μ s, the fill-in light
Source is closed.
6. a kind of two-dimensional code scanning system based on background color identification characterized by comprising
Background color acquisition device, for obtaining the background color of two dimensional code region;The background color is in the region except two-dimentional code book
Color of image outside body;
Setting information generator apparatus, for generating set information by preset scanning rule according to the background color;The setting
Information is used to set the sweep parameter of two-dimensional code scanning device;The sweep parameter includes the photographic parameter and fill-in light of camera
The light source parameters in source;
Set information sending device, for the set information to be sent to the two-dimensional code scanning device, so that the two dimension
After code scanning means carries out parameter setting according to the set information, the two dimensional code is scanned.
7. the two-dimensional code scanning system according to claim 6 based on background color identification, which is characterized in that the photographic parameter
One or both of time for exposure and interior lighting switch including camera;The light source parameters include opening for secondary light source
One of pass, photochromic and brightness are a variety of.
8. the two-dimensional code scanning system according to claim 6 based on background color identification, which is characterized in that further include scanning rule
Then setting device, comprising:
Scheme composite module, the light source parameters for photographic parameter and secondary light source to camera connect within a preset range
Continuous value obtains multiple testing programs, and multiple testing programs of the multiple testing programs and light source parameters to camera parameter carry out
Combination forms multiple sweeping schemes;
As a result module is obtained, is taken multiple scan for obtaining according to image in 2 D code of multiple sweeping schemes to different background colors
To multiple recognition result;
As a result screening module is best suitable for identification in the multiple recognition result of the image in 2 D code for obtaining each background color and sentences
Sweeping scheme corresponding to the recognition result of set pattern then;
Setting module, for the sweeping scheme to be set as to the output set information of corresponding background color.
9. the two-dimensional code scanning system according to claim 8 based on background color identification, which is characterized in that the identification decision
Rule are as follows: recognition time is shortest and/or the highest recognition result of discrimination is to meet item.
10. the two-dimensional code scanning system according to claim 8 based on background color identification, which is characterized in that the scanning rule
Then include:
When the background color is yellow, red, green or when black, the camera interior lighting is closed, and the time for exposure is
510 μ s, the secondary light source are opened, photochromic for blue;
When the background color is blue, the camera interior lighting is opened, and the time for exposure is 455 μ s, the fill-in light
Source is closed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910757505.5A CN110472455A (en) | 2019-08-16 | 2019-08-16 | A kind of two-dimensional code scanning method and system based on background color identification |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910757505.5A CN110472455A (en) | 2019-08-16 | 2019-08-16 | A kind of two-dimensional code scanning method and system based on background color identification |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110472455A true CN110472455A (en) | 2019-11-19 |
Family
ID=68510132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910757505.5A Pending CN110472455A (en) | 2019-08-16 | 2019-08-16 | A kind of two-dimensional code scanning method and system based on background color identification |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110472455A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113486687A (en) * | 2021-07-14 | 2021-10-08 | 福建迦百农信息技术有限公司 | Cigarette packing box code spraying information identification method and storage medium thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012191551A (en) * | 2011-03-14 | 2012-10-04 | Ricoh Co Ltd | Image processing device, image processing method, image forming device, program, and recording medium |
CN104680110A (en) * | 2014-07-03 | 2015-06-03 | 赫盛光电(上海)有限公司 | Method for learning optimized bar code scanning parameters of bar code reader and bar code reader |
CN106941579A (en) * | 2017-03-03 | 2017-07-11 | 东软集团股份有限公司 | The method and device of image scanning |
CN107220578A (en) * | 2017-05-31 | 2017-09-29 | 维沃移动通信有限公司 | A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium |
CN107914468A (en) * | 2017-03-05 | 2018-04-17 | 黄燕云 | Quick Response Code generation system, reading device |
-
2019
- 2019-08-16 CN CN201910757505.5A patent/CN110472455A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012191551A (en) * | 2011-03-14 | 2012-10-04 | Ricoh Co Ltd | Image processing device, image processing method, image forming device, program, and recording medium |
CN104680110A (en) * | 2014-07-03 | 2015-06-03 | 赫盛光电(上海)有限公司 | Method for learning optimized bar code scanning parameters of bar code reader and bar code reader |
CN106941579A (en) * | 2017-03-03 | 2017-07-11 | 东软集团股份有限公司 | The method and device of image scanning |
CN107914468A (en) * | 2017-03-05 | 2018-04-17 | 黄燕云 | Quick Response Code generation system, reading device |
CN107220578A (en) * | 2017-05-31 | 2017-09-29 | 维沃移动通信有限公司 | A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113486687A (en) * | 2021-07-14 | 2021-10-08 | 福建迦百农信息技术有限公司 | Cigarette packing box code spraying information identification method and storage medium thereof |
CN113486687B (en) * | 2021-07-14 | 2024-02-20 | 福建迦百农信息技术有限公司 | Code spraying information identification method for cigarette packaging box and storage medium thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107944504B (en) | Board recognition and machine learning method and device for board recognition and electronic equipment | |
US5335292A (en) | Document processing system and method | |
US8593707B2 (en) | Image reading apparatus, image data output processing apparatus, and image reading method performing color correction based on UV and visible light | |
CN106412361B (en) | image reading device | |
CN113034488B (en) | Visual inspection method for ink-jet printed matter | |
CN104819984A (en) | Inspection apparatus and inspection method for appearance of printed circuit board | |
EP0231941A2 (en) | Method for inspection of printed circuit board assembly by arithmetic comparison of several pictures in different colours | |
CN110472455A (en) | A kind of two-dimensional code scanning method and system based on background color identification | |
JP5085860B2 (en) | Wood inspection method, apparatus and program | |
CN108391029A (en) | Original document reading apparatus and image processing apparatus | |
CN103037130A (en) | Image forming apparatus and image forming method | |
US7324243B2 (en) | Fluorescent color scanning method for use in a scanner | |
PL172255B1 (en) | Method of classifying image elements as represented by a colour image reproducing system in respect to their colouring and system for reproducing colour images using that method | |
CN1179752A (en) | Machine-readable label | |
CN105282354B (en) | Image-reading device and image forming apparatus | |
US7483045B2 (en) | Printing apparatus | |
CN108462811A (en) | Image processing apparatus and image processing method | |
CN115494062A (en) | Printing method for identifying defects based on machine vision | |
CN114611863A (en) | E-commerce product packaging quality detection method based on big data | |
DE112020006158T5 (en) | Image good/bad learning device, image good/bad determining device and image reading device | |
CA2090449C (en) | Image processing apparatus | |
CN101472036A (en) | Image processing method capable of removing flaw and device applied the method | |
KR20040055471A (en) | Method for detecting defect of wafer | |
JPH0439789A (en) | Reader | |
JP3097067B2 (en) | Printing inspection device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191119 |