CN108241813A - A kind of bar code decoding method and its equipment by laser ranging and automatic focusing - Google Patents

A kind of bar code decoding method and its equipment by laser ranging and automatic focusing Download PDF

Info

Publication number
CN108241813A
CN108241813A CN201611224151.0A CN201611224151A CN108241813A CN 108241813 A CN108241813 A CN 108241813A CN 201611224151 A CN201611224151 A CN 201611224151A CN 108241813 A CN108241813 A CN 108241813A
Authority
CN
China
Prior art keywords
bar code
code decoding
automatic focusing
laser ranging
camera lens
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611224151.0A
Other languages
Chinese (zh)
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.)
Fujian New Continent Automatic Recognition Technology Coltd
Fujian Newland Auto ID Technology Co Ltd
Original Assignee
Fujian New Continent Automatic Recognition Technology Coltd
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 Fujian New Continent Automatic Recognition Technology Coltd filed Critical Fujian New Continent Automatic Recognition Technology Coltd
Priority to CN201611224151.0A priority Critical patent/CN108241813A/en
Publication of CN108241813A publication Critical patent/CN108241813A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10712Fixed beam scanning
    • G06K7/10762Relative movement
    • G06K7/10772Moved readers, e.g. pen, wand
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14131D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

A kind of bar code decoding method and its equipment by laser ranging and automatic focusing passes through auto-focusing, improves decoding field depth, improves the decoding performance of wide bar code, the small bar code of high-precision.A variety of field depth demands are corresponded to by a kind of equipment, so as to reduce development cost and management of product cost.Equipment and barcode position can not changed, by changing focal length, photograph clearly bar code, and decoded for decoding chip, and improved decoding performance, by increasing aperture, reduce the requirement to extraneous light filling.

Description

