CN105069391A - QR code aligning and scanning method and device - Google Patents

QR code aligning and scanning method and device Download PDF

Info

Publication number
CN105069391A
CN105069391A CN201510498220.6A CN201510498220A CN105069391A CN 105069391 A CN105069391 A CN 105069391A CN 201510498220 A CN201510498220 A CN 201510498220A CN 105069391 A CN105069391 A CN 105069391A
Authority
CN
China
Prior art keywords
dimensional code
camera
processing module
image processing
scanned 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
CN201510498220.6A
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 Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment 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 Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201510498220.6A priority Critical patent/CN105069391A/en
Publication of CN105069391A publication Critical patent/CN105069391A/en
Priority to PCT/CN2016/091906 priority patent/WO2017028663A1/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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

The invention discloses a QR code aligning and scanning method and device. The QR code aligning and scanning method comprises the following steps: S1, a camera aligns to a QR code through a guiding light; S2, the QR code is scanned so that a scanned image is obtained, and a sensor sends the scanned image to an image processing module; S3, the image processing module processes and decodes the scanned image. According to the QR code aligning and scanning method and device, aligning and scanning can be realized, so that complete QR code information is obtained, which is convenient to operate.

Description

Two-dimensional code alignment scanning method and device
Technical Field
The invention relates to a method and a device for two-dimensional code alignment scanning.
Background
With the rapid development of e-commerce, the demand that e-commerce directly uses a POS machine to conduct transactions is higher and higher, and the functional demand of tag identification on the POS machine for facilitating e-commerce transactions is stronger. Although some POS have a two-dimensional code scanning function, the POS can only guide the POS through light, and in a place with strong light, the POS can not accurately position the POS by covering the POS with the light, and the scanning effect is also affected by the scheme of light guidance due to the increase of the scanning requirement on the mobile phone.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: through the guide effect of guide lamp, realize the alignment scanning of two-dimensional code to acquire complete two-dimensional code information.
In order to solve the technical problems, the invention adopts the technical scheme that: the method for two-dimensional code alignment scanning comprises the following steps:
s1: the camera aligns the two-dimensional code through the guide lamp;
s2: scanning the two-dimensional code to obtain a scanned image, and sending the scanned image to an image processing module through a sensor;
s3: and the image processing module processes and decodes the scanned image.
In order to solve the technical problems, the invention adopts the technical scheme that: provided is an apparatus for two-dimensional code alignment scanning, including: the system comprises a camera, a guide lamp, a sensor and an image processing module; wherein,
the guide lamp is used for guiding the position of the two-dimensional code;
the camera aligns the two-dimensional code through the guide lamp;
scanning the two-dimensional code to obtain a scanned image, and sending the scanned image to an image processing module through a sensor;
and the image processing module processes and decodes the scanned image.
The invention has the beneficial effects that: different from the prior art, the two-dimensional code alignment device is convenient and fast to operate, and the guide lamp is used for guiding the camera to position the two-dimensional code, so that alignment scanning is realized to obtain complete two-dimensional code information.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of the method of the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the method of the present invention;
FIG. 3 is a block diagram of a third embodiment of the apparatus of the present invention;
fig. 4 is a block diagram of a third embodiment of the apparatus of the present invention.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
The most key concept of the invention is as follows: the camera is guided to align the two-dimensional code through the guide lamp, and scanning is carried out.
Referring to fig. 1, an embodiment of the present invention provides a two-dimensional code alignment scanning method, including the following steps:
s1: the camera aligns the two-dimensional code through the guide lamp;
s2: scanning the two-dimensional code to obtain a scanned image, and sending the scanned image to an image processing module through a sensor;
s3: and the image processing module processes and decodes the scanned image.
As shown in fig. 2, before step S1, the second embodiment of the present invention further includes:
s01: respectively connecting the camera and the image processing module with the sensor;
s02: and a guide lamp is integrated on the camera.
Generally, the image processing module may be a CPU. In the actual design and production process, a high-performance sensor can be matched with a high-definition lens, and the sensor is directly connected with a CPU (central processing unit) of a product through a CSI (channel state information) interface or an MIPI (million instructions per second) interface.
High definition digtal camera can integrate the pilot lamp, and the pilot lamp then is used for guiding the position of scanning, opens the pilot lamp promptly after, according to the irradiation range of guiding light, the camera is synchronous to be removed thereupon to acquire the concrete position of two-dimensional code, and preferably, adjustable pilot lamp and the distance of two-dimensional code and the focus of itself, make whole two-dimensional code all contain in the irradiation range of guiding light, in order to acquire complete two-dimensional code information. The camera is integrated with the guide lamp, so that the size of the whole device can be reduced, and the miniaturization is realized. In another embodiment, the guiding lamp and the camera can be arranged separately, and only the two can be ensured to move synchronously.
After step S02, the method further includes:
s03: and a light supplement lamp is integrated on the camera.
The light supplement lamp is used for supplementing the brightness of the picture under the low-illumination environment. As described above, the light supplement lamp is integrated into the camera, also for the sake of miniaturization of the apparatus. And under other circumstances, the light filling lamp can separately set up with the camera, only needs to guarantee that the light filling lamp can realize the light filling effect to the two-dimensional code to make the camera acquire enough light intensity can.
After step S2, the method further includes:
s21: the image processing module sends the scanned image to the display module;
s22: the camera acquires an alignment correction instruction of a scanned image through a display module;
the execution returns to step S1.
Specifically, in the implementation of the two-dimensional code scanning function in the embodiment of the present invention, the sensor continuously sends the image to the system CPU, and the CPU performs image processing and decoding, and sends a prompt after decoding is successful.
When the sensor sends the image to the CPU, the CPU can send the image to the display screen for displaying according to the requirement, so that a user can align and correct the image, and the camera obtains more accurate alignment scanning through alignment correction, so that the accuracy can be improved.
After step S2, the method further includes:
s23: the image processing module converts the scanned image into a YUV format;
s24: judging whether the Y component value is smaller than a preset value or not;
if yes, go to step S25: controlling the light supplement lamp and turning on the guide lamp; and returns to perform step S2;
otherwise, step S21 or S3 is executed.
If illumination intensity is not enough promptly appears, and when influencing the camera and acquire the two-dimensional code scanning, the accessible sets up the light filling lamp and carries out the light filling. Specifically, the scanned image received by the CPU is converted into YUV format, and the processing is effective to determine the luminance information of the scanned image by indicating the Y component of the luminance value, and determine whether it is lower than a predetermined value, so as to selectively turn on the fill light.
If the integral Y component value is smaller than the set value, the current decoding state is directed at a non-self-luminous decoding object, and the light supplementing lamp and the guiding lamp need to be turned on at the moment, so that the rapid guiding in the state is realized.
If the integral Y component value is larger than the set value, the current state is directed at the self-luminous object, and the light supplementing lamp and the guiding lamp are turned off at the moment for scanning.
In other embodiments, a camera preview interface can be further opened, and quick guidance is realized in a preview + alignment mode.
In the second embodiment of the invention, the guide lamp and/or the light supplement lamp are/is integrated on the camera, so that the miniaturization of the equipment can be realized. Simultaneously through the mode that increases preview alignment, realize the alignment scanning of higher accuracy, and under the condition of external light intensity, open the light filling lamp and realize the scanning to obtain complete two-dimensional code information, not only the simple operation, user experience degree also obtains promoting moreover.
Correspondingly, as shown in fig. 3, a third embodiment of the present invention provides an apparatus 100 for two-dimensional code alignment scanning, including: a camera 110, a guide light 120, a sensor 130 and an image processing module 140; wherein,
the guide lamp 120 is used for guiding the position of the two-dimensional code;
the camera 110 scans the two-dimensional code by aiming at the guide lamp 120, and after acquiring a scanned image, the scanned image is sent to the image processing module 140 through the sensor 130;
the image processing module 140 is configured to process and decode the scanned image.
As shown in fig. 4, the sensor 130 in the fourth embodiment of the present invention is respectively connected to the camera 110 and the image processing module 140; and a guide light 120 is integrated on the camera 110.
The device 100 further includes a light supplement lamp 150, and the light supplement lamp 150 is integrated on the camera 110 and is used for supplementing the illumination intensity in a low-illumination environment.
Wherein the apparatus 100 further comprises a display module 160,
the display module 160 is configured to display the scanned image sent by the preview image processing module 140;
the camera 110 acquires an alignment correction instruction of the scanned image through the display module 160.
Wherein, the image processing module 140 further comprises:
a conversion unit 141, configured to convert the scanned image into a YUV format;
and a judging unit 142 for judging whether the Y component value is less than a predetermined value.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (10)

