CN115220286B - Code scanning engine scanning method and system, code scanning equipment and storage medium - Google Patents
Code scanning engine scanning method and system, code scanning equipment and storage medium Download PDFInfo
- Publication number
- CN115220286B CN115220286B CN202210840725.6A CN202210840725A CN115220286B CN 115220286 B CN115220286 B CN 115220286B CN 202210840725 A CN202210840725 A CN 202210840725A CN 115220286 B CN115220286 B CN 115220286B
- Authority
- CN
- China
- Prior art keywords
- signal
- strobe signal
- exposure signal
- adjustment
- exposure
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000001502 supplementing effect Effects 0.000 claims abstract description 63
- 230000000630 rising effect Effects 0.000 claims description 55
- 230000003111 delayed effect Effects 0.000 claims description 8
- 238000005286 illumination Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 description 18
- 230000001934 delay Effects 0.000 description 9
- 238000002310 reflectometry Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 239000002390 adhesive tape Substances 0.000 description 4
- 239000002184 metal Substances 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000002035 prolonged effect Effects 0.000 description 3
- 239000013589 supplement Substances 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B15/00—Special procedures for taking photographs; Apparatus therefor
- G03B15/02—Illuminating scene
- G03B15/03—Combinations of cameras with lighting apparatus; Flash units
- G03B15/05—Combinations of cameras with electronic flash apparatus; Electronic flash units
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B30/00—Camera modules comprising integrated lens units and imaging units, specially adapted for being embedded in other devices, e.g. mobile phones or vehicles
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Facsimile Scanning Arrangements (AREA)
- Image Input (AREA)
Abstract
The invention provides a scanning method and a system of a code scanning engine, code scanning equipment and a storage medium, wherein the method comprises the following steps: receiving an exposure signal sent by the CAM module; and outputting a STROBE signal with time sequence lag compared with the exposure signal to the light supplementing lamp driving module, so that the light supplementing lamp driving module controls the light supplementing lamp to be turned on and off according to the STROBE signal. According to the scheme, the MCU is arranged to receive the exposure signal sent by the CAM module, and the STROBE signal with the time sequence lagging compared with the exposure signal is output to the light supplementing lamp driving module according to the time sequence of the exposure signal, so that the light supplementing lamp driving module can control the light supplementing lamp to be on or off according to the optimized STROBE signal, the on-off time sequence of light supplementing illumination can be freely adjusted according to actual requirements, and the code scanning failure caused by the fact that a reflecting light spot of the light supplementing lamp is shot when the code scanning engine shoots and takes a picture is avoided.
Description
Technical Field
The invention relates to the technical field of code scanning, in particular to a code scanning engine scanning method, a code scanning system, code scanning equipment and a storage medium.
Background
The light-compensating lamp control of most of the code scanning engines in the market is related to the exposure signal of the CAM module, and the light-compensating time length and the brightness are related to the length of the exposure signal. Generally, when the CAM module takes a photograph and exposes, it will output its exposure indication signal led_out, and the scan engine will control the light supplementing time or brightness by using the led_out signal of the CAM module. When the code is scanned normally, the effect and the efficiency of scanning the code are well assisted by the illumination of the light supplementing lamp, but when some scenes with higher bar code background reflectivity are encountered, such as bar code backgrounds of a mobile phone screen, metal, an adhesive tape and the like, the code scanning failure is caused by covering the bar code by a reflection light spot of the light supplementing lamp when the code scanning engine shoots and takes a picture.
The current common solution is to set a special scanning mode, and actively turn off the light compensating lamp to scan the bar code when the user scans the bar code on the high-reflectivity background such as the mobile phone screen. But this mode is intelligent enough, causes the code scanning failure easily, and user experience is not good.
Disclosure of Invention
The invention aims to provide a scanning method and system of a code scanning engine, code scanning equipment and a storage medium, and solves the problems that in the prior art, when a bar code on a high-reflectivity background such as a mobile phone screen is scanned, the intelligent scanning is not enough and the code scanning failure is easy to cause.
The technical scheme provided by the invention is as follows:
the invention provides a scanning method of a code scanning engine, which comprises the following steps:
receiving an exposure signal sent by the CAM module;
and outputting a STROBE signal with time sequence lag compared with the exposure signal to the light supplementing lamp driving module, so that the light supplementing lamp driving module controls the light supplementing lamp to be turned on and off according to the STROBE signal.
In the prior art, the light-compensating lamp is usually controlled to be turned on and off by directly outputting an exposure signal led_out of the CAM module as a STROBE signal of the STROBE driving module, and at this time, the on and off of the STROBE is completely synchronous with the led_out output by the CAM module. However, when the method encounters some scenes with higher reflectivity of the barcode background, such as the barcode background of a mobile phone screen, metal, adhesive tape and the like, the barcode scanning failure is caused by the fact that the reflective light spots of the light compensating lamps cover the barcodes when the barcode scanning engine shoots and takes a picture.
According to the scheme, the MCU is arranged to receive the exposure signal sent by the CAM module, and the STROBE signal with the time sequence lagging compared with the exposure signal is output to the light supplementing lamp driving module according to the time sequence of the exposure signal, so that the light supplementing lamp driving module can control the light supplementing lamp to be on or off according to the optimized STROBE signal, the on-off time sequence of light supplementing illumination can be freely adjusted according to actual requirements, and the code scanning failure caused by the fact that a reflecting light spot of the light supplementing lamp is shot when the code scanning engine shoots and takes a picture is avoided.
In some embodiments, the outputting, to the light filling lamp driving module, a STROBE signal with a timing lag compared to the exposure signal specifically includes:
and after delaying for a preset time length, outputting a STROBE signal with time sequence lag compared with the exposure signal to the light filling lamp driving module.
After the delay preset time length, outputting a STROBE signal with time sequence lag compared with the exposure signal to the light filling lamp driving module, wherein the method specifically comprises the following steps of:
presetting and adjusting rising edges;
outputting the STROBE signal with the same time sequence as the exposure signal to the light supplementing lamp driving module before reaching the adjusting rising edge;
and when the adjustment rising edge is reached, outputting the STROBE signal with time sequence lag of a preset time length compared with the exposure signal to the light supplementing lamp driving module.
The preset adjusting rising edge specifically comprises the following steps:
acquiring a frame image of the exposure signal;
acquiring the STROBE signal corresponding to the frame image of the exposure signal according to the frame image of the exposure signal;
presetting an Nth pulse of the STROBE signal as an adjustment pulse, wherein the rising edge of the adjustment pulse is the adjustment rising edge, and the adjustment rising edge is delayed by a preset time length compared with the rising edge time sequence of the corresponding pulse of the exposure signal.
Generally, according to the self-performance of the image sensor in the code scanning head and the setting of software, different frame rates can be set, and the higher the frame rate is, the faster the drawing and transmission are, and the higher the system requirement is; a low frame rate may mean that the drawing and transmission become slow under the same conditions, and the code scanning speed becomes slow. For example, with a frame rate of 60Hz, this means that there are 60 exposure periods and 60 patterns within 1s, each exposure means that one led_out signal is pulled high, and the duration of one led_out signal in one period is the duration of the sensor exposure. The number of pulses required for completing one code scanning is not necessarily required, because whether the code scanning is successful or not is related to conditions such as picture capturing quality, decoding algorithm, operation speed and the like, when the code scanning is performed in an ideal state, the first frame can directly capture picture OK, then the processing time such as decoding is considered, and when the processing time is about three frames and four frames, the decoding result is obtained, and when the code scanning is performed once, three pulses and four pulses are possible. If the bar code is difficult to identify or other factors cause the code scanning decoding time to be prolonged, the pulse number is greatly increased (for example, if the bar code is on the surface with higher reflectivity, the image can not be accurately identified and decoded because of the reflected light of the light compensating light spot of the scanning terminal, and the image can be repeatedly taken and decoded; the adjustment is not started from the first frame to give consideration to normal code scanning, because the adjustment in the scheme actually delays the exposure signal, that is, delays the opening of the light filling lamp, so that no light filling spot exists when the images are taken, and the adjustment can influence the image taking of most normal background bar codes (because the images are taken without light filling and the decoding speed is influenced). Therefore, the adjustment is carried out from a certain frame at the back, so that the scanning and image taking of the previous frames can be ensured to be illuminated by the light filling, in general, the image taking of the previous frames can be basically and normally successfully decoded, if other abnormal problems caused by the non-reflection of the bar code cannot be decoded, the scanning time is not always solved even if the scanning time is increased, if the scanning and image taking is caused by the reflection, the image taking sensor is prevented from grabbing the reflected light of the light filling light spot by delaying the output of the light filling lamp, and the problem that the image taking cannot be decoded caused by the reflection can be well avoided. The specific timing delay preset duration may be determined based on experience, device performance, and the like.
In the specific implementation, firstly, the rising edge is preset and adjusted according to experience, equipment performance and the like, and before the rising edge is adjusted, a STROBE signal which is the same as the exposure signal time sequence, namely, a non-adjusted STROBE signal is output to the light supplementing lamp driving module; when the rising edge is adjusted, a STROBE signal with the time sequence delayed by a preset time length compared with the exposure signal is output to the light supplementing lamp driving module, so that the delay exposure of the light supplementing lamp is realized.
In some embodiments, the timing of the falling edge of each pulse of the STROBE signal is the same as the timing of the falling edge of each pulse of the exposure signal.
Specifically, in order to ensure that the code scanning efficiency and the change of the light compensation brightness are not obvious, the adjusted STROBE signal and the non-adjusted STROBE signal should ensure that the time sequence of the falling edge of each pulse is the same, so that the integral change is not large, and only the light compensation lamp delays exposure at a certain moment.
In some embodiments, the number of the adjustment pulse edges is a plurality;
and outputting the STROBE signal with the same time sequence as the exposure signal to the light supplementing lamp driving module between the adjacent adjusting pulses.
To avoid unsuccessful one-time delay exposure scanning, multiple adjustment pulses and adjustment rising edges may be set, with the MCU outputting a normal, unregulated STROBE signal to the light filling lamp driving module between adjacent adjustment pulses.
In addition, the invention also provides a scanning system of the code scanning engine, which comprises the following steps:
the receiving module is used for receiving the exposure signal sent by the CAM module;
and the output module is used for outputting a STROBE signal with time sequence lag compared with the exposure signal to the light supplementing lamp driving module, so that the light supplementing lamp driving module controls the light supplementing lamp to be turned on and off according to the STROBE signal.
In some embodiments, the output module includes:
a presetting unit, configured to obtain a frame image of the exposure signal, obtain, according to the frame image of the exposure signal, the STROBE signal corresponding to the frame image of the exposure signal, and preset an nth pulse of the STROBE signal as an adjustment pulse, where a rising edge of the adjustment pulse is the adjustment rising edge, and the adjustment rising edge lags by a preset time period compared with a rising edge timing of a corresponding pulse of the exposure signal;
the first output unit is used for outputting the STROBE signal with the same time sequence as the exposure signal to the light filling lamp driving module before reaching the adjustment rising edge;
a second output unit configured to output, to the light-compensating lamp driving module, the STROBE signal having a timing lag by a preset period of time from the exposure signal when the adjustment rising edge is reached;
the time sequence of the falling edge of each pulse of the STROBE signal is the same as the time sequence of the falling edge of each pulse of the exposure signal;
the number of the adjusting pulses is a plurality of;
the output module further includes:
and a third output unit, configured to output, to the light compensating lamp driving module, the STROBE signal having the same timing as the exposure signal between adjacent adjustment pulses.
In addition, the invention also provides code scanning equipment which comprises a memory and a processor,
the memory is used for storing an operating program,
the processor is used for executing the running program stored in the memory to realize the operation executed by the scanning method of the code scanning engine.
The invention also provides a storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to realize the operation executed by the code scanning engine scanning method.
According to the scanning method, the system, the code scanning equipment and the storage medium of the code scanning engine, the MCU is arranged to receive the exposure signal sent by the CAM module, and the STROBE signal with the time sequence lagging compared with the exposure signal is output to the light supplementing driving module according to the time sequence of the exposure signal, so that the light supplementing driving module can control the light supplementing to be on and off according to the optimized STROBE signal, the on and off time sequence of the light supplementing illumination can be freely adjusted according to actual requirements, and the code scanning failure caused by the fact that the reflecting light spot of the light supplementing is shot to cover the bar code when the code scanning engine shoots and takes a picture is avoided.
Drawings
The above features, technical features, advantages and implementation modes of the present invention will be further described in the following description of preferred embodiments with reference to the accompanying drawings in a clear and understandable manner.
FIG. 1 is a schematic overall flow diagram of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a prior art light supplement lamp control logic according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the reflected light spots of the light compensating lamp during bar code scanning according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of optimized light supplement lamp control logic according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the ON/OFF control sequence of the optimized front-fill lamp according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the timing sequence of the on/off control of the optimized light supplement lamp according to the embodiment of the present invention;
FIG. 7 is a schematic diagram of a system architecture of an embodiment of the present invention;
fig. 8 is a schematic structural view of the code scanning device of the present invention.
Reference numerals in the drawings: 1-a receiving module; 2-an output module; 21-a preset unit; 22-a first output unit; 23-a second output unit; 24-a third output unit; 100-memory; 200-a processor; 300-a communication interface; 400-a communication bus; 500-input/output interface.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will explain the specific embodiments of the present invention with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the invention, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
For the sake of simplicity of the drawing, the parts relevant to the present invention are shown only schematically in the figures, which do not represent the actual structure thereof as a product. Additionally, in order to simplify the drawing for ease of understanding, components having the same structure or function in some of the drawings are shown schematically with only one of them, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
In one embodiment, referring to fig. 1 of the drawings in the specification, the invention provides a scanning method of a code scanning engine, comprising the steps of:
s1, receiving an exposure signal sent by the CAM module.
The CAM module generally employs a CMOS image sensor for capturing barcode images.
S2, outputting a STROBE signal with a time sequence lag compared with the exposure signal to the light supplementing lamp driving module, so that the light supplementing lamp driving module controls the light supplementing lamp to be turned on and off according to the STROBE signal.
In the prior art, referring to fig. 2 of the drawings, the light-compensating lamp is usually controlled to be turned on and off by directly outputting the light-exposing signal led_out of the CAM module as a STROBE signal of the STROBE driving module, and at this time, the on and off of the STROBE is completely synchronous with the led_out of the CAM module. Referring to fig. 3 of the drawings, when some scenes with higher reflectivity of the barcode background, such as the barcode background of a mobile phone screen, metal, adhesive tape and the like, the barcode scanning failure is caused by the fact that the reflective light spot of the light compensating lamp covers the barcode when the barcode scanning engine shoots and takes a picture.
Referring to the attached figure 4 of the specification, the scheme receives the exposure signal sent by the CAM module by setting the MCU, and outputs the STROBE signal with the time sequence lagging compared with the exposure signal to the light supplementing driving module according to the time sequence of the exposure signal, so that the light supplementing driving module can control the light supplementing to be on or off according to the optimized STROBE signal, the on-off time sequence of the light supplementing illumination can be freely adjusted according to the actual requirement, and the code scanning failure caused by covering the bar code by the reflection light spot of the light supplementing when the code scanning engine shoots and takes a picture is avoided.
In some embodiments, outputting a timing-delayed STROBE signal compared to the exposure signal to the light-filling lamp driving module specifically includes:
and after delaying for a preset time length, outputting a STROBE signal with time sequence lag compared with the exposure signal to the light filling lamp driving module. Specific:
presetting and adjusting rising edges; outputting a STROBE signal with the same time sequence as the exposure signal to the light supplementing lamp driving module before reaching the adjustment rising edge; when the adjustment rising edge is reached, a STROBE signal with a time sequence delayed by a preset time length compared with the exposure signal is output to the light supplementing lamp driving module.
The preset adjustment rising edge specifically comprises the following steps:
acquiring a frame image of an exposure signal;
acquiring a STROBE signal corresponding to the frame image of the exposure signal according to the frame image of the exposure signal;
the N-th pulse of the preset STROBE signal is an adjusting pulse, the rising edge of the adjusting pulse is an adjusting rising edge, and the adjusting rising edge is delayed by a preset time length compared with the rising edge time sequence of the corresponding pulse of the exposure signal.
Referring to fig. 5 and 6 of the drawings in the specification, generally, different frame rates can be set according to the self-performance of an image sensor in a code scanning head and the setting of software, and the higher the frame rate is, the faster the drawing and transmission are, and the higher the system requirement is; a low frame rate may mean that the drawing and transmission become slow under the same conditions, and the code scanning speed becomes slow. For example, with a frame rate of 60Hz, this means that there are 60 exposure periods and 60 patterns within 1s, each exposure means that one led_out signal is pulled high, and the duration of one led_out signal in one period is the duration of the sensor exposure. The number of pulses required for completing one code scanning is not necessarily required, because whether the code scanning is successful or not is related to conditions such as picture capturing quality, decoding algorithm, operation speed and the like, when the code scanning is performed in an ideal state, the first frame can directly capture picture OK, then the processing time such as decoding is considered, and when the processing time is about three frames and four frames, the decoding result is obtained, and when the code scanning is performed once, three pulses and four pulses are possible. If the bar code is difficult to identify or other factors cause the code scanning decoding time to be prolonged, the pulse number is greatly increased (for example, if the bar code is on the surface with higher reflectivity, the image can not be accurately identified and decoded because of the reflected light of the light compensating light spot of the scanning terminal, and the image can be repeatedly taken and decoded; the adjustment is not started from the first frame to give consideration to normal code scanning, because the adjustment in the scheme actually delays the exposure signal, that is, delays the opening of the light filling lamp, so that no light filling spot exists when the images are taken, and the adjustment can influence the image taking of most normal background bar codes (because the images are taken without light filling and the decoding speed is influenced). Therefore, the adjustment is carried out from a certain frame at the back, so that the scanning and image taking of the previous frames can be ensured to be illuminated by the light filling, in general, the image taking of the previous frames can be basically and normally successfully decoded, if other abnormal problems caused by the non-reflection of the bar code cannot be decoded, the scanning time is not always solved even if the scanning time is increased, if the scanning and image taking is caused by the reflection, the image taking sensor is prevented from grabbing the reflected light of the light filling light spot by delaying the output of the light filling lamp, and the problem that the image taking cannot be decoded caused by the reflection can be well avoided. The specific timing delay preset duration may be determined based on experience, device performance, and the like.
In the specific implementation, firstly, the rising edge is preset and adjusted according to experience, equipment performance and the like, and before the rising edge is adjusted, a STROBE signal which is the same as the exposure signal time sequence, namely, a non-adjusted STROBE signal is output to the light supplementing lamp driving module; when the rising edge is adjusted, a STROBE signal with the time sequence delayed by a preset time length compared with the exposure signal is output to the light supplementing lamp driving module, so that the delay exposure of the light supplementing lamp is realized.
In some embodiments, the timing of the falling edge of each pulse of the STROBE signal is the same as the timing of the falling edge of each pulse of the exposure signal.
Specifically, referring to fig. 6 of the specification, in order to ensure that the code scanning efficiency and the change of the light compensation brightness are not obvious, the adjusted STROBE signal and the unadjusted STROBE signal should ensure that the timings of the falling edges of the pulses are the same, so that the overall change is not large, and only the light compensation lamp delays exposure at a certain moment.
In some embodiments, the number of pulses is adjusted to be multiple; and outputting a STROBE signal with the same time sequence as the exposure signal to the light filling lamp driving module between adjacent adjusting pulses.
Referring to fig. 6 of the drawings, in order to avoid unsuccessful one-time delay exposure scanning, a plurality of adjustment pulses and adjustment rising edges may be set, and between adjacent adjustment pulses, the MCU outputs a normal, unregulated STROBE signal to the light filling lamp driving module.
In one embodiment, referring to fig. 7 of the drawings, the invention further provides a code scanning engine scanning system, which comprises a receiving module 1 and an output module 2.
The receiving module 1 is used for receiving the exposure signal sent by the CAM module. The CAM module generally employs a CMOS image sensor for capturing barcode images.
The output module 2 is configured to output a STROBE signal with a timing delay compared with the exposure signal to the STROBE driving module, so that the STROBE driving module controls the STROBE to be turned on and off according to the STROBE signal.
In the prior art, referring to fig. 2 of the drawings, the light-compensating lamp is usually controlled to be turned on and off by directly outputting the light-exposing signal led_out of the CAM module as a STROBE signal of the STROBE driving module, and at this time, the on and off of the STROBE is completely synchronous with the led_out of the CAM module. Referring to fig. 3 of the drawings, when some scenes with higher reflectivity of the barcode background, such as the barcode background of a mobile phone screen, metal, adhesive tape and the like, the barcode scanning failure is caused by the fact that the reflective light spot of the light compensating lamp covers the barcode when the barcode scanning engine shoots and takes a picture.
Referring to the attached figure 4 of the specification, the scheme receives the exposure signal sent by the CAM module by setting the MCU, and outputs the STROBE signal with the time sequence lagging compared with the exposure signal to the light supplementing driving module according to the time sequence of the exposure signal, so that the light supplementing driving module can control the light supplementing to be on or off according to the optimized STROBE signal, the on-off time sequence of the light supplementing illumination can be freely adjusted according to the actual requirement, and the code scanning failure caused by covering the bar code by the reflection light spot of the light supplementing when the code scanning engine shoots and takes a picture is avoided.
In some embodiments, the output module 2 includes a preset unit 2, a first output unit 22, and a second output unit 23.
The preset unit 21 is configured to obtain a frame image of the exposure signal, obtain a STROBE signal corresponding to the frame image of the exposure signal according to the frame image of the exposure signal, preset an nth pulse of the STROBE signal as an adjustment pulse, adjust a rising edge of the adjustment pulse as an adjustment rising edge, and delay the adjustment rising edge by a preset time period compared with a rising edge timing of a corresponding pulse of the exposure signal.
The first output unit 22 is configured to output a STROBE signal having the same timing as the exposure signal to the light filling lamp driving module before reaching the adjustment rising edge; the second output unit 23 is configured to output a STROBE signal having a timing delayed by a preset period of time from the exposure signal to the light filling lamp driving module when the adjustment rising edge is reached.
Referring to fig. 5 and 6 of the drawings in the specification, generally, different frame rates can be set according to the self-performance of an image sensor in a code scanning head and the setting of software, and the higher the frame rate is, the faster the drawing and transmission are, and the higher the system requirement is; a low frame rate may mean that the drawing and transmission become slow under the same conditions, and the code scanning speed becomes slow. For example, with a frame rate of 60Hz, this means that there are 60 exposure periods and 60 patterns within 1s, each exposure means that one led_out signal is pulled high, and the duration of one led_out signal in one period is the duration of the sensor exposure. The number of pulses required for completing one code scanning is not necessarily required, because whether the code scanning is successful or not is related to conditions such as picture capturing quality, decoding algorithm, operation speed and the like, when the code scanning is performed in an ideal state, the first frame can directly capture picture OK, then the processing time such as decoding is considered, and when the processing time is about three frames and four frames, the decoding result is obtained, and when the code scanning is performed once, three pulses and four pulses are possible. If the bar code is difficult to identify or other factors cause the code scanning decoding time to be prolonged, the pulse number is greatly increased (for example, if the bar code is on the surface with higher reflectivity, the image can not be accurately identified and decoded because of the reflected light of the light compensating light spot of the scanning terminal, and the image can be repeatedly taken and decoded; the adjustment is not started from the first frame to give consideration to normal code scanning, because the adjustment in the scheme actually delays the exposure signal, that is, delays the opening of the light filling lamp, so that no light filling spot exists when the images are taken, and the adjustment can influence the image taking of most normal background bar codes (because the images are taken without light filling and the decoding speed is influenced). Therefore, the adjustment is carried out from a certain frame at the back, so that the scanning and image taking of the previous frames can be ensured to be illuminated by the light filling, in general, the image taking of the previous frames can be basically and normally successfully decoded, if other abnormal problems caused by the non-reflection of the bar code cannot be decoded, the scanning time is not always solved even if the scanning time is increased, if the scanning and image taking is caused by the reflection, the image taking sensor is prevented from grabbing the reflected light of the light filling light spot by delaying the output of the light filling lamp, and the problem that the image taking cannot be decoded caused by the reflection can be well avoided. The specific timing delay preset duration may be determined based on experience, device performance, and the like.
In the specific implementation, firstly, the rising edge is preset and adjusted according to experience, equipment performance and the like, and before the rising edge is adjusted, a STROBE signal which is the same as the exposure signal time sequence, namely, a non-adjusted STROBE signal is output to the light supplementing lamp driving module; when the rising edge is adjusted, a STROBE signal with the time sequence delayed by a preset time length compared with the exposure signal is output to the light supplementing lamp driving module, so that the delay exposure of the light supplementing lamp is realized.
In some embodiments, the timing of the falling edge of each pulse of the STROBE signal is the same as the timing of the falling edge of each pulse of the exposure signal.
Specifically, referring to fig. 6 of the specification, in order to ensure that the code scanning efficiency and the change of the light compensation brightness are not obvious, the adjusted STROBE signal and the unadjusted STROBE signal should ensure that the timings of the falling edges of the pulses are the same, so that the overall change is not large, and only the light compensation lamp delays exposure at a certain moment.
In some embodiments, referring to fig. 7 of the drawings, the number of pulses is adjusted to be multiple. The output module 2 further includes a third output unit 24, where the third output unit 24 is configured to output a STROBE signal having the same timing as the exposure signal to the light filling lamp driving module between adjacent adjustment pulses.
Referring to fig. 6 of the drawings, in order to avoid unsuccessful one-time delay exposure scanning, a plurality of adjustment pulses and adjustment rising edges may be set, and between adjacent adjustment pulses, the MCU outputs a normal, unregulated STROBE signal to the light filling lamp driving module.
In one embodiment, referring to fig. 8 of the drawings, the present invention further provides a code scanning device based on any of the above embodiments, where the code scanning device includes a memory 100 and a processor 200, the memory 100 is used for storing an operating program, and the processor 200 is used for executing the operating program stored in the memory, so as to implement the operations performed by the code scanning engine scanning method.
Specifically, the code scanning device may further include a communication interface 300, a communication bus 400, and an input/output interface 500, where the processor 200, the memory 100, the input/output interface 500, and the communication interface 300 perform communication with each other through the communication bus 400.
Communication bus 400 is a circuit that connects the elements described and enables transmission between these elements. For example, the processor 200 receives commands from other elements through the communication bus 400, decrypts the received commands, and performs calculation or data processing according to the decrypted commands. Memory 100 may include program modules such as a kernel (kernel), middleware (middleware), application programming interfaces (Application Programming Interface, APIs), and applications. The program modules may be comprised of software, firmware, or hardware, or at least two of them. The input/output interface 500 forwards commands or data input by a user through an input/output device (e.g., sensor, keyboard, touch screen). The communication interface 300 connects the electronic device with other network devices, user devices, networks. For example, the communication interface 300 may be connected to a network by wire or wirelessly to connect to external other network devices or user devices. The wireless communication may include at least one of: wireless fidelity (WiFi), bluetooth (BT), near field wireless communication technology (NFC), global Positioning System (GPS) and cellular communications, among others. The wired communication may include at least one of: universal Serial Bus (USB), high Definition Multimedia Interface (HDMI), asynchronous transfer standard interface (RS-232), and the like. The network may be a telecommunications network or a communication network. The communication network may be a computer network, the internet of things, a telephone network. The code scanning device may be connected to a network through the communication interface 300, and protocols used by the code scanning device to communicate with other network devices may be supported by at least one of an application, an Application Programming Interface (API), middleware, a kernel, and a communication interface.
In one embodiment, the present invention further provides a storage medium, where at least one instruction is stored, where the instruction is loaded and executed by the processor to implement the operations performed by the scan engine scanning method described above. For example, the computer readable storage medium may be Read Only Memory (ROM), random Access Memory (RAM), compact disk read only memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, etc. They may be implemented in program code that is executable by a computing device such that they may be stored in a memory device for execution by the computing device, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It should be noted that the above embodiments can be freely combined as needed. The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (8)
1. The scanning method of the code scanning engine is characterized by comprising the following steps:
receiving an exposure signal sent by the CAM module;
outputting a STROBE signal with time sequence lag compared with the exposure signal to the light supplementing lamp driving module, so that the light supplementing lamp driving module controls the light supplementing lamp to be on or off according to the STROBE signal, and the method specifically comprises the following steps of:
presetting and adjusting rising edges;
outputting the STROBE signal with the same time sequence as the exposure signal to the light supplementing lamp driving module before reaching the adjusting rising edge;
and when the adjustment rising edge is reached, outputting the STROBE signal with time sequence lag of a preset time length compared with the exposure signal to the light supplementing lamp driving module.
2. The scan method of claim 1, wherein the preset adjustment rising edge specifically comprises:
acquiring a frame image of the exposure signal;
acquiring the STROBE signal corresponding to the frame image of the exposure signal according to the frame image of the exposure signal;
presetting an Nth pulse of the STROBE signal as an adjustment pulse, wherein the rising edge of the adjustment pulse is the adjustment rising edge, and the adjustment rising edge is delayed by a preset time length compared with the rising edge time sequence of the corresponding pulse of the exposure signal.
3. The scan method of claim 2, wherein the number of the adjustment pulses is a plurality of;
and outputting the STROBE signal with the same time sequence as the exposure signal to the light supplementing lamp driving module between the adjacent adjusting pulses.
4. The scan method of any one of claims 1-2, wherein the timing of the falling edge of each pulse of the STROBE signal is the same as the timing of the falling edge of each pulse of the exposure signal.
5. A scan system for a scan engine, comprising:
the receiving module is used for receiving the exposure signal sent by the CAM module;
the output module is used for outputting a STROBE signal with time sequence lag compared with the exposure signal to the light supplementing lamp driving module, so that the light supplementing lamp driving module controls the light supplementing lamp to be turned on and off according to the STROBE signal;
the output module includes:
a presetting unit, configured to obtain a frame image of the exposure signal, obtain, according to the frame image of the exposure signal, the STROBE signal corresponding to the frame image of the exposure signal, and preset an nth pulse of the STROBE signal as an adjustment pulse, where a rising edge of the adjustment pulse is an adjustment rising edge, and the adjustment rising edge lags by a preset period compared with a rising edge timing of a corresponding pulse of the exposure signal;
the first output unit is used for outputting the STROBE signal with the same time sequence as the exposure signal to the light filling lamp driving module before reaching the adjustment rising edge;
and the second output unit is used for outputting the STROBE signal with time sequence lag preset time length compared with the exposure signal to the light filling lamp driving module when the adjustment rising edge is reached.
6. The scan system of claim 5, wherein the timing of the falling edge of each pulse of the STROBE signal is the same as the timing of the falling edge of each pulse of the exposure signal;
the number of the adjustment rising edges is a plurality of;
the output module further includes:
and a third output unit, configured to output, to the light compensating lamp driving module, the STROBE signal having the same timing as the exposure signal between adjacent adjustment pulses.
7. A code scanning device is characterized by comprising a memory and a processor,
the memory is used for storing an operating program,
the processor is configured to execute an operating program stored in the memory, and implement operations performed by the scan method of the scan engine according to any one of claims 1 to 4.
8. A storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement operations performed by the scan method of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210840725.6A CN115220286B (en) | 2022-07-18 | 2022-07-18 | Code scanning engine scanning method and system, code scanning equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210840725.6A CN115220286B (en) | 2022-07-18 | 2022-07-18 | Code scanning engine scanning method and system, code scanning equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115220286A CN115220286A (en) | 2022-10-21 |
CN115220286B true CN115220286B (en) | 2024-02-27 |
Family
ID=83612000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210840725.6A Active CN115220286B (en) | 2022-07-18 | 2022-07-18 | Code scanning engine scanning method and system, code scanning equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115220286B (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101978318A (en) * | 2008-03-26 | 2011-02-16 | 符号技术有限公司 | Method for optimizing auto-exposure performance of an imaging device |
CN104395910A (en) * | 2012-03-23 | 2015-03-04 | Opto电子有限公司 | Image reading device capable of producing illumination including a continuous, low-intensity level illumination component and one or more pulsed, high-intensity level illumination components |
CN105654633A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | POS code scanning payment method, system and device |
CN108416239A (en) * | 2018-01-31 | 2018-08-17 | 深圳盈达信息科技有限公司 | A kind of bar code identifies the control method of engine and its reduction power consumption |
CN109460686A (en) * | 2018-09-25 | 2019-03-12 | 深圳盈达信息科技有限公司 | A kind of method and system aiming at light blanking for sighting device |
CN109740393A (en) * | 2018-12-06 | 2019-05-10 | 无锡盈达聚力科技有限公司 | Bar code scanning system and method |
CN112115728A (en) * | 2018-11-15 | 2020-12-22 | 无锡盈达聚力科技有限公司 | Scanning device, its fill light control system and control method |
WO2021022868A1 (en) * | 2019-08-07 | 2021-02-11 | 杭州海康威视数字技术股份有限公司 | Light supplementation method and apparatus for camera |
CN112487843A (en) * | 2020-11-17 | 2021-03-12 | 支付宝(杭州)信息技术有限公司 | Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment |
CN113065374A (en) * | 2021-04-01 | 2021-07-02 | 支付宝(杭州)信息技术有限公司 | Two-dimensional code identification method, device and equipment |
CN113992853A (en) * | 2021-10-27 | 2022-01-28 | 北京市商汤科技开发有限公司 | Light supplement lamp control method, module, equipment, system and device and electronic equipment |
CN114245042A (en) * | 2021-12-16 | 2022-03-25 | 重庆紫光华山智安科技有限公司 | Light supplementing method, imaging device, electronic equipment and readable storage medium |
CN114239622A (en) * | 2021-12-16 | 2022-03-25 | 福建新大陆自动识别技术有限公司 | Desktop type bar code reading equipment for mobile payment |
WO2022078036A1 (en) * | 2020-10-15 | 2022-04-21 | 华为技术有限公司 | Camera and control method therefor |
CN114398918A (en) * | 2021-12-30 | 2022-04-26 | 福州符号信息科技有限公司 | Bar code reading method and equipment for preventing pattern interference of positioning lamp |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI234988B (en) * | 2003-12-26 | 2005-06-21 | Realtek Semiconductor Corp | Controlling apparatus and method for image scanning system |
US8978983B2 (en) * | 2012-06-01 | 2015-03-17 | Honeywell International, Inc. | Indicia reading apparatus having sequential row exposure termination times |
US10853601B2 (en) * | 2018-11-09 | 2020-12-01 | The Code Corporation | Barcode reading device that controls illumination without signaling from an image sensor |
-
2022
- 2022-07-18 CN CN202210840725.6A patent/CN115220286B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101978318A (en) * | 2008-03-26 | 2011-02-16 | 符号技术有限公司 | Method for optimizing auto-exposure performance of an imaging device |
CN104395910A (en) * | 2012-03-23 | 2015-03-04 | Opto电子有限公司 | Image reading device capable of producing illumination including a continuous, low-intensity level illumination component and one or more pulsed, high-intensity level illumination components |
CN105654633A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | POS code scanning payment method, system and device |
CN108416239A (en) * | 2018-01-31 | 2018-08-17 | 深圳盈达信息科技有限公司 | A kind of bar code identifies the control method of engine and its reduction power consumption |
CN109460686A (en) * | 2018-09-25 | 2019-03-12 | 深圳盈达信息科技有限公司 | A kind of method and system aiming at light blanking for sighting device |
CN112115728A (en) * | 2018-11-15 | 2020-12-22 | 无锡盈达聚力科技有限公司 | Scanning device, its fill light control system and control method |
CN109740393A (en) * | 2018-12-06 | 2019-05-10 | 无锡盈达聚力科技有限公司 | Bar code scanning system and method |
WO2021022868A1 (en) * | 2019-08-07 | 2021-02-11 | 杭州海康威视数字技术股份有限公司 | Light supplementation method and apparatus for camera |
WO2022078036A1 (en) * | 2020-10-15 | 2022-04-21 | 华为技术有限公司 | Camera and control method therefor |
CN112487843A (en) * | 2020-11-17 | 2021-03-12 | 支付宝(杭州)信息技术有限公司 | Control method, device and equipment for positioning lamp of code scanning equipment and code scanning equipment |
CN113065374A (en) * | 2021-04-01 | 2021-07-02 | 支付宝(杭州)信息技术有限公司 | Two-dimensional code identification method, device and equipment |
CN113992853A (en) * | 2021-10-27 | 2022-01-28 | 北京市商汤科技开发有限公司 | Light supplement lamp control method, module, equipment, system and device and electronic equipment |
CN114245042A (en) * | 2021-12-16 | 2022-03-25 | 重庆紫光华山智安科技有限公司 | Light supplementing method, imaging device, electronic equipment and readable storage medium |
CN114239622A (en) * | 2021-12-16 | 2022-03-25 | 福建新大陆自动识别技术有限公司 | Desktop type bar code reading equipment for mobile payment |
CN114398918A (en) * | 2021-12-30 | 2022-04-26 | 福州符号信息科技有限公司 | Bar code reading method and equipment for preventing pattern interference of positioning lamp |
Also Published As
Publication number | Publication date |
---|---|
CN115220286A (en) | 2022-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10182181B2 (en) | Synchronization of rolling shutter camera and dynamic flash light | |
RU2413382C2 (en) | Methods, electronic devices and computer software products to process images using multiple image buffers | |
US20150220472A1 (en) | Increasing throughput on multi-wire and multi-lane interfaces | |
US10681273B2 (en) | Mobile device including multiple cameras | |
JP3897422B2 (en) | Load / reset sequence controller and spatial control method for spatial light modulator | |
JP2005536167A (en) | Digital camera module and digital host device | |
WO2006058053A9 (en) | Methods and systems for synchronous execution of commands across a communication link | |
US10997689B1 (en) | High dynamic range sensor system with row increment operation | |
EP4057061B1 (en) | Photographing system, control method, and program | |
CN115220286B (en) | Code scanning engine scanning method and system, code scanning equipment and storage medium | |
CN101753839B (en) | Signal processing device, camera module, mobile terminal device and imaging method | |
CN107544124B (en) | Image pickup apparatus, control method thereof, and storage medium | |
CN113448623B (en) | Image frame processing method, electronic equipment chip and storage medium | |
US20120188404A1 (en) | Enhanced Timer Functionality for Camera Systems | |
JP4586862B2 (en) | Code reader | |
CN114554091B (en) | Quick image acquisition method for express mobile terminal | |
US11528400B2 (en) | Image-processing microprocessor for supporting an application processor and multiple cameras | |
JP4367368B2 (en) | Code reader | |
KR100734521B1 (en) | IP Module for System-on-Chip | |
JPH10257398A (en) | Generator for timing signal drive solid-state image-pickup element | |
CN108632499A (en) | A kind of image-signal processor and its sequential generation device | |
JP2003101890A (en) | Image pickup device | |
JP7696607B2 (en) | Imaging device | |
US10904536B2 (en) | Frame processing method and device | |
CN113519153B (en) | Image acquisition method, image acquisition device, control device, computer equipment, readable storage medium, image acquisition equipment and remote driving system |
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 |