| CPC G06V 20/58 (2022.01) [B60W 30/09 (2013.01); B60W 30/0953 (2013.01); B60W 30/0956 (2013.01); B60W 60/0015 (2020.02); G06T 7/60 (2013.01); G06V 10/25 (2022.01); B60W 2420/403 (2013.01); B60W 2520/00 (2013.01); B60W 2554/404 (2020.02); B60W 2554/80 (2020.02); G06T 2207/30252 (2013.01); G06V 2201/07 (2022.01); G06V 2201/08 (2022.01)] | 20 Claims |

|
1. An electronic device provided in an autonomous vehicle, the electronic device comprising:
a camera;
a memory storing instructions; and
at least one processor operatively coupled with the camera;
wherein the at least one processor is configured to, when the instructions are executed:
obtain a front image in which the autonomous vehicle is driving through the camera,
identify a target vehicle in the front image based on the vehicle detection model stored in the memory,
generate a bounding box corresponding to the target vehicle in response to an identification of the target vehicle,
generate a sliding window having a height equal to the height of the bounding box and having a width half of the width of the bounding box,
divide the bounding box into a first area positioned left based on a middle position of the bounding box, and a second area positioned right based on the middle position of the bounding box,
generate an extended bounding box by extending the first area in a left direction and extending the second area in a right direction, wherein size of the extended bounding box is twice as wide as size of the bounding box, wherein pixel values in extended portions of the extended bounding box are corresponding to an average value of all pixel values included in the bounding box,
obtain a sum of a pixel difference values between a left portion of the sliding window and a right portion of the sliding window for each shift by sequentially shifting the sliding window by a predefined pixel interval with respect to all of width of the extended bounding box, wherein the right portion of the sliding window is inverted left and right while obtaining the sum of the pixel difference values for each of the sequentially shifted sliding windows, and
identify a point that corresponds to a minimum value among sum values respectively indicating the sums that are obtained according to the shifting.
|