CN115220286A - Code scanning engine scanning method, system, code scanning device and storage medium - Google Patents

Code scanning engine scanning method, system, code scanning device and storage medium Download PDF

Info

Publication number
CN115220286A
CN115220286A CN202210840725.6A CN202210840725A CN115220286A CN 115220286 A CN115220286 A CN 115220286A CN 202210840725 A CN202210840725 A CN 202210840725A CN 115220286 A CN115220286 A CN 115220286A
Authority
CN
China
Prior art keywords
signal
strobe signal
exposure signal
driving module
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.)
Granted
Application number
CN202210840725.6A
Other languages
Chinese (zh)
Other versions
CN115220286B (en
Inventor
袁传奇
林喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sunmi Technology Group Co Ltd
Citaq Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Citaq Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Sunmi Technology Group Co Ltd, Citaq Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202210840725.6A priority Critical patent/CN115220286B/en
Publication of CN115220286A publication Critical patent/CN115220286A/en
Application granted granted Critical
Publication of CN115220286B publication Critical patent/CN115220286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS 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/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • G03B15/03Combinations of cameras with lighting apparatus; Flash units
    • G03B15/05Combinations of cameras with electronic flash apparatus; Electronic flash units
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS 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/00Camera modules comprising integrated lens units and imaging units, specially adapted for being embedded in other devices, e.g. mobile phones or vehicles
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling 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 code scanning engine scanning method, a system, 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 a time sequence lag compared with the exposure signal to a light supplement lamp driving module, so that the light supplement lamp driving module controls the light supplement lamp to be on or off according to the STROBE signal. According to the scheme, the exposure signal sent by the CAM module is received through the MCU, the STROBE signal with the time sequence lagging behind the time sequence compared with the exposure signal is output to the light supplementing lamp driving module according to the time sequence of the exposure signal, the light supplementing lamp driving module can control the light supplementing lamp to be turned on and off according to the optimized STROBE signal, the on and off time sequence of light supplementing illumination can be freely adjusted according to actual requirements, and the problem that when a code scanning engine takes a picture and takes an image, a reflection light spot of the light supplementing lamp is shot to cover a bar code to cause code scanning failure is avoided.

Description

Code scanning engine scanning method, system, code scanning device and storage medium
Technical Field
The present invention relates to the field of code scanning technologies, and in particular, to a code scanning engine scanning method, system, code scanning device, and storage medium.
Background
The fill-in light control of most code scanning engines in the market is related to the exposure signal of the CAM module, and the fill-in light duration and brightness are related to the length of the exposure signal. Generally speaking, when the CAM module performs a photo exposure, the CAM module outputs an exposure indication signal LED _ OUT, and the code scanning engine controls the duration or brightness of the light supplement by using the LED _ OUT signal of the CAM module. When normally sweeping the sign indicating number, the good supplementary yard effect and the efficiency of sweeping of illumination of light filling lamp, but when meetting the higher scene of some bar code background reflectances, for example bar code backgrounds such as cell-phone screen, metal, sticky tape, can cover the bar code because the reflection facula that shoots the light filling lamp when sweeping the sign indicating number engine and shoot and get the picture and cause and sweep the sign indicating number failure.
At present, a more common solution is to set a special scanning mode, and when a user scans a barcode on a high-reflectivity background such as a mobile phone screen, the light supplement lamp is actively turned off to scan the barcode. However, the method is not intelligent enough, and easily causes code scanning failure, and the user experience is not good.
Disclosure of Invention
The invention aims to provide a code scanning engine scanning method, a system, code scanning equipment and a storage medium, which solve 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 bar code scanning is not intelligent enough, and code scanning failure is easily caused.
The technical scheme provided by the invention is as follows:
the invention provides a code scanning engine scanning method, which comprises the following steps:
receiving an exposure signal sent by the CAM module;
and outputting a STROBE signal with a time sequence lag compared with the exposure signal to a 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.
In the prior art, the exposure signal LED _ OUT of the CAM module is generally directly output as the STROBE signal of the fill-in lamp driving module to control the on/off of the fill-in lamp, and at this time, the on/off of the fill-in lamp is completely synchronous with the LED _ OUT output by the CAM. However, when the method is applied to some scenes with high bar code background reflectivity, such as bar code backgrounds like mobile phone screens, metals, tapes and the like, the bar code scanning fails because the bar code is covered by the reflection light spot of the light supplement lamp when the code scanning engine takes a picture to take an image.
This scheme is through setting up the exposure signal that MCU received CAM module and sent to according to the chronogenesis of exposure signal to light filling lamp drive module output compares the STROBE signal that the chronogenesis lagged with the exposure signal, make light filling lamp drive module can control the light filling lamp according to the STROBE signal after the optimization and go on and off, the light that realizes the light filling illumination goes on and off the chronogenesis can be according to actual demand free adjustment, avoids sweeping the reflection facula that the light filling lamp was shot when the yard engine was shot and is got the picture and cover the bar code and cause and sweep the yard failure.
In some embodiments, the outputting a STROBE signal with a timing delay compared with the exposure signal to the fill light driving module specifically includes:
and after delaying the preset time, outputting a STROBE signal with a time sequence lag compared with the exposure signal to the light supplement lamp driving module.
After delaying the preset time, outputting a STROBE signal with a time sequence lag compared with the exposure signal to the fill light driving module, specifically comprising:
presetting an adjusting rising edge;
before the adjusted rising edge is reached, outputting the STROBE signal with the same time sequence as the exposure signal to the light supplement lamp driving module;
and when the adjusted rising edge is reached, outputting the STROBE signal of which the time sequence is delayed by preset time length compared with the exposure signal to the light supplement lamp driving module.
The preset adjustment rising edge specifically includes:
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 the Nth pulse of the STROBE signal as an adjusting pulse, wherein the rising edge of the adjusting pulse is the adjusting rising edge, and the adjusting rising edge lags behind the timing sequence of the corresponding pulse of the exposure signal by a preset time length.
Generally speaking, different frame rates can be set according to the self performance of an image sensor in the code scanning head and the setting of software, and the higher the frame rate is, the faster the image taking and transmission are, the higher the requirement on the system is; and a low frame rate may mean that the image fetching and transmission become slow under the same conditions, and the code scanning speed also becomes slow. Taking a frame rate of 60Hz as an example, it means that there are 60 exposure periods and 60 image fetches in 1s, each exposure means that an LED _ OUT signal is pulled high, and the duration of the LED _ OUT pull-high in one period is the duration of the sensor exposure. And how many pulses are needed to finish one code scanning is not necessary, because whether the code scanning is successful or not is related to the conditions of image capturing quality, decoding algorithm, operation speed and the like, in an ideal state, the image OK can be directly captured by the first frame during code scanning, then the decoding result comes out by considering the processing time of decoding and the like, and about three or four frames are possible to be obtained, and at this time, three or four pulses are possible to be obtained during one code scanning. 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, in a surface bar code with high reflectivity, because the image acquisition cannot be accurately identified and decoded due to the reflected light of the light filling light spot of the scanning head, the image acquisition and the decoding need to be repeated); therefore, the adjustment is not started from the first frame, which is to consider normal code scanning, because the adjustment of the scheme actually delays the exposure signal, namely delays the turn-on of the fill-in light, so that no fill-in light spots exist during image taking, and the adjustment can influence the image taking of most normal background bar codes (because the image taking can be darker without fill-in light, the decoding speed is influenced). Therefore, the scanning and image taking of the previous frames can be ensured to be illuminated by supplementary lighting, in general, the scanning and image taking of the previous frames can be successfully decoded basically, if other abnormal problems caused by non-reflection of the bar code are encountered, the scanning and image taking can not be solved even if the scanning and image taking time is increased, if the abnormal problems are caused by reflection, the STROBE signal driven by the supplementary lighting lamp is output by the MCU, the reflected light of the supplementary lighting light spot is prevented from being grabbed by the image taking sensor through the output of the lagging supplementary lighting lamp, and the problem that the scanning and image taking can not be decoded caused by reflection can be well avoided. The specific time lag preset duration may be determined according to experience, equipment performance, and the like.
During specific implementation, the rising edge is preset according to experience, equipment performance and the like, and before the rising edge is adjusted, the STROBE signal with the same time sequence as the exposure signal is output to the light supplement lamp driving module, namely the STROBE signal without adjustment; and when the adjustment rising edge is reached, outputting a STROBE signal of which the time sequence is delayed by a preset time length compared with the exposure signal to the light supplement lamp driving module, thereby realizing the delayed exposure of the light supplement lamp.
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 light filling brightness change are not too obvious, the adjusted STROBE signal and the unadjusted STROBE signal should ensure that the time sequence of the falling edge of each pulse is the same, so that the overall change is not large, and only the light filling lamp delays exposure at a certain moment.
In some embodiments, the number of the adjustment pulse edges is multiple;
and outputting the STROBE signal with the same time sequence as the exposure signal to the light supplement lamp driving module between the adjacent adjusting pulses.
In order to avoid unsuccessful one-time delay exposure scanning, a plurality of adjusting pulses and adjusting rising edges can be set, and between adjacent adjusting pulses, the MCU outputs a normal and unadjusted STROBE signal to the light supplement lamp driving module.
In addition, the invention also provides a code scanning engine scanning system, which comprises:
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 a time sequence lag compared with the exposure signal to the light supplement lamp driving module, so that the light supplement lamp driving module controls the light supplement lamp to be on or off according to the STROBE signal.
In some embodiments, the output module comprises:
the preset unit is used for 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, and presetting the 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 timing of the adjustment rising edge is delayed by a preset time length compared with the rising edge of the 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 supplementing lamp driving module before the adjusted rising edge is reached;
the second output unit is used for outputting the STROBE signal of which the time sequence is delayed by preset time length compared with the exposure signal to the light supplementing lamp driving module when the adjustment rising edge is reached;
the timing of the falling edge of each pulse of the STROBE signal is the same as that of each pulse of the exposure signal;
the number of the adjusting pulses is multiple;
the output module further includes:
and the third 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 between the adjacent adjusting pulses.
In addition, the invention also provides a code scanning device, which comprises a memory and a processor,
the memory is used for storing the running program,
the processor is used for executing the running program stored in the memory and realizing the operation executed by the code scanning engine scanning method.
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 scanning system, the scanning equipment and the storage medium of the code scanning engine provided by the invention, the MCU is arranged to receive the exposure signal sent by the CAM module, and the STROBE signal with the time sequence lagging behind that of the exposure signal is output to the light supplement lamp driving module according to the time sequence of the exposure signal, so that the light supplement lamp driving module can control the light supplement lamp to be on and off according to the optimized STROBE signal, the on and off time sequence of light supplement illumination can be freely adjusted according to actual requirements, and the code scanning failure caused by the fact that a bar code is covered by a reflection light spot shot by the light supplement lamp when the code scanning engine takes a picture is avoided.
Drawings
The foregoing features, technical features, advantages and embodiments of the present disclosure will be further described in the following detailed description of the preferred embodiments in a clearly understandable manner by referring to the accompanying drawings.
FIG. 1 is a schematic overall flow diagram of an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a control logic of a fill-in light according to an embodiment of the present invention;
FIG. 3 is a schematic view of a light spot reflected by a fill-in lamp during barcode scanning according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a control logic of the optimized fill-in light according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a turn-on/turn-off control timing sequence of the optimized front light supplement lamp according to the embodiment of the present invention;
FIG. 6 is a schematic diagram of an optimized on/off control timing sequence of the fill-in light according to an embodiment of the present invention;
FIG. 7 is a system architecture diagram of an embodiment of the present invention;
fig. 8 is a schematic structural diagram of the code scanning device of the present invention.
The reference numbers in the figures: 1-a receiving module; 2-an output module; 21-preset unit; 22-a first output unit; 23-a second output unit; 24-a third output unit; 100-a 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 be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, without inventive effort, other drawings and embodiments can be derived from them.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. Moreover, in the interest of brevity and understanding, only one of the components having the same structure or function is illustrated schematically or designated in some of the drawings. In this document, "one" means not only "only one" but also a case of "more than one".
In one embodiment, referring to fig. 1 of the drawings, the present 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 collecting barcode images.
And S2, outputting a STROBE signal with a time sequence lag compared with the exposure signal to the light supplement lamp driving module, and enabling the light supplement lamp driving module to control the light supplement lamp to be turned on or off according to the STROBE signal.
In the prior art, referring to fig. 2 of the accompanying drawings of the specification, the illumination and the extinction of the fill-in light are generally controlled directly by an exposure signal LED _ OUT output of the CAM module as a STROBE signal of a fill-in light driving module, and at this time, the illumination and the extinction of the fill-in light are completely synchronous with the LED _ OUT output by the CAM. Referring to the attached drawing fig. 3 of the specification, in this way, when some scenes with high bar code background reflectivity are encountered, such as bar code backgrounds of mobile phone screens, metals, tapes and the like, the bar code scanning fails because the bar code is covered by the reflection light spot of the light supplement lamp when the code scanning engine takes a picture to take an image.
Referring to the attached drawing of the specification and fig. 4, in the scheme, the MCU is arranged to receive the exposure signal sent by the CAM module, and output a STROBE signal with a time sequence lagging behind the time sequence compared with the exposure signal to the light supplement lamp driving module according to the time sequence of the exposure signal, so that the light supplement lamp driving module can control the light supplement lamp to be turned on and off according to the optimized STROBE signal, the on and off time sequence of the light supplement illumination can be freely adjusted according to actual requirements, and the failure of code scanning caused by the fact that a bar code is covered by a reflection light spot of the light supplement lamp when the code scanning engine takes a picture and picks up a picture is avoided.
In some embodiments, outputting a STROBE signal with a timing lag compared to the exposure signal to the fill light driving module specifically includes:
and after delaying the preset time, outputting a STROBE signal with a time sequence lag compared with the exposure signal to the light supplement lamp driving module. Specifically, the method comprises the following steps:
presetting an adjusting rising edge; before the rising edge is adjusted, a STROBE signal with the same time sequence as the exposure signal is output to the light supplement lamp driving module; and when the adjustment rising edge is reached, outputting a STROBE signal of which the time sequence is delayed by preset time length compared with the exposure signal to the light supplement lamp driving module.
Presetting a rising edge adjustment, specifically comprising:
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 Nth pulse of the STROBE signal is preset as an adjusting pulse, the rising edge of the adjusting pulse is an adjusting rising edge, and the timing of the adjusting rising edge is delayed by a preset time length compared with the rising edge of the corresponding pulse of the exposure signal.
Referring to fig. 5 and fig. 6 in the specification, generally speaking, according to the 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 image taking and transmission are, the higher the system requirement is; a low frame rate may mean that the image taking and transmission are slow and the code scanning rate is slow under the same conditions. Taking the frame rate of 60Hz as an example, it means that there are 60 exposure periods and 60 image-taking times in 1s, each exposure means that one LED _ OUT signal is pulled high, and the duration of the LED _ OUT pull-high in one period is the duration of the sensor exposure. And how many pulses are needed to finish one code scanning is not necessary, because whether the code scanning is successful or not is related to the conditions of image capturing quality, decoding algorithm, operation speed and the like, in an ideal state, the image OK can be directly captured by the first frame during code scanning, then the decoding result comes out by considering the processing time of decoding and the like, and about three or four frames are possible to be obtained, and at this time, three or four pulses are possible to be obtained during one code scanning. 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, in a surface bar code with high reflectivity, because the image acquisition cannot be accurately identified and decoded due to the reflected light of the light filling light spot of the scanning head, the image acquisition and the decoding need to be repeated); therefore, the adjustment is not started from the first frame, so as to take account of normal code scanning, because the adjustment of the scheme actually delays the exposure signal, namely, the turn-on of the fill-in light is delayed, so that no fill-in light spot exists during image taking, and the adjustment can influence the image taking of most normal background bar codes (because the image taking can be darker due to no fill-in light, the decoding speed is influenced). Therefore, the scanning and image taking of the previous frames can be ensured to be illuminated by supplementary lighting, in general, the scanning and image taking of the previous frames can be successfully decoded basically, if other abnormal problems caused by non-reflection of the bar code are encountered, the scanning and image taking can not be solved even if the scanning and image taking time is increased, if the abnormal problems are caused by reflection, the STROBE signal driven by the supplementary lighting lamp is output by the MCU, the reflected light of the supplementary lighting light spot is prevented from being grabbed by the image taking sensor through the output of the lagging supplementary lighting lamp, and the problem that the scanning and image taking can not be decoded caused by reflection can be well avoided. The specific time lag preset duration may be determined according to experience, equipment performance, and the like.
During specific implementation, the rising edge is preset according to experience, equipment performance and the like, and before the rising edge is adjusted, an STROBE signal with the same time sequence as that of the exposure signal is output to the light supplementing lamp driving module, namely the STROBE signal without adjustment; and when the adjustment rising edge is reached, outputting a STROBE signal of which the time sequence is delayed by a preset time length compared with the exposure signal to the light supplement lamp driving module, thereby realizing the delayed exposure of the light supplement lamp.
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 in the accompanying drawings of the specification, in order to ensure that the code scanning efficiency and the light supplement brightness change are not too obvious, the adjusted STROBE signal and the unadjusted STROBE signal should ensure that the time sequence of the falling edge of each pulse is the same, so that the overall change is not large, and only the light supplement lamp delays exposure at a certain time.
In some embodiments, the number of adjustment pulses is multiple; and outputting a STROBE signal with the same time sequence as the exposure signal to the light supplement lamp driving module between the adjacent adjusting pulses.
Referring to fig. 6 of the specification, in order to avoid unsuccessful scanning of one time of delayed exposure, multiple adjustment pulses and adjustment rising edges may be set, and between adjacent adjustment pulses, the MCU outputs a normal, unadjusted STROBE signal to the fill-in lamp driving module.
In one embodiment, referring to fig. 7 of the drawings, the invention further provides a scanning system of a code scanning engine, 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 collecting barcode images.
The output module 2 is configured to output a STROBE signal with a time sequence lag compared with the exposure signal to the fill-in lamp driving module, so that the fill-in lamp driving module controls the light-in lamp to turn on or off according to the STROBE signal.
In the prior art, referring to fig. 2 of the accompanying drawings of the specification, the illumination and the extinction of the fill-in light are generally controlled directly by an exposure signal LED _ OUT output of the CAM module as a STROBE signal of a fill-in light driving module, and at this time, the illumination and the extinction of the fill-in light are completely synchronous with the LED _ OUT output by the CAM. Referring to the attached drawing fig. 3 in the specification, in this way, when some scenes with high reflectivity of the barcode background are encountered, for example, barcode backgrounds such as a mobile phone screen, metal, and an adhesive tape, the barcode scanning fails because the barcode is covered by a reflection light spot of the light supplement lamp when the barcode scanning engine takes a picture to take an image.
Referring to the attached drawing of the specification and fig. 4, in the scheme, the MCU is arranged to receive the exposure signal sent by the CAM module, and output a STROBE signal with a time sequence lagging behind the time sequence compared with the exposure signal to the light supplement lamp driving module according to the time sequence of the exposure signal, so that the light supplement lamp driving module can control the light supplement lamp to be turned on and off according to the optimized STROBE signal, the on and off time sequence of the light supplement illumination can be freely adjusted according to actual requirements, and the failure of code scanning caused by the fact that a bar code is covered by a reflection light spot of the light supplement lamp when the code scanning engine takes a picture and picks up 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 presetting 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 adjust the timing delay of the rising edge compared with a rising edge of a corresponding pulse of the exposure signal by a preset time length.
The first output unit 22 is configured to output a STROBE signal with the same timing as the exposure signal to the fill-in lamp driving module before the rising edge is adjusted; the second output unit 23 is configured to output a STROBE signal, which is delayed by a preset time length from the exposure signal, to the fill light driving module when the adjustment rising edge is reached.
Referring to fig. 5 and fig. 6 in the specification, generally speaking, according to the 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 image taking and transmission are, the higher the system requirement is; and a low frame rate may mean that the image fetching and transmission become slow under the same conditions, and the code scanning speed also becomes slow. Taking the frame rate of 60Hz as an example, it means that there are 60 exposure periods and 60 image-taking times in 1s, each exposure means that one LED _ OUT signal is pulled high, and the duration of the LED _ OUT pull-high in one period is the duration of the sensor exposure. And how many pulses are needed to finish one code scanning is not necessary, because whether the code scanning is successful or not is related to the conditions of image capturing quality, decoding algorithm, operation speed and the like, in an ideal state, the image OK can be directly captured by the first frame during code scanning, then the decoding result comes out by considering the processing time of decoding and the like, and about three or four frames are possible to be obtained, and at this time, three or four pulses are possible to be obtained during one code scanning. 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, in a surface bar code with high reflectivity, because the image acquisition cannot be accurately identified and decoded due to the reflected light of the light filling light spot of the scanning head, the image acquisition and the decoding need to be repeated); therefore, the adjustment is not started from the first frame, so as to take account of normal code scanning, because the adjustment of the scheme actually delays the exposure signal, namely, the turn-on of the fill-in light is delayed, so that no fill-in light spot exists during image taking, and the adjustment can influence the image taking of most normal background bar codes (because the image taking can be darker due to no fill-in light, the decoding speed is influenced). Therefore, the scanning and image taking of the previous frames can be ensured to be illuminated by supplementary lighting, in general, the scanning and image taking of the previous frames can be successfully decoded basically, if other abnormal problems caused by non-reflection of the bar code are encountered, the scanning and image taking can not be solved even if the scanning and image taking time is increased, if the abnormal problems are caused by reflection, the STROBE signal driven by the supplementary lighting lamp is output by the MCU, the reflected light of the supplementary lighting light spot is prevented from being grabbed by the image taking sensor through the output of the lagging supplementary lighting lamp, and the problem that the scanning and image taking can not be decoded caused by reflection can be well avoided. The specific time lag preset duration may be determined according to experience, equipment performance, and the like.
During specific implementation, the rising edge is preset according to experience, equipment performance and the like, and before the rising edge is adjusted, the STROBE signal with the same time sequence as the exposure signal is output to the light supplement lamp driving module, namely the STROBE signal without adjustment; and when the adjustment rising edge is reached, outputting a STROBE signal of which the time sequence is delayed by a preset time length compared with the exposure signal to the light supplement lamp driving module, thereby realizing the delayed exposure of the light supplement lamp.
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 in the accompanying drawings of the specification, in order to ensure that the code scanning efficiency and the light supplement brightness change are not too obvious, the adjusted STROBE signal and the unadjusted STROBE signal should ensure that the time sequence of the falling edge of each pulse is the same, so that the overall change is not large, and only the light supplement lamp delays exposure at a certain time.
In some embodiments, referring to fig. 7 of the drawings, the number of the adjustment pulses is plural. The output module 2 further includes a third output unit 24, and the third output unit 24 is configured to output a STROBE signal with the same time sequence as the exposure signal to the fill-in lamp driving module between adjacent adjustment pulses.
Referring to fig. 6 of the specification, in order to avoid unsuccessful scanning of one time of delayed exposure, multiple adjustment pulses and adjustment rising edges may be set, and between adjacent adjustment pulses, the MCU outputs a normal, unadjusted STROBE signal to the fill-in lamp driving module.
In an embodiment, with reference to fig. 8 in the specification, on the basis of any one of the above embodiments, the present invention further provides a code scanning apparatus, which includes a memory 100 and a processor 200, where the memory 100 is used to store an operating program, and the processor 200 is used to execute the operating program stored in the memory, so as to implement the operation performed by the code scanning engine scanning method described above.
Specifically, the code scanning device may further include a communication interface 300, a communication bus 400, and an input/output interface 500, wherein the processor 200, the memory 100, the input/output interface 500, and the communication interface 300 are configured to communicate with each other through the communication bus 400.
A 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 calculations or data processing according to the decrypted commands. The memory 100 may include program modules such as a kernel (kernel), middleware (middleware), an Application Programming Interface (API), and applications. The program modules may be comprised of software, firmware or hardware, or at least two of the same. The input/output interface 500 forwards commands or data entered by a user via an input/output device (e.g., sensor, keyboard, touch screen). The communication interface 300 connects the electronic device with other network devices, user equipment, 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 Communication (NFC), global Positioning Satellite (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 and a communications network. The communication network may be a computer network, the internet of things, a telephone network. The code scanning device may be connected to the network via the communication interface 300, and a protocol 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 an embodiment, on the basis of any of the above embodiments, the present invention further provides a storage medium, where at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the operation performed by the scan engine scanning method. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like. They may be implemented in program code that is executable by a computing device such that it is executed by the computing device, or separately, or as individual integrated circuit modules, or as a plurality or steps of individual integrated circuit modules. 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 necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A code scanning engine scanning method is characterized by comprising the following steps:
receiving an exposure signal sent by the CAM module;
and outputting a STROBE signal with a time sequence lag compared with the exposure signal to a light supplement lamp driving module, so that the light supplement lamp driving module controls the light supplement lamp to be on or off according to the STROBE signal.
2. The method as claimed in claim 1, wherein the outputting a STROBE signal with a timing delay compared with the exposure signal to the fill light driving module comprises:
and after delaying the preset time, outputting a STROBE signal with a time sequence lag compared with the exposure signal to the light supplement lamp driving module.
3. The method as claimed in claim 2, wherein the step of outputting a STROBE signal with a timing delay compared with the exposure signal to the fill light driving module after delaying for a predetermined time period comprises:
presetting an adjusting rising edge;
before the adjusted rising edge is reached, outputting the STROBE signal with the same time sequence as the exposure signal to the light supplement lamp driving module;
and when the adjusted rising edge is reached, outputting the STROBE signal of which the time sequence is delayed by preset time length compared with the exposure signal to the light supplement lamp driving module.
4. The method as claimed in claim 3, wherein the preset adjustment of the 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 the Nth pulse of the STROBE signal as an adjusting pulse, wherein the rising edge of the adjusting pulse is the adjusting rising edge, and the adjusting rising edge lags behind the timing sequence of the corresponding pulse of the exposure signal by a preset time length.
5. The method as claimed in claim 4, wherein the number of the adjustment pulses is plural;
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.
6. The scan method of claim 3-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.
7. A scanning system for a code scanning engine, comprising:
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 a time sequence lag compared with the exposure signal to the light supplement lamp driving module, so that the light supplement lamp driving module controls the light supplement lamp to be on or off according to the STROBE signal.
8. The scanning engine system of claim 7, wherein the output module comprises:
a presetting unit, configured to obtain a frame image of the exposure signal, obtain the STROBE signal corresponding to the frame image of the exposure signal according 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 a timing of the adjustment rising edge is delayed by a preset duration compared with a rising edge 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 supplementary lighting lamp driving module before the adjusted rising edge is reached;
the second output unit is used for outputting the STROBE signal of which the time sequence is delayed by preset time length compared with the exposure signal to the light supplementing lamp driving module when the adjustment rising edge is reached;
the timing of the falling edge of each pulse of the STROBE signal is the same as that of each pulse of the exposure signal;
the number of the rising edges is adjusted to be multiple;
the output module further includes:
and the third output unit is used for 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.
9. A code scanning device is characterized by comprising a memory and a processor,
the memory is used for storing the running program,
the processor is used for executing the running program stored in the memory and realizing the operation executed by the code scanning engine scanning method according to any one of claims 1 to 4.
10. A storage medium having stored therein at least one instruction, the instruction being loaded and executed by a processor to perform operations performed by a scan engine scanning method according to any one of claims 1-6.
CN202210840725.6A 2022-07-18 2022-07-18 Code scanning engine scanning method and system, code scanning equipment and storage medium Active CN115220286B (en)

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 true CN115220286A (en) 2022-10-21
CN115220286B 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 (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141053A1 (en) * 2003-12-26 2005-06-30 Realtek Semiconductor Corp. Controlling apparatus and method for image scanning system
CN101978318A (en) * 2008-03-26 2011-02-16 符号技术有限公司 Method for optimizing auto-exposure performance of an imaging device
US20130320092A1 (en) * 2012-06-01 2013-12-05 Honeywell International Inc. Doing Business As (D.B.A.) Honeywell Scanning And Mobility Indicia reading apparatus having sequential row exposure termination times
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
US20200151412A1 (en) * 2018-11-09 2020-05-14 The Code Corporation Barcode reading device that controls illumination without signaling from an image sensor
CN112115728A (en) * 2018-11-15 2020-12-22 无锡盈达聚力科技有限公司 Scanning device, and light supplement lamp control system and control method thereof
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

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141053A1 (en) * 2003-12-26 2005-06-30 Realtek Semiconductor Corp. Controlling apparatus and method for image scanning system
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
US20130320092A1 (en) * 2012-06-01 2013-12-05 Honeywell International Inc. Doing Business As (D.B.A.) Honeywell Scanning And Mobility Indicia reading apparatus having sequential row exposure termination times
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
US20200151412A1 (en) * 2018-11-09 2020-05-14 The Code Corporation Barcode reading device that controls illumination without signaling from an image sensor
CN112115728A (en) * 2018-11-15 2020-12-22 无锡盈达聚力科技有限公司 Scanning device, and light supplement lamp control system and control method thereof
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
CN115220286B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
US10412332B2 (en) Image-capturing device for generating image-capture data
CN107005628B (en) Apparatus, method and device for synchronizing rolling shutter camera and dynamic flash lamp
EP2661074B1 (en) Image processing apparatus and method
US9319592B2 (en) Image-capturing device and timing control circuit for outputting first vertical synchronization signal and second vertical synchronization signal
US8368777B2 (en) Imaging apparatus for performing signal processes adapted to operational modes
US9148572B2 (en) Timing generator, imaging device, and dot-clock output method
US20060023079A1 (en) Interface device and synchronization adjustment method
US20220053126A1 (en) Photographing apparatus, unmanned aerial vehicle, control terminal and method for photographing
US10997689B1 (en) High dynamic range sensor system with row increment operation
CN114697561A (en) Method and apparatus for automatic exposure control of image sensor by context switching
JP2010273035A (en) Imaging device
CN115220286A (en) Code scanning engine scanning method, system, code scanning device and storage medium
CN113448623A (en) Image frame processing method, electronic device, chip and storage medium
EP3304885B1 (en) Enhanced video capture in adverse lighting conditions
CN111510629A (en) Data display method, image processor, photographing device and electronic equipment
CN107544124B (en) Image pickup apparatus, control method thereof, and storage medium
US20060077201A1 (en) Synchronous image-switching device and method thereof
WO2019091423A1 (en) An image‐processing microprocessor for supporting an application processor and multiple cameras
JPH11313252A (en) Digital camera system, image processing method and storage medium
CN108632499B (en) Image signal processor and time sequence generating device thereof
US10212313B2 (en) Data processing device
JP2003101890A (en) Image pickup device
US10904536B2 (en) Frame processing method and device
CN114615537B (en) Zero-frame-delay video control system and method and LED display system
US20240314422A1 (en) Imaging device, imaging control method, and program

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