A precise parking method and system under visual synchronization guidance

The precise parking method guided by visual synchronization uses two-dimensional flat maps and search tree algorithms, combined with ground markings and image recognition systems, to solve the problems of shared vehicle parking accuracy and difficulty in parking during peak periods, and achieve fast and safe parking. Path planning and low-cost parking and parking management.

CN118366334BActive Publication Date: 2024-10-01TIANJIN HUAHUI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773218.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

The traditional shared vehicle parking method cannot achieve accurate parking, especially in dense areas and peak periods. It is difficult for users to quickly find a suitable parking location, and the vehicle return fails frequently. The traditional fast search random tree algorithm is cumbersome in calculation and has high time complexity, making it difficult to meet the requirements. Vehicle driving habits increase the difficulty of modification and operating costs.

Method used

A precise parking method guided by visual synchronization is used to obtain a two-dimensional flat map, build a search tree, calculate the path driving habit simulation degree and path search value, improve the fast search random tree algorithm, output the user's planned parking path, and pass the ground markings and The image recognition system guides users to park and return the car to achieve precise parking.

Benefits of technology

Quickly plan reasonable parking routes, reduce collision risks, reduce vehicle modification difficulty and operating costs, and achieve low-cost, no-technical-difficulty precise parking and parking turbulence management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366334B_ABST
    Figure CN118366334B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of precision parking technology, and specifically to a method and system for precision parking under visual synchronization guidance, the method comprising: obtaining a two-dimensional plane map around the area where the user is currently located; when constructing a search tree, determining the path search value of each path according to the starting point, end point, path length and width of each path; improving a fast search random tree algorithm based on the path search value, and outputting the user's planned parking path; guiding the user to find a parking spot based on the user's planned parking path; drawing ground markings on the ground of the parking spot, constructing a reference target identifier, combining the ground markings and the reference target, guiding the user to take an image of a vehicle to be returned, processing the image of the vehicle to be returned using an image recognition and comparison system, and prompting the user of the return result through a mobile phone voice. The present invention aims to quickly plan a reasonable parking path for the user, and guide the user to park accurately based on the image taken by the user's mobile phone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of precision parking, and in particular to a method and system for precision parking under visual synchronization guidance. Background Art

[0002] Shared vehicles are gradually being promoted in various cities as a convenient means of transportation. However, with the substantial increase in shared vehicles in cities, random parking has also caused a series of problems. Based on this, the management of shared vehicles has become increasingly strict, and higher requirements are placed on the parking locations of users. The traditional method of fixed-point directional parking is to lay tags on the ground, add RFID radio frequency reading modules to the vehicles, and realize fixed-point parking by reading the tag status; or to install cameras on the vehicles to identify ground markings to achieve fixed-point parking. In the above methods, RFID technology cannot achieve directional parking, and positioning tags need to be deployed on the ground; installing cameras on vehicles greatly increases the cost and design difficulty. And due to the differences in the operation of shared vehicles, the transformation of different vehicles requires targeted improvement plans, which increases the difficulty of transformation.

[0003] Especially for some places with dense parking such as large urban squares, it is difficult for users to quickly find a suitable parking location during the actual parking process. During peak hours, it will take a long time for users to find a suitable parking location for shared vehicles. When returning the vehicle, slight differences are likely to occur, resulting in failure to return the vehicle, which brings a very poor user experience. The traditional fast search random tree algorithm does not restrict the selection of random landing points during the search process, and does not consider the position relationship with the starting point when generating new paths, making the algorithm's calculation process more cumbersome and time-complex; and when the user fails to return the vehicle, it cannot control the adjustment of the re-parking position. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a method and system for precise parking under visual synchronization guidance, and the technical solutions adopted are as follows:

[0005] In a first aspect, an embodiment of the present invention provides a method for precise parking under visual synchronization guidance, the method comprising the following steps:

[0006] Obtain a two-dimensional map of the area around the user's current location, perform path search on the two-dimensional map and build a search tree;

[0007] When constructing the search tree, the path simulation degree of each path to driving habits is determined based on the starting point, end point, path length and width of each path; the path search value of each path is determined based on the path distribution around each path and the path simulation degree to driving habits; based on the path search value, the fast search random tree algorithm is improved to output the user's planned parking path;

[0008] The system guides users to find parking spots based on the parking route planned by users. It draws ground markings on the ground of the parking spots to construct reference target signs. It guides users to take pictures of vehicles to be returned based on the ground markings and reference targets. The images of vehicles to be returned are processed using an image recognition and comparison system, and the processing results are used to prompt users with the return results through mobile phone voice.

[0009] Preferably, the step of obtaining a two-dimensional plane map around the area where the user is currently located, and performing path search on the two-dimensional plane map to construct a search tree includes:

[0010] A binocular vision camera is used to obtain cloud data of the area where the user is currently located, a filtering algorithm is used to downsample the cloud data, and a 3D model algorithm is used to obtain a 3D model of the area where the user is currently located.