A kind of bar code decoding method and its equipment by laser ranging and automatic focusing
Technical field
The present invention relates to bar code scan field more particularly to a kind of bar code decoding sides by laser ranging and automatic focusing Method and its equipment.
Background technology
Bar code (abbreviation bar code) can be divided into bar code and two-dimensional bar code, and bar code is regularly arranged by one group The label of item, sky and corresponding character composition, " item " refers to the part relatively low to light reflectance, and " sky " refers to light reflectance Higher part, these information certain with the data representation of empty composition.Two-dimensional bar code is by one with specific geometric figure The bar code of new generation of chequered with black and white rectangle square formation record data symbol information that set pattern rule is distributed in plane (on two-dimensional directional) Technology.In daily life and commercial Application, the use of bar code is more and more extensive, such as:Retail trade, logistic industry, finance Industry is increasing to the use demand of bar code.The development of barcode technology is very fast, and the development of barcode technology is to corresponding item Code scanning device proposes higher requirement.
The composition of barcode scanner mainly coordinates camera lens by the sensor of front end in the prior art, acquires image data And pass back to decoding chip and progress image identification is analyzed by software algorithm, so as to fulfill decoding, then decoding data is communicated and is arrived Client.For some unconventional bar codes, such as high-precision bar code, long bar code, decoding now can be also realized, but decoding is relatively difficult, Or could can only decode at some point, field depth is limited, and influences whether usage experience.The prior art will be taken into account simultaneously Field depth so aperture is all smaller, in order to photograph high-visible figure, needs external stronger light filling to realize.Work as mesh Mark and bar code scan equipment not timing, especially pipelining, fixed bar code scan equipment because the reason of fixed-focus for Target beyond field depth can not decode.
Invention content
Under the conditions of the purpose of the present invention, the mainly fixed-focus of solution existing product, field depth is small, narrow application range, together When aperture be limited by the problem of fixed focal length causes light filling environmental requirement harsh.
In order to solve the above-mentioned technical problem, the present invention uses following technical proposals:
A kind of bar code decoding equipment by laser ranging and automatic focusing, comprising
One bar code decoding chip;
One imaging modules, comprising camera lens, imaging sensor and voice coil motor;
One MCU;
One range finding chip;
Wherein, the MCU controls the range finding chip to measure the camera lens to the air line distance of target, while control institute Stating voice coil motor drives the camera lens to be axially moveable to best focus position, and the bar code decoding chip obtains described image and passes The captured image of sensor is decoded, and the MCU can call the number for being stored with the corresponding theoretical pinpointed focus of different distance According to library.
The range finding chip is laser ranging chip, comprising laser emitter and photon inductive pick-up two parts, is passed through It calculates photon and is issued to the time of reception to measure the distance of target object.
The camera lens is fixed on the carrier of the voice coil motor, and the MCU is by controlling the spring of the voice coil motor The stretch position of piece, so as to adjust the position of the camera lens.
The imaging modules are furnished with large aperture, and it is 300lux to be applicable in light filling illuminance.
The bar code decoding equipment is also comprising buzzer, indicator light, headlamp, aiming lamp.
A kind of bar code decoding method by laser ranging and automatic focusing, system are imaged mould by bar code decoding chip Group, comprising camera lens, imaging sensor and voice coil motor, MCU, range finding chip composition;
A kind of bar code decoding method by laser ranging and automatic focusing comprises the steps of:
S1:The bar code decoding system electrification;
S2:The range finding chip measures the camera lens and target range;
S3:The MCU is set according to pinpointed focus corresponding in measurement distance searching data library;
S4:The voice coil motor adjusts camera lens to pinpointed focus;
S5:Shooting image simultaneously decodes;
S6:Unsuccessful, the then voice coil motor lens fine-tuning focal length preset distance is decoded, repeats S5 steps;Successfully decoded Then export decoding data.
In trim process, the voice coil motor is taken pictures after camera lens is driven to move forward respectively and moves preset distance afterwards, by described Bar code decoding chip analyzes picture quality, selects subsequent movement direction.
After the automatic focusing, focus lock, the range finding chip is stopped, until being opened after decoding failure next time Begin new ranging and automatic focusing flow.
The above technical solution of the present invention has the following advantages over the prior art:
By auto-focusing, decoding field depth is improved, the decoding performance of wide bar code, the small bar code of high-precision is improved, improves Homogeneity of product corresponds to a variety of field depth demands by a kind of equipment, can so as to reduce development cost and management of product cost Not change equipment and barcode position, by changing focal length, clearly bar code was photographed, decodes, carries for decoding chip High decoding performance.By increasing aperture, the requirement to extraneous light filling is reduced.
Description of the drawings
In order to make the content of the present invention more clearly understood, it below according to specific embodiments of the present invention and combines Attached drawing, the present invention is described in further detail, wherein
Fig. 1 is a kind of bar code decoding method by laser ranging and automatic focusing of one embodiment of the invention and its sets Standby system block diagram.
Fig. 2 is a kind of bar code decoding method by laser ranging and automatic focusing of one embodiment of the invention and its sets Standby work flow diagram.
Specific embodiment
As shown in Figure 1, it is a kind of bar code decoding method and its equipment by laser ranging and automatic focusing of the present invention One embodiment system block diagram.It is described a kind of logical comprising one kind by the bar code decoding equipment of laser ranging and automatic focusing The bar code decoding equipment of laser ranging and automatic focusing is crossed, comprising a bar code decoding chip, an imaging modules include mirror Head, imaging sensor and voice coil motor, a MCU, a range finding chip.
Wherein, the MCU controls the range finding chip to measure the camera lens to the air line distance of target, while control institute Stating voice coil motor drives the camera lens to be axially moveable to best focus position, and the bar code decoding chip obtains described image and passes The captured image of sensor is decoded, and the MCU can call the number for being stored with the corresponding theoretical pinpointed focus of different distance According to library.
Existing technical solution is applied on product, is all using manual focusing, is transferred to camera lens point in critical field again Glue is fixed.Once camera lens dispensing is fixed, if desired for the field depth for changing this equipment, existing camera lens is with lens sleeve because of point Glue is fixed, and can not be unscrewed again, then focus, and need to scrap camera lens and lens sleeve, it is also necessary to be dismantled equipment, be replaced Lens sleeve and camera lens, there are the risks that material in disassembly process damages in this way.In the present embodiment, by the range finding chip and The voice coil motor can realize auto-focusing.
The range finding chip is laser ranging chip, comprising laser emitter and photon inductive pick-up two parts, is passed through It calculates photon and is issued to the time of reception to measure the distance of target object.In one embodiment, ST laser rangings is selected to pass Sensor VL53L0X, operation principle are laser transmitter projects photons, will be reflected back after photon collision to target object Come, photon inductive pick-up is received by photon.The MCU of the sensor internal of range finding chip is issued to reception by calculating photon Time measure the distance of target object.The VL53L0X chips have 8 pins, pass through I2C and ST companies Cortex-M4MCU (STM32F302CCT6) it is communicated.Laser range sensor can be stopped by two pins of XSHUT and GPIO1 And wake operation.
The camera lens is fixed on the carrier of the voice coil motor, and the MCU is by controlling the spring of the voice coil motor The stretch position of piece, so as to adjust the position of the camera lens.When needing that field depth adjusting is re-started to equipment, without passing through The method that detaching equipment replaces camera lens and lens sleeve, but controlled by software and carry out auto-focusing fixed-focus realization again.It is described Voice coil motor, that is, VCM (Voice Coil Motor), the voice coil motor inside electronics, be motor one kind.Because principle and Loud speaker is similar, so being voice coil motor, has the characteristics that high frequency sound, high-precision.Its cardinal principle is in a permanent-magnetic field It is interior, by changing the DC current size of motor interior loop, to control the stretch position of spring leaf, move up and down so as to drive. The size of VCM supply currents is controlled by Driver IC, it is suitable so as to adjust to determine the distance of the camera lens movement of VCM carryings When position shooting clear image.
The imaging modules are furnished with large aperture, and it is 300lux to be applicable in light filling illuminance.In the prior art, equipment was producing It focuses in journey according to standard field depth, is all to have precondition, is exactly 300lux light fillings.And the natural light one in practical application As be all 200lux, appear in this way produce before fixed field depth index be unable to reach in actual field, because Operator will not specially force 300lux and carry out light filling recognition in use.It can lead to some bar codes nothing in use in this way Method reaches the quality problem for producing specification standards.Simultaneously as traditional fixed focal length pattern, causes aperture cannot for cooperated with depth of field Excessive, the present invention increases aperture after solving the problems, such as autozoom, by camera lens, to reduce the demand of extraneous light filling or connect Near-nature forest light.
The bar code decoding equipment is also comprising buzzer, indicator light, headlamp, aiming lamp.
As shown in Fig. 2, it is a kind of bar code decoding method and its equipment by laser ranging and automatic focusing of the present invention One embodiment work flow diagram.Its system is by bar code decoding chip, imaging modules, comprising camera lens, imaging sensor and Voice coil motor, MCU, range finding chip composition.Method comprises the steps of:
S1:The bar code decoding system electrification;
S2:The range finding chip measures the camera lens and target range;
S3:The MCU is set according to pinpointed focus corresponding in measurement distance searching data library;
S4:The voice coil motor adjusts camera lens to pinpointed focus;
S5:Shooting image simultaneously decodes;
S6:Unsuccessful, the then voice coil motor lens fine-tuning focal length preset distance is decoded, repeats S5 steps;Successfully decoded Then export decoding data.
Wherein, the database that the MCU is called includes target range data corresponding with pinpointed focus, is early period according to survey The theoretical value that obtains is tried, the influence that ambient lighting and bar code quality are limited in actual use also needs to the fine tuning of S6 steps.
In trim process, the voice coil motor is taken pictures after camera lens is driven to move forward respectively and moves preset distance afterwards, by described Bar code decoding chip analyzes picture quality, selects subsequent movement direction.In one embodiment, before the voice coil motor first carries out It moves and finely tunes and take pictures, until one mobile threshold value of successfully decoded or arrival, then move after reverse execution and finely tune and take pictures.
After the automatic focusing, focus lock, the range finding chip is stopped, until being opened after decoding failure next time Begin new ranging and automatic focusing flow.In one embodiment, zoom becomes fixed-focus scheme, and test stone is:According to some bar code Subject to, it controlling by software, after equipment focusing obtains clear image, software locks automatically, is controlled without voice coil motor, from And product is locked as fixed-focus.According to the different field depths of customer demand ,-fixed-focus of focusing is carried out, makes and meets different visitors The standard of family demand.
Obviously, the above embodiments are merely examples for clarifying the description, and is not intended to limit the embodiments.It is right For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or It changes.There is no necessity and possibility to exhaust all the enbodiments.And the obvious variation thus extended out or Among changing still in the protection domain of the invention.

