IP Library Granted Patent US 12,141,654
Granted Patent B2
US 12,141,654 · App. 18/325,837 · Granted Nov 12, 2024

Code scanning method and apparatus

Inventors: Qingwen Wang (Shanghai, CN); Zhenyang Wang (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
G06K7/1417G06K7/1413
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,141,654
App. No.
18/325,837
Granted
Nov 12, 2024
Kind
B2
Abstract

The present disclosure relates to code scanning methods based on vehicle-mounted cameras. One example method includes collecting a first image by using a vehicle-mounted camera, parsing a target encoding pattern included in the first image, and when no parsing information is obtained, collecting, based on image data obtained by the vehicle-mounted camera, another image that is close to the first image in a time relationship for parsing to attempt to obtain parsing information in the target encoding pattern.

Claims (66)

1. A method, comprising:

obtaining a first image collected by a vehicle-mounted camera, wherein the first image comprises a target encoding pattern photographed by the vehicle-mounted camera;

parsing the target encoding pattern by using the first image; and

in response to determining that no parsing information is obtained by parsing the target encoding pattern, parsing the target encoding pattern by using a second image, wherein the second image is an image already collected by the vehicle-mounted camera, wherein the second image comprises the target encoding pattern photographed by the vehicle-mounted camera, and an interval between a collection moment of the second image and a collection moment of the first image is within a first preset time period.

2. The method according to claim 1 , wherein after parsing information is obtained by parsing the target encoding pattern in the second image, a corresponding operation is performed according to an indication in the parsing information.

3. The method according to claim 1 , wherein in response to determining that no parsing information is obtained by parsing the target encoding pattern in the second image, the method further comprises:

parsing the target encoding pattern by using a third image, wherein the third image comprises the target encoding pattern photographed by the vehicle-mounted camera, and wherein the third image is an image collected by the vehicle-mounted camera after changing a vehicle status.

4. The method according to claim 3 , wherein changing the vehicle status comprises prompting a driver to adjust the vehicle status or automatically adjusting the vehicle status by the vehicle.

5. The method according to claim 1 , wherein the parsing the target encoding pattern comprises:

detecting integrity of the target encoding pattern;

aligning the target encoding pattern when it is detected that the target encoding pattern is complete; and

parsing the target encoding pattern.

6. The method according to claim 1 , wherein the parsing the target encoding pattern by using a second image comprises:

performing sampling on image data based on a second preset time interval to obtain one second image, wherein an interval between a moment at which the image data is collected and the moment at which the vehicle-mounted camera collects the first image is within the first preset time period;

parsing the target encoding pattern by using the second image; and

in response to determining that parsing information is not obtained by parsing the target encoding pattern in the second image, performing next sampling on the image data based on the second preset time interval.

7. The method according to claim 1 , wherein the parsing the target encoding pattern by using a second image comprises:

performing sampling on image data based on a second preset time interval to obtain a plurality of second images, wherein an interval between a moment at which the image data is collected and the moment at which the vehicle-mounted camera collects the first image is within the first preset time period;

sorting the plurality of second images based on exposure or definition;

parsing the target encoding pattern in the second images according to a sorting order; and

stopping parsing the target encoding pattern when the parsing information is obtained.

8. The method according to claim 1 , wherein the obtaining a first image collected by a vehicle-mounted camera comprises obtaining, when a trigger condition is met, the first image collected by the vehicle-mounted camera.

9. The method according to claim 8 , wherein the trigger condition comprises one or more of the following: an instruction of an operator is received, a vehicle speed is lower than a threshold, a geographical location is reached, and an instruction sent through a network is received.

10. The method according to claim 1 , wherein the target encoding pattern comprises a two-dimensional code or a one-dimensional bar code.

11. The method according to claim 1 , wherein the first image comprises an encoding pattern having a geometric feature, and the geometric feature is a feature that distinguishes the target encoding pattern from another encoding pattern.

12. The method according to claim 11 , wherein the geometric feature comprises one or more of a border, a shading, a background color, and an aspect ratio.

13. The method according to claim 1 , wherein the first preset time period becomes smaller as the vehicle speed increases.

14. A vehicle-mounted apparatus, comprising:

at least one processor and a memory, wherein the at least one processor is coupled to the memory, and the memory stores program instructions for execution by the at least one processor to perform operations comprising:

obtaining a first image collected by a vehicle-mounted camera, wherein the first image comprises a target encoding pattern photographed by the vehicle-mounted camera;

parsing the target encoding pattern by using the first image; and

in response to determining that no parsing information is obtained by parsing the target encoding pattern, parsing the target encoding pattern by using a second image, wherein the second image is an image already collected by the vehicle-mounted camera, and an interval between a collection moment of the second image and a collection moment of the first image is within a first preset time period.

15. The vehicle-mounted apparatus according to claim 14 , wherein after parsing information is obtained by parsing the target encoding pattern in the second image, a corresponding operation is performed according to an indication in the parsing information.

16. The vehicle-mounted apparatus according to claim 14 , wherein in response to determining that no parsing information is obtained by parsing the target encoding pattern in the second image, the operations further comprise:

parsing the target encoding pattern by using a third image, wherein the third image comprises the target encoding pattern photographed by the vehicle-mounted camera, and wherein the third image is an image collected by the vehicle-mounted camera after changing a vehicle status.

17. The vehicle-mounted apparatus according to claim 16 , wherein changing the vehicle status comprises prompting a driver to adjust the vehicle status or automatically adjusting the vehicle status by the vehicle.

18. The vehicle-mounted apparatus according to claim 14 , wherein the parsing the target encoding pattern comprises:

detecting integrity of the target encoding pattern;

aligning the target encoding pattern when it is detected that the target encoding pattern is complete; and

parsing the target encoding pattern.

19. The vehicle-mounted apparatus according to claim 14 , wherein the parsing the target encoding pattern by using a second image comprises:

performing sampling on image data based on a second preset time interval to obtain one second image, wherein an interval between a moment at which the image data is collected and the moment at which the vehicle-mounted camera collects the first image is within the first preset time period;

parsing the target encoding pattern by using the second image; and

in response to determining that parsing information is not obtained by parsing the target encoding pattern in the second image, performing next sampling on the image data based on the second preset time interval.

20. The vehicle-mounted apparatus according to claim 14 , wherein the parsing the target encoding pattern by using a second image comprises:

performing sampling on image data based on a second preset time interval to obtain a plurality of second images, wherein an interval between a moment at which the image data is collected and the moment at which the vehicle-mounted camera collects the first image is within the first preset time period;

sorting the plurality of second images based on exposure or definition;

parsing the target encoding pattern in the second images according to a sorting order; and

stopping parsing the target encoding pattern when the parsing information is obtained.

21. The vehicle-mounted apparatus according to claim 14 , wherein the obtaining a first image collected by a vehicle-mounted camera comprises obtaining, when a trigger condition is met, the first image collected by the vehicle-mounted camera.

22. The vehicle-mounted apparatus according to claim 21 , wherein the trigger condition comprises one or more of the following: an instruction of an operator is received, a vehicle speed is lower than a threshold, a geographical location is reached, and an instruction sent through a network is received.

23. The vehicle-mounted apparatus according to claim 14 , wherein the target encoding pattern comprises a two-dimensional code and a one-dimensional bar code.

24. The vehicle-mounted apparatus according to claim 14 , wherein the first image comprises an encoding pattern having a geometric feature, and the geometric feature is a feature that distinguishes the target encoding pattern from another encoding pattern.

25. The vehicle-mounted apparatus according to claim 24 , wherein the geometric feature comprises one or more of a border, a shading, a background color, and an aspect ratio.

26. A vehicle, comprising:

a vehicle-mounted camera, the vehicle-mounted camera configured to collect an image;

a display, the display configured to display content corresponding to parsing information obtained by parsing a target encoding pattern;

an input device, the input device configured to receive an input of an operator; and

at least one processor and at least one memory, wherein the at least one processor is coupled to the at least one memory, and the at least one memory stores program instructions for execution by the at least one processor to perform operations comprising:

obtaining a first image collected by a vehicle-mounted camera, wherein the first image comprises a target encoding pattern photographed by the vehicle-mounted camera;

parsing the target encoding pattern by using the first image; and

in response to determining that no parsing information is obtained by parsing the target encoding pattern, parsing the target encoding pattern by using a second image, wherein the second image is an image already collected by the vehicle-mounted camera, and an interval between a collection moment of the second image and a collection moment of the first image is within a first preset time period.

27. A non-transitory computer-readable storage medium, comprising a program, wherein when the program is run on a computer, the computer is enabled to perform operations comprising:

obtaining a first image collected by a vehicle-mounted camera, wherein the first image comprises a target encoding pattern photographed by the vehicle-mounted camera;

parsing the target encoding pattern by using the first image; and

in response to determining that no parsing information is obtained by parsing the target encoding pattern, parsing the target encoding pattern by using a second image, wherein the second image is an image collected by the vehicle-mounted camera, and an interval between a collection moment of the second image and a collection moment of the first image is within a first preset time period.

Assignments (3)
CHANGE OF NAME Recorded Apr 28, 2026
From: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
To: YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 075492/0796 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069336/0125 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 15, 2023
From: WANG, QINGWEN; WANG, ZHENYANG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 065577/0984 →