1. A two-dimensional code alignment scanning method is characterized by comprising the following steps:
s1: the camera aligns the two-dimensional code through the guide lamp;
s2: scanning the two-dimensional code to obtain a scanned image, and sending the scanned image to an image processing module through a sensor;
s3: and the image processing module processes and decodes the scanned image.
2. The method for two-dimensional code alignment scanning according to claim 1, wherein before step S1, the method comprises:
s01: respectively connecting the camera and the image processing module with the sensor;
s02: and a guide lamp is integrated on the camera.
3. The method for two-dimensional code alignment scanning according to claim 2, further comprising, after the step S02:
s03: and a light supplement lamp is integrated on the camera.
4. The method for aligned scanning of two-dimensional code according to claim 1, wherein after step S2, the method further comprises:
s21: the image processing module sends the scanned image to the display module;
s22: the camera acquires an alignment correction instruction of a scanned image through a display module;
the execution returns to step S1.
5. The method for two-dimensional code alignment scanning according to claim 4, further comprising, after the step S2:
s23: the image processing module converts the scanned image into a YUV format;
s24: judging whether the Y component value is smaller than a preset value or not;
if yes, go to step S25: controlling the light supplement lamp and turning on the guide lamp; and returns to perform step S2;
otherwise, step S21 or S3 is executed.
6. An apparatus for aligning and scanning two-dimensional codes, comprising: the system comprises a camera, a guide lamp, a sensor and an image processing module; wherein,
the guide lamp is used for guiding the position of the two-dimensional code;
the camera is used for aligning and scanning the two-dimensional code through the guide lamp, acquiring a scanned image and then sending the scanned image to the image processing module through the sensor;
the image processing module is used for processing and decoding the scanned image.
7. The device for two-dimensional code alignment scanning according to claim 6, wherein
The sensor is respectively connected with the camera and the image processing module;
the camera is integrated with a guide lamp.
8. The device for the alignment scanning of the two-dimensional code according to claim 6, further comprising a fill-in light integrated into the camera for supplementing the illumination intensity in a low illumination environment.
9. The device for two-dimensional code alignment scanning according to claim 6, further comprising a display module, wherein,
the display module is used for displaying the scanned image sent by the image processing module;
the camera acquires an alignment correction instruction of a scanned image through the display module.
10. The apparatus for two-dimensional code alignment scanning according to claim 6, wherein the image processing module further comprises:
the conversion unit is used for converting the scanned image into a YUV format;
and a judging unit for judging whether the Y component value is less than a predetermined value.
CN201510498220.6A 2015-08-14 2015-08-14 QR code aligning and scanning method and device Pending CN105069391A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510498220.6A CN105069391A (en) 2015-08-14 2015-08-14 QR code aligning and scanning method and device
PCT/CN2016/091906 WO2017028663A1 (en) 2015-08-14 2016-07-27 Method and system for aligning and scanning two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510498220.6A CN105069391A (en) 2015-08-14 2015-08-14 QR code aligning and scanning method and device

