WO2020124988A1 - Vision-based parking space detection method and device - Google Patents

Vision-based parking space detection method and device Download PDF

Info

Publication number
WO2020124988A1
WO2020124988A1 PCT/CN2019/093530 CN2019093530W WO2020124988A1 WO 2020124988 A1 WO2020124988 A1 WO 2020124988A1 CN 2019093530 W CN2019093530 W CN 2019093530W WO 2020124988 A1 WO2020124988 A1 WO 2020124988A1
Authority
WO
WIPO (PCT)
Prior art keywords
parking space
bird
target parking
eye view
vehicle
Prior art date
Application number
PCT/CN2019/093530
Other languages
French (fr)
Chinese (zh)
Inventor
张雪飞
肖志光
赖健明
Original Assignee
广州小鹏汽车科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州小鹏汽车科技有限公司 filed Critical 广州小鹏汽车科技有限公司
Publication of WO2020124988A1 publication Critical patent/WO2020124988A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • G06V20/13Satellite images

Definitions

  • the invention relates to the technical field of parking space detection, in particular to a vision-based parking space detection method and device.
  • parking space detection technology has solved the problem of finding parking spaces to a certain extent. problem.
  • the above-mentioned method of identifying the parking space based on the color or shape of the parking space line has a low degree of recognition, and the success rate of identifying the parking space is not high. Therefore, there is an urgent need to develop a parking space detection method with a high parking space recognition rate.
  • the embodiment of the invention discloses a vision-based parking space detection method and device, which can improve the accuracy of the parking space detection, thereby improving the recognition rate of the parking space.
  • a first aspect of an embodiment of the present invention discloses a vision-based parking space detection method, including:
  • the target parking space corresponding to the target parking space frame is determined according to the real position coordinates corresponding to the target parking space corner point.
  • the preprocessing the captured environmental images on both sides of the vehicle to obtain a corresponding bird's-eye view includes:
  • the camera's camera device According to the internal parameters and external parameters of the camera's camera device, perform distortion correction on the captured environmental images on both sides of the vehicle to obtain corresponding corrected images;
  • distortions are corrected for the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device, Before obtaining the corresponding corrected image, the method further includes:
  • the internal and external parameters of the camera's camera device include at least the focal length, pixel size, and distortion parameters of the camera device;
  • the external parameters include at least the height of the camera device relative to the ground and the camera Device rotation matrix;
  • the captured environmental images on both sides of the vehicle are subjected to distortion correction to obtain corresponding corrected images, including:
  • the internal parameter and the external parameter determine a first correspondence between the environment images on both sides of the vehicle and corresponding corrected images; the first correspondence includes the captured environment on both sides of the vehicle Correspondence between pixels of the image and pixels of the corrected image;
  • the first look-up table perform distortion correction on the captured environmental images on both sides of the vehicle to obtain the corrected image
  • the performing perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view includes:
  • the pixels of the corrected image determine a second correspondence between the corrected image and the corresponding bird's-eye view; the second correspondence includes the pixels of the corrected image and the pixels of the bird's-eye view Correspondence between
  • the second lookup table perform a perspective transformation on the corrected image to obtain the bird's-eye view.
  • the method before the preprocessing the captured environmental images on both sides of the vehicle to obtain a corresponding bird's-eye view, the method further includes:
  • the internal and external parameters of the camera's camera device include at least the focal length, pixel size, and distortion parameters of the camera device;
  • the external parameters include at least the height of the camera device relative to the ground and the camera Device rotation matrix;
  • the preprocessing of the environmental images on both sides of the captured vehicle to obtain a corresponding bird's-eye view includes:
  • the internal parameter and the external parameter determine a third correspondence between the environment images on both sides of the vehicle and the corresponding bird's-eye view; the third correspondence includes the captured environment on both sides of the vehicle Correspondence between pixels of the image and pixels of the bird's-eye view;
  • the third lookup table perform a bird's eye view transformation on the captured environment images on both sides of the vehicle to obtain the bird's eye view.
  • the method further includes:
  • the step of determining the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view is performed .
  • a second aspect of an embodiment of the present invention discloses a parking space detection device, including:
  • the pre-processing unit is used to pre-process the environment images on both sides of the vehicle to obtain the corresponding bird's-eye view;
  • a first detection unit configured to detect a parking space frame and a parking space corner point in the bird's-eye view
  • An obtaining unit configured to obtain a target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame;
  • a first determining unit configured to determine the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view;
  • the second determining unit is configured to determine the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the target parking space corner point.
  • the preprocessing unit includes:
  • the distortion correction subunit is used to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal parameters and external parameters of the camera device of the vehicle to obtain corresponding corrected images;
  • the perspective transformation subunit is configured to perform perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
  • the parking space detection device further includes:
  • the first parameter acquisition unit is used to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device of the distortion correction sub-unit to obtain the corresponding corrected image
  • the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device
  • the external parameters include at least the height of the camera device relative to the ground and the The rotation matrix of the camera device
  • the distortion correction subunit includes:
  • a first determining module configured to determine the first correspondence between the environmental images on both sides of the vehicle and the corresponding corrected images based on the internal parameters and the external parameters; the first correspondence includes the captured Correspondence between pixels of the environmental images on both sides of the vehicle and pixels of the corrected image;
  • a first saving module configured to save the first correspondence to the first lookup table
  • a distortion correction module configured to perform distortion correction on the captured environmental images on both sides of the vehicle according to the first lookup table to obtain the corrected image
  • the perspective transformation subunit includes:
  • a second determining module configured to determine a second correspondence between the corrected image and the corresponding bird's-eye view according to the pixels of the corrected image; the second correspondence includes the pixels of the corrected image and all The correspondence between the pixels of the bird's-eye view;
  • a second saving module configured to store the second correspondence relationship in a second lookup table
  • the perspective transformation module is configured to perform perspective transformation on the corrected image according to the second lookup table to obtain the bird's-eye view.
  • the parking space detection device further includes:
  • a second parameter acquisition unit configured to acquire the internal parameters and external parameters of the camera device of the vehicle before the preprocessing unit preprocesses the captured environment images on both sides of the vehicle to obtain the corresponding bird's-eye view;
  • the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device;
  • the external parameters include at least the height of the camera device relative to the ground and the rotation matrix of the camera device;
  • the pre-processing unit includes:
  • a determination subunit configured to determine a third correspondence between the environmental images on both sides of the vehicle and the corresponding bird's-eye view based on the internal parameters and the external parameters; the third correspondence includes the A correspondence between pixels of environmental images on both sides of the vehicle and pixels of the bird's-eye view;
  • a saving subunit configured to save the third correspondence to a third lookup table
  • the bird's eye view transformation subunit is configured to perform bird's eye view transformation on the captured environment images on both sides of the vehicle according to the third lookup table to obtain the bird's eye view.
  • the parking space detection device further includes:
  • the second detection unit is used for the acquisition unit to acquire the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame, and the first determination unit according to the Detecting the position coordinates of the target parking space corner point in the bird's-eye view, before determining the real position coordinates corresponding to the target parking space corner point, detecting whether there is an obstacle in the area within the target parking space frame;
  • a marking unit configured to mark the area in the target parking space frame as a non-parking space when the second detection unit detects that there is an obstacle in the area in the target parking space frame;
  • the first determining unit is specifically configured to determine the position of the corner point of the target parking space in the bird's-eye view when the second detection unit detects that there is no obstacle in the area framed by the target parking space frame Coordinates, determine the real position coordinates corresponding to the target parking space corner point.
  • a third aspect of an embodiment of the present invention discloses a parking space detection device, including:
  • a processor coupled to the memory
  • the processor calls the executable program code stored in the memory to execute a vision-based parking space detection method disclosed in the first aspect of the embodiments of the present invention.
  • a fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium that stores a computer program, wherein the computer program causes the computer to execute a vision-based parking space detection method disclosed in the first aspect of the embodiment of the present invention.
  • a fifth aspect of the embodiments of the present invention discloses a computer program product.
  • the computer program product runs on a computer, the computer program product is caused to perform part or all of the steps of the method of the first aspect.
  • a sixth aspect of the embodiments of the present invention discloses an application publishing platform for publishing a computer program product, wherein when the computer program product runs on a computer, the computer is allowed to execute any of the first aspect Part or all steps of a method.
  • the environmental images on both sides of the captured vehicle are pre-processed to obtain a corresponding bird's-eye view
  • the parking space frame and the parking space corner point in the bird's-eye view are detected, and one is selected from the parking space frame in the bird's-eye view
  • the target parking space frame, according to the target parking space frame, the target parking space corner point on the target parking space frame is obtained from the parking space corner point, and the real position coordinates corresponding to the target parking space corner point are determined according to the position coordinates of the target parking space corner point in the bird's eye view , According to the real position coordinates corresponding to the corners of the target parking space, determine the target parking space corresponding to the target parking space frame.
  • FIG. 1 is a schematic flowchart of a vision-based parking space detection method disclosed in an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a parking space detection device disclosed in an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of yet another parking space detection device disclosed in an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of yet another parking space detection device disclosed in an embodiment of the present invention.
  • FIG. 8 is an application example diagram of a parking space detection process disclosed in an embodiment of the present invention.
  • the embodiment of the invention discloses a vision-based parking space detection method and device, which can improve the accuracy of the parking space detection, thereby improving the recognition rate of the parking space.
  • the following is a detailed description with reference to the drawings.
  • FIG. 1 is a schematic flowchart of a vision-based parking space detection method disclosed in an embodiment of the present invention. As shown in FIG. 1, the method may include the following steps.
  • the parking space detection device preprocesses the captured environmental images on both sides of the vehicle to obtain a corresponding bird's-eye view.
  • the parking space detection device photographs the environment on both sides of the vehicle through the B-pillar cameras installed on both sides of the vehicle to obtain the environmental images on both sides of the vehicle
  • FIG. 8 is an application example diagram of a parking space detection process disclosed in an embodiment of the present invention.
  • the parking space detection device detects the parking space frame and the parking space corner point in the bird's-eye view.
  • the parking space detection device may use a deep learning algorithm to detect the parking space frame and the parking space corner point in the bird's-eye view, and the embodiment of the present invention is not limited.
  • the parking space detection device can collect a large number of parking space graphic samples, train to obtain a parking space model based on the parking space graphic samples, and then import the above bird's-eye view into the parking space model to perform convolution operations to generate multiple features. Set the features to detect the parking space frame and parking space corner points from various features.
  • the deep learning algorithm is used to detect the parking space frame and the parking space corner point in the bird's-eye view, which can improve the detection accuracy.
  • the parking space detection device may classify the features, for example, classify the parking space corner points into 0 categories, and classify the parking space frames into 1 category, and then import the above bird's-eye view into the parking space model for volume Product operation is used to generate various features, and the category 0 is extracted as a parking corner and the category 1 is extracted as a parking frame.
  • the parking space corner points are divided into 0 categories and the parking space frame is divided into 1 categories, which can increase the recognition speed of the computer and thereby improve the detection efficiency of the parking spaces.
  • the parking space detection device selects a target parking space frame from the parking space frame in the bird's-eye view.
  • the parking space detection device filters a target parking space frame from the parking space frame in the bird's-eye view, including:
  • the parking space detection device sorts the width of each parking space frame in the bird's-eye view and counts the ranking of the width of each parking space frame;
  • the parking space detection device uses the first ranked parking space frame as the target parking space frame.
  • the parking space frame with the largest width is selected as the target parking space frame, and the safety of parking can be improved.
  • the parking space detection device obtains the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame.
  • the parking space detection device may use a conventional image processing method to filter a target parking space frame from the parking space frame in the bird's-eye view, and remove other parking space corner points except for the target parking space corner point on the target parking space frame.
  • the number of target parking space corner points on the target parking space frame is at least two, which is not limited in the embodiment of the present invention.
  • the parking space detection device determines the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view.
  • formula (1) expresses the mapping relationship between the image coordinate system of the bird's-eye view and the world coordinate system
  • the parking space detection device may, according to formula (1), convert the position coordinates of the target parking space corner point in the bird's-eye view Convert to the position coordinates of the target parking space corner point in the world coordinate system, and take the position coordinates of the target parking space corner point in the world coordinate system as the real position coordinates corresponding to the target parking space corner point
  • formula (1) is as follows:
  • the parking space detection device determines the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the target parking space corner point.
  • the parking space detection device determines the center position of the area formed by the target parking space corner point according to the real position coordinates corresponding to the target parking space corner point, and takes the center position of the area formed by the target parking space corner point as the center of the target parking space Location, and place the corner of the target parking space at the corner of the target parking space.
  • the environmental images on both sides of the vehicle are obtained by shooting, and then the environmental images are converted into a bird's-eye view, and a target parking space frame and the target parking space frame are selected from the parking space frame in the bird's-eye view.
  • calculating the real position coordinates corresponding to the target parking space corner point and determining the target parking space corresponding to the target parking space frame can improve the accuracy of the parking space detection, thereby improving the recognition rate of the parking space.
  • FIG. 2 is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps.
  • the parking space detection device acquires internal parameters and external parameters of the camera device of the vehicle.
  • the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device
  • the external parameters include at least the height of the camera device relative to the ground and the rotation matrix of the camera device, which is not limited in the embodiment of the present invention.
  • the parking space detection device performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal parameters and external parameters of the camera's camera device to obtain corresponding corrected images.
  • the parking space detection device can correct the distortion of the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device, which can be Zhang Zhengyou's checkerboard calibration method, an embodiment of the present invention Not limited.
  • the parking space detection device performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device to obtain corresponding corrected images, including:
  • the parking space detection device determines the first correspondence between the environmental images on both sides of the vehicle and the corresponding corrected images based on the internal and external parameters;
  • the parking space detection device saves the first correspondence to the first look-up table
  • the parking space detection device performs distortion correction on the captured environmental images on both sides of the vehicle according to the first lookup table to obtain the corresponding corrected image.
  • the first correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the corrected image.
  • a coordinate in the world coordinate system of the environment on both sides of the vehicle is (X w , Y w , Z w ), and the coordinate in the image coordinate system of the environment on both sides of the vehicle is (x, y), in the vehicle
  • the coordinates in the pixel coordinate system of the environmental images on both sides are (u, v)
  • the coordinates in the pixel coordinate system of the corrected image are (u′, v′)
  • the point (u 0 , v 0 ) is the light of the camera device
  • the intersection of the axis and the image plane, ie the principal point, Z c is the height of the camera relative to the ground
  • d x is the physical size of the pixel in the x-axis direction
  • d y is the physical size of the pixel in the y-axis direction
  • k 1 , K 2 are the first two orders of the distortion parameter k
  • f is the focal length of the camera
  • R is the rotation matrix of the camera.
  • the parking space detection device may convert the coordinate points (X w , Y w , Z w ) in the environment on both sides of the vehicle in the world coordinate system into the vehicle coordinates in the pixel coordinate system according to formula (1)
  • the pixel coordinate points (u, v) of the environmental image on the side and then convert each pixel coordinate point (u, v) in the image into the corresponding pixel point (u′, v′) in the corrected image, and
  • Each pixel point (u, v) in the environmental image on the side and the corresponding pixel point (u′, v′) in the corrected image are stored in the first lookup table.
  • Table can find the corresponding pixel point (u′, v′) of each pixel (u, v) in the environmental image on both sides of the vehicle, and then perform distortion correction on the environmental image on both sides of the vehicle, thus Obtain a corrected image.
  • the parking space detection device performs perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
  • the bird's-eye view is a view from the top to the bottom of the actual environment corresponding to the image, because the bird's-eye view view is more conducive to the positioning of the parking space frame and the parking space corner by the parking space detection device. Before the corner of the parking space, the corrected image needs to be converted into a bird's eye view.
  • the parking space detection device performs perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view, including:
  • the parking space detection device determines the second correspondence between the corrected image and the corresponding bird's-eye view according to the pixels of the corrected image;
  • the parking space detection device saves the second correspondence to the second look-up table
  • the parking space detection device performs perspective transformation on the corrected image according to the second lookup table to obtain a corresponding bird's-eye view.
  • the second correspondence includes the correspondence between the pixels of the corrected image and the pixels of the bird's-eye view.
  • the parking space detection device may map the two-dimensional coordinates (u′, v′) of the corrected image in the pixel coordinate system to the three-dimensional coordinates (X w , Y w ) in the world coordinate system according to formula (3) Z w ), divided by the value of Z w in three-dimensional coordinates to map back to the two-dimensional space between to get the coordinates (u′′, v′′), so as to obtain a bird’s-eye view, formula (3) is as follows:
  • (u′, v′) is the coordinate of the pixel coordinate system of the corrected image
  • (X w , Y w , Z w ) is the three-dimensional coordinate of the point (u′, v′) in the world coordinate system
  • (u′′ , V′′) are the coordinates of the pixel coordinate system of the bird’s-eye view
  • Is the transformation matrix where, It is the linear transformation of the image, [a 13 a 23 ] T is the perspective transformation of the image, and [a 31 a 32 ] is the image translation.
  • the perspective transformation of the corrected image can be performed to obtain a bird's eye view view.
  • the parking space detection device may convert the pixel coordinate points (u′, v′) in the corrected image in the pixel coordinate system to the pixel coordinate points of the bird's-eye view in the pixel coordinate system according to formula (2) ( u′′, v′′), and save each pixel point (u′, v′) in the corrected image and the corresponding pixel point (u′′, v′′) in the bird's-eye view in the second lookup table.
  • the parking space detection device detects the parking space frame and the parking space corner point in the bird's-eye view.
  • the parking space detection device selects a target parking space frame from the parking space frame in the bird's-eye view.
  • the parking space detection device obtains the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame.
  • the parking space detection device detects whether there is an obstacle in the area framed by the target parking space frame; if yes, step 208 is performed; if not, step 209 is performed.
  • the parking space detection device may select multiple areas at the edge of the target parking space frame and detect the edge density of the multiple areas, and use the edge density of the area corresponding to the maximum edge density as the target edge density, and then determine Whether the target edge density is greater than the specified threshold, if yes, it indicates that there is an obstacle in the area, the parking space detection device performs step 208 to mark the area in the target parking space frame as a non-parking space; if not, the parking space detection device performs step 209 according to the bird's eye view The position coordinates of the target parking space corner point are determined to determine the true position coordinates corresponding to the target parking space corner point.
  • the parking space detection device marks the area within the target parking space frame as a non-parking space.
  • the parking space detection device marks the area framed by the target parking space as a non-parking space.
  • the parking space detection device determines the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view.
  • the parking space detection device determines the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the corner of the target parking space.
  • the parking space detection device detects whether there is an obstacle in the area within the target parking space frame, and if so, it indicates that The parking space cannot be stopped, and the parking space detection device marks the area enclosed by the target parking space frame as a non-parking space, which can prevent the vehicle from hitting obstacles during parking and ensure parking safety.
  • the method described in FIG. 1 after implementing the method described in FIG. 2, after determining the target parking space corner point, the parking space detection device detects whether there is an obstacle in the area within the target parking space frame, and if so, it indicates that The parking space cannot be stopped, and the parking space detection device marks the area enclosed by the target parking space frame as a non-parking space, which can prevent the vehicle from hitting obstacles during parking and ensure parking safety.
  • the first and second look-up tables carrying distortion parameters are used to perform distortion correction on the captured environmental images on both sides of the vehicle to obtain corrected images, and then the second look-up tables carrying perspective transformation coefficients are used to correct the images
  • perspective transformation to obtain a bird's-eye view can increase the generation speed of bird's-eye view and improve the detection efficiency of parking spaces.
  • FIG. 3 is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention. As shown in FIG. 3, the method may include the following steps.
  • the parking space detection device acquires the internal parameters and external parameters of the camera device of the vehicle.
  • the parking space detection device determines the third correspondence between the environmental images on both sides of the vehicle and the corresponding bird's-eye view based on the internal parameters and the external parameters.
  • the third correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the bird's-eye view.
  • the parking space detection device saves the third correspondence to the third lookup table.
  • the parking space detection device performs bird's eye view transformation on the captured environment images on both sides of the vehicle according to the third lookup table to obtain a corresponding bird's eye view.
  • the rotation matrix R of the camera device can then be combined with the above formula (2) and formula (3) to convert the pixel coordinate points (u, v) of the environmental images on both sides of the vehicle in the pixel coordinate system into a bird's eye view in the pixel coordinate system
  • the parking space detection device detects the parking space frame and the parking space corner point in the bird's-eye view.
  • the parking space detection device selects a target parking space frame from the parking space frame in the bird's-eye view.
  • the parking space detection device obtains the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame.
  • the parking space detection device detects whether there is an obstacle in the area framed by the target parking space frame; if yes, step 309 is performed; if not, step 310 is performed.
  • the parking space detection device marks the area within the target parking space frame as a non-parking space.
  • the parking space detection device determines the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view.
  • the parking space detection device determines the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the corner of the target parking space.
  • the parking space detection device detects whether there is an obstacle in the area within the target parking space frame, and if so, it indicates that The parking space cannot be stopped.
  • the parking space detection device marks the area enclosed by the target parking space frame as a non-parking space.
  • a bird's-eye view is obtained by performing a bird's-eye view transformation on the captured environmental images on both sides of the vehicle through a third look-up table carrying a bird's-eye view transformation coefficient, which can increase the generation speed of the bird's-eye view and improve the efficiency of parking space detection.
  • FIG. 4 is a schematic structural diagram of a parking space detection device disclosed in an embodiment of the present invention.
  • the parking space detection device may include:
  • the preprocessing unit 401 is used to preprocess the captured environment images on both sides of the vehicle to obtain a corresponding bird's-eye view;
  • the first detection unit 402 is used to detect the parking space frame and the parking space corner point in the bird's-eye view;
  • the screening unit 403 is used for screening a target parking space frame from the parking space frame in the bird's-eye view;
  • the obtaining unit 404 is configured to obtain the target parking space corner point on the target parking space frame according to the target parking space frame;
  • the first determining unit 405 is configured to determine the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view;
  • the second determining unit 406 is configured to determine the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the target parking space corner point.
  • the first detection unit 402 may use a deep learning algorithm to detect the parking space frame and the parking space corner point in the bird's-eye view, which is not limited in this embodiment of the present invention.
  • the screening unit 403 may use a conventional image processing method to filter a target parking space frame from the parking space frame in the bird's-eye view, and exclude other parking space corner points except the target parking space corner point on the target parking space frame.
  • the number of target parking space corner points on the target parking space frame is at least two, which is not limited in the embodiment of the present invention.
  • the first determining unit 405 first calculates the position coordinates of the target parking space corner point in the bird's-eye view, and then converts the target parking space angle in the bird's-eye view according to the mapping relationship between the coordinate system of the bird's-eye view and the world coordinate system The position coordinates of the point are converted into the position coordinates of the target parking space corner point in the world coordinate system, and the position coordinates of the target parking space corner point in the world coordinate system are taken as the true position coordinates corresponding to the target parking space corner point.
  • the second determining unit 406 determines the center position of the area formed by the target parking space corner point according to the real position coordinates corresponding to the target parking space corner point, and takes the center position of the area formed by the target parking space corner point as the target parking space And the corner of the target parking space at the corner of the target parking space.
  • the first detection unit 402 can collect a large number of parking space graphic samples, train a parking space model according to the parking space graphic samples, and then import the above bird's-eye view into the parking space model for convolution operation to generate multiple features, A parking space frame and a parking space corner point are detected from various characteristics according to preset characteristics.
  • using a deep learning algorithm to detect the parking space frame and the parking space corner point in the bird's-eye view can improve the detection accuracy.
  • the first detection unit 402 may classify features, for example, classify parking space corner points into 0 categories, and classify parking space frames into 1 category, and then import the above bird's-eye view into the parking space model A convolution operation is performed to generate a variety of features, and the category 0 is extracted as a parking corner and the category 1 is extracted as a parking frame.
  • the parking space corner points are divided into 0 categories and the parking space frame is divided into 1 categories, which can increase the recognition speed of the computer and thereby improve the detection efficiency of the parking spaces.
  • the screening unit 403 screens a target parking space frame from the parking space frame in the bird's-eye view, including:
  • the filtering unit 403 sorts the width of each parking space frame in the bird's-eye view and counts the ranking of the width of each parking space frame;
  • the screening unit 403 uses the first ranked parking space frame as the target parking space frame.
  • the parking space frame with the largest width is selected as the target parking space frame, and the safety of parking can be improved.
  • the environmental images on both sides of the vehicle are obtained by shooting, and then the environmental images are converted into a bird's eye view, and a target parking space frame and the target parking space frame are selected from the parking space frame in the bird's eye view
  • the real position coordinates corresponding to the target parking space corner point are calculated and the target parking space corresponding to the target parking space frame is determined, which can improve the accuracy of the parking space detection and thereby increase the recognition rate of the parking space.
  • FIG. 5 is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention.
  • the parking space detection device shown in FIG. 5 is further optimized by the parking space detection device shown in FIG. 4.
  • the parking space detection device shown in FIG. 5 may further include:
  • the pre-processing unit 401 includes:
  • the distortion correction subunit 4011 is configured to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal parameters and external parameters of the camera's camera device to obtain corresponding corrected images;
  • the perspective transformation subunit 4012 is configured to perform perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
  • the first parameter acquisition unit 407 is used to determine before the distortion correction subunit 4011 performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera device of the vehicle to obtain the corresponding corrected image
  • the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device
  • the external parameters include at least the height of the camera device relative to the ground and the rotation matrix of the camera device, which is not limited in the embodiment of the present invention.
  • the distortion correction subunit 4011 performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device to obtain corresponding corrected images, including:
  • the first determination module 40111 is configured to determine the first correspondence between the environmental images on both sides of the vehicle and the corresponding corrected images according to the internal parameters and external parameters determined by the first parameter acquisition unit 407;
  • the first saving module 40112 is used to save the first correspondence to the first lookup table
  • the distortion correction module 40113 is configured to perform distortion correction on the captured environment images on both sides of the vehicle according to the first lookup table to obtain a corresponding corrected image.
  • the first correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the corrected image.
  • the perspective transformation subunit 4012 performs perspective transformation on the corrected image according to the pixels of the corrected image to obtain the corresponding bird's-eye view, including:
  • the second determining module 40121 is configured to determine the second correspondence between the corrected image and the corresponding bird's-eye view according to the pixels of the corrected image;
  • the second saving module 40122 is used to save the second correspondence to the second lookup table
  • the perspective transformation module 40123 is configured to perform perspective transformation on the corrected image according to the second lookup table to obtain a corresponding bird's-eye view.
  • the second correspondence includes the correspondence between the pixels of the corrected image and the pixels of the bird's-eye view.
  • the second detection unit 408 is used for the acquisition unit 404 to acquire the target parking space corner on the target parking space frame from the parking space corner according to the target parking space frame, and the first determination unit 405 according to the target parking space corner in the bird's-eye view Before determining the real position coordinates corresponding to the corner of the target parking space, detect whether there is an obstacle in the area framed by the target parking space frame;
  • the marking unit 409 is used to mark the area in the target parking space frame as a non-parking space when the second detection unit 408 detects that there is an obstacle in the area in the target parking space frame;
  • the first determining unit 405 is specifically configured to determine the target parking space corner according to the position coordinates of the target parking space corner in the bird's-eye view when the second detection unit 408 detects that there is no obstacle in the area framed by the target parking space frame Corresponding real position coordinates.
  • the second detection unit 408 may screen multiple areas at the edge of the target parking space frame and detect the edge density of the multiple areas, and use the edge density of the area corresponding to the maximum edge density as the target edge density, Next, determine whether the target edge density is greater than the specified threshold. If it is, it indicates that there is an obstacle in the area.
  • the marking unit 409 marks the area within the target parking frame as a non-parking space; if not, the first determining unit 405 determines The position coordinates of the target parking space corner point determine the true position coordinates corresponding to the target parking space corner point.
  • the first and second look-up tables carrying distortion parameters are used to perform distortion correction on the captured environmental images on both sides of the vehicle to obtain corrected images, and then the second look-up table carrying perspective transformation coefficients Correcting the image for perspective transformation to obtain a bird's eye view can increase the speed of bird's eye view generation and improve the efficiency of parking space detection.
  • FIG. 6 is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention.
  • the parking space detection device shown in FIG. 6 is further optimized by the parking space detection device shown in FIG. 4.
  • the parking space detection device shown in FIG. 6 may further include:
  • the second parameter obtaining unit 410 is used to obtain the internal parameters and external parameters of the camera device of the vehicle before the preprocessing unit 401 preprocesses the captured environment images on both sides of the vehicle to obtain the corresponding bird's-eye view;
  • the pre-processing unit 401 includes:
  • the determination subunit 4013 is configured to determine the third correspondence between the environmental images on both sides of the vehicle and the corresponding bird's-eye view according to the internal and external parameters determined by the second parameter acquisition unit 410;
  • Saving subunit 4014 used to save the third correspondence to the third lookup table
  • the bird's eye view transformation subunit 4015 is configured to perform bird's eye view transformation on the captured environment images on both sides of the vehicle according to the third lookup table to obtain a corresponding bird's eye view.
  • the third correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the bird's-eye view.
  • the second detection unit 408 is used for the acquisition unit 404 to acquire the target parking space corner on the target parking space frame from the parking space corner according to the target parking space frame, and the first determination unit 405 according to the target parking space corner in the bird's-eye view Before determining the real position coordinates corresponding to the corner of the target parking space, detect whether there is an obstacle in the area framed by the target parking space frame;
  • the marking unit 409 is used to mark the area in the target parking space frame as a non-parking space when the second detection unit 408 detects that there is an obstacle in the area in the target parking space frame;
  • the first determining unit 405 is specifically configured to determine the target parking space corner according to the position coordinates of the target parking space corner in the bird's-eye view when the second detection unit 408 detects that there is no obstacle in the area framed by the target parking space frame Corresponding real position coordinates.
  • the speed of generating bird's eye view can be improved and the parking space detection can be improved effectiveness.
  • FIG. 7 is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention.
  • the parking space detection device may include:
  • a memory 701 storing executable program code
  • a processor 702 coupled with the memory 701;
  • the processor 702 calls the executable program code stored in the memory 701 to execute any one of the vision-based parking space detection methods shown in FIGS. 1 to 3.
  • An embodiment of the present invention discloses a computer-readable storage medium that stores a computer program, where the computer program causes the computer to execute any of the vision-based parking space detection methods of FIGS. 1 to 3.
  • An embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein, when the computer program product runs on the computer, the computer is caused to perform part of the method as in the above method embodiments Or all steps.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • B corresponding to A indicates that B is associated with A, and B can be determined according to A.
  • determining B based on A does not mean determining B based on A alone, and B may also be determined based on A and/or other information.
  • the program may be stored in a computer-readable storage medium, and the storage medium includes read-only Memory (Read-Only Memory, ROM), Random Memory (Random Access, Memory, RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), electronically erasable rewritable read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), compact disc (Compact Disc) Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other medium readable by a computer that can be used to carry or store data.
  • Read-Only Memory Read-Only Memory
  • RAM Random Memory
  • PROM Programmable Read-only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • OTPROM One-time Programmable Read-Only Memory
  • OTPROM One-time Programmable Read-

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Remote Sensing (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

A vision-based parking space detection method and device. The method comprises: preprocessing a captured environmental image on two sides of a vehicle to obtain a corresponding bird's-eye view (101); detecting a parking space frame and a parking space corner point in the bird's-eye view (102) and selecting a target parking space frame from the parking space frame in the bird's-eye view (103); acquiring, according to the target parking space frame, the target parking space corner point on the target parking space frame from the parking space corner point (104); determining, according to the position coordinates of the target parking space corner point in the bird's eye view, the real position coordinates corresponding to the target parking space corner point (105); and determining, according to the real position coordinates corresponding to the target parking space corner point, the target parking space corresponding to the target parking space frame (106). By means of this technical solution, the accuracy of parking space detection can be improved, thereby improving the recognition rate of parking spaces.

Description

一种基于视觉的车位检测方法及装置Vision-based parking space detection method and device 技术领域Technical field
本发明涉及车位检测技术领域,尤其涉及一种基于视觉的车位检测方法及装置。The invention relates to the technical field of parking space detection, in particular to a vision-based parking space detection method and device.
背景技术Background technique
近年来,随着经济的快速发展,汽车的数量迅速增加,但停车位的数量有限,这给寻找停车位带来了一定难度,车位检测技术的发展,一定程度上解决了寻找停车位这一难题。目前,车位检测的方式有以下几种方法:基于颜色的分割技术识别车位的方法、基于Canny边缘检测和霍夫直线检测技术识别车位的方法以及基于SIFT特征提取和匹配技术识别车位的方法。但是,上述基于车位线颜色或形状来识别车位的方法的识别度较低,识别出车位的成功率不高。因此,亟需开发一种车位识别率较高的车位检测方法。In recent years, with the rapid economic development, the number of cars has increased rapidly, but the number of parking spaces is limited, which brings some difficulties to find parking spaces. The development of parking space detection technology has solved the problem of finding parking spaces to a certain extent. problem. At present, there are several methods of parking space detection: the method of identifying parking spaces based on color segmentation technology, the method of identifying parking spaces based on Canny edge detection and Hough line detection technology, and the method of identifying parking spaces based on SIFT feature extraction and matching technology. However, the above-mentioned method of identifying the parking space based on the color or shape of the parking space line has a low degree of recognition, and the success rate of identifying the parking space is not high. Therefore, there is an urgent need to develop a parking space detection method with a high parking space recognition rate.
发明内容Summary of the invention
本发明实施例公开了一种基于视觉的车位检测方法及装置,能够提高车位检测的准确度,从而提高车位的识别率。The embodiment of the invention discloses a vision-based parking space detection method and device, which can improve the accuracy of the parking space detection, thereby improving the recognition rate of the parking space.
本发明实施例第一方面公开一种基于视觉的车位检测方法,包括:A first aspect of an embodiment of the present invention discloses a vision-based parking space detection method, including:
对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图;Preprocess the environmental images on both sides of the captured vehicle to obtain the corresponding bird's-eye view;
检测所述鸟瞰视图中的车位框和车位角点;Detecting a parking space frame and a parking space corner point in the bird's-eye view;
从所述鸟瞰视图中的车位框中筛选一个目标车位框;Selecting a target parking space frame from the parking space frame in the bird's-eye view;
根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点;Obtaining the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame;
根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标;Determine the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view;
根据所述目标车位角点对应的真实位置坐标,确定所述目标车位框对应的目标车位。The target parking space corresponding to the target parking space frame is determined according to the real position coordinates corresponding to the target parking space corner point.
作为一种可选的实施方式,在本发明实施例第一方面中,所述对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图,包括:As an optional implementation manner, in the first aspect of the embodiments of the present invention, the preprocessing the captured environmental images on both sides of the vehicle to obtain a corresponding bird's-eye view includes:
根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像;According to the internal parameters and external parameters of the camera's camera device, perform distortion correction on the captured environmental images on both sides of the vehicle to obtain corresponding corrected images;
根据所述矫正图像的像素点,对所述矫正图像进行透视变换,以获得对应的鸟瞰视图。Perform perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
作为一种可选的实施方式,在本发明实施例第一方面中,在所述根据车辆的摄像装置的内部参数 和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像之前,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiments of the present invention, distortions are corrected for the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device, Before obtaining the corresponding corrected image, the method further includes:
获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;Obtain the internal and external parameters of the camera's camera device; the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the camera Device rotation matrix;
所述根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像,包括:According to the internal parameters and external parameters of the camera's camera device, the captured environmental images on both sides of the vehicle are subjected to distortion correction to obtain corresponding corrected images, including:
根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的矫正图像之间的第一对应关系;所述第一对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述矫正图像的像素点之间的对应关系;According to the internal parameter and the external parameter, determine a first correspondence between the environment images on both sides of the vehicle and corresponding corrected images; the first correspondence includes the captured environment on both sides of the vehicle Correspondence between pixels of the image and pixels of the corrected image;
将所述第一对应关系保存至第一查找表;Save the first correspondence to the first lookup table;
根据所述第一查找表,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得所述矫正图像;According to the first look-up table, perform distortion correction on the captured environmental images on both sides of the vehicle to obtain the corrected image;
所述根据所述矫正图像的像素点,对所述矫正图像进行透视变换,以获得对应的鸟瞰视图,包括:The performing perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view includes:
根据所述矫正图像的像素点,确定所述矫正图像和对应的鸟瞰视图之间的第二对应关系;所述第二对应关系包含所述矫正图像的像素点和所述鸟瞰视图的像素点之间的对应关系;According to the pixels of the corrected image, determine a second correspondence between the corrected image and the corresponding bird's-eye view; the second correspondence includes the pixels of the corrected image and the pixels of the bird's-eye view Correspondence between
将所述第二对应关系保存至第二查找表;Save the second correspondence to the second lookup table;
根据所述第二查找表,对所述矫正图像进行透视变换,以获得所述鸟瞰视图。According to the second lookup table, perform a perspective transformation on the corrected image to obtain the bird's-eye view.
作为一种可选的实施方式,在本发明实施例第一方面中,在所述对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图之前,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiments of the present invention, before the preprocessing the captured environmental images on both sides of the vehicle to obtain a corresponding bird's-eye view, the method further includes:
获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;Obtain the internal and external parameters of the camera's camera device; the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the camera Device rotation matrix;
以及,所述对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图,包括:And, the preprocessing of the environmental images on both sides of the captured vehicle to obtain a corresponding bird's-eye view includes:
根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的鸟瞰视图之间的第三对应关系;所述第三对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述鸟瞰视图的像素点之间的对应关系;According to the internal parameter and the external parameter, determine a third correspondence between the environment images on both sides of the vehicle and the corresponding bird's-eye view; the third correspondence includes the captured environment on both sides of the vehicle Correspondence between pixels of the image and pixels of the bird's-eye view;
将所述第三对应关系保存至第三查找表;Save the third correspondence to the third lookup table;
根据所述第三查找表,对拍摄到的所述车辆两侧的环境图像进行鸟瞰变换,以获得所述鸟瞰视图。According to the third lookup table, perform a bird's eye view transformation on the captured environment images on both sides of the vehicle to obtain the bird's eye view.
作为一种可选的实施方式,在本发明实施例第一方面中,在所述根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点之后,以及所述根据所述鸟瞰视图中的所述目标车位 角点的位置坐标,确定所述目标车位角点对应的真实位置坐标之前,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, after obtaining the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame, And before determining the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view, the method further includes:
检测所述目标车位框所框中的区域是否存在障碍物;Detecting whether there is an obstacle in the area framed by the target parking space frame;
如果所述目标车位框所框中的区域存在障碍物,标记所述目标车位框所框中的区域为不可停车位;If there is an obstacle in the area framed by the target parking space frame, mark the area framed by the target parking space frame as a non-parking space;
如果所述目标车位框所框中的区域不存在障碍物,执行所述根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标的步骤。If there is no obstacle in the area framed by the target parking space frame, the step of determining the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view is performed .
本发明实施例第二方面公开一种车位检测装置,包括:A second aspect of an embodiment of the present invention discloses a parking space detection device, including:
预处理单元,用于对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图;The pre-processing unit is used to pre-process the environment images on both sides of the vehicle to obtain the corresponding bird's-eye view;
第一检测单元,用于检测所述鸟瞰视图中的车位框和车位角点;A first detection unit, configured to detect a parking space frame and a parking space corner point in the bird's-eye view;
筛选单元,用于从所述鸟瞰视图中的车位框中筛选一个目标车位框;A screening unit for screening a target parking space frame from the parking space frame in the bird's-eye view;
获取单元,用于根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点;An obtaining unit, configured to obtain a target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame;
第一确定单元,用于根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标;A first determining unit, configured to determine the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view;
第二确定单元,用于根据所述目标车位角点对应的真实位置坐标,确定所述目标车位框对应的目标车位。The second determining unit is configured to determine the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the target parking space corner point.
作为一种可选的实施方式,在本发明实施例第二方面中,所述预处理单元包括:As an optional implementation manner, in the second aspect of the embodiments of the present invention, the preprocessing unit includes:
畸变矫正子单元,用于根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像;The distortion correction subunit is used to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal parameters and external parameters of the camera device of the vehicle to obtain corresponding corrected images;
透视变换子单元,用于根据所述矫正图像的像素点,对所述矫正图像进行透视变换,以获得对应的鸟瞰视图。The perspective transformation subunit is configured to perform perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
作为一种可选的实施方式,在本发明实施例第二方面中,所述车位检测装置还包括:As an optional implementation manner, in the second aspect of the embodiments of the present invention, the parking space detection device further includes:
第一参数获取单元,用于在所述畸变矫正子单元根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像之前,获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;The first parameter acquisition unit is used to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device of the distortion correction sub-unit to obtain the corresponding corrected image To obtain the internal and external parameters of the camera's camera device; the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the The rotation matrix of the camera device;
所述畸变矫正子单元包括:The distortion correction subunit includes:
第一确定模块,用于根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的矫正图像之间的第一对应关系;所述第一对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述矫正图像的像素点之间的对应关系;A first determining module, configured to determine the first correspondence between the environmental images on both sides of the vehicle and the corresponding corrected images based on the internal parameters and the external parameters; the first correspondence includes the captured Correspondence between pixels of the environmental images on both sides of the vehicle and pixels of the corrected image;
第一保存模块,用于将所述第一对应关系保存至第一查找表;A first saving module, configured to save the first correspondence to the first lookup table;
畸变矫正模块,用于根据所述第一查找表,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得所述矫正图像;A distortion correction module, configured to perform distortion correction on the captured environmental images on both sides of the vehicle according to the first lookup table to obtain the corrected image;
所述透视变换子单元包括:The perspective transformation subunit includes:
第二确定模块,用于根据所述矫正图像的像素点,确定所述矫正图像和对应的鸟瞰视图之间的第二对应关系;所述第二对应关系包含所述矫正图像的像素点和所述鸟瞰视图的像素点之间的对应关系;A second determining module, configured to determine a second correspondence between the corrected image and the corresponding bird's-eye view according to the pixels of the corrected image; the second correspondence includes the pixels of the corrected image and all The correspondence between the pixels of the bird's-eye view;
第二保存模块,用于将所述第二对应关系第二查找表;A second saving module, configured to store the second correspondence relationship in a second lookup table;
透视变换模块,用于根据所述第二查找表,对所述矫正图像进行透视变换,以获得所述鸟瞰视图。The perspective transformation module is configured to perform perspective transformation on the corrected image according to the second lookup table to obtain the bird's-eye view.
作为一种可选的实施方式,在本发明实施例第二方面中,所述车位检测装置还包括:As an optional implementation manner, in the second aspect of the embodiments of the present invention, the parking space detection device further includes:
第二参数获取单元,用于在所述预处理单元对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图之前,获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;A second parameter acquisition unit, configured to acquire the internal parameters and external parameters of the camera device of the vehicle before the preprocessing unit preprocesses the captured environment images on both sides of the vehicle to obtain the corresponding bird's-eye view; The internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the rotation matrix of the camera device;
所述预处理单元包括:The pre-processing unit includes:
确定子单元,用于根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的鸟瞰视图之间的第三对应关系;所述第三对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述鸟瞰视图的像素点之间的对应关系;A determination subunit, configured to determine a third correspondence between the environmental images on both sides of the vehicle and the corresponding bird's-eye view based on the internal parameters and the external parameters; the third correspondence includes the A correspondence between pixels of environmental images on both sides of the vehicle and pixels of the bird's-eye view;
保存子单元,用于将所述第三对应关系保存至第三查找表;A saving subunit, configured to save the third correspondence to a third lookup table;
鸟瞰变换子单元,用于根据所述第三查找表,对拍摄到的所述车辆两侧的环境图像进行鸟瞰变换,以获得所述鸟瞰视图。The bird's eye view transformation subunit is configured to perform bird's eye view transformation on the captured environment images on both sides of the vehicle according to the third lookup table to obtain the bird's eye view.
作为一种可选的实施方式,在本发明实施例第二方面中,所述车位检测装置还包括:As an optional implementation manner, in the second aspect of the embodiments of the present invention, the parking space detection device further includes:
第二检测单元,用于在所述获取单元根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点之后,以及所述第一确定单元根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标之前,检测所述目标车位框所框中的区域是否存在障碍物;The second detection unit is used for the acquisition unit to acquire the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame, and the first determination unit according to the Detecting the position coordinates of the target parking space corner point in the bird's-eye view, before determining the real position coordinates corresponding to the target parking space corner point, detecting whether there is an obstacle in the area within the target parking space frame;
标记单元,用于在所述第二检测单元检测到所述目标车位框所框中的区域存在障碍物时,标记所述目标车位框所框中的区域为不可停车位;A marking unit, configured to mark the area in the target parking space frame as a non-parking space when the second detection unit detects that there is an obstacle in the area in the target parking space frame;
所述第一确定单元,具体用于在所述第二检测单元检测到所述目标车位框所框中的区域不存在障碍物时,根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位 置坐标。The first determining unit is specifically configured to determine the position of the corner point of the target parking space in the bird's-eye view when the second detection unit detects that there is no obstacle in the area framed by the target parking space frame Coordinates, determine the real position coordinates corresponding to the target parking space corner point.
本发明实施例第三方面公开一种车位检测装置,包括:A third aspect of an embodiment of the present invention discloses a parking space detection device, including:
存储有可执行程序代码的存储器;Memory storing executable program code;
与所述存储器耦合的处理器;A processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明实施例第一方面公开的一种基于视觉的车位检测方法。The processor calls the executable program code stored in the memory to execute a vision-based parking space detection method disclosed in the first aspect of the embodiments of the present invention.
本发明实施例第四方面公开一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本发明实施例第一方面公开的一种基于视觉的车位检测方法。A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium that stores a computer program, wherein the computer program causes the computer to execute a vision-based parking space detection method disclosed in the first aspect of the embodiment of the present invention.
本发明实施例第五方面公开一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面的任意一种方法的部分或全部步骤。A fifth aspect of the embodiments of the present invention discloses a computer program product. When the computer program product runs on a computer, the computer program product is caused to perform part or all of the steps of the method of the first aspect.
本发明实施例第六方面公开一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行第一方面的任意一种方法的部分或全部步骤。A sixth aspect of the embodiments of the present invention discloses an application publishing platform for publishing a computer program product, wherein when the computer program product runs on a computer, the computer is allowed to execute any of the first aspect Part or all steps of a method.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图,检测鸟瞰视图中的车位框和车位角点并从该鸟瞰视图中的车位框中筛选一个目标车位框,根据该目标车位框,从车位角点中获取该目标车位框上的目标车位角点,根据鸟瞰视图中的目标车位角点的位置坐标,确定目标车位角点对应的真实位置坐标,根据目标车位角点对应的真实位置坐标,确定目标车位框对应的目标车位。可见,实施本发明实施例,能够提高车位检测的准确度,从而提高车位的识别率。In the embodiment of the present invention, the environmental images on both sides of the captured vehicle are pre-processed to obtain a corresponding bird's-eye view, the parking space frame and the parking space corner point in the bird's-eye view are detected, and one is selected from the parking space frame in the bird's-eye view The target parking space frame, according to the target parking space frame, the target parking space corner point on the target parking space frame is obtained from the parking space corner point, and the real position coordinates corresponding to the target parking space corner point are determined according to the position coordinates of the target parking space corner point in the bird's eye view , According to the real position coordinates corresponding to the corners of the target parking space, determine the target parking space corresponding to the target parking space frame. It can be seen that the implementation of the embodiments of the present invention can improve the accuracy of parking space detection, thereby improving the recognition rate of parking spaces.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present invention, the drawings required in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present invention. Those of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1是本发明实施例公开的一种基于视觉的车位检测方法的流程示意图;1 is a schematic flowchart of a vision-based parking space detection method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种基于视觉的车位检测方法的流程示意图;2 is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的又一种基于视觉的车位检测方法的流程示意图;3 is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的一种车位检测装置的结构示意图;4 is a schematic structural diagram of a parking space detection device disclosed in an embodiment of the present invention;
图5是本发明实施例公开的另一种车位检测装置的结构示意图;5 is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention;
图6是本发明实施例公开的又一种车位检测装置的结构示意图;6 is a schematic structural diagram of yet another parking space detection device disclosed in an embodiment of the present invention;
图7是本发明实施例公开的再一种车位检测装置的结构示意图;7 is a schematic structural diagram of yet another parking space detection device disclosed in an embodiment of the present invention;
图8是本发明实施例公开的一种车位检测过程的应用示例图。FIG. 8 is an application example diagram of a parking space detection process disclosed in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同的对象,而不是用于描述特定顺序。本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms “first”, “second”, “third”, and “fourth” in the description and claims of the present invention are used to distinguish different objects, not to describe specific order. The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions, for example, processes, methods, systems, products, or devices that include a series of steps or units are not necessarily limited to clearly Those steps or units are listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or equipment.
本发明实施例公开了一种基于视觉的车位检测方法及装置,能够提高车位检测的准确度,从而提高车位的识别率。以下结合附图进行详细描述。The embodiment of the invention discloses a vision-based parking space detection method and device, which can improve the accuracy of the parking space detection, thereby improving the recognition rate of the parking space. The following is a detailed description with reference to the drawings.
实施例一Example one
请参阅图1,图1是本发明实施例公开的一种基于视觉的车位检测方法的流程示意图。如图1所示,该方法可以包括以下步骤。Please refer to FIG. 1, which is a schematic flowchart of a vision-based parking space detection method disclosed in an embodiment of the present invention. As shown in FIG. 1, the method may include the following steps.
101、车位检测装置对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图。101. The parking space detection device preprocesses the captured environmental images on both sides of the vehicle to obtain a corresponding bird's-eye view.
本发明实施例中,车位检测装置通过设置在车辆两侧的B柱上摄像装置对车辆两侧的环境进行拍摄,以获得车辆两侧的环境图像,请一并参阅图8,如图8所示,图8是本发明实施例公开的一种车位检测过程的应用示例图,车辆在进行车位检测时,开启设置在车辆两侧的B柱上的摄像装置,摄像装置对车辆两侧的环境进行拍摄,从而获得车辆两侧的环境图像。In the embodiment of the present invention, the parking space detection device photographs the environment on both sides of the vehicle through the B-pillar cameras installed on both sides of the vehicle to obtain the environmental images on both sides of the vehicle, please refer to FIG. 8 together, as shown in FIG. 8 FIG. 8 is an application example diagram of a parking space detection process disclosed in an embodiment of the present invention. When a vehicle performs a parking space detection, a camera device disposed on a B-pillar on both sides of the vehicle is turned on. The camera device detects the environment on both sides of the vehicle. Shoot to obtain environmental images on both sides of the vehicle.
102、车位检测装置检测鸟瞰视图中的车位框和车位角点。102. The parking space detection device detects the parking space frame and the parking space corner point in the bird's-eye view.
本发明实施例中,车位检测装置可以利用深度学习算法检测鸟瞰视图中的车位框和车位角点,本发明实施例不作限定。In the embodiment of the present invention, the parking space detection device may use a deep learning algorithm to detect the parking space frame and the parking space corner point in the bird's-eye view, and the embodiment of the present invention is not limited.
作为一种可选的实施方式,车位检测装置可以采集大量的车位图形样本,根据车位图形样本训练 得到车位模型,然后将上述鸟瞰视图导入该车位模型进行卷积运算以生成多种特征,根据预设特征从多种特征中检测得到车位框和车位角点。实施上述实施方式,利用深度学习算法来检测鸟瞰视图中的车位框和车位角点,能够提高检测的精度。As an optional embodiment, the parking space detection device can collect a large number of parking space graphic samples, train to obtain a parking space model based on the parking space graphic samples, and then import the above bird's-eye view into the parking space model to perform convolution operations to generate multiple features. Set the features to detect the parking space frame and parking space corner points from various features. By implementing the above embodiment, the deep learning algorithm is used to detect the parking space frame and the parking space corner point in the bird's-eye view, which can improve the detection accuracy.
进一步地,作为一种可选的实施方式,车位检测装置可以对特征进行分类,比如将车位角点分为0类,将车位框分为1类,然后将上述鸟瞰视图导入该车位模型进行卷积运算以生成多种特征,将其中的0类提取出来作为车位角点以及将其中的1类提取出来作为车位框。实施上述实施方式,将车位角点分为0类以及将车位框分为1类,能够提高计算机的识别速度,从而提高车位的检测效率。Further, as an optional embodiment, the parking space detection device may classify the features, for example, classify the parking space corner points into 0 categories, and classify the parking space frames into 1 category, and then import the above bird's-eye view into the parking space model for volume Product operation is used to generate various features, and the category 0 is extracted as a parking corner and the category 1 is extracted as a parking frame. By implementing the above embodiment, the parking space corner points are divided into 0 categories and the parking space frame is divided into 1 categories, which can increase the recognition speed of the computer and thereby improve the detection efficiency of the parking spaces.
103、车位检测装置从鸟瞰视图中的车位框中筛选一个目标车位框。103. The parking space detection device selects a target parking space frame from the parking space frame in the bird's-eye view.
作为一种可选的实施方式,步骤103车位检测装置从鸟瞰视图中的车位框中筛选一个目标车位框,包括:As an optional implementation manner, in step 103, the parking space detection device filters a target parking space frame from the parking space frame in the bird's-eye view, including:
车位检测装置将鸟瞰视图中的各个车位框的宽度进行排序并统计各个车位框的宽度的排名;The parking space detection device sorts the width of each parking space frame in the bird's-eye view and counts the ranking of the width of each parking space frame;
车位检测装置将排名第一对应的车位框作为目标车位框。The parking space detection device uses the first ranked parking space frame as the target parking space frame.
实施上述实施方式,筛选出宽度最大的车位框作为目标车位框,能够提高泊车的安全性。By implementing the above embodiment, the parking space frame with the largest width is selected as the target parking space frame, and the safety of parking can be improved.
104、车位检测装置根据目标车位框,从车位角点中获取该目标车位框上的目标车位角点。104. The parking space detection device obtains the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame.
本发明实施例中,车位检测装置可以利用传统的图像处理方法从鸟瞰视图中的车位框中筛选一个目标车位框,并剔除除了该目标车位框上的目标车位角点外的其他车位角点。In the embodiment of the present invention, the parking space detection device may use a conventional image processing method to filter a target parking space frame from the parking space frame in the bird's-eye view, and remove other parking space corner points except for the target parking space corner point on the target parking space frame.
本发明实施例中,上述目标车位框上的目标车位角点的数量至少为两个,本发明实施例不作限定。In the embodiment of the present invention, the number of target parking space corner points on the target parking space frame is at least two, which is not limited in the embodiment of the present invention.
105、车位检测装置根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标。105. The parking space detection device determines the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view.
本发明实施例中,公式(1)表达了鸟瞰视图的图像坐标系和世界坐标系之间的映射关系,车位检测装置可以根据公式(1),将鸟瞰视图中的目标车位角点的位置坐标转换成世界坐标系中目标车位角点的位置坐标,并将世界坐标系中目标车位角点的位置坐标作为目标车位角点对应的真实位置坐标,公式(1)如下所示:In the embodiment of the present invention, formula (1) expresses the mapping relationship between the image coordinate system of the bird's-eye view and the world coordinate system, and the parking space detection device may, according to formula (1), convert the position coordinates of the target parking space corner point in the bird's-eye view Convert to the position coordinates of the target parking space corner point in the world coordinate system, and take the position coordinates of the target parking space corner point in the world coordinate system as the real position coordinates corresponding to the target parking space corner point, formula (1) is as follows:
Figure PCTCN2019093530-appb-000001
Figure PCTCN2019093530-appb-000001
其中,(X w,Y w,Z w)为世界坐标系的坐标,(x,y)为鸟瞰视图的图像坐标系的坐标,Z c为摄像装置相对于地面的高度,f为摄像装置的焦距,R为摄像装置的旋转矩阵。 Where (X w , Y w , Z w ) is the coordinate of the world coordinate system, (x, y) is the coordinate of the image coordinate system of the bird's eye view, Z c is the height of the camera relative to the ground, and f is the camera's height Focal length, R is the rotation matrix of the camera.
106、车位检测装置根据目标车位角点对应的真实位置坐标,确定目标车位框对应的目标车位。106. The parking space detection device determines the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the target parking space corner point.
本发明实施例中,车位检测装置根据目标车位角点对应的真实位置坐标,确定目标车位角点所构成的区域的中心位置,将目标车位角点所构成的区域的中心位置作为目标车位的中心位置,以及将目标车位角点置于目标车位的拐角处。In the embodiment of the present invention, the parking space detection device determines the center position of the area formed by the target parking space corner point according to the real position coordinates corresponding to the target parking space corner point, and takes the center position of the area formed by the target parking space corner point as the center of the target parking space Location, and place the corner of the target parking space at the corner of the target parking space.
可见,实施图1所描述的方法,通过拍摄获得车辆两侧的环境图像,然后将该环境图像转换成鸟瞰视图,从鸟瞰视图中的车位框中筛选一个目标车位框以及该目标车位框上的目标车位角点,通过计算获得目标车位角点对应的真实位置坐标并确定目标车位框对应的目标车位,能够提高车位检测的准确度,从而提高车位的识别率。It can be seen that by implementing the method described in FIG. 1, the environmental images on both sides of the vehicle are obtained by shooting, and then the environmental images are converted into a bird's-eye view, and a target parking space frame and the target parking space frame are selected from the parking space frame in the bird's-eye view. For the target parking space corner point, calculating the real position coordinates corresponding to the target parking space corner point and determining the target parking space corresponding to the target parking space frame can improve the accuracy of the parking space detection, thereby improving the recognition rate of the parking space.
实施例二Example 2
请参阅图2,图2是本发明实施例公开的另一种基于视觉的车位检测方法的流程示意图。如图2所示,该方法可以包括以下步骤。Please refer to FIG. 2, which is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps.
201、车位检测装置获取车辆的摄像装置的内部参数和外部参数。201. The parking space detection device acquires internal parameters and external parameters of the camera device of the vehicle.
本发明实施例中,上述内部参数至少包括摄像装置的焦距、像素尺寸和畸变参数,上述外部参数至少包括摄像装置相对于地面的高度和摄像装置的旋转矩阵,本发明实施例不作限定。In the embodiment of the present invention, the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device, and the external parameters include at least the height of the camera device relative to the ground and the rotation matrix of the camera device, which is not limited in the embodiment of the present invention.
202、车位检测装置根据车辆的摄像装置的内部参数和外部参数,对拍摄到的车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像。202. The parking space detection device performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal parameters and external parameters of the camera's camera device to obtain corresponding corrected images.
本发明实施例中,因为图像畸变会影响车位框和车位角点的检测,从而降低了车位检测精度,因此在检测车位框和车位角点之前需要先进行图像的畸变矫正。本发明实施例中,车位检测装置根据车辆的摄像装置的内部参数和外部参数,对拍摄到的车辆两侧的环境图像进行畸变矫正所采取的方法可以为张正友棋盘格标定法,本发明实施例不作限定。In the embodiment of the present invention, because the image distortion affects the detection of the parking space frame and the parking space corner point, thereby reducing the detection accuracy of the parking space, the image distortion correction needs to be performed before detecting the parking space frame and the parking space corner point. In the embodiment of the present invention, the parking space detection device can correct the distortion of the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device, which can be Zhang Zhengyou's checkerboard calibration method, an embodiment of the present invention Not limited.
作为一种可选的实施方式,步骤202车位检测装置根据车辆的摄像装置的内部参数和外部参数,对拍摄到的车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像,包括:As an optional embodiment, in step 202, the parking space detection device performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device to obtain corresponding corrected images, including:
车位检测装置根据内部参数和外部参数,确定车辆两侧的环境图像和对应的矫正图像之间的第一对应关系;The parking space detection device determines the first correspondence between the environmental images on both sides of the vehicle and the corresponding corrected images based on the internal and external parameters;
车位检测装置将第一对应关系保存至第一查找表;The parking space detection device saves the first correspondence to the first look-up table;
车位检测装置根据第一查找表,对拍摄到的车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像。The parking space detection device performs distortion correction on the captured environmental images on both sides of the vehicle according to the first lookup table to obtain the corresponding corrected image.
本发明实施例中,第一对应关系包含拍摄到的车辆两侧的环境图像的像素点和矫正图像的像素点之间的对应关系。In the embodiment of the present invention, the first correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the corrected image.
本发明实施例中,摄像装置拍摄得到的图像会产生一定程度的畸变,根据摄像装置的内部参数和外部参数可以计算出纠正这种畸变程度的对应关系,也就是说,车位检测装置获取摄像装置的焦距f、像素尺寸(d x×d y)和畸变参数k=[k 1,k 2],以及,摄像装置相对于地面的高度Z c和摄像装置的旋转矩阵R,然后计算得到上述对应关系,其中,上述对应关系可以用公式(2)表示: In the embodiment of the present invention, the image captured by the camera device will have a certain degree of distortion, and the corresponding relationship to correct this degree of distortion can be calculated according to the internal parameters and external parameters of the camera device, that is, the parking space detection device acquires the camera device Focal length f, pixel size (d x ×d y ) and distortion parameter k=[k 1 , k 2 ], and the height Z c of the camera relative to the ground and the rotation matrix R of the camera, and then calculate the corresponding Relationship, where the above corresponding relationship can be expressed by formula (2):
Figure PCTCN2019093530-appb-000002
Figure PCTCN2019093530-appb-000002
其中,某点在车辆两侧的环境的世界坐标系中坐标为(X w,Y w,Z w),在车辆两侧的环境的图像坐标系中的坐标为(x,y),在车辆两侧的环境图像的像素坐标系中的坐标为(u,v),在矫正图像的像素坐标系中的坐标为(u′,v′),点(u 0,v 0)是摄像装置光轴与图像平面的交点,即主点,Z c为摄像装置相对于地面的高度,d x为像素在x轴方向上的物理尺寸,d y为像素在y轴方向上的物理尺寸,k 1、k 2分别为畸变参数k的前两阶,f为摄像装置的焦距,R为摄像装置的旋转矩阵。 Among them, a coordinate in the world coordinate system of the environment on both sides of the vehicle is (X w , Y w , Z w ), and the coordinate in the image coordinate system of the environment on both sides of the vehicle is (x, y), in the vehicle The coordinates in the pixel coordinate system of the environmental images on both sides are (u, v), the coordinates in the pixel coordinate system of the corrected image are (u′, v′), and the point (u 0 , v 0 ) is the light of the camera device The intersection of the axis and the image plane, ie the principal point, Z c is the height of the camera relative to the ground, d x is the physical size of the pixel in the x-axis direction, d y is the physical size of the pixel in the y-axis direction, k 1 , K 2 are the first two orders of the distortion parameter k, f is the focal length of the camera, and R is the rotation matrix of the camera.
本发明实施例中,车位检测装置可以根据公式(1),将世界坐标系中的车辆两侧的环境中的坐标点(X w,Y w,Z w)转化成像素坐标系中的车辆两侧的环境图像的像素坐标点(u,v),再将图像中的每一个像素坐标点(u,v)转化成矫正图像中的对应像素点(u′,v′),并将车辆两侧的环境图像中的每一个像素点(u,v)及矫正图像中的对应像素点(u′,v′)保存在第一查找表中,后续需要进行畸变矫正时,直接根据第一查找表即可找到车辆两侧的环境图像中的每一个像素点(u,v)在矫正图像中的对应像素点(u′,v′),然后对车辆两侧的环境图像进行畸变矫正,从而获得矫正图像。 In the embodiment of the present invention, the parking space detection device may convert the coordinate points (X w , Y w , Z w ) in the environment on both sides of the vehicle in the world coordinate system into the vehicle coordinates in the pixel coordinate system according to formula (1) The pixel coordinate points (u, v) of the environmental image on the side, and then convert each pixel coordinate point (u, v) in the image into the corresponding pixel point (u′, v′) in the corrected image, and Each pixel point (u, v) in the environmental image on the side and the corresponding pixel point (u′, v′) in the corrected image are stored in the first lookup table. Table can find the corresponding pixel point (u′, v′) of each pixel (u, v) in the environmental image on both sides of the vehicle, and then perform distortion correction on the environmental image on both sides of the vehicle, thus Obtain a corrected image.
203、车位检测装置根据矫正图像的像素点,对矫正图像进行透视变换,以获得对应的鸟瞰视图。203. The parking space detection device performs perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
本发明实施例中,鸟瞰视图为图像对应的实际环境从上往下看得到的视图,因为以鸟瞰视图呈现更有利于车位检测装置对车位框和车位角点的定位,因此在检测车位框和车位角点之前需要将矫正图像转化成鸟瞰视图。In the embodiment of the present invention, the bird's-eye view is a view from the top to the bottom of the actual environment corresponding to the image, because the bird's-eye view view is more conducive to the positioning of the parking space frame and the parking space corner by the parking space detection device. Before the corner of the parking space, the corrected image needs to be converted into a bird's eye view.
作为一种可选的实施方式,步骤203车位检测装置根据矫正图像的像素点,对矫正图像进行透视变换,以获得对应的鸟瞰视图,包括:As an optional embodiment, in step 203, the parking space detection device performs perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view, including:
车位检测装置根据矫正图像的像素点,确定矫正图像和对应的鸟瞰视图之间的第二对应关系;The parking space detection device determines the second correspondence between the corrected image and the corresponding bird's-eye view according to the pixels of the corrected image;
车位检测装置将第二对应关系保存至第二查找表;The parking space detection device saves the second correspondence to the second look-up table;
车位检测装置根据第二查找表,对矫正图像进行透视变换,以获得对应的鸟瞰视图。The parking space detection device performs perspective transformation on the corrected image according to the second lookup table to obtain a corresponding bird's-eye view.
本发明实施例中,第二对应关系包含矫正图像的像素点和鸟瞰视图的像素点之间的对应关系。In the embodiment of the present invention, the second correspondence includes the correspondence between the pixels of the corrected image and the pixels of the bird's-eye view.
本发明实施例中,车位检测装置可以根据公式(3)将矫正图像在像素坐标系中的二维坐标(u′,v′)映射到世界坐标系中的三维坐标(X w,Y w,Z w),再除以三维坐标中Z w的值以映射回之间的二维空间得到坐标(u″,v″),从而获得鸟瞰视图,公式(3)如下所示: In the embodiment of the present invention, the parking space detection device may map the two-dimensional coordinates (u′, v′) of the corrected image in the pixel coordinate system to the three-dimensional coordinates (X w , Y w ) in the world coordinate system according to formula (3) Z w ), divided by the value of Z w in three-dimensional coordinates to map back to the two-dimensional space between to get the coordinates (u″, v″), so as to obtain a bird’s-eye view, formula (3) is as follows:
Figure PCTCN2019093530-appb-000003
Figure PCTCN2019093530-appb-000003
其中,(u′,v′)为矫正图像的像素坐标系的坐标,(X w,Y w,Z w)为点(u′,v′)在世界坐标系中的三维坐标,(u″,v″)为鸟瞰视图的像素坐标系的坐标,
Figure PCTCN2019093530-appb-000004
为变换矩阵,其中,
Figure PCTCN2019093530-appb-000005
为图像线性变换,[a 13 a 23] T为图像透视变换,[a 31 a 32]为图像平移,本发明实施例中,给定变换矩阵,即可对矫正图像进行透视变换,从而获得鸟瞰视图。
Among them, (u′, v′) is the coordinate of the pixel coordinate system of the corrected image, (X w , Y w , Z w ) is the three-dimensional coordinate of the point (u′, v′) in the world coordinate system, (u″ , V″) are the coordinates of the pixel coordinate system of the bird’s-eye view,
Figure PCTCN2019093530-appb-000004
Is the transformation matrix, where,
Figure PCTCN2019093530-appb-000005
It is the linear transformation of the image, [a 13 a 23 ] T is the perspective transformation of the image, and [a 31 a 32 ] is the image translation. In the embodiment of the present invention, given the transformation matrix, the perspective transformation of the corrected image can be performed to obtain a bird's eye view view.
本发明实施例中,车位检测装置可以根据公式(2),将像素坐标系中的矫正图像中的像素坐标点(u′,v′)转化成像素坐标系中的鸟瞰视图的像素坐标点(u″,v″),并将矫正图像中的每一个像素点(u′,v′)及鸟瞰视图中的对应像素点(u″,v″)保存在第二查找表中,后续需要对矫正图像进行透视变换时,直接根据第二查找表即可找到矫正图像中的每一个像素点(u′,v′)在鸟瞰视图中的对应像素点(u″,v″),然后对矫正图像进行透视变换,从而获得鸟瞰视图。In the embodiment of the present invention, the parking space detection device may convert the pixel coordinate points (u′, v′) in the corrected image in the pixel coordinate system to the pixel coordinate points of the bird's-eye view in the pixel coordinate system according to formula (2) ( u″, v″), and save each pixel point (u′, v′) in the corrected image and the corresponding pixel point (u″, v″) in the bird's-eye view in the second lookup table. When performing perspective transformation on the corrected image, you can directly find the corresponding pixel (u″, v″) of each pixel (u′, v′) in the bird’s-eye view of the corrected image according to the second look-up table, and then correct the The image undergoes perspective transformation to obtain a bird's eye view.
204、车位检测装置检测鸟瞰视图中的车位框和车位角点。204. The parking space detection device detects the parking space frame and the parking space corner point in the bird's-eye view.
205、车位检测装置从鸟瞰视图中的车位框中筛选一个目标车位框。205. The parking space detection device selects a target parking space frame from the parking space frame in the bird's-eye view.
206、车位检测装置根据目标车位框,从车位角点中获取该目标车位框上的目标车位角点。206. The parking space detection device obtains the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame.
207、车位检测装置检测目标车位框所框中的区域是否存在障碍物;如果是,执行步骤208;如果否,执行步骤209。207. The parking space detection device detects whether there is an obstacle in the area framed by the target parking space frame; if yes, step 208 is performed; if not, step 209 is performed.
作为一种可选的实施方式,车位检测装置可以在目标车位框的边缘选取多个区域并检测这多个区域的边缘密度,将边缘密度最大对应的区域的边缘密度作为目标边缘密度,接着判断目标边缘密度是否 大于指定阈值,如果是,表明该区域存在障碍物,车位检测装置执行步骤208标记目标车位框所框中的区域为不可停车位;如果否,车位检测装置执行步骤209根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标。实施上述实施方式,可以判断车位检测装置筛选出的目标车位框所框中的区域内是否存在障碍物,避免泊车过程中碰撞到障碍物,能够提高泊车安全性。As an optional embodiment, the parking space detection device may select multiple areas at the edge of the target parking space frame and detect the edge density of the multiple areas, and use the edge density of the area corresponding to the maximum edge density as the target edge density, and then determine Whether the target edge density is greater than the specified threshold, if yes, it indicates that there is an obstacle in the area, the parking space detection device performs step 208 to mark the area in the target parking space frame as a non-parking space; if not, the parking space detection device performs step 209 according to the bird's eye view The position coordinates of the target parking space corner point are determined to determine the true position coordinates corresponding to the target parking space corner point. By implementing the above embodiment, it can be determined whether there is an obstacle in the area framed by the target parking space frame selected by the parking space detection device, to avoid collision with the obstacle during the parking process, and the parking safety can be improved.
208、车位检测装置标记目标车位框所框中的区域为不可停车位。208. The parking space detection device marks the area within the target parking space frame as a non-parking space.
本发明实施例中,如果目标车位框所框中的区域内存在障碍物,表明目标车位框对应的车位不能容纳车辆泊入,车位检测装置标记该目标车位所框中的区域为不可停车位。In the embodiment of the present invention, if there is an obstacle in the area framed by the target parking space frame, it indicates that the parking space corresponding to the target parking space frame cannot accommodate the parking of the vehicle, and the parking space detection device marks the area framed by the target parking space as a non-parking space.
209、车位检测装置根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标。209. The parking space detection device determines the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view.
210、车位检测装置根据目标车位角点对应的真实位置坐标,确定目标车位框对应的目标车位。210. The parking space detection device determines the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the corner of the target parking space.
可见,与图1所描述的方法相比,实施图2所描述的方法,在确定目标车位角点后,车位检测装置检测目标车位框所框中的区域是否存在障碍物,如果是,表明该车位不可停,车位检测装置标记该目标车位框所圈中的区域为不可停车位,能够避免车辆泊车过程中撞到障碍物,保证泊车安全。此外,实施图2所描述的方法,通过携带畸变参数的第一查找表对拍摄到的车辆两侧的环境图像进行畸变矫正获得矫正图像,再通过携带透视变换系数的第二查找表对矫正图像进行透视变换获得鸟瞰视图,能够提高鸟瞰视图的生成速度,提高车位检测效率。It can be seen that, compared with the method described in FIG. 1, after implementing the method described in FIG. 2, after determining the target parking space corner point, the parking space detection device detects whether there is an obstacle in the area within the target parking space frame, and if so, it indicates that The parking space cannot be stopped, and the parking space detection device marks the area enclosed by the target parking space frame as a non-parking space, which can prevent the vehicle from hitting obstacles during parking and ensure parking safety. In addition, the method described in FIG. 2 is implemented, and the first and second look-up tables carrying distortion parameters are used to perform distortion correction on the captured environmental images on both sides of the vehicle to obtain corrected images, and then the second look-up tables carrying perspective transformation coefficients are used to correct the images Performing perspective transformation to obtain a bird's-eye view can increase the generation speed of bird's-eye view and improve the detection efficiency of parking spaces.
实施例三Example Three
请参阅图3,图3是本发明实施例公开的又一种基于视觉的车位检测方法的流程示意图。如图3所示,该方法可以包括以下步骤。Please refer to FIG. 3, which is a schematic flowchart of another vision-based parking space detection method disclosed in an embodiment of the present invention. As shown in FIG. 3, the method may include the following steps.
301、车位检测装置获取车辆的摄像装置的内部参数和外部参数。301. The parking space detection device acquires the internal parameters and external parameters of the camera device of the vehicle.
302、车位检测装置根据内部参数和外部参数,确定车辆两侧的环境图像和对应的鸟瞰视图之间的第三对应关系。302. The parking space detection device determines the third correspondence between the environmental images on both sides of the vehicle and the corresponding bird's-eye view based on the internal parameters and the external parameters.
本发明实施例中,第三对应关系包含拍摄到的车辆两侧的环境图像的像素点和鸟瞰视图的像素点之间的对应关系。In the embodiment of the present invention, the third correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the bird's-eye view.
303、车位检测装置将第三对应关系保存至第三查找表。303. The parking space detection device saves the third correspondence to the third lookup table.
304、车位检测装置根据第三查找表,对拍摄到的车辆两侧的环境图像进行鸟瞰变换,以获得对应的鸟瞰视图。304. The parking space detection device performs bird's eye view transformation on the captured environment images on both sides of the vehicle according to the third lookup table to obtain a corresponding bird's eye view.
本发明实施例中,车位检测装置获取摄像装置的焦距f、像素尺寸(d x×d y)和畸变参数 k=[k 1,k 2],以及,摄像装置相对于地面的高度Z c和摄像装置的旋转矩阵R,然后可以结合上述的公式(2)和公式(3)将像素坐标系中的车辆两侧的环境图像的像素坐标点(u,v)转化成像素坐标系中的鸟瞰视图的像素坐标点(u″,v″),并将车辆两侧的环境图像中的每一个像素点(u,v)及鸟瞰视图中的对应像素点(u″,v″)保存在第三查找表中,后续需要对车辆两侧的环境图像进行鸟瞰变换时,直接根据第三查找表即可找到车辆两侧的环境图像中的每一个像素点(u,v)在鸟瞰视图中的对应像素点(u″,v″),然后对车辆两侧的环境图像进行鸟瞰变换,从而获得鸟瞰视图。 In the embodiment of the present invention, the parking space detection device acquires the focal length f, pixel size (d x ×d y ) and distortion parameter k = [k 1 , k 2 ] of the camera device, and the height of the camera device relative to the ground Z c and The rotation matrix R of the camera device can then be combined with the above formula (2) and formula (3) to convert the pixel coordinate points (u, v) of the environmental images on both sides of the vehicle in the pixel coordinate system into a bird's eye view in the pixel coordinate system The pixel coordinate points of the view (u″, v″), and save each pixel point (u, v) in the environmental images on both sides of the vehicle and the corresponding pixel point (u″, v″) in the bird’s eye view in the first In the three lookup tables, when it is necessary to perform a bird's eye view transformation on the environmental images on both sides of the vehicle, each pixel point (u, v) in the environmental images on both sides of the vehicle in the bird's eye view can be found directly according to the third lookup table Corresponding to pixel points (u″, v″), and then performing a bird's eye view transformation on the environment images on both sides of the vehicle, thereby obtaining a bird's eye view.
305、车位检测装置检测鸟瞰视图中的车位框和车位角点。305. The parking space detection device detects the parking space frame and the parking space corner point in the bird's-eye view.
306、车位检测装置从鸟瞰视图中的车位框中筛选一个目标车位框。306. The parking space detection device selects a target parking space frame from the parking space frame in the bird's-eye view.
307、车位检测装置根据目标车位框,从车位角点中获取该目标车位框上的目标车位角点。307. The parking space detection device obtains the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame.
308、车位检测装置检测目标车位框所框中的区域是否存在障碍物;如果是,执行步骤309;如果否,执行步骤310。308. The parking space detection device detects whether there is an obstacle in the area framed by the target parking space frame; if yes, step 309 is performed; if not, step 310 is performed.
309、车位检测装置标记目标车位框所框中的区域为不可停车位。309. The parking space detection device marks the area within the target parking space frame as a non-parking space.
310、车位检测装置根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标。310. The parking space detection device determines the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view.
311、车位检测装置根据目标车位角点对应的真实位置坐标,确定目标车位框对应的目标车位。311. The parking space detection device determines the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the corner of the target parking space.
可见,与图1所描述的方法相比,实施图3所描述的方法,在确定目标车位角点后,车位检测装置检测目标车位框所框中的区域是否存在障碍物,如果是,表明该车位不可停,车位检测装置标记该目标车位框所圈中的区域为不可停车位,能够避免车辆泊车过程中撞到障碍物,保证泊车安全。此外,实施图3所描述的方法,通过携带鸟瞰变换系数的第三查找表对拍摄到的车辆两侧的环境图像进行鸟瞰变换获得鸟瞰视图,能够提高鸟瞰视图的生成速度,提高车位检测效率。It can be seen that, compared with the method described in FIG. 1, after implementing the method described in FIG. 3, after determining the target parking space corner point, the parking space detection device detects whether there is an obstacle in the area within the target parking space frame, and if so, it indicates that The parking space cannot be stopped. The parking space detection device marks the area enclosed by the target parking space frame as a non-parking space. In addition, by implementing the method described in FIG. 3, a bird's-eye view is obtained by performing a bird's-eye view transformation on the captured environmental images on both sides of the vehicle through a third look-up table carrying a bird's-eye view transformation coefficient, which can increase the generation speed of the bird's-eye view and improve the efficiency of parking space detection.
实施例四Example 4
请参阅图4,图4是本发明实施例公开的一种车位检测装置的结构示意图。如图4所示,该车位检测装置可以包括:Please refer to FIG. 4, which is a schematic structural diagram of a parking space detection device disclosed in an embodiment of the present invention. As shown in FIG. 4, the parking space detection device may include:
预处理单元401,用于对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图;The preprocessing unit 401 is used to preprocess the captured environment images on both sides of the vehicle to obtain a corresponding bird's-eye view;
第一检测单元402,用于检测鸟瞰视图中的车位框和车位角点;The first detection unit 402 is used to detect the parking space frame and the parking space corner point in the bird's-eye view;
筛选单元403,用于从鸟瞰视图中的车位框中筛选一个目标车位框;The screening unit 403 is used for screening a target parking space frame from the parking space frame in the bird's-eye view;
获取单元404,用于根据目标车位框,从车位角点中获取该目标车位框上的目标车位角点;The obtaining unit 404 is configured to obtain the target parking space corner point on the target parking space frame according to the target parking space frame;
第一确定单元405,用于根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标;The first determining unit 405 is configured to determine the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view;
第二确定单元406,用于根据目标车位角点对应的真实位置坐标,确定目标车位框对应的目标车位。The second determining unit 406 is configured to determine the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the target parking space corner point.
本发明实施例中,第一检测单元402可以利用深度学习算法检测鸟瞰视图中的车位框和车位角点,本发明实施例不作限定。In this embodiment of the present invention, the first detection unit 402 may use a deep learning algorithm to detect the parking space frame and the parking space corner point in the bird's-eye view, which is not limited in this embodiment of the present invention.
本发明实施例中,筛选单元403可以利用传统的图像处理方法从鸟瞰视图中的车位框中筛选一个目标车位框,并剔除除了该目标车位框上的目标车位角点外的其他车位角点。In the embodiment of the present invention, the screening unit 403 may use a conventional image processing method to filter a target parking space frame from the parking space frame in the bird's-eye view, and exclude other parking space corner points except the target parking space corner point on the target parking space frame.
本发明实施例中,上述目标车位框上的目标车位角点的数量至少为两个,本发明实施例不作限定。In the embodiment of the present invention, the number of target parking space corner points on the target parking space frame is at least two, which is not limited in the embodiment of the present invention.
本发明实施例中,第一确定单元405先计算鸟瞰视图中的目标车位角点的位置坐标,然后根据鸟瞰视图的坐标系和世界坐标系之间的映射关系,将鸟瞰视图中的目标车位角点的位置坐标转换成世界坐标系中目标车位角点的位置坐标,并将世界坐标系中目标车位角点的位置坐标作为目标车位角点对应的真实位置坐标。In the embodiment of the present invention, the first determining unit 405 first calculates the position coordinates of the target parking space corner point in the bird's-eye view, and then converts the target parking space angle in the bird's-eye view according to the mapping relationship between the coordinate system of the bird's-eye view and the world coordinate system The position coordinates of the point are converted into the position coordinates of the target parking space corner point in the world coordinate system, and the position coordinates of the target parking space corner point in the world coordinate system are taken as the true position coordinates corresponding to the target parking space corner point.
本发明实施例中,第二确定单元406根据目标车位角点对应的真实位置坐标,确定目标车位角点所构成的区域的中心位置,将目标车位角点所构成的区域的中心位置作为目标车位的中心位置,以及将目标车位角点置于目标车位的拐角处。In the embodiment of the present invention, the second determining unit 406 determines the center position of the area formed by the target parking space corner point according to the real position coordinates corresponding to the target parking space corner point, and takes the center position of the area formed by the target parking space corner point as the target parking space And the corner of the target parking space at the corner of the target parking space.
作为一种可选的实施方式,第一检测单元402可以采集大量的车位图形样本,根据车位图形样本训练得到车位模型,然后将上述鸟瞰视图导入该车位模型进行卷积运算以生成多种特征,根据预设特征从多种特征中检测得到车位框和车位角点。实施上述实施方式,利用深度学习算法来检测鸟瞰视图中的车位框和车位角点,能够他提高检测的精度。As an optional implementation manner, the first detection unit 402 can collect a large number of parking space graphic samples, train a parking space model according to the parking space graphic samples, and then import the above bird's-eye view into the parking space model for convolution operation to generate multiple features, A parking space frame and a parking space corner point are detected from various characteristics according to preset characteristics. Implementing the above embodiment, using a deep learning algorithm to detect the parking space frame and the parking space corner point in the bird's-eye view, can improve the detection accuracy.
进一步地,作为一种可选的实施方式,第一检测单元402可以对特征进行分类,比如将车位角点分为0类,将车位框分为1类,然后将上述鸟瞰视图导入该车位模型进行卷积运算以生成多种特征,将其中的0类提取出来作为车位角点以及将其中的1类提取出来作为车位框。实施上述实施方式,将车位角点分为0类以及将车位框分为1类,能够提高计算机的识别速度,从而提高车位的检测效率。Further, as an optional implementation manner, the first detection unit 402 may classify features, for example, classify parking space corner points into 0 categories, and classify parking space frames into 1 category, and then import the above bird's-eye view into the parking space model A convolution operation is performed to generate a variety of features, and the category 0 is extracted as a parking corner and the category 1 is extracted as a parking frame. By implementing the above embodiment, the parking space corner points are divided into 0 categories and the parking space frame is divided into 1 categories, which can increase the recognition speed of the computer and thereby improve the detection efficiency of the parking spaces.
作为一种可选的实施方式,筛选单元403从鸟瞰视图中的车位框中筛选一个目标车位框,包括:As an optional implementation manner, the screening unit 403 screens a target parking space frame from the parking space frame in the bird's-eye view, including:
筛选单元403将鸟瞰视图中的各个车位框的宽度进行排序并统计各个车位框的宽度的排名;The filtering unit 403 sorts the width of each parking space frame in the bird's-eye view and counts the ranking of the width of each parking space frame;
筛选单元403将排名第一对应的车位框作为目标车位框。The screening unit 403 uses the first ranked parking space frame as the target parking space frame.
实施上述实施方式,筛选出宽度最大的车位框作为目标车位框,能够提高泊车的安全性。By implementing the above embodiment, the parking space frame with the largest width is selected as the target parking space frame, and the safety of parking can be improved.
可见,实施图4所描述的车位检测装置,通过拍摄获得车辆两侧的环境图像,然后将该环境图像转换成鸟瞰视图,从鸟瞰视图中的车位框中筛选一个目标车位框以及该目标车位框上的目标车位角点,通过计算获得目标车位角点对应的真实位置坐标并确定目标车位框对应的目标车位,能够提高车位检测的准确度,从而提高车位的识别率。It can be seen that by implementing the parking space detection device described in FIG. 4, the environmental images on both sides of the vehicle are obtained by shooting, and then the environmental images are converted into a bird's eye view, and a target parking space frame and the target parking space frame are selected from the parking space frame in the bird's eye view On the target parking space corner point, the real position coordinates corresponding to the target parking space corner point are calculated and the target parking space corresponding to the target parking space frame is determined, which can improve the accuracy of the parking space detection and thereby increase the recognition rate of the parking space.
实施例五Example 5
请参阅图5,图5是本发明实施例公开的另一种车位检测装置的结构示意图。其中,图5所示的车位检测装置是由图4所示的车位检测装置进一步优化得到的。与图4所示的车位检测装置相比较,图5所示的车位检测装置还可以包括:Please refer to FIG. 5, which is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention. Among them, the parking space detection device shown in FIG. 5 is further optimized by the parking space detection device shown in FIG. 4. Compared with the parking space detection device shown in FIG. 4, the parking space detection device shown in FIG. 5 may further include:
预处理单元401包括:The pre-processing unit 401 includes:
畸变矫正子单元4011,用于根据车辆的摄像装置的内部参数和外部参数,对拍摄到的车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像;The distortion correction subunit 4011 is configured to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal parameters and external parameters of the camera's camera device to obtain corresponding corrected images;
透视变换子单元4012,用于根据矫正图像的像素点,对矫正图像进行透视变换,以获得对应的鸟瞰视图。The perspective transformation subunit 4012 is configured to perform perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
第一参数获取单元407,用于在畸变矫正子单元4011根据车辆的摄像装置的内部参数和外部参数,对拍摄到的车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像之前,确定车辆的摄像装置的内部参数和外部参数;The first parameter acquisition unit 407 is used to determine before the distortion correction subunit 4011 performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera device of the vehicle to obtain the corresponding corrected image The internal and external parameters of the camera device of the vehicle;
本发明实施例中,上述内部参数至少包括摄像装置的焦距、像素尺寸和畸变参数,上述外部参数至少包括摄像装置相对于地面的高度和摄像装置的旋转矩阵,本发明实施例不作限定。In the embodiment of the present invention, the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device, and the external parameters include at least the height of the camera device relative to the ground and the rotation matrix of the camera device, which is not limited in the embodiment of the present invention.
作为一种可选的实施方式,畸变矫正子单元4011根据车辆的摄像装置的内部参数和外部参数,对拍摄到的车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像,包括:As an optional embodiment, the distortion correction subunit 4011 performs distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device to obtain corresponding corrected images, including:
第一确定模块40111,用于根据第一参数获取单元407确定的内部参数和外部参数,确定车辆两侧的环境图像和对应的矫正图像之间的第一对应关系;The first determination module 40111 is configured to determine the first correspondence between the environmental images on both sides of the vehicle and the corresponding corrected images according to the internal parameters and external parameters determined by the first parameter acquisition unit 407;
第一保存模块40112,用于将第一对应关系保存至第一查找表;The first saving module 40112 is used to save the first correspondence to the first lookup table;
畸变矫正模块40113,用于根据第一查找表,对拍摄到的车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像。The distortion correction module 40113 is configured to perform distortion correction on the captured environment images on both sides of the vehicle according to the first lookup table to obtain a corresponding corrected image.
本发明实施例中,第一对应关系包含拍摄到的车辆两侧的环境图像的像素点和矫正图像的像素点之间的对应关系。In the embodiment of the present invention, the first correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the corrected image.
作为一种可选的实施方式,透视变换子单元4012根据矫正图像的像素点,对矫正图像进行透视变 换,以获得对应的鸟瞰视图,包括:As an optional embodiment, the perspective transformation subunit 4012 performs perspective transformation on the corrected image according to the pixels of the corrected image to obtain the corresponding bird's-eye view, including:
第二确定模块40121,用于根据矫正图像的像素点,确定矫正图像和对应的鸟瞰视图之间的第二对应关系;The second determining module 40121 is configured to determine the second correspondence between the corrected image and the corresponding bird's-eye view according to the pixels of the corrected image;
第二保存模块40122,用于将第二对应关系保存至第二查找表;The second saving module 40122 is used to save the second correspondence to the second lookup table;
透视变换模块40123,用于根据第二查找表,对矫正图像进行透视变换,以获得对应的鸟瞰视图。The perspective transformation module 40123 is configured to perform perspective transformation on the corrected image according to the second lookup table to obtain a corresponding bird's-eye view.
本发明实施例中,第二对应关系包含矫正图像的像素点和鸟瞰视图的像素点之间的对应关系。In the embodiment of the present invention, the second correspondence includes the correspondence between the pixels of the corrected image and the pixels of the bird's-eye view.
第二检测单元408,用于在获取单元404根据目标车位框,从车位角点中获取该目标车位框上的目标车位角点之后,以及第一确定单元405根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标之前,检测目标车位框所框中的区域是否存在障碍物;The second detection unit 408 is used for the acquisition unit 404 to acquire the target parking space corner on the target parking space frame from the parking space corner according to the target parking space frame, and the first determination unit 405 according to the target parking space corner in the bird's-eye view Before determining the real position coordinates corresponding to the corner of the target parking space, detect whether there is an obstacle in the area framed by the target parking space frame;
标记单元409,用于在第二检测单元408检测到目标车位框所框中的区域存在障碍物时,标记目标车位框所框中的区域为不可停车位;The marking unit 409 is used to mark the area in the target parking space frame as a non-parking space when the second detection unit 408 detects that there is an obstacle in the area in the target parking space frame;
第一确定单元405,具体用于在第二检测单元408检测到目标车位框所框中的区域不存在障碍物时,根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标。The first determining unit 405 is specifically configured to determine the target parking space corner according to the position coordinates of the target parking space corner in the bird's-eye view when the second detection unit 408 detects that there is no obstacle in the area framed by the target parking space frame Corresponding real position coordinates.
作为一种可选的实施方式,第二检测单元408可以在目标车位框的边缘筛选多个区域并检测这多个区域的边缘密度,将边缘密度最大对应的区域的边缘密度作为目标边缘密度,接着判断目标边缘密度是否大于指定阈值,如果是,表明该区域存在障碍物,标记单元409标记目标车位框所框中的区域为不可停车位;如果否,第一确定单元405根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标。As an optional implementation manner, the second detection unit 408 may screen multiple areas at the edge of the target parking space frame and detect the edge density of the multiple areas, and use the edge density of the area corresponding to the maximum edge density as the target edge density, Next, determine whether the target edge density is greater than the specified threshold. If it is, it indicates that there is an obstacle in the area. The marking unit 409 marks the area within the target parking frame as a non-parking space; if not, the first determining unit 405 determines The position coordinates of the target parking space corner point determine the true position coordinates corresponding to the target parking space corner point.
实施上述实施方式,可以判断车位检测装置筛选的目标车位框所框中的区域内是否存在障碍物,避免泊车过程中碰撞到障碍物,能够提高泊车安全性。By implementing the above embodiment, it can be determined whether there is an obstacle in the area framed by the target parking space frame selected by the parking space detection device, to avoid collision with the obstacle during the parking process, and the parking safety can be improved.
可见,与图4所描述的车位检测装置相比,实施图5所描述的车位检测装置,在确定目标车位角点后,检测目标车位框所框中的区域是否存在障碍物,如果是,表明该车位不可停,标记该目标车位框所圈中的区域为不可停车位,能够避免车辆泊车过程中撞到障碍物,保证泊车安全。此外,实施图5所描述的车位检测装置,通过携带畸变参数的第一查找表对拍摄到的车辆两侧的环境图像进行畸变矫正获得矫正图像,再通过携带透视变换系数的第二查找表对矫正图像进行透视变换获得鸟瞰视图,能够提高鸟瞰视图的生成速度,提高车位检测效率。It can be seen that, compared with the parking space detection device described in FIG. 4, after implementing the parking space detection device described in FIG. 5, after determining the target parking space corner point, it is detected whether there is an obstacle in the area within the target parking space frame, and if so, it indicates that The parking space cannot be stopped. Mark the area enclosed by the target parking space frame as a non-parking space, which can avoid the vehicle from hitting obstacles during parking and ensure parking safety. In addition, the parking space detection device described in FIG. 5 is implemented, and the first and second look-up tables carrying distortion parameters are used to perform distortion correction on the captured environmental images on both sides of the vehicle to obtain corrected images, and then the second look-up table carrying perspective transformation coefficients Correcting the image for perspective transformation to obtain a bird's eye view can increase the speed of bird's eye view generation and improve the efficiency of parking space detection.
实施例六Example Six
请参阅图6,图6是本发明实施例公开的又一种车位检测装置的结构示意图。其中,图6所示的 车位检测装置是由图4所示的车位检测装置进一步优化得到的。与图4所示的车位检测装置相比较,图6所示的车位检测装置还可以包括:Please refer to FIG. 6, which is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention. Among them, the parking space detection device shown in FIG. 6 is further optimized by the parking space detection device shown in FIG. 4. Compared with the parking space detection device shown in FIG. 4, the parking space detection device shown in FIG. 6 may further include:
第二参数获取单元410,用于在预处理单元401对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图之前,获取车辆的摄像装置的内部参数和外部参数;The second parameter obtaining unit 410 is used to obtain the internal parameters and external parameters of the camera device of the vehicle before the preprocessing unit 401 preprocesses the captured environment images on both sides of the vehicle to obtain the corresponding bird's-eye view;
预处理单元401包括:The pre-processing unit 401 includes:
确定子单元4013,用于根据第二参数获取单元410确定的内部参数和外部参数,确定车辆两侧的环境图像和对应的鸟瞰视图之间的第三对应关系;The determination subunit 4013 is configured to determine the third correspondence between the environmental images on both sides of the vehicle and the corresponding bird's-eye view according to the internal and external parameters determined by the second parameter acquisition unit 410;
保存子单元4014,用于将第三对应关系保存至第三查找表;Saving subunit 4014, used to save the third correspondence to the third lookup table;
鸟瞰变换子单元4015,用于根据第三查找表,对拍摄到的车辆两侧的环境图像进行鸟瞰变换,以获得对应的鸟瞰视图。The bird's eye view transformation subunit 4015 is configured to perform bird's eye view transformation on the captured environment images on both sides of the vehicle according to the third lookup table to obtain a corresponding bird's eye view.
本发明实施例中,第三对应关系包含拍摄到的车辆两侧的环境图像的像素点和鸟瞰视图的像素点之间的对应关系。In the embodiment of the present invention, the third correspondence includes the correspondence between the pixels of the environment images captured on both sides of the vehicle and the pixels of the bird's-eye view.
第二检测单元408,用于在获取单元404根据目标车位框,从车位角点中获取该目标车位框上的目标车位角点之后,以及第一确定单元405根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标之前,检测目标车位框所框中的区域是否存在障碍物;The second detection unit 408 is used for the acquisition unit 404 to acquire the target parking space corner on the target parking space frame from the parking space corner according to the target parking space frame, and the first determination unit 405 according to the target parking space corner in the bird's-eye view Before determining the real position coordinates corresponding to the corner of the target parking space, detect whether there is an obstacle in the area framed by the target parking space frame;
标记单元409,用于在第二检测单元408检测到目标车位框所框中的区域存在障碍物时,标记目标车位框所框中的区域为不可停车位;The marking unit 409 is used to mark the area in the target parking space frame as a non-parking space when the second detection unit 408 detects that there is an obstacle in the area in the target parking space frame;
第一确定单元405,具体用于在第二检测单元408检测到目标车位框所框中的区域不存在障碍物时,根据鸟瞰视图中的目标车位角点的位置坐标,确定该目标车位角点对应的真实位置坐标。The first determining unit 405 is specifically configured to determine the target parking space corner according to the position coordinates of the target parking space corner in the bird's-eye view when the second detection unit 408 detects that there is no obstacle in the area framed by the target parking space frame Corresponding real position coordinates.
可见,与图4所描述的车位检测装置相比,实施图6所描述的车位检测装置,在确定目标车位角点后,检测目标车位框所框中的区域是否存在障碍物,如果是,表明该车位不可停,标记该目标车位框所圈中的区域为不可停车位,能够避免车辆泊车过程中撞到障碍物,保证泊车安全。此外,实施图6所描述的车位检测装置,通过携带鸟瞰变换系数的第三查找表对拍摄到的车辆两侧的环境图像进行鸟瞰变换获得鸟瞰视图,能够提高鸟瞰视图的生成速度,提高车位检测效率。It can be seen that, compared with the parking space detection device described in FIG. 4, after implementing the parking space detection device described in FIG. 6, after determining the target parking space corner point, it is detected whether there is an obstacle in the area within the target parking space frame, and if so, it indicates that The parking space cannot be stopped. Mark the area enclosed by the target parking space frame as a non-parking space, which can avoid the vehicle from hitting obstacles during parking and ensure parking safety. In addition, by implementing the parking space detection device described in FIG. 6 and performing a bird's eye view transformation on the captured environmental images on both sides of the vehicle by carrying a third look-up table of bird's eye view transformation coefficients to obtain a bird's eye view, the speed of generating bird's eye view can be improved and the parking space detection can be improved effectiveness.
实施例七Example 7
请参阅图7,图7是本发明实施例公开的再一种车位检测装置的结构示意图。如图7所示,该车位检测装置可以包括:Please refer to FIG. 7, which is a schematic structural diagram of another parking space detection device disclosed in an embodiment of the present invention. As shown in FIG. 7, the parking space detection device may include:
存储有可执行程序代码的存储器701;A memory 701 storing executable program code;
与存储器701耦合的处理器702;A processor 702 coupled with the memory 701;
其中,处理器702调用存储器701中存储的可执行程序代码,执行图1~图3任意一种基于视觉的车位检测方法。Wherein, the processor 702 calls the executable program code stored in the memory 701 to execute any one of the vision-based parking space detection methods shown in FIGS. 1 to 3.
本发明实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行图1~图3任意一种基于视觉的车位检测方法。An embodiment of the present invention discloses a computer-readable storage medium that stores a computer program, where the computer program causes the computer to execute any of the vision-based parking space detection methods of FIGS. 1 to 3.
本发明实施例还公开一种应用发布平台,其中,应用发布平台用于发布计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行如以上各方法实施例中的方法的部分或全部步骤。An embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein, when the computer program product runs on the computer, the computer is caused to perform part of the method as in the above method embodiments Or all steps.
在本发明的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence numbers of the above processes does not mean that the order of execution is necessarily inevitable. The execution order of each process should be determined by its function and inherent logic, and should not be implemented by the present invention. The implementation process of the examples constitutes no limitation.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。另外,在本发明各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be object units, that is, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
在本发明所提供的实施例中,应理解,“与A对应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其他信息确定B。In the embodiment provided by the present invention, it should be understood that "B corresponding to A" indicates that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B based on A does not mean determining B based on A alone, and B may also be determined based on A and/or other information.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by a program instructing related hardware. The program may be stored in a computer-readable storage medium, and the storage medium includes read-only Memory (Read-Only Memory, ROM), Random Memory (Random Access, Memory, RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), electronically erasable rewritable read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), compact disc (Compact Disc) Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other medium readable by a computer that can be used to carry or store data.
以上对本发明实施例公开的一种基于视觉的车位检测方法及装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The vision-based parking space detection method and device disclosed in the embodiments of the present invention are described in detail above. Specific examples are used in this article to explain the principles and implementation of the present invention. The descriptions of the above embodiments are only used to help understanding The method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not It is understood as a limitation to the present invention.

