CN114564975A - Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof - Google Patents

Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof Download PDF

Info

Publication number
CN114564975A
CN114564975A CN202210093641.0A CN202210093641A CN114564975A CN 114564975 A CN114564975 A CN 114564975A CN 202210093641 A CN202210093641 A CN 202210093641A CN 114564975 A CN114564975 A CN 114564975A
Authority
CN
China
Prior art keywords
unit
code scanning
control
signal switching
image
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
CN202210093641.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.)
Suzhou Mobi Inton Intelligent System Co ltd
Original Assignee
Suzhou Mobi Inton Intelligent System 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 Suzhou Mobi Inton Intelligent System Co ltd filed Critical Suzhou Mobi Inton Intelligent System Co ltd
Priority to CN202210093641.0A priority Critical patent/CN114564975A/en
Publication of CN114564975A publication Critical patent/CN114564975A/en
Pending legal-status Critical Current

Links

Images

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/10792Special measures in relation to the object to be scanned
    • G06K7/10801Multidistance reading
    • G06K7/10811Focalisation
    • 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/0004Hybrid readers

Landscapes

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

Abstract

The invention provides a code scanning engine giving consideration to both long distance and short distance and a code scanning method thereof, wherein the code scanning engine can give consideration to both long distance and short distance code scanning by arranging a first camera unit and a second camera unit with different focal lengths, and has incomparable advantages of a zoom engine in the aspects of cost, size and durability; by arranging the control signal switching unit and the data signal switching unit, the existing code scanning engine can be compatible, other signals do not need to be additionally added, and the compatibility and the cost are optimal; the code scanning method adopts an alternate switching mode, so that a proper scanning mode can be adopted for each bar code, and the decoding effect is ensured.

