Control method and system of opening and closing piece, storage medium, program product, electronic equipment and vehicle

The color parameters of user action are identified through color sensors, combined with the environment and vehicle status, and the problems of existing sensorless door opening technology are solved, with low cost, strong anti-interference ability and slow reaction speed, and low-cost sensorless door opening control with strong anti-interference ability and fast reaction speed, improving identification accuracy and safety.

CN120506162APending Publication Date: 2025-08-19BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510820610.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-18
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

The existing sensorless door opening technology has the problems of high cost, weak anti-interference ability and slow response speed, which is difficult to effectively solve the problem that users are inconvenient to pull the door handle or press the switch to open and close the door.

Method used

The color sensor is used to identify the color parameters of the user's action, and the opening and/or closing of the opening and/or closing of the opening and closing element is controlled by detecting the color change and duration of the user's action, and combined with environmental information and vehicle status, the error trigger rate is reduced.

Benefits of technology

It realizes low-cost, strong anti-interference ability and fast response speed, improves identification accuracy and safety, and reduces the false trigger rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120506162A_ABST
    Figure CN120506162A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and system of an opening and closing piece, a storage medium, a program product, electronic equipment and a vehicle, the state of the opening and closing piece is controlled based on color parameters of user actions, and the state of the opening and closing piece is used for indicating opening and / or closing of the opening and closing piece. Thus, when the opening and closing piece is the vehicle door, opening and / or closing of the vehicle door are / is controlled based on the color parameters of the user action, and therefore the problem that a user cannot conveniently pull a door handle or press a switch to open and close the door when taking things in the hand is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent vehicle technology, and in particular to a method and system for controlling an opening and closing member, a storage medium, a program product, an electronic device, and a vehicle. Background Art

[0002] With the rapid development of the automotive industry, people's demands for car functions are getting higher and higher, and the function of automatic door opening has become popular. In order to solve the problem that customers are unable to pull the door handle or press the switch to open and close the door when they have something in their hands, various major manufacturers have launched their own automatic door opening solutions. Summary of the Invention

[0003] The present invention aims to address at least one of the technical problems existing in the prior art. To this end, the present invention provides a method and system for controlling an opening and closing member, a storage medium, a program product, an electronic device, and a vehicle. This solution controls the state of the opening and closing member by using color parameters based on user actions, with the opening and closing member state used to indicate whether the opening and closing member is open and / or closed. Thus, when the opening and closing member is a vehicle door, this solution controls the opening and / or closing of the door based on the color parameters of the user's actions, thereby resolving the problem of users having difficulty pulling the door handle or pressing the switch to open or close the door while holding objects.

[0004] To achieve the above objectives, this application adopts the following technical solutions:

[0005] In a first aspect, the present application provides a method for controlling an opening and closing member, comprising: controlling an opening and closing member state based on a color parameter of a user action, wherein the opening and closing member state is used to indicate whether the opening and closing member is opened and / or closed.

[0006] In some embodiments of the present application, controlling the state of the opening and closing member based on the color parameters of the user action includes: controlling the state of the opening and closing member based on changes in the color parameters of the user action.

[0007] In some embodiments of the present application, controlling the door state based on the change in color parameters of user actions includes: determining whether there is user action based on the change in color parameters of user actions; and controlling the state of the opening and closing parts when there is user action.

[0008] In some embodiments of the present application, the determination of whether there is a user action based on the change in color parameters of the user action includes: judging whether there is a user action based on the detection results of three adjacent color changes of the user action and the detection duration; the detection duration is the time used from the appearance of the second detection result to the appearance of the third detection result.

[0009] In some embodiments of the present application, the judgment of whether there is a user action based on the detection results of three adjacent color changes of the user action and the detection duration includes: determining that there is a user action when the detection results of three adjacent color changes of the user action meet the first condition and the detection duration meets the second condition; wherein: the first condition is that the current detection result of the user action is inconsistent with the previous detection result, and the next detection result is the same as the previous detection result; the second condition is that the detection duration meets the threshold.

[0010] In some embodiments of the present application, the above method further includes: detecting the status of the opening and closing member.

[0011] In some embodiments of the present application, controlling the state of the opening and closing member when there is a user action includes: when there is a user action and the opening and closing member is in a closed state, controlling the opening and closing member to open; and / or, when there is a user action and the opening and closing member is in an open state, controlling the opening and closing member to close.