Claims (10)

  1. 一种基于视觉的车位检测方法,其特征在于,包括:A vision-based parking space detection method, which includes:
    对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图;Preprocess the environmental images on both sides of the captured vehicle to obtain the corresponding bird's-eye view;
    检测所述鸟瞰视图中的车位框和车位角点;Detecting a parking space frame and a parking space corner point in the bird's-eye view;
    从所述鸟瞰视图中的车位框中筛选一个目标车位框;Selecting a target parking space frame from the parking space frame in the bird's-eye view;
    根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点;Obtaining the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame;
    根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标;Determine the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view;
    根据所述目标车位角点对应的真实位置坐标,确定所述目标车位框对应的目标车位。The target parking space corresponding to the target parking space frame is determined according to the real position coordinates corresponding to the target parking space corner point.
  2. 根据权利要求1所述的方法,其特征在于,所述对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图,包括:The method according to claim 1, wherein the preprocessing the captured environmental images on both sides of the vehicle to obtain a corresponding bird's-eye view includes:
    根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像;According to the internal parameters and external parameters of the camera's camera device, perform distortion correction on the captured environmental images on both sides of the vehicle to obtain corresponding corrected images;
    根据所述矫正图像的像素点,对所述矫正图像进行透视变换,以获得对应的鸟瞰视图。Perform perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
  3. 根据权利要求2所述的方法,其特征在于,在所述根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像之前,所述方法还包括:The method according to claim 2, characterized in that, in the internal parameters and external parameters of the camera device of the vehicle, the captured environmental images on both sides of the vehicle are subjected to distortion correction to obtain a corresponding corrected image Previously, the method also included:
    获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;Obtain the internal and external parameters of the camera's camera device; the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the camera Device rotation matrix;
    所述根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像,包括:According to the internal parameters and external parameters of the camera's camera device, the captured environmental images on both sides of the vehicle are subjected to distortion correction to obtain corresponding corrected images, including:
    根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的矫正图像之间的第一对应关系;所述第一对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述矫正图像的像素点之间的对应关系;According to the internal parameter and the external parameter, determine a first correspondence between the environment images on both sides of the vehicle and corresponding corrected images; the first correspondence includes the captured environment on both sides of the vehicle Correspondence between pixels of the image and pixels of the corrected image;
    将所述第一对应关系保存至第一查找表;Save the first correspondence to the first lookup table;
    根据所述第一查找表,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得所述矫正图像;According to the first look-up table, perform distortion correction on the captured environmental images on both sides of the vehicle to obtain the corrected image;
    所述根据所述矫正图像的像素点,对所述矫正图像进行透视变换,以获得对应的鸟瞰视图,包括:The performing perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view includes:
    根据所述矫正图像的像素点,确定所述矫正图像和对应的鸟瞰视图之间的第二对应关系;所述第二对应关系包含所述矫正图像的像素点和所述鸟瞰视图的像素点之间的对应关系;According to the pixels of the corrected image, determine a second correspondence between the corrected image and the corresponding bird's-eye view; the second correspondence includes the pixels of the corrected image and the pixels of the bird's-eye view Correspondence between
    将所述第二对应关系保存至第二查找表;Save the second correspondence to the second lookup table;
    根据所述第二查找表,对所述矫正图像进行透视变换,以获得所述鸟瞰视图。According to the second lookup table, perform a perspective transformation on the corrected image to obtain the bird's-eye view.
  4. 根据权利要求1所述的方法,其特征在于,在所述对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图之前,所述方法还包括:The method according to claim 1, characterized in that before the preprocessing of the captured environment images on both sides of the vehicle to obtain a corresponding bird's-eye view, the method further comprises:
    获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;Obtain the internal and external parameters of the camera's camera device; the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the camera Device rotation matrix;
    以及,所述对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图,包括:And, the preprocessing of the environmental images on both sides of the captured vehicle to obtain a corresponding bird's-eye view includes:
    根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的鸟瞰视图之间的第三对应关系;所述第三对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述鸟瞰视图的像素点之间的对应关系;According to the internal parameter and the external parameter, determine a third correspondence between the environment images on both sides of the vehicle and the corresponding bird's-eye view; the third correspondence includes the captured environment on both sides of the vehicle Correspondence between pixels of the image and pixels of the bird's-eye view;
    将所述第三对应关系保存至第三查找表;Save the third correspondence to the third lookup table;
    根据所述第三查找表,对拍摄到的所述车辆两侧的环境图像进行鸟瞰变换,以获得所述鸟瞰视图。According to the third lookup table, perform a bird's eye view transformation on the captured environment images on both sides of the vehicle to obtain the bird's eye view.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,在所述根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点之后,以及所述根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标之前,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that after the target parking space corner on the target parking space frame is obtained from the parking space corner according to the target parking space frame, and Before determining the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view, the method further includes:
    检测所述目标车位框所框中的区域是否存在障碍物;Detecting whether there is an obstacle in the area framed by the target parking space frame;
    如果所述目标车位框所框中的区域存在障碍物,标记所述目标车位框所框中的区域为不可停车位;If there is an obstacle in the area framed by the target parking space frame, mark the area framed by the target parking space frame as a non-parking space;
    如果所述目标车位框所框中的区域不存在障碍物,执行所述根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标的步骤。If there is no obstacle in the area framed by the target parking space frame, the step of determining the real position coordinates corresponding to the target parking space corner point according to the location coordinates of the target parking space corner point in the bird's-eye view is performed .
  6. 一种车位检测装置,其特征在于,包括:A parking space detection device, characterized in that it includes:
    预处理单元,用于对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图;The pre-processing unit is used to pre-process the environment images on both sides of the vehicle to obtain the corresponding bird's-eye view;
    第一检测单元,用于检测所述鸟瞰视图中的车位框和车位角点;A first detection unit, configured to detect a parking space frame and a parking space corner point in the bird's-eye view;
    筛选单元,用于从所述鸟瞰视图中的车位框中筛选一个目标车位框;A screening unit for screening a target parking space frame from the parking space frame in the bird's-eye view;
    获取单元,用于根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点;An obtaining unit, configured to obtain a target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame;
    第一确定单元,用于根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标;A first determining unit, configured to determine the real position coordinates corresponding to the target parking space corner point according to the position coordinates of the target parking space corner point in the bird's-eye view;
    第二确定单元,用于根据所述目标车位角点对应的真实位置坐标,确定所述目标车位框对应的目标车位。The second determining unit is configured to determine the target parking space corresponding to the target parking space frame according to the real position coordinates corresponding to the target parking space corner point.
  7. 根据权利要求6所述的车位检测装置,其特征在于,所述预处理单元包括:The parking space detection device according to claim 6, wherein the preprocessing unit includes:
    畸变矫正子单元,用于根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像;The distortion correction subunit is used to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal parameters and external parameters of the camera device of the vehicle to obtain corresponding corrected images;
    透视变换子单元,用于根据所述矫正图像的像素点,对所述矫正图像进行透视变换,以获得对应的鸟瞰视图。The perspective transformation subunit is configured to perform perspective transformation on the corrected image according to the pixels of the corrected image to obtain a corresponding bird's-eye view.
  8. 根据权利要求7所述的车位检测装置,其特征在于,所述车位检测装置还包括:The parking space detection device according to claim 7, wherein the parking space detection device further comprises:
    第一参数获取单元,用于在所述畸变矫正子单元根据车辆的摄像装置的内部参数和外部参数,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得对应的矫正图像之前,获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;The first parameter acquisition unit is used to perform distortion correction on the captured environmental images on both sides of the vehicle according to the internal and external parameters of the camera's camera device of the distortion correction sub-unit to obtain the corresponding corrected image To obtain the internal and external parameters of the camera's camera device; the internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the The rotation matrix of the camera device;
    所述畸变矫正子单元包括:The distortion correction subunit includes:
    第一确定模块,用于根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的矫正图像之间的第一对应关系;所述第一对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述矫正图像的像素点之间的对应关系;A first determining module, configured to determine the first correspondence between the environmental images on both sides of the vehicle and the corresponding corrected images based on the internal parameters and the external parameters; the first correspondence includes the captured Correspondence between pixels of the environmental images on both sides of the vehicle and pixels of the corrected image;
    第一保存模块,用于将所述第一对应关系保存至第一查找表;A first saving module, configured to save the first correspondence to the first lookup table;
    畸变矫正模块,用于根据所述第一查找表,对拍摄到的所述车辆两侧的环境图像进行畸变矫正,以获得所述矫正图像;A distortion correction module, configured to perform distortion correction on the captured environmental images on both sides of the vehicle according to the first lookup table to obtain the corrected image;
    所述透视变换子单元包括:The perspective transformation subunit includes:
    第二确定模块,用于根据所述矫正图像的像素点,确定所述矫正图像和对应的鸟瞰视图之间的第二对应关系;所述第二对应关系包含所述矫正图像的像素点和所述鸟瞰视图的像素点之间的对应关系;A second determining module, configured to determine a second correspondence between the corrected image and the corresponding bird's-eye view according to the pixels of the corrected image; the second correspondence includes the pixels of the corrected image and all The correspondence between the pixels of the bird's-eye view;
    第二保存模块,用于将所述第二对应关系保存至第二查找表;A second saving module, configured to save the second correspondence to the second lookup table;
    透视变换模块,用于根据所述第二查找表,对所述矫正图像进行透视变换,以获得所述鸟瞰视图。The perspective transformation module is configured to perform perspective transformation on the corrected image according to the second lookup table to obtain the bird's-eye view.
  9. 根据权利要求6所述的车位检测装置,其特征在于,所述车位检测装置还包括:The parking space detection device according to claim 6, wherein the parking space detection device further comprises:
    第二参数获取单元,用于在所述预处理单元对拍摄到的车辆两侧的环境图像进行预处理,以获得对应的鸟瞰视图之前,获取车辆的摄像装置的内部参数和外部参数;所述内部参数至少包括所述摄像装置的焦距、像素尺寸和畸变参数;所述外部参数至少包括所述摄像装置相对于地面的高度和所述摄像装置的旋转矩阵;A second parameter acquisition unit, configured to acquire the internal parameters and external parameters of the camera device of the vehicle before the preprocessing unit preprocesses the captured environment images on both sides of the vehicle to obtain the corresponding bird's-eye view; The internal parameters include at least the focal length, pixel size, and distortion parameters of the camera device; the external parameters include at least the height of the camera device relative to the ground and the rotation matrix of the camera device;
    所述预处理单元包括:The pre-processing unit includes:
    确定子单元,用于根据所述内部参数和所述外部参数,确定所述车辆两侧的环境图像和对应的鸟 瞰视图之间的第三对应关系;所述第三对应关系包含拍摄到的所述车辆两侧的环境图像的像素点和所述鸟瞰视图的像素点之间的对应关系;A determination subunit, configured to determine a third correspondence between the environmental images on both sides of the vehicle and the corresponding bird's-eye view based on the internal parameter and the external parameter; the third correspondence includes the A correspondence between pixels of environmental images on both sides of the vehicle and pixels of the bird's-eye view;
    保存子单元,用于将所述第三对应关系保存至第三查找表;A saving subunit, configured to save the third correspondence to a third lookup table;
    鸟瞰变换子单元,用于根据所述第三查找表,对拍摄到的所述车辆两侧的环境图像进行鸟瞰变换,以获得所述鸟瞰视图。The bird's eye view transformation subunit is configured to perform bird's eye view transformation on the captured environment images on both sides of the vehicle according to the third lookup table to obtain the bird's eye view.
  10. 根据权利要求6至9任一项所述的车位检测装置,其特征在于,所述车位检测装置还包括:The parking space detection device according to any one of claims 6 to 9, wherein the parking space detection device further comprises:
    第二检测单元,用于在所述获取单元根据所述目标车位框,从所述车位角点中获取所述目标车位框上的目标车位角点之后,以及所述第一确定单元根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标之前,检测所述目标车位框所框中的区域是否存在障碍物;The second detection unit is used for the acquisition unit to acquire the target parking space corner point on the target parking space frame from the parking space corner point according to the target parking space frame, and the first determination unit according to the Detecting the position coordinates of the target parking space corner point in the bird's-eye view, before determining the real position coordinates corresponding to the target parking space corner point, detecting whether there is an obstacle in the area within the target parking space frame;
    标记单元,用于在所述第二检测单元检测到所述目标车位框所框中的区域存在障碍物时,标记所述目标车位框所框中的区域为不可停车位;A marking unit, configured to mark the area in the target parking space frame as a non-parking space when the second detection unit detects that there is an obstacle in the area in the target parking space frame;
    所述第一确定单元,具体用于在所述第二检测单元检测到所述目标车位框所框中的区域不存在障碍物时,根据所述鸟瞰视图中的所述目标车位角点的位置坐标,确定所述目标车位角点对应的真实位置坐标。The first determining unit is specifically configured to determine the position of the corner point of the target parking space in the bird's-eye view when the second detection unit detects that there is no obstacle in the area framed by the target parking space frame Coordinates, determine the real position coordinates corresponding to the target parking space corner point.