Description

Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof
Technical Field
The invention relates to the technical field of bar code scanning, in particular to a code scanning engine giving consideration to both long distance and short distance and a code scanning method thereof.
Background
At present, the bar code scanning device is widely applied to the fields of business surpassing, logistics, industrial identification and the like. The bar code scanning technology is generally implemented based on a digital image acquisition and processing mode, and a bar code image of a marked object is acquired through a digital camera original and is identified as a digital signal which can be directly accepted by a computer through image processing and decoding.
In some industrial applications, when a user uses a code scanning gun or a PDA or other equipment to input bar code data, some stations need to input long-distance bar codes, some stations need to input short-distance bar codes, and even some stations need to scan long-distance bar codes and near-end bar codes. Most of the existing middle and low end code scanning engines use fixed focus optical lenses, the optical depth of field is short, different product SKUs are generally configured according to the use scenes, such as hd (high definition) for short distance attack, ER/xr (extended range) for long distance attack, sr (standard range) for medium and short distance attack, and different SKUs of the middle and low end fixed focus lenses have different optical clear ranges, so that code scanning for long distance and medium and short distance cannot be considered; the high-end code scanning engine can clearly see the bar codes at the far end or the near end by dynamically adjusting the focal length by using a zoom lens, but the durability of the lens is much worse than that of a fixed-focus lens due to the size, price and zoom time of the zoom lens.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides a code scanning engine giving consideration to both long distance and short distance and a code scanning method thereof.
In order to realize the purpose, the invention adopts the following technical scheme: a code scanning engine giving consideration to both long distance and short distance comprises a first camera shooting unit, a second camera shooting unit, a control signal switching unit, a data signal switching unit and a control unit, wherein the first camera shooting unit is provided with a first focal length; the second camera shooting unit is provided with a second focal length, the optical axis of the second camera shooting unit is parallel to the optical axis of the first camera shooting unit, and the first focal length is larger than the second focal length; the control signal switching unit is connected with one of the first camera unit and the second camera unit; the data signal switching unit is connected with one of the first camera unit and the second camera unit; the control unit is connected with the control signal switching unit to control the control signal switching unit to be connected with one of the first image pickup unit and the second image pickup unit, and the control unit is connected with the data signal switching unit to control the data signal switching unit to be connected with one of the first image pickup unit and the second image pickup unit.
Preferably, the control signal switching unit includes a control signal switch, the control unit is connected to the control signal switch to control the control signal switch to be connected to one of the first image capturing unit and the second image capturing unit, the data signal switching unit includes a data signal switch, and the control unit is connected to the data signal switch to control the data signal switch to be connected to one of the first image capturing unit and the second image capturing unit.
Preferably, the code scanning engine further comprises a decoding unit, an input end of the decoding unit is connected with an output end of the control unit to acquire the barcode image and decode the barcode image, and an output end of the decoding unit is connected with an input end of the control unit to transmit a decoding result to the control unit.
In another aspect of the present invention, a code scanning method of a code scanning engine with both long distance and short distance is provided, where the code scanning engine is the code scanning engine described above, and the code scanning method includes the following steps:
s1, a control unit controls a data signal switching unit and a control signal switching unit to be respectively connected with a first camera shooting unit;
s2, judging whether code scanning is needed or not, if so, performing step S3, and if not, closing the code scanning engine;
S3, the control unit controls the first camera unit to acquire a bar code image, and the first camera unit transmits the bar code image to the control unit for updating and caching;
s4, the control unit controls the data signal switching unit and the control signal switching unit to be connected with the second camera shooting unit respectively;
s5, decoding the bar code image cached by the control unit;
s6, judging whether code scanning is needed, if so, performing step S7, and if not, closing the code scanning engine;
s7, the control unit controls the second camera unit to acquire a bar code image, and the second camera unit transmits the bar code image to the control unit for updating and caching;
s8, the control unit controls the data signal switching unit and the control signal switching unit to be respectively connected with the first camera shooting unit;
s9, decoding the bar code image cached by the control unit;
s10, repeating the steps S2 to S9.
Preferably, before step S1, the control unit controls the data signal switching unit and the control signal switching unit to be connected to the first image pickup unit, respectively, to initialize the first image pickup unit, and the control unit controls the data signal switching unit and the control signal switching unit to be connected to the second image pickup unit, respectively, to initialize the second image pickup unit.
Preferably, in step S2 and step S6, the determination of whether the barcode needs to be scanned is based on not only scanning the new barcode but also scanning the old barcode again due to the failed decoding of the barcode image in the previous step.
Preferably, step S4 and step S5 are performed simultaneously, and step S8 and step S9 are performed simultaneously.
Compared with the prior art, the invention has the following beneficial effects: by arranging the first camera unit and the second camera unit with different focal lengths, code scanning of long distance and short distance can be considered, and meanwhile, the zoom engine has incomparable advantages in cost, size and durability; by arranging the control signal switching unit and the data signal switching unit, the existing code scanning engine can be compatible, other signals do not need to be additionally added, and the compatibility and the cost are optimal; through setting up the camera unit that two focuses are different to adopt the mode of switching in turn, make and all can adopt suitable scanning mode to each bar code, guarantee the decoding effect.
Drawings
FIG. 1 is a schematic structural diagram of a code scanning engine with both long range and short range according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a code scanning method of a code scanning engine with both long range and short range in accordance with an embodiment of the present invention.
Detailed Description
In order to further understand the objects, structures, features, and functions of the present invention, the following embodiments are described in detail.
Referring to fig. 1, a code scanning engine compatible with long distance and short distance according to the present invention includes a first image capturing unit 1, a second image capturing unit 2, a control signal switching unit 3, a data signal switching unit 4, and a control unit 5. The first camera unit 1 and the second camera unit 2 are used for acquiring a barcode image, and the control signal switching unit 3 and the data signal switching unit 4 are used for switching and connecting the first camera unit 1 and the second camera unit 2.
The first camera unit 1 has a first focal length, the second camera unit 2 has a second focal length, an optical axis of the second camera unit 2 is parallel to an optical axis of the first camera unit 1, and the first focal length is greater than the second focal length. In practical use, the first camera unit 1 is used for medium-short distance scanning, and the second camera unit 2 is used for long-distance scanning.
The control signal switching unit 3 is connected with one of the first camera unit 1 and the second camera unit 2, so that the first camera unit 1 and the second camera unit 2 can be switched and controlled to perform scanning operation to acquire a barcode image.
The data signal switching unit 4 is connected to one of the first image pickup unit 1 and the second image pickup unit 2 to be able to switch the acquisition of the barcode images of the first image pickup unit 1 and the second image pickup unit 2.
The control unit 5 is connected with the control signal switching unit 3 to control the control signal switching unit 3 to be connected with one of the first camera unit 1 and the second camera unit 2 so as to control the first camera unit 1 or the second camera unit 2 to perform scanning operation to obtain a barcode image, and the control unit 5 is connected with the data signal switching unit 4 to control the data signal switching unit 4 to be connected with one of the first camera unit 1 and the second camera unit 2 so as to obtain the barcode image of the first camera unit 1 or the second camera unit 2.
The code scanning engine of the embodiment can achieve both long-distance and short-distance code scanning by arranging the first camera unit 1 and the second camera unit 2 with different focal lengths, and has incomparable advantages of a zoom engine in the aspects of cost, size and durability; by arranging the control signal switching unit 3 and the data signal switching unit 4, the existing code scanning engine can be compatible, other signals do not need to be additionally added, and the compatibility and the cost are optimal.
Preferably, the control signal switching unit 3 includes a control signal switch 31, the control unit 5 is connected to the control signal switch 31 to control the control signal switch 31 to be connected to one of the first and second image pickup units 1 and 2, the data signal switching unit 4 includes a data signal switch 41, and the control unit 5 is connected to the data signal switch 41 to control the data signal switch 41 to be connected to one of the first and second image pickup units 1 and 2.
Preferably, the code scanning engine further comprises a decoding unit 6, an input end of the decoding unit 6 is connected with an output end of the control unit 5 to acquire and decode the barcode image, and an output end of the decoding unit 6 is connected with an input end of the control unit 5 to transmit a decoding result to the control unit 5.
Referring to fig. 2, the present invention further provides a code scanning method of a code scanning engine compatible with long distance and short distance, where the code scanning engine is the one described in any of the above embodiments, and the code scanning method includes the following steps:
s1, a control unit 5 controls a data signal switching unit 4 and a control signal switching unit 3 to be respectively connected with a first camera shooting unit 1;
s2, judging whether code scanning is needed or not, if so, performing a step S3, and if not, closing the code scanning engine;
s3, the control unit 5 controls the first camera shooting unit 1 to obtain a bar code image, and the first camera shooting unit 1 transmits the bar code image to the control unit 5 to update and cache the bar code image;
s4, the control unit 5 controls the data signal switching unit 4 and the control signal switching unit 3 to be respectively connected with the second camera shooting unit 2;
s5, decoding the bar code image cached by the control unit 5;
s6, judging whether code scanning is needed or not, if so, performing step S7, and if not, closing the code scanning engine;
S7, the control unit 5 controls the second camera unit 2 to obtain a bar code image, and the second camera unit 2 transmits the bar code image to the control unit 5 for updating and caching;
s8, the control unit 5 controls the data signal switching unit 4 and the control signal switching unit 3 to be connected with the first camera unit 1 respectively;
s9, decoding the bar code image cached by the control unit 5;
s10, repeating the steps S2 to S9.
Preferably, before step S1, the control unit 5 controls the data signal switching unit 4 and the control signal switching unit 3 to be connected to the first image pickup unit 1, respectively, to initialize the first image pickup unit 1, and the control unit 5 controls the data signal switching unit 4 and the control signal switching unit 3 to be connected to the second image pickup unit 2, respectively, to initialize the second image pickup unit 2.
Preferably, in step S2 and step S6, the basis for determining whether to scan a code further includes, in addition to scanning a new barcode, scanning an old barcode again after decoding the failed barcode image in the previous step, where scanning the new barcode includes scanning a first barcode when a barcode scanning engine is just started, and also includes scanning a next barcode continuously after decoding the barcode image in the previous step successfully, so that when the decoding of the barcode image acquired by using the first camera unit 1 is unsuccessful, the second camera unit 2 can be used to acquire the barcode image again, so that each barcode can adopt a proper scanning mode, and the decoding effect is ensured.
Preferably, the step S4 and the step S5 are performed simultaneously, and the step S8 and the step S9 are performed simultaneously, so that the switching process and the decoding process are performed simultaneously, thereby reducing unnecessary individual switching time, shortening barcode reading time, and improving barcode reading efficiency.
According to the code scanning method of the code scanning engine considering both long distance and short distance, the two camera units with different focal lengths are arranged, and an alternate switching mode is adopted, so that a proper scanning mode can be adopted for each bar code, and the decoding effect is ensured.
The present invention has been described in relation to the above embodiments, which are only examples of the implementation of the present invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. Rather, it is intended that all such modifications and variations be included within the spirit and scope of this invention.

