A method is performed by an electronic device of an ego vehicle that includes a camera, and the method includes: determining, from an image frame of a target vehicle captured by the camera, a rear box of the target vehicle, which is located in front of the ego vehicle, the rear box corresponding to…