Publications (1)

Publication Number Publication Date
CN105069391A true CN105069391A (en) 2015-11-18

Family

ID=54498753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510498220.6A Pending CN105069391A (en) 2015-08-14 2015-08-14 QR code aligning and scanning method and device

Country Status (2)

Country Link
CN (1) CN105069391A (en)
WO (1) WO2017028663A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827890A (en) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 Method and apparatus for scanning 2D codes
WO2017028669A1 (en) * 2015-08-14 2017-02-23 福建联迪商用设备有限公司 Light supplementation method and system for two-dimensional code scanning
WO2017028663A1 (en) * 2015-08-14 2017-02-23 福建联迪商用设备有限公司 Method and system for aligning and scanning two-dimensional code
WO2018103676A1 (en) * 2016-12-07 2018-06-14 中兴通讯股份有限公司 Scanning method, device and terminal
CN108259667A (en) * 2018-01-09 2018-07-06 上海摩软通讯技术有限公司 Have the function of to go out and shield the mobile terminal and its control method of barcode scanning

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2690981Y (en) * 2004-03-17 2005-04-06 深圳矽感科技有限公司 Non contact barcode reader
CN202584157U (en) * 2012-05-21 2012-12-05 深圳市民德电子科技有限公司 Two-dimensional bar code reading system
CN103679113A (en) * 2013-12-27 2014-03-26 北京握奇智能科技有限公司 Positioning and focusing method and system of OTP (One Time Password) device in two-dimensional bar code scanning
US20140231523A1 (en) * 2013-02-15 2014-08-21 Samsung Electronics Co., Ltd. Electronic device capable of recognizing object
CN204102147U (en) * 2014-10-10 2015-01-14 深圳长城开发科技股份有限公司 A kind of graphic code scanister
US20150053765A1 (en) * 2012-10-04 2015-02-26 The Code Corporation Barcode-reading enhancement system for a computing device that comprises a camera and an illumination system
CN104598862A (en) * 2015-01-04 2015-05-06 江苏智联天地科技有限公司 Miniature embedded code scanning system and method for mobile intelligent terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202948454U (en) * 2012-11-21 2013-05-22 厦门安捷物联网络科技有限公司 Graphical barcode reading device
CN204302991U (en) * 2014-12-24 2015-04-29 希姆通信息技术(上海)有限公司 The scan-data conversion equipment of Quick Response Code and mobile terminal
CN105069391A (en) * 2015-08-14 2015-11-18 福建联迪商用设备有限公司 QR code aligning and scanning method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2690981Y (en) * 2004-03-17 2005-04-06 深圳矽感科技有限公司 Non contact barcode reader
CN202584157U (en) * 2012-05-21 2012-12-05 深圳市民德电子科技有限公司 Two-dimensional bar code reading system
US20150053765A1 (en) * 2012-10-04 2015-02-26 The Code Corporation Barcode-reading enhancement system for a computing device that comprises a camera and an illumination system
US20140231523A1 (en) * 2013-02-15 2014-08-21 Samsung Electronics Co., Ltd. Electronic device capable of recognizing object
CN103679113A (en) * 2013-12-27 2014-03-26 北京握奇智能科技有限公司 Positioning and focusing method and system of OTP (One Time Password) device in two-dimensional bar code scanning
CN204102147U (en) * 2014-10-10 2015-01-14 深圳长城开发科技股份有限公司 A kind of graphic code scanister
CN104598862A (en) * 2015-01-04 2015-05-06 江苏智联天地科技有限公司 Miniature embedded code scanning system and method for mobile intelligent terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
中国物品编码中心: "《二维条码技术与应用》", 31 July 2007 *
刘毓敏 等: "《数字图像素材的制作与运用》", 31 January 2005 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028669A1 (en) * 2015-08-14 2017-02-23 福建联迪商用设备有限公司 Light supplementation method and system for two-dimensional code scanning
WO2017028663A1 (en) * 2015-08-14 2017-02-23 福建联迪商用设备有限公司 Method and system for aligning and scanning two-dimensional code
CN105827890A (en) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 Method and apparatus for scanning 2D codes
WO2018103676A1 (en) * 2016-12-07 2018-06-14 中兴通讯股份有限公司 Scanning method, device and terminal
CN108259667A (en) * 2018-01-09 2018-07-06 上海摩软通讯技术有限公司 Have the function of to go out and shield the mobile terminal and its control method of barcode scanning