[0011] Project all obstacles in the three-dimensional model vertically downward to obtain a two-dimensional plane map; the two-dimensional plane map is a binary map, in which the obstacle pixel point is 1 and the open space pixel point is 0;

[0012] The geometric center of each parking area in the two-dimensional plane map is used as the corresponding marking point; the center of the minimum outer ellipse of the user's current vehicle model is used as the starting point of the fast random search algorithm, and the marking points of all parking areas are used as the end points of the fast search random tree algorithm to perform path search on the two-dimensional plane map and construct a search tree.

[0013] Preferably, determining the degree of simulation of the path to the driving habit of each path according to the starting point, the end point, the path length and the width of each path comprises:

[0014] For the starting point of each path, the path with the starting point as the end point is recorded as the first path;

[0015] An extension line is drawn along the first path through the starting point, and the angle between the extension line and each path is used as the inner angle of the turning circle of each path;

[0016] Calculate the mean of the path lengths of each path and its first path; calculate the ratio of the mean to the turning circle inner angle of each path, and calculate the difference between the ratio and the number 1; obtain the minimum value between the difference and the preset steering simulation degree upper limit as the steering driving habit simulation degree of each path;

[0017] The short axis of the minimum outer ellipse of the vehicle model is recorded as the half width of the vehicle model; the perpendicular bisector of each path is drawn, and the distance from the center point of the perpendicular bisector to the obstacle pixel points on the left and right sides is recorded as the single-side width of the left and right sides of each path respectively;

[0018] Calculate the minimum value and the absolute value of the difference between the single-side widths of the left and right paths; calculate the difference between the minimum value and the half-width of the vehicle model, which is recorded as the first difference; obtain the minimum value between the first difference and the preset upper limit of the habitual simulation degree as the numerator; calculate the sum of the absolute value of the difference and a preset value greater than zero as the denominator; divide the numerator by the denominator to obtain the narrow road habitual simulation degree of each path;

[0019] The product of the turning driving habit simulation degree and the narrow road habit simulation degree is taken as the path pair driving habit simulation degree of each path.

[0020] Preferably, the determining of the path search value of each path based on the path distribution around each path and the path to driving habit simulation degree includes:

[0021] The area of ​​each parking area is used as the search weight of the corresponding parking area;

[0022] Draw a circle with each path as the diameter; count the number of pixels on all other paths in the circle as the numerator; count the number of pixels in the circle that are not on other paths and are non-obstacles as the denominator; divide the numerator by the denominator to get the path density of each path;

[0023] Among them, the path search value of path jn The expression is:

[0024]

[0025] In the formula, is the path simulation degree of path jn to driving habits, is the path density of path jn, K is the number of parking areas in the two-dimensional plane map, is the search weight of the kth parking area, , are the Euclidean distances between the marked point of the kth parking area and the starting node bn of the path jn and the end node n of the path jn, respectively.

[0026] Preferably, the method of improving the fast search random tree algorithm based on the path search value and outputting the user's planned parking path includes:

[0027] Draw a circle with the end node of each path as the center and half the length of each path as the radius, and obtain all the remaining nodes in the circle;

[0028] For the end node and the remaining nodes, search for the common parent node closest to the two nodes along the reverse direction of the search tree; calculate the mean of the path search value of all paths from the two nodes to the common parent node, and take the node corresponding to the maximum mean as the master node, and take the node corresponding to the minimum mean as the slave node of the master node;

[0029] For a circle with the mth pixel point in the two-dimensional plane map as the center and a radius of r, the radius r is enlarged by a preset value each time until an obstacle pixel point exists on the enlarged circle, and the radius of the circle at this time is recorded as the small circle radius; an extension line is drawn along the small circle radius toward the center of the circle along the obstacle pixel point that has been touched, and stops when the obstacle pixel point is touched, and the length of the extension line starting from the center of the circle is recorded as the line radius;

[0030] Among them, the probability distribution of random point landing of the mth pixel is The expression is:

[0031]

[0032] In the formula, , are the radius of the small circle and the radius of the line of the mth pixel, respectively; K is the number of parking areas in the two-dimensional map. is the search weight of the kth parking area, , are the marking point of the k-th parking area, the Euclidean distance between the n-th node and the m-th pixel point, and N is the number of search tree nodes in the two-dimensional plane map. is the path search value of path jn;

[0033] The center of the smallest outer ellipse of the vehicle model currently located by the user in the two-dimensional plane map is used as the starting point of the fast search random tree algorithm, and the marked points of all parking areas are used as the end point of the fast search random tree algorithm;

[0034] Based on the optimization process of the fast search random tree algorithm, the user's planned parking path is output;

[0035] The optimization process is as follows: the probability distribution of random point landing of each pixel point is used as the weight for random point generation of the fast search random tree algorithm; when the node of the new path to be generated is a slave node, the master node of the slave node is used as the node of the new path to be generated.

[0036] Preferably, the ground markings include: the ground markings are multi-color images, and the ground markings are located at the top, middle or bottom of a parking space at a parking spot.

[0037] Preferably, the reference target identifier includes: the reference target identifier is located in the middle of the vehicle; and the reference target identifier includes vehicle identity information.

