Vehicle control method, vehicle, computer equipment and program product
By using induction devices and image detection networks on new energy vehicles, the connection status of the charging port and the electric gun is determined, and the safety accidents caused by poor contact or detection failure are solved, thereby improving driving safety.
Patent Information
- Application Number
- CN202411481898.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-01-03
AI Technical Summary
In the charging and discharging scenarios of new energy vehicles, the charge and discharge gun contact or detection failure causes the charging control system to fail to detect the real connection status, which may cause the driver to accidentally start the vehicle to drag the gun line, causing a safety accident.
By using an induction device on the target vehicle to detect whether the charging port is externally connected to the electric gun, and when driving intention is detected, the image to be detected of the charging port is input to the pre-trained detection network, and the relative position relationship between the charging port and the electric gun is determined, and then the Control the activation or prohibition of vehicle power system.
The safety detection of the charging port is realized in the scene where the electric gun is connected to the charging port fault or the electric gun is placed on the charging port cover, which improves driving safety and prevents the vehicle from being dragged and dragged by the charging gun and other power loads by mistake.
Smart Images

Figure CN119239317A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automobile technology, and in particular to a vehicle control method, a vehicle, a computer device, and a program product. Background Art
[0002] With the popularization of new energy vehicles, the charging and discharging scenes of new energy vehicles have become commonplace. The charging scene mainly involves taking electricity from the charging pile to plug in the gun to replenish the energy of the entire vehicle, while the discharging scene mainly uses the entire vehicle as an energy provider, which discharges to the outside after connecting the discharge gun to provide power to other loads.
[0003] In the charging and discharging scenarios of new energy vehicles, in order to prevent the vehicle from being accidentally started and dragging the gun line, the vehicle is prohibited from driving when the hardware device detects that the charging and discharging gun on the vehicle side is connected. However, if the charging and discharging gun has poor contact or a detection failure occurs, the charging control system fails to detect the actual connection status of the charging and discharging gun when the charging and discharging gun is connected, or the user does not plug in the gun, but just hangs the charging and discharging gun on the charging port cover, etc., if the driver accidentally starts the vehicle at this time, it will cause the vehicle to drag the charging and discharging gun, charging pile and other power loads, leading to a more serious safety accident. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a vehicle control method, a vehicle, a computer device, and a program product.
[0005] In a first aspect, an embodiment of the present disclosure provides a vehicle control method, including:
[0006] In the case of detecting a driving intention, determining whether a charging port of the target vehicle is connected to an external stun gun based on a sensing device on the target vehicle;
[0007] If not, obtaining an image to be detected including the charging port of the target vehicle;
[0008] Input the image to be detected into a pre-trained detection network to obtain a detection result output by the detection network, wherein the detection result is used to indicate whether the relative position relationship between the charging port and the stun gun meets the target position relationship; wherein the target position relationship includes the stun gun being inserted into the charging port, and the stun gun being placed on the charging port cover;
[0009] The target vehicle is controlled based on the detection result.
[0010] In a possible implementation manner, the controlling the target vehicle based on the detection result includes:
[0011] When the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is inserted into the charging port, activating the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0012] In a possible implementation manner, the controlling the target vehicle based on the detection result includes:
[0013] In the case where the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is placed on the charging port cover, determining whether the charging port cover is open based on the sensing device of the target vehicle;
[0014] If not, activating the power system of the target vehicle is allowed;
[0015] If so, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0016] In a possible implementation manner, before displaying the prompt information on the display device of the target vehicle, the method further includes:
[0017] Determining that the image to be detected includes a charging and discharging device;
[0018] The displaying of prompt information on the display device of the target vehicle includes:
[0019] In the case where it is detected that the image to be detected contains a charging and discharging device, prompt information is displayed on a display device of the target vehicle, and the prompt information includes name information of the charging and discharging device.
[0020] In a possible implementation manner, the step of responding to a confirmation operation on the prompt information to allow activation of a power system of the target vehicle includes:
[0021] After the prompt information is displayed on the display device of the target vehicle, when it is detected that the door of the target vehicle is opened and then closed, in response to a confirmation operation for the prompt information, activation of the power system of the target vehicle is allowed.
[0022] In a possible implementation manner, the method further includes detecting whether there is a driving intention according to the following method:
[0023] In the case where it is detected that the target vehicle is switched to the target gear, determining that there is a driving intention; or,
[0024] When it is detected that the accelerator pedal of the target vehicle is depressed, it is determined that there is a driving intention.
[0025] In a possible implementation manner, the method further includes:
[0026] In the case where an external electric gun is determined at the charging port of the target vehicle based on the sensing device of the target vehicle, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0027] In a second aspect, an embodiment of the present disclosure further provides a vehicle, which is used to execute the steps in the above-mentioned first aspect, or any possible implementation of the first aspect.
[0028] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the machine-readable instructions are executed by the processor to perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.
[0029] In a fourth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed, implements the method described in the above-mentioned first aspect, or any possible implementation manner of the first aspect.
[0030] In the vehicle control method, vehicle, computer device and program product provided by the embodiments of the present disclosure, after the driving intention is detected, when it is determined based on the sensing device on the target vehicle that the charging port of the target vehicle does not have an external stun gun, based on the pre-trained detection network, the relative position relationship between the charging port and the stun gun in the image to be detected containing the position of the charging port is detected to see whether it meets the target position relationship, and then the target vehicle is controlled based on the detection result. In this way, the charging port can be safely detected in scenarios where the charging port fails to connect to the stun gun, or the stun gun is placed on the cover of the charging port, which cannot be detected by the sensing device, thereby improving driving safety.
[0031] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0033] Figure 1 A flow chart of a vehicle control method provided by an embodiment of the present disclosure is shown;
[0034] Figure 2 An example diagram of a vehicle control method provided by an embodiment of the present disclosure is shown;
[0035] Figure 3 A schematic diagram of a vehicle control device provided by an embodiment of the present disclosure is shown;
[0036] Figure 4 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure.
[0038] Research has found that in the charging and discharging scenarios of new energy vehicles, in order to prevent the vehicle from being accidentally started and dragging the gun line, the vehicle is prohibited from driving when the hardware device detects that the charging and discharging gun on the vehicle side is connected. However, if the charging and discharging gun has poor contact or a detection failure occurs, the charging control system fails to detect the actual connection status of the charging and discharging gun when the charging and discharging gun is connected, or the user does not plug in the gun, but just hangs the charging and discharging gun on the charging port cover, etc., if the driver accidentally starts the vehicle at this time, it will cause the vehicle to drag the charging and discharging gun, charging pile and other power loads, leading to more serious safety accidents.
[0039] Based on the above research, the present disclosure provides a vehicle control method, vehicle, computer equipment and program product. After detecting the driving intention, when it is determined based on the sensing device on the target vehicle that the charging port of the target vehicle does not have an external electric gun, based on the pre-trained detection network, it is detected whether the relative position relationship between the charging port and the electric gun in the image to be detected containing the position of the charging port meets the target position relationship, and then the target vehicle is controlled based on the detection result. In this way, the charging port can be safely detected in scenarios where the charging port fails to connect to the electric gun, or the electric gun is placed on the cover of the charging port, which cannot be detected by the sensing device, thereby improving driving safety.
[0040] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0041] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0042] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the personal information involved in the present disclosure (including but not limited to attribute information, facial images, etc.) is obtained with the authorization of the user. Specifically, it can be through a pop-up window in the page, information push, etc., sending a prompt message requesting authorization to the user, and obtaining the above personal information after the user agrees to the authorization.
[0043] To facilitate understanding of this embodiment, a vehicle control method disclosed in the embodiment of the present disclosure is first introduced in detail. The executor of the vehicle control method provided in the embodiment of the present disclosure is generally a vehicle terminal.
[0044] See also Figure 1 FIG. 1 is a flow chart of a vehicle control method provided by an embodiment of the present disclosure, wherein the method includes steps 101 to 104, wherein:
[0045] Step 101: When a driving intention is detected, determine whether a charging port of the target vehicle is connected to an external stun gun based on a sensing device on the target vehicle.
[0046] Step 102: If not, obtain the image to be detected including the charging port of the target vehicle.
[0047] Step 103: input the image to be detected into a pre-trained detection network to obtain a detection result output by the detection network, wherein the detection result is used to indicate whether the relative position relationship between the charging port and the stun gun meets the target position relationship; wherein the target position relationship includes the stun gun being inserted into the charging port, and the stun gun being placed on the charging port cover.
[0048] Step 104: Control the target vehicle based on the detection result.
[0049] The following is a detailed description of the above steps.
[0050] For step 101 and step 102,
[0051] The driving intention may refer to an intention to activate a power system of the target vehicle. For example, when detecting whether there is a driving intention, the following steps may be included:
[0052] In the case where it is detected that the target vehicle is switched to the target gear, determining that there is a driving intention; or,
[0053] When it is detected that the accelerator pedal of the target vehicle is depressed, it is determined that there is a driving intention.
[0054] Among them, the target gear may refer to a forward gear or a reverse gear; or, when it is detected that the target vehicle enters a target mode, it may also be determined that there is a driving intention, and the target mode may include, for example, an automatic parking mode, an intelligent driving mode, etc.
[0055] The sensing device on the target vehicle may refer to a sensor installed on the target vehicle. If the charging port is connected to an external stun gun and the stun gun is well connected, the sensing device can directly determine whether the charging port is connected to an external stun gun. Here, the stun gun may include a charging gun and a discharging gun.
[0056] If it is determined through a sensing device that an external electric gun is connected to the charging port of the target vehicle, the activation of the power system of the target vehicle can be directly prohibited, and a prompt message can be displayed on the display device of the target vehicle. The prompt message is used to prompt the user to check the charging port, and then the user can respond to a confirmation operation on the prompt message to allow the activation of the power system of the target vehicle.
[0057] If the stun gun has poor contact with the charging port, or is placed on the charging port cover, it cannot be detected by the sensing device in this case, but it still falls into the scenario where the vehicle cannot be driven, so further detection based on the image is required.
[0058] Optionally, the image acquisition device can be deployed on a rearview mirror, and the image acquisition device on the rearview mirror can acquire the image to be detected of the charging port of the target vehicle.
[0059] Optionally, after acquiring the image to be detected, in order to improve the image detection result, the image to be detected may be preprocessed, such as performing denoising processing or image correction processing.
[0060] For step 103,
[0061] The detection network may be a convolutional neural network (CNN) network, and the detection network may be an end-to-end network. After the image to be detected is input into the convolutional network, the convolutional network may output the relative position relationship between the charging port and the electric gun.
[0062] Here, the relative position relationship between the charging port and the stun gun may include: no relationship, the stun gun is inserted into the charging port, the stun gun is placed on the charging port cover, etc. The target position relationship may include the stun gun is inserted into the charging port, and the stun gun is placed on the charging port cover.
[0063] Optionally, the detection network may be trained in a supervised training process. Specifically, a sample image and the annotation information corresponding to the sample image may be obtained first, and the annotation information is used to annotate the relative position relationship between the charging port and the electric gun in the sample image. Then, the sample image is input into the detection network to be trained, and the detection network to be trained may output the predicted relative position relationship. Then, based on the predicted relative position relationship and the annotation information corresponding to the sample image, the loss value in this training process is determined, and then the detection network to be trained is trained based on the loss value, thereby obtaining a trained detection network.
[0064] It should be noted that the sample image here may not be the image captured by the image capture device on the rearview mirror of the above-mentioned vehicle, but may be any image including the charging port, for example, a 360-degree image of the vehicle.
[0065] In another possible implementation, the detection network can output the relative position relationship between the charging port and the electric gun, and the confidence of the relative position relationship; when detecting whether the relative position relationship conforms to the target position relationship, it can be detected whether the relative position relationship is any one of the target position relationships, and whether the target confidence of the relative position relationship is greater than a preset confidence.
[0066] Optionally, the detection network may also detect whether the image to be detected contains a charging and discharging device. If a charging and discharging device exists, the confidence of the relative position relationship may be multiplied by a preset threshold as a target confidence of the relative position relationship.
[0067] Here, the charging and discharging equipment may include, for example, charging piles and electrical appliances. The preset threshold may be a value greater than 1. If the image to be detected contains charging and discharging equipment, the probability that the charging port of the target vehicle is connected to or placed with an electric gun will be higher. Therefore, by combining the charging and discharging equipment in the image to be detected, the connection status of the charging port can be detected more accurately.
[0068] For step 104,
[0069] Different detection results correspond to different vehicle control strategies. Exemplarily, when the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is inserted into the charging port, controlling the target vehicle based on the detection result may include: prohibiting activation of the power system of the target vehicle, and displaying a prompt message on the display device of the target vehicle, the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, allowing activation of the power system of the target vehicle.
[0070] Here, the target vehicle's sensing device determines that there is no external stun gun at the charging port, but the image to be detected detects that the stun gun is inserted into the charging port, which means that the stun gun may be inserted into the charging port but has poor contact. Therefore, the target vehicle's power system cannot be activated in this case.
[0071] Optionally, the prompt information may further include a detection confirmation button, and the confirmation operation on the prompt information may refer to a triggering operation on the detection confirmation button.
[0072] When the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is placed on the charging port cover, the controlling the target vehicle based on the detection result may include: determining whether the charging port cover is open based on the sensing device of the target vehicle; if not, allowing the power system of the target vehicle to be activated; if so, prohibiting the activation of the power system of the target vehicle, and displaying a prompt message on the display device of the target vehicle, the prompt message being used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, allowing the power system of the target vehicle to be activated.
[0073] Here, if the charging port cover is in a closed state, the electric gun cannot be placed on the charging port cover. Therefore, the detection result can be verified by detecting the opening and closing state of the charging port cover.
[0074] In one possible implementation, after a confirmation operation for the prompt information is detected, activation of the power system of the target vehicle may be directly allowed; in another possible implementation, in order to improve safety, after a confirmation operation for the prompt information is detected, whether the charging port of the target vehicle is connected to an external electric gun may be determined based on the sensing device on the target vehicle; if not, the image to be detected including the charging port of the target vehicle is re-acquired, and then based on the re-acquired image to be detected, whether the relative position relationship between the charging port and the electric gun conforms to the target position relationship; if not, activation of the power system of the target vehicle is allowed; if yes, the prompt information is re-displayed to prompt the user to detect the charging port again.
[0075] Optionally, if the target vehicle's power system is directly allowed to be activated after a confirmation operation is detected for the prompt information, it is impossible to confirm whether the user has checked the charging port. Therefore, the response to the confirmation operation for the prompt information and the activation of the target vehicle's power system may include: after the prompt information is displayed on the display device of the target vehicle, if it is detected that the door of the target vehicle is opened and then closed, the response to the confirmation operation for the prompt information and the activation of the target vehicle's power system.
[0076] Here, after the prompt message is displayed, if it is detected that the car door is opened and then closed, it can be said that the user got out of the car to check the charging port. Therefore, in this case, responding to the confirmation operation for the prompt message and allowing the power system of the target vehicle to be activated can ensure driving safety.
[0077] In another possible implementation, before the prompt information is displayed on the display device of the target vehicle, it can also be determined that the image to be detected contains a charging and discharging device. When it is detected that the image to be detected contains a charging and discharging device, the prompt information is displayed on the display device of the target vehicle, and the prompt information includes the name information of the charging and discharging device.
[0078] Exemplarily, the prompt message may be: It is detected that XX device is connected to the charging port, please get off the vehicle and check the charging port.
[0079] Here, the process of determining whether the image to be detected contains a charging and discharging device may also be executed by the above-mentioned detection network. The detection network may perform semantic detection on the image to be detected to determine whether the image to be detected contains a charging and discharging device.
[0080] When the detection result is that the relative position relationship between the charging port and the stun gun does not conform to the target position relationship, the controlling the target vehicle based on the detection result may include: allowing activation of a power system of the target vehicle.
[0081] The above vehicle control method will be introduced below in conjunction with specific embodiments.
[0082] See also Figure 2 The figure shows an example diagram of a vehicle control method provided by an embodiment of the present disclosure. First, when the driving intention is detected, it can be determined whether the charging and discharging gun is connected based on the charging control system, and at the same time, the image to be detected at the charging port position is collected based on the camera outside the vehicle. Then, when it is determined based on the charging control system that the charging and discharging gun is not connected, it is determined based on the image recognition system (CNN algorithm) whether there is a charging and discharging gun inserted into the charging port or hung on the charging port cover. If not, the power system is directly allowed to be activated. If there is a charging and discharging gun inserted into the charging port, the power system is prohibited from being activated, and the driver is reminded to check whether the charging and discharging gun is completely disconnected. If there is a charging and discharging gun hanging on the charging port cover, it is detected whether the charging port cover is open. If not, the power system is allowed to be activated. If so, the power system is prohibited from being activated, and the driver is reminded to check whether the charging and discharging gun is completely disconnected (i.e., the prompt information is displayed). After the driver confirms that it is completely disconnected (i.e., the confirmation operation for the prompt information), the power system is allowed to be activated.
[0083] The vehicle control method provided by the embodiment of the present disclosure, after detecting the driving intention, determines that the charging port of the target vehicle does not have an external stun gun based on the sensing device on the target vehicle, and then detects whether the relative position relationship between the charging port and the stun gun in the image to be detected containing the position of the charging port meets the target position relationship based on the pre-trained detection network, and then controls the target vehicle based on the detection result. In this way, the charging port can be safely detected in scenarios where the charging port fails to connect to the stun gun, or the stun gun is placed on the cover of the charging port, which cannot be detected by the sensing device, thereby improving driving safety.
[0084] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0085] Based on the same inventive concept, a vehicle control device corresponding to the vehicle control method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned vehicle control method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0086] Reference Figure 3 , which is a schematic diagram of the architecture of a vehicle control device provided by an embodiment of the present disclosure, the device includes: a determination module 301, an acquisition module 302, a detection module 303 and a control module 304; wherein,
[0087] The determination module 301 is used to determine whether the charging port of the target vehicle is connected to an external stun gun based on the sensing device on the target vehicle when the driving intention is detected;
[0088] An acquisition module 302 is used to acquire an image to be detected including the charging port of the target vehicle when it is determined by a sensing device on the target vehicle that the charging port of the target vehicle is not connected to an external stun gun;
[0089] A detection module 303 is used to input the image to be detected into a pre-trained detection network to obtain a detection result output by the detection network, wherein the detection result is used to indicate whether the relative position relationship between the charging port and the stun gun meets the target position relationship; wherein the target position relationship includes the stun gun being inserted into the charging port, and the stun gun being placed on the charging port cover;
[0090] The control module 304 is used to control the target vehicle based on the detection result.
[0091] In a possible implementation manner, the control module 304 is configured to:
[0092] When the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is inserted into the charging port, activating the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0093] In a possible implementation manner, the control module 304 is configured to:
[0094] In the case where the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is placed on the charging port cover, determining whether the charging port cover is open based on the sensing device of the target vehicle;
[0095] If not, activating the power system of the target vehicle is allowed;
[0096] If so, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0097] In a possible implementation manner, before displaying the prompt information on the display device of the target vehicle, the determination module 301 is further configured to:
[0098] Determining that the image to be detected includes a charging and discharging device;
[0099] The control module 304 is used to:
[0100] In the case where it is detected that the image to be detected contains a charging and discharging device, prompt information is displayed on a display device of the target vehicle, and the prompt information includes name information of the charging and discharging device.
[0101] In a possible implementation manner, the control module 304 is configured to:
[0102] After the prompt information is displayed on the display device of the target vehicle, when it is detected that the door of the target vehicle is opened and then closed, in response to a confirmation operation for the prompt information, activation of the power system of the target vehicle is allowed.
[0103] In a possible implementation manner, the determining module 301 is configured to:
[0104] In the case where it is detected that the target vehicle is switched to the target gear, determining that there is a driving intention; or,
[0105] When it is detected that the accelerator pedal of the target vehicle is depressed, it is determined that there is a driving intention.
[0106] In a possible implementation manner, the control module 304 is configured to:
[0107] In the case where an external electric gun is determined at the charging port of the target vehicle based on the sensing device of the target vehicle, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0108] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0109] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 4As shown, it is a schematic diagram of the structure of a computer device 400 provided in an embodiment of the present disclosure, including a processor 401, a memory 402, and a bus 403. Among them, the memory 402 is used to store execution instructions, including a memory 4021 and an external memory 4022; the memory 4021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 401, and the data exchanged with the external memory 4022 such as a hard disk. The processor 401 exchanges data with the external memory 4022 through the memory 4021. When the computer device 400 is running, the processor 401 communicates with the memory 402 through the bus 403, so that the processor 401 executes the following instructions:
[0110] In the case of detecting a driving intention, determining whether a charging port of the target vehicle is connected to an external stun gun based on a sensing device on the target vehicle;
[0111] If not, obtaining an image to be detected including the charging port of the target vehicle;
[0112] Input the image to be detected into a pre-trained detection network to obtain a detection result output by the detection network, wherein the detection result is used to indicate whether the relative position relationship between the charging port and the stun gun meets the target position relationship; wherein the target position relationship includes the stun gun being inserted into the charging port, and the stun gun being placed on the charging port cover;
[0113] The target vehicle is controlled based on the detection result.
[0114] In a possible implementation manner, in the instructions executed by the processor 401, controlling the target vehicle based on the detection result includes:
[0115] When the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is inserted into the charging port, activating the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0116] In a possible implementation manner, in the instructions executed by the processor 401, controlling the target vehicle based on the detection result includes:
[0117] In the case where the detection result is that the relative position relationship between the charging port and the stun gun is that the stun gun is placed on the charging port cover, determining whether the charging port cover is open based on the sensing device of the target vehicle;
[0118] If not, activating the power system of the target vehicle is allowed;
[0119] If so, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
[0120] In a possible implementation manner, the instructions executed by the processor 401, before displaying the prompt information on the display device of the target vehicle, further include:
[0121] Determining that the image to be detected includes a charging and discharging device;
[0122] The displaying of prompt information on the display device of the target vehicle includes:
[0123] In the case where it is detected that the image to be detected contains a charging and discharging device, prompt information is displayed on a display device of the target vehicle, and the prompt information includes name information of the charging and discharging device.
[0124] In a possible implementation manner, in the instructions executed by the processor 401, the response to the confirmation operation of the prompt information to allow activation of the power system of the target vehicle includes:
[0125] After the prompt information is displayed on the display device of the target vehicle, when it is detected that the door of the target vehicle is opened and then closed, in response to a confirmation operation for the prompt information, activation of the power system of the target vehicle is allowed.
[0126] In a possible implementation manner, the instructions executed by the processor 401 further include detecting whether there is a driving intention according to the following method:
[0127] In the case where it is detected that the target vehicle is switched to the target gear, determining that there is a driving intention; or,
[0128] When it is detected that the accelerator pedal of the target vehicle is depressed, it is determined that there is a driving intention.
[0129] In a possible implementation manner, the instructions executed by the processor 401 further include:
[0130] In the case where the target vehicle's charging port is connected to an external electric gun based on the target vehicle's sensing device, the activation of the target vehicle's power system is prohibited, and a prompt message is displayed on the target vehicle's display device, the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, the activation of the target vehicle's power system is allowed. The disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the vehicle control method described in the above method embodiment are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0131] The disclosed embodiments also provide a computer program product, which carries a program code. The program code includes instructions that can be used to execute the steps of the vehicle control method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0132] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0133] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, 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 communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0136] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0137] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A vehicle control method, characterized in that: include: In the case of detecting a driving intention, determining whether a charging port of the target vehicle is connected to an external stun gun based on a sensing device on the target vehicle; If not, obtaining an image to be detected including the charging port of the target vehicle; Input the image to be detected into a pre-trained detection network to obtain a detection result output by the detection network, wherein the detection result is used to indicate whether the relative position relationship between the charging port and the stun gun meets the target position relationship; wherein the target position relationship includes the stun gun being inserted into the charging port, and the stun gun being placed on the charging port cover; The target vehicle is controlled based on the detection result.
2. The method according to claim 1, characterized in that The controlling the target vehicle based on the detection result includes: When the detection result indicates that the relative position relationship is that the electric gun is inserted into the charging port, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
3. The method according to claim 1, characterized in that The controlling the target vehicle based on the detection result includes: In the case where the detection result indicates that the relative positional relationship is that the stun gun is placed on the charging port cover, determining whether the charging port cover is open based on the sensing device of the target vehicle; If not, activating the power system of the target vehicle is allowed; If so, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
4. The method according to claim 2 or 3, characterized in that: Before displaying the prompt information on the display device of the target vehicle, the method further includes: Determining that the image to be detected includes a charging and discharging device; The displaying of prompt information on the display device of the target vehicle includes: In the case where it is detected that the image to be detected contains a charging and discharging device, prompt information is displayed on a display device of the target vehicle, and the prompt information includes name information of the charging and discharging device.
5. The method according to claim 2 or 3, characterized in that: The step of allowing activation of the power system of the target vehicle in response to a confirmation operation of the prompt information includes: After the prompt information is displayed on the display device of the target vehicle, when it is detected that the door of the target vehicle is opened and then closed, in response to a confirmation operation for the prompt information, activation of the power system of the target vehicle is allowed.
6. The method according to claim 1, characterized in that The method further includes detecting whether there is a driving intention according to the following method: In the case where it is detected that the target vehicle is switched to the target gear position, determining that there is a driving intention; or, When it is detected that the accelerator pedal of the target vehicle is depressed, it is determined that there is a driving intention.
7. The method according to claim 1, characterized in that The method further comprises: In the case where an external electric gun is determined at the charging port of the target vehicle based on the sensing device of the target vehicle, activation of the power system of the target vehicle is prohibited, and a prompt message is displayed on the display device of the target vehicle, wherein the prompt message is used to prompt the user to check the charging port; in response to a confirmation operation on the prompt message, activation of the power system of the target vehicle is allowed.
8. A vehicle, characterized in that: The vehicle is used to execute the steps of the vehicle control method as described in any one of claims 1 to 7 above.
9. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the machine-readable instructions are executed by the processor to perform the steps of the vehicle control method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed, the steps of the vehicle control method according to any one of claims 1 to 7 are implemented.
