| CPC G06T 7/0004 (2013.01) [G01B 11/22 (2013.01); G06T 1/0007 (2013.01); G06T 5/20 (2013.01); G06T 5/50 (2013.01); G06T 7/11 (2017.01); G06T 7/50 (2017.01); H04N 23/695 (2023.01); H04N 23/80 (2023.01); G06T 2207/20021 (2013.01); G06T 2207/20221 (2013.01); G06T 2207/30108 (2013.01)] | 13 Claims |

|
1. A detection method for battery swap in a battery swap station, wherein the battery swap station comprises a battery swap platform, a first image acquisition module mounted in the battery swap platform, a conveying mechanism, a second image acquisition module, and a battery compartment; and
the detection method for battery swap comprises the following steps:
obtaining a first image of a used battery by using the first image acquisition module after a vehicle with a battery to be swapped arrives at a first preset position;
determining, based on the first image, whether the used battery is in a first anomalous state, wherein the first anomalous state include a scratched state or dented state;
uploading the first image to the server if the used battery is in the first anomalous state;
obtaining a second image of the used battery by using the second image acquisition module when the used battery is detached and conveyed to a second preset position through the conveying mechanism;
determining, based on the second image, whether the used battery is in a second anomalous state by invoking a first preset model, wherein the second anomalous state is a state in which there is a foreign matter on a surface of the used battery; and
uploading the second image to the server if the used battery is in the second anomalous state,
wherein the first preset position is in the battery swap platform; and
the second preset position is in the battery compartment;
wherein the step of determining, based on the first image, whether the used battery is in a first anomalous state specifically comprises:
pre-processing the first image to obtain a target image; and
determining, based on the target image, whether the used battery is in the first anomalous state;
wherein the first image is a three-dimensional image; and
the step of pre-processing the first image to obtain a target image specifically comprises:
calculating all pieces of gradient information of the first image in a Z-axis direction;
determining whether each piece of gradient information is greater than preset gradient information;
if the gradient information is greater than the preset gradient information, reserving an image part corresponding to the gradient information, to obtain the target image; and/or
if the gradient information is less than or equal to the preset gradient information, filtering out an image part corresponding to the gradient information.
|