Vehicle lamp control method and device, vehicle and storage medium
By identifying the person's identity and distance from the vehicle's external video data and automatically turning on the welcome lights, it solves the problems of low experience and insufficient safety of traditional welcome lights, achieving a safer and more convenient vehicle entry experience.
Patent Information
- Application Number
- CN202410828548.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-27
AI Technical Summary
Traditional door switch sensors can only turn on the welcome lights when the door is opened, resulting in a lower welcome experience and possibly increased safety risks in extremely poor lighting conditions.
By acquiring video data of the vehicle's external environment, the person's moving image and identity type are identified. If it is the target type and is close to the vehicle, the welcome light will be turned on to improve the convenience and safety of the welcome light.
The welcome lights automatically turn on when a person approaches the vehicle, which improves the safety and convenience of entering the vehicle and avoids safety risks caused by short-term insufficient lighting.
Smart Images

Figure CN118714709A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and more specifically, to a vehicle light control method, device, vehicle and storage medium in the field of vehicles. Background Art
[0002] Traditionally, a door switch sensor is usually used to obtain the door opening status and control the opening of the welcome light. In this way, the welcome light can only be turned on when the door is opened, and the welcoming experience is low. Summary of the invention
[0003] The present application provides a vehicle light control method, device, vehicle and storage medium. The method can turn on the vehicle's welcome lights when a person with a target identity type approaches the vehicle, thereby improving the convenience of turning on the welcome lights and enabling the person to see the ground more clearly, thereby entering the vehicle more safely.
[0004] In a first aspect, a vehicle light control method is provided, the method comprising: acquiring video data of a person in an external environment of a vehicle, and determining a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person; determining a distance change between the person and the vehicle and an identity type of the person based on the motion image; if the identity type of the person is determined to be a target type and the distance change is close to the vehicle, controlling the vehicle's welcome lights to be turned on.
[0005] By acquiring video data of people in the external environment of the vehicle, the motion image corresponding to the people in the external environment of the vehicle is determined. Based on the motion image, it is determined that the identity type of the person is a target type and the distance between the person and the vehicle changes to approaching the vehicle, and the welcome lights of the vehicle are controlled to be turned on. Therefore, when a person with an identity type of the target type approaches the vehicle, the welcome lights of the vehicle can be turned on, which improves the convenience of turning on the welcome lights and enables the person to see the situation on the ground more clearly, thereby entering the vehicle more safely.
[0006] In combination with the first aspect, in some possible implementations, the change in distance between a person and a vehicle and the identity type of the person are determined based on a motion image, including: determining the change in distance between the person and the vehicle based on the change in coordinates of the person in the motion image; extracting gait features corresponding to the person from key point information contained in the motion image using a pre-trained gait feature model; matching the gait features with pre-stored target gait features using a pre-trained classification model, and outputting a matching result; if the matching result is that there is a consistent target gait feature, determining the identity type of the person to be the target type; if the matching result is that there is no consistent target gait feature, determining the identity type of the person to be a non-target type.
[0007] By adopting the above scheme, the gait features of the person are extracted from the motion image through the pre-trained gait feature surface model, and the identity type of the person is determined by the pre-trained classification model. Since the identity type of the person is determined by the gait features, it can be captured and analyzed at a relatively long distance. Therefore, when the person is a certain distance away from the vehicle, his identity type can still be identified, thereby realizing the long-distance activation of the welcome light.
[0008] In combination with the first aspect, in some possible implementations, the change in distance between a person and a vehicle and the identity type of the person are determined based on a motion image, including: determining the change in distance between the person and the vehicle based on the change in coordinates of the person in the motion image; and recognizing facial information contained in the motion image through a pre-trained face recognition model to obtain the identity type of the person.
[0009] By adopting the above scheme and using a pre-trained face recognition model, faces can be quickly and accurately detected and recognized from moving images. Since the face recognition model can distinguish subtle differences between different people through deep learning of facial features, it is possible to efficiently and accurately determine the identity type of the person.
[0010] In combination with the first aspect, in some possible implementations, the change in distance between the person and the vehicle is determined based on the change in the coordinates of the person in the motion image, including: if the change in the coordinates of the person in the motion image is increasing, then the change in distance between the person and the vehicle is determined to be moving away from the vehicle; if the change in the coordinates of the person in the motion image is decreasing, then the change in distance between the person and the vehicle is determined to be moving closer to the vehicle.
[0011] By adopting the above scheme, the change in the distance between the person and the vehicle is determined by the change in the coordinates of the person in the motion image. The change in the distance between the person and the vehicle can be monitored without installing any additional equipment on the vehicle. This is not only convenient and fast, but also avoids interference or damage to the vehicle that may be caused by installing equipment.
[0012] In combination with the first aspect, in some possible implementations, obtaining video data of people in the external environment of a vehicle includes: collecting video data of the external environment of the vehicle through a shooting device; extracting video data of people in the external environment of the vehicle from the video data through a pre-trained object recognition model, wherein the video data includes video data of other objects.
[0013] By adopting the above scheme, the video data of people in the external environment of the vehicle is extracted from the video data through the pre-trained object recognition model. The object recognition model has been pre-trained and can more accurately extract the video data of people in the external environment of the vehicle from the video data.
[0014] In combination with the first aspect, in some possible implementations, if it is determined that the identity type of the person is a target type and the distance changes to be close to the vehicle, the welcome light of the vehicle is controlled to be turned on, including: if it is determined that the identity type of the person is a target type and the distance changes to be close to the vehicle, a shooting device for collecting video data is determined; and the welcome light corresponding to the installation position of the shooting device is turned on.
[0015] By adopting the above scheme, when it is determined that the identity type of the person is the target type and the distance changes to approaching the vehicle, the corresponding welcome light is turned on by the shooting device that collects video data, thereby improving the accuracy of turning on the welcome light.
[0016] In combination with the first aspect, in some possible implementations, after determining the distance change between a person and a vehicle and the identity type of the person based on the motion image, it also includes: if it is determined that the identity type of the person is a target type and the distance change is away from the vehicle, controlling the vehicle's welcome lights to be turned off.
[0017] By adopting the above scheme, by determining that the identity type of the person is the target type and the distance changes to be far away from the vehicle, the welcome light is turned off, thereby realizing intelligent control to turn off the welcome light of the vehicle.
[0018] In a second aspect, a vehicle is provided, comprising: a memory for storing executable program code; and a processor for calling and running the executable program code from the memory, so that the vehicle executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0019] In a third aspect, a vehicle light control device is provided, the device comprising:
[0020] An acquisition unit, used to acquire video data of a person in the external environment of the vehicle, and determine a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person;
[0021] a determination unit, for determining a change in the distance between the person and the vehicle and an identity type of the person based on the motion image;
[0022] The control unit is used to control the vehicle's welcome lights to be turned on if it is determined that the identity type of the person is a target type and the distance changes to approaching the vehicle.
[0023] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0024] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 This is a schematic diagram of a vehicle light control method scenario provided by an embodiment of the present application;
[0026] Figure 2 is a flow chart of a vehicle light control method provided in an embodiment of the present application;
[0027] Figure 3 is a flow chart of a vehicle light control method provided in an embodiment of the present application;
[0028] Figure 4 is a flow chart of a vehicle light control method provided in an embodiment of the present application;
[0029] Figure 5 is a flow chart of a vehicle light control method provided in an embodiment of the present application;
[0030] Figure 6 is a structural schematic diagram of a vehicle light control device provided in an embodiment of the present application;
[0031] Figure 7 is a structural schematic diagram of a vehicle light control device provided in an embodiment of the present application;
[0032] Figure 8 is a structural schematic diagram of a vehicle provided in an embodiment of the present application;
[0033] Fig. 9 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0035] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0036] Figure 1 This is a scene diagram of a vehicle light control method provided by an embodiment of the present application. When the driver or vehicle passenger is ready to get on the vehicle, the moment the door is opened, the vehicle's welcome light will light up, illuminating the ground, providing convenience and guidance for the driver or vehicle passenger at night or in a dimly lit external environment, allowing them to enter the vehicle more easily and safely, allowing the driver and passenger to experience a more intimate and comfortable riding experience.
[0037] By controlling the vehicle's welcome light to start at the moment the driver or passenger opens the door, although the welcome light can provide a short lighting when the driver or passenger opens the door, the welcome light is turned on for too short a time, which is not enough for the driver or passenger to fully see the ground. Especially in extremely poor light conditions, this may increase the risk of the driver or passenger falling or hitting obstacles, thereby reducing safety. And for users who expect the welcome light to bring a certain sense of ceremony or comfort, if the turn-on time is too short, it will reduce their overall satisfaction with the vehicle.
[0038] In response to the above problems, the present application proposes a vehicle light control method, in which a shooting device can be installed on a vehicle, and video data of people in the external environment of the vehicle can be obtained in real time through the shooting device. If it is determined that there is no person in the external environment of the vehicle, the method returns to obtain video data of people in the external environment of the vehicle. When the video data of people in the external environment of the vehicle is obtained, for example, video data of people including person A and person B, a first motion image of person A and a second motion image of person B are obtained respectively, and a distance change between person A and the vehicle is determined to be away from the vehicle based on the first motion image, and a distance change between person B and the vehicle is determined to be close to the vehicle based on the second motion image, and after determining that the identity type of person A is a non-target type and the identity type of person B is a target type, the welcome light of the vehicle is controlled to be turned on to provide lighting for person A, so that person A can clearly see the ground between his current position and the vehicle to prevent person A from hitting obstacles.
[0039] In an embodiment of the present application, by acquiring video data of people in the external environment of the vehicle, a motion image corresponding to the people in the external environment of the vehicle is determined, and based on the motion image, it is determined that the identity type of the person is a target type and the distance between the person and the vehicle changes to approaching the vehicle, and the welcome lights of the vehicle are controlled to be turned on. Therefore, when a person with an identity type of the target type approaches the vehicle, the welcome lights of the vehicle can be turned on, which improves the convenience of turning on the welcome lights and enables the person to see the situation on the ground more clearly, thereby entering the vehicle more safely.
[0040] based on Figure 1 The scene shown is shown below. Figure 2-Figure 9 , the data transfer control method provided in the embodiment of the present application is introduced in detail.
[0041] See also Figure 2 , which is a flow chart of a vehicle light control method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S103.
[0042] S101, acquiring video data of a person in an external environment of a vehicle, and determining a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person;
[0043] In one embodiment, the vehicle external environment may be all non-vehicle spatial environments around the vehicle, which may include road conditions (e.g., road surface type, road width, etc.), weather conditions (e.g., sunny, cloudy, rainy, snowy, foggy, etc.), and traffic conditions (e.g., driving status of cars, trucks, motorcycles, bicycles, etc., distance changes of pedestrians, animals, and other moving objects relative to the vehicle, etc.); the person video data may be a sequence of images of people and their related images collected by a camera focusing on the vehicle external environment, which may include information such as the image, action, expression, language, and posture of multiple people. The motion image may be an image of the motion process of a specific person in the vehicle external environment, which may include information such as the image, action, expression, language, and posture of the person.
[0044] Specifically, the vehicle can obtain the video data of the person through the shooting device. Optionally, the shooting device can be installed on the left or right side of the vehicle, such as the position of the left and right rearview mirrors of the vehicle, so that the video data of the person around the vehicle can be obtained. It is understandable that in addition to installing the shooting device on the left and right rearview mirrors of the vehicle, it can also be installed on the front bumper of the vehicle and on the rear windshield inside the vehicle where the rear image of the vehicle can be clearly captured, which can improve the shooting range and clarity. For example, the video data of the person in the external environment of the vehicle is obtained by the shooting device installed in front of the vehicle, and then when it is determined through the video data of the person that the person in the external environment of the vehicle is close to the vehicle and its identity type is the target type, the welcome light is turned on, so that in a dark environment, the target type of person (for example, the driver) can accurately locate the position of the vehicle through the turned-on welcome light, find the vehicle, and can clearly see the ground within the illumination range of the welcome light to avoid encountering obstacles.
[0045] In one embodiment, determining the motion image corresponding to the person in the vehicle's external environment based on the vehicle video data may be performed by tracking the person in the vehicle's external environment contained in the person video data based on an algorithm based on the person's clothing features, thereby obtaining the motion image corresponding to the person in the vehicle's external environment. It is understandable that in the present application, the motion image corresponding to the person in the vehicle's external environment may be extracted from each frame image contained in the person video data. For example, if there are two persons (person A and person B) in the person video data, the motion image of person A and the motion image of person B will be extracted from the person video data respectively through the person clothing feature algorithm.
[0046] These algorithms estimate the motion state of a person and generate motion images by analyzing the person's position, size, shape and other features in consecutive frames.
[0047] S102, determining a change in the distance between the person and the vehicle and an identity type of the person based on the motion image;
[0048] In one embodiment, the distance change may be a description of the change in the distance between the vehicle and the person, including moving away from the vehicle and approaching the vehicle. The identity type may be a description of whether the person is an identity that the vehicle can identify, including a target type and a non-target type, wherein the target type is the type of identity that the vehicle can identify the person, and for example, it may include the driver, or the driver's friend, relative, etc.; the non-target type is the opposite, that is, a person who is not related to the driver.
[0049] Optionally, the distance change between the person and the vehicle determined based on the motion image can be obtained by a trained distance change model.
[0050] For example, first, the distance between a person and a vehicle in a moving image is captured by using an on-board camera or other visual sensor, and the moving image and the distance change between the person and the vehicle in the moving image are calibrated as sample data. Then, the sample data is input into a suitable deep learning model, such as a convolutional neural network (CNN), to predict the distance change between the person and the vehicle. Finally, the model performance is optimized by adjusting the parameters and structure of the model through evaluation results until the output results of the deep learning model meet expectations and the distance change model is determined.
[0051] Optionally, in an embodiment of the present application, a database containing known person identities and corresponding feature information can be established. This database can include information such as facial images, physical features, clothing, gait features, etc. of the person, and is associated with his / her identity information. Thus, the identity type of the person can be determined by the collected motion image. Exemplarily, if it is determined based on the motion image that the identity information of the person exists in the database, the identity type of the person is determined to be a target type; if the identity information of the person does not exist, the identity type of the person is determined to be a non-target type.
[0052] S103: If it is determined that the identity type of the person is a target type and the distance change is close to the vehicle, control the vehicle's welcome light to be turned on.
[0053] In one embodiment, when it is determined that the identity type of the person is a target type and the distance between the person and the vehicle changes to approaching the vehicle, it is determined that the welcome light needs to be turned on in advance for the person of the target type, and the welcome light of the vehicle is controlled to be turned on.
[0054] In an embodiment of the present application, by acquiring video data of people in the external environment of the vehicle, a motion image corresponding to the people in the external environment of the vehicle is determined, and based on the motion image, it is determined that the identity type of the person is a target type and the distance between the person and the vehicle changes to approaching the vehicle, and the welcome lights of the vehicle are controlled to be turned on. Therefore, when a person with an identity type of the target type approaches the vehicle, the welcome lights of the vehicle can be turned on, which improves the convenience of turning on the welcome lights and enables the person to see the situation on the ground more clearly, thereby entering the vehicle more safely.
[0055] See also Figure 3 , which is a flow chart of a vehicle light control method provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201-S203.
[0056] S201, acquiring video data of a person in the external environment of the vehicle, and determining a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person;
[0057] Specifically, the specific method of obtaining the video data of the person in the external environment of the vehicle and determining the motion image corresponding to the person in the external environment of the vehicle based on the video data of the person can be referred to the above-mentioned embodiment S101 of the specification, which will not be repeated here.
[0058] S202, if the coordinates of the person in the motion image change to be larger, determining that the distance between the person and the vehicle changes to be farther away from the vehicle;
[0059] S203, if the coordinate change of the person in the motion image is getting smaller, determining that the distance between the person and the vehicle is changing to getting closer to the vehicle;
[0060] In one embodiment, a two-dimensional coordinate system may be defined first, wherein the horizontal axis (X axis) represents the horizontal direction of the image, the vertical axis (Y axis) represents the vertical direction of the image, and the origin of the coordinate system may be the upper left corner of the image. The coordinate position (x1, y1) of the person in the current frame is obtained, and the coordinate position (x2, y2), (x3, y3), and (x4, y4) of the person in the motion image is tracked by detecting the person in the continuous frames. If the coordinate changes to x1>x2>x3>x4, y1>y2>y3>y4, it is determined that the distance change between the person and the vehicle is far away from the vehicle; if the coordinate changes to x1<x2<x3<x4, y1<y2<y3<y4, it is determined that the distance change between the person and the vehicle is close to the vehicle.
[0061] It can be understood that the moving image captured by the shooting device is a two-dimensional projection of the three-dimensional world. People in the near distance appear larger in the moving image, and their coordinates are closer to the origin than the coordinates of people in the far distance in the moving image. Therefore, the change in the distance between the person and the vehicle can be determined by the change in the coordinates of the person in the moving image.
[0062] S204, extracting gait features corresponding to the person from key point information contained in the motion image using a pre-trained gait feature model;
[0063] In one embodiment, the key point information may be points on the human body with significant features and used to extract gait features. It usually includes various joints and bone connection points of the human body, such as the neck, shoulder, elbow, wrist, waist, knee, and other body parts with significant features such as hands and feet. Gait features represent the characteristics of the magnitude, direction and point of action of the force reflected in the walking of the person, and are a reflection of the walking habits in the landing, starting and supporting swing stages, including stride, step frequency, landing method, trunk posture, hip swing, leg swing and other features.
[0064] Stride: Stride is the distance from one step to another, usually expressed from heel to heel.
[0065] Cadence: Cadence refers to the number of steps taken per unit time, usually expressed in steps per minute.
[0066] Landing method: There are three types of landing methods: heel landing, mid-heel landing and fore-heel landing. Heel landing means that the heel touches the ground first, mid-heel landing means that the middle of the foot touches the ground first, and fore-heel landing means that the heel touches the ground first.
[0067] Trunk posture: Trunk posture refers to the posture of the spine when walking, including forward leaning, backward leaning, and sideways leaning.
[0068] Hip sway: Hip sway refers to the side-to-side swing of the hips while walking, which can assess the coordination of gait.
[0069] Leg swing: Leg swing refers to the range of motion of the legs at the knee and hip joints while walking.
[0070] In an embodiment of the present application, the gait features corresponding to the person can be extracted from the key point information contained in the motion image through a pre-trained gait feature model. The gait feature model can be a gait recognition network (GaitNet). It is understandable that the present application needs to input the gait features into a pre-trained classification model, and then determine the identity information of the person according to the classification model, so that the gait features are represented in a vector form that is convenient for mathematical operations and machine learning model input.
[0071] S205, matching the gait feature with the pre-stored target gait feature through the pre-trained classification model, and outputting the matching result;
[0072] In one embodiment, after obtaining the gait features corresponding to the person, the gait features are matched with the pre-stored target gait features through the pre-trained classification model, and the matching results are output. The classification model may be an SVM (support vector machine) model. It is understood that in the present application, the pre-stored target posture features may be posture features entered with the consent of the vehicle owner, and the target posture features are at least the target posture features of one person.
[0073] S206, if the matching result shows that there is a consistent target gait feature, then determining the identity type of the person is the target type;
[0074] S207, if the matching result is that there is no consistent target gait feature, then determining the identity type of the person is a non-target type;
[0075] In one embodiment, the person whose identity type is the target type may be the person who needs to turn on the welcome light, otherwise the welcome light does not need to be turned on. When it is determined that the target gait feature matches the gait feature, the person's identity type is determined to be the target type; when it is determined that the target gait feature does not match the gait feature, the person's identity type is determined to be the non-target type.
[0076] S208: If it is determined that the identity type of the person is a target type and the distance change is close to the vehicle, control the vehicle's welcome light to be turned on.
[0077] In an embodiment of the present application, the change in distance between a person and a vehicle is determined by the change in coordinates of the person in a motion image. The change in distance between the person and the vehicle can be monitored without installing any additional equipment on the vehicle. This is not only convenient and quick, but also avoids interference or damage to the vehicle that may be caused by the installation of equipment. The gait features of the person are extracted from the motion image by a gait feature surface model obtained through pre-training, and the identity type of the person is determined by a classification model obtained through pre-training. Since the identity type of the person is determined by the gait features, it can be captured and analyzed at a relatively long distance. Therefore, when the person is a certain distance away from the vehicle, its identity type can still be identified, thereby realizing the long-distance activation of the welcome light.
[0078] See also Figure 4 , which is a flow chart of a vehicle light control method provided in an embodiment of the present application. Figure 4 As shown, the method of the embodiment of the present application may include the following steps S301-S305.
[0079] S301, acquiring video data of a person in the external environment of the vehicle, and determining a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person;
[0080] In one embodiment, the vehicle external environment may be all spatial environments surrounding the parked vehicle other than the vehicle itself.
[0081] In one embodiment, determining the motion image corresponding to a person in the vehicle's external environment based on vehicle video data can be performed by tracking the person in the vehicle's external environment contained in the person's video data based on an algorithm based on the person's clothing features, thereby obtaining the motion image corresponding to the person in the vehicle's external environment.
[0082] S302, if the coordinates of the person in the motion image change to be larger, determining that the distance between the person and the vehicle changes to be farther away from the vehicle;
[0083] S303, if the coordinate change of the person in the motion image is getting smaller, determining that the distance between the person and the vehicle is changing to getting closer to the vehicle;
[0084] Specifically, based on the coordinate change of the character in the motion image, the specific method of determining the change in the distance between the character and the vehicle can be found in the above-mentioned embodiments S202-S203 of the specification, which will not be repeated here.
[0085] S304, recognizing face information contained in the motion image by using a pre-trained face recognition model to obtain the identity type of the person;
[0086] In an embodiment of the present application, the face information contained in the motion image can be identified by a pre-trained face recognition model to obtain the identity type of the person. The processing process can be to select the image with the highest definition from the motion image as an input to the face recognition model to improve the accuracy of face recognition. After selecting the motion image with the highest definition, the detected face image is pre-processed, including alignment, rotation, translation and scaling operations to eliminate the influence of factors such as facial expressions and head postures, so that the face image presents a standardized state as much as possible, and the pre-processing is completed. After that, the feature extraction algorithm in the face recognition model is used to extract distinguishing features (such as eyes, nose, mouth, etc.) from the face image for detection and positioning. The extracted features are usually converted into a feature vector (such as a common 128-dimensional, 256-dimensional or 512-dimensional floating-point vector), which is used to represent the uniqueness of the face. Then the extracted feature vector is compared with the target face features pre-stored in the database. The similarity between the extracted feature vector and the feature vector in the library is calculated using a similarity measurement method (such as Euclidean distance, cosine similarity, etc.). Exemplarily, if the facial features of any target person are matched, the identity type of the person is determined to be the target type; if the facial features of all target persons are not matched, the identity type of the person is determined to be the non-target type.
[0087] S305: If it is determined that the identity type of the person is a target type and the distance change is close to the vehicle, control the vehicle's welcome light to be turned on.
[0088] In an embodiment of the present application, a pre-trained face recognition model is used to quickly and accurately detect and identify faces from moving images. Since the face recognition model is able to distinguish subtle differences between different people through deep learning of facial features, it is possible to efficiently and accurately determine the identity type of a person.
[0089] See also Figure 5 , which is a flow chart of a vehicle light control method provided in an embodiment of the present application. Figure 5 As shown, the method of the embodiment of the present application may include the following steps S401-S406.
[0090] S401, collecting video data of the vehicle's external environment through a camera;
[0091] S402, extracting video data of people in the external environment of the vehicle from the video data using a pre-trained object recognition model, where the video data includes video data of other objects;
[0092] In one embodiment, the video data may be a video collected by a camera device containing all information about the vehicle's external environment, including non-person information. In the embodiment of the present application, the welcome light is activated only when a person of the target type approaches the vehicle, so non-person information needs to be filtered.
[0093] In an embodiment of the present application, after the camera captures video data of the vehicle's external environment, the video data can be input into a pre-trained object recognition model to extract video data of people in the vehicle's external environment. The object recognition model can be a target detection algorithm model (You Only Look Once, YOLO model).
[0094] S403, determining a motion image corresponding to a person in the external environment of the vehicle based on the person video data;
[0095] S404, determining a change in the distance between the person and the vehicle and an identity type of the person based on the motion image;
[0096] Specifically, for the specific method of determining the change in the distance between the person and the vehicle based on the change in the coordinates of the person in the motion image, please refer to the above-mentioned embodiments S202-S203 of the specification, which will not be repeated here.
[0097] S405, if it is determined that the identity type of the person is a target type and the distance change is close to the vehicle, then determine the shooting device for collecting video data;
[0098] S406, turning on a welcome light corresponding to the installation position of the camera device.
[0099] In one embodiment, there may be two camera devices in the vehicle, which are installed on the left and right sides of the vehicle respectively. After determining that the identity type of the person is the target type and the distance between the person and the vehicle changes to being close to the vehicle, the camera device for collecting video data is further determined, and the shooting position of the camera device is obtained.
[0100] Specifically, the device information carried by the video data, such as the device model and serial number, can be analyzed to determine the shooting device that shot the video data, and then the shooting position of the shooting device can be determined through the installation mapping table, and then the welcome light corresponding to the installation position can be determined through the mapping relationship between the shooting position and the welcome light. For example, if the shooting position is on the left side of the vehicle, the welcome light on the left side of the vehicle will be turned on.
[0101] Further, in an embodiment of the present application, if it is determined that the identity type of the person is a target type and the distance changes to be away from the vehicle, it can be considered that the person no longer needs to use the vehicle, and the welcome light of the vehicle is controlled to be turned off.
[0102] Optionally, when it is determined that the distance between the person and the vehicle reaches a preset distance, the vehicle's welcome lights can be controlled to be turned off, thereby delaying the turning off of the welcome lights and making it easier for the person to see obstacles on the ground.
[0103] In an embodiment of the present application, video data of people in the external environment of the vehicle are extracted from video data by a pre-trained object recognition model. The object recognition model has been pre-trained and can more accurately extract video data of people in the external environment of the vehicle from video data; and when it is determined that the identity type of the person is a target type and the distance changes to be close to the vehicle, the corresponding welcome light is turned on by a shooting device that collects video data, thereby improving the accuracy of turning on the welcome light; when it is determined that the identity type of the person is a target type and the distance changes to be far away from the vehicle, the welcome light is turned off, thereby realizing intelligent control of turning off the welcome light of the vehicle.
[0104] based on Figure 1 The following is a schematic diagram of the scene. Figure 6-Figure 7 , the vehicle light control device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 6-Figure 7 The vehicle light control device is used to execute the present application Figure 2-Figure 5 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 5 The embodiment shown.
[0105] See also Figure 6 The vehicle light control device includes: an acquisition unit 11, a determination unit 12, and a control unit 13.
[0106] An acquisition unit 11 is used to acquire video data of a person in the external environment of the vehicle, and determine a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person;
[0107] A determination unit 12, configured to determine a change in the distance between the person and the vehicle and an identity type of the person based on the motion image;
[0108] The control unit 13 is used to control the vehicle's welcome light to be turned on if it is determined that the identity type of the person is a target type and the distance changes to approaching the vehicle.
[0109] Optionally, the determining unit 12 includes:
[0110] A first determining subunit 121, configured to determine a change in the distance between the person and the vehicle based on a change in the coordinates of the person in the motion image;
[0111] An extraction subunit 122 is used to extract gait features corresponding to the person from key point information contained in the motion image using a pre-trained gait feature model;
[0112] A matching subunit 123, used to match the gait feature with the pre-stored target gait feature through a pre-trained classification model, and output a matching result;
[0113] A second determination subunit 124 is configured to determine the identity type of the person as the target type if the matching result shows that there is a consistent target gait feature;
[0114] The third determination subunit 125 is configured to determine the identity type of the person as a non-target type if the matching result shows that there is no consistent target gait feature.
[0115] Optionally, the determining unit 12 includes:
[0116] A fourth determining subunit 126, configured to determine a change in the distance between the person and the vehicle based on a change in the coordinates of the person in the motion image;
[0117] The recognition subunit 127 is used to recognize the face information contained in the motion image through a pre-trained face recognition model to obtain the identity type of the person.
[0118] Optionally, the first determining subunit 121 is specifically configured to:
[0119] If the coordinate change of the person in the motion image is increasing, it is determined that the distance between the person and the vehicle changes to moving away from the vehicle;
[0120] If the coordinate change of the person in the motion image is getting smaller, it is determined that the distance change between the person and the vehicle is getting closer to the vehicle.
[0121] Optionally, the acquisition unit 11 includes: a collection subunit 111, a training subunit 112
[0122] A collection subunit 111 is used to collect video data of the vehicle's external environment through a shooting device;
[0123] The training subunit 112 is used to extract video data of people in the external environment of the vehicle from the video data using a pre-trained object recognition model, where the video data includes video data of other objects.
[0124] Optionally, the control unit 13 includes: a fifth determining subunit 131 and an opening subunit 132 .
[0125] A fifth determining subunit 131 is used to determine a shooting device for collecting video data if it is determined that the identity type of the person is a target type and the distance change is close to the vehicle;
[0126] The opening subunit 132 is used to turn on the welcome light corresponding to the installation position of the camera device.
[0127] Optionally, the vehicle light control device further includes: a closing control unit 14 .
[0128] The closing control unit 14 is used to control the welcome light of the vehicle to be closed if it is determined that the identity type of the person is a target type and the distance change is far away from the vehicle.
[0129] In an embodiment of the present application, by acquiring video data of people in the external environment of the vehicle, a motion image corresponding to the people in the external environment of the vehicle is determined, and based on the motion image, it is determined that the identity type of the person is a target type and the distance between the person and the vehicle changes to approaching the vehicle, and the welcome lights of the vehicle are controlled to be turned on. Therefore, when a person with an identity type of the target type approaches the vehicle, the welcome lights of the vehicle can be turned on, which improves the convenience of turning on the welcome lights and enables the person to see the situation on the ground more clearly, thereby entering the vehicle more safely.
[0130] See also Figure 8 , which is a schematic diagram of the structure of a vehicle provided in the embodiment of the present application. Figure 8 As shown, the vehicle 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
[0131] The processor 501 is the control center of the vehicle 500 and may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts of the entire vehicle 500, and executes various functions and processes data of the vehicle 500 by running or calling computer programs stored in the memory 502, and calling data stored in the memory 502, so as to control the vehicle 500 as a whole. Optionally, the processor 501 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 501 may integrate one or a combination of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 501, but may be implemented separately through a communication chip.
[0132] The memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the vehicle 500, etc.
[0133] In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0134] In this embodiment, the processor 501 in the vehicle 500 loads instructions corresponding to the processes of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs the computer program stored in the memory 502 to implement various functions, as follows:
[0135] Acquire video data of people in the external environment of the vehicle, and determine a motion image corresponding to the people in the external environment of the vehicle based on the video data of the people;
[0136] Determine the distance change between the person and the vehicle and the identity type of the person based on the motion image;
[0137] If it is determined that the identity type of the person is a target type and the distance changes to approaching the vehicle, the welcome light of the vehicle is controlled to be turned on.
[0138] Optionally, when the processor 501 determines the distance change between the person and the vehicle and the identity type of the person based on the motion image, the processor 501 specifically performs:
[0139] Determine the change in distance between the person and the vehicle based on the change in coordinates of the person in the motion image;
[0140] The gait feature model obtained by pre-training is used to extract the gait features corresponding to the person from the key point information contained in the motion image;
[0141] Matching the gait features with the pre-stored target gait features through the pre-trained classification model, and outputting the matching results;
[0142] If the matching result shows that there is a consistent target gait feature, the identity type of the person is determined to be the target type;
[0143] If the matching result is that there is no consistent target gait feature, the identity type of the person is determined to be a non-target type.
[0144] Optionally, when the processor 501 determines the distance change between the person and the vehicle and the identity type of the person based on the motion image, the processor 501 specifically performs:
[0145] Determine the change in distance between the person and the vehicle based on the change in coordinates of the person in the motion image;
[0146] The face recognition model obtained by pre-training recognizes the face information contained in the moving image and obtains the identity type of the person.
[0147] Optionally, when the processor 501 determines the change in the distance between the person and the vehicle based on the change in the coordinates of the person in the motion image, the processor 501 specifically performs:
[0148] If the coordinate change of the person in the motion image is increasing, it is determined that the distance between the person and the vehicle changes to moving away from the vehicle;
[0149] If the coordinate change of the person in the motion image is getting smaller, it is determined that the distance change between the person and the vehicle is getting closer to the vehicle.
[0150] Optionally, when the processor 501 acquires the video data of a person in the external environment of the vehicle, the processor 501 specifically executes:
[0151] Collecting video data of the vehicle's external environment through a camera;
[0152] The object recognition model obtained through pre-training extracts the video data of people in the external environment of the vehicle from the video data, and the video data contains the video data of other objects.
[0153] Optionally, when the processor 501 determines that the identity type of the person is a target type and the distance changes to being close to the vehicle, then controls turning on the welcome light of the vehicle, the processor 501 specifically executes:
[0154] If it is determined that the identity type of the person is a target type and the distance change is close to the vehicle, then determining a shooting device for collecting video data;
[0155] Turn on the welcome light corresponding to the installation location of the camera.
[0156] Optionally, after executing the control of turning on the welcome light of the vehicle if it is determined that the identity type of the person is the target type and the distance changes to being close to the vehicle, the processor 501 may further execute:
[0157] If it is determined that the identity type of the person is a target type and the distance change is to be away from the vehicle, the welcome light of the vehicle is controlled to be turned off.
[0158] In an embodiment of the present application, by acquiring video data of people in the external environment of the vehicle, a motion image corresponding to the people in the external environment of the vehicle is determined, and based on the motion image, it is determined that the identity type of the person is a target type and the distance between the person and the vehicle changes to approaching the vehicle, and the welcome lights of the vehicle are controlled to be turned on. Therefore, when a person with an identity type of the target type approaches the vehicle, the welcome lights of the vehicle can be turned on, which improves the convenience of turning on the welcome lights and enables the person to see the situation on the ground more clearly, thereby entering the vehicle more safely.
[0159] See also Fig. 9 , which is a schematic diagram of the structure of a vehicle provided in the embodiment of the present application. Fig. 9 As shown, the vehicle 500 includes: a processor 501, a memory 502, a display screen 503, a camera component 504, an audio circuit 505, a sensor 506 and a power supply 507. The processor 501 is electrically connected to the display 503, the camera component 504, the audio circuit 505, the sensor 506 and the power supply 507 respectively.
[0160] The display screen 503 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the vehicle 500 , which may be composed of images, texts, icons, videos, and any combination thereof.
[0161] The camera assembly 504 may include an image processing circuit, which may be implemented using hardware and / or software components and may include various processing units that define an image signal processing pipeline. The image processing circuit may include at least: multiple cameras, an image signal processor (ISP processor), a control logic, and an image memory, etc. Each camera may include at least one or more lenses and an image sensor. The image sensor may include a color filter array (such as a Bayer filter). The image sensor may obtain light intensity and wavelength information captured by each imaging pixel of the image sensor, and provide a set of raw image data that can be processed by an image signal processor.
[0162] The audio circuit 505 can be used to provide an audio interface between the user and the vehicle 500 through a speaker and a microphone. The audio circuit 505 includes a microphone. The microphone is electrically connected to the processor 501. The microphone is used to receive voice information input by the user.
[0163] The sensor 506 is used to collect information about the vehicle 500 itself, the user, or the external environment. For example, the sensor 506 may include one or more sensors such as a vibration sensor, a temperature sensor, a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, a posture sensor, a barometer, and a heart rate sensor.
[0164] The power supply 507 is used to supply power to various components of the vehicle 500. In some embodiments, the power supply 507 may be logically connected to the processor 501 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.
[0165] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned vehicle light control method, and thus can achieve the same effect as the above-mentioned implementation method.
[0166] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing related program codes, etc.
[0167] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0168] In addition, the device provided in the embodiment of the present application can specifically be a chip, a component or a module. The chip may include a connected processor and a memory; wherein the memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a vehicle light control method provided in the above embodiment.
[0169] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a vehicle light control method provided in the above-mentioned embodiment.
[0170] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement a vehicle light control method provided in the above-mentioned embodiment.
[0171] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0172] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0173] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0174] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle light control method, characterized in that: The method comprises: Acquire video data of a person in an external environment of a vehicle, and determine a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person; Determining a change in the distance between the person and the vehicle and an identity type of the person based on the motion image; If it is determined that the identity type of the person is a target type and the distance changes to approach the vehicle, a welcome light of the vehicle is controlled to be turned on.
2. The method according to claim 1, characterized in that: The determining, based on the motion image, the change in the distance between the person and the vehicle and the identity type of the person includes: determining a change in the distance between the person and the vehicle based on a change in the coordinates of the person in the motion image; The gait feature corresponding to the person is extracted from the key point information contained in the motion image by using a pre-trained gait feature model; Matching the gait feature with a pre-stored target gait feature through a pre-trained classification model, and outputting a matching result; If the matching result is that there is a consistent target gait feature, determining the identity type of the person is the target type; If the matching result is that there is no consistent target gait feature, then the identity type of the person is determined to be a non-target type.
3. The method according to claim 1, characterized in that The determining, based on the motion image, the change in the distance between the person and the vehicle and the identity type of the person includes: determining a change in the distance between the person and the vehicle based on a change in the coordinates of the person in the motion image; The face recognition model obtained by pre-training recognizes the face information contained in the motion image to obtain the identity type of the person.
4. The method according to any one of claims 2 or 3, characterized in that: The determining the change in the distance between the person and the vehicle based on the change in the coordinates of the person in the motion image includes: If the coordinates of the person in the motion image change to be larger, then determining that the distance between the person and the vehicle changes to be farther away from the vehicle; If the coordinates of the person in the motion image change to become smaller, it is determined that the distance between the person and the vehicle changes to become closer to the vehicle.
5. The method according to claim 1, characterized in that The step of obtaining video data of people in the external environment of the vehicle includes: Collecting video data of the vehicle's external environment through a camera; The object recognition model obtained through pre-training extracts the video data of people in the external environment of the vehicle from the video data, and the video data includes the video data of other objects.
6. The method according to claim 5, characterized in that If it is determined that the identity type of the person is a target type and the distance change is close to the vehicle, then controlling to turn on the welcome light of the vehicle includes: If it is determined that the identity type of the person is a target type and the distance change is close to the vehicle, determining a shooting device for collecting the video data; Turn on the welcome light corresponding to the installation position of the camera.
7. The method according to claim 1, characterized in that After determining the change in the distance between the person and the vehicle and the identity type of the person based on the motion image, the method further includes: If it is determined that the identity type of the person is a target type and the distance change is away from the vehicle, the welcome light of the vehicle is controlled to be turned off.
8. A vehicle light control device, characterized in that: The device comprises: An acquisition unit, configured to acquire video data of a person in an external environment of the vehicle, and determine a motion image corresponding to the person in the external environment of the vehicle based on the video data of the person; a determining unit, configured to determine a change in the distance between the person and the vehicle and an identity type of the person based on the motion image; The control unit is used to control turning on the welcome light of the vehicle if it is determined that the identity type of the person is a target type and the distance changes to approach the vehicle.
9. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 7 is implemented.
