Vehicle control method and device, vehicle and storage medium
By collecting images in the vehicle and controlling the driving speed and parameters based on internal behavior, the problem of drink spilling is solved and the vehicle is driven smoothly and drinks are prevented from being spilled.
Patent Information
- Application Number
- CN202410601718.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-23
AI Technical Summary
Drinks are prone to spilling while the vehicle is driving. The existing solutions require pouring the drinks into anti-dumping utensils or purchasing anti-dumping packaging, which is inconvenient to use.
By collecting images inside the vehicle, the behavior information of the people inside the vehicle is determined. If it is drinking behavior, the driving speed is obtained and the vehicle is controlled to enter the anti-dumping mode. The driving control parameters are adjusted to avoid bumps caused by sharp turns, sudden braking, etc., ensuring that the vehicle Drive smoothly.
It is possible to prevent drinks from spilling without human operation when people inside the vehicle are drinking, thus improving vehicle driving stability and safety.
Smart Images

Figure CN118529024A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and in particular to a vehicle control method, device, vehicle, and storage medium. Background Art
[0002] Vehicles are essential vehicles for daily commuting. When using a vehicle, especially for long-distance trips, people often need to replenish their energy with drinks, such as water and beverages. Drinking a beverage while driving can cause spillage.
[0003] In response to this problem, the current solutions are mainly to pour the beverage into a spill-proof container for drinking, or to drink the beverage with spill-proof tools added to the packaging. These two methods require pouring the beverage into a spill-proof container, and the second method requires purchasing beverages packaged with spill-proof tools to prevent spillage when drinking the beverage while the vehicle is moving. The process of preventing the beverage from spilling is extremely inconvenient.
[0004] Based on this, how to better control the vehicle to prevent drinks from spilling when people in the car are drinking has become an urgent problem that needs to be solved. Summary of the Invention
[0005] The present application provides a vehicle control method, device, vehicle and storage medium. The method controls the vehicle's driving through the vehicle driving control parameters corresponding to the anti-spill mode, which can avoid the vehicle body from being shaken due to sharp turns, sudden braking, etc., and make the vehicle run smoothly, thereby achieving the effect of preventing drinks from spilling when people inside the vehicle are drinking.
[0006] In a first aspect, a vehicle control method is provided, the method comprising: acquiring a first vehicle interior image, and determining first behavior information of a person inside the vehicle based on the first vehicle interior image; if the first behavior information is drinking behavior information, obtaining a driving speed of the vehicle; controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed, and obtaining vehicle driving control parameters corresponding to the anti-spill mode; and controlling the driving of the vehicle based on the vehicle driving control parameters.
[0007] In an embodiment of the present application, when the first behavior information of the person inside the vehicle is determined to be drinking behavior information based on the collected first vehicle interior image, the vehicle is controlled to enter the anti-spill mode based on the vehicle's driving speed, and the vehicle is controlled to travel according to the vehicle driving control parameters corresponding to the anti-spill mode. Controlling the vehicle's travel based on the vehicle driving control parameters corresponding to the anti-spill mode can avoid situations in which the vehicle body is shaken due to sharp turns, sudden braking, etc., and makes the vehicle travel smoothly, thereby achieving the effect of preventing drinks from spilling when the person inside the vehicle is drinking.
[0008] In combination with the first aspect, in some possible implementations, the vehicle is controlled to enter the anti-dumping mode based on the vehicle's driving speed, and the vehicle driving control parameters corresponding to the anti-dumping mode are obtained, including: if the vehicle's driving speed is greater than zero, the vehicle is controlled to enter the anti-dumping mode; the vehicle's driving state is obtained in the anti-dumping mode, and the vehicle driving control parameters corresponding to the driving state are obtained.
[0009] In combination with the first aspect, in some possible implementations, the vehicle driving control parameter is a preset acceleration parameter, the vehicle's driving state is obtained in the anti-spill mode, and the vehicle driving control parameter corresponding to the driving state is obtained, including: if the driving speed is determined to be greater than the preset driving speed in the anti-spill mode, then the vehicle's driving state is determined to be an overspeeding state; the preset acceleration parameter corresponding to the overspeeding state is obtained; and the vehicle's driving is controlled based on the vehicle driving control parameter, including: controlling the vehicle to reduce the driving speed based on the preset acceleration parameter until the driving speed is less than or equal to the preset driving speed.
[0010] The above solution directly controls the vehicle to enter anti-spill mode when its speed is greater than zero, eliminating the need for manual judgment and achieving intelligent and accurate control of the vehicle entering anti-spill mode. After the vehicle enters anti-spill mode and is in an overspeeding state, the vehicle is controlled to reduce its speed according to a preset acceleration until it is less than or equal to the preset speed. By reducing the vehicle's speed according to the preset acceleration, the problem of vehicle body shaking caused by a sudden decrease in speed is avoided. Furthermore, by controlling the vehicle's speed to be below the preset speed, the vehicle can be controlled to maintain stable driving.
[0011] In combination with the first aspect, in some possible implementations, the vehicle driving control parameters are preset steering parameters; the vehicle's driving status is obtained in the anti-spill mode, and the vehicle driving control parameters corresponding to the driving status are obtained, including: in the anti-spill mode, obstacle information in front of the vehicle's driving direction is obtained; based on the obstacle information, the vehicle's driving status is determined to be an obstacle avoidance state, and the preset steering parameters corresponding to the obstacle avoidance state are obtained; the vehicle's driving is controlled based on the vehicle driving control parameters, including: controlling the vehicle to avoid obstacles corresponding to the obstacle information based on the preset steering parameters.
[0012] By adopting the above scheme, when the vehicle is driving in the obstacle avoidance state, the vehicle is controlled to avoid the obstacle according to the preset steering parameters. Since the vehicle is controlled to drive according to the preset steering parameters when avoiding the obstacle, the problem of rapid changes in the vehicle's driving direction, which causes the vehicle body to shake, is avoided, thereby controlling the vehicle to maintain smooth driving.
[0013] In combination with the first aspect, in some possible implementations, the vehicle driving control parameters are preset parking brake parameters; the vehicle is controlled to enter the anti-spill mode based on the vehicle's driving speed, and the vehicle driving control parameters corresponding to the anti-spill mode are obtained, including: if the vehicle's driving speed is equal to zero, then the vehicle's external environmental information is obtained; if it is determined based on the external environmental information that the vehicle is at risk of collision, then the vehicle is controlled to enter the anti-spill mode; the preset parking brake parameters corresponding to the anti-spill mode are obtained; and the vehicle's driving is controlled based on the vehicle driving control parameters, including: controlling the vehicle's driving speed to zero based on the preset parking brake parameters.
[0014] By adopting the above solution, when the vehicle's driving speed is zero and it is determined that there is a risk of collision, the vehicle is accurately controlled to enter the anti-dumping mode, and the preset parking brake parameters corresponding to the anti-dumping mode are obtained. The preset parking brake parameters can keep the vehicle stationary, prevent the vehicle from sliding in the event of a collision, and maintain the stability of the vehicle body.
[0015] In combination with the first aspect, in some possible implementations, before collecting the first vehicle interior image, it includes: establishing a connection between mobile terminals corresponding to people inside the vehicle; obtaining purchase records of people inside the vehicle using mobile terminals within a first preset time period; if there is beverage information in the purchase record, obtaining the switch switching status of the vehicle's closing component; if the switch switching status of the closing component meets the preset conditions, collecting the second vehicle interior image; if it is determined based on the second vehicle interior image that there are new beverages in the vehicle, executing the step of collecting the first vehicle interior image.
[0016] In combination with the first aspect, in some possible implementations, if it is determined based on the second vehicle interior image that there are new drinks in the vehicle, the step of capturing the first vehicle interior image is executed, including: comparing the second vehicle interior image with a preset image; when it is determined that the second vehicle interior image is inconsistent with the preset image, capturing the area image where there is a difference between the second vehicle interior image and the preset image; inputting the area image into a preset drink recognition model to obtain a first output result of the preset drink recognition model; if the first output result is that there are new drinks in the vehicle, the step of capturing the first vehicle interior image is executed.
[0017] By adopting the above scheme, when the vehicle detects the presence of a new drink in the vehicle, it is confirmed that the person inside the vehicle is drinking the new drink, and the step of collecting the first vehicle interior image of the person inside the vehicle is entered. The first behavior information of the person inside the vehicle can be confirmed in time, and the vehicle can be accurately controlled to enter the anti-spill mode; and by determining whether there is a new drink in the vehicle through a preset drink recognition model, it can be accurately determined whether there is a new drink in the vehicle, further improving the accuracy of controlling the vehicle to enter the anti-spill mode.
[0018] In combination with the first aspect, in some possible implementations, determining first behavior information of a person inside a vehicle based on a first vehicle interior image includes: inputting the first vehicle interior image into a preset behavior recognition model, and determining the first behavior information of the person inside the vehicle based on a second output result of the preset behavior recognition model.
[0019] In combination with the first aspect, in some possible implementations, after controlling the vehicle's driving based on the vehicle driving control parameters, it also includes: collecting a third vehicle interior image; determining second behavior information of a person inside the vehicle based on the third vehicle interior image; if the second behavior information is non-drinking behavior information, obtaining the detection time during which no drinking behavior information of the person inside the vehicle is detected; when the detection time reaches a second preset time, controlling the vehicle to exit the anti-spill mode.
[0020] This approach directly captures the first behavior information of a person inside the vehicle using the second output of a pre-trained behavior recognition model, eliminating the need for feature extraction or other operations on the captured first vehicle interior image. This allows for accurate and rapid acquisition of the first behavior information. Furthermore, if the first behavior information of a person inside the vehicle is detected as non-drinking, the anti-spill mode is promptly exited, eliminating the need for manual exit control by the driver, thus enhancing the intelligence of the exit.
[0021] In a second aspect, a vehicle control device is provided, the device comprising:
[0022] an image acquisition unit, configured to capture a first vehicle interior image and determine first behavior information of a person inside the vehicle based on the first vehicle interior image;
[0023] a vehicle speed obtaining unit, configured to obtain a vehicle speed if the first behavior information is drinking behavior information;
[0024] a parameter acquisition unit, configured to control the vehicle to enter an anti-spill mode based on the vehicle's driving speed, and to acquire vehicle driving control parameters corresponding to the anti-spill mode;
[0025] The driving control unit is used to control the driving of the vehicle based on the vehicle driving control parameters.
[0026] In a third aspect, a vehicle is provided, comprising:
[0027] a memory for storing executable program code;
[0028] A processor is used to call and run executable program code from a memory, so that the vehicle executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0029] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0030] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of a scenario of a vehicle control method provided by an embodiment of the present application;
[0032] Figure 2 This is a flow chart of a vehicle control method provided in an embodiment of the present application;
[0033] Figure 3 This is a flow chart of a vehicle control method provided in an embodiment of the present application;
[0034] Figure 4 This is a flow chart of a vehicle control method provided in an embodiment of the present application;
[0035] Figure 5 This is a flow chart of a vehicle control method provided in an embodiment of the present application;
[0036] Figure 6 This is a flow chart of a vehicle control method provided in an embodiment of the present application;
[0037] Figure 7 This is a schematic structural diagram of a vehicle control device provided in an embodiment of the present application;
[0038] Figure 8 This is a schematic structural diagram of a vehicle control device provided in an embodiment of the present application;
[0039] Figure 9 This is a schematic structural diagram of a vehicle control device provided in an embodiment of the present application;
[0040] Figure 10 This is a schematic structural diagram of a vehicle provided in an embodiment of the present application;
[0041] Figure 11 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will clearly and thoroughly describe the technical solutions in this application in conjunction with the accompanying drawings. In the description of the embodiments of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of 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. In addition, in the description of the embodiments of this application, "multiple" means two or more than two.
[0043] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0044] Figure 1 This is a scenario diagram of a vehicle control method provided in an embodiment of the present application.
[0045] like Figure 1 As shown, while the vehicle is driving, person A in the passenger seat picks up a drink to drink. If the driver suddenly brakes or turns the vehicle, the drink will spill into the vehicle, causing the vehicle to be soiled, scalding the person inside the vehicle, and even distracting the driver, resulting in a safety accident.
[0046] Based on this, the present application proposes a vehicle control method, which determines through the first collected interior image of the vehicle that there is drinking behavior information of the person inside the vehicle, and then controls the vehicle to enter the anti-spill mode based on the vehicle's driving speed, and controls the vehicle to travel according to the vehicle driving control parameters corresponding to the anti-spill mode. The vehicle's driving is controlled based on the vehicle driving control parameters corresponding to the anti-spill mode to avoid the vehicle from making sharp turns, sudden brakes, etc., which may cause the vehicle body to shake, so that the vehicle can travel smoothly, thereby achieving the effect of preventing drinks from spilling when there is drinking behavior inside the vehicle.
[0047] based on Figure 1 The scene diagram shown below will be combined with Figure 2-Figure 6 , the vehicle control method provided in the embodiment of the present application is introduced in detail.
[0048] See Figure 2 , which is a flow chart of a vehicle control method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101 to S104.
[0049] S101, collecting a first vehicle interior image, and determining first behavior information of a person inside the vehicle based on the first vehicle interior image;
[0050] In one embodiment, the first vehicle interior image may be an image of the interior of the vehicle captured at a certain moment, and the first vehicle interior image may include facial information, behavioral information of people inside the vehicle, or information such as the layout of the interior of the vehicle, and the opening and closing status of closed components of the vehicle (for example, sunroof, doors and windows). The first vehicle interior image may be captured by a camera installed inside the vehicle. Optionally, in an embodiment of the present application, the camera may be installed near the rearview mirror of the vehicle, or near the central console, etc., so as to fully capture the position of people inside the vehicle. People inside the vehicle may be people riding in the vehicle, including one or more people. It is understandable that people inside the vehicle include the driver in the driving position of the vehicle. The first behavioral information may be behavioral information of people inside the vehicle, which may include sleeping behavior information, drinking behavior information, communication behavior information, and leisure behavior information (for example, reading, playing with a mobile phone, etc.).
[0051] In an embodiment of the present application, first behavior information of a person inside the vehicle can be determined based on facial information, posture information, motion information of the person inside the vehicle in the first vehicle interior image, or by performing object detection, etc. For example, after capturing one or more first vehicle interior images, if object detection and posture detection determine that person A inside the vehicle is holding a book in the first vehicle interior image, the first behavior information of person A inside the vehicle can be determined to be leisure behavior information.
[0052] S102, if the first behavior information is drinking behavior information, obtaining the vehicle's driving speed;
[0053] In one embodiment, drinking behavior information may be information about a person inside a vehicle drinking a beverage, such as coffee, milk tea, or other beverage. It is understood that in some cases, if a user consumes food that is easily spilled while in the vehicle, the vehicle may also need to be controlled. Therefore, in this embodiment of the present application, drinking behavior information may include information about consuming food in addition to information about drinking beverages. If the first behavior information of a person inside the vehicle is determined to be drinking behavior information based on the first vehicle interior image acquired, it is determined that the vehicle's driving speed needs to be further acquired.
[0054] In an embodiment of the present application, if there are multiple people inside the vehicle, when it is detected that the first behavior information of any person inside the vehicle is drinking behavior information, it can be determined that the vehicle's driving speed needs to be obtained, and further judged whether the vehicle needs to be controlled to enter the anti-spill mode.
[0055] S103, controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed, and obtaining vehicle driving control parameters corresponding to the anti-spill mode;
[0056] In one embodiment, after the vehicle's driving speed is obtained, the vehicle is controlled to enter an anti-dumping mode based on the driving speed. The anti-dumping mode may be a mode for preventing the vehicle body from shaking or swaying. In an embodiment of the present application, after the vehicle's driving speed is obtained, the vehicle may be controlled to automatically enter an anti-dumping mode. For example, when the vehicle's driving speed is obtained to be greater than 0, the vehicle is controlled to enter an anti-dumping mode. After the vehicle enters the anti-dumping mode, the vehicle driving control parameters corresponding to the anti-dumping mode are obtained. The vehicle driving control parameters may be parameters for controlling the vehicle's driving. In an embodiment of the present application, the vehicle driving control parameters corresponding to the vehicle in the anti-dumping mode may include the vehicle's driving speed, acceleration, steering and other control parameters.
[0057] In an embodiment of the present application, the vehicle driving control parameters corresponding to the anti-spill mode can be pre-stored in the memory. Thus, when the vehicle is controlled to enter the anti-spill mode based on the vehicle's driving speed, the vehicle driving control parameters corresponding to the anti-spill mode can be obtained in the memory.
[0058] S104: Control the driving of the vehicle based on the vehicle driving control parameters.
[0059] In one embodiment, after determining the vehicle driving control parameter corresponding to the anti-spill mode, the vehicle is controlled to travel based on the vehicle driving control parameter. For example, if the vehicle driving control parameter is determined to be 40 km / h (kilometers per hour), the vehicle is controlled to travel at that speed.
[0060] In an embodiment of the present application, when the first behavior information of the person inside the vehicle is determined to be drinking behavior information based on the collected first vehicle interior image, the vehicle is controlled to enter the anti-spill mode based on the vehicle's driving speed, and the vehicle is controlled to travel according to the vehicle driving control parameters corresponding to the anti-spill mode. Controlling the vehicle's travel based on the vehicle driving control parameters corresponding to the anti-spill mode can avoid situations in which the vehicle body is shaken due to sharp turns, sudden braking, etc., and makes the vehicle travel smoothly, thereby achieving the effect of preventing drinks from spilling when the person inside the vehicle is drinking.
[0061] See Figure 3 , which is a flow chart of a vehicle control method provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201 to S204.
[0062] S201, collecting a first vehicle interior image, and determining first behavior information of a person inside the vehicle based on the first vehicle interior image;
[0063] For details, please refer to the description of step S101 in the above embodiment of the specification, which will not be repeated here.
[0064] S202, if the first behavior information is drinking behavior information, obtaining the vehicle's driving speed;
[0065] For details, please refer to the description of step S101 in the above embodiment of the specification, which will not be repeated here.
[0066] It can be understood that after obtaining the vehicle's driving speed, the vehicle is controlled to enter the anti-dumping mode based on the driving speed, and the vehicle driving control parameters corresponding to the anti-dumping mode are obtained, including: in one case, when it is determined that the vehicle's driving speed is greater than zero, the vehicle is directly controlled to enter the anti-dumping mode, and then the vehicle driving control parameters corresponding to the anti-dumping mode are obtained. Please refer to the following step S203 for details; in another case, when it is determined that the vehicle's driving speed is equal to zero, it is also necessary to obtain the vehicle's external environmental information, and control the vehicle to enter the anti-dumping mode based on the vehicle's external environmental information, and then obtain the vehicle driving control parameters corresponding to the anti-dumping mode. Please refer to the following steps S210-S213 for details.
[0067] S203, if the vehicle's speed is greater than zero, controlling the vehicle to enter an anti-spill mode;
[0068] In one embodiment, the vehicle's driving state may include an overspeeding state and an obstacle avoidance state. The overspeeding state may be a state where the vehicle's driving speed exceeds a preset driving speed in the anti-spill mode. The obstacle avoidance state may be a state where there is an object (obstacle) in front of the vehicle that causes the vehicle body to bump or shake, and the obstacle needs to be avoided. If the vehicle's driving state is an overspeeding state, the vehicle's control is as follows: steps S204-S206; if the vehicle's driving state is an obstacle avoidance state, the vehicle's control is as follows: steps S207-S209.
[0069] S204, if it is determined that the driving speed is greater than the preset driving speed in the anti-spill mode, then determining that the driving state of the vehicle is an overspeeding state;
[0070] In one embodiment, after a vehicle enters the anti-spill mode, if the vehicle's speed is determined to be greater than a preset speed, the vehicle's driving state may be determined to be an overspeeding state. The preset speed may be a speed that maintains stable operation of the vehicle in the anti-spill mode. For example, the preset speed may be 50 km / h. If the vehicle's speed is determined to be greater than or equal to 50 km / h, the vehicle's driving state may be determined to be an overspeeding state.
[0071] In some embodiments, the vehicle can also automatically set a preset driving speed according to the road it is traveling on. For example, if the vehicle is traveling on a school intersection, it can set the preset driving speed to 20KM / H; if the vehicle is traveling on a county road, it can set the preset driving speed to 40KM / H.
[0072] S205, obtaining a preset acceleration parameter corresponding to the overspeed state;
[0073] In one embodiment, when the vehicle is in an overspeeding state, a preset acceleration parameter corresponding to the vehicle in the overspeeding state is obtained, wherein the preset acceleration parameter may be an acceleration value set for the vehicle in the anti-spill mode, for example, it may be -10 m / s 2 .
[0074] It is understandable that the preset acceleration parameters corresponding to the overspeeding state can be pre-stored in the memory. Therefore, when it is determined that the driving state of the vehicle is the overspeeding state, the preset acceleration parameters corresponding to the overspeeding state can be obtained.
[0075] S206, controlling the vehicle to reduce its speed based on a preset acceleration parameter until the speed is less than or equal to a preset speed;
[0076] In one embodiment, when the vehicle is in an overspeeding state and a preset acceleration parameter corresponding to the vehicle in the overspeeding state is obtained, the vehicle is controlled to reduce its speed according to the preset acceleration parameter until the vehicle's speed is less than or equal to the preset speed.
[0077] In the embodiment of the present application, when the vehicle's speed is greater than zero, the vehicle is directly controlled to enter the anti-spill mode, eliminating the need for manual judgment, thereby achieving intelligent and accurate control of the vehicle entering the anti-spill mode. After the vehicle enters the anti-spill mode, and the vehicle's driving state is in an overspeeding state, the vehicle is controlled to reduce its driving speed according to a preset acceleration until it is less than or equal to the preset driving speed. Since the vehicle's driving speed is reduced according to the preset acceleration, the problem of a sudden decrease in vehicle speed, which would cause the vehicle body to shake, is avoided. Moreover, by controlling the vehicle's driving speed to be reduced below the preset driving speed, the vehicle can be controlled to maintain stable driving.
[0078] Please refer to step S207 to step S209, which are specific steps for controlling the driving of the vehicle when the driving state of the vehicle is the obstacle avoidance state.
[0079] S207, in the anti-spill mode, obtaining obstacle information in the direction of travel of the vehicle;
[0080] In one embodiment, when an obstacle exists in front of the vehicle in the driving direction during the vehicle's driving, obstacle information of the obstacle is obtained. The obstacle information includes information such as the type, height, depth, and size of the obstacle.
[0081] In one embodiment, the vehicle may use sensors such as laser radar, cameras, and ultrasonic sensors to obtain information about obstacles ahead.
[0082] It is understandable that in order to maintain smooth operation of the vehicle, the vehicle needs sufficient time to avoid obstacles. Therefore, in an embodiment of the present application, the vehicle can obtain obstacle information within a range of 10 meters to 100 meters in front of the vehicle's driving direction through a lidar.
[0083] S208, determining that the driving state of the vehicle is an obstacle avoidance state based on the obstacle information, and obtaining preset steering parameters corresponding to the obstacle avoidance state;
[0084] In one embodiment, if it is determined based on obstacle information that the vehicle needs to avoid the obstacle, the vehicle's driving state is determined to be an obstacle avoidance state, and a preset steering parameter corresponding to the obstacle state is obtained. The preset steering parameter is a parameter that controls the change in the vehicle's driving direction, such as controlling the steering wheel to turn left or right.
[0085] In some embodiments, when a vehicle avoids an obstacle, the preset steering parameter can be determined by determining the position information of the obstacle in front of the vehicle's travel direction based on the obstacle information. For example, if the vehicle's right position in front of the travel direction is determined based on the obstacle information, the preset steering parameter is determined to be a left turn of 5°.
[0086] S209: Control the vehicle to avoid the obstacle corresponding to the obstacle information based on the preset steering parameters.
[0087] In one embodiment, when the driving state of the vehicle is an obstacle avoidance state, a preset steering parameter corresponding to the obstacle avoidance state is obtained, and the vehicle is controlled to avoid the obstacle corresponding to the obstacle information based on the preset steering parameter.
[0088] In an embodiment of the present application, when the vehicle is driving in an obstacle avoidance state, the vehicle is controlled to avoid the obstacle according to preset steering parameters. Since the vehicle is controlled to drive according to the preset steering parameters when avoiding the obstacle, the problem of rapid changes in the vehicle's driving direction, which causes the vehicle body to shake, is avoided, thereby controlling the vehicle to maintain smooth driving.
[0089] It is understood that in the embodiments of the present application, the vehicle's driving state may also be a combination of an obstacle avoidance state and an overspeeding state. In this case, the vehicle driving control parameter corresponding to the vehicle's driving state may be a combination of a preset steering parameter and a preset acceleration parameter. Optionally, if it is determined based on obstacle information that the vehicle has sufficient time to avoid the obstacle, the vehicle may first be controlled to reduce its speed according to the preset acceleration parameter, and then the vehicle may be controlled to avoid the obstacle according to the preset steering parameter, thereby preventing the vehicle from changing its driving direction while traveling at high speed, which may cause the vehicle body to shake.
[0090] Please refer to step S210 to step S213, which are specific steps for controlling the vehicle when the vehicle's driving speed is zero.
[0091] S210, if the vehicle's speed is zero, obtaining the vehicle's external environment information;
[0092] In one embodiment, when the vehicle's speed is zero, it indicates that the vehicle is not currently moving. Although the vehicle is not moving, it does not need to prevent and control vehicle body sway caused by driving factors, but it does need to avoid the risk of collision with other objects, such as vehicle body instability caused by collision with other vehicles. Therefore, in this embodiment of the present application, when the vehicle's speed is zero, it is necessary to obtain external environmental information of the vehicle. The external environmental information of the vehicle can be environmental information surrounding the vehicle, which can be environmental information within 10 meters around the parked vehicle.
[0093] S211, if it is determined based on the external environment information that the vehicle has a collision risk, controlling the vehicle to enter an anti-spill mode;
[0094] In one embodiment, after obtaining the vehicle's external environment information, a determination can be made based on the external environment information whether the vehicle is at risk of collision. If so, the vehicle is controlled to enter a spill prevention mode. For example, if the external environment information indicates that the distance between the vehicle and another vehicle is less than 50 centimeters, a collision risk is determined and the vehicle is controlled to enter a spill prevention mode.
[0095] In another embodiment, a camera can be used to capture information about the vehicle's external environment. For example, multiple images captured continuously by the camera can be used to analyze whether the vehicle is at risk of collision, and if so, the vehicle can be controlled to enter an anti-spill mode.
[0096] S212, obtaining preset parking brake parameters corresponding to the anti-spill mode;
[0097] S213: Control the vehicle's travel speed to zero based on preset parking brake parameters.
[0098] In one embodiment, when a collision risk is determined, the vehicle is controlled to enter an anti-spill mode and preset parking brake parameters corresponding to the anti-spill mode are obtained. The preset parking brake parameters may be braking parameters used when the vehicle is stationary and a collision risk exists, such as applying the parking brake. The vehicle is then controlled to maintain a zero speed based on the preset parking brake parameters.
[0099] In an embodiment of the present application, when the vehicle's driving speed is zero and it is determined that there is a risk of collision, the vehicle is accurately controlled to enter the anti-spill mode, and the preset parking brake parameters corresponding to the anti-spill mode are obtained. The preset parking brake parameters can keep the vehicle stationary, prevent the vehicle from sliding in the event of a collision, and maintain the stability of the vehicle body.
[0100] See Figure 4 , which is a flow chart of a vehicle control method provided in an embodiment of the present application. Figure 4 As shown, the method of the embodiment of the present application may include the following steps S301-S308.
[0101] S301, establishing a connection between a mobile terminal corresponding to a person inside the vehicle;
[0102] In one embodiment, a connection (e.g., Bluetooth connection, etc.) is established between the vehicle and a mobile terminal (e.g., a smart phone, tablet computer, etc.) corresponding to a person inside the vehicle, whereby the person inside the vehicle can control the vehicle's entertainment system, seats, air conditioning, navigation, etc. through the mobile terminal. The person can also send information such as playlists, purchase records, itinerary arrangements, etc. on the mobile terminal to the vehicle after obtaining the user's consent.
[0103] S302, obtaining purchase records of a person inside the vehicle using a mobile terminal within a first preset time period;
[0104] In one embodiment, after a connection is established between the vehicle and the mobile terminal corresponding to the person inside the vehicle, the purchase record of the person inside the vehicle using the mobile terminal within a first preset time period is obtained. For example, the first preset time period can be set to 3 hours.
[0105] S303, if there is beverage information in the purchase record, obtaining the switch status of the vehicle's closing component;
[0106] In one embodiment, when a vehicle detects beverage information in a purchase record obtained from a mobile terminal, the vehicle obtains the switch status of a closed component of the vehicle. Closed components include components such as doors and windows of the vehicle. Alternatively, the vehicle can determine the switch status of the closed component using a sensor or camera.
[0107] S304, if the switch state of the closing component meets the preset condition, then collect a second vehicle interior image;
[0108] In one embodiment, a second vehicle interior image is captured when the switch state of a closure component satisfies a preset condition. The preset condition may include any one of the following: the closure component remaining open, switching from a closed state to an open state, or switching from an open state to a closed state. The second vehicle interior image may be an image of the vehicle interior captured at a specific moment. Similar to the first vehicle interior image, the second vehicle interior image may include facial information and behavioral information of people inside the vehicle, the layout of the vehicle interior, and the opening and closing status of the vehicle's closure components (e.g., sunroof, doors, and windows).
[0109] S305, comparing the second vehicle interior image with a preset image;
[0110] In one embodiment, after capturing a second vehicle interior image, the vehicle compares the second vehicle interior image with a preset image. The preset image may be an image captured after a person is seated inside the vehicle. For example, during the comparison, the second vehicle interior image and the preset image may be pre-processed by denoising, grayscaling, and size normalization, followed by feature extraction. The extracted features are then compared using a feature matching algorithm.
[0111] S306, when it is determined that the second vehicle interior image is inconsistent with the preset image, intercepting an image of a region where the second vehicle interior image is different from the preset image;
[0112] In one embodiment, when it is determined based on the feature comparison results that the second vehicle interior image is inconsistent with the preset image, an area image in the second vehicle interior image that is different from the preset image is captured. In this embodiment of the present application, the area image may include one or more.
[0113] S307, inputting the regional image into a preset beverage recognition model to obtain a first output result of the preset beverage recognition model;
[0114] The region image is input into a preset beverage recognition model to obtain a first output result of the preset beverage recognition model. The preset beverage recognition model may be a trained model for recognizing beverages contained in the image. For example, the preset beverage recognition model may be PP-ShiTu.
[0115] S308: If the first output result is that there is a new drink in the vehicle, the step of capturing a first vehicle interior image is executed.
[0116] In one embodiment, when the vehicle determines that a first output result of the preset beverage recognition model is that a new beverage is present in the vehicle, the step of acquiring a first vehicle interior image is executed.
[0117] In an embodiment of the present application, when the vehicle detects the presence of a new drink in the vehicle, it is confirmed that a person inside the vehicle is drinking the new drink, and the step of collecting a first vehicle interior image of the person inside the vehicle is entered. This allows timely confirmation of the first behavior information of the person inside the vehicle, and accurately controls the vehicle to enter the anti-spill mode. In addition, in an embodiment of the present application, a preset drink recognition model is used to determine whether there is a new drink in the vehicle, which allows accurate determination of whether there is a new drink in the vehicle, further improving the accuracy of controlling the vehicle to enter the anti-spill mode.
[0118] See Figure 5 , which is a flow chart of a vehicle control method provided in an embodiment of the present application. Figure 5 As shown, the method of the embodiment of the present application may include the following steps S401 to S409.
[0119] S401, collecting a first vehicle interior image;
[0120] For details, please refer to the description of step S101 in the above embodiment of the specification, which will not be repeated here.
[0121] S402, inputting the first vehicle interior image into a preset behavior recognition model, and determining first behavior information of a person inside the vehicle based on a second output result of the preset behavior recognition model;
[0122] In one embodiment, the preset behavior recognition model may be a pre-trained model for identifying user behavior. For example, the preset behavior recognition model may be a TSN model. The second output result of the preset behavior model may include a variety of behavior information, such as sleeping behavior information, drinking behavior information, communication behavior information, and leisure behavior information. After obtaining the second output result of the preset model, the first behavior information of the person inside the vehicle can be determined. For example, in the embodiment of the present application, the first behavior information may include any one or more of sleeping behavior information, drinking behavior information, communication behavior information, and leisure behavior information.
[0123] S403, if the first behavior information is drinking behavior information, obtaining the vehicle's driving speed;
[0124] S404, controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed, and obtaining vehicle driving control parameters corresponding to the anti-spill mode;
[0125] S405, controlling the vehicle's travel based on the vehicle's travel control parameters;
[0126] For details, please refer to the description of step S102 to step S104 in the above embodiment of the specification, which will not be repeated here.
[0127] S406, collecting an interior image of a third vehicle;
[0128] In one embodiment, after the vehicle enters the anti-spill mode, the vehicle captures a third vehicle interior image. The third vehicle interior image may be an image of the vehicle interior captured at a specific moment. Similar to the first vehicle interior image, the third vehicle interior image may include facial information and behavioral information of people inside the vehicle.
[0129] S407, determining second behavior information of the person inside the vehicle based on the third vehicle interior image;
[0130] Specifically, the second behavior information of the person inside the vehicle determined based on the third vehicle interior image is similar to the first behavior information of the person inside the vehicle determined based on the first vehicle interior image. Please refer to the description in the above embodiment of the specification and will not be repeated here.
[0131] S408, if the second behavior information is non-drinking behavior information, obtaining a detection time duration during which no drinking behavior information of the person inside the vehicle is detected;
[0132] In one embodiment, when the second behavior information of the person inside the vehicle is determined to be non-drinking behavior information based on the third vehicle interior image, for example, when the second behavior information is any one or more of sleeping behavior information, communication behavior information, and leisure behavior information, the second behavior information is determined to be non-drinking behavior information, and then the detection time during which the drinking behavior information of the person inside the vehicle is not detected is counted.
[0133] S409: When the detection time reaches a second preset time, the vehicle is controlled to exit the anti-spill mode.
[0134] In one embodiment, when the detection time reaches a second preset time, it can be determined that the person inside the vehicle has finished drinking the drink or the person inside the vehicle does not need to drink the drink at present, and the vehicle is controlled to exit the anti-spill mode. It can be understood that after the vehicle exits the anti-spill mode, the vehicle's acceleration, steering control, etc. may not be adjusted according to the preset acceleration parameters and preset steering parameters.
[0135] In this embodiment of the present application, the first behavior information of the person inside the vehicle is directly obtained through the second output of the trained preset behavior recognition model, eliminating the need for feature extraction or other operations on the captured first vehicle interior image. This allows for accurate and rapid acquisition of the first behavior information of the person inside the vehicle. Furthermore, when the first behavior information of the person inside the vehicle is detected as non-drinking behavior, the anti-spill mode is promptly exited, eliminating the need for manual exit control by the driver, thereby enhancing the intelligence of exiting the anti-spill mode.
[0136] Furthermore, in an embodiment of the present application, a prompt message "The vehicle has entered the anti-spill mode" can also be displayed on the central control display screen of the vehicle when the vehicle is controlled to enter the anti-spill mode, to remind the driver that the vehicle's driving is currently controlled by the vehicle's driving control parameters. When the vehicle includes multiple display screens, it can also display the prompt message "The vehicle has entered the anti-spill mode" on multiple display screens. In another embodiment, the position information of the person inside the vehicle who has engaged in the drinking behavior information can be determined based on the first vehicle interior image, and then the prompt message can be displayed on the display screen corresponding to the position information. Optionally, in an embodiment of the present application, the vehicle can also accept the interactive actions of the person inside the vehicle to determine whether to enter / exit the anti-spill mode based on the display screen, thereby improving the convenience of the person inside the vehicle controlling the vehicle to enter / exit the anti-spill mode.
[0137] The following will be combined Figure 6 The vehicle control method provided in the embodiment of the present application is described in detail with reference to a specific example.
[0138] The vehicle establishes a connection with the mobile terminal of the person inside the vehicle and obtains the purchase record of the person inside the vehicle using the mobile terminal within a first preset time period.
[0139] In one case, if there is no beverage information in the purchase record, a first vehicle interior image is obtained through a shooting device, and based on the first vehicle interior image, the first behavior information of the person inside the vehicle is determined to be drinking behavior information, and the vehicle's driving speed is obtained. If the vehicle's driving speed is greater than zero, the vehicle is controlled to enter an anti-spill mode; if the vehicle's driving speed is equal to zero, the vehicle's external environment information is obtained. If it is determined based on the external environment information that the vehicle is at risk of collision, the vehicle is controlled to enter an anti-spill mode. If it is determined that the vehicle is not at risk of collision, the anti-spill mode is controlled to remain off.
[0140] In another case, if there is beverage information in the purchase record, the switch switching state of the switch closing component is obtained. If the switch closing component has not been opened, it is determined that the person inside the vehicle may have placed the beverage in the trunk or delivered it remotely by takeout, and there is no current demand for drinking, so the anti-spill mode is further controlled to remain closed; if the closing component has been opened, a second vehicle interior image is collected. When it is determined based on the second vehicle interior image that there are no new beverages in the vehicle, it is determined that the person inside the vehicle may have placed the beverage in the trunk, so the anti-spill mode is controlled to remain closed. When it is determined based on the second vehicle interior image that there are new beverages in the vehicle, a first vehicle interior image is obtained through a shooting device, and based on the first vehicle interior image, it is determined that the first behavior information of the person inside the vehicle is drinking behavior information, then the vehicle's driving speed is obtained. If the vehicle's driving speed is greater than zero, the vehicle is controlled to enter the anti-spill mode; if the vehicle's speed is equal to zero, the vehicle's external environment information is obtained, and based on the external environment information, it is determined that the vehicle is at risk of collision, and the vehicle is controlled to enter the anti-spill mode. If it is determined that the vehicle is not at risk of collision, the anti-spill mode is controlled to remain closed.
[0141] In an embodiment of the present application, when the first behavior information of the person inside the vehicle is determined to be drinking behavior information based on the collected first vehicle interior image, the vehicle is controlled to enter the anti-spill mode based on the vehicle's driving speed, and the vehicle is controlled to travel according to the vehicle driving control parameters corresponding to the anti-spill mode. Controlling the vehicle's travel based on the vehicle driving control parameters corresponding to the anti-spill mode can avoid situations in which the vehicle body is shaken due to sharp turns, sudden braking, etc., and makes the vehicle travel smoothly, thereby achieving the effect of preventing drinks from spilling when the person inside the vehicle is drinking.
[0142] based on Figure 1 The system architecture will be combined with Figure 7-Figure 9 , the vehicle control device provided by the embodiment of the present application is introduced in detail. It should be noted that, Figure 7-Figure 9 The vehicle control device is used to execute the present application Figure 2-Figure 6 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 6 The embodiment shown.
[0143] like Figure 7 The vehicle control device shown includes: an image acquisition unit 11 , a vehicle speed acquisition unit 12 , a parameter acquisition unit 13 and a driving control unit 14 .
[0144] An image acquisition unit 11 is configured to capture a first vehicle interior image and determine first behavior information of a person inside the vehicle based on the first vehicle interior image;
[0145] a vehicle speed obtaining unit 12, configured to obtain a vehicle speed if the first behavior information is drinking behavior information;
[0146] a parameter acquisition unit 13 for controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed and acquiring vehicle driving control parameters corresponding to the anti-spill mode;
[0147] The driving control unit 14 is configured to control the driving of the vehicle based on the vehicle driving control parameters.
[0148] Optionally, the parameter acquisition unit 13 includes: a first control subunit 131, an acquisition subunit 132,
[0149] The first control subunit 131 is configured to control the vehicle to enter an anti-spill mode if the vehicle's speed is greater than zero;
[0150] The acquisition subunit 132 is used to acquire the driving state of the vehicle in the anti-spill mode and acquire the vehicle driving control parameters corresponding to the driving state.
[0151] Optionally, the acquiring subunit 132 is specifically configured to:
[0152] If the driving speed is determined to be greater than the preset driving speed in the anti-spill mode, the driving state of the vehicle is determined to be an overspeeding state;
[0153] Get the preset acceleration parameters corresponding to the overspeed state.
[0154] Optionally, the acquiring subunit 132 is specifically configured to:
[0155] In anti-spill mode, obtain obstacle information in the direction of travel of the vehicle;
[0156] Based on the obstacle information, it is determined that the driving state of the vehicle is an obstacle avoidance state, and preset steering parameters corresponding to the obstacle avoidance state are obtained.
[0157] Optionally, the parameter acquisition unit 13 includes: a second acquisition subunit 133, a second control subunit 134, and a third acquisition subunit 135.
[0158] The second acquisition subunit 133 is configured to acquire external environment information of the vehicle if the vehicle's speed is zero;
[0159] The second control subunit 134 is configured to control the vehicle to enter an anti-spill mode if it is determined based on the external environment information that the vehicle has a collision risk;
[0160] The third acquiring subunit 135 is configured to acquire preset parking brake parameters corresponding to the anti-spill mode.
[0161] like Figure 8The vehicle control device shown further includes: a connection establishing unit 15 , a record obtaining unit 16 , a state obtaining unit 17 , an image acquisition unit 18 and a determination unit 19 .
[0162] A connection establishing unit 15 is used to establish a connection between the mobile terminal corresponding to the person inside the vehicle;
[0163] A record acquisition unit 16 is used to acquire purchase records of a person in the vehicle using a mobile terminal within a first preset time period;
[0164] A state acquisition unit 17 is configured to acquire the switch state of the vehicle's closing component if beverage information exists in the purchase record;
[0165] an image acquisition unit 18 for acquiring a second vehicle interior image if the switch switching state of the closing component satisfies a preset condition;
[0166] The determining unit 19 is configured to execute the step of capturing the first vehicle interior image if it is determined based on the second vehicle interior image that there is a new beverage in the vehicle.
[0167] Optionally, the determination unit 19 includes: a comparison subunit 191, a region image subunit 192, an output result subunit 193, and an image acquisition subunit 194.
[0168] a comparison subunit 191, configured to compare the second vehicle interior image with a preset image;
[0169] The regional image subunit 192 is configured to intercept a regional image where the difference exists between the second vehicle interior image and the preset image when it is determined that the second vehicle interior image is inconsistent with the preset image;
[0170] Output result subunit 193, used to input the regional image into a preset beverage recognition model to obtain a first output result of the preset beverage recognition model;
[0171] The image acquisition subunit 194 is configured to execute the step of acquiring a first vehicle interior image if the first output result is that a new beverage is added to the vehicle.
[0172] Optionally, the image acquisition unit 11 includes: a determination subunit 111,
[0173] The determination subunit 111 is configured to input the first vehicle interior image into a preset behavior recognition model, and determine first behavior information of a person inside the vehicle based on a second output result of the preset behavior recognition model.
[0174] like Figure 9 The vehicle control device shown further includes: a third image acquisition unit 20, a behavior determination unit 21, a duration acquisition unit 22, and an exit control unit 23.
[0175] A third image acquisition unit 20, configured to acquire a third vehicle interior image;
[0176] a behavior determining unit 21 for determining second behavior information of a person inside the vehicle based on the third vehicle interior image;
[0177] a duration acquisition unit 22 for acquiring a detection duration during which no drinking behavior information of a person inside the vehicle is detected if the second behavior information is non-drinking behavior information;
[0178] The exit control unit 23 is used to control the vehicle to exit the anti-spill mode when the detection time reaches a second preset time.
[0179] See Figure 10 , provides a structural diagram of a vehicle according to an embodiment of the present application. Figure 10 As shown, the vehicle 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
[0180] Processor 501 is the control center of vehicle 500 and may include one or more processing cores. Processor 501 utilizes various interfaces and circuits to connect various components of vehicle 500. By running or invoking computer programs stored in memory 502 and accessing data stored in memory 502, it executes various functions of vehicle 500 and processes data, thereby providing overall control over vehicle 500. Optionally, processor 501 may be implemented using at least one of the following hardware forms: digital signal processing (DSP), field programmable gate array (FPGA), or programmable logic array (PLA). Processor 501 may integrate one or a combination of a CPU, a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interfaces, and applications; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into processor 501 and may instead be implemented via a separate communications chip.
[0181] Memory 502 can be used to store software programs and modules. Processor 501 executes various functional applications and data processing by running the computer programs and modules stored in memory 502. Memory 502 may primarily include a program storage area and a data storage area. The program storage area may store an operating system, computer programs required for at least one function, and the like; the data storage area may store data generated based on the use of vehicle 500.
[0182] In addition, the memory 502 may include a high-speed random access memory and a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0183] In this embodiment, the processor 501 in the vehicle 500 loads instructions corresponding to one or more computer program processes into the memory 502 according to the following steps, and the processor 501 runs the computer program stored in the memory 502 to implement various functions as follows:
[0184] capturing a first vehicle interior image, and determining first behavior information of a person inside the vehicle based on the first vehicle interior image;
[0185] If the first behavior information is drinking behavior information, obtaining the driving speed of the vehicle;
[0186] Controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed, and obtaining vehicle driving control parameters corresponding to the anti-spill mode;
[0187] The travel of the vehicle is controlled based on the vehicle travel control parameters.
[0188] Optionally, when the processor 501 controls the vehicle to enter the anti-dumping mode based on the vehicle's driving speed and obtains the vehicle driving control parameters corresponding to the anti-dumping mode, it specifically performs:
[0189] If the vehicle's speed is greater than zero, the vehicle is controlled to enter the anti-spill mode;
[0190] The driving state of the vehicle is obtained in the anti-spill mode, and the vehicle driving control parameters corresponding to the driving state are obtained.
[0191] Optionally, when the processor 501 obtains the driving state of the vehicle in the anti-spill mode and obtains the vehicle driving control parameters corresponding to the driving state, the processor 501 specifically executes:
[0192] If the driving speed is determined to be greater than the preset driving speed in the anti-spill mode, the driving state of the vehicle is determined to be an overspeeding state;
[0193] Get the preset acceleration parameters corresponding to the overspeed state;
[0194] When the processor 501 controls the vehicle's travel based on the vehicle travel control parameters, it specifically performs the following operations:
[0195] The vehicle is controlled to reduce its driving speed based on the preset acceleration parameter until the driving speed is less than or equal to the preset driving speed.
[0196] Optionally, when the processor 501 obtains the driving state of the vehicle in the anti-spill mode and obtains the vehicle driving control parameters corresponding to the driving state, the processor 501 specifically executes:
[0197] In anti-spill mode, obtain obstacle information in the direction of travel of the vehicle;
[0198] Determine the vehicle's driving state as the obstacle avoidance state based on the obstacle information, and obtain the preset steering parameters corresponding to the obstacle avoidance state
[0199] When the processor 501 controls the vehicle's travel based on the vehicle travel control parameters, it specifically performs the following operations:
[0200] The vehicle is controlled to avoid obstacles corresponding to the obstacle information based on preset steering parameters.
[0201] Optionally, when the processor 501 controls the vehicle to enter the anti-dumping mode based on the vehicle's driving speed and obtains the vehicle driving control parameters corresponding to the anti-dumping mode, it specifically performs:
[0202] If the vehicle's speed is zero, then the vehicle's external environment information is obtained;
[0203] If the vehicle is determined to be at risk of collision based on external environmental information, the vehicle is controlled to enter anti-spill mode;
[0204] Obtaining preset parking brake parameters corresponding to the anti-spill mode;
[0205] When the processor 501 controls the vehicle's travel based on the vehicle travel control parameters, it specifically performs the following operations:
[0206] The vehicle's travel speed is controlled to zero based on preset parking brake parameters.
[0207] Optionally, before acquiring the first vehicle interior image, the processor 501 may further execute:
[0208] Establishing a connection between a mobile terminal corresponding to a person inside the vehicle;
[0209] Obtaining purchase records of a person inside the vehicle using a mobile terminal within a first preset time period;
[0210] If there is beverage information in the purchase record, the switch status of the vehicle's closing component is obtained;
[0211] If the switch state of the closing component meets a preset condition, capturing a second vehicle interior image;
[0212] If it is determined based on the second vehicle interior image that there is a new beverage in the vehicle, the step of capturing the first vehicle interior image is executed.
[0213] Optionally, when executing the step of capturing the first vehicle interior image if it is determined based on the second vehicle interior image that a new beverage is present in the vehicle, the processor 501 specifically performs:
[0214] comparing the second vehicle interior image with the preset image;
[0215] When it is determined that the second vehicle interior image is inconsistent with the preset image, intercepting an image of a region where the second vehicle interior image is different from the preset image;
[0216] Inputting the regional image into a preset beverage recognition model to obtain a first output result of the preset beverage recognition model;
[0217] If the first output result is that there is a new beverage in the vehicle, the step of capturing a first vehicle interior image is executed.
[0218] Optionally, when determining the first behavior information of a person inside the vehicle based on the first vehicle interior image, the processor 501 specifically performs:
[0219] The first vehicle interior image is input into a preset behavior recognition model, and first behavior information of a person inside the vehicle is determined based on a second output result of the preset behavior recognition model.
[0220] Optionally, after controlling the vehicle's travel based on the vehicle travel control parameters, the processor 501 may further execute:
[0221] collecting an interior image of a third vehicle;
[0222] determining second behavior information of a person inside the vehicle based on the third vehicle interior image;
[0223] If the second behavior information is non-drinking behavior information, obtaining a detection time duration during which no drinking behavior information of the person inside the vehicle is detected;
[0224] When the detection time reaches a second preset time, the vehicle is controlled to exit the anti-spill mode.
[0225] In an embodiment of the present application, when the first behavior information of the person inside the vehicle is determined to be drinking behavior information based on the collected first vehicle interior image, the vehicle is controlled to enter the anti-spill mode based on the vehicle's driving speed, and the vehicle is controlled to travel according to the vehicle driving control parameters corresponding to the anti-spill mode. Controlling the vehicle's travel based on the vehicle driving control parameters corresponding to the anti-spill mode can avoid situations in which the vehicle body is shaken due to sharp turns, sudden braking, etc., and makes the vehicle travel smoothly, thereby achieving the effect of preventing drinks from spilling when the person inside the vehicle is drinking.
[0226] See Figure 11 , provides a structural diagram of a vehicle according to an embodiment of the present application. Figure 11 As shown, the vehicle 500 includes a processor 501, a memory 502, a display screen 503, a camera assembly 504, an audio circuit 505, a sensor 506, and a power supply 507. The processor 501 is electrically connected to the display screen 503, the camera assembly 504, the audio circuit 505, the sensor 506, and the power supply 507.
[0227] The display screen 503 may be used to display information input by a user or information provided to a user, as well as various graphical user interfaces of the vehicle 500 . These graphical user interfaces may be composed of images, texts, icons, videos, and any combination thereof.
[0228] The camera assembly 504 may include an image processing circuit, which may be implemented using hardware and / or software components and may include various processing modules that define an image signal processing pipeline. The image processing circuit may include at least: multiple cameras, an image signal processor (ISP processor), control logic, and image memory. Each camera may include at least one or more lenses and an image sensor. The image sensor may include a color filter array (such as a Bayer filter). The image sensor may obtain light intensity and wavelength information captured by each imaging pixel of the image sensor and provide a set of raw image data that can be processed by the image signal processor.
[0229] The audio circuit 505 can be used to provide an audio interface between the user and the vehicle 500 through a speaker and a microphone. The audio circuit 505 includes a microphone. The microphone is electrically connected to the processor 501 and is used to receive voice information input by the user.
[0230] Sensor 506 is used to collect information about the vehicle 500 itself, the user, or the external environment. For example, sensor 506 may include one or more sensors such as a vibration sensor, a temperature sensor, a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, a posture sensor, a barometer, and a heart rate sensor.
[0231] The power supply 507 is used to supply power to various components of the vehicle 500. In some embodiments, the power supply 507 can be logically connected to the processor 501 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0232] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned vehicle control method, and therefore can achieve the same effect as the above-mentioned implementation method.
[0233] In the case of an integrated module, the device may include a processing module and a storage module. When the device is used in a vehicle, the processing module may be used to control and manage the vehicle's movements, while the storage module may be used to support the vehicle's execution of relevant program codes.
[0234] The processing module may be a processor or controller that implements or executes the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processing (DSP) and a microprocessor, and the storage module may be a memory.
[0235] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a vehicle control method provided in the above embodiment.
[0236] An embodiment of the present application also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a vehicle control method provided by the above-mentioned embodiment.
[0237] This embodiment also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement a vehicle control method provided by the above embodiment.
[0238] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0239] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0240] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the modules or the division of modules are merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0241] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A vehicle control method, characterized in that: The method comprises: Acquire a first vehicle interior image, and determine first behavior information of a person inside the vehicle based on the first vehicle interior image; If the first behavior information is drinking behavior information, obtaining the driving speed of the vehicle; Controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed, and acquiring vehicle driving control parameters corresponding to the anti-spill mode; The travel of the vehicle is controlled based on the vehicle travel control parameter.
2. The method according to claim 1, characterized in that The step of controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed and obtaining vehicle driving control parameters corresponding to the anti-spill mode includes: If the driving speed of the vehicle is greater than zero, controlling the vehicle to enter the anti-spill mode; The driving state of the vehicle is obtained in the anti-spill mode, and the vehicle driving control parameters corresponding to the driving state are obtained.
3. The method according to claim 2, characterized in that The vehicle driving control parameter is a preset acceleration parameter; The step of obtaining the driving state of the vehicle in the anti-spill mode and obtaining the vehicle driving control parameters corresponding to the driving state includes: If it is determined that the driving speed is greater than a preset driving speed in the anti-spill mode, determining that the driving state of the vehicle is an overspeeding state; Obtaining the preset acceleration parameter corresponding to the overspeed state; The controlling the driving of the vehicle based on the vehicle driving control parameter comprises: The vehicle is controlled to reduce the driving speed based on the preset acceleration parameter until the driving speed is less than or equal to the preset driving speed.
4. The method according to claim 2, characterized in that: The vehicle driving control parameter is a preset steering parameter; The step of obtaining the driving state of the vehicle in the anti-spill mode and obtaining the vehicle driving control parameters corresponding to the driving state includes: In the anti-spill mode, obtaining obstacle information in front of the vehicle in the driving direction; Determining, based on the obstacle information, that the driving state of the vehicle is an obstacle avoidance state, and acquiring the preset steering parameter corresponding to the obstacle avoidance state; The controlling the driving of the vehicle based on the vehicle driving control parameter comprises: The vehicle is controlled to avoid an obstacle corresponding to the obstacle information based on the preset steering parameter.
5. The method according to claim 1, characterized in that The vehicle driving control parameter is a preset parking brake parameter; The step of controlling the vehicle to enter an anti-spill mode based on the vehicle's driving speed and obtaining vehicle driving control parameters corresponding to the anti-spill mode includes: If the driving speed of the vehicle is zero, obtaining external environment information of the vehicle; If it is determined based on the external environment information that the vehicle has a collision risk, controlling the vehicle to enter the anti-spill mode; Acquiring the preset parking brake parameters corresponding to the anti-spill mode; The controlling the driving of the vehicle based on the vehicle driving control parameter comprises: The vehicle is controlled to have a travel speed of zero based on the preset parking brake parameter.
6. The method according to claim 1, characterized in that Before acquiring the first vehicle interior image, the method includes: Establishing a connection between a mobile terminal corresponding to a person inside the vehicle; Acquire a purchase record of the person in the vehicle using the mobile terminal within a first preset time period; If beverage information exists in the purchase record, obtaining a switch switching state of a closing component of the vehicle; If the switch switching state of the closing component meets the preset condition, collecting a second vehicle interior image; If it is determined based on the second vehicle interior image that there is a new beverage in the vehicle, the step of capturing the first vehicle interior image is performed.
7. The method according to claim 6, characterized in that If it is determined based on the second vehicle interior image that there is a new beverage in the vehicle, executing the step of acquiring the first vehicle interior image comprises: comparing the second vehicle interior image with a preset image; When it is determined that the second vehicle interior image is inconsistent with the preset image, intercepting an image of a region where the second vehicle interior image is different from the preset image; Inputting the regional image into a preset beverage recognition model to obtain a first output result of the preset beverage recognition model; If the first output result is that there is a new beverage in the vehicle, the step of capturing the first vehicle interior image is performed.
8. The method according to claim 1, characterized in that The determining first behavior information of a person inside the vehicle based on the first vehicle interior image includes: The first vehicle interior image is input into a preset behavior recognition model, and first behavior information of the person inside the vehicle is determined based on a second output result of the preset behavior recognition model.
9. The method according to claim 1, characterized in that: After controlling the driving of the vehicle based on the vehicle driving control parameter, the method further includes: collecting an interior image of a third vehicle; Determining second behavior information of a person inside the vehicle based on the third vehicle interior image; If the second behavior information is non-drinking behavior information, obtaining a detection time duration during which no drinking behavior information of the person inside the vehicle is detected; When the detection time reaches a second preset time, the vehicle is controlled to exit the anti-spill mode.
10. A vehicle control device, characterized in that: The device comprises: An image acquisition unit, configured to acquire a first vehicle interior image, and determine first behavior information of a person inside the vehicle based on the first vehicle interior image; a vehicle speed acquisition unit, configured to acquire a vehicle speed if the first behavior information is drinking behavior information; a parameter acquisition unit, configured to control the vehicle to enter an anti-spill mode based on a driving speed of the vehicle, and to acquire a vehicle driving control parameter corresponding to the anti-spill mode; A driving control unit is used to control the driving of the vehicle based on the vehicle driving control parameters.
11. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory so that the vehicle executes the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 9 is implemented.