[0012] In some embodiments of the present application, the above method further includes: detecting the vehicle status.

[0013] In some embodiments of the present application, controlling the state of the opening and closing member based on the color parameters of the user action includes: controlling the state of the opening and closing member based on the color parameters of the user action when the vehicle is stationary.

[0014] In some embodiments of the present application, the above method further includes: detecting whether the vehicle key is within a set area outside the opening and closing member.

[0015] In some embodiments of the present application, controlling the state of the opening and closing member based on the color parameters of the user action includes: controlling the state of the opening and closing member based on the color parameters of the user action when the vehicle key is in a set area outside the opening and closing member.

[0016] In some embodiments of the present application, the above method further includes: turning on the light source according to environmental information.

[0017] In some embodiments of the present application, the above method further includes: the color parameter of the user action includes a color value and / or an intensity value.

[0018] In some embodiments of the present application, the aforementioned opening and closing member includes: a tailgate and a vehicle door.

[0019] In some embodiments of the present application, the above-mentioned user action includes: a kicking action or a hand shaking action.

[0020] In the second aspect, the present application provides a control system for an opening and closing member, including: a color sensor for detecting color parameters of user actions; a controller connected to the color sensor, for controlling the state of the opening and closing member according to the color parameters of the user actions detected by the color sensor, and the state of the opening and closing member is used to indicate the opening and / or closing of the opening and closing member.

[0021] In some embodiments of the present application, the above-mentioned system further includes: an actuator connected to the controller, and the controller is further configured to control the state of the opening and closing member through the actuator.

[0022] In some embodiments of the present application, the above-mentioned system further includes: a light source device connected to the controller, and the controller is further configured to turn on the light source device according to environmental information.

[0023] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer implements the method for controlling an opening and closing member according to the first aspect.

[0024] In a fourth aspect, the present application provides a computer program product, which stores instructions. When the instructions are executed by a computer, the computer implements the method for controlling an opening and closing member as described in the first aspect.

[0025] In a fifth aspect, the present application provides an electronic device, characterized in that it includes: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the control method of the opening and closing member as described in the first aspect.

[0026] In a sixth aspect, the present application provides a vehicle, characterized in that it includes: a control system as described in the second aspect; or, an electronic device as described in the fifth aspect; or, an opening and closing member and a controller, the controller being used to execute the control method of the opening and closing member as described in the first aspect.

[0027] The advantages and control methods of the vehicle, the electronic device, and the control system compared to the prior art are the same and will not be elaborated here.

[0028] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.

[0030] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same drawing numbers represent the same parts in the following description.

[0031] Figure 1 2 is a schematic structural diagram of a control system for an opening and closing member provided according to an embodiment of the present invention;

[0032] Figure 2 is a flow chart of a method for controlling an opening and closing member according to an embodiment of the present invention;

[0033] Figure 3 2. It is a schematic diagram of a scenario corresponding to a back door as the opening and closing member provided in accordance with the present invention;

[0034] Figure 4 is a flow chart of another method for controlling an opening and closing member according to an embodiment of the present invention;

[0035] Figure 5 is a structural diagram of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0037] In order to facilitate understanding of the implementation scheme provided in the embodiment of the present application, the relevant application background of the audio processing method provided in the embodiment of the present application is first explained.

[0038] With the rapid development of the automotive industry, people have higher and higher demands on the functions of cars, and the function of sensorless door opening has become popular. In order to solve the problem that customers are not convenient to pull the door handle or press the switch to open and close the door when they have something in their hands, various major companies have launched their own solutions for sensorless door opening. The existing sensorless door opening technologies are as follows:

[0039] The first is the capacitive kicking solution. This involves using one or two kicking antennas connected to a collection capacitor. The kicking action changes the charge inside the antenna, which is then captured by the collection capacitor to detect the kicking action, thereby opening or closing the door.

[0040] The second is the AR kicking solution. AR kicking uses a laser radar that emits laser light and detects laser light, using the principle of phase-type continuous wave ranging to monitor distance. The difference in distance before and after the kick is used to determine whether the door is opened or closed by the kicking action.

[0041] The third is to adopt a camera recognition solution, using the camera to recognize faces, eye irises, etc.

[0042] The fourth is the ultrasonic ranging solution, which uses the ultrasonic ranging principle to monitor whether there is kicking action.

