Vehicle automatic sun shading method and device, electronic equipment and storage medium
By obtaining the parking position and environmental information of the vehicle, and automatically identifying and controlling the vehicle to the shaded and idle target parking space, the problem of temperature rise caused by sunlight when the vehicle is parked in the open air is solved, and automatic sun avoidance is achieved, delaying the aging of the vehicle and improving the user experience.
Patent Information
- Application Number
- CN202411551188.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-03-18
AI Technical Summary
When the vehicle is parked in an open-air environment, the temperature inside the vehicle rises due to sunlight, which causes inconvenience to the user and accelerates the aging of vehicle components.
By obtaining the parking position and environmental information of the vehicle, the vehicle can be automatically identified and controlled to move to the shaded and idle target parking space to achieve automatic sun avoidance.
It realizes automatic identification and parking in a shaded parking space when it is determined that it is necessary to avoid sunlight, avoiding manual operations by users, delaying vehicle aging, and improving user convenience and comfort.
Smart Images

Figure CN119645017A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a method, device, electronic device and storage medium for automatically avoiding the sun on a vehicle. Background Art
[0002] At present, with the popular use of vehicles, users often need to park their cars in an open-air environment after using them. When the sun is strong, the interior of the vehicle will be directly exposed to the sunlight projected from the windshield, causing the temperature inside the car to rise, making it difficult for the human body to bear; high temperature will also aggravate the failure of vehicle components, stimulate the volatilization of harmful substances, and cause harm to the human body and the environment.
[0003] In the related art, the traditional method of preventing the interior of a car from being exposed to the sun is to cover the outside of the vehicle with a sun-proof cloth cover or place a sunshade, a soft sunshade panel, etc. on the windshield inside the car. After parking, the user is required to use a sun-proof cloth cover to cover the two or place a sun visor and other sun protection operations. Therefore, the above-mentioned sun avoidance method will cause great inconvenience to the user. Summary of the invention
[0004] In view of this, the embodiments of the present application propose a method, device, electronic device and storage medium for automatic vehicle sun protection, which can control the vehicle to move and park to a shaded and vacant target parking space to achieve automatic sun protection when it is determined that the vehicle needs to be protected from the sun, thereby avoiding the inconvenience caused to the user by performing sun protection operations after parking.
[0005] In a first aspect, an embodiment of the present application provides a method for automatically avoiding the sun for a vehicle, the method comprising: obtaining a parking position and environmental information of a target vehicle; determining whether the target vehicle needs to be avoided from the sun based on the environmental information; if it is determined that the target vehicle needs to be avoided from the sun, obtaining an image captured by a target camera for an outdoor parking area; based on the image, determining the position of a shaded and vacant target parking space; and controlling the target vehicle to park in the target parking space based on the position of the target parking space and the parking position.
[0006] In a second aspect, an embodiment of the present application provides an automatic sun-avoidance device for a vehicle, the device comprising: a data acquisition module, a sun-avoidance determination module, an image acquisition module, a position determination module and a parking control module, the data acquisition module being used to acquire the parking position and environmental information of the target vehicle; the sun-avoidance determination module being used to determine whether the target vehicle needs to be sun-avoided based on the environmental information; the image acquisition module being used to acquire an image captured by a target camera for an outdoor parking area when it is determined that sun-avoidance is needed; the position determination module being used to determine the position of a shaded and vacant target parking space based on the image; and the parking control module being used to control the target vehicle to be parked in the target parking space based on the position of the target parking space and the parking position.
[0007] In one possible implementation, the position determination module includes an image recognition submodule, an area determination submodule, a first position determination submodule, and a second position determination submodule. The image recognition submodule is used to recognize the image to obtain the vacant parking area and the shaded area in the image; the area determination submodule is used to determine the target vacant parking area located in the shaded area based on the vacant parking area and the shaded area in the image; the first position determination submodule is used to determine the position of the parking space corresponding to the target vacant parking area according to the camera parameters of the target camera and the position of the target vacant parking area in the image; the second position determination submodule is used to determine the target parking space according to the parking position and the position of the parking space.
[0008] In one possible implementation, the first position determination module includes a shading duration determination unit, a path length acquisition unit and a position determination unit; the shading duration determination unit is used to determine the shading duration of the parking spaces corresponding to each of the target vacant parking spaces according to the camera parameters of the target camera, the time of acquiring the image, each of the target vacant parking spaces and the shading areas in which they are located when there are multiple target vacant parking spaces; the path length acquisition unit is used to obtain the path length between the target vehicle and the parking spaces corresponding to each of the target vacant parking spaces according to the parking position and the position of the parking space; the position determination unit is used to select a target parking space from the parking spaces corresponding to the multiple target vacant parking spaces according to the shading duration and the path length corresponding to each of the parking spaces to obtain the position of the target parking space.
[0009] In one possible implementation, the target camera is a camera within a preset distance range from the parking position, and the data acquisition module is further used to obtain images captured by the camera of the target vehicle; and / or to obtain images captured by an outdoor camera within a preset distance range from the target vehicle for an outdoor parking area.
[0010] In one possible implementation, the parking control module is further configured to generate a navigation path according to the position of the target parking space and the parking position; and control the target vehicle to park at the target parking space according to the navigation path.
[0011] In one possible implementation, the environmental information includes light intensity, temperature inside the vehicle, and temperature outside the vehicle: a sun avoidance determination module is used to determine whether the target vehicle needs to avoid the sun based on the light intensity, temperature inside the vehicle, temperature outside the vehicle, a preset light intensity threshold, and a preset temperature difference threshold; if the light intensity is greater than the preset light intensity threshold, and the temperature difference between the temperature inside the vehicle and the temperature outside the vehicle is greater than the preset temperature difference threshold, it is determined that sun avoidance is needed.
[0012] In one possible implementation, the device also includes a first prompt information sending module, which is used to send vehicle sun avoidance request information including the location of the target parking space to a terminal device associated with the target vehicle; the parking control module is also used to control the target vehicle to be parked in the target parking space according to the location of the target parking space when receiving vehicle sun avoidance confirmation information feedback from the terminal device based on the vehicle sun avoidance request information.
[0013] In one possible implementation, the device further includes a second prompt information sending module, configured to send prompt information including the location of the target parking space to a terminal device associated with the target vehicle.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above method.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is executed by a processor.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device obtains the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above method.
[0017] The embodiments of the present application provide a method, device, electronic device and storage medium for automatic sun protection of vehicles. The method includes: obtaining the parking position and environmental information of the target vehicle; determining whether the target vehicle needs to be protected from the sun according to the environmental information; if it is determined that the target vehicle needs to be protected from the sun, obtaining an image collected by a distance target camera for an outdoor parking area; determining the position of a shaded and idle target parking space based on the image; and controlling the target vehicle to park at the target parking space according to the position of the target parking space and the parking position. By adopting the above method, when it is determined that the target vehicle needs to be protected from the sun, the target parking space that is shaded and idle within a preset distance range of the target vehicle can be automatically identified, and the vehicle can be parked at the target parking space. There is no need to find a shaded parking space or perform manual shading to avoid the problem of increased temperature in the vehicle and accelerated aging of the interior or components of the vehicle caused by long-term exposure to the sun, and the discomfort experience of the vehicle caused by exposure to the sun can be avoided. Therefore, by adopting the method of the present application, the aging of the vehicle can be effectively delayed while greatly improving the convenience and comfort of the user using the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A schematic diagram of a process flow of an automatic sun protection method for a vehicle provided in an embodiment of the present application is shown;
[0020] Figure 2 Shows Figure 1 Schematic diagram of the process of step S140;
[0021] Figure 3 Shows Figure 1 Another flow chart of step S140;
[0022] Figure 4 Another schematic diagram of a process of automatically avoiding sunlight on a vehicle provided by an embodiment of the present application is shown;
[0023] Figure 5 A connection block diagram of a target vehicle provided by an embodiment of the present application is shown;
[0024] Figure 6 A flowchart of a method for automatically avoiding the sun on a vehicle provided in an embodiment of the present application is shown;
[0025] Figure 7 A schematic diagram of a sun protection effect proposed in an embodiment of the present application is shown;
[0026] Figure 8 Another schematic diagram of sun protection effect proposed in an embodiment of the present application is shown;
[0027] Fig. 9 A flowchart showing another method for automatically avoiding sunlight on a vehicle provided in an embodiment of the present application is shown.
[0028] Fig.10 A schematic diagram of another sun protection effect proposed in an embodiment of the present application is shown;
[0029] Fig.11 A schematic diagram of another sun protection effect proposed in an embodiment of the present application is shown;
[0030] Fig.12 A connection block diagram of an automatic sun protection device for a vehicle proposed in an embodiment of the present application is shown;
[0031] Fig.13 A structural block diagram of an electronic device for executing the method of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0033] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0034] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0035] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0036] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0037] It should also be noted that in the embodiments of the present application, the collection, use, processing and storage of application information are all subject to the user's permission and must comply with the regulations of the region where the application is located.
[0038] The present application provides a method for automatically avoiding the sun on a vehicle. The method can be applied to an electronic device, which can be a server, a terminal device, a vehicle, or a combination of one or more of the above.
[0039] In some embodiments, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0040] The terminal device may be a smart phone, tablet computer, laptop computer, desktop computer, intelligent voice interaction device, smart home appliance, vehicle-mounted terminal, etc., but is not limited thereto.
[0041] Figure 1 The automatic sun protection method for a vehicle of the present application is specifically shown, and the method can be applied to an electronic device, and the method includes:
[0042] Step S110: Acquire the parking location and environment information of the target vehicle.
[0043] The parking location of the target vehicle refers to the specific geographical location of the vehicle, including precise latitude and longitude coordinates, and may also include altitude information.
[0044] The parking position of the target vehicle may be obtained by obtaining positioning information of one or more positioning modules in the target vehicle and obtaining the parking position of the target vehicle based on the obtained positioning information; wherein the positioning module may be a GPS positioning module, a Beidou positioning module, a cellular network positioning module, and a Wi-Fi positioning module, etc. The parking position of the target vehicle may also be obtained by obtaining the parking position of the target vehicle uploaded by a terminal device associated with the target vehicle.
[0045] The environmental information of the target vehicle may include the target vehicle's environment information (i.e., external environment information, such as external temperature, light intensity, etc.), and may also include the target vehicle's internal environment information (such as internal temperature). The target vehicle's environmental information may be obtained by obtaining environmental information detected by an environmental detection sensor disposed on the target vehicle, wherein the environmental detection sensor includes a light detection sensor for detecting light intensity, and may also include a temperature detection sensor for detecting temperature.
[0046] Among them, there can be multiple light detection sensors and temperature detection sensors respectively, and each of the light detection sensors can be set at different positions on the outer surface of the target vehicle, such as the roof, door, A-pillar, side pillar, etc. In this case, the maximum value, median value or mean value of the light intensity detected by the multiple light detection sensors can be used as the light intensity received by the target vehicle; the multiple temperature sensors include a first temperature sensor set on the outer surface of the target vehicle for detecting the ambient temperature (outside temperature) of the target vehicle, and can also include a second temperature sensor set in the cabin of the target vehicle for detecting the interior temperature of the target vehicle.
[0047] Acquiring environmental information of the target vehicle includes acquiring light intensity detected by a light detection sensor of the target vehicle, and may also include acquiring an outside temperature of the vehicle detected by a first sensor and acquiring an inside temperature of the vehicle detected by a second sensor.
[0048] Step S120: Determine whether the target vehicle needs to avoid the sun according to the environmental information.
[0049] In one possible implementation, if the environmental information includes light intensity, the light intensity and a preset light intensity threshold can be used to determine whether sun avoidance is needed, wherein if the light intensity is greater than the preset light intensity threshold, it is determined that sun avoidance is needed, and if the light intensity is not greater than the preset light intensity threshold, it is determined that sun avoidance is not needed.
[0050] When the light intensity is too high, the decision to avoid the sun can be made immediately, which greatly improves the efficiency of sun avoidance determination.
[0051] In another possible implementation, if the environmental information includes light intensity and outside temperature, whether the target vehicle needs to avoid the sun can be determined based on the light intensity, outside temperature, a preset light intensity threshold and a first preset temperature threshold, wherein if the light intensity is greater than the preset light intensity threshold and the outside temperature is greater than the first preset temperature threshold, it is determined that sun avoidance is needed, otherwise no sun avoidance is needed.
[0052] By comprehensively considering the light intensity and the temperature outside the vehicle, it is possible to more accurately determine whether sun avoidance is needed, that is, sun avoidance should only be performed when the light intensity and the temperature outside the vehicle are both high. This method can adapt better to different seasons and climatic conditions and improve the sun avoidance effect.
[0053] In another possible implementation, if the environmental information includes light intensity, indoor temperature and outdoor temperature, then whether the target vehicle needs to avoid the sun can be determined based on the light intensity, outdoor temperature, indoor temperature, a preset light intensity threshold and a preset temperature difference threshold. If the light intensity is greater than the preset light intensity threshold and the difference between the outdoor temperature and the indoor temperature is greater than the preset temperature difference threshold, it is determined that sun avoidance is needed, otherwise sun avoidance is not needed.
[0054] By adopting the above solution and considering the light intensity, outside temperature and inside temperature at the same time, a more comprehensive assessment can be made as to whether the vehicle needs to be protected from the sun. This ensures that the temperature inside the vehicle is not too high and improves riding comfort.
[0055] In another possible implementation, if the environmental information includes light intensity, indoor temperature and outdoor temperature, then it is possible to determine whether the target vehicle needs to avoid the sun based on the light intensity, outdoor temperature, indoor temperature, preset light intensity threshold, preset temperature threshold and preset temperature difference threshold. If the light intensity is greater than the preset light intensity threshold, the outdoor temperature is greater than the preset temperature threshold, and the difference between the outdoor temperature and the indoor temperature is greater than the preset temperature difference threshold, then it is determined that sun avoidance is needed; otherwise, sun avoidance is not needed.
[0056] By adopting the above method, it is possible to determine that sun avoidance is needed when the temperature outside the car is high, the light is strong, and the temperature inside the car is greater than the temperature outside the car, thereby ensuring that sun avoidance is performed only when it is really necessary, thereby improving the targeted nature of sun avoidance and reducing unnecessary sun avoidance operations.
[0057] It should be understood that the above-mentioned sun avoidance confirmation methods are only illustrative, and there may be more sun avoidance confirmation methods.
[0058] Step S130: If it is determined that sun protection is required, an image captured by a target camera for an outdoor parking area is obtained.
[0059] Among them, the target camera can be a camera within a preset distance range from the target vehicle, such as 50 meters, 100 meters or 200 meters, etc., and can be set according to actual needs, and no specific limitation is made here.
[0060] The target camera may be a camera including the target vehicle, and accordingly, the above-mentioned image may be an image captured when the vehicle is parked. The above-mentioned camera may also be a camera in an open-air parking lot, and accordingly, the above-mentioned image is an image captured by a camera for open-air parking. It may also be a camera set on buildings, street lights or trees, etc., which collects images for outdoor parking areas.
[0061] It is worth noting that the above-mentioned image should have high definition and be able to identify the parking area and the shaded area in the image.
[0062] The target camera has camera parameters, and the camera parameters may include the camera's geographic location, direction angle (such as pitch angle, yaw angle, roll angle), focal length, etc., so that the exact position of an object in the image in the real world can be determined based on the camera parameters of the camera and the image captured by the camera.
[0063] Step S140: Based on the image, determine the location of the shaded and vacant target parking space.
[0064] In one possible implementation, see Figure 2 , the above step S140 may include:
[0065] Step S141: Identify the image to obtain the vacant parking area and the shaded area in the image.
[0066] Specifically, the parking space recognition model can be used to recognize the parking space in the image to obtain the vacant parking space area in the image, and the shaded area recognition model can be used to recognize the shaded area to obtain the shaded area in the image. The above-mentioned recognition model can be obtained by pre-training, and the specific training process can be: obtaining a first image sample data set used for training the recognition model (parking space recognition model or shaded area recognition model), the image data set can be a plurality of sample images and the first semantic label of each pixel in the sample image, wherein the first semantic label is used to indicate the category of the pixel (e.g., whether it is a parking space pixel or whether it is a shaded pixel). The recognition model used may include a feature extraction layer and a classification layer, wherein the feature extraction layer is used to extract the semantic features of each pixel, and the classification layer is used to classify and recognize based on the extracted semantic features to obtain the first predicted semantics of each pixel in the sample image, and the first predicted semantics is used to indicate the predicted category of each pixel (e.g., whether it is a pixel representing a parking space or whether it is a shaded pixel). After that, the recognition loss is determined based on the first predicted semantics and the first semantic label of each pixel in the sample image, so as to adjust the parameters of the recognition model based on the recognition loss until the first training end condition is reached. Among them, the first training end condition is that the number of iterations reaches a first preset number or the first recognition loss is less than a preset loss.
[0067] Step S142: based on the vacant parking space area and the shaded area in the image, determining a target vacant parking space area located in the shaded area.
[0068] Specifically, for each identified vacant parking area, the intersection area with the shaded area can be calculated, and the vacant parking area whose ratio between the intersection area and the area of the corresponding space parking area is greater than a preset ratio is determined as the target vacant parking area located in the shaded area. The preset ratio can be 0.8, 0.9 or 0.95, etc., which can be set according to actual needs.
[0069] Step S143: determining the position of the parking space corresponding to the target vacant parking space area according to the camera parameters of the target camera and the position of the target vacant parking space area in the image.
[0070] The position of the target vacant parking space area in the image can indicate the pixel coordinates of the target point (such as the center point and / or corner point, etc.) of the target vacant parking space area. The coordinates of the target point in the real world can be obtained according to the pixel coordinates of the target point in the image and the camera parameters, wherein the coordinates of the target point in the display world are the position of the parking space corresponding to the target vacant parking space area.
[0071] It is worth mentioning that there may be multiple images, and the above steps can be used for each image to obtain the target free area in each image, and finally determine the location of one or more parking spaces.
[0072] Step S144: determining a target parking space according to the parking position and the position of the parking space.
[0073] In one possible implementation, if the position of the parking space determined through the above steps is one, the position of the determined parking space can be used as the position of the target parking space.
[0074] In another possible implementation, if there are multiple parking spaces determined through the above steps, the parking space closest to the parking position may be selected from the multiple parking spaces as the target parking space according to the positions of the parking spaces.
[0075] The above-mentioned selection of the parking space closest to the parking position may refer to selecting the parking space closest to the parking position in a straight-line distance, or may refer to selecting the parking space closest to the parking position in a path distance.
[0076] In another possible implementation, if there are multiple parking spaces determined by the above steps, the above step S144 can also be: generate a navigation path corresponding to each parking space according to the parking position and the position of each parking space, detect the number of obstacles on the navigation path corresponding to each parking space, determine the safety level of the navigation path according to the number of obstacles on the navigation path corresponding to the parking space and the road type, and select the target parking space from the multiple parking spaces according to the length and safety level of the navigation path corresponding to each parking space. Among them, the road type can be a single lane, a double lane, a three-lane or a four-lane, etc., and the corresponding relationship between the safety level and the obstacle number range and the road type is pre-stored, wherein there are multiple pre-stored safety levels, and each safety level corresponds to the road type and the number of obstacles. Specifically, the safety level of the navigation path can be determined by the above corresponding relationship and the number of obstacles and road type on the corresponding navigation path. Thereafter, different safety levels can correspond to different safety level scores, and the path length score corresponding to each parking space can be obtained according to the path length corresponding to each parking space. The safety level score and the path length score are weighted and summed to obtain the score corresponding to each parking space, and the parking space with the highest score is selected as the target parking space.
[0077] Among them, when obtaining the path length score of each parking space, it can be obtained based on the corresponding relationship between the preset length and the score and the path length of the parking space, or it can be obtained by comparing the path length of the parking space with the sum of the path lengths of multiple parking spaces.
[0078] By adopting the above method, the number of obstacles and road types on the navigation path are comprehensively considered to evaluate the safety level of the parking space. This ensures that the selected parking space not only has a good shading effect, but also has a safe path, avoiding encountering obstacles or entering unsafe roads during driving.
[0079] In another possible implementation, if there are multiple parking spaces determined by the above steps, that is, there are multiple target free parking space areas, the shading duration of the parking spaces corresponding to each target free parking space area can be determined based on the camera parameters, the time of collecting the image, each target free parking space area and the shading area where it is located. The path length between the target vehicle and the parking space corresponding to each target free parking space area is obtained based on the parking position and the position of the parking space; the target parking space is selected from the parking spaces corresponding to the multiple target free parking space areas based on the shading duration and path length corresponding to each parking space to obtain the position of the target parking space.
[0080] Specifically, the altitude angle (the angle between the sun and the horizon) and azimuth (the direction of the sun in the sky) of the sun can be calculated according to the time and parking position (latitude and longitude) of the image, and the shape and position of the shaded object can be determined according to the altitude angle and azimuth of the sun and the shaded area (the shape and position of the shaded object can also be directly obtained). According to the altitude angle and azimuth of the sun, the change of the sun's trajectory over time, and the shape and position of the shaded object, the shaded area in the future (such as the next few hours) is predicted, and the change data of the shaded state and time of each parking space are obtained. The shaded duration of each parking space is obtained according to the change data of the shaded state and time of each parking space.
[0081] After obtaining the shading duration and path length, the score of each parking space is obtained according to the shading duration and path length corresponding to each parking space, and the parking space with the highest score is selected as the target parking space.
[0082] By calculating the altitude and azimuth of the sun, combined with the shape and position of the shading object, the shading area in the future is predicted, and the shading duration of each parking space is calculated. Finally, the shading duration and path length are combined to calculate the score of each parking space, and the parking space with the highest score is selected as the target parking space, so that the target vehicle can be parked in a location with a longer shading time and closer to the parking position, improving the sun protection effect.
[0083] By adopting the above steps S141-S144, using the parking space recognition model and the shaded area recognition model, the vacant parking space area and the shaded area in the image can be accurately identified. This helps to ensure that the system can correctly distinguish between parking spaces and non-parking areas, and determine which areas are currently shaded. Using camera parameters (such as position, angle, focal length, etc.) and the pixel coordinates of the target point in the image, the position of the parking space corresponding to the target vacant parking space area in the real world can be accurately calculated.
[0084] In another possible implementation, see Figure 3 , the above step S140 may include:
[0085] Step S145: Identify the image to obtain shaded and vacant parking spaces in the image.
[0086] Specifically, the shaded parking space recognition model is used to recognize the parking space in the image to obtain the shaded and vacant parking space area in the image. The above-mentioned recognition model can be obtained by pre-training, and the specific training process can be: obtaining a second image sample data set used as the shaded parking space recognition model, the image data set can be a plurality of sample images and the first semantic label of each pixel in the sample image, wherein the first semantic label is used to indicate the category of the pixel (e.g., shaded parking space pixel point, shaded non-parking space pixel point, parking space non-shaded pixel point, and non-shaded non-parking space pixel point). The shaded parking space recognition model adopted may include a feature extraction layer and a classification layer, wherein the feature extraction layer is used to extract the semantic features of each pixel, and the classification layer is used to perform classification recognition based on the extracted semantic features to obtain the second predicted semantics of each pixel in the sample image, and the second predicted semantics is used to indicate the predicted category of each pixel (e.g., predicted to be a shaded parking space pixel, a shaded non-parking space pixel, a parking space non-shaded pixel, or a non-shaded non-parking space pixel), and then, the recognition loss is determined based on the second predicted semantics and the second semantic label of each pixel in the sample image, so as to adjust the parameters of the recognition model based on the recognition loss until the second training end condition is reached. The second training end condition is that the number of iterations reaches the second preset number of times or the recognition loss is less than the second preset loss.
[0087] Step S146: determining the position of the parking space corresponding to the target vacant parking space area according to the camera parameters of the target camera and the position of the target vacant parking space area in the image.
[0088] Step S147: determining a target parking space according to the parking position and the position of the parking space.
[0089] For the specific implementation principles of the above steps S146-S147, please refer to the above-mentioned specific description of steps S143-S144, which will not be repeated here.
[0090] In another possible implementation, before determining the position of the shaded and vacant target parking space based on the image and the camera parameters, the method further includes: obtaining historical usage and historical shading conditions of each parking space within a first specified distance range from the target vehicle, using a pre-trained machine learning model to predict the predicted usage and predicted shading conditions of each parking space at the moment of image acquisition, and selecting candidate parking spaces predicted to be unused and in a shaded state at the moment of image acquisition; the above-mentioned step S130 includes: obtaining an image captured by a camera within a second specified distance range from the candidate parking space according to the position of the candidate parking space and executing the above-mentioned steps S141-S144, wherein the sum of the first specified distance and the second specified distance is the preset distance.
[0091] In some scenarios, each parking space is provided with a parking space sign, and the parking space sign can be obtained by recognizing the image. On the basis of executing the aforementioned steps S141 and 142, the position of the shaded and vacant target parking space is obtained based on the sign of the shaded and vacant parking space and the correspondence between the pre-set parking space position and the sign.
[0092] Step S150: According to the position of the target parking space, control the target vehicle to park at the target parking space.
[0093] Specifically, a navigation path is generated according to the position of the target parking space and the parking position; and the target vehicle is controlled to park at the target parking space according to the navigation path.
[0094] It is worth mentioning that if the above method is executed by a vehicle, such as by a vehicle controller of the vehicle, the power system, steering system and braking system of the target vehicle can be controlled to work together to park the target vehicle in the target parking space.
[0095] By adopting the above method, when it is determined that the target vehicle needs to avoid the sun according to the environmental information of the target vehicle, the target parking space that is shaded and idle within a preset distance range of the target vehicle can be automatically identified, and the vehicle can be parked at the target parking space. There is no need to find a shaded parking space or perform manual shading, which can avoid the problem of increased temperature in the vehicle and accelerated aging of the vehicle interior or components caused by long-term exposure to the sun, and also avoid the discomfort experience brought to users by exposure of the vehicle. Therefore, by adopting the method of the present application, the aging of the vehicle can be effectively delayed while greatly improving the convenience and comfort of users using the vehicle.
[0096] Considering that the user may only leave the vehicle for a short time when getting off the vehicle instead of parking it for a long time, in one possible implementation method, please refer to Figure 4 After executing step S140, the method further includes:
[0097] S160: Sending vehicle sun avoidance request information including the location of the target parking space to a terminal device associated with the target vehicle;
[0098] The above step S150 includes: if vehicle sun-shielding confirmation information fed back by the terminal device based on the vehicle sun-shielding request information is received, controlling the target vehicle to park at the target parking space according to the position of the target parking space.
[0099] In order to enable the user to quickly find the vehicle after the vehicle is out of the sun, in one possible implementation, the method further includes: sending prompt information including the location of the target parking space to a terminal device associated with the target vehicle.
[0100] The location information of the target parking space may be sent in the form of an address link via a text message application push notification or the like, and the user may directly click on the link, and the map application or web map service will automatically open and navigate to the location.
[0101] The location information of the target vehicle may also be sent in the form of text description, including detailed information such as street name, house number, and may also include latitude and longitude information.
[0102] like Figure 5As shown, a schematic diagram of the structure of the target vehicle is shown, wherein the target vehicle may include a vehicle controller, a vehicle operation system (such as a power system, a braking system and a steering system) connected to the vehicle controller, an environmental detection sensor (such as a light detection sensor for collecting light intensity, a first temperature sensor for detecting the temperature outside the vehicle and a second temperature sensor for detecting the indoor temperature), a navigation system, a camera (for collecting images), and a telematics processor (an image collected by an outdoor camera for an outdoor parking area), wherein the vehicle controller may turn on the sun protection function, and obtain the parking position after the target vehicle is parked, obtain the temperature inside the vehicle, the temperature outside the vehicle and the light intensity collected by the environmental detection sensor at each preset time interval, and if it is determined that sun protection is required based on the temperature inside the vehicle, the temperature outside the vehicle and the light intensity, obtain the image collected by its own camera and obtain the image collected by the outdoor camera within a preset distance range from the parking position through the telematics processor, and then, the position of the shaded and vacant target parking space in the image may be determined based on the acquired image and the camera parameters corresponding to each image, and the power system, the braking system and the steering system may be controlled to work together with the assistance of the navigation system to park the vehicle in the shaded and vacant target parking space. Through the above process, the intelligent driving sensor can be used to collect environmental information and automatically select a cool parking space, without adding additional sun protection structures, and without the need to store and unfold the sun protection structures. By automatically moving the vehicle to a cool parking space, it avoids direct sunlight and reduces the risk of aging of vehicle parts. In addition, when the owner gets in the car, there is no need for the air conditioning system to run at high load for a long time, reducing energy consumption; avoiding direct sunlight, which causes the battery temperature of new energy vehicles to be too high, starts the air conditioning system to cool the battery and reduces energy consumption. Therefore, the Chi Ang sun avoidance method provided in this application has significantly improved the cost reduction, energy consumption reduction, vehicle parts aging, and passenger comfort experience.
[0103] like Figure 6As shown, the automatic sun avoidance of the target vehicle according to the image collected by the camera installed on the building is used to illustrate the example. The camera installed on the building is used to collect images of the outdoor parking area around the building. After the sun avoidance function of the target vehicle is turned on and the target vehicle is parked, if the sunlight intensity is strong and shines on the target vehicle at this time, it can be determined whether sun avoidance is needed according to the environmental information detected by the environmental detection sensor of the target vehicle (such as light intensity, temperature inside the vehicle and temperature outside the vehicle). If sun avoidance is needed, the image collected by the camera installed on the building within a preset distance range from the target vehicle is obtained. Specifically, if the image collection time is in the morning, that is, the sun is in the east, if the sunlight shines on the building, the west side of the building will be shaded to form a shaded area because the building blocks the light. At this time, if there is an empty parking lot in the shaded area, the target parking space can be determined according to the parameters of the camera and the position of the shaded and empty parking space in the image. Then the vehicle can be controlled to park at the target parking space, such as Figure 7 As shown in FIG. 1 , a schematic diagram of parking a vehicle in a shaded parking space on one side of a building in the morning is shown. If the image is collected in the afternoon, that is, the sun is in the west, if the sunlight shines on the building, the east side of the building will be shaded to form a shaded area because the building blocks the light. At this time, if there is an empty parking space in the shaded area, the target parking space can be determined based on the camera parameters and the position of the shaded and empty parking space in the image, and then the vehicle can be controlled to park in the target parking space, such as Figure 8 , which is a schematic diagram showing parking a vehicle in a shaded parking space on the side of a building in the afternoon.
[0104] like Fig. 9 As shown, the automatic sun avoidance using the image captured by the camera of the target vehicle itself is used as an example for explanation, wherein the camera of the target vehicle itself can capture the scene images around it, such as the parking spaces on both sides of the road, where there are usually trees on both sides of the road; after the target vehicle is parked, if the intensity of the sun's light is strong and shines on the target vehicle at this time, it can be determined whether it is necessary to avoid the sun according to the environmental information detected by the environmental detection sensor of the target vehicle (such as light intensity, temperature inside the vehicle, and temperature outside the vehicle). If it is necessary to avoid the sun, the image captured by the camera set by the target vehicle is obtained. Specifically, if the image is collected in the morning, that is, the sun is in the east, if the sunlight shines on the trees, the west side of the trees will be shaded to form a shaded area because the trees block the light. At this time, if there is an empty parking lot in the shaded area, the target parking space can be determined according to the parameters of the camera and the position of the shaded and empty parking space in the image. Then the vehicle can be controlled to park at the target parking space, such as Fig.10As shown in FIG. 1 , a schematic diagram of parking a vehicle in a parking space under the shade of a tree in the morning is shown. If the image is collected in the afternoon, that is, the sun is in the west, if the sunlight shines on the trees, the east side of the trees will be shaded to form a shaded area because the trees block the light. At this time, if there is an empty parking space in the shaded area, the target parking space can be determined based on the camera parameters and the position of the shaded and empty parking space in the image, and then the vehicle can be controlled to park in the target parking space, such as Fig.12 FIG. 4 is a schematic diagram showing a vehicle being parked in a parking space under the shade of a tree in the afternoon.
[0105] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0106] See also Fig.12 Another embodiment of the present application provides an automatic sun-avoidance device 200 for a vehicle, the device 200 comprising: a data acquisition module 210, a sun-avoidance determination module 220, an image acquisition module 230, a position determination module 240 and a parking control module 250, the data acquisition module 210 is used to acquire the parking position and environmental information of the target vehicle; the sun-avoidance determination module 220 is used to determine whether the target vehicle needs to be sun-avoided according to the environmental information; the image acquisition module 230 is used to acquire the image collected by the target camera for the outdoor parking area when it is determined that sun-avoidance is needed; the position determination module 240 is used to determine the position of the shaded and vacant target parking space based on the image; the parking control module 250 is used to control the target vehicle to park at the target parking space according to the position of the target parking space and the parking position.
[0107] In one possible implementation, the position determination module includes an image recognition submodule, an area determination submodule, a first position determination submodule, and a second position determination submodule. The image recognition submodule is used to recognize the image to obtain the vacant parking area and the shaded area in the image; the area determination submodule is used to determine the target vacant parking area located in the shaded area based on the vacant parking area and the shaded area in the image; the first position determination submodule is used to determine the position of the parking space corresponding to the target vacant parking area according to the camera parameters of the target camera and the position of the target vacant parking area in the image; the second position determination submodule is used to determine the target parking space according to the parking position and the position of the parking space.
[0108] In one possible implementation, the first position determination module includes a shading duration determination unit, a path length acquisition unit and a position determination unit; the shading duration determination unit is used to determine the shading duration of the parking spaces corresponding to each of the target vacant parking spaces according to the camera parameters of the target camera, the time of acquiring the image, each of the target vacant parking spaces and the shading areas in which they are located when there are multiple target vacant parking spaces; the path length acquisition unit is used to obtain the path length between the target vehicle and the parking spaces corresponding to each of the target vacant parking spaces according to the parking position and the position of the parking space; the position determination unit is used to select a target parking space from the parking spaces corresponding to the multiple target vacant parking spaces according to the shading duration and the path length corresponding to each of the parking spaces to obtain the position of the target parking space.
[0109] In one possible implementation, the target camera is a camera within a preset distance range from the parking position, and the data acquisition module is further used to obtain images captured by the camera of the target vehicle; and / or to obtain images captured by an outdoor camera within a preset distance range from the target vehicle for an outdoor parking area.
[0110] In one possible implementation, the parking control module is further configured to generate a navigation path according to the position of the target parking space and the parking position; and control the target vehicle to park at the target parking space according to the navigation path.
[0111] In one possible implementation, the environmental information includes light intensity, temperature inside the vehicle, and temperature outside the vehicle: a sun avoidance determination module is used to determine whether the target vehicle needs to avoid the sun based on the light intensity, temperature inside the vehicle, temperature outside the vehicle, a preset light intensity threshold, and a preset temperature difference threshold; if the light intensity is greater than the preset light intensity threshold, and the temperature difference between the temperature inside the vehicle and the temperature outside the vehicle is greater than the preset temperature difference threshold, it is determined that sun avoidance is needed.
[0112] In one possible implementation, the device also includes a first prompt information sending module, which is used to send vehicle sun avoidance request information including the location of the target parking space to a terminal device associated with the target vehicle; the parking control module is also used to control the target vehicle to be parked in the target parking space according to the location of the target parking space when receiving vehicle sun avoidance confirmation information feedback from the terminal device based on the vehicle sun avoidance request information.
[0113] In one possible implementation, the device further includes a second prompt information sending module, configured to send prompt information including the location of the target parking space to a terminal device associated with the target vehicle.
[0114] Each module in the above-mentioned device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules. It should be noted that the device embodiment in this application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment, which will not be repeated here.
[0115] The following will be combined Fig.13 An electronic device provided by the present application is described.
[0116] See also Fig.13 Based on the vehicle automatic sun avoidance method provided in the above embodiment, the embodiment of the present application also provides another electronic device 100 including a processor 102 that can execute the above method. The electronic device 100 can be a server, a terminal device or a vehicle. The terminal device can be a smart phone, a tablet computer, a computer or a portable computer and other devices.
[0117] The electronic device 100 further includes a memory 104 . The memory 104 stores a program that can execute the contents of the aforementioned embodiments, and the processor 102 can execute the program stored in the memory 104 .
[0118] Among them, the processor 102 may include one or more cores for processing data and a message matrix unit. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Optionally, the processor 102 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 102 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented separately through a communication chip.
[0119] The memory 104 may include a random access memory (RAM) or a read-only memory (ROM). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as parking location, environmental information, and images) acquired by the electronic device 100 during use.
[0120] The electronic device 100 may also include a network module and a screen. The network module is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices, such as communicating with an audio playback device. The network module may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, and the like. The network module may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The screen may display interface content and perform data interaction, such as displaying the aforementioned interface, and triggering operations via the screen.
[0121] In some embodiments, the electronic device 100 may further include: a peripheral interface 106 and at least one peripheral device. The processor 102, the memory 104 and the peripheral interface 106 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral interface via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency component 108, a positioning component 112, a camera 114, an audio component 116, a display screen 118 and a power supply 122.
[0122] The peripheral interface 106 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 102 and the memory 104. In some embodiments, the processor 102, the memory 104, and the peripheral interface 106 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 102, the memory 104, and the peripheral interface 106 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.
[0123] The radio frequency component 108 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency component 108 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency component 108 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency component 108 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency component 108 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency component 108 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0124] The positioning component 112 is used to locate the current geographic location of the electronic device to implement navigation or LBS (Location Based Service). The positioning component 112 can be a positioning component based on the US GPS (Global Positioning System), Beidou system or Galileo system.
[0125] The camera 114 is used to capture images or videos. Optionally, the camera 114 includes a front camera and a rear camera. Usually, the front camera is arranged on the front panel of the electronic device 100, and the rear camera is arranged on the back of the electronic device 100. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera 114 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0126] The audio component 116 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 102 for processing, or input them into the RF component 108 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there can be multiple microphones, which are respectively arranged at different parts of the electronic device 100. The microphone can also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 102 or the RF component 108 into sound waves. The speaker can be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio component 114 may also include a headphone jack.
[0127] The display screen 118 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 118 is a touch display screen, the display screen 118 also has the ability to collect touch signals on the surface or above the surface of the display screen 118. The touch signal can be input to the processor 102 as a control signal for processing. At this time, the display screen 118 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 118 can be one, and the front panel of the electronic device 100 is set; in other embodiments, the display screen 118 can be at least two, which are respectively set on different surfaces of the electronic device 100 or are folded; in some other embodiments, the display screen 118 can be a flexible display screen, which is set on the curved surface or folded surface of the electronic device 100. Even, the display screen 118 can also be set as a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 118 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, machine light-emitting diode).
[0128] The power supply 122 is used to power various components in the electronic device 100. The power supply 122 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 122 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0129] The embodiment of the present application also provides a structural block diagram of a computer-readable storage medium. The computer-readable medium stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0130] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0131] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the method described in the above various optional implementations.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for automatically avoiding sunlight on a vehicle, characterized in that: The method comprises: Obtain the parking location and environmental information of the target vehicle; Determining whether the target vehicle needs to be protected from the sun according to the environmental information; If it is determined that sun protection is required, obtain images collected by the target camera for the outdoor parking area; Based on the image, determining a location of a shaded and vacant target parking space; According to the position of the target parking space and the parking position, the target vehicle is controlled to be parked in the target parking space.
2. The method according to claim 1, characterized in that The determining, based on the image, a position of a shaded and vacant target parking space includes: Recognize the image to obtain an empty parking space area and a shaded area in the image; Based on the vacant parking space area and the shaded area in the image, determining a target vacant parking space area located in the shaded area; Determine the position of the parking space corresponding to the target vacant parking space area according to the camera parameters of the target camera and the position of the target vacant parking space area in the image; A target parking space is determined according to the parking position and the position of the parking space.
3. The method according to claim 2, characterized in that The determining of the target parking space according to the parking position and the position of the parking space comprises: If there are multiple target vacant parking spaces, determine the shading duration of the parking spaces corresponding to the target vacant parking spaces according to the camera parameters of the target camera, the time of collecting the image, the target vacant parking spaces and the shading areas where the target vacant parking spaces are located; Obtaining the path length between the target vehicle and the parking space corresponding to each target vacant parking space area according to the parking position and the position of the parking space; According to the shading duration and path length corresponding to each parking space, a target parking space is selected from the parking spaces corresponding to the plurality of target vacant parking space areas to obtain the position of the target parking space.
4. The method according to claim 1, characterized in that: The target camera is a camera within a preset distance range from the parking position, and the step of acquiring an image captured by the target camera for an outdoor parking area includes: Acquire an image captured by a camera of the target vehicle; and / or An image captured by an outdoor camera within a preset distance range from the target vehicle for an outdoor parking area is obtained.
5. The method according to claim 1, characterized in that The controlling the target vehicle to park at the target parking space according to the position of the target parking space and the parking position comprises: generating a navigation path according to the position of the target parking space and the parking position; The target vehicle is controlled to park at the target parking space according to the navigation path.
6. The method according to claim 1, characterized in that The environmental information includes light intensity, temperature inside the vehicle and temperature outside the vehicle; The determining whether the target vehicle needs to avoid the sun according to the environmental information includes: Whether the target vehicle needs to avoid the sun is determined based on the light intensity, the temperature inside the vehicle, the temperature outside the vehicle, the preset light intensity threshold and the preset temperature difference threshold. If the light intensity is greater than the preset light intensity threshold and the temperature difference between the temperature inside the vehicle and the temperature outside the vehicle is greater than the preset temperature difference threshold, it is determined that sun avoidance is needed.
7. The method according to claim 1, characterized in that After determining the position of the shaded and vacant target parking space based on the image and the camera parameters, the method further includes: Sending vehicle sun avoidance request information including the location of the target parking space to a terminal device associated with the target vehicle; The controlling the target vehicle to park at the target parking space according to the position of the target parking space includes: If vehicle sun-shielding confirmation information fed back by the terminal device based on the vehicle sun-shielding request information is received, the target vehicle is controlled to be parked at the target parking space according to the position of the target parking space.
8. The method according to claim 1, characterized in that After controlling the target vehicle to park at the target parking space according to the position of the target parking space, the method further includes: Send prompt information including the location of the target parking space to a terminal device associated with the target vehicle.
9. An automatic sun protection device for a vehicle, characterized in that: The device comprises: A data acquisition module, used to obtain the parking location and environmental information of the target vehicle; A sun avoidance determination module, used to determine whether the target vehicle needs to be sun-avoided according to the environmental information; An image acquisition module is used to acquire images collected by a target camera for an outdoor parking area when it is determined that sun protection is required; a position determination module, configured to determine the position of a shaded and vacant target parking space based on the image; The parking control module is used to control the target vehicle to park in the target parking space according to the position of the target parking space and the parking position.
10. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the method according to any one of claims 1 to 8.
12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Control method for automatic valet parking
CN108891411A
Car moving prompting method and car moving prompting device
CN115593333A
Parking space recommendation method and device, electronic equipment, storage medium and program product
CN118298660A
Automatic parking method, electronic equipment and target vehicle
CN118753278A
Method and control unit for the automated allocation of a parking space in a parking area for a vehicle, as well as system
DE102021200591A1