Claims (7)

1. A code scanning engine for both long and short distances, comprising:
a first camera element having a first focal length;
the second camera shooting unit is provided with a second focal length, the optical axis of the second camera shooting unit is parallel to the optical axis of the first camera shooting unit, and the first focal length is larger than the second focal length;
A control signal switching unit connected to one of the first image pickup unit and the second image pickup unit;
a data signal switching unit connected to one of the first image pickup unit and the second image pickup unit;
and the control unit is connected with the control signal switching unit to control the control signal switching unit to be connected with one of the first image pickup unit and the second image pickup unit, and the control unit is connected with the data signal switching unit to control the data signal switching unit to be connected with one of the first image pickup unit and the second image pickup unit.
2. The code scanning engine for both long and short distances according to claim 1, wherein the control signal switch unit includes a control signal switch, the control unit is connected to the control signal switch to control the control signal switch to be connected to one of the first image capturing unit and the second image capturing unit, the data signal switch unit includes a data signal switch, and the control unit is connected to the data signal switch to control the data signal switch to be connected to one of the first image capturing unit and the second image capturing unit.
3. The code scanning engine for both long distance and short distance as claimed in claim 1, further comprising a decoding unit, wherein an input terminal of said decoding unit is connected to an output terminal of said control unit for obtaining and decoding a barcode image, and an output terminal of said decoding unit is connected to an input terminal of said control unit for transmitting a decoding result to said control unit.
4. A code scanning method of a code scanning engine with both long distance and short distance, wherein the code scanning engine is the code scanning engine as claimed in claim 1, 2 or 3, the code scanning method comprising the steps of:
s1, the control unit controls the data signal switching unit and the control signal switching unit to be connected with the first camera shooting unit respectively;
s2, judging whether code scanning is needed or not, if so, performing a step S3, and if not, closing the code scanning engine;
s3, the control unit controls the first camera shooting unit to obtain a bar code image, and the first camera shooting unit transmits the bar code image to the control unit to update and cache;
s4, the control unit controls the data signal switching unit and the control signal switching unit to be respectively connected with the second image pick-up unit;
S5, decoding the bar code image cached by the control unit;
s6, judging whether code scanning is needed or not, if so, performing step S7, and if not, closing the code scanning engine;
s7, the control unit controls the second camera unit to acquire a bar code image, and the second camera unit transmits the bar code image to the control unit for updating and caching;
s8, the control unit controls the data signal switching unit and the control signal switching unit to be connected with the first camera shooting unit respectively;
s9, decoding the bar code image cached by the control unit;
s10, repeating the steps S2 to S9.
5. The method for code scanning of a code scanning engine compatible with both long distance and short distance as claimed in claim 4, wherein before step S1, said control unit controls said data signal switching unit and said control signal switching unit to be respectively connected to said first image capturing unit to initialize said first image capturing unit, and said control unit controls said data signal switching unit and said control signal switching unit to be respectively connected to said second image capturing unit to initialize said second image capturing unit.
6. The method of claim 4, wherein the step S2 and the step S6 are based on the determination of whether scanning is required, and further comprises the step of re-scanning the old barcode after the decoding failure of the barcode image in the previous step, in addition to the step of scanning the new barcode.
7. The code scanning method of claim 4, wherein step S4 and step S5 are performed simultaneously, and step S8 and step S9 are performed simultaneously.
CN202210093641.0A 2022-01-26 2022-01-26 Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof Pending CN114564975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210093641.0A CN114564975A (en) 2022-01-26 2022-01-26 Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210093641.0A CN114564975A (en) 2022-01-26 2022-01-26 Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof

