US 12,466,406 B2
Method for controlling vehicles, electronic device, and storage medium
Chieh Lee, New Taipei (TW); and Chin-Pin Kuo, New Taipei (TW)
Assigned to HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed by HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed on Mar. 23, 2023, as Appl. No. 18/125,679.
Claims priority of application No. 202211622514.1 (CN), filed on Dec. 16, 2022.
Prior Publication US 2024/0199017 A1, Jun. 20, 2024
Int. Cl. B60W 30/16 (2020.01); G08G 1/017 (2006.01)
CPC B60W 30/16 (2013.01) [G08G 1/017 (2013.01); B60W 2420/408 (2024.01); B60W 2520/06 (2013.01); B60W 2554/404 (2020.02); B60W 2554/80 (2020.02)] 12 Claims
OG exemplary drawing
 
1. A method for controlling vehicles, the method comprising:
acquiring a license plate image of a target vehicle in front of a vehicle to be controlled, and acquiring point cloud data of the target vehicle through a radar;
identifying the license plate image and obtaining initial vehicle data of the target vehicle, the initial vehicle data comprising a first relative distance between the target vehicle and the vehicle to be controlled and a speed of the target vehicle, wherein identifying the license plate image and obtaining initial vehicle data of the target vehicle comprises: identifying the license plate image and determining a vehicle type of the target vehicle; acquiring a first size of the license plate of the target vehicle according to the vehicle type; processing the license plate image and obtaining a processed image; calculating the first relative distance according to a focal length of a photographing device that captures the license plate image, the first size of the license plate of the target vehicle and the processed image; calculating the speed of the target vehicle according to any two adjacent first relative distances and two shooting times of the license plate images corresponding to the any two adjacent first relative distances;
calculating target vehicle data of the target vehicle based on preset ranges, vehicle data of the vehicle to be controlled, the point cloud data and the initial vehicle data, comprising: calculating relative vehicle data according to the point cloud data and the vehicle data of the vehicle to be controlled; comparing the relative vehicle data with the preset ranges, and obtaining a comparison result; selecting a point cloud data weighting corresponding to the point cloud data from preset weightings according to the comparison result; calculating an initial data weighting corresponding to the initial vehicle data according to the point cloud data weighting and a preset value; obtaining the target vehicle data by calculating the relative vehicle data and the initial vehicle data, according to the point cloud data weighting and the initial data weighting;
in response that the target vehicle data meets preset conditions, adjusting the vehicle data of the vehicle to be controlled according to the target vehicle data, the target vehicle data comprises a target distance and a target speed, wherein in response that the target vehicle data meets preset conditions, adjusting the vehicle data of the vehicle to be controlled according to the target vehicle data comprises: comparing the target distance with a preset safe distance, and comparing the target speed with the speed of the vehicle to be controlled; in response that the target distance is less than the preset safe distance and/or the target speed is less than the speed of the vehicle to be controlled, adjusting the speed of the vehicle to be controlled and an acceleration of the vehicle to be controlled until the target distance is greater than or equal to the preset safe distance.