[0038] Preferably, the step of guiding the user to take an image of the vehicle to be returned by combining ground markings and reference targets includes:

[0039] Draw ground markings and reference targets at preset angles on the mobile phone screen as a guide image. The user shakes the phone to align the reference target with the guide image and takes a photo to obtain the image of the vehicle to be returned.

[0040] Preferably, the image of the vehicle to be returned is processed by an image recognition and comparison system, and the processing result is used to prompt the user of the vehicle return result through a mobile phone voice, including:

[0041] Processing the image of the vehicle to be returned using an image recognition and comparison system, wherein the image recognition and comparison system is set in a mobile phone program provided by the shared vehicle provider;

[0042] The image recognition and comparison system includes: comparing the image of the vehicle to be returned taken by the user with the guide photo of the preset standard, setting the offset angle and offset displacement threshold, and the shared vehicle operator adjusts the threshold according to the city requirements and operation needs; and querying the backend database to compare the vehicle number and the reference target to obtain a matching result;

[0043] The image recognition and comparison system transmits the matching results to the mobile phone. When the parking is inaccurate, the mobile phone sends a voice prompt to the user that the car change has failed, and reminds the user to park again and take a photo for identification; when the parking is accurate, the mobile phone sends a voice prompt to the user that the car has been returned successfully.

[0044] In a second aspect, an embodiment of the present invention further provides a precise parking system under visual synchronous guidance, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0045] The present invention has at least the following beneficial effects:

[0046] The present invention calculates the approximate turning radius through the inner angle of the turning circle and the path length, and then obtains the turning driving habit simulation degree, and calculates the narrow road habit simulation degree through the distance between the path and the obstacle, and finally obtains the path to driving habit simulation degree as an indicator of the search path, avoiding the final path planning not meeting the driving habits of the vehicle, bringing the risk of collision and rollover to the user. Further, the path density of the existing path is analyzed, and the position difference between the vehicle and the parking area caused by the path and the path to driving habit simulation degree are combined to obtain the path search value, and the effect of the existing search path is evaluated, and a path optimization method is constructed to eliminate the inefficient path that has been searched, and speed up the algorithm to plan the user's vehicle parking path. Finally, a random landing point probability distribution is constructed according to the width and narrowness of the path search space and the path search value, as an improved parameter of the fast search random tree, so that the improved fast search random tree algorithm avoids repeated invalid searches during the search, and obtains a search structure that is more in line with the vehicle driving habits, which can quickly plan a reasonable parking path for the user, and guide the user to the parking direction through the indicator light on the vehicle, helping the user to quickly find the best parking point. The present invention simultaneously draws ground markings on parking spots, constructs reference targets, guides users to shoot images of vehicles to be returned according to the ground markings and reference targets on the mobile phone screen, uses an image recognition and comparison system to output processing results, and uses a mobile phone voice to prompt users of parking results, thereby enabling users to park accurately, greatly reducing the difficulty of vehicle modification and damage to the ground, while reducing operating costs, and achieving low-cost, technically-free management of illegal parking and disorderly parking. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 A flowchart of a method for precise parking under visual synchronization guidance provided by the present invention;

[0049] Figure 2 This is a schematic diagram of the inner angle of the turning circle;

[0050] Figure 3 A schematic diagram of ground markings and parking space locations;

[0051] Figure 4 Construct a flow chart with indicators to guide users to park accurately. DETAILED DESCRIPTION

[0052] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation, structure, features and effects of a method and system for precise parking under visual synchronization guidance proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0053] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0054] The specific scheme of a method and system for precise parking under visual synchronization guidance provided by the present invention is described in detail below with reference to the accompanying drawings.

[0055] An embodiment of the present invention provides a method and system for precise parking under visual synchronization guidance.

[0056] Specifically, a method for precise parking under visual synchronization guidance is provided as follows. Figure 1 , the method comprises the following steps:

[0057] Step S001, collect a two-dimensional plane map around the area where the user is currently located.

[0058] This embodiment is to solve the parking problem of shared vehicles, especially in areas where shared vehicles are dense and prone to frequent travel, such as subway entrances, squares, and large apartment buildings, where shared vehicles are difficult to park. Within the operating range of shared vehicles, according to the density of shared vehicle travel, an equal number of binocular vision cameras are installed around them to obtain three-dimensional information around the user's current area in real time, and upload the real-time data to the cloud of the shared vehicle operator.

[0059] First, this embodiment uses a binocular vision camera to obtain cloud data around the user's current location, then uses a voxel filtering algorithm to downsample the cloud data, and finally uses the Delaunay triangulation algorithm to reconstruct the three-dimensional model of the downsampled data to calculate the three-dimensional model around the user's current location, which is used to guide the selection of the best parking location for the shared vehicle. The voxel filtering algorithm and the Delaunay triangulation algorithm for reconstructing the three-dimensional model are both well-known technologies in the field, and will not be repeated in this embodiment.

