Reading method and reading device for two-dimensional code
Uloženo v:
| Název: | Reading method and reading device for two-dimensional code |
|---|---|
| Patent Number: | 12229,630 |
| Datum vydání: | February 18, 2025 |
| Appl. No: | 17/986914 |
| Application Filed: | November 15, 2022 |
| Abstrakt: | A reading method and a reading device for a two-dimensional code. The method includes: capturing a two-dimensional code image through an image capturing device; detecting an outer frame and a position mark of a two-dimensional code in a skewed state in the two-dimensional code image; restoring the two-dimensional code in the skewed state to a default state; and performing a default operation according to the two-dimensional code in the default state. |
| Inventors: | ASUSTeK COMPUTER INC. (Taipei, TW) |
| Assignees: | ASUSTeK COMPUTER INC. (Taipei, TW) |
| Claim: | 1. A reading method for a two-dimensional code, comprising: capturing a two-dimensional code image by using an image capturing device, wherein the two-dimensional code image presents a two-dimensional code in a skewed state; detecting an outer frame and a position mark of the two-dimensional code in the skewed state in the two-dimensional code image; restoring the two-dimensional code in the skewed state to a default state in accordance with the outer frame and the position mark; and performing a default operation in accordance with the two-dimensional code in the default state. |
| Claim: | 2. The reading method for the two-dimensional code as claimed in claim 1 , wherein there is only one position mark. |
| Claim: | 3. The reading method for the two-dimensional code as claimed in claim 1 , wherein a shape of the outer frame is one of a circular shape, an odd-numbered regular polygonal shape, and an even-numbered regular polygonal shape. |
| Claim: | 4. The reading method for the two-dimensional code as claimed in claim 1 , wherein restoring the two-dimensional code in the skewed state to the default state in accordance with the outer frame and the position mark comprises: performing a shape restoring operation on the two-dimensional code, the shape restoring operation comprising: obtaining descriptive data relating to a shape of the outer frame in the skewed state; obtaining a first rotation offset angle of the two-dimensional code relative to a first coordinate axis in accordance with the descriptive data; and correcting the two-dimensional code in accordance with the first rotation offset angle to restore the outer frame to a default shape. |
| Claim: | 5. The reading method for the two-dimensional code as claimed in claim 4 , wherein the descriptive data comprises a first reference value and a second reference value, when the default shape of the outer frame is circular, the first reference value corresponds to a major axis length of the outer frame, and the second reference value corresponds to a minor axis length of the outer frame, when the default shape of the outer frame is odd-numbered regular polygonal, the first reference value corresponds to a distance between a vertex of the outer frame and a side opposite to the vertex, and the second reference value corresponds to a length of the side, and when the default shape of the outer frame is even-numbered regular polygonal, the first reference value corresponds to a distance between a first side of the outer frame and a second side opposite to the first side, and the second reference value corresponds to a length of the second side. |
| Claim: | 6. The reading method for the two-dimensional code as claimed in claim 5 , wherein the shape restoring operation further comprises: obtaining the first rotation offset angle in accordance with a value ratio between the first reference value and the second reference value. |
| Claim: | 7. The reading method for the two-dimensional code as claimed in claim 4 , wherein restoring the two-dimensional code in the skewed state to the default state in accordance with the outer frame and the position mark further comprises: performing a preliminary correction operation on the two-dimensional code before performing the shape restoring operation on the two-dimensional code when the default shape of the outer frame is odd-numbered regular polygonal or even-numbered regular polygonal, the preliminary correction operation comprising: rotating the two-dimensional code, so that a side of the outer frame is parallel to a coordinate axis. |
| Claim: | 8. The reading method for the two-dimensional code as claimed in claim 7 , wherein the preliminary correction operation further comprises: in a state in which the side of the outer frame is parallel to the coordinate axis, moving at least a portion of a pattern of the two-dimensional code in a direction parallel to the coordinate axis, so that a line connecting the side and a vertex of the outer frame is parallel to a third coordinate axis. |
| Claim: | 9. The reading method for the two-dimensional code as claimed in claim 1 , wherein restoring the two-dimensional code in the skewed state to the default state in accordance with the outer frame and the position mark comprises: performing an angle restoring operation on the two-dimensional code, the angle restoring operation comprising: obtaining a rotation offset angle of the two-dimensional code relative to a coordinate axis in accordance with a position of the position mark; and correcting the two-dimensional code in accordance with the rotation offset angle to restore the position mark to a default position. |
| Claim: | 10. A reading device for a two-dimensional code, comprising: an image capturing device, configured to capture a two-dimensional code image, wherein the two-dimensional code image presents a two-dimensional code in a skewed state; a storage circuit, configured to store the two-dimensional code image; and a processor, coupled to the image capturing device and the storage circuit, wherein the processor is configured to: detect an outer frame and a position mark of the two-dimensional code in the skewed state in the two-dimensional code image; restore the two-dimensional code in the skewed state to a default state in accordance with the outer frame and the position mark; and perform a default operation in accordance with the two-dimensional code in the default state. |
| Claim: | 11. The reading device for the two-dimensional code as claimed in claim 10 , wherein there is only one position mark. |
| Claim: | 12. The reading device for the two-dimensional code as claimed in claim 10 , wherein a shape of the outer frame is one of a circular shape, an odd-numbered regular polygonal shape, and an even-numbered regular polygonal shape. |
| Claim: | 13. The reading device for the two-dimensional code as claimed in claim 10 , wherein an operation of restoring the two-dimensional code in the skewed state to the default state in accordance with the outer frame and the position mark comprises: performing a shape restoring operation on the two-dimensional code, the shape restoring operation comprising: obtaining descriptive data relating to a shape of the outer frame in the skewed state; obtaining a first rotation offset angle of the two-dimensional code relative to a first coordinate axis in accordance with the descriptive data; and correcting the two-dimensional code in accordance with the first rotation offset angle to restore the outer frame to a default shape. |
| Claim: | 14. The reading device for the two-dimensional code as claimed in claim 13 , wherein the descriptive data comprises a first reference value and a second reference value, when the default shape of the outer frame is circular, the first reference value corresponds to a major axis length of the outer frame, and the second reference value corresponds to a minor axis length of the outer frame, when the default shape of the outer frame is odd-numbered regular polygonal, the first reference value corresponds to a distance between a vertex of the outer frame and a side opposite to the vertex, and the second reference value corresponds to a length of the side, and when the default shape of the outer frame is even-numbered regular polygonal, the first reference value corresponds to a distance between a first side of the outer frame and a second side opposite to the first side, and the second reference value corresponds to a length of the second side. |
| Claim: | 15. The reading device for the two-dimensional code as claimed in claim 14 , wherein the shape restoring operation further comprises: obtaining the first rotation offset angle in accordance with a value ratio between the first reference value and the second reference value. |
| Claim: | 16. The reading device for the two-dimensional code as claimed in claim 13 , wherein the operation of restoring the two-dimensional code in the skewed state to the default state in accordance with the outer frame and the position mark further comprises: performing a preliminary correction operation on the two-dimensional code before performing the shape restoring operation on the two-dimensional code when the default shape of the outer frame is odd-numbered regular polygonal or even-numbered regular polygonal, the preliminary correction operation comprising: rotating the two-dimensional code, so that a side of the outer frame is parallel to a coordinate axis. |
| Claim: | 17. The reading device for the two-dimensional code as claimed in claim 16 , wherein the preliminary correction operation further comprises: in a state in which the side of the outer frame is parallel to the coordinate axis, moving at least a portion of a pattern of the two-dimensional code in a direction parallel to the coordinate axis, so that a line connecting the side and a vertex of the outer frame is parallel to a third coordinate axis. |
| Claim: | 18. The reading device for the two-dimensional code as claimed in claim 10 , wherein an operation of restoring the two-dimensional code in the skewed state to the default state in accordance with the outer frame and the position mark comprises: performing an angle restoring operation on the two-dimensional code, the angle restoring operation comprising: obtaining a rotation offset angle of the two-dimensional code relative to a coordinate axis in accordance with a position of the position mark; and correcting the two-dimensional code in accordance with the rotation offset angle to restore the position mark to a default position. |
| Patent References Cited: | 2011/0290882 December 2011 Gu 104933387 May 2017 109753838 May 2019 106682560 January 2020 110084080 July 2021 113076768 July 2021 |
| Primary Examiner: | Ellis, Suezu |
| Attorney, Agent or Firm: | JCIPRNET |
| Přístupové číslo: | edspgr.12229630 |
| Databáze: | USPTO Patent Grants |
Buďte první, kdo okomentuje tento záznam!