CPC G06K 7/1443 (2013.01) [G06T 7/70 (2017.01); G06V 10/25 (2022.01); G06V 10/60 (2022.01); H04N 23/64 (2023.01); G06T 2207/30242 (2013.01); G06V 2201/07 (2022.01)] | 17 Claims |
1. A scanning method, applied in an electronic device, the method comprising:
obtaining a total number of objects;
using a camera to photograph the objects, and obtaining a first image;
scanning the first image, and determining a first number of first scanned barcodes and first positions of the first scanned barcodes;
adjusting, when the first number is less than the total number, a shooting parameter of the camera from a first value to a second value;
using the camera with the adjusted shooting parameter to photograph the objects, and obtaining a second image;
scanning the second image, and determining a second number of second scanned barcodes and second positions of the second scanned barcodes;
calculating a first sum of the first number and the second number when the first positions are different from the second positions; and
determining, when the first sum is equal to the total number, a target scanning result according to the first image and the second image,
wherein determining the target scanning result according to the first image and the second image comprises:
obtaining a first scanning result of the barcodes in the first image;
obtaining a second scanning result of the barcodes in the second image; and
combining the first scanning result and the second scanning result to obtain the target scanning result.
|