[0060] There may be obstacles in the three-dimensional model around the user's current area. All obstacles in the three-dimensional model are further projected vertically on the ground, and the projected ground plane map is obtained as the two-dimensional plane map for navigation planning, where the projection of the obstacle is the obstacle on the two-dimensional plane map. The two-dimensional plane map is a binary image, with obstacle pixels as 1 and open space pixels as 0.

[0061] At the same time, a long ellipse is generated according to the vehicle model, the size of which is the minimum outer ellipse of the vertical projection of the shared bicycle on the ground. The short axis of the ellipse is recorded as the half-width B of the vehicle model, and the parking areas of shared vehicles on the two-dimensional plane map are marked. The marking point of each parking area is the geometric center of the area, and the parking area area of ​​the kth marking point is recorded as the search weight of the marking point. .

[0062] Step S002, optimizing the random landing point and path selection of the search tree generated in the fast search random tree algorithm.

[0063] This example uses a search random tree algorithm to complete the search tree for parking route planning on a two-dimensional plane map. The ellipse center of the vehicle model at the user's current location is used as the starting point of the fast search random tree algorithm, and the marked points of all parking areas are used as the end point of the fast search random tree algorithm. The two-dimensional plane map is searched to construct a search tree. Since the traditional search random tree algorithm is a global search algorithm, the search speed may be too slow when facing a large square or a large area, thereby affecting the user's parking efficiency. At the same time, the searched path may not be suitable for the user's travel path because it does not take into account the driving habits of the vehicle, which may bring the risk of vehicle collision and slipping. Therefore, it is improved as follows:

[0064] In the search random tree algorithm, new paths are continuously generated to search the space. When each new path is generated, the tree node closest to the current random landing point advances a certain step length toward the current random landing point, thereby generating a new node as the end point, and connecting the nearest tree node and the end point to generate a new path. In this embodiment, the path generated with node n as the end point is recorded as path jn, and the starting point of path jn is recorded as node bn. It should be noted that the path with node bn as the end point is path jbn. At this point, the marking of nodes and paths in the search tree is completed.

[0065] Further, for the node bn where the starting point of path jn is located, obtain the path jbn with node bn as the end point, and make an extension line along the path jbn through node bn. The angle between the extension line and the path jn is recorded as the turning circle internal angle of the path jn ,like Figure 2 shown.

[0066] Figure 2 is a schematic diagram of the turning circle inner angle of path jn. The average length of path jn and path jbn divided by the turning circle inner angle can be approximated to represent the turning circle radius. The smaller the turning circle radius, the smoother the vehicle turns and the less likely it is to roll over. Further, the perpendicular bisector of path jn is drawn to obtain the distance from the center point of the perpendicular bisector to the obstacles on the left and right sides, which are recorded as the path single-side width on the left and right sides of path jn, respectively. , . Calculate the degree of simulation of the path to driving habits:

[0067]

[0068]

[0069]

[0070] In the formula, is the steering driving habit simulation degree of path jn, is the narrow path habit simulation degree of path jn, is the path simulation degree of path jn to driving habits, min() is the minimum function, , are the path lengths of path jn and path jbn respectively, is the turning circle internal angle of path jn, is the upper limit of the steering simulation degree, C is the upper limit of the habit simulation degree, , They are the single-side widths of the left and right sides of path jn, is the half width of the vehicle model, and +0.1 is to prevent the divisor from being 0. In this embodiment, the upper limit of the steering simulation degree and the upper limit of the habitual simulation degree are set to A=1 and C=1.

[0071] It should be noted that the value obtained by dividing the mean of the path lengths of path jn and path jbn by the inner angle of the turning circle can be approximated as the turning radius of the vehicle when turning. According to experience, when its value is less than or equal to 1 meter, the steering driving habit simulation value is less than or equal to 0. At this time, it is considered that the nth path turns too sharply and there is a great risk of vehicle rollover. The nth path is marked as an invalid path, and the nth node will not participate in the generation of a new path; when its value is greater than 1 meter and less than 1+A meters, the larger its value, the larger the steering driving habit simulation value, which means that the nth path turns smoother and the user's vehicle rolls over less risk; when its value is greater than 1+A meters, the steering driving habit simulation value is always equal to A, indicating that the path turns smoothly enough and there is no need to consider the impact of the path's turning radius on user driving.

[0072] Furthermore, the smaller the difference between the left and right side widths of the path, the closer the path is to the center of the road, the greater the corresponding narrow road habit simulation degree, and the more the path jn conforms to driving habits; the minimum value of the path side width minus the half width of the vehicle model is the distance between the vehicle and the obstacle. When the current value is less than or equal to 0, it is considered that there is a collision risk on the path jn. At this time, the path jn is marked as an invalid path, and the node n will not participate in the generation of a new path; when the distance between the vehicle and the obstacle is within C meters, it is considered that the larger the distance, the less likely the user will collide with the vehicle, and thus the larger the distance between the vehicle and the obstacle, the greater the narrow road habit simulation degree; when the distance between the vehicle and the obstacle is greater than C meters, it is considered that the value has no effect on whether the user will collide with the vehicle while driving, and the numerator in the formula for the narrow road habit simulation degree is always equal to C.