Publications (1)

Publication Number Publication Date
CN114564975A true CN114564975A (en) 2022-05-31

Family

ID=81713658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210093641.0A Pending CN114564975A (en) 2022-01-26 2022-01-26 Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof

Country Status (1)

Country Link
CN (1) CN114564975A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725949A (en) * 2023-12-21 2024-03-19 广州讯宝电子科技有限公司 Code scanner with screen and scanning method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409147A (en) * 2017-08-16 2019-03-01 中兴通讯股份有限公司 A kind of bar code recognition and device
CN109670362A (en) * 2017-10-16 2019-04-23 上海商米科技有限公司 Bar code scanning method and device
CN110008771A (en) * 2019-03-15 2019-07-12 阿里巴巴集团控股有限公司 A kind of scan code system and barcode scanning method
CN110348257A (en) * 2019-06-24 2019-10-18 阿里巴巴集团控股有限公司 A kind of bar code analysis method and device
CN209980254U (en) * 2019-04-02 2020-01-21 苏州摩比信通智能系统有限公司 Bar code scanning device capable of automatically adapting to different distances

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409147A (en) * 2017-08-16 2019-03-01 中兴通讯股份有限公司 A kind of bar code recognition and device
CN109670362A (en) * 2017-10-16 2019-04-23 上海商米科技有限公司 Bar code scanning method and device
CN110008771A (en) * 2019-03-15 2019-07-12 阿里巴巴集团控股有限公司 A kind of scan code system and barcode scanning method
CN209980254U (en) * 2019-04-02 2020-01-21 苏州摩比信通智能系统有限公司 Bar code scanning device capable of automatically adapting to different distances
CN110348257A (en) * 2019-06-24 2019-10-18 阿里巴巴集团控股有限公司 A kind of bar code analysis method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725949A (en) * 2023-12-21 2024-03-19 广州讯宝电子科技有限公司 Code scanner with screen and scanning method thereof