[0043] The following table compares the above four solutions with the present invention:

[0044]

[0045]

[0046] To address the aforementioned issues, this solution uses a color sensor to identify the color parameters of a user's movements to control the state of an opening or closing member, which indicates whether the member is open or closed. In this way, when the opening or closing member is a vehicle door, this solution uses a color sensor to identify the color parameters of the user's movements to control the opening or closing of the door. Compared to existing solutions, this solution can solve the problem of users being unable to pull the door handle or press the switch to open or close the door while holding something in their hands. It also offers the technical advantages of low cost, strong anti-interference capabilities, and fast response time.

[0047] Figure 1 It is a structural diagram of a control system of an opening and closing member according to some embodiments of this specification.

[0048] like Figure 1 As shown, the control system 100 of the opening and closing member includes: a color sensor 110 and a controller 120, wherein: the color sensor 110 is used to detect the color parameters of the user's action; the controller 120 is connected to the color sensor 110, and is used to control the state of the opening and closing member 130 according to the color parameters of the user's action detected by the color sensor 110, and the state of the opening and closing member 130 is used to indicate the opening and / or closing of the opening and closing member.

[0049] For example, the above-mentioned color sensor is also called a color recognition sensor or a color sensor. It is a sensor that detects color by comparing the color of an object with a previously taught reference color. When the two colors match within a certain error range, the detection result is output.

[0050] In this solution, the color recognition sensor uses three photosensors, each equipped with a red, green, and blue filter (the red filter only passes red light, the blue filter only passes blue light, and the green filter only passes green light). The three photosensors identify the intensity of the corresponding color and convert it into an electrical signal. The domain controller processes and amplifies the electrical signal into a digital signal, and then calculates the different colors using a color model or algorithm (for example, the RGB primary color model).

[0051] Exemplarily, the aforementioned opening and closing members 130 include, but are not limited to, a front door, a rear door, an engine hood (hood), a tailgate, a fuel filler cap, and the like of the vehicle.

[0052] Optionally, when the above-mentioned opening and closing member is a back door, the corresponding scene diagram is as follows: Figure 2 As shown, the user's hands are occupied and the user is trying to open the back door by kicking. The above-mentioned color sensor can be set under the rear of the vehicle, near the back door, and then the color sensor can recognize the user's kicking action to open the back door.

[0053] As an optional implementation, the system further includes: an actuator 140 connected to the controller 120 , and the controller 120 is further configured to control the state of the opening and closing member 130 through the actuator 140 .

[0054] Exemplarily, when the opening and closing member is a tailgate, the actuator includes an electric strut and a drive motor, and the controller controls the drive motor to drive the electric strut to move so as to open and / or close the tailgate.

[0055] As an optional embodiment, the above further includes: a light source device 150, which is used to provide light source and is connected to the controller 120. The controller 120 is also used to turn on the light source device 150 according to environmental information. The above light source can use white light.

[0056] When encountering a situation with poor lighting, this solution turns on the light source device to provide light to the environment, thereby ensuring that the color sensor can still stably and accurately identify user actions in complex environments such as rain and fog.

[0057] This solution uses a color recognition sensor to identify user action parameters and uses the color changes before and after the user's action to control the state of the opening and closing parts. Compared with existing technologies, this control system solution has the technical advantages of low cost, strong anti-interference ability, and fast response time.

[0058] The executor of the technical solution of the embodiment of the present application may be an electronic device.

[0059] In some embodiments, the electronic device may be deployed in a mobile device, or may be the mobile device itself. The mobile device may have any appearance, such as a vehicle or other transportation tool.

[0060] The following description will be made by taking an example where the movable device is a smart vehicle (referred to as vehicle).

[0061] The control method of the opening and closing parts provided by the present invention can be applied to various scenarios. For example, it can be applied to vehicles, including but not limited to: the front door, rear door, engine hood (hood), tailgate, fuel filler cap, etc. on the vehicle; it can also be applied to smart homes, including but not limited to: smart door locks, refrigerators, and range hoods, etc.

[0062] Figure 3 This is a flow chart of a method for controlling an opening and closing member according to some embodiments of this specification. Figure 3 As shown, the present invention also provides a method for controlling an opening and closing member, the method comprising:

[0063] 201. Control a state of an opening and closing member based on a color parameter of a user action, where the state of the opening and closing member is used to indicate whether the opening and closing member is open and / or closed.