Also Published As

Publication number Publication date
WO2017028663A1 (en) 2017-02-23

Similar Documents

Publication Publication Date Title
CN105069391A (en) QR code aligning and scanning method and device
US9817628B2 (en) Display system, display terminal, display method and computer readable recording medium having program thereof
US20170142379A1 (en) Image projection system, projector, and control method for image projection system
MY196389A (en) Two-dimensional code and method and apparatus for recognizing two-dimensional code, and terminal
CN106851234B (en) Projector and control method of projector
US9196029B2 (en) Threshold setting device for setting threshold used in binarization process, object detection device, threshold setting method, and computer readable storage medium
US20130271508A1 (en) Display device, display control method, and recording medium
CN103679113A (en) Positioning and focusing method and system of OTP (One Time Password) device in two-dimensional bar code scanning
US20240045059A1 (en) Distance measurement device, deriving method for distance measurement, and deriving program for distance measurement
CN104159057A (en) Wireless projection system and wireless projector
US20200343972A1 (en) Optical communication method
WO2015045686A1 (en) Display processing device, method for controlling same, and control program therefor
JP6450498B2 (en) Image processing apparatus, image processing system, and image processing method
JP2015177308A (en) Portable terminal device, image correction method, and image correction program
US20220191392A1 (en) Display method, detection apparatus, and non-transitory computer-readable storage medium storing a program
CN105578162A (en) Laser projector for optimizing dynamic contrast of projection images
US11047980B2 (en) Distance measurement device, control method for distance measurement, and control program for distance measurement
US20180180736A1 (en) Distance measurement device, control method for distance measurement, and control program for distance measurement
US20180203116A1 (en) Distance measurement device, distance measurement method, and distance measurement program
US9918014B2 (en) Camera apparatus and method for generating image signal for viewfinder
US9729794B2 (en) Display device, display control method, and non-transitory recording medium
US20140035928A1 (en) Image display apparatus
US20160286227A1 (en) Decoding apparatus, decoding method, and non-transitory recording medium
US20220230560A1 (en) Road guidance system and mobile information terminal used in same
US10491833B2 (en) Information processing apparatus, information processing method, and non-transitory computer-readable recording medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20151118