Similar Documents

Publication Publication Date Title
US8605192B2 (en) Imaging apparatus and electronic device including an imaging apparatus
CN101061487A (en) System and method for aiming an optical code scanning device
CN106657800B (en) Double-camera bar code scanning device and scanning method
CN114564975A (en) Code scanning engine giving consideration to both long distance and short distance and code scanning method thereof
CN209980254U (en) Bar code scanning device capable of automatically adapting to different distances
CN101470324A (en) Auto-focusing apparatus and method for camera
EP3639520B1 (en) Selection and signaling of motion vector (mv) precisions
CN106993129B (en) Control method, control device and electronic device
US7796875B2 (en) Focusing system and method for enhancing resolution of an optical system
US11310409B2 (en) Focusing method, device, and mobile terminal
CN106131415B (en) Two-dimensional code image scanning method and device and mobile terminal
WO2006129183A1 (en) Temporal image buffer for an image processor using a compressed raw image
CN111539236A (en) Method for reading multiple bar codes at one time
CN103763556A (en) Video image encoding and decoding device and method and transmission system and method
US20220121018A1 (en) Zoom lens, zoom method, terminal, and computer-readable storage medium
CN113099102A (en) Focusing method, focusing device, storage medium and electronic device
CN105488447A (en) Mobile bar code scanning device based on hand-held terminal with shooting function
CN201667683U (en) Large focal variation ratio automatic focusing all-in-one video camera
CN103873778A (en) Visible light signal receiving method and device and visible light communication system
JP2019521550A (en) Method and apparatus for context adaptive binary arithmetic coding of a series of binary symbols representing syntax elements related to video data
US7106225B2 (en) Coding apparatus and imaging apparatus
CN111104987B (en) Face recognition method and device and electronic equipment
CN114662512A (en) Code scanning method of double-camera code scanning engine
CN217156919U (en) Optical system and code scanner applied to code scanning
CN114564976A (en) Code scanning method of double-camera code scanning engine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220531