PCT/CN2019/093530 2018-12-21 2019-06-28 Vision-based parking space detection method and device WO2020124988A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811579916.1 2018-12-21
CN201811579916.1A CN109685000A (en) 2018-12-21 2018-12-21 A kind of method for detecting parking stalls and device of view-based access control model

Publications (1)

Publication Number Publication Date
WO2020124988A1 true WO2020124988A1 (en) 2020-06-25

Family

ID=66188644

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/093530 WO2020124988A1 (en) 2018-12-21 2019-06-28 Vision-based parking space detection method and device

Country Status (2)

Country Link
CN (1) CN109685000A (en)
WO (1) WO2020124988A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076824A (en) * 2021-03-19 2021-07-06 上海欧菲智能车联科技有限公司 Parking space acquisition method and device, vehicle-mounted terminal and storage medium
CN113076845A (en) * 2021-03-26 2021-07-06 上海欧菲智能车联科技有限公司 Parking space acquisition method, parking space determination device, vehicle and readable storage medium
CN113240752A (en) * 2021-05-21 2021-08-10 中科创达软件股份有限公司 Internal reference and external reference cooperative calibration method and device
CN113830078A (en) * 2021-10-19 2021-12-24 同济大学 Automatic parking method and system based on parking space corner detection
CN114758318A (en) * 2022-02-21 2022-07-15 北京航空航天大学 Method for detecting parking stall at any angle based on panoramic view
CN114926817A (en) * 2022-05-20 2022-08-19 远峰科技股份有限公司 Method and device for identifying parking space, electronic equipment and computer readable storage medium
CN116620311A (en) * 2023-05-26 2023-08-22 广州汽车集团股份有限公司 Parking error detection method and device, vehicle and storage medium

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685000A (en) * 2018-12-21 2019-04-26 广州小鹏汽车科技有限公司 A kind of method for detecting parking stalls and device of view-based access control model
CN112016349B (en) * 2019-05-29 2024-06-11 北京市商汤科技开发有限公司 Parking space detection method and device and electronic equipment
KR102297683B1 (en) * 2019-07-01 2021-09-07 (주)베이다스 Method and apparatus for calibrating a plurality of cameras
CN110390306B (en) * 2019-07-25 2021-08-10 湖州宏威新能源汽车有限公司 Method for detecting right-angle parking space, vehicle and computer readable storage medium
KR102277828B1 (en) * 2019-08-13 2021-07-16 (주)베이다스 Method and apparatus for calibratiing a plurality of cameras
CN112417926B (en) * 2019-08-22 2024-02-27 广州汽车集团股份有限公司 Parking space identification method and device, computer equipment and readable storage medium
CN112686959B (en) * 2019-10-18 2024-06-11 菜鸟智能物流控股有限公司 Correction method and device for image to be identified
CN110796063B (en) * 2019-10-24 2022-09-09 百度在线网络技术(北京)有限公司 Method, device, equipment, storage medium and vehicle for detecting parking space
CN110969655B (en) * 2019-10-24 2023-08-18 百度在线网络技术(北京)有限公司 Method, device, equipment, storage medium and vehicle for detecting parking space
CN112749577B (en) * 2019-10-29 2023-09-22 北京魔门塔科技有限公司 Parking space detection method and device
CN111178295A (en) * 2019-12-31 2020-05-19 华为技术有限公司 Parking space detection and model training method and device, vehicle, equipment and storage medium
CN111428616B (en) * 2020-03-20 2023-05-23 东软睿驰汽车技术(沈阳)有限公司 Parking space detection method, device, equipment and storage medium
CN111862672B (en) * 2020-06-24 2021-11-23 北京易航远智科技有限公司 Parking lot vehicle self-positioning and map construction method based on top view
CN112298168B (en) * 2020-11-06 2022-04-22 北京罗克维尔斯科技有限公司 Parking space detection method and device and automatic parking method and device
CN112598922B (en) * 2020-12-07 2023-03-21 安徽江淮汽车集团股份有限公司 Parking space detection method, device, equipment and storage medium
CN112348817B (en) * 2021-01-08 2021-05-11 深圳佑驾创新科技有限公司 Parking space identification method and device, vehicle-mounted terminal and storage medium
WO2022222036A1 (en) * 2021-04-20 2022-10-27 深圳市大疆创新科技有限公司 Method and apparatus for determining parking space
WO2022266854A1 (en) * 2021-06-22 2022-12-29 华为技术有限公司 Parking space detection method and device
CN115359650A (en) * 2022-07-06 2022-11-18 浙江大华技术股份有限公司 Parking position detection method and device, computer equipment and storage medium
CN115148047B (en) * 2022-07-25 2024-05-24 中汽创智科技有限公司 Parking space detection method and device
CN116052123A (en) * 2023-01-28 2023-05-02 广汽埃安新能源汽车股份有限公司 Parking space detection method, device, vehicle and equipment based on camera picture

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130162825A1 (en) * 2011-12-23 2013-06-27 Hyundai Motor Company Avm top view based parking support system
CN104933409A (en) * 2015-06-12 2015-09-23 北京理工大学 Parking space identification method based on point and line features of panoramic image
CN105946853A (en) * 2016-04-28 2016-09-21 中山大学 Long-distance automatic parking system and method based on multi-sensor fusion
CN107738612A (en) * 2017-09-22 2018-02-27 西安电子科技大学 The detection of automatic parking parking stall and identifying system based on panoramic vision accessory system
CN107886080A (en) * 2017-11-23 2018-04-06 同济大学 One kind is parked position detecting method
CN109685000A (en) * 2018-12-21 2019-04-26 广州小鹏汽车科技有限公司 A kind of method for detecting parking stalls and device of view-based access control model

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045546B (en) * 2010-12-15 2013-07-31 广州致远电子股份有限公司 Panoramic parking assist system
CN107993488B (en) * 2017-12-13 2021-07-06 深圳市航盛电子股份有限公司 Parking space identification method, system and medium based on fisheye camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130162825A1 (en) * 2011-12-23 2013-06-27 Hyundai Motor Company Avm top view based parking support system
CN104933409A (en) * 2015-06-12 2015-09-23 北京理工大学 Parking space identification method based on point and line features of panoramic image
CN105946853A (en) * 2016-04-28 2016-09-21 中山大学 Long-distance automatic parking system and method based on multi-sensor fusion
CN107738612A (en) * 2017-09-22 2018-02-27 西安电子科技大学 The detection of automatic parking parking stall and identifying system based on panoramic vision accessory system
CN107886080A (en) * 2017-11-23 2018-04-06 同济大学 One kind is parked position detecting method
CN109685000A (en) * 2018-12-21 2019-04-26 广州小鹏汽车科技有限公司 A kind of method for detecting parking stalls and device of view-based access control model

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076824A (en) * 2021-03-19 2021-07-06 上海欧菲智能车联科技有限公司 Parking space acquisition method and device, vehicle-mounted terminal and storage medium
CN113076824B (en) * 2021-03-19 2024-05-14 上海欧菲智能车联科技有限公司 Parking space acquisition method and device, vehicle-mounted terminal and storage medium
CN113076845A (en) * 2021-03-26 2021-07-06 上海欧菲智能车联科技有限公司 Parking space acquisition method, parking space determination device, vehicle and readable storage medium
CN113240752A (en) * 2021-05-21 2021-08-10 中科创达软件股份有限公司 Internal reference and external reference cooperative calibration method and device
CN113240752B (en) * 2021-05-21 2024-03-22 中科创达软件股份有限公司 Internal reference and external reference collaborative calibration method and device
CN113830078A (en) * 2021-10-19 2021-12-24 同济大学 Automatic parking method and system based on parking space corner detection
CN113830078B (en) * 2021-10-19 2023-08-04 同济大学 Automatic parking method and system based on parking space corner detection
CN114758318A (en) * 2022-02-21 2022-07-15 北京航空航天大学 Method for detecting parking stall at any angle based on panoramic view
CN114926817A (en) * 2022-05-20 2022-08-19 远峰科技股份有限公司 Method and device for identifying parking space, electronic equipment and computer readable storage medium
CN116620311A (en) * 2023-05-26 2023-08-22 广州汽车集团股份有限公司 Parking error detection method and device, vehicle and storage medium
CN116620311B (en) * 2023-05-26 2024-05-03 广州汽车集团股份有限公司 Parking error detection method and device, vehicle and storage medium