[0073] Finally, the path pair driving habit simulation degree of path jn is obtained. If the path is an invalid path, the path pair search tree is not considered. The larger the value of the path pair driving habit simulation degree, the more path jn conforms to the vehicle driving habit, the lower the vehicle collision risk for the user, and the more path jn should be selected as part of the final search tree.

[0074] Furthermore, a circle is constructed with path jn as the diameter, and the ratio of the number of pixel points on the paths of all other paths within the circle to the number of pixel points that are not on other paths and are non-obstacles is calculated, which is recorded as the path density of path jn. The larger the value, the denser the paths near path jn. Calculate the path search value:

[0075]

[0076] In the formula, is the path search value of path jn, is the path simulation degree of path jn to driving habits, is the path density of path jn, K is the number of parking areas in the two-dimensional plane map, is the search weight of the kth parking area, , are the Euclidean distances between the marked point of the kth parking area and the starting node bn of the path jn and the end node n of the path jn, respectively.

[0077] It should be noted that the path simulation degree of driving habits The larger the path density, The smaller it is, the more the path jn conforms to the user's driving habits, and it is a path that has not been searched in the search space. The corresponding path search value is greater, and this path is a high-quality path in the current fast search tree algorithm; the starting point and end point of the path are calculated with the marked points of each parking area respectively. Euclidean distance and , when two Euclidean distances are subtracted A positive value indicates that the current path is approaching the kth parking area in terms of straight-line distance, while a negative value indicates that it is moving away. The larger the value, the larger the scale of approach or distance. Therefore, the search weight of the kth parking area is used as the weight, and the reciprocal of the value obtained by subtracting the Euclidean distance is weighted and added to the sum of the search weights of the K parking areas to obtain The larger the value, the closer the straight-line distance of the vehicle will be to the parking area after passing through path jn, and the more valuable the path is to search, that is, The bigger.

[0078] Finally, the path search value of each path is obtained. The larger the value, the higher the search value of path jn. The more it should be selected as part of the final path, which can speed up the search and select the closest path that best meets the vehicle's driving habits.

[0079] After each new path is generated, take path jn as an example, take the end node n of path jn as the center and half the length of path jn as the radius to draw a circle, and find the nodes of other paths within the circle. Take node nr as an example, and find the closest common parent node to node n and node nr along the reverse direction of the search tree, and then calculate the mean of the path search value of all paths from the two nodes to the parent node, and take the node with the larger mean as the master node, and the other node as the slave node of the master node. When a new path is generated next time, if the slave node is used as the starting point of the new path, it will be replaced by the corresponding master node. At this point, all nodes within the circle of node n can be analyzed as master and slave nodes.

[0080] Furthermore, when randomly dropping pixels on empty spaces on a two-dimensional map, the distribution around each pixel is considered. In this embodiment, the circle with the mth pixel as the center and a radius of r is enlarged by 1 pixel each time until an obstacle pixel appears on the enlarged circle. The radius of the circle at this time is recorded as the small circle radius R1. The obstacle pixel that has been touched is extended along the small circle radius toward the center of the circle until it touches the obstacle pixel. The length of the extended line starting from the center of the circle is recorded as the line radius R2. Calculate the probability distribution of random point drop:

[0081]

[0082] In the formula, is the probability distribution of random point landing of the mth pixel, , are the radius of the small circle and the radius of the line of the mth pixel, respectively; K is the number of parking areas in the two-dimensional map. is the search weight of the kth parking area, , are the marking point of the k-th parking area, the Euclidean distance between the n-th node and the m-th pixel point, and N is the number of search tree nodes in the two-dimensional plane map. is the path search value of path jn.

[0083] It should be noted that the ratio of the radius of the small circle of the mth pixel to the radius of the line The closer it is to 1, the closer the mth pixel is to the actual road center. Correspondingly, this point should be selected more in random search, guiding the generated new path to the center of the road, which is in line with the driving habits of the vehicle. The search weight of the parking area The weight is the weighted sum of the inverse of the Euclidean distance from the mth pixel to the marker point. The larger the value, the closer the m-th pixel point is to the parking area as a whole. In random search, this point should be selected to guide the generated new path to the parking area. The inverse of the Euclidean distance from the m-th pixel point to the n-th node is used as the weight, and the path search values ​​of multiple paths are weighted and added together. The resulting value is The larger the value is, the greater the search path value near the m-th pixel point is, and the more likely it is that a new path will be generated by generating random points at that point.

[0084] Finally, a random point landing probability distribution value is assigned to each empty pixel in the two-dimensional plane map. The larger the value, the easier it is for the algorithm to generate random points at that point, thus speeding up the algorithm's calculation speed.

[0085] Step S003, improving the fast search random tree algorithm to generate the user's planned parking path, and guiding the user to find the best parking spot through the shared vehicle indicator light.

[0086] This embodiment generates a path by quickly searching a random tree algorithm. The improved steps in the algorithm flow include:

[0087] When the algorithm generates random points, the probability of generating random points at different positions is adjusted according to the probability distribution of random point landing. Pixels with a probability distribution of 0 will not generate random points. Pixels with a larger probability distribution of random point landing are more likely to be selected as random points. At the same time, the path search step length of the generated path parameter is set to It should be noted that, when the node selected as the nearest node has been marked as a slave node, its corresponding master node will replace the slave node as the nearest node.

[0088] The center of the smallest outer ellipse of the vehicle model currently located by the user in the obtained two-dimensional plane map is used as the starting point of the fast search random tree algorithm, and the marked points of all parking areas are used as the end point of the fast search random tree algorithm. The fast search random tree algorithm is used for calculation, and the calculation process is optimized according to the improved steps of the above algorithm flow, and finally the user's planned parking path is output as the guiding path of the user's optimal parking point. Among them, the fast search random tree algorithm is a well-known technology in the field and will not be repeated.

[0089] By installing indicator lights on shared vehicles and uploading the control data of the indicator lights to the cloud of the shared vehicle operator, the user is guided to find the best parking spot based on the guidance path of the user's best parking spot obtained in real time on the cloud and the indicator lights on the user's shared vehicle are controlled.

[0090] Step S004, combining ground markings and reference targets, assists the user's mobile phone in taking photos of the parked vehicle to achieve accurate parking of the shared vehicle.

[0091] After guiding the user to find the best parking spot according to step S003, it is necessary to assist the user to complete the shared vehicle return operation to achieve accurate parking of the shared vehicle. It should be noted that before assisting the user to complete the shared vehicle return operation, this embodiment needs to draw ground markings on the ground and construct reference target marks, so that when assisting the user to complete the shared vehicle return operation, by guiding the user to shoot the reference target and ground markings at the determined position of the mobile phone camera image, the return operation is achieved according to the comparison result.

[0092] It should be noted that when drawing ground markings on the ground where the parking spot is located, the color, width and position of the ground markings need to be adjusted according to the ground conditions. In this embodiment, the ground markings drawn are two-color ground markings, preferably with a large contrast color, such as red (R: 255, G: 0, B: 0) and white (R: 255, G: 255, B: 255). The width of the ground markings is preferably 10CM. The ground markings are set at the upper, middle or lower position of the parking space. In this embodiment, the ground markings are set in the middle of the parking space, such as Figure 3 As shown in the figure, the implementer can adjust the color, width and position of the ground marking line in real time according to the actual ground conditions.

[0093] At the same time, when the reference target logo is painted on the vehicle, in order to make the reference target more obvious, the user can clearly identify the logo with positioning significance when taking pictures with a mobile phone, and the present embodiment needs to set the reference target and the position of the vehicle to which it belongs. It should be noted that the reference target is a multi-color line or a QR code. Taking the multi-color line as an example, the present embodiment adopts the 4-row 4-color method, that is, the combination of the 4 rows of color lines for the reference target sorting is at most 4*3*2=24, and the background program of the shared vehicle supplier binds the vehicle number and the reference target sorting; at the same time, the reference target of the present embodiment is set in the middle of the vehicle, and the embodiment can set the reference target and the position of the vehicle to which it belongs according to the actual situation. Among them, in view of the uniqueness of shared vehicles, a specific target containing the vehicle identity information is printed or posted on the reference target, and the background database of the shared vehicle supplier binds the vehicle number and the vehicle identity information.

[0094] When the user parks the vehicle and needs to return it, the user uses the mobile phone to take a photo of the vehicle to be returned. In order to determine whether the parking position of the vehicle to be returned is correct, this embodiment combines the ground markings and the reference target, and draws the ground markings and the reference target on the mobile phone screen after changing the angle at a certain angle as a guide image. The user shakes the mobile phone to align the reference target with the guide image to take a photo to obtain the image of the vehicle to be returned, and uses the image recognition and comparison system to process the image of the vehicle to be returned to achieve accurate parking judgment. The image recognition and comparison system is set in the mobile phone program provided by the shared vehicle supplier. It should be noted that for the angles at which the ground markings and the reference target are drawn on the mobile phone screen, this embodiment sets the horizontal center line of the ground markings at the center horizontal line position of the mobile phone screen, sets the width of the reference target to occupy 1 / 2 of the horizontal width of the mobile phone screen, and proportionally reduces it, and sets the reference target in the middle of the mobile phone screen. The implementer can set it according to the actual situation.

[0095] The image recognition and comparison system includes: comparing the image of the vehicle to be returned taken by the user with the preset standard guide photo, setting the offset angle and offset displacement threshold, and the shared vehicle operator adjusts the threshold according to the city requirements and operational needs; at the same time, querying the background database to compare the vehicle number and the reference target to obtain the matching result; the image recognition and comparison system transmits the matching result to the mobile phone. If the parking is not accurate, the mobile phone will issue a voice prompt to the user that the car change failed, and remind the user to park again and take a photo for identification; if the parking is accurate, the mobile phone will issue a voice prompt to the user that the car has been successfully returned. The indicator construction flow chart for guiding users to perform accurate parking is shown below. Figure 4 shown.