[0064] As an optional implementation, the above-mentioned user actions may be actions of various parts of the body, including but not limited to: kicking actions or hand shaking actions.

[0065] Further optionally, before the above step 201, the method further includes:

[0066] 200. Get the color parameters of the user action.

[0067] Exemplarily, the color parameters include color values and / or intensity values. Depending on the color model, the relationship between the color value and the intensity value may vary. This solution is applicable to various color models, including but not limited to the RGB (Red, Green, Blue) color model, the HSL (Hue, Saturation, Lightness) color model, and the HEX (Hexadecimal) color model.

[0068] For example, in the RGB color model, the RGB color model uses the intensity values of the three color channels: red (R), green (G), and blue (B) to define colors. The intensity value range of each channel is generally 0 to 255, where 0 represents the minimum intensity of the color channel (i.e., no color) and 255 represents the maximum intensity of the color channel (i.e., full color). For example, (255, 0, 0) represents pure red, (0, 255, 0) represents pure green, and (0, 0, 255) represents pure blue.

[0069] For example, in the HSL color model, colors are defined using the intensity values of three parameters: hue (H), saturation (S), and lightness (L). Hue is a circular value ranging from 0 to 360, indicating the type of color; saturation is a percentage value indicating the purity of the color; and lightness is a percentage value indicating the lightness or darkness of the color. For example, HSL(0,100%,50%) represents red, HSL(240,100%,50%) represents blue, and HSL(240,100%,100%) represents white.

[0070] As a preferred implementation, the above step 201 includes: 201a, controlling the state of the opening and closing member based on the change of the color parameter of the user action.

[0071] This solution controls the state of the opening and closing parts by the change of the color parameters of the user's actions, which can avoid the problem of static objects causing erroneous operations. For example, when a static object (such as a garbage bag) is collected, the color parameters of the static object can also be identified. If the state of the opening and closing parts is controlled only based on the color parameters themselves, some false triggering events will occur in the system. Therefore, as a preferred implementation solution, the state of the opening and closing parts can be controlled by the change of the color parameters.

[0072] As an optional implementation, the above 201a specifically includes the following contents:

[0073] 201a1. Determine whether there is a user action based on changes in the color parameters of the user action.

[0074] 201a2. When there is a user action, control the state of the opening and closing member.

[0075] Exemplarily, the above step 201a1 specifically includes the following contents:

[0076] 201a11. Determine whether there is a user action based on the detection results of three consecutive color changes of the user action and the detection duration;

[0077] The above-mentioned detection time is the time from the appearance of the second detection result to the appearance of the third detection result.

[0078] This solution uses the detection results of three consecutive color changes and the detection duration to determine whether there is a user action. This can avoid the problem of system misoperation caused by small animals entering the corresponding area. For example, when a small animal (such as a puppy) is captured, the animal may stay briefly or for a long time before leaving. In this case, the system can also recognize the detection result of a color change. However, this situation itself is not a user action included in this solution. Therefore, as a preferred implementation solution, the user action can be identified by the detection results of the color change and the detection duration.

[0079] As an optional implementation, the above 201a11 specifically includes the following contents:

[0080] 201a111. If the detection results of three consecutive color changes of the user action meet the first condition and the detection duration meets the second condition, it is determined that there is a user action.

[0081] The first condition is that the current detection result of the user action is inconsistent with the previous detection result, and the next detection result is the same as the previous detection result.

[0082] Exemplarily, the above detection results can be determined based on color values and / or intensity values. For example, the detection results of three adjacent colors can be color values, such as red, green, and blue; or intensity values. For example, if the color model is an RGB color model, the corresponding detection results can be (255, 0, 0), (0, 255, 0), and (0, 0, 255). Or they can be color values and intensity values. For example, if the color model is an RGB color model, the corresponding detection results can be red (255, 0, 0), green (0, 255, 0), and blue (0, 0, 255).

[0083] Exemplarily, this solution is based on whether the detection results of three adjacent color changes of the user action meet the first condition. This can be determined by the color values of the three adjacent color changes, or by the intensity values of the three adjacent color changes, or by both the color values and the intensity values of the three adjacent color changes. For example, if the detection results of three adjacent color changes are gray (previous detection result), green (current detection result), and gray (next detection result), the system determines based on the above color values that the current detection result is inconsistent with the previous detection result, and the next detection result is consistent with the previous detection result, then the first condition is met.