Also Published As

Publication number Publication date
CN109685000A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
WO2020124988A1 (en) Vision-based parking space detection method and device
CN107577988B (en) Method, device, storage medium and program product for realizing side vehicle positioning
JP3868876B2 (en) Obstacle detection apparatus and method
WO2020062856A1 (en) Vehicle feature acquisition method and device
CN106971185B (en) License plate positioning method and device based on full convolution network
CN108470356B (en) Target object rapid ranging method based on binocular vision
Chang et al. An efficient method for lane-mark extraction in complex conditions
CN112883955A (en) Shelf layout detection method and device and computer readable storage medium
CN110826512A (en) Ground obstacle detection method, ground obstacle detection device, and computer-readable storage medium
JP6466038B1 (en) Image processing apparatus and image processing method
JP2010262576A (en) Subject detecting apparatus and program
JP2013251005A (en) Image correction method
CN111881878A (en) Lane line identification method for look-around multiplexing
JP3516118B2 (en) Object recognition method and object recognition device
WO2019242388A1 (en) Obstacle recognition method for library robot based on depth image
JP5442408B2 (en) Image correction method
CN116052120A (en) Excavator night object detection method based on image enhancement and multi-sensor fusion
CN109600598B (en) Image processing method, image processing device and computer readable recording medium
CN114724119B (en) Lane line extraction method, lane line detection device, and storage medium
CN112101268A (en) Vehicle line pressing detection method based on geometric projection
CN116755562B (en) Obstacle avoidance method, device, medium and AR/VR equipment
CN112801077B (en) Method for SLAM initialization of autonomous vehicles and related device
KR101762117B1 (en) Top view creating method for camera installed on vehicle and AVM system
CN115641635A (en) Method for determining focusing parameters of iris image acquisition module and iris focusing equipment
CN114972037A (en) Point cloud and 2D image combined splicing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19898251

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19898251

Country of ref document: EP

Kind code of ref document: A1