[0096] At this point, this embodiment uses visual synchronization technology to plan a driving route to the best parking spot for the user, and guides the user in the parking direction through the indicator lights on the vehicle, helping the user to quickly find the best parking spot; at the same time, based on the user's mobile phone taking real-time photos of the vehicle to be returned under the guidance of the guide image, the user is assisted in achieving accurate parking based on the image matching results.

[0097] Based on the same inventive concept as the above method, an embodiment of the present invention also provides a precise parking system under visual synchronous guidance, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned methods for precise parking under visual synchronous guidance are implemented.

[0098] In summary, the embodiment of the present invention calculates the approximate turning radius through the inner angle of the turning circle and the path length, and then obtains the turning driving habit simulation degree, and calculates the narrow road habit simulation degree through the distance between the path and the obstacle, and finally obtains the path to driving habit simulation degree as an indicator of the search path, thereby avoiding the final path planning not conforming to the driving habits of the vehicle, which brings the risk of collision and rollover to the user. Further, the path density of the existing path is analyzed, and the path search value is obtained by combining the position difference between the vehicle and the parking area caused by the path and the path to driving habit simulation degree, and the effect of the existing search path is evaluated, and a path optimization method is constructed to eliminate the inefficient path that has been searched, so as to speed up the algorithm to plan the parking path of the user's vehicle. Finally, a random landing point probability distribution is constructed according to the width and narrowness of the path search space and the path search value, which is used as an improved parameter of the fast search random tree, so that the improved fast search random tree algorithm can avoid repeated invalid searches during the search, and obtain a search structure that is more in line with the driving habits of the vehicle, which can quickly plan a reasonable parking path for the user, and guide the user to the parking direction through the indicator light on the vehicle, helping the user to quickly find the best parking point. The embodiment of the present invention simultaneously draws ground markings on the parking spots, constructs reference targets, guides users to shoot images of vehicles to be returned according to the ground markings and reference targets on the mobile phone screen, uses an image recognition and comparison system to output processing results, and uses a mobile phone voice to prompt users of parking results, thereby enabling users to park accurately, greatly reducing the difficulty of vehicle modification and damage to the ground, while reducing operating costs, and achieving low-cost, technically-free management of illegal parking and disorderly parking.

[0099] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0100] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0101] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A precise parking method under visual synchronization guidance, characterized in that: The method comprises the following steps: Obtain a two-dimensional map of the area around the user's current location, perform path search on the two-dimensional map and build a search tree; When constructing the search tree, the path simulation degree of each path to driving habits is determined based on the starting point, end point, path length and width of each path; the path search value of each path is determined based on the path distribution around each path and the path simulation degree to driving habits; based on the path search value, the fast search random tree algorithm is improved to output the user's planned parking path; Guide users to find parking spots based on the user's planned parking route; draw ground markings on the ground of the parking spot to construct reference target signs, and guide users to take images of the vehicles to be returned in combination with the ground markings and reference targets. The images of the vehicles to be returned are processed using an image recognition and comparison system, and the processing results are used to prompt users with the results of the vehicle return through a mobile phone voice prompt; The step of obtaining a two-dimensional plane map around the area where the user is currently located, and performing path search on the two-dimensional plane map to construct a search tree includes: A binocular vision camera is used to obtain cloud data of the area where the user is currently located, a filtering algorithm is used to downsample the cloud data, and a 3D model algorithm is used to obtain a 3D model of the area where the user is currently located. Project all obstacles in the three-dimensional model vertically downward to obtain a two-dimensional plane map; the two-dimensional plane map is a binary map, in which the obstacle pixel point is 1 and the open space pixel point is 0; The geometric center of each parking area in the two-dimensional plane map is used as the corresponding marking point; the center of the minimum outer ellipse of the vehicle model currently located by the user is used as the starting point of the fast search random tree algorithm, and the marking points of all parking areas are used as the end points of the fast search random tree algorithm, and the path search is performed on the two-dimensional plane map to construct a search tree; Determining the degree of simulation of the path to the driving habit of each path according to the starting point, the end point, the path length and the width of each path includes: For the starting point of each path, the path with the starting point as the end point is recorded as the first path; An extension line is drawn along the first path through the starting point, and the angle between the extension line and each path is used as the inner angle of the turning circle of each path; Calculate the mean of the path lengths of each path and its first path; calculate the ratio of the mean to the turning circle inner angle of each path, and calculate the difference between the ratio and the number 1; obtain the minimum value between the difference and the preset steering simulation degree upper limit as the steering driving habit simulation degree of each path; The short axis of the minimum outer ellipse of the vehicle model is recorded as the half width of the vehicle model; the perpendicular bisector of each path is drawn, and the distance from the center point of the perpendicular bisector to the obstacle pixel points on the left and right sides is recorded as the single-side width of the left and right sides of each path respectively; Calculate the minimum value and the absolute value of the difference between the single-side widths of the left and right paths; calculate the difference between the minimum value and the half-width of the vehicle model, which is recorded as the first difference; obtain the minimum value between the first difference and the preset upper limit of the habitual simulation degree as the numerator; calculate the sum of the absolute value of the difference and a preset value greater than zero as the denominator; divide the numerator by the denominator to obtain the narrow road habitual simulation degree of each path; The product of the turning driving habit simulation degree and the narrow road habit simulation degree is used as the path pair driving habit simulation degree of each path; The determining of the path search value of each path based on the path distribution around each path and the path to driving habit simulation degree includes: The area of ​​each parking area is used as the search weight of the corresponding parking area; Draw a circle with each path as the diameter; count the number of pixels on all other paths in the circle as the numerator; count the number of pixels in the circle that are not on other paths and are non-obstacles as the denominator; divide the numerator by the denominator to get the path density of each path; Among them, the path search value of path jn The expression is: In the formula, is the path simulation degree of path jn to driving habits, is the path density of path jn, K is the number of parking areas in the two-dimensional plane map, is the search weight of the kth parking area, , are the Euclidean distances between the marked point of the kth parking area and the starting node bn of the path jn and the end node n of the path jn, respectively.