Claims (8)

1. a kind of bar code decoding equipment by laser ranging and automatic focusing, comprising
One bar code decoding chip;
One imaging modules, comprising camera lens, imaging sensor and voice coil motor;
One MCU;
One range finding chip;
Wherein, the MCU controls the range finding chip to measure the camera lens to the air line distance of target, while control the sound Coil motor drives the camera lens to be axially moveable to best focus position, and the bar code decoding chip obtains described image sensor Captured image be decoded, the MCU can call the database for being stored with the corresponding theoretical pinpointed focus of different distance.
2. a kind of bar code decoding equipment by laser ranging and automatic focusing according to claim 1, which is characterized in that The range finding chip is laser ranging chip, comprising laser emitter and photon inductive pick-up two parts, by calculating photon The time of reception is issued to measure the distance of target object.
3. a kind of bar code decoding equipment by laser ranging and automatic focusing according to claim 2, which is characterized in that The camera lens is fixed on the carrier of the voice coil motor, and the MCU is by controlling the stretching of the spring leaf of the voice coil motor Position, so as to adjust the position of the camera lens.
4. a kind of bar code decoding equipment by laser ranging and automatic focusing according to claim 3, which is characterized in that The imaging modules are furnished with large aperture, and it is 300lux to be applicable in light filling illuminance.
5. a kind of bar code decoding equipment by laser ranging and automatic focusing according to claim 4, which is characterized in that The bar code decoding equipment is also comprising buzzer, indicator light, headlamp, aiming lamp.
6. a kind of bar code decoding method by laser ranging and automatic focusing, system is by bar code decoding chip, imaging modules, Comprising camera lens, imaging sensor and voice coil motor, MCU, range finding chip composition;
It is characterized in that, a kind of bar code decoding method by laser ranging and automatic focusing comprises the steps of:
S1:The bar code decoding system electrification;
S2:The range finding chip measures the camera lens and target range;
S3:The MCU is set according to pinpointed focus corresponding in measurement distance searching data library;
S4:The voice coil motor adjusts camera lens to pinpointed focus;
S5:Shooting image simultaneously decodes;
S6:Unsuccessful, the then voice coil motor lens fine-tuning focal length preset distance is decoded, repeats S5 steps;Successfully decoded is then defeated Go out decoding data.
7. a kind of bar code decoding method by laser ranging and automatic focusing according to claim 6, which is characterized in that In trim process, the voice coil motor is taken pictures after camera lens is driven to move forward respectively and moves preset distance afterwards, passes through the bar code decoding Chip analysis picture quality selects subsequent movement direction.
8. a kind of bar code decoding method by laser ranging and automatic focusing according to claim 7, which is characterized in that After the automatic focusing, focus lock, the range finding chip is stopped, until starting new survey after decoding failure next time Away from automatic focusing flow.
CN201611224151.0A 2016-12-27 2016-12-27 A kind of bar code decoding method and its equipment by laser ranging and automatic focusing Pending CN108241813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611224151.0A CN108241813A (en) 2016-12-27 2016-12-27 A kind of bar code decoding method and its equipment by laser ranging and automatic focusing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611224151.0A CN108241813A (en) 2016-12-27 2016-12-27 A kind of bar code decoding method and its equipment by laser ranging and automatic focusing