[0084] The second condition mentioned above is that the detection duration meets the threshold.

[0085] For example, the threshold value can be set based on experience. The threshold value can be an interval value or a single value. For example, it can be set to 3 seconds. This solution determines whether the second condition is met based on whether the detection duration meets the threshold value. For example, when the detection duration is greater than or equal to 3 seconds, the second condition is met.

[0086] This solution determines whether it is a user action by setting a first condition and a second condition for detecting the user action, which can further ensure the accuracy of the recognition result and eliminate false triggering operations, thereby accurately controlling the opening and / or closing of the opening and closing member.

[0087] As a preferred implementation, the method further includes: 202, detecting the state of the opening and closing member. Furthermore, the aforementioned 201 specifically includes the following: 201a21, when a user action is present and the opening and closing member is in the closed state, controlling the opening and closing member to open. And / or, 201a22, when a user action is present and the opening and closing member is in the open state, controlling the opening and closing member to close.

[0088] This solution can open the opening and closing member when it is in the closed state and detects user action; and close the opening and closing member when it is in the open state and detects user action, thereby further accurately controlling the opening and / or closing of the opening and closing member.

[0089] As a preferred implementation, the method further includes: 203, detecting the vehicle state. Further, the above step 201 specifically includes the following: 201b1, when the vehicle is stationary, controlling the state of the opening and closing member based on the color parameter of the user action.

[0090] This solution controls the state of opening and closing components based on the color parameters of user actions when the vehicle is stationary, improving driving safety and reducing false triggering rates. For example, using a door as an opening and closing component, the system determines the vehicle speed signal from the IPB and only activates the door opening and closing action when the vehicle speed is zero, meaning it is stationary. The contactless door opening action is not activated when the vehicle is not stationary.

[0091] Optionally, the method further includes: 204. Detecting whether the vehicle key is within a set area outside the opening and closing element. Furthermore, the above-mentioned step 201 specifically includes the following: 201c1. When the vehicle key is within the set area outside the opening and closing element, controlling the state of the opening and closing element based on the color parameter of the user action.

[0092] This solution controls the state of the door opening and closing mechanism based on the color parameters of the user's actions when the vehicle key is within a set area outside the door opening and closing mechanism, improving property safety and further reducing false triggering. For example, using a vehicle door as an example, the key's position is detected using an existing key detection antenna. Based on the key's position, it is determined whether the key is outside the door and within a certain distance. If the key is inside the vehicle or far away from the door, the door opening and closing mechanism is not activated.

[0093] In summary, this solution reduces the false trigger rate through multi-condition cross-verification (vehicle status, key position, and opening and closing member status), which can further ensure the accuracy of recognition and thus accurately control the opening and / or closing of the opening and closing member.

[0094] As an optional implementation manner, the method further includes: 204 , turning on the light source according to the environmental information.

[0095] Exemplarily, the above-mentioned environmental information includes but is not limited to the following: ambient light intensity and weather conditions.

[0096] This solution can intelligently turn on or off the light source according to conditions such as ambient light intensity, rain and fog conditions, thereby improving recognition accuracy and reducing energy consumption in complex environments.

[0097] The following describes the complete execution flow of this solution, using a kick as an example user action and a door as the opening and closing element. This solution implements a system where the user kicks a fixed area under the vehicle. The vehicle recognizes the kick and unlocks or locks the door. The overall logic is based on the functional description requiring precise recognition of the kick and then executing the door opening and closing actions.

[0098] like Figure 4 FIG. 1 is a flow chart of a control method according to an embodiment of the present invention. The method includes:

[0099] Step 401: Determine whether the vehicle is stationary. If so, proceed to step 402; otherwise, the process continues in a loop.

[0100] Step 402 : Determine whether the vehicle key is near the vehicle. If so, proceed to step 403 ; otherwise, proceed to step 401 .

[0101] Step 403: Control the light source output.

[0102] For example, when the ambient light is poor, this solution can control the light source output.

[0103] Step 404: Control the color sensor to recognize the user's kicking action.

[0104] Step 405: Record the color value and intensity value of the color sensor last time and currently.

[0105] Step 406 : Determine whether the color value changes between the last time and the current time, or determine whether the intensity value changes between the last time and the current time. If so, execute step 407 ; otherwise, execute step 401 .

