PERCEPTION SYSTEM FOR AUTONOMOUS VEHICLES
Image processing techniques are described to obtain an image from a camera located on a vehicle while the vehicle is being driven, cropping a portion of the obtained image corresponding to a region of interest, detecting an object in the cropped portion, adding a bounding box around the detected object, determining position(s) of reference point(s) on the bounding box, and determining a location of the detected object in a spatial region where the vehicle is being driven based on the determined one or more positions of the second set of one or more reference points on the bounding box.
1 . An image processing method, comprising:
obtaining an image from a camera located on a vehicle;
determining a location of the vehicle in a map;
selecting two points located at two distances from the location of the vehicle;
determining positions of the two points on the image by projecting a set of coordinates of the two points to the image; and
cropping a portion of the image corresponding to a region that is identified based on the positions of the two points on the image.
2 . The method of claim 1 , wherein the two points correspond to a first distance and a second distance from the location of the vehicle.
3 . The method of claim 2 , wherein the first distance is an upper bound location of the region, and the second distance is a lower bound location of the region.
4 . The method of claim 1 , wherein the positions of the two points on the image and a pre-defined left bound position and a pre-defined right bound position is used to obtain a cropping area of the region.
5 . The method of claim 1 , wherein in response to the vehicle being located within a pre-determined distance of the region, the positions of the two points are determined by using camera pose information of the camera to project the set of coordinates of the two points to the image.
6 . The method of claim 5 , wherein the set of coordinates are three-dimension (3D) world coordinates of the two points, and wherein the 3D world coordinates are obtained using the map and the location of the vehicle.
7 . The method of claim 1 , wherein the two points are located in a spatial region in front of the vehicle.
8 . The method of claim 1 , wherein the two distances are two different pre-determined distances.
9 . The method of claim 1 , wherein the location of the vehicle is associated with a time when the image is obtained.
10 . The method of claim 1 , wherein the obtaining the image, the determining the location of the vehicle, the selecting the two points, the determining the positions of the two points, and the cropping the portion of the image are performed as the vehicle is being driven.
11 . The method of claim 1 , wherein the positions of the two points are coordinates of pixels associated with the positions in the image.
12 . The method of claim 1 , wherein the region is pre-defined in the map.
13 . An apparatus, comprising least one processor and a memory having instructions stored thereupon, the instructions upon execution by the at least one processor configures the apparatus to:
obtain an image from a camera located on a vehicle;
determine a location of the vehicle in a map;
select two points located at two distances from the location of the vehicle;
determine positions of the two points on the image by projecting a set of coordinates of the two points to the image; and
crop a portion of the image corresponding to a region that is identified based on the positions of the two points on the image.
14 . The apparatus of claim 13 , wherein the two points correspond to a first distance and a second distance from the location of the vehicle.
15 . The apparatus of claim 14 , wherein the first distance is an upper bound location of the region, and the second distance is a lower bound location of the region.
16 . The apparatus of claim 13 , wherein the positions of the two points on the image and a pre-defined left bound position and a pre-defined right bound position is used to obtain a cropping area of the region.
17 . The apparatus of claim 13 , wherein in response to the vehicle being located within a pre-determined distance of the region, the positions of the two points are determined by using camera pose information of the camera to project the set of coordinates of the two points to the image.
18 . The apparatus of claim 17 , wherein the set of coordinates are three-dimension (3D) world coordinates of the two points, and wherein the 3D world coordinates are obtained using the map and the location of the vehicle.
19 . The apparatus of claim 13 , wherein the two points are located in a spatial region in front of the vehicle.
20 . The apparatus of claim 13 , wherein the two distances are two different pre-determined distances.