Publications (1)

Publication Number Publication Date
CN108241813A true CN108241813A (en) 2018-07-03

Family

ID=62701607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611224151.0A Pending CN108241813A (en) 2016-12-27 2016-12-27 A kind of bar code decoding method and its equipment by laser ranging and automatic focusing

Country Status (1)

Country Link
CN (1) CN108241813A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833793A (en) * 2018-08-27 2018-11-16 深圳艺达文化传媒有限公司 The focusing method and Related product of promotion video
CN109286752A (en) * 2018-09-28 2019-01-29 东莞华贝电子科技有限公司 Vision inspection apparatus and automatic focusing method
CN113312933A (en) * 2021-05-07 2021-08-27 苏州视印智能系统有限公司 Fixed industrial code reader capable of automatically adjusting focal length and automatic focusing method
CN116709017A (en) * 2022-09-26 2023-09-05 荣耀终端有限公司 Code scanning method and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833793A (en) * 2018-08-27 2018-11-16 深圳艺达文化传媒有限公司 The focusing method and Related product of promotion video
CN109286752A (en) * 2018-09-28 2019-01-29 东莞华贝电子科技有限公司 Vision inspection apparatus and automatic focusing method
CN113312933A (en) * 2021-05-07 2021-08-27 苏州视印智能系统有限公司 Fixed industrial code reader capable of automatically adjusting focal length and automatic focusing method
CN116709017A (en) * 2022-09-26 2023-09-05 荣耀终端有限公司 Code scanning method and electronic equipment

Similar Documents

Publication Publication Date Title
US11606483B2 (en) Symbology reader with multi-core processor
CN108241813A (en) A kind of bar code decoding method and its equipment by laser ranging and automatic focusing
US8794521B2 (en) Systems and methods for operating symbology reader with multi-core processor
CN102547108B (en) Autofocusing optical imaging device
CN101171833B (en) Digital cameras with triangulation autofocus systems and related methods
US10262177B2 (en) Optical information reading device
US11244147B2 (en) Optical data exchange while preserving social distancing
US10268853B2 (en) Optical information reading device
JP2020074057A (en) System and method for auto-focusing vision system camera on barcodes
CN105095815A (en) Indicia-reader housing with an integrated optical structure
CN108460307B (en) Symbol reader with multi-core processor and operation system and method thereof
CN1864166A (en) Axial chromatic aberration auto-focusing system and method
US11665432B2 (en) Illumination control for imaging systems with multiple image sensors
JP2023145441A (en) Systems, methods and apparatuses for focus selection using image disparity
CN115552331A (en) Intelligent method for tracking focus in machine vision applications
CN105208259A (en) Method for optimizing camera autofocus and camera
WO2009079200A1 (en) System and method for a barcode reading functionality using an image capturing device
CN102013019A (en) Information image recognition system and method
US7663817B1 (en) Optical system with plano convex lens
KR102079697B1 (en) Readers, Programs, and Units
JP2008250818A (en) Program for portable terminal device and portable terminal device
CN109154711A (en) Camera model and and its auto-focusing method
US11853845B2 (en) Machine vision system and method with multi-aperture optics assembly
CN201910059U (en) Information image identification system
CN109740392A (en) Scanning means and its scanning engine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180703