[0106] Step 407 : Determine whether the next color change and intensity value are restored to the previous state. If so, execute step 408 ; otherwise, execute step 401 .

[0107] Step 408 : Determine whether the change time satisfies the duration of a kicking action. If so, proceed to step 409 ; otherwise, proceed to step 401 .

[0108] Step 409 , determine whether the current vehicle door is in an open state, if so, execute step 410 , otherwise execute step 412 .

[0109] Step 410: The door stay is driven by the motor to close the vehicle door.

[0110] Step 411: Execute door locking.

[0111] Step 412: Execute door unlocking.

[0112] Step 413: The door stay is driven by the motor to open the door.

[0113] After executing the above steps 412 and 413 , the process returns to step 401 .

[0114] The aforementioned sensorless door opening and closing solution, based on the vehicle body controller, provides processing logic that accurately identifies the driver's kicking motion. Using color recognition, the system uses the color change before and after the kick and the reflected color intensity to determine if a person has kicked in, and then initiates the door opening and closing action.

[0115] Color recognition works based on the color characteristics of light reflected from an object's surface. When a light source shines on an object's surface, it reflects light of the corresponding wavelength. This light is received by a photosensor, which converts it into an electrical signal. After passing through a signal processing circuit, the signal is amplified and digitized, and transmitted to the MCU. The MCU uses a color model or algorithm to calculate and confirm the color. The color recognition sensor also monitors the energy level of light. This is based on the fact that light scatters differently when it strikes different objects, resulting in different reflected light energy levels, which can be used to redundantly determine whether a kicking action has occurred.

[0116] Figure 5 This is a schematic diagram of the structure of an electronic device according to some embodiments of this specification. Figure 5As shown, the electronic device 500 includes a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502.

[0117] The processor 501 is the control center of the electronic device 500. It connects the various parts of the entire electronic device 500 using various interfaces and lines. By running or loading software programs and / or units stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the electronic device 500 and processes data, thereby monitoring the entire electronic device 500. The processor 501 can be a processor CPU (Central Processing Unit), a graphics processor GPU (Graphics Processing Unit), a network processor (NP), etc., and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0118] In an embodiment of the present application, the processor 501 in the electronic device 500 will load the computer program corresponding to the process of one or more applications into the memory 502 according to the method or steps of the above embodiment, and the processor 501 will run the application stored in the memory 502 to execute the control method of the opening and closing component.

[0119] The electronic device according to the embodiment of the present invention can solve the problem that it is inconvenient for a user to pull the door handle or press the switch to open or close the door when holding something in his hand by executing the above-mentioned control method of the opening and closing member.

[0120] Embodiments of the present invention further provide a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer implements the aforementioned method for controlling a switch and closure member. For example, the computer-readable storage medium may be the aforementioned memory containing program instructions. The program instructions may be executed by a processor of an electronic device to implement or execute the various methods, steps, and logic diagrams disclosed in the embodiments of this application.

[0121] Embodiments of the present invention further provide a computer program product storing instructions that, when executed by a computer, cause the computer to implement the aforementioned method for controlling a switch or closure. For example, when executed by a computer, the instructions implement or execute the various methods, steps, and logic diagrams disclosed in the embodiments of this application.

[0122] An embodiment of the present invention further provides a vehicle comprising the electronic device described above, or the control system described above, or an opening and closing member, and a controller configured to execute the opening and closing member control method described above. The vehicle may be a gasoline-powered vehicle, a plug-in hybrid vehicle, or a new energy vehicle, and this specification does not specifically limit this.

[0123] According to the vehicle of the embodiment of the present invention, executing the above-mentioned control method of the opening and closing member through the electronic device or control system or controller can solve the problem that it is inconvenient for the user to pull the door handle or press the switch to open and close the door when holding something in his hand.

[0124] As described above, the above embodiments are only used to illustrate the technical solution of applying the above-mentioned opening and closing parts control method to a vehicle, rather than to limit it; although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in this field should understand that: the control method can also be used in the field of smart homes, which does not make the essence of the corresponding technical solution deviate from the scope of the technical solution of each embodiment of this application.

