WO2020038142A1 - 一种图形码扫描方法、扫码支付方法及扫码设备 - Google Patents

一种图形码扫描方法、扫码支付方法及扫码设备 Download PDF

Info

Publication number
WO2020038142A1
WO2020038142A1 PCT/CN2019/095341 CN2019095341W WO2020038142A1 WO 2020038142 A1 WO2020038142 A1 WO 2020038142A1 CN 2019095341 W CN2019095341 W CN 2019095341W WO 2020038142 A1 WO2020038142 A1 WO 2020038142A1
Authority
WO
WIPO (PCT)
Prior art keywords
image acquisition
acquisition module
identified
graphic code
code
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.)
Ceased
Application number
PCT/CN2019/095341
Other languages
English (en)
French (fr)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2020038142A1 publication Critical patent/WO2020038142A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/10821Methods 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 further details of bar or optical code scanning devices
    • G06K7/10881Methods 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 further details of bar or optical code scanning devices constructional details of hand-held scanners

Definitions

  • One or more of this specification relate to the field of mobile payments, and in particular, to a method for scanning a graphic code, a method for scanning a code, and a device for scanning a code.
  • the purpose of one or more embodiments of the present specification is to provide a method for scanning a graphic code, a payment method for scanning a code, and a scanning device.
  • a graphic code by using the scanning device, it is automatically determined that the image acquisition module in the scanning device scans for data. Recognize the relative scanning angle of the graphic code, and control the image acquisition module to rotate based on the relative scanning angle to reduce the relative scanning angle to a preset range, and then use the rotated image acquisition module to scan the identification graphic code. Improving the recognizability of the graphic code imaging obtained by the image acquisition module, thereby improving the efficiency and success rate of graphic code scanning.
  • One or more embodiments of the present specification provide a graphic code scanning method, which is applied to a code scanning device, and the method includes:
  • a relative scanning angle of an image acquisition module in the code scanning device to scan a graphic code to be identified, wherein the relative scanning angle is an angle between a scanning direction of the image acquisition module and a perpendicular direction of the graphic code to be identified ;
  • One or more embodiments of the present specification provide a code scanning device, including: a control module and an image acquisition module connected to the control module;
  • the control module is configured to determine a relative scanning angle at which the image acquisition module scans the graphic code to be identified, wherein the relative scanning angle is a scanning direction of the image acquisition module and a perpendicular direction of the graphic code to be identified An included angle; and rotating the image acquisition module according to the relative scanning angle, so that the relative scanning angle of the rotated image acquisition module is smaller than a preset threshold;
  • the image acquisition module is configured to scan the graphic code to be identified.
  • One or more embodiments of the present specification provide a code scanning payment method, which is applied to a code scanning device, and the method includes:
  • a relative scanning angle of an image acquisition module in the code scanning device to scan a graphic code to be identified, wherein the relative scanning angle is an angle between a scanning direction of the image acquisition module and a perpendicular direction of the graphic code to be identified ;
  • the scanning method, scanning payment method and scanning device of the graphic code in one or more embodiments of the present specification, when scanning the graphic code by using the scanning device, it is automatically determined that the image acquisition module in the scanning device scans the graphic code to be identified. Relative scanning angle. Based on the relative scanning angle, the image acquisition module is controlled to rotate to reduce the relative scanning angle to a preset range, and then the rotated image acquisition module is used to scan the to-be-recognized graphic code, which can improve the image acquisition module. The recognizability of the acquired graphic code imaging, thereby improving the efficiency and success rate of graphic code scanning.
  • FIG. 1 is a first schematic flowchart of a graphic code scanning method provided by one or more embodiments of the present specification
  • FIG. 2 is a schematic flowchart of a second method of a graphic code scanning method provided by one or more embodiments of the present specification
  • FIG. 3 is a third schematic flowchart of a graphic code scanning method provided by one or more embodiments of the present specification.
  • FIG. 4 is a schematic flowchart of a fourth method of a graphic code scanning method provided by one or more embodiments of the present specification
  • FIG. 5 is a schematic diagram of an implementation principle of calculating a relative scanning angle in a graphic code scanning method provided by one or more embodiments of the present specification
  • 6a is a schematic diagram of scanning a graphic code using an image acquisition module before rotation in a graphic code scanning method provided by one or more embodiments of the present specification;
  • 6b is a schematic diagram of scanning a graphic code using a rotated image acquisition module in a graphic code scanning method provided by one or more embodiments of the present specification;
  • FIG. 7 is a schematic flowchart of a code scanning payment method provided by one or more embodiments of the present specification.
  • FIG. 8 is a schematic diagram of a first module composition of a code scanning device provided by one or more embodiments of the present specification
  • FIG. 9 is a schematic diagram of a second module composition of a code scanning device provided by one or more embodiments of the present specification.
  • One or more embodiments of the present specification provide a method for scanning a graphic code, a method for scanning a code, and a scanning device.
  • an image acquisition module in the scanning device is automatically determined to scan a graphic to be identified.
  • the relative scanning angle of the code based on the relative scanning angle, controls the image acquisition module to rotate to reduce the relative scanning angle to a preset range, and then uses the rotated image acquisition module to scan the to-be-recognized graphic code, which can improve the image.
  • the recognizability of the graphic code imaging obtained by the acquisition module thereby improving the efficiency and success rate of graphic code scanning.
  • FIG. 1 is a first schematic flowchart of a graphic code scanning method provided by one or more embodiments of the present specification. The method in FIG. 1 is applied to a code scanning device for execution. As shown in FIG. 1, the method includes at least the following steps:
  • S101 Determine a relative scanning angle of an image acquisition module in a code scanning device to scan a graphic code to be identified, where the relative scanning angle is an angle between a scanning direction of the image acquisition module and a perpendicular direction of the graphic code to be identified;
  • the graphic code to be identified may be a bar code, a two-dimensional code, or other graphic codes.
  • the image acquisition module may be a rotatable camera. When the graphic code is scanned by a scanning device, the control module in the scanning device automatically determines the graphic code. Relative scanning angle of the image acquisition module.
  • the control module determines whether the relative scanning angle is greater than a preset threshold. If the determination result is yes, it indicates that the angle deviation formed between the scanning device and the graphic code to be identified is relatively large. It may cause multiple scan failures and take a long time to pay. Therefore, it is necessary to adjust the scanning direction of the image acquisition module by rotating the image acquisition module, thereby reducing the relative scanning angle and reducing the relative scanning angle to a preset range. Enable the code scanning device to scan the graphic code to be identified at an approximately vertical angle;
  • S103 Scan the image code to be identified by using the rotated image acquisition module. Specifically, by rotating the image acquisition module to make the reference plane of the image acquisition module (that is, the image acquisition plane) approximately parallel to the plane on which the image code to be identified is located, The image acquisition module scans the identification graphic code and obtains the corresponding scan result. The scan result is transmitted to the communication module in the code scanning device, and the communication module transmits the scan result to the corresponding terminal device to trigger the terminal device to perform Corresponding processing operations;
  • an application scenario of code scanning payment is taken as an example.
  • the terminal device After receiving the scanning result transmitted by the code scanning device, the terminal device performs a payment processing operation according to the scanning result, and then completes the code scanning payment. Reduce scanning code payment time.
  • a relative scanning angle of an image acquisition module in the scanning device to scan a graphic code to be identified is automatically determined, and the image acquisition module is controlled based on the relative scanning angle to perform Rotate to reduce the relative scanning angle to a preset range, and then use the rotated image acquisition module to scan the to-be-recognized graphics code. This can improve the recognizability of the graphics code obtained by the image acquisition module and further improve the graphics. Efficiency and success rate of code scanning.
  • At least three light sources can be set in the code scanning device, and at least three light spots on the graphic code to be identified are illuminated based on the light source, To determine the plane of the graphic code to be identified, and then determine the relative scanning angle. Based on this, as shown in FIG. 2, the above S101 determines the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified, which specifically includes:
  • S1011 Determine coordinate information of at least three light spots irradiated to the graphic code to be identified;
  • At least three light-emitting light sources provided in the code scanning device respectively emit light beams in a predetermined direction to the graphic code to be identified, and at least three light spots irradiated to the graphic code to be identified are obtained.
  • the direction of the light beam emitted by the light source remains the same.
  • the preset directions of each light source are different, which can increase the dispersion of at least three light spots. , And then appropriately increase the actual area of the planar figure composed of at least three light spots;
  • the image acquisition module in the scanning device can be used as a reference in advance.
  • the object establishes a three-dimensional coordinate system, determines the reference plane of the image acquisition module, and the scanning direction of the image acquisition module is perpendicular to the reference plane.
  • the coordinates of the three light spots are (x 1 , y 1 , z 1 ), (x 2 , y 2 , z 2 ), (x 3 , y 3 , z 3 );
  • S1012 Determine a target plane where the graphic code to be identified is located according to the determined coordinate information of at least three light spots;
  • the principle of determining a plane with three points is combined, and the function expression of the target plane on which the graphic code is located is determined according to the coordinate information of at least three light spots.
  • the function expression of the target plane on which the graphic code is located is determined according to the coordinate information of at least three light spots.
  • the reference vertical line of the target plane that is, determine any vertical line perpendicular to the plane where the graphic code is located, and determine the reference vertical line and the target plane.
  • the above S1011 determines the coordinate information of at least three light spots irradiated to the graphic code to be identified, and specifically includes:
  • the emission angles of the light beams of at least three light emitting light sources set in the code scanning device are recorded, and the emission angles corresponding to the light emitting light sources are stored in the control module, in a preset reference coordinate system.
  • the emission angles of the three light emitting light sources are ⁇ 1 , ⁇ 2 , ⁇ 3 ;
  • S10112. Determine the length of the line segments of the at least three light spots from the image acquisition module
  • At least three light emitting light sources provided in the scanning device may be a laser rangefinder, and the laser rangefinder You can get the distance between the laser emitting point emitted by yourself and the graphic code, and then you can get the distance from the image acquisition module to the spot where each light source falls on the graphic code.
  • the light source transmits the distance data corresponding to each light source to the The control module, the control module can obtain the length of the line segments of the at least three light spots from the image acquisition module, still taking the number of light sources equal to 3 as an example, and the line lengths of the light spots of the three light sources are l 1 and l 2 respectively. , L 3 ;
  • S10113 Determine coordinate information of at least three light spots according to the determined emission angles and line lengths corresponding to the respective light sources;
  • the coordinate information of the light spot corresponding to each light source can be obtained.
  • the number of light sources is still equal to 3 as an example.
  • the point ( ⁇ 1 , l 1 ) in the polar coordinate system determine the coordinates (x 1 , y 1 , z 1 ) of the first spot in the three-dimensional coordinate system, and according to the point ( ⁇ in the polar coordinate system) 2 , l 2 ), determine the coordinates of the second light spot in the three-dimensional coordinate system (x 2 , y 2 , z 2 ), and determine the third light spot in the three-dimensional coordinate system according to the point ( ⁇ 3 , l 3 ) in the polar coordinate system. Coordinates in the coordinate system (x 3 , y 3 , z 3 ).
  • the above S1013 determines the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified based on the determined target plane, including:
  • S10131 Determine a functional relationship of a reference vertical line of the target plane
  • S10132 Determine coordinate information of the intersection of the reference perpendicular line and the plane perpendicular line of the target plane;
  • the coordinate information of the intersection of the reference perpendicular and the target plane can be obtained, that is, the coordinates of the intersection O of the plane perpendicular is (x n , y n , z n ) ;
  • S10133 Determine the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified according to the determined function relationship of the reference vertical line and the coordinate information of the intersection point of the plane vertical line;
  • a vertical line segment is made from the intersection point O (x n , y n , z n ) of the plane perpendicular line to the reference plane of the image acquisition module, and the intersection point of the vertical line segment and the reference plane is P (x 0 , y 0 , z 0 ), and calculate the vertical point P (x 0 , y 0 , z 0 ) on the reference plane to the intersection point O (x n , y n , z n ) of the plane
  • the length of the reference line segment is a; and,
  • a vertical line segment is made from the vertical point P on the reference plane of the image acquisition module to the reference vertical line, and the intersection point of the vertical line segment and the reference vertical line is M (x m , y m , z m ), That is, from the point P (x 0 , y 0 , z 0 ) to the reference vertical line f (x, y, z) to make a vertical line segment, and the length of the vertical line segment is c;
  • the angle ⁇ between the reference vertical line and the reference line segment can be obtained, that is, Therefore, the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified can be determined;
  • the reference line segment is perpendicular to the reference plane of the image acquisition module, and the reference vertical line is perpendicular to the plane where the graphic code is located (that is, the target plane).
  • the reference vertical line coincides with the reference line segment.
  • the reference plane is parallel to the plane on which the graphic code is located.
  • the above S10131 determines the functional relationship of the reference perpendicular of the target plane, including:
  • Step 1 On the target plane where the graphic code is located, determine a planar figure composed of at least three light spots.
  • the formed planar figure is a triangle.
  • the formed planar figure is a quadrangle, and so on, and the number of light sources is equal to 3 as an example. If the three light spots are points S1 (x 1 , y 1 , z 1 ) and points S2 (x 2 , y 2 , z 2 ), and point S3 (x 3 , y 3 , z 3 ), the plane figure formed by the three light spots is a triangle surrounded by three coordinate points of S1, S2, and S3;
  • the mid-perpendicular line of the formed planar figure is taken as the reference perpendicular of the target plane, and the functional relationship of the reference perpendicular is determined.
  • the mid-perpendicular line of the planar figure is selected to determine the reference perpendicular, that is, the The reference perpendicular is a straight line that includes the center point of the plane figure and is perpendicular to the plane figure.
  • the intersection of the reference perpendicular line and the target plane is the center point of the plane figure, that is, the intersection point O of the plane perpendicular line is the center point of the plane figure;
  • the functional relation formula f (x, y, z) of the reference vertical line in the same three-dimensional coordinate system can be determined.
  • the above S10133 determines the code scanning device according to the determined functional relation of the reference perpendicular and the coordinate information of the intersection of the plane perpendicular.
  • the relative scanning angle at which the image acquisition module scans the graphic code to be identified includes:
  • Step 1 Determine the length of the first line segment of the image acquisition module from the reference vertical line according to the determined function relationship of the reference vertical line. Specifically, determine the distance from the vertical point of the reference plane of the image acquisition module to the reference vertical line. Length of a line segment;
  • Step 2 Determine the length of the second line segment of the image acquisition module from the intersection point of the vertical plane based on the determined coordinate information of the intersection point of the vertical plane. The length of the second line segment;
  • step three according to the determined length of the first line segment and the length of the second line segment, a relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified is determined.
  • the coordinate point P represents the coordinates of a vertical point on the reference plane of the image acquisition module, that is, (x 0 , y 0 , z 0 ), and the coordinate point O represents the point of intersection of the plane vertical lines.
  • the coordinates are (x n , y n , z n ), and the coordinate point M represents the coordinates of the intersection of the vertical line segments from the coordinate point P to the reference vertical line, that is (x m , y m , z m ), the first
  • the length of the line segment is the distance from the coordinate point P to the coordinate point M, that is, the length of the line segment PM is c
  • the length of the second line segment is the distance from the coordinate point P to the coordinate point O, that is, the length of the line segment PO is a.
  • the line segment OP The angle ⁇ with the line segment OM is the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified.
  • FIG. 6a a side view is shown when the code scanning gun scans the graphic code before the image acquisition module is rotated.
  • the scanning direction of the image acquisition module and the vertical line of the graphic code to be identified The included angle of the direction (that is, the direction of the plane normal) is ⁇ .
  • the code scanning device includes an image acquisition module, and the code scanning device is also provided with three light emitting sources. The emission angles of the light beams of the light sources are different. The light beams emitted by each light source will fall on a light spot on the graphic code. Based on the three light spots illuminated on the graphic code, the plane information where the graphic code is located can be determined. With reference to the above-mentioned process of determining the angle between the reference vertical line and the reference line segment, the relative scanning angle of the image acquisition module to scan the graphic code to be identified is determined.
  • the code scanning device After determining the relative scanning angle of the image acquisition module to scan the graphic code to be identified, the code scanning device is used.
  • the reference plane of the acquisition module is parallel to the plane of the graphic code to be identified.
  • a relative scanning angle of an image acquisition module in the scanning device to scan a graphic code to be identified is automatically determined, based on the relative scanning angle. Control the image acquisition module to rotate to reduce the relative scanning angle to a preset range, and then use the rotated image acquisition module to scan the to-be-recognized graphic code, which can improve the recognizability of the image code obtained by the image acquisition module. Degree, thereby improving the efficiency and success rate of graphic code scanning.
  • FIG. 7 provides one or more embodiments of this specification.
  • the flow chart of the scanning payment method is shown in FIG. 7.
  • the method in FIG. 7 is applied to a code scanning device. As shown in FIG. 7, the method includes at least the following steps:
  • step S701. Determine the relative scanning angle of the image acquisition module in the code scanning device to scan the graphic code to be identified, where the relative scanning angle is the angle between the scanning direction of the image acquisition module and the vertical direction of the graphic code to be identified.
  • step S701 For a specific implementation manner, refer to step S101, and details are not described herein again;
  • step S702 Rotate the image acquisition module according to the determined relative scanning angle, so that the relative scanning angle of the rotated image acquisition module is smaller than a preset threshold.
  • step S702 The specific implementation of step S702 is described in step S102, and details are not described herein again.
  • step S703 Scan the to-be-recognized graphic code by using the rotated image acquisition module.
  • the specific implementation of step S703 is referred to step S103, and details are not described herein again.
  • the image acquisition module scans the image code to be identified, and obtains the corresponding scan result, and transmits the scan result to The communication module in the code scanning device transmits the scan result to the corresponding terminal device to trigger the terminal device to perform corresponding processing operations.
  • the application scenario of code scanning payment is used as an example. After receiving the scan result transmitted by the code scanning device, the device executes a payment processing operation according to the scan result, and then completes the code scan payment, which can shorten the code scan payment time.
  • the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified is determined.
  • the above-mentioned determining of the coordinate information of at least three light spots irradiated to the graphic code to be identified specifically includes:
  • Coordinate information of at least three light spots is determined according to the determined emission angles and line lengths of the respective light emitting light sources.
  • the above-mentioned determining the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified based on the target plane specifically includes:
  • the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified is determined.
  • the above-mentioned functional relationship of determining the reference perpendicular of the target plane specifically includes:
  • the mid-perpendicular line of the constructed plane figure is used as the reference vertical line of the target plane, and the functional relationship of the reference vertical line is determined.
  • the image in the scanning device is determined according to the determined functional relationship of the reference vertical line and the coordinate information of the intersection point of the plane perpendicular line.
  • the relative scanning angle of the acquisition module scanning the graphic code to be identified includes:
  • the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified is determined.
  • a relative scanning angle of an image acquisition module in the scanning device to scan a graphic code to be identified is automatically determined, based on the relative scanning angle. Control the image acquisition module to rotate to reduce the relative scanning angle to a preset range, and then use the rotated image acquisition module to scan the to-be-recognized graphic code, which can improve the recognizability of the image code obtained by the image acquisition module.
  • FIG. 8 provides one or more embodiments of the present specification. Schematic diagram of the first module of a code scanning device. The device is used to perform the graphic code scanning method described in FIGS. 1 to 4. As shown in FIG. 8, the device includes a control module 801 and an image connected to the control module 801. Acquisition module 802;
  • the control module 801 is configured to determine a relative scanning angle of the image acquisition module 802 scanning the graphic code to be identified, where the relative scanning angle is an angle between the scanning direction of the image acquisition module 802 and a perpendicular direction of the graphic code to be identified; and Rotating the image acquisition module 802 according to the determined relative scanning angle, so that the relative scanning angle of the rotated image acquisition module 802 is smaller than a preset threshold;
  • the image acquisition module 802 is configured to scan the graphic code to be identified.
  • a relative scanning angle of an image acquisition module in the scanning device to scan a graphic code to be identified is automatically determined, and the image acquisition module is controlled based on the relative scanning angle to perform Rotate to reduce the relative scanning angle to a preset range, and then use the rotated image acquisition module to scan the to-be-recognized graphics code. This can improve the recognizability of the graphics code obtained by the image acquisition module and further improve the graphics. Efficiency and success rate of code scanning.
  • the above code scanning device further includes: at least three light emitting light sources 803;
  • the light emitting light source 803 is configured to emit a light beam in a predetermined direction toward the graphic code to be identified to obtain a light spot irradiated to the graphic code to be identified, wherein the predetermined directions of the light emitting light sources 803 are different from each other;
  • the control module 801 is specifically configured to determine coordinate information of at least three light spots irradiated to the graphic code to be identified; determine a target plane on which the graphic code to be identified is located according to the coordinate information of the at least three light spots; and based on the determined target The plane determines the relative scanning angle of the image acquisition module 802 in the scanning device to scan the graphic code to be identified.
  • the control module 801 is further specifically used for:
  • Coordinate information of at least three light spots is determined according to the determined emission angles and line lengths of the respective light emitting light sources.
  • the control module 801 is further specifically used for:
  • the relative scanning angle of the image acquisition module 802 in the scanning device to scan the graphic code to be identified is determined.
  • the graphic code scanning device in one or more embodiments of the present specification, when scanning a graphic code using a scanning device, automatically determines the relative scanning angle of the image acquisition module in the scanning device to scan the graphic code to be identified, based on the relative scanning angle. Control the image acquisition module to rotate to reduce the relative scanning angle to a preset range, and then use the rotated image acquisition module to scan the to-be-recognized graphic code, which can improve the recognizability of the image code obtained by the image acquisition module. Degree, thereby improving the efficiency and success rate of graphic code scanning.
  • one or more embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, one or more of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
  • one or more embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, one or more of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more of this specification may employ computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. form.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Image Analysis (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

本说明书一个或多个实施例提供了一种图形码扫描方法、扫码支付方法及扫码设备,该方法包括:在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描。

Description

一种图形码扫描方法、扫码支付方法及扫码设备 技术领域
本说明书一个或多个涉及移动支付领域,尤其涉及一种图形码扫描方法、扫码支付方法及扫码设备。
背景技术
目前,随着移动互联网技术的快速发展,由于移动支付具有支付简单、方便、便捷的特点,使得移动支付的应用越来越普及,已经成为人们日常生活中必不可少的一部分。例如,商家使用扫码枪扫描并识别消费者出示的付款码,以完成移动支付,因此,扫码枪已成为在公共场合进行移动支付的主要收款设备。
然而,现有的通过扫码枪扫描付款码的过程中,由于消费者和收款人员的身高差、站位距离等原因导致扫码设备与付款码之间形成的角度偏差过大,从而出现多次扫码失败、支付耗时比较长的情况,在此过程中,需要收款人员不断调整扫码枪的扫描角度,或者需要消费者不断调整收款码的显示角度,降低了扫码支付的效率,还降低了用户使用体验。
因此,需要提供一种能够提高扫码成功率、扫码效率的图形码扫描方法及扫码设备。
发明内容
本说明书一个或多个实施例的目的是提供一种图形码扫描方法、扫码支付方法及扫码设备,在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率。
为解决上述技术问题,本说明书一个或多个实施例是这样实现的:
本说明书一个或多个实施例提供了一种图形码扫描方法,应用于扫码设备,所述方法包括:
确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,其中,所述 相对扫描角度为所述图像采集模块的扫描方向与所述待识别图形码的垂线方向的夹角;
根据所述相对扫描角度,旋转所述图像采集模块,以使旋转后的所述图像采集模块的相对扫描角度小于预设阈值;
利用旋转后的所述图像采集模块,对所述待识别图形码进行扫描。
本说明书一个或多个实施例提供了一种扫码设备,包括:控制模块和与所述控制模块连接的图像采集模块;
所述控制模块,用于确定所述图像采集模块扫描待识别图形码的相对扫描角度,其中,所述相对扫描角度为所述图像采集模块的扫描方向与所述待识别图形码的垂线方向的夹角;以及根据所述相对扫描角度,旋转所述图像采集模块,以使旋转后的所述图像采集模块的相对扫描角度小于预设阈值;
所述图像采集模块,用于对所述待识别图形码进行扫描。
本说明书一个或多个实施例提供了一种扫码支付方法,应用于扫码设备,所述方法包括:
确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,其中,所述相对扫描角度为所述图像采集模块的扫描方向与所述待识别图形码的垂线方向的夹角;
根据所述相对扫描角度,旋转所述图像采集模块,以使旋转后的所述图像采集模块的相对扫描角度小于预设阈值;
利用旋转后的所述图像采集模块,对所述待识别图形码进行扫描;
根据对所述待识别图形码进行扫描得到的扫描结果,触发与所述扫码设备连接的终端设备执行支付处理操作。
本说明书一个或多个实施例中的图形码扫描方法、扫码支付方法及扫码设备,在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率。
附图说明
为了更清楚地说明本说明书一个或多个实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书一个或多个中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本说明书一个或多个实施例提供的图形码扫描方法的第一种流程示意图;
图2为本说明书一个或多个实施例提供的图形码扫描方法的第二种流程示意图;
图3为本说明书一个或多个实施例提供的图形码扫描方法的第三种流程示意图;
图4为本说明书一个或多个实施例提供的图形码扫描方法的第四种流程示意图;
图5为本说明书一个或多个实施例提供的图形码扫描方法中计算相对扫描角度的实现原理示意图;
图6a为本说明书一个或多个实施例提供的图形码扫描方法中利用旋转前的图像采集模块扫描图形码的示意图;
图6b为本说明书一个或多个实施例提供的图形码扫描方法中利用旋转后的图像采集模块扫描图形码的示意图;
图7为本说明书一个或多个实施例提供的扫码支付方法的流程示意图;
图8为本说明书一个或多个实施例提供的扫码设备的第一种模块组成示意图;
图9为本说明书一个或多个实施例提供的扫码设备的第二种模块组成示意图。
具体实施方式
为了使本技术领域的人员更好地理解本说明书一个或多个中的技术方案,下面将结合本说明书一个或多个实施例中的附图,对本说明书一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一个或多个一部分实施例,而不是全部的实施例。基于本说明书一个或多个中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书一个或多个保护的范围。
本说明书一个或多个实施例提供了一种图形码扫描方法、扫码支付方法及扫码设备, 在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率。
图1为本说明书一个或多个实施例提供的图形码扫描方法的第一种流程示意图,图1中的方法应用于扫码设备执行,如图1所示,该方法至少包括以下步骤:
S101,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,其中,该相对扫描角度为图像采集模块的扫描方向与待识别图形码的垂线方向的夹角;
具体的,待识别图形码可以是条形码、二维码或其他图形码,图像采集模块可以是可旋转的摄像头,在使用扫码设备对图形码进行扫描时,由扫码设备中控制模块自动确定图像采集模块的相对扫描角度。
S102,根据确定出的相对扫描角度,旋转图像采集模块,以使旋转后的图像采集模块的相对扫描角度小于预设阈值;
具体的,在确定出相对扫描角度后,由控制模块判断该相对扫描角度是否大于预设阈值,若判断结果为是,则说明扫码设备与待识别图形码之间形成的角度偏差比较大,可能导致多次扫码失败、支付耗时比较长,因此,需要通过旋转图像采集模块来调节图像采集模块的扫描方向,从而减小相对扫描角度,将该相对扫描角度缩小到预设范围内,使得扫码设备以近似垂直角度扫描待识别图形码;
S103,利用旋转后的图像采集模块,对待识别图形码进行扫描,具体的,通过旋转图像采集模块使得图像采集模块的基准面(即图像采集平面)与待识别图形码所在平面近似平行后,由图像采集模块对待识别图形码进行扫描,并得到相应的扫描结果,将该扫描结果传输至扫码设备中通信模块,由通信模块将该扫描结果传输至对应的终端设备,以触发该终端设备进行相应的处理操作;
在一个具体实施例中,以扫码支付的应用场景为例,终端设备在接收到扫码设备传输的扫描结果后,根据该扫描结果执行支付处理操作,进而完成本次扫码支付,这样能够缩短扫码支付时间。
本说明书一个或多个实施例中,在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采 集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率。
进一步的,针对确定相对扫描角度的过程,结合三点确定一个平面的原理,可以通过在扫码设备中设置至少三个发光光源,基于发光光源照射到待识别图形码上的至少三个光斑,来确定待识别图形码所在平面,进而确定相对扫描角度,基于此,如图2所示,上述S101确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,具体包括:
S1011,确定照射到待识别图形码的至少三个光斑的坐标信息;
具体的,扫码设备中设置的至少三个发光光源分别向待识别图形码发射预设方向的光束,得到照射到待识别图形码的至少三个光斑,针对每个发光光源而言,该发光光源发射的光束的方向保持不变,在具体实施时,为了提高确定出的图形码所在平面的准确度,各发光光源的预设方向各不相同,这样能够增加至少三个光斑的分布离散度,进而适当增大至少三个光斑所构成的平面图形的实际面积;
以发光光源的数量等于3为例,每个发光光源的发射光束落到图形码上将形成一个光斑,这样在图形码上形成三个光斑,可以预先以扫码设备中的图像采集模块为参考对象建立三维坐标系,确定图像采集模块的基准面,且图像采集模块的扫描方向垂直于该基准面,对应的,三个光斑的坐标分别为(x 1,y 1,z 1)、(x 2,y 2,z 2)、(x 3,y 3,z 3);
S1012,根据确定出的至少三个光斑的坐标信息,确定待识别图形码所在的目标平面;
具体的,在确定出照射到图形码上的至少三个光斑的坐标信息后,结合三点确定一个平面的原理,根据至少三个光斑的坐标信息,确定图形码所在的目标平面的函数表达式,仍以发光光源的数量等于3为例,根据三个光斑的坐标(x 1,y 1,z 1)、(x 2,y 2,z 2)、(x 3,y 3,z 3),得到图形码所在的目标平面的函数表达式;
S1013,基于确定出的目标平面,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度;
具体的,在确定出图形码所在的目标平面的函数表达式后,确定该目标平面的参考垂线,即确定垂直于图形码所在平面的任一垂线,并且确定该参考垂线与目标平面的交点到图像采集模块的基准面的垂线,记为参考线段,将该参考垂线与该参考线段之间的 夹角θ确定为扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,其中,当时夹角θ=0时,参考垂线与参考线段相平行,此时图像采集模块的基准面与图形码所在平面平行。
其中,针对至少三个光斑的坐标信息的确定过程,如图3所示,上述S1011确定照射到待识别图形码的至少三个光斑的坐标信息,具体包括:
S10111,确定照射到待识别图形码的至少三个光斑的发光光源的发射角度;
具体的,在组装得到扫码设备时,记录扫码设备中设置的至少三个发光光源的发光光束的发射角度,并将各发光光源对应的发射角度存入控制模块,在预设参考坐标系下,三个发光光源的发射角度分别为θ 1、θ 2、θ 3
S10112,确定至少三个光斑分别距图像采集模块的线段长度;
具体的,由于激光具有很好方向性,并且需要获取发光点到图形码之间的距离,因此,扫码设备中设置的至少三个发光光源可以是激光测距仪,通过该激光测距仪可以得到自身发出的激光发光点到图形码之间的距离,进而能够得到图像采集模块到各发光光源落到图形码上的光斑的距离,发光光源将得到的各发光光源对应的距离数据传输至控制模块,控制模块即可获取到至少三个光斑分别距图像采集模块的线段长度,仍以发光光源的数量等于3为例,三个发光光源的光斑对应的线段长度分别为l 1、l 2、l 3
S10113,根据确定出的各发光光源对应的发射角度和线段长度,确定至少三个光斑的坐标信息;
具体的,结合极坐标系与三维坐标系之间的转换关系式,根据各发光光源对应的发射角度和线段长度,即可得到各发光光源对应的光斑的坐标信息,仍以发光光源的数量等于3为例,根据极坐标系下的点(θ 1,l 1),确定第一光斑在三维坐标系下的坐标(x 1,y 1,z 1),根据极坐标系下的点(θ 2,l 2),确定第二光斑在三维坐标系下的坐标(x 2,y 2,z 2),以及根据极坐标系下的点(θ 3,l 3),确定第三光斑在三维坐标系下的坐标(x 3,y 3,z 3)。
其中,针对基于目标平面确定相对扫描角度的过程,如图4所示,上述S1013基于确定出的目标平面,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,具体包括:
S10131,确定目标平面的参考垂线的函数关系式;
具体的,在确定出图形码所在的目标平面的函数表达式后,确定该目标平面的参考垂线,并且根据目标平面的函数表达式,可以确定在同一三维坐标系下的参考垂线的函数关系式f(x,y,z);
S10132,确定参考垂线与目标平面的平面垂线交点的坐标信息;
具体的,在确定出参考垂线的函数关系式后,即可得到该参考垂线与目标平面的交点的坐标信息,即平面垂线交点O的坐标为(x n,y n,z n);
S10133,根据确定出的参考垂线的函数关系式和平面垂线交点的坐标信息,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度;
具体的,结合两点之间线段长度的求解公式,由平面垂线交点O(x n,y n,z n)向图像采集模块的基准面做垂线段,该垂线段与基准面的交点为P(x 0,y 0,z 0),并计算基准面上的垂点P(x 0,y 0,z 0)到平面垂线交点O(x n,y n,z n)之间形成的参考线段的长度为a;以及,
结合点到直线的距离的求解公式,由图像采集模块的基准面上的垂点P向参考垂线做垂线段,该垂线段与参考垂线的交点为M(x m,y m,z m),即由P点(x 0,y 0,z 0)向参考垂线f(x,y,z)做垂线段,并求得该垂线段的长度为c;
在确定出参考线段的长度a和P点到参考垂线的垂线段的长度c后,结合勾股定理,即可求得该参考垂线与该参考线段之间的夹角θ,即
Figure PCTCN2019095341-appb-000001
因此,可以确定出扫码设备中图像采集模块扫描待识别图形码的相对扫描角度;
其中,参考线段垂直于图像采集模块的基准面,参考垂线垂直于图形码所在平面(即目标平面),当时夹角θ=0时,参考垂线与参考线段重合,此时图像采集模块的基准面与图形码所在平面平行。
具体的,针对参考垂线的函数关系式的确定过程,上述S10131确定目标平面的参考垂线的函数关系式,具体包括:
步骤一,在图形码所在的目标平面上,确定至少三个光斑所构成的平面图形,其中, 当发光光源的数量等于3时,所构成的平面图形为三边形,当发光光源的数量等于4时,所构成的平面图形为四边形,依次类推,仍以发光光源的数量等于3为例,若三个光斑分别为点S1(x 1,y 1,z 1)、点S2(x 2,y 2,z 2)、点S3(x 3,y 3,z 3),则三个光斑构成的平面图形为S1、S2、S3三个坐标点围成的三边形;
步骤二,将所构成的平面图形的中垂线作为目标平面的参考垂线,并确定参考垂线的函数关系式;其中,优选的,选取平面图形的中垂线确定参考垂线,即该参考垂线为包含平面图形的中心点且垂直于平面图形的直线,对应的,参考垂线与目标平面的交点为平面图形的中心点,即上述平面垂线交点O为平面图形的中心点;
其中,选取出目标平面的参考垂线后,根据目标平面的函数表达式,可以确定在同一三维坐标系下的参考垂线的函数关系式f(x,y,z)。
具体的,针对基于参考垂线的函数关系式和平面垂线交点确定相对扫描角度的过程,上述S10133根据确定出的参考垂线的函数关系式和平面垂线交点的坐标信息,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,具体包括:
步骤一,根据确定出的参考垂线的函数关系式,确定图像采集模块距参考垂线的第一线段长度,具体的,确定图像采集模块的基准面上的垂点距参考垂线的第一线段长度;
步骤二,根据确定出的平面垂线交点的坐标信息,确定图像采集模块距平面垂线交点的第二线段长度,具体的,确定图像采集模块的基准面上的垂点距平面垂线交点的第二线段长度;
步骤三,根据确定出的第一线段长度和第二线段长度,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
在具体实施时,如图5所示,坐标点P表示图像采集模块的基准面上的垂点的坐标,即为(x 0,y 0,z 0),坐标点O表示平面垂线交点的坐标,即为(x n,y n,z n),坐标点M表示由坐标点P向参考垂线做垂线段的交点的坐标,即为(x m,y m,z m),第一线段长度为坐标点P到坐标点M的距离,即线段PM的长度为c,第二线段长度为坐标点P到坐标点O的距离,即线段PO的长度为a,对应的,线段OP与线段OM之间的角度θ为扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
具体的,如图6a所示,给出了对图像采集模块进行旋转之前,扫码枪扫码图形码时 的侧视图,在图6a中图像采集模块的扫描方向与待识别图形码的垂线方向(即平面法线方向)的夹角为θ,以发光光源的数量等于3为例,扫码设备中包含图像采集模块,扫码设备中还设置有三个发光光源,其中,该三个发光光源的发光光束的发射角度各不相同,每个发光光源发射出的发光光束将落到图形码上的一个光斑,根据照射到图形码上的三个光斑即可确定图形码所在平面信息,进而结合上述确定参考垂线与参考线段之间的夹角的过程,确定图像采集模块扫描待识别图形码的相对扫描角度。
如图6b所示,给出了对图像采集模块进行旋转之后,扫码枪扫码图形码时的侧视图,在确定出图像采集模块扫描待识别图形码的相对扫描角度后,由扫码设备中的控制模块控制驱动模块对图像采集模块旋转角度θ,在图6b中图像采集模块的扫描方向与待识别图形码的垂线方向(即平面法线方向)的夹角θ=0,使得图像采集模块的基准面与待识别图形码所在平面平行。
本说明书一个或多个实施例中的图形码扫描方法,在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率。
对应上述图1至图4描述的图形码扫描方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种扫码支付方法,图7为本说明书一个或多个实施例提供的扫描支付方法的流程示意图,图7中的方法应用于扫码设备,如图7所示,该方法至少包括以下步骤:
S701,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,其中,该相对扫描角度为图像采集模块的扫描方向与待识别图形码的垂线方向的夹角,其中,步骤S701的具体实施方式参见步骤S101,这里不再赘述;
S702,根据确定出的相对扫描角度,旋转图像采集模块,以使旋转后的图像采集模块的相对扫描角度小于预设阈值,其中,步骤S702的具体实施方式参见步骤S102,这里不再赘述;
S703,利用旋转后的图像采集模块,对待识别图形码进行扫描,其中,步骤S703的具体实施方式参见步骤S103,这里不再赘述;
S704,根据对待识别图形码进行扫描得到的扫描结果,触发与扫码设备连接的终端 设备执行支付处理操作;
具体的,通过旋转图像采集模块使得图像采集模块的基准面与待识别图形码所在平面近似平行后,由图像采集模块对待识别图形码进行扫描,并得到相应的扫描结果,将该扫描结果传输至扫码设备中通信模块,由通信模块将该扫描结果传输至对应的终端设备,以触发该终端设备进行相应的处理操作;在一个具体实施例中,以扫码支付的应用场景为例,终端设备在接收到扫码设备传输的扫描结果后,根据该扫描结果执行支付处理操作,进而完成本次扫码支付,这样能够缩短扫码支付时间。
其中,针对确定相对扫描角度的过程,结合三点确定一个平面的原理,可以通过在扫码设备中设置至少三个发光光源,基于发光光源照射到待识别图形码上的至少三个光斑,来确定待识别图形码所在平面,进而确定相对扫描角度,基于此,上述S701确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,具体包括:
确定照射到待识别图形码的至少三个光斑的坐标信息;
根据确定出的至少三个光斑的坐标信息,确定待识别图形码所在的目标平面;
基于确定出的目标平面,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
其中,针对至少三个光斑的坐标信息的确定过程,上述确定照射到待识别图形码的至少三个光斑的坐标信息,具体包括:
确定照射到待识别图形码的至少三个光斑的发光光源的发射角度;以及,
确定至少三个光斑分别距图像采集模块的线段长度;
根据确定出的各发光光源对应的发射角度和线段长度,确定至少三个光斑的坐标信息。
其中,针对基于目标平面确定相对扫描角度的过程,上述基于目标平面,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,具体包括:
确定目标平面的参考垂线的函数关系式;以及,
确定参考垂线与目标平面的平面垂线交点的坐标信息;
根据确定出的参考垂线的函数关系式和平面垂线交点的坐标信息,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
其中,针对参考垂线的函数关系式的确定过程,上述确定目标平面的参考垂线的函数关系式,具体包括:
在图形码所在的目标平面上,确定至少三个光斑所构成的平面图形;
将所构成的平面图形的中垂线作为目标平面的参考垂线,并确定参考垂线的函数关系式。
其中,针对基于参考垂线的函数关系式和平面垂线交点确定相对扫描角度的过程,上述根据确定出的参考垂线的函数关系式和平面垂线交点的坐标信息,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,具体包括:
根据确定出的参考垂线的函数关系式,确定图像采集模块距参考垂线的第一线段长度;
根据确定出的平面垂线交点的坐标信息,确定图像采集模块距平面垂线交点的第二线段长度;
根据确定出的第一线段长度和第二线段长度,确定扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
本说明书一个或多个实施例中的图形码扫描方法,在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率,同时,根据对待识别图形码进行扫描得到的扫描结果,触发相应的终端设备执行支付处理操作,进而完成本次扫码支付,这样能够缩短扫码支付时间。
需要说明的是,本说明书中该实施例与本说明书中上一实施例基于同一发明构思,因此该实施例的具体实施可以参见前述图形码扫描方法的实施,重复之处不再赘述。
对应上述图1至图4描述的图形码扫描方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种扫码设备,图8为本说明书一个或多个实施例提供的扫码设备的第一种模块组成示意图,该装置用于执行图1至图4描述的图形码扫描方法,如图8所示,该设备包括:控制模块801和与该控制模块801连接的图像采集模块802;
上述控制模块801,用于确定图像采集模块802扫描待识别图形码的相对扫描角 度,其中,该相对扫描角度为图像采集模块802的扫描方向与待识别图形码的垂线方向的夹角;以及根据确定出的相对扫描角度,旋转上述图像采集模块802,以使旋转后的图像采集模块802的相对扫描角度小于预设阈值;
上述图像采集模块802,用于对上述待识别图形码进行扫描。
本说明书一个或多个实施例中,在利用扫码设备扫描图形码时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率。
进一步的,如图9所示,上述扫码设备还包括:至少三个发光光源803;
上述发光光源803,用于向待识别图形码发射预设方向的光束,得到照射到待识别图形码的光斑,其中,各发光光源803的预设方向各不相同;
上述控制模块801,具体用于确定照射到待识别图形码的至少三个光斑的坐标信息;根据该至少三个光斑的坐标信息,确定待识别图形码所在的目标平面;以及基于确定出的目标平面,确定扫码设备中图像采集模块802扫描待识别图形码的相对扫描角度。
其中,上述控制模块801,进一步具体用于:
确定至少三个发光光源803各自的预设方向对应的发射角度;以及,
确定照射到待识别图形码的至少三个光斑分别距上述图像采集模块802的线段长度;
根据确定出的各发光光源对应的发射角度和线段长度,确定至少三个光斑的坐标信息。
其中,上述控制模块801,还进一步具体用于:
确定上述目标平面的参考垂线的函数关系式;以及,
确定上述参考垂线与目标平面的平面垂线交点的坐标信息;
根据确定出的参考垂线的函数关系式和平面垂线交点的坐标信息,确定扫码设备中图像采集模块802扫描待识别图形码的相对扫描角度。
本说明书一个或多个实施例中的图形码扫描装置,在利用扫码设备扫描图形码 时,自动确定该扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,基于该相对扫描角度控制图像采集模块进行旋转,达到将该相对扫描角度缩小到预设范围内,再利用旋转后的图像采集模块对待识别图形码进行扫描,这样能够提高图像采集模块获取到的图形码成像的可识别度,进而提高图形码扫描的效率和成功率。
本领域内的技术人员应明白,本说明书一个或多个的实施例可提供为方法、系统、或计算机程序产品。因此,本说明书一个或多个可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。
本说明书一个或多个是参照根据本说明书一个或多个实施例的方法、设备(系统)的流程图和/或方框图来描述的。还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本说明书一个或多个的实施例可提供为方法、系统或计算机程序产品。因此,本说明书一个或多个可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本说明书一个或多个的实施例而已,并不用于限制本说明书一个或多个。对于本领域技术人员来说,本说明书一个或多个可以有各种更改和变化。凡在本说明书一个或多个的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书一个或多个的权利要求范围之内。

Claims (16)

  1. 一种图形码扫描方法,应用于扫码设备,其特征在于,所述方法包括:
    确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,其中,所述相对扫描角度为所述图像采集模块的扫描方向与所述待识别图形码的垂线方向的夹角;
    根据所述相对扫描角度,旋转所述图像采集模块,以使旋转后的所述图像采集模块的相对扫描角度小于预设阈值;
    利用旋转后的所述图像采集模块,对所述待识别图形码进行扫描。
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,包括:
    确定照射到待识别图形码的至少三个光斑的坐标信息;
    根据所述至少三个光斑的所述坐标信息,确定所述待识别图形码所在的目标平面;
    基于所述目标平面,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
  3. 根据权利要求2所述的方法,其特征在于,所述确定照射到待识别图形码的至少三个光斑的坐标信息,包括:
    确定照射到待识别图形码的至少三个光斑的发光光源的发射角度;以及,
    确定所述至少三个光斑分别距所述图像采集模块的线段长度;
    根据所述发射角度和所述线段长度,确定所述至少三个光斑的坐标信息。
  4. 根据权利要求2所述的方法,其特征在于,所述基于所述目标平面,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,包括:
    确定所述目标平面的参考垂线的函数关系式;以及,
    确定所述参考垂线与所述目标平面的平面垂线交点的坐标信息;
    根据所述函数关系式和所述平面垂线交点的坐标信息,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
  5. 根据权利要求4所述的方法,其特征在于,所述确定所述目标平面的参考垂线的函数关系式,包括:
    在所述目标平面上,确定所述至少三个光斑所构成的平面图形;
    将所述平面图形的中垂线作为所述目标平面的参考垂线,并确定所述参考垂线的函数关系式。
  6. 根据权利要求4所述的方法,其特征在于,所述根据所述函数关系式和所述平面垂线交点的坐标信息,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫 描角度,包括:
    根据所述函数关系式,确定所述图像采集模块距所述参考垂线的第一线段长度;
    根据所述平面垂线交点的坐标信息,确定所述图像采集模块距所述平面垂线交点的第二线段长度;
    根据所述第一线段长度和所述第二线段长度,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
  7. 一种扫码设备,其特征在于,包括:控制模块和与所述控制模块连接的图像采集模块;
    所述控制模块,用于确定所述图像采集模块扫描待识别图形码的相对扫描角度,其中,所述相对扫描角度为所述图像采集模块的扫描方向与所述待识别图形码的垂线方向的夹角;以及根据所述相对扫描角度,旋转所述图像采集模块,以使旋转后的所述图像采集模块的相对扫描角度小于预设阈值;
    所述图像采集模块,用于对所述待识别图形码进行扫描。
  8. 根据权利要求7所述的设备,其特征在于,还包括:至少三个发光光源;
    所述发光光源,用于向待识别图形码发射预设方向的光束,得到照射到所述待识别图形码的光斑,其中,各所述发光光源的所述预设方向各不相同;
    所述控制模块,具体用于确定照射到所述待识别图形码的至少三个光斑的坐标信息;根据所述至少三个光斑的所述坐标信息,确定所述待识别图形码所在的目标平面;以及基于所述目标平面,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
  9. 根据权利要求8所述的设备,其特征在于,所述控制模块,进一步具体用于:
    确定所述至少三个发光光源各自的所述预设方向对应的发射角度;以及,
    确定照射到所述待识别图形码的至少三个光斑分别距所述图像采集模块的线段长度;
    根据所述发射角度和所述线段长度,确定所述至少三个光斑的坐标信息。
  10. 根据权利要求8所述的设备,其特征在于,所述控制模块,还进一步具体用于:
    确定所述目标平面的参考垂线的函数关系式;以及,
    确定所述参考垂线与所述目标平面的平面垂线交点的坐标信息;
    根据所述函数关系式和所述平面垂线交点的坐标信息,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
  11. 一种扫码支付方法,应用于扫码设备,其特征在于,所述方法包括:
    确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,其中,所述相对扫描角度为所述图像采集模块的扫描方向与所述待识别图形码的垂线方向的夹角;
    根据所述相对扫描角度,旋转所述图像采集模块,以使旋转后的所述图像采集模块的相对扫描角度小于预设阈值;
    利用旋转后的所述图像采集模块,对所述待识别图形码进行扫描;
    根据对所述待识别图形码进行扫描得到的扫描结果,触发与所述扫码设备连接的终端设备执行支付处理操作。
  12. 根据权利要求11所述的方法,其特征在于,所述确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,包括:
    确定照射到待识别图形码的至少三个光斑的坐标信息;
    根据所述至少三个光斑的所述坐标信息,确定所述待识别图形码所在的目标平面;
    基于所述目标平面,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
  13. 根据权利要求12所述的方法,其特征在于,所述确定照射到待识别图形码的至少三个光斑的坐标信息,包括:
    确定照射到待识别图形码的至少三个光斑的发光光源的发射角度;以及,
    确定所述至少三个光斑分别距所述图像采集模块的线段长度;
    根据所述发射角度和所述线段长度,确定所述至少三个光斑的坐标信息。
  14. 根据权利要求12所述的方法,其特征在于,所述基于所述目标平面,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度,包括:
    确定所述目标平面的参考垂线的函数关系式;以及,
    确定所述参考垂线与所述目标平面的平面垂线交点的坐标信息;
    根据所述函数关系式和所述平面垂线交点的坐标信息,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
  15. 根据权利要求14所述的方法,其特征在于,所述确定所述目标平面的参考垂线的函数关系式,包括:
    在所述目标平面上,确定所述至少三个光斑所构成的平面图形;
    将所述平面图形的中垂线作为所述目标平面的参考垂线,并确定所述参考垂线的函数关系式。
  16. 根据权利要求14所述的方法,其特征在于,所述根据所述函数关系式和所述平面垂线交点的坐标信息,确定所述扫码设备中图像采集模块扫描待识别图形码的相对 扫描角度,包括:
    根据所述函数关系式,确定所述图像采集模块距所述参考垂线的第一线段长度;
    根据所述平面垂线交点的坐标信息,确定所述图像采集模块距所述平面垂线交点的第二线段长度;
    根据所述第一线段长度和所述第二线段长度,确定所述扫码设备中图像采集模块扫描待识别图形码的相对扫描角度。
PCT/CN2019/095341 2018-08-24 2019-07-10 一种图形码扫描方法、扫码支付方法及扫码设备 Ceased WO2020038142A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810972171.9A CN109146469B (zh) 2018-08-24 2018-08-24 一种图形码扫描方法、扫码支付方法及扫码设备
CN201810972171.9 2018-08-24

Publications (1)

Publication Number Publication Date
WO2020038142A1 true WO2020038142A1 (zh) 2020-02-27

Family

ID=64827831

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095341 Ceased WO2020038142A1 (zh) 2018-08-24 2019-07-10 一种图形码扫描方法、扫码支付方法及扫码设备

Country Status (3)

Country Link
CN (1) CN109146469B (zh)
TW (1) TWI714135B (zh)
WO (1) WO2020038142A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109146469B (zh) * 2018-08-24 2020-09-22 阿里巴巴集团控股有限公司 一种图形码扫描方法、扫码支付方法及扫码设备
CN109753839A (zh) * 2019-01-16 2019-05-14 上海龙旗科技股份有限公司 二维码识别优化方法及设备
CN110009837B (zh) * 2019-04-03 2021-04-02 深圳市品生科技有限公司 一种移动支付设备
CN110334554A (zh) * 2019-06-04 2019-10-15 阿里巴巴集团控股有限公司 图形码的展示方法及装置
US10929630B2 (en) 2019-06-04 2021-02-23 Advanced New Technologies Co., Ltd. Graphic code display method and apparatus
CN112183146A (zh) * 2019-07-13 2021-01-05 迅镭智能(广州)科技有限公司 一种条形码的扫描方法、装置、扫描系统及存储介质
CN112185030A (zh) * 2019-07-13 2021-01-05 迅镭智能(广州)科技有限公司 一种扫码结算方法、系统、装置和存储介质
CN111553673B (zh) * 2020-05-07 2021-09-24 支付宝(杭州)信息技术有限公司 一种基于图形码识别的信息展示方法及装置
CN111866019A (zh) * 2020-07-31 2020-10-30 福州智永信息科技有限公司 一种集成自动登录自动扫码的方法及终端
CN112269186B (zh) * 2020-10-09 2023-05-09 华中科技大学鄂州工业技术研究院 一种量程可调节的激光三角测距装置及方法
CN113163116A (zh) * 2021-04-09 2021-07-23 北京复兴华创技术有限公司 多光源图像采集方法、装置、存储介质及设备
CN113379413A (zh) * 2021-05-26 2021-09-10 上海祥承通讯技术有限公司 一种识别准确且高安全性的移动支付系统
CN113592483A (zh) * 2021-07-26 2021-11-02 山东派盟网络科技有限公司 一种支付方式切换方法、智能支付设备及存储介质
CN114840728A (zh) * 2022-07-04 2022-08-02 江苏九比特信息系统有限公司 一种基于多参数融合的出入口核验管理系统及方法
CN115423469A (zh) * 2022-09-06 2022-12-02 建信金融科技有限责任公司 一种数据处理方法、装置、设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006018400A (ja) * 2004-06-30 2006-01-19 Denso Wave Inc 2次元コード読取装置および2次元コードの読取方法
CN102514908A (zh) * 2011-11-04 2012-06-27 中国民航大学 复合行李标签自动扫描系统
CN106228221A (zh) * 2016-08-31 2016-12-14 搜油郎成都科技有限公司 一种变形二维码及其预处理方法
CN106651338A (zh) * 2016-11-28 2017-05-10 深圳市金立通信设备有限公司 一种支付处理的方法及终端
CN107015747A (zh) * 2016-11-30 2017-08-04 阿里巴巴集团控股有限公司 控制移动终端屏幕显示的方法及移动终端
CN108174092A (zh) * 2017-12-28 2018-06-15 珠海市魅族科技有限公司 终端控制方法、装置、计算机装置及计算机可读存储介质
CN109146469A (zh) * 2018-08-24 2019-01-04 阿里巴巴集团控股有限公司 一种图形码扫描方法、扫码支付方法及扫码设备

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8740082B2 (en) * 2012-02-21 2014-06-03 Metrologic Instruments, Inc. Laser scanning bar code symbol reading system having intelligent scan sweep angle adjustment capabilities over the working range of the system for optimized bar code symbol reading performance
US9141839B2 (en) * 2013-06-07 2015-09-22 Hand Held Products, Inc. System and method for reading code symbols at long range using source power control
CN103488295B (zh) * 2013-09-13 2017-09-26 深圳Tcl新技术有限公司 自动控制显示设备旋转的方法及装置
CN105490992B (zh) * 2014-09-19 2019-07-19 腾讯科技(深圳)有限公司 一种二维码的验证方法、装置和系统
CN107404721A (zh) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 物联网设备配网方法、图像采集方法及设备
CN107944241A (zh) * 2017-11-20 2018-04-20 珠海市魅族科技有限公司 扫码方法及装置、计算机装置和计算机可读存储介质
CN207731283U (zh) * 2018-01-18 2018-08-14 广州市威码电子科技有限公司 自动二维码扫描机
CN108399348A (zh) * 2018-04-02 2018-08-14 惠安县冠威机械设备有限公司 一种具有自动调节功能的智能型移动扫码支付装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006018400A (ja) * 2004-06-30 2006-01-19 Denso Wave Inc 2次元コード読取装置および2次元コードの読取方法
CN102514908A (zh) * 2011-11-04 2012-06-27 中国民航大学 复合行李标签自动扫描系统
CN106228221A (zh) * 2016-08-31 2016-12-14 搜油郎成都科技有限公司 一种变形二维码及其预处理方法
CN106651338A (zh) * 2016-11-28 2017-05-10 深圳市金立通信设备有限公司 一种支付处理的方法及终端
CN107015747A (zh) * 2016-11-30 2017-08-04 阿里巴巴集团控股有限公司 控制移动终端屏幕显示的方法及移动终端
CN108174092A (zh) * 2017-12-28 2018-06-15 珠海市魅族科技有限公司 终端控制方法、装置、计算机装置及计算机可读存储介质
CN109146469A (zh) * 2018-08-24 2019-01-04 阿里巴巴集团控股有限公司 一种图形码扫描方法、扫码支付方法及扫码设备

Also Published As

Publication number Publication date
CN109146469A (zh) 2019-01-04
CN109146469B (zh) 2020-09-22
TWI714135B (zh) 2020-12-21
TW202009779A (zh) 2020-03-01

Similar Documents

Publication Publication Date Title
WO2020038142A1 (zh) 一种图形码扫描方法、扫码支付方法及扫码设备
US20190122425A1 (en) Robot motion planning for photogrammetry
CN112804508B (zh) 投影仪校正方法、系统、存储介质以及电子设备
WO2022078467A1 (zh) 机器人自动回充方法、装置、机器人和存储介质
EP1132852A1 (en) Optical coordinate input/detection device with optical-unit positioning error correcting function
JP6129863B2 (ja) 3次元タッチタイプ入力システム及び光ナビゲーション方法
CN111830969B (zh) 一种基于反光板及二维码的融合对接方法
CN108471525B (zh) 用于投影仪的控制方法和装置以及实现该方法的投影仪
CN111753695B (zh) 一种模拟机器人充电返回路线的方法、装置和电子设备
WO2019114197A1 (zh) 投影方法及投影设备
CN109040363B (zh) 显示屏、电子装置及三维特征识别方法
CN104850275B (zh) 投影终端及其投影触控实现方法
CN105300310A (zh) 不贴靶点的手持式激光3d扫描仪及其使用方法
CN115338864A (zh) 机器人回桩控制方法、装置、电子设备和存储介质
CN103033145B (zh) 用于识别多个物体的形状的方法与系统
JP2001166881A (ja) ポインティング装置及びその方法
CN205102796U (zh) 不贴靶点的手持式激光3d扫描仪
WO2020123114A1 (en) Robot motion planning for photogrammetry
WO2007013607A1 (ja) 断面画像表示装置、断面画像表示方法及び断面画像表示プログラム
CN118476863A (zh) 标记和无标记跟踪
US20200209982A1 (en) Video interactive system
CN117169910A (zh) 一种反光板识别定位方法、装置、电子设备及存储介质
HK40002379B (zh) 一种图形码扫描方法、扫码支付方法及扫码设备
HK40002379A (zh) 一种图形码扫描方法、扫码支付方法及扫码设备
CN116465602A (zh) 一种光斑质量检测方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19852268

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19852268

Country of ref document: EP

Kind code of ref document: A1