2. The method for precise parking under visual synchronization guidance as claimed in claim 1, characterized in that: The method of improving the fast search random tree algorithm based on the path search value and outputting the user's planned parking path includes: Draw a circle with the end node of each path as the center and half the length of each path as the radius, and obtain all the remaining nodes in the circle; For the end node and the remaining nodes, search for the common parent node closest to the two nodes along the reverse direction of the search tree; calculate the mean of the path search value of all paths from the two nodes to the common parent node, and take the node corresponding to the maximum mean as the master node, and take the node corresponding to the minimum mean as the slave node of the master node; For a circle with the mth pixel point in the two-dimensional plane map as the center and a radius of r, the radius r is enlarged by a preset value each time until an obstacle pixel point exists on the enlarged circle, and the radius of the circle at this time is recorded as the small circle radius; an extension line is drawn along the small circle radius toward the center of the circle along the obstacle pixel point that has been touched, and stops when the obstacle pixel point is touched, and the length of the extension line starting from the center of the circle is recorded as the line radius; Among them, the probability distribution of random point landing of the mth pixel is The expression is: In the formula, , are the radius of the small circle and the radius of the line of the mth pixel, respectively; K is the number of parking areas in the two-dimensional map. is the search weight of the kth parking area, , are the marking point of the k-th parking area, the Euclidean distance between the n-th node and the m-th pixel point, and N is the number of search tree nodes in the two-dimensional plane map. is the path search value of path jn; The center of the smallest outer ellipse of the vehicle model currently located by the user in the two-dimensional plane map is used as the starting point of the fast search random tree algorithm, and the marked points of all parking areas are used as the end point of the fast search random tree algorithm; Based on the optimization process of the fast search random tree algorithm, the user's planned parking path is output; The optimization process is as follows: the probability distribution of random point landing of each pixel point is used as the weight for random point generation of the fast search random tree algorithm; when the node of the new path to be generated is a slave node, the master node of the slave node is used as the node of the new path to be generated.

3. The method for precise parking under visual synchronization guidance as claimed in claim 1, characterized in that: The ground marking line includes: the ground marking line is a multi-color image, and the ground marking line is located at the upper part, middle part or lower part of the parking space of the parking spot.

4. The method for precise parking under visual synchronization guidance as claimed in claim 1, characterized in that: The reference target identifier includes: the reference target identifier is located in the middle of the vehicle; and the reference target identifier includes vehicle identity information.

5. The method for precise parking under visual synchronization guidance as claimed in claim 1, characterized in that: The method of guiding the user to take an image of the vehicle to be returned by combining ground markings and reference targets includes: Draw ground markings and reference targets at preset angles on the mobile phone screen as a guide image. The user shakes the phone to align the reference target with the guide image and takes a photo to obtain the image of the vehicle to be returned.

6. The method for precise parking under visual synchronization guidance as claimed in claim 5, characterized in that: The image of the vehicle to be returned is processed by an image recognition and comparison system, and the processing result is used to prompt the user of the vehicle return result through a mobile phone voice, including: Processing the image of the vehicle to be returned using an image recognition and comparison system, wherein the image recognition and comparison system is set in a mobile phone program provided by the shared vehicle provider; The image recognition and comparison system includes: comparing the image of the vehicle to be returned taken by the user with the guide photo of the preset standard, setting the offset angle and offset displacement threshold, and the shared vehicle operator adjusts the threshold according to the city requirements and operation needs; and querying the backend database to compare the vehicle number and the reference target to obtain a matching result; The image recognition and comparison system transmits the matching results to the mobile phone. When the parking is inaccurate, the mobile phone sends a voice prompt to the user that the car has failed to be returned, and reminds the user to park again and take a photo for identification; when the parking is accurate, the mobile phone sends a voice prompt to the user that the car has been successfully returned.

7. A precise parking system under visual synchronization guidance, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.