Automatic parking method and device, computer device, storage medium and program product
By recognizing and rendering vehicle categories, colors, and brands, combined with lighting adjustments and animation effects, the ease of operation and safety of the automatic parking system are improved. This solves the problem of the lack of detail in the vehicle's appearance in the virtual view and achieves more intuitive parking assistance.
Patent Information
- Application Number
- CN202510030027.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2045-01-08
AI Technical Summary
In existing automatic parking systems, the virtual view of vehicles lacks realistic scene details, making it difficult for users to accurately identify vehicles around parking spaces and reducing the ease of operation of automatic parking.
By identifying vehicle classification, body color, and brand, and using onboard cameras to adjust brightness gain under different lighting conditions, a virtual vehicle that matches the actual vehicle is rendered. The vehicle brand logo is displayed in the parking virtual view, and animation effects and voice prompts for vehicle parts are provided to ensure the realism and interactivity of the virtual view.
It improves the user's ability to identify vehicles around parking spaces in the virtual view and enhances the convenience of parking operations, thereby improving the safety and user experience of automatic parking.
Smart Images

Figure CN119636696B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent driving technology, and in particular to an automatic parking method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] As people's demand for intelligent vehicles increases, more and more vehicles are equipped with automatic parking functions. Vehicles equipped with automatic parking can display searched parking spaces, surrounding vehicles, and other objects in a virtual view on the in-vehicle screen. Users can click on the desired parking space in the virtual view, and the vehicle can automatically park in the selected space. Currently, the vehicles around the parking spaces displayed in the virtual view typically have a uniform appearance and do not intuitively correspond to the real scene. Lacking the details of the real scene, it is difficult for users to accurately identify the vehicles around the parking space through the virtual view, making it inconvenient for users to select the desired parking space, resulting in low ease of operation for automatic parking. Summary of the Invention
[0003] Therefore, it is necessary to provide an automatic parking method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve the operational convenience of automatic parking in response to the above-mentioned technical problems.
[0004] In a first aspect, this application provides an automatic parking method, including:
[0005] Based on video data around the first vehicle, identify the vehicle category, body color, and vehicle brand of the second vehicle; the second vehicle includes vehicles parked near the parking space available for the first vehicle.
[0006] The virtual vehicle corresponding to the second vehicle is displayed in the parking virtual view of the parking assistance interface; the color of the virtual vehicle is the same as the body color, and the brand logo of the vehicle brand is displayed; the virtual vehicle is rendered from a vehicle model that matches the vehicle category.
[0007] In one embodiment, before identifying the vehicle category, body color, and vehicle brand of the second vehicle based on video data surrounding the first vehicle, the method further includes:
[0008] Obtain ambient light data for the first vehicle;
[0009] Based on the ambient light data, the brightness gain of the on-board camera of the first vehicle is adjusted to obtain the adjusted brightness gain.
[0010] The onboard camera acquires video data around the first vehicle according to the adjusted brightness gain.
[0011] In one embodiment, adjusting the brightness gain of the vehicle-mounted camera of the first vehicle based on the ambient light data includes:
[0012] When the ambient light data indicates that the light intensity is greater than a first light intensity threshold, the vehicle-mounted camera is controlled to reduce its brightness gain.
[0013] When the ambient light data indicates that the light intensity is less than a second light intensity threshold, the vehicle-mounted camera is controlled to increase its brightness gain.
[0014] In one embodiment, before displaying the corresponding virtual vehicle of the second vehicle in the parking virtual view of the parking assistance interface, the method further includes:
[0015] When the ambient light data indicates that the light intensity is less than a second light intensity threshold, the identified vehicle body color is sharpened to obtain an enhanced color.
[0016] The enhanced colors are used to render the vehicle model to obtain the virtual vehicle.
[0017] In one embodiment, after displaying the corresponding virtual vehicle of the second vehicle in the parking virtual view of the parking assistance interface, the method further includes:
[0018] In response to a triggering operation on a target vehicle component of the virtual vehicle, display an animation effect indicating that the target vehicle component has been triggered;
[0019] The animation effect displays a simulated animation of the target vehicle component being opened or closed.
[0020] In one embodiment, after displaying a simulated animation of the target vehicle component being opened or closed in the animation effect, the method further includes:
[0021] In the case where the animation effect shows a simulated animation of the target vehicle component being opened, the distance between the outermost edge of the target vehicle component and the parking space line of the parking space is detected;
[0022] If the distance is less than a distance threshold, a voice prompt is output; the voice prompt is used to indicate that there is a risk of collision with a target vehicle component of the second vehicle in the parking space.
[0023] Secondly, this application also provides an automatic parking device, comprising:
[0024] The recognition module is used to identify the vehicle category, body color and vehicle brand of the second vehicle based on video data around the first vehicle; the second vehicle includes vehicles parked near the parking space available for the first vehicle.
[0025] The display module is used to display the virtual vehicle corresponding to the second vehicle in the parking virtual view of the parking assistance interface; the color of the virtual vehicle is the same as the body color, and the brand logo of the vehicle brand is displayed; the virtual vehicle is obtained by rendering a vehicle model that matches the vehicle category.
[0026] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.
[0027] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0028] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0029] The aforementioned automatic parking method, device, computer equipment, computer-readable storage medium, and computer program product identify the vehicle category, body color, and vehicle brand of a second vehicle based on video data surrounding the first vehicle. The second vehicle includes vehicles parked near the parking space available for the first vehicle. A virtual vehicle corresponding to the second vehicle is displayed in the parking virtual view of the parking assistance interface. The virtual vehicle's color matches the body color and displays the vehicle brand's logo. The virtual vehicle is rendered from a vehicle model that matches the vehicle category. Identifying the category, color, and brand of vehicles surrounding the parking space based on video data and presenting virtual vehicles that match the actual vehicle characteristics in the virtual view allows the virtual view to possess the details of a real scene. This enables users to accurately distinguish the various vehicles around the parking space, intuitively assisting them in selecting the desired parking space and improving the ease of operation of automatic parking. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a diagram illustrating the application environment of an automatic parking method in one embodiment.
[0032] Figure 2 This is a flowchart illustrating an automatic parking method in one embodiment;
[0033] Figure 3 This is a logic diagram of an automatic parking method in one embodiment;
[0034] Figure 4 This is a schematic diagram of an automatic parking process in another embodiment;
[0035] Figure 5 This is a structural block diagram of an automatic parking device in one embodiment;
[0036] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0038] The automatic parking method provided in this application embodiment can be applied to, for example, Figure 1 The application environment is shown. The first vehicle 100 may include a controller, an onboard camera, and an onboard screen. The first vehicle 100 is surrounded by multiple parking spaces 105 and a second vehicle 110. The onboard camera is used to collect video data around the vehicle; the controller acquires data collected by various vehicle sensors, performs comprehensive analysis and processing of this data, and controls the onboard screen to output corresponding display content based on the analysis and processing results; the onboard screen displays a parking assistance interface and a virtual parking view within the parking assistance interface. Optionally, the user can click on a parking space displayed in the virtual parking view, and the first vehicle can automatically park according to the user-selected parking space.
[0039] The first vehicle 100 can identify the vehicle category, body color, and vehicle brand of the second vehicle 110 based on video data around the first vehicle 100; the second vehicle 110 includes vehicles parked near the parking space 105 of the first vehicle 100; the first vehicle 100 displays the corresponding virtual vehicle of the second vehicle 110 in the parking virtual view of the parking assistance interface; the color of the virtual vehicle is consistent with the body color and displays the brand logo of the vehicle brand; the virtual vehicle is rendered from a vehicle model that matches the vehicle category.
[0040] In one exemplary embodiment, such as Figure 2 As shown, an automatic parking method is provided, which is applied to... Figure 1 Taking the first vehicle in the text as an example, the explanation includes:
[0041] Step S202: Based on the video data around the first vehicle, identify the vehicle category, body color, and vehicle brand of the second vehicle.
[0042] In a specific implementation, the first vehicle can acquire video data of its surroundings via onboard cameras. For example, the onboard cameras may include multiple surround-view cameras, a front-view camera, and side-view cameras; the front-view camera is mounted on the windshield; the multiple surround-view cameras include a front surround-view camera, a rear surround-view camera, a left surround-view camera, and a right surround-view camera, wherein the front surround-view camera is mounted on the front metal grille or front bumper; the rear surround-view camera is mounted on the tailgate or rear bumper; the left and right surround-view cameras are mounted on the left and right side mirrors, respectively; and the side-view cameras are mounted on the side mirrors or fenders. These onboard cameras collect video data of the first vehicle's surroundings in real time and input it to the first vehicle's controller.
[0043] The second vehicle includes vehicles parked near the available parking space of the first vehicle. For example, the second vehicle could be a vehicle parked in a parking space next to an available parking space, or a vehicle that is close to an available parking space but not parked in any parking space.
[0044] Among them, an available parking space can refer to an empty parking space where the first vehicle can park.
[0045] Vehicle classification can refer to vehicle type, including but not limited to sedans, SUVs, buses, trucks, and special-purpose vehicles (fire trucks or ambulances).
[0046] For example, the controller of the first vehicle can use deep learning models such as convolutional neural networks to extract shape features such as vehicle outline and size from each frame of video data, thereby determining the vehicle classification. This deep learning model has learned a large number of features of different vehicle types.
[0047] Among them, vehicle brand can refer to the manufacturer brand of the vehicle. Different vehicle brands correspond to different brand logos, which can be located in the center of the wheel rim cover, the center of the front of the vehicle, the center of the rear of the vehicle, or other vehicle locations.
[0048] For example, the vehicle controller can identify the area where the brand logo is located in each frame of video data using an object detection algorithm; and use deep learning models such as convolutional neural networks to extract features and classify the image data of the area where the brand logo is located in order to determine the vehicle brand.
[0049] The vehicle body color can include various colors such as black, gray, white, and red.
[0050] For example, the vehicle controller can calculate the color histogram of each frame of video data, statistically analyze the distribution of each color component as color features, and then use a clustering algorithm to analyze the dominant hue of the image to determine the main body color. Alternatively, the vehicle controller can extract the color features of the image using a deep learning model such as a convolutional neural network and output the category of the body color.
[0051] Step S204: Display the virtual vehicle corresponding to the second vehicle in the parking virtual view of the parking assistance interface.
[0052] The parking assistance interface is an interactive interface on the in-vehicle display screen that provides parking-related information and operation options to assist the driver in parking operations.
[0053] The parking virtual view is a virtual environment display in the parking assistance interface. It is usually presented in the form of a top view and displays environmental information around the vehicle, including other vehicles, obstacles, and parking spaces.
[0054] The virtual vehicle is a three-dimensional model displayed in the parking virtual view that represents the second vehicle.
[0055] The virtual vehicles are colored the same as the car body and display the brand logo; the virtual vehicles are rendered from vehicle models that match the vehicle category.
[0056] As an example, the controller of the first vehicle can select a vehicle model that matches the vehicle category from a pre-built vehicle model library, which is a database that stores vehicle categories and their corresponding vehicle models. The vehicle model is a 3D model that conforms to the vehicle category. The controller renders the vehicle model with the recognized body color so that the color of the vehicle model matches the recognized body color. Furthermore, based on the recognized vehicle brand, the controller adds the corresponding vehicle brand logo to an appropriate location on the vehicle model (such as the front or rear of the vehicle) to make the virtual vehicle more closely resemble the appearance of a real vehicle.
[0057] As another example, the controller of the first vehicle can directly obtain a vehicle model that matches the vehicle category and the vehicle brand from a pre-built vehicle model library. The vehicle model library is a database that stores vehicle categories, vehicle brands and corresponding vehicle models. The vehicle model is a 3D model that conforms to the vehicle category and displays the brand logo. The recognized body color is then rendered on the vehicle model so that the color of the vehicle model is consistent with the recognized body color.
[0058] The controller of the first vehicle can control the in-vehicle display screen to display the corresponding virtual vehicle of the second vehicle in the parking virtual view of the parking assistance interface. The corresponding position of the virtual vehicle in the parking virtual view matches the corresponding position of the second vehicle in the actual environment, ensuring that the virtual view can truly reflect the actual environment.
[0059] In the aforementioned automatic parking method, based on video data surrounding the first vehicle, the vehicle category, body color, and vehicle brand of the second vehicle are identified. The second vehicle includes vehicles parked near the parking space available for the first vehicle. A virtual vehicle corresponding to the second vehicle is displayed in the parking virtual view of the parking assistance interface. This virtual vehicle's color matches the body color and displays the vehicle brand's logo. The virtual vehicle is rendered from a vehicle model that matches the vehicle category. Identifying the category, color, and brand of vehicles surrounding the available parking space based on video data and presenting virtual vehicles that match the actual vehicle characteristics in the virtual view allows the virtual view to possess the details of a realistic scene. This enables users to accurately distinguish the various vehicles around the available parking space, intuitively assisting them in selecting the desired parking space and improving the ease of operation of automatic parking.
[0060] In another embodiment, before identifying the vehicle category, body color, and vehicle brand of the second vehicle based on video data around the first vehicle, the method further includes: acquiring ambient light data of the first vehicle; adjusting the brightness gain of the vehicle-mounted camera of the first vehicle based on the ambient light data to obtain an adjusted brightness gain; and acquiring video data around the first vehicle through the vehicle-mounted camera according to the adjusted brightness gain.
[0061] In practice, the controller of the first vehicle can collect ambient light data of the first vehicle through a light sensor. The ambient light data can refer to the light intensity and distribution around the first vehicle, reflecting the brightness of the current environment.
[0062] Brightness gain is a parameter used within the vehicle-mounted camera to adjust image brightness. It amplifies or reduces the light signal received by the sensor to adapt to different lighting conditions. For example, in low-light environments, brightness gain is increased to improve image brightness; in well-lit environments, brightness gain is decreased to prevent overexposure. The calculated brightness gain value is applied to the vehicle-mounted camera, adjusting its internal parameters, thereby enabling the acquisition of real-time video data around the vehicle using the brightness-adjusted camera.
[0063] The technical solution of this embodiment can collect clear and accurate video data under different lighting conditions through the vehicle-mounted camera, thereby improving the reliability of subsequent vehicle recognition and automatic parking operations.
[0064] In another embodiment, adjusting the brightness gain of the vehicle-mounted camera of the first vehicle based on ambient light data includes: controlling the vehicle-mounted camera to reduce its brightness gain when the ambient light data indicates that the light intensity is greater than a first light intensity threshold; and controlling the vehicle-mounted camera to increase its brightness gain when the ambient light data indicates that the light intensity is less than a second light intensity threshold.
[0065] The first light intensity threshold is a preset upper limit value for light intensity. When the ambient light intensity exceeds this value, it is determined that the first vehicle is in a bright scene, which may cause the collected video data to be overexposed. Therefore, it is necessary to control the vehicle camera to reduce the brightness gain. The second light intensity threshold is a preset lower limit value for light intensity. When the ambient light intensity is lower than this value, it is determined that the first vehicle is in a dark scene, which may cause the collected video data to be too dark. Therefore, it is necessary to control the vehicle camera to increase the brightness gain.
[0066] In this embodiment, the first vehicle can dynamically adjust the brightness gain of the onboard camera according to the real-time ambient light conditions, ensuring the acquisition of high-quality video data under various lighting conditions, thus providing a reliable foundation for subsequent vehicle recognition and automatic parking operations.
[0067] Furthermore, in another embodiment, the controller of the first vehicle can also collect ambient rainfall data of the first vehicle through a rain sensor, which is used to detect rainfall and raindrop conditions. The controller of the first vehicle can adjust the brightness gain of the vehicle-mounted camera based on the ambient light data and the ambient rainfall data to obtain an adjusted brightness gain. The vehicle-mounted camera then acquires video data of the area surrounding the first vehicle according to the adjusted brightness gain. Specifically, adjusting the brightness gain of the vehicle-mounted camera based on the ambient light data and the ambient rainfall data can include: controlling the vehicle-mounted camera to reduce its brightness gain when the ambient light data indicates that the light intensity is greater than a first light intensity threshold and the ambient rainfall data indicates that the rainfall is less than a first rainfall threshold; and controlling the vehicle-mounted camera to increase its brightness gain when the ambient light data indicates that the light intensity is less than a second light intensity threshold or the ambient rainfall data indicates that the rainfall is greater than a second rainfall threshold.
[0068] The technical solution of this embodiment can collect clear and accurate video data under different lighting and weather conditions through the vehicle-mounted camera, thereby improving the reliability of subsequent vehicle recognition and automatic parking operations.
[0069] In another embodiment, before displaying the corresponding virtual vehicle of the second vehicle in the parking virtual view of the parking assistance interface, the method further includes: enhancing the sharpness of the identified vehicle body color when the ambient light data characterizes the light intensity as less than a second light intensity threshold, to obtain an enhanced color; and rendering the vehicle model using the enhanced color to obtain a virtual vehicle.
[0070] Optional sharpness enhancement may include adjusting color contrast to make colors more vivid; increasing color saturation to make colors more vibrant; and using filtering techniques to highlight color edges and improve clarity.
[0071] Specifically, the controller of the first vehicle uses enhanced colors to render the vehicle model, so as to apply the enhanced colors to the selected vehicle model, ensuring that the colors of the virtual vehicle are consistent with the colors of the actual vehicle and remain clear even in low light conditions.
[0072] The technical solution of this embodiment enhances the sharpness of the vehicle body color in low-light environments, ensuring that the second vehicle in the parking virtual view is clearly visible, thereby improving the user's ability to identify vehicles around the parking space and the parking experience through the parking virtual view.
[0073] In another embodiment, after displaying the virtual vehicle corresponding to the second vehicle in the parking virtual view of the parking assistance interface, the method further includes: in response to a triggering operation on the target vehicle component of the virtual vehicle, displaying an animation effect of the target vehicle component being triggered; and displaying a simulated animation of the target vehicle component being opened or closed in the animation effect.
[0074] The parking assistance interface on the in-vehicle screen can display a virtual parking view, and this screen can be a touchscreen. Triggered operations include user interactions with target vehicle components on the virtual parking view via the touchscreen, such as clicking or long-pressing.
[0075] Among them, the target vehicle components can refer to openable and closable components such as doors, windows, and trunks.
[0076] In the specific implementation, the first vehicle calls the preset animation effect resources corresponding to the identified target vehicle component, and generates the animation effect triggered by the target vehicle component according to the preset animation effect resources. In the animation effect, a simulated animation of the target vehicle component being opened or closed is displayed. This simulated animation is used to simulate the state changes of the target vehicle component. For example, the virtual vehicle allows users to click on components such as car doors and windows, and then perform open or close animation effects, increasing the playability of the interface.
[0077] The technical solution of this embodiment provides interactive functions for target vehicle components in the parking assistance interface. Users can trigger the target vehicle components and intuitively view their status changes, thus improving the interactivity and user experience of the parking assistance system. Furthermore, in scenarios where a virtual vehicle door opens, users can intuitively determine whether the opening of the door will significantly impact nearby available parking spaces, assisting them in more conveniently selecting suitable parking spaces.
[0078] In another embodiment, after displaying a simulated animation of the target vehicle component being opened or closed in the animation effect, the method further includes: when displaying a simulated animation of the target vehicle component being opened in the animation effect, detecting the distance between the outermost edge of the target vehicle component and the parking space line of the parking space; if the distance is less than a distance threshold, outputting a voice prompt message; the voice prompt message is used to indicate that there is a risk of collision with the target vehicle component of a second vehicle in the parking space.
[0079] The outermost edge can be the edge of the target vehicle component that is furthest from the center of the vehicle when it is fully open.
[0080] Among them, the parking space line is the boundary line of the parking space that can be parked. The parking space line may include the side parking space line and the front and rear parking space lines. The distance between the outermost edge of the target vehicle component and the parking space line of the parking space that can be parked can be calculated as the distance between the side parking space line that is closest to the second vehicle among the parking space lines of the parking space that can be parked and the outermost edge of the target vehicle component.
[0081] The distance threshold is a preset safe distance value. If the distance between the outermost edge of the target vehicle component and the parking line of the parking space is less than the distance threshold, it can be considered that the target vehicle component of the second vehicle is likely to encroach on the space of the adjacent parking space when it is opened. For example, if the distance between the outermost edge of the second vehicle's door and the parking line of the adjacent parking space is small, and the first vehicle is parked in the parking space next to the second vehicle, then when the second vehicle opens its door, the door of the second vehicle is likely to collide with the first vehicle in the adjacent parking space.
[0082] The voice prompts indicate the risk of collision with a target vehicle component from a second vehicle in an available parking space, such as "This parking space is too close to the adjacent vehicle," "This parking space is too small," or "This parking space is easily collided with when the adjacent vehicle opens its door."
[0083] The technical solution of this embodiment improves the safety and reliability of automatic parking by simulating the opening of the target vehicle component and assessing its distance from the parking space line in real time, thus promptly alerting the driver to potential collision risks.
[0084] For the purpose of facilitating understanding by those skilled in the art, Figure 3 An exemplary logic diagram of an automatic parking method is provided. The controller of the first vehicle combines ambient light data collected by a light sensor with video data captured by an onboard camera of the scene surrounding the parking space. This video data is then processed for color adjustment, vehicle brand recognition, and vehicle classification adjustment before being stored. The extracted vehicle body color can be enhanced in color and clarity, and used to render a vehicle model based on vehicle category and brand. When the user activates the automatic parking function, a virtual vehicle displaying the brand and color of the vehicle is output in the parking assist interface's virtual parking view, better assisting the user in selecting a parking space. Simultaneously, during the parking process, if the first vehicle is too close to a second vehicle or too close to the parking line, voice prompts can be provided via the vehicle's multimedia device.
[0085] In another embodiment, such as Figure 4 As shown, an automatic parking method is provided, which is applied to... Figure 1 Taking the first vehicle in the diagram as an example, the following steps are included:
[0086] S402, acquire ambient light data of the first vehicle.
[0087] S404, based on ambient light data, adjusts the brightness gain of the onboard camera of the first vehicle to obtain the adjusted brightness gain.
[0088] In one embodiment, adjusting the brightness gain of the vehicle-mounted camera of the first vehicle based on ambient light data includes: controlling the vehicle-mounted camera to reduce its brightness gain when the ambient light data indicates that the light intensity is greater than a first light intensity threshold; and controlling the vehicle-mounted camera to increase its brightness gain when the ambient light data indicates that the light intensity is less than a second light intensity threshold.
[0089] S406 uses an onboard camera to acquire video data around the first vehicle according to the adjusted brightness gain.
[0090] S408 identifies the vehicle category, body color, and vehicle brand of the second vehicle based on video data surrounding the first vehicle.
[0091] The second vehicle includes vehicles parked near the parking space available for the first vehicle.
[0092] S410, when the ambient light intensity is less than the second light intensity threshold, performs sharpness enhancement on the identified vehicle body color to obtain the enhanced color.
[0093] S412 uses enhanced colors to render the vehicle model, resulting in a virtual vehicle.
[0094] S414, Display the virtual vehicle corresponding to the second vehicle in the parking virtual view of the parking assistance interface.
[0095] The virtual vehicle's color matches the body color and displays the vehicle brand's logo; the virtual vehicle is rendered from a vehicle model that matches the vehicle category.
[0096] S416, in response to a triggering operation on a target vehicle component of a virtual vehicle, displays an animation effect indicating that the target vehicle component has been triggered.
[0097] S418 displays a simulated animation of target vehicle parts being opened or closed in the animation effects.
[0098] S420, in the case of a simulated animation showing the target vehicle component being opened, detects the distance between the outermost edge of the target vehicle component and the parking space line of the parking space that can be parked.
[0099] S422, when the distance is less than the distance threshold, outputs a voice prompt message.
[0100] The voice prompts indicate that there is a risk of collision with a target vehicle component by a second vehicle in an available parking space.
[0101] It should be noted that the specific limitations of the above steps can be found in the specific limitations of an automatic parking method described above.
[0102] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0103] Based on the same inventive concept, this application also provides an automatic parking device for implementing the automatic parking method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more automatic parking device embodiments provided below can be found in the limitations of the automatic parking method described above, and will not be repeated here.
[0104] In one exemplary embodiment, such as Figure 5 As shown, an automatic parking device is provided, comprising:
[0105] The recognition module 510 is used to identify the vehicle category, body color and vehicle brand of the second vehicle based on video data around the first vehicle; the second vehicle includes vehicles parked near the parking space of the first vehicle.
[0106] Display module 520 is used to display the virtual vehicle corresponding to the second vehicle in the parking virtual view of the parking assistance interface; the color of the virtual vehicle is the same as the body color, and the brand logo of the vehicle brand is displayed; the virtual vehicle is obtained by rendering a vehicle model that matches the vehicle category.
[0107] In one embodiment, the automatic parking device further includes an acquisition module; the acquisition module is specifically used to acquire ambient light data of the first vehicle; adjust the brightness gain of the vehicle-mounted camera of the first vehicle according to the ambient light data to obtain an adjusted brightness gain; and acquire video data around the first vehicle through the vehicle-mounted camera according to the adjusted brightness gain.
[0108] In one embodiment, the acquisition module is specifically configured to control the vehicle camera to reduce the brightness gain of the vehicle camera when the ambient light data indicates that the light intensity is greater than a first light intensity threshold; and to control the vehicle camera to increase the brightness gain of the vehicle camera when the ambient light data indicates that the light intensity is less than a second light intensity threshold.
[0109] In one embodiment, the automatic parking device further includes a rendering module; the rendering module is specifically used to enhance the sharpness of the identified vehicle body color when the ambient light data indicates that the light intensity is less than a second light intensity threshold, to obtain an enhanced color; and to render the vehicle model using the enhanced color to obtain the virtual vehicle.
[0110] In one embodiment, the display module 520 is specifically configured to display an animation effect of the target vehicle component being triggered in response to a triggering operation on the target vehicle component of the virtual vehicle; and to display a simulated animation of the target vehicle component being opened or closed in the animation effect.
[0111] In one embodiment, the automatic parking device further includes a voice module; specifically, the voice module is used to detect the distance between the outermost edge of the target vehicle component and the parking space line of the parking space when the animation effect displays a simulated animation of the target vehicle component being opened; and outputs a voice prompt message when the distance is less than a distance threshold; the voice prompt message is used to indicate that there is a risk of collision with the target vehicle component of the second vehicle in the parking space.
[0112] The modules in the aforementioned automatic parking device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0113] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements an automatic parking method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0114] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0115] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0116] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0117] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0119] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0120] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0121] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An automatic parking method characterized by, The method comprises: identifying, according to video data around a first vehicle, a vehicle classification, a vehicle body color and a vehicle brand of a second vehicle; the second vehicle comprises a vehicle parked adjacent to a parkable parking space of the first vehicle; displaying a corresponding virtual vehicle of the second vehicle in a parking virtual view of a parking assistance interface; the virtual vehicle is consistent in color with the vehicle body color, and is displayed with a brand logo of the vehicle brand; the virtual vehicle is obtained by rendering a vehicle model matched with the vehicle classification; in response to a triggering operation on a target vehicle component of the virtual vehicle, displaying an animation effect of the target vehicle component being triggered; displaying a simulation animation of the target vehicle component being opened or closed in the animation effect.
2. The method of claim 1, wherein, Before the step of identifying, according to video data around a first vehicle, a vehicle classification, a vehicle body color and a vehicle brand of a second vehicle, the method further comprises: obtaining ambient light data of the first vehicle; adjusting a luminance gain of a vehicle-mounted camera of the first vehicle according to the ambient light data to obtain an adjusted luminance gain; obtaining video data around the first vehicle by the vehicle-mounted camera according to the adjusted luminance gain.
3. The method of claim 2, wherein, The step of adjusting a luminance gain of a vehicle-mounted camera of the first vehicle according to the ambient light data comprises: in a case where the ambient light data represents that light intensity is greater than a first light intensity threshold, controlling the vehicle-mounted camera to reduce the luminance gain of the vehicle-mounted camera; in a case where the ambient light data represents that light intensity is less than a second light intensity threshold, controlling the vehicle-mounted camera to increase the luminance gain of the vehicle-mounted camera.
4. The method of claim 3, wherein, Before the step of displaying a corresponding virtual vehicle of the second vehicle in a parking virtual view of a parking assistance interface, the method further comprises: in a case where the ambient light data represents that light intensity is less than a second light intensity threshold, performing sharpness enhancement on the identified vehicle body color to obtain an enhanced color; rendering the vehicle model by using the enhanced color to obtain the virtual vehicle.
5. The method of claim 1, wherein, After the step of displaying a simulation animation of the target vehicle component being opened or closed in the animation effect, the method further comprises: in a case where the simulation animation of the target vehicle component being opened is displayed in the animation effect, detecting a distance between an outermost edge of the target vehicle component and a parking line of the parkable parking space; in a case where the distance is less than a distance threshold, outputting voice prompt information; the voice prompt information is used to indicate that there is a risk of collision of the target vehicle component of the second vehicle in the parkable parking space.
6. An automatic parking apparatus characterized by comprising: The device comprises: an identification module configured to identify, according to video data around a first vehicle, a vehicle classification, a vehicle body color and a vehicle brand of a second vehicle; the second vehicle comprises a vehicle parked adjacent to a parkable parking space of the first vehicle; The display module is configured to display a virtual vehicle corresponding to the second vehicle in a parking virtual view of the parking assistance interface; the virtual vehicle has a color consistent with the vehicle body color and displays a brand logo of the vehicle brand; and the virtual vehicle is obtained by rendering a vehicle model matching the vehicle category. The display module is further configured to display an animation effect of the target vehicle component being triggered in response to a triggering operation on the target vehicle component of the virtual vehicle; and display a simulation animation of the target vehicle component being opened or closed in the animation effect. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. The processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 5.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 5.
9. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for vehicle, electronic equipment, storage medium and vehicle
CN115352462A
Parking pose control method and system
CN116252777A