[0125] In one embodiment, a vehicle can be configured for a fully or partially autonomous driving mode. For example, while in autonomous driving mode, the vehicle can control itself and, through human interaction, determine the current state of the vehicle and its surroundings, determine the possible behavior of at least one other vehicle in the surroundings, and determine a confidence level corresponding to the likelihood that the other vehicle will perform the possible behavior, and control the vehicle based on this information. While in autonomous driving mode, the vehicle can be configured to operate without human interaction.

[0126] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "plurality" means two or more, unless otherwise specifically defined.

[0127] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.

[0128] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. Although the descriptions of each embodiment in the embodiments of the present application have different focuses, for parts that are not described in detail in a certain embodiment, please refer to the relevant embodiments of other embodiments. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A method for controlling an opening and closing member, characterized in that: include: The state of the opening and closing member is controlled based on the color parameter of the user action, and the state of the opening and closing member is used to indicate whether the opening and closing member is opened and / or closed.

2. The control method according to claim 1, characterized in that: The color parameter based on the user action controls the state of the opening and closing member, including: The state of the switch is controlled based on the change of the color parameter of the user action.

3. The control method according to claim 2, characterized in that: The control of the state of the opening and closing member based on the change of the color parameter of the user action includes: Determining whether a user action exists based on a change in a color parameter of the user action; When there is a user action, the state of the switch is controlled.

4. The control method according to claim 3, characterized in that: The determining whether there is a user action based on the change of the color parameter of the user action includes: Whether there is a user action is determined based on the detection results of three adjacent color changes of the user action and the detection duration; the detection duration is the time used from the appearance of the second detection result to the appearance of the third detection result.

5. The control method according to claim 4, characterized in that: The determination of whether there is a user action based on the detection results of three consecutive color changes of the user action and the detection duration includes: If the detection results of three consecutive color changes of the user action meet the first condition and the detection duration meets the second condition, it is determined that the user action exists; wherein: The first condition is that the current detection result of the user action is inconsistent with the previous detection result, and the next detection result is the same as the previous detection result; the second condition is that the detection duration meets a threshold.

6. The control method according to claim 3, characterized in that: When a user action occurs, controlling the state of the opening and closing member includes: When there is a user action and the opening and closing member is in a closed state, the opening and closing member is controlled to open; and / or When there is a user action and the opening and closing member is in an open state, the opening and closing member is controlled to close.

7. The control method according to claim 1, characterized in that: The color parameter based on the user action controls the state of the opening and closing member, including: When the vehicle is stationary, the state of the opening and closing member is controlled based on the color parameter of the user's action.

8. The control method according to claim 7, characterized in that: The color parameter based on the user action controls the state of the opening and closing member, including: When the vehicle key is in a set area outside the opening and closing member, the state of the opening and closing member is controlled based on the color parameter of the user's action.

9. The control method according to any one of claims 1 to 8, characterized in that: Also includes: Turn on the light source according to the environmental information.

10. The control method according to any one of claims 1 to 8, characterized in that: The color parameter of the user action includes a color value and / or an intensity value.

11. The control method according to any one of claims 1 to 8, characterized in that: The opening and closing parts include: a back door and a vehicle door.

12. The control method according to any one of claims 1 to 8, characterized in that: The user action includes: a kicking action or a hand shaking action.

13. A control system for an opening and closing member, characterized in that: include: Color sensor, used to detect the color parameters of user actions; The controller is connected to the color sensor and is used to control the state of the opening and closing member according to the color parameters of the user action detected by the color sensor, and the state of the opening and closing member is used to indicate the opening and / or closing of the opening and closing member.

14. The control system according to claim 13, characterized in that: Also includes: The actuator is connected to the controller, and the controller is further used to control the state of the opening and closing member through the actuator.

15. The control system according to claim 14, characterized in that: Also includes: The light source device is connected to the controller, and the controller is further used to turn on the light source device according to environmental information.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer implements the method for controlling an opening and closing member according to any one of claims 1 to 12 .

17. A computer program product, characterized in that The computer program product stores instructions that, when executed by a computer, cause the computer to implement the method for controlling an opening and closing member according to any one of claims 1 to 12 .

18. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor is configured to execute the computer program in the memory to implement the method for controlling an opening and closing member according to any one of claims 1 to 12.

19. A vehicle, characterized in that: include: The control system according to any one of claims 13 to 15; Or, the electronic device according to claim 18; Alternatively, an opening and closing member and a controller, wherein the controller is configured to execute the method for controlling the opening and closing member according to any one of claims 1 to 12.