Behavior recognition method and device, vehicle and storage medium

By acquiring multiple frames of images and gradually identifying them, a set of feature maps is obtained, and the recognition network model is used to identify vehicle behaviors, which solves the problems of timing errors and cumbersome data processing, improves the accuracy and convenience of vehicle behavior recognition, and enhances user operation portability and vehicle safety.

CN118823744AActive Publication Date: 2024-10-22GREAT WALL MOTOR CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410800919.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-22
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Due to timing errors and cumbersome data processing in vehicle behavior recognition, the existing technology results in insufficient recognition accuracy and efficiency, making it difficult to conveniently activate vehicle functions.

Method used

By acquiring multiple frames of images and gradually identifying them, a feature map set is obtained. The recognition network model is used to perform behavior recognition on the current frame image and the feature map set to avoid timing errors. The feature map set is used to reduce data processing complexity and improve the accuracy of behavior recognition. and convenience.

Benefits of technology

It improves the accuracy and convenience of vehicle behavior recognition, enhances the ease of user activation of vehicle functions, and improves vehicle safety and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823744A_ABST
    Figure CN118823744A_ABST
Patent Text Reader

Abstract

The invention provides a behavior recognition method and device, a vehicle and a storage medium, and the method is applied to the field of vehicles, and comprises the steps: obtaining a current frame image for behavior recognition, obtaining a first feature map set corresponding to a previous frame image of the current frame image, the first feature map set is a feature map set obtained after a previous frame of image is input into a convolutional layer of a recognition network model for feature map fusion, and inputting the current frame of image and the first feature map set into the recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame of image, and if the frame number of the continuous images subjected to behavior recognition processing is greater than the preset frame number and the behavior recognition result is the preset behavior, controlling the vehicle to start a vehicle function corresponding to the preset behavior. According to the method, the convenience and accuracy of behavior recognition of the vehicle can be improved, and the operability of starting vehicle functions by a user can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicles, and more specifically, to a behavior recognition method, device, vehicle and storage medium in the field of vehicles. Background Art

[0002] With the popularization of vehicles in daily life, the in-vehicle functions that motor vehicles can realize are becoming more and more numerous. In order to facilitate users to activate various functions, the behavior of passengers in the car can be identified and the in-vehicle functions can be activated based on the identification results.

[0003] In the related art, when identifying based on the behavior of a passenger, the method adopted is to obtain each frame of data for identification separately, and analyze the identification results of each frame in sequence according to the time sequence of the data, so as to obtain the passenger's behavior based on the analysis results. During the analysis process, there are problems such as cumbersome data processing and insufficient accuracy and efficiency due to timing errors. Summary of the invention

[0004] The present application provides a behavior recognition method, device, vehicle and storage medium. The method can recognize a feature graph set by using a recognition network model, thereby avoiding recognition errors due to timing. The method can also reduce the complexity of data processing and improve data processing efficiency through a feature graph set, thereby improving the convenience and accuracy of vehicle behavior recognition and the ease of operation for users to start vehicle functions.

[0005] In a first aspect, a behavior recognition method is provided, the method comprising:

[0006] Obtain a current frame image for behavior recognition, and obtain a first feature map set corresponding to a previous frame image of the current frame image, wherein the first feature map set is a feature map set obtained after the previous frame image is input into a convolutional layer of a recognition network model for feature map fusion;

[0007] Inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame image;

[0008] If the number of continuous image frames for the behavior recognition processing is greater than a preset number of frames, and the behavior recognition result is a preset behavior, the vehicle is controlled to start a vehicle function corresponding to the preset behavior.

[0009] Through the above technical scheme, it is possible to obtain a feature map set by gradually identifying multiple frames of images, and use a recognition network model to perform behavior recognition on the current frame image and the feature map set corresponding to the current frame image to obtain a behavior recognition result. The recognition network model recognizes the feature map set, thereby avoiding recognition errors caused by timing. The feature map set also reduces the complexity of data processing and improves data processing efficiency, thereby improving the convenience and accuracy of vehicle behavior recognition and the ease of operation for users to start vehicle functions.

[0010] In combination with the first aspect, in some possible implementations, inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame image includes:

[0011] Inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a target behavior score of a preset behavior corresponding to the current frame image;

[0012] If the target behavior score is greater than a preset score threshold, the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

[0013] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, if the target behavior score is less than the preset score threshold, the behavior recognition result corresponding to the current frame image is determined to be other behaviors, and the other behaviors are behaviors other than the preset behaviors.

[0014] In combination with the first aspect and the above implementation manner, in some possible implementation manners, after obtaining the current frame image for behavior recognition, the method further includes:

[0015] Performing human body part detection on the current frame image based on the detection network model to determine a region image containing a target part in the current frame image;

[0016] Inputting the region image into a recognition network model for part posture recognition processing to obtain a part posture recognition result;

[0017] If the part posture recognition result indicates that the target part is in a preset posture, setting the first memory value corresponding to the current frame image as an initial value;

[0018] If the part posture recognition result indicates that the target part is in other postures, obtaining a second memory value corresponding to the previous frame image, and performing a decrement process on the second memory value according to preset data to obtain a first memory value corresponding to the current frame image;

[0019] If the target behavior score is greater than a preset score threshold, determining that the behavior recognition result corresponding to the current frame image is a preset behavior includes:

[0020] If the first memory value is greater than a preset memory value, and the target behavior score is greater than a preset score threshold, then the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

[0021] Through the above technical scheme, the memory value can be obtained and compared to ensure that the posture of the part corresponding to the current frame image is the preset posture, and the behavior recognition result is determined to be the preset behavior based on the number of consecutive image frames, the first memory value and the target behavior score, thereby improving the accuracy of vehicle behavior recognition.

[0022] In combination with the first aspect and the above implementation manner, in some possible implementation manners, after the step of inputting the current frame image and the first feature map set into the recognition network model for behavior recognition processing, the method further includes:

[0023] If the number of continuous image frames for the behavior recognition process is less than the preset number of frames, the behavior recognition result is discarded and the process proceeds to the step of obtaining the current frame image for behavior recognition.

[0024] In combination with the first aspect and the foregoing implementation manner, in some possible implementation manners, obtaining a first feature map set corresponding to a previous frame image of the current frame image includes:

[0025] If the current frame image is the first frame image, an initial feature map set is obtained, and the feature value of each initial feature map in the initial feature map set is a preset feature value.

[0026] Through the above technical solution, the behavior recognition processing can be implemented on the first frame image, thereby completing the behavior recognition processing.

[0027] In combination with the first aspect and the above implementation manner, in some possible implementation manners, before obtaining the current frame image for behavior recognition, the method further includes:

[0028] Acquiring a current scene state of the vehicle, and matching the current scene state with a parking scene state;

[0029] If the current scene state matches the parking scene state, the camera of the vehicle is controlled to capture the current frame image.

[0030] Through the above technical solution, it is possible to avoid erroneous activation of vehicle functions when the scenario conditions are met, which may lead to driving accidents, thereby improving the safety and reliability of the vehicle.

[0031] In a second aspect, a behavior recognition device is provided, the device comprising:

[0032] A data acquisition unit, used to acquire a current frame image for behavior recognition, and acquire a first feature map set corresponding to a previous frame image of the current frame image, wherein the first feature map set is a feature map set obtained after the previous frame image is input into a convolutional layer of a recognition network model for feature map fusion;

[0033] A behavior recognition unit, which inputs the current frame image and the first feature map set into a recognition network model to perform behavior recognition processing, so as to obtain a behavior recognition result corresponding to the current frame image;

[0034] The function activation unit is used to control the vehicle to activate the vehicle function corresponding to the preset behavior if the number of continuous image frames for the behavior recognition processing is greater than a preset number of frames and the behavior recognition result is a preset behavior.

[0035] In a third aspect, a vehicle is provided, comprising a memory for storing executable program code;

[0036] A processor is used to call and run the executable program code from the memory, so that the vehicle executes the method in the first aspect or any possible implementation of the first aspect.

[0037] 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.

[0038] 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

[0039] Figure 1 It is a system architecture diagram of a behavior recognition method provided in an embodiment of the present application;

[0040] Figure 2 It is a flowchart of a behavior recognition method provided in an embodiment of the present application;

[0041] Figure 3 It is a flowchart of a behavior recognition method provided in an embodiment of the present application;

[0042] Figure 4 This is an example schematic diagram of a feature map fusion provided in an embodiment of the present application;

[0043] Figure 5is an example schematic diagram of obtaining a regional image provided by an embodiment of the present application;

[0044] Figure 6 is a structural diagram of a behavior recognition device provided in an embodiment of the present application;

[0045] Figure 7 is a structural diagram of a behavior recognition device provided in an embodiment of the present application;

[0046] Figure 8 is a structural schematic diagram of a vehicle provided in an embodiment of the present application;

[0047] Fig. 9 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] 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.

[0049] 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.

[0050] Figure 1 is a system architecture diagram of a behavior recognition method provided by an embodiment of the present application. Figure 1 As shown, the behavior recognition method provided in the embodiment of the present application can be applied to a vehicle to realize the process of speed adjustment and gear shifting of the vehicle. The system architecture provided in the embodiment of this specification mainly includes a vehicle 10, a vehicle computer 20, and a camera 30. Among them, the vehicle 10 can be a motor vehicle, such as a fuel vehicle, a hybrid vehicle or an electric vehicle; the vehicle computer 20 can be a computing end for data processing and system management in the vehicle, such as a vehicle-mounted system of the vehicle; the vehicle computer 20 includes a behavior recognition model 21 and a vehicle function component 22, and the recognition network model 21 can be a network model with image recognition function; the vehicle function component 22 can be a component in the vehicle for executing vehicle functions, such as an audio controller, a lighting controller, etc.; the camera 30 can be a camera with image acquisition function in the vehicle, etc.

[0051] Specifically, the camera 30 in the vehicle 10 collects images and transmits the images to the vehicle computer 20, which performs behavior recognition on the images. In the related art, when the vehicle computer 20 performs behavior recognition, the method adopted is to recognize the collected multiple frames of images in sequence according to the time sequence of the images, so as to determine whether to control the vehicle 10 to start the vehicle function according to the recognition result. However, during the recognition process, there are time sequence errors when recognizing images in time sequence, and since multiple frames of images are simultaneously input into the model for processing, the data processing process is relatively cumbersome, resulting in insufficient accuracy and efficiency of behavior recognition.

[0052] According to the embodiment of the present application, the current frame image is captured by the camera 30, the current frame image is transmitted to the vehicle computer 20, the vehicle computer 20 obtains the first feature map set corresponding to the previous frame image of the current frame image, and the current frame image and the first feature map set are input into the recognition network model 21 for behavior recognition processing to obtain the behavior recognition result corresponding to the current frame image. If the number of continuous image frames for behavior recognition processing is greater than the preset number of frames, and the behavior recognition result is the preset behavior, an instruction is transmitted to the vehicle function component 22 in the vehicle computer to control each component in the vehicle 10 to start the vehicle function corresponding to the preset behavior through the vehicle function component 22, thereby improving the convenience and accuracy of the vehicle's behavior recognition and the ease of operation of the user to start the vehicle function.

[0053] based on Figure 1 The system architecture shown below will be combined with Figure 2-Figure 5 , the behavior recognition method provided in the embodiment of the present application is introduced in detail.

[0054] See also Figure 2 , which is a flow chart of a behavior recognition 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.

[0055] S101, obtaining a current frame image for behavior recognition, and obtaining a first feature map set corresponding to a previous frame image of the current frame image;

[0056] In one embodiment, when the vehicle meets the parking scenario status, in order to monitor in real time whether the driver performs preset behaviors that meet the vehicle functions, it is necessary to obtain in real time the current frame image used to identify the driver's behavior, and obtain the first feature map set corresponding to the previous frame image of the current frame image.

[0057] The parking scene state may be a state where the vehicle is started and all components inside the vehicle are in parking mode.

[0058] The vehicle function may be a function pre-bound to a preset behavior, and specifically may be a corresponding working mode for controlling the lights, audio, or sunroof inside the vehicle, etc. The preset behavior may be a pre-set body movement.

[0059] The current frame image may be an image acquired by the camera of the vehicle at the current moment.

[0060] The previous frame image may be an image that is adjacent to the current frame image in the image acquisition sequence.

[0061] The first feature map set may be a feature map set obtained by inputting the previous frame image into the convolution layer of the recognition network model for feature map fusion. It can be understood that since each frame image includes the features of the previous frame image, it can be considered that the first feature map set includes the features of the previous frame image and the features corresponding to each image before the previous frame image.

[0062] The recognition network model may be a network model used to recognize an image and determine whether a preset behavior exists in the image.

[0063] S102, inputting the current frame image and the first feature map set into the recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame image;

[0064] In one embodiment, after obtaining the current frame image and the first feature map set, the current frame image and the first feature map set are output into a recognition network model, and the recognition network model is used to perform behavior recognition processing based on the current frame image and the first feature map set to obtain a behavior recognition result corresponding to the current frame image.

[0065] Specifically, the method for obtaining the behavior recognition result corresponding to the current frame image can be to use the recognition network model to perform behavior recognition processing on the current frame image and the first feature map set to obtain the target behavior score of the preset behavior corresponding to the current frame image. If the target behavior score is greater than the preset score threshold, the behavior recognition result corresponding to the current frame image is determined to be the preset behavior.

[0066] The target behavior score can be the score obtained by the recognition network model performing behavior recognition processing, which is used to indicate the possibility of the presence of preset behaviors in the current frame image and the images before the current frame image. The larger the score value, the greater the possibility of the presence of preset behaviors in the current frame image and the images before the current frame image.

[0067] The preset score threshold may be a threshold for determining the behavior recognition result corresponding to the current frame image, and the behavior recognition result corresponding to the current frame image is determined by comparing the target behavior score with the preset score threshold.

[0068] The behavior recognition result may be a recognition result corresponding to the current frame image determined according to the target behavior score output by the recognition network model, and may specifically include preset behaviors and other behaviors.

[0069] S103, if the number of continuous image frames for behavior recognition processing is greater than a preset number of frames, and the behavior recognition result is a preset behavior, controlling the vehicle to start a vehicle function corresponding to the preset behavior;

[0070] In one embodiment, after obtaining the recognition result of the recognition network model, the number of continuous image frames that have been processed for behavior recognition by the recognition network model is obtained, and the number of continuous image frames is compared with a preset number of frames. If the number of continuous image frames is greater than the preset number of frames and the behavior recognition result is a preset behavior, the vehicle is controlled to start the vehicle function corresponding to the preset behavior.

[0071] The number of continuous image frames may be the number of image frames that have been processed for behavior recognition since the vehicle meets the parking scene condition.

[0072] The preset number of frames may be a preset number of frames that can satisfy feature accumulation in an initial stage of behavior recognition processing.

[0073] Specifically, if the number of continuous image frames corresponding to the current frame image is greater than the preset number of frames, and the behavior recognition result corresponding to the current frame image is the preset behavior, it can be determined that the driver has performed the preset behavior in front of the vehicle's camera, meeting the conditions for the vehicle to start the vehicle function, and controlling the vehicle to start the vehicle function corresponding to the preset behavior.

[0074] In an embodiment of the present application, a feature map set is obtained by acquiring multiple frames of images and gradually performing recognition. A recognition network model is used to perform behavior recognition on the current frame image and the feature map set corresponding to the current frame image to obtain a behavior recognition result. The feature map set is recognized by the recognition network model, thereby avoiding recognition errors due to timing. The complexity of data processing is reduced through the feature map set, and data processing efficiency is improved, thereby improving the convenience and accuracy of vehicle behavior recognition and the ease of operation for users to start vehicle functions.

[0075] The following will be combined Figure 3 A behavior recognition method provided in an embodiment of the present application is described in detail with reference to a specific example.

[0076] S201, obtaining the current scene state of the vehicle, and matching the current scene state with the parking scene state;

[0077] In one embodiment, the vehicle computer monitors various components of the vehicle in real time, obtains the current scene state of the vehicle based on the monitoring, and matches the current scene state with the parking scene state.

[0078] The various components of the vehicle may be the vehicle's driving gear position, vehicle starting status, and handbrake status, etc.

[0079] The current scene state may be the state of the vehicle at the current moment, for example, a driving scene state, a parking scene state, etc.

[0080] The parking scene state may be that the vehicle has been started and the components inside the vehicle are in the parking mode. Specifically, the vehicle may be in the starting state, the vehicle's driving gear is the parking gear and the handbrake is pulled up. It is understandable that if the vehicle is a foot brake, it can be determined whether the foot brake is pressed.

[0081] S202, if the current scene state matches the parking scene state, controlling the camera of the vehicle to capture the current frame image;

[0082] In one embodiment, if the current scene state matches the parking scene state, the current scene state of the vehicle is determined to be the parking scene state, and the camera of the vehicle is controlled to capture the current frame image.

[0083] The camera that captures the current frame image may be a camera used in a driver monitoring system to collect driver-related information. Since the driver monitoring system only monitors the driver, it can avoid misidentification of the behavior of other passengers in the vehicle, which may lead to misactivation of vehicle functions.

[0084] It is understandable that if the function to be activated by the vehicle is other scene states, and / or the behavior of other passengers besides the driver needs to be obtained, the current scene state is matched with the corresponding scene state, and the driver monitoring system or the passenger monitoring system is used to collect the current frame image after matching. The specific settings can be made according to the actual situation.

[0085] S203, obtaining a current frame image for behavior recognition, and obtaining a first feature map set corresponding to a previous frame image of the current frame image;

[0086] In one embodiment, when the vehicle meets the parking scenario status, in order to monitor in real time whether the driver performs preset behaviors that meet the vehicle functions, it is necessary to obtain in real time the current frame image used to identify the driver's behavior, and obtain the first feature map set corresponding to the previous frame image of the current frame image.

[0087] The vehicle function may be a function pre-bound to a preset behavior, and specifically may be a function for controlling the corresponding working mode of the lamps, audio, or sunroof inside the vehicle. The preset behavior may be a pre-set body movement. For example, the vehicle function may be a function for controlling the lamps inside the vehicle to light up at a preset brightness, controlling the audio to output music at a preset volume, and opening the sunroof or the sunroof baffle, etc.

[0088] The previous frame image may be an image that is adjacent to the current frame image in the image acquisition sequence. For example, the vehicle starts to acquire the current frame image at 12:00:00 and acquires 12 frames of images per second. If the current frame image is the 36th frame image, the previous frame image is the 35th frame image.

[0089] The first feature map set may be a feature map set obtained by inputting the previous frame image into the convolution layer of the recognition network model for feature map fusion. It can be understood that since each frame image includes the features of the previous frame image, it can be considered that the first feature map set includes the features of the previous frame image and the features corresponding to each image before the previous frame image.

[0090] It should be noted that if the number of frames is too large, the feature map set will include too much content, affecting the data processing efficiency and accuracy. Therefore, a feasible method is to set a time sliding window with a length of 24 frames. Then the first feature map set includes the features corresponding to the current frame image and the images of the 23 frames before the current frame image. For example, if the current frame image is the 36th frame image, the first feature map set is a feature map set corresponding to 23 frames from the 12th frame image to the 35th frame image. Among them, the specific length of the time sliding window can be set according to the actual situation.

[0091] The recognition network model may be a network model used to recognize an image and determine whether a preset behavior exists in the image.

[0092] Furthermore, after obtaining the feature maps corresponding to each target layer corresponding to the current frame image, each feature map is set as the first feature map set of the next frame of the current frame image and stored in the cache area of ​​the vehicle computer.

[0093] Furthermore, if the current frame image is the first frame image, an initial feature map set is obtained, and the initial feature map set is used as the first feature map set.

[0094] Among them, the feature map of each initial feature map in the initial feature map set is a preset feature value, for example, the preset feature value of each feature map is 0. It can be understood that if the current frame image is the first frame image collected when the behavior recognition process starts, there is no previous frame image of the current frame image, so the initial feature map set can be pre-set as the first feature map set for behavior recognition processing.

[0095] S204, inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a target behavior score of a preset behavior corresponding to the current frame image;

[0096] In one embodiment, after obtaining the current frame image and the first feature map set, the current frame image and the first feature map set are output into a recognition network model, and the recognition network model is used to perform behavior recognition processing based on the current frame image and the first feature map set to obtain a target behavior score corresponding to the current frame image.

[0097] Specifically, the method for obtaining the target behavior score corresponding to the current frame image can be: use the first layer of the convolutional layer in the recognition network model to extract features of the current frame image to obtain an initial feature map, input the initial feature map to the second layer in the convolutional layer for behavior recognition processing, and repeat the execution until the target layer in the convolutional layer; when the target layer performs behavior recognition processing, in addition to the feature map input according to the previous layer of the target layer, the feature map corresponding to the target layer in the first feature map set is obtained for fusion calculation to obtain the feature map corresponding to the target layer, the feature map of the 100th layer of the convolutional layer in the recognition network model is obtained, and the feature map is calculated based on the pooling layer and the fully connected layer in the recognition network model to obtain the target behavior score of the preset behavior corresponding to the current frame image.

[0098] For example, if the convolutional layer in the recognition network model includes 100 layers, and the target layer is a multiple of ten in the convolutional layer, when the target layer is the tenth layer, a fusion calculation is performed based on the feature map of the ninth layer and the first feature map corresponding to the tenth layer in the first feature map set to obtain the feature map corresponding to the tenth layer. Figure 4 As shown, Figure 4 When calculating the tenth convolutional layer in the recognition network model, the feature map of the ninth layer and the first feature map of the tenth layer in the first feature map set are obtained for fusion calculation.

[0099] The target behavior score can be the score obtained by the recognition network model performing behavior recognition processing, which is used to indicate the possibility of the presence of preset behaviors in the current frame image and the images before the current frame image. The larger the score value, the greater the possibility of the presence of preset behaviors in the current frame image and the images before the current frame image.

[0100] S205, performing human body part detection on the current frame image based on the detection network model, and determining a region image containing a target part in the current frame image;

[0101] In one embodiment, after acquiring the current frame image, in order to determine whether there is a human body part corresponding to a preset behavior in the current frame image, the current frame image is input into a detection network model, and human body part detection is performed on the current frame image based on the detection network model to determine the regional image containing the target part in the current frame image.

[0102] The detection network model may be a network model with an object detection function, which is used to perform part detection on the current frame image.

[0103] The target part may be a part of the human body corresponding to a preset behavior, such as a hand.

[0104] The region image may be an image including the target part in the current frame image, such as Figure 5 As shown, Figure 5 The “region image” in is the image including the target part “hand”.

[0105] S206, inputting the regional image into the recognition network model to perform part posture recognition processing to obtain a part posture recognition result;

[0106] In one embodiment, after the regional image is acquired, the regional image is input into a recognition network model, and the part posture in the regional image is recognized according to the recognition network model to obtain a part posture recognition result.

[0107] The part posture may be the posture adopted by the target part in the preset behavior. For example, if the target part is a hand, the part posture recognition result may be a single finger, etc.

[0108] S207, if the part posture recognition result indicates that the target part is in a preset posture, setting the first memory value corresponding to the current frame image to an initial value;

[0109] In one embodiment, after the part posture is acquired, the part posture recognition result is matched with the preset posture. If the part posture recognition result indicates that the target part is in the preset posture, the first memory value corresponding to the current frame image is set as the initial value.

[0110] The first memory value may be a memory value corresponding to the current frame image, and is used to record whether a preset gesture exists in the current frame image.

[0111] The preset gesture may be a pre-set part gesture for activating a vehicle function, such as "single-finger circle drawing". It should be noted that if the preset state is "single-finger circle drawing", it can be further limited to one hand performing the "single-finger circle drawing" operation. If two hands perform the "single-finger circle drawing", it is considered that the part gesture recognition result indicates that the target part does not belong to the preset gesture. The specific setting can be made according to the actual situation.

[0112] For example, Figure 5 As shown, Figure 5 If the target part of the middle region image is the hand and the part posture is a single finger, the first memory value corresponding to the current frame image is set as the initial value.

[0113] S208, if the part posture recognition result indicates that the target part is in other postures, then obtain the second memory value corresponding to the previous frame image, and perform a decrement process on the second memory value according to the preset data to obtain the first memory value corresponding to the current frame image;

[0114] In one embodiment, after obtaining the part posture, the part posture recognition result is matched with the preset posture. If the part posture recognition result indicates that the target part is in other postures, the second memory value corresponding to the previous frame image is obtained, and the second memory value is deducted according to the preset data, and the value obtained after the deduction is used as the first memory value corresponding to the current frame image.

[0115] Other gestures may be gestures performed by the target part other than the preset gestures, for example, if the preset gesture is "single finger", other gestures may be "double fingers", etc. It should be noted that if the preset gesture is "single finger" and the target part is "single hand", the current frame image includes two hands, and each hand is "single finger", which is also considered not to meet the preset gesture.

[0116] The second memory value may be a memory value corresponding to the previous frame of image. The preset data may be a pre-set value for decrement processing, such as 1.

[0117] For example, the second memory value is 20, and the preset data is 1, then the first memory value corresponding to the current frame image is subtracted to "20-1", and the first memory value corresponding to the current frame image is obtained as "19".

[0118] It should be noted that, since there is a situation where the second memory value is 0, in order to avoid the second memory value occupying too much memory due to continuous decrement of data, a feasible method is that if the second memory value is 0, then when the second memory value is decremented, the first memory value is assigned to 0.

[0119] S209, if the first memory value is greater than the preset memory value, and the target behavior score is greater than the preset score threshold, determining that the behavior recognition result corresponding to the current frame image is a preset behavior;

[0120] In one embodiment, after obtaining the first memory value and target behavior score corresponding to the current frame image, the first memory value is compared with the preset memory value, and the target behavior score is compared with the preset score threshold. If the first memory value is greater than the preset memory value and the target behavior score is greater than the preset score threshold, the behavior recognition result is determined to be the preset behavior.

[0121] The preset score threshold may be a threshold for determining the behavior recognition result corresponding to the current frame image, and the behavior recognition result corresponding to the current frame image is determined by comparing the target behavior score with the preset score threshold.

[0122] The behavior recognition result may be a recognition result corresponding to the current frame image determined according to the target behavior score output by the recognition network model, and may specifically include preset behaviors and other behaviors. Among them, other behaviors may be behaviors other than preset behaviors. For example, if the preset behavior is "drawing a circle with one finger", then other behaviors may be "drawing a line with one finger", "drawing a circle with two fingers", etc.

[0123] For example, if the number of continuous image frames is 36 frames, the preset number of frames is 24 frames, the first memory value is 24, the preset memory value is 0, the target behavior score is 0.9, and the preset score threshold is 0.8, then since the number of continuous image frames (36 frames) is greater than the preset number of frames (24 frames), the first memory value (24) is greater than the preset memory value (0), and the target behavior score (0.9) is greater than the preset score threshold (0.8), it can be determined that the behavior recognition result is the preset behavior.

[0124] Furthermore, if the target behavior score is less than the preset score threshold, the behavior recognition result corresponding to the current frame image is determined to be other behaviors. It can be understood that the target behavior score is the result output by the recognition network model for the behavior recognition of the current frame image. The larger the target behavior score, the greater the possibility that the behavior in the current frame image is the preset behavior. If the target behavior score is less than the preset score threshold, it can be considered that the possibility that the behavior in the current frame image is the preset behavior is too small, and therefore the behavior is identified as other behaviors.

[0125] Furthermore, if the first memory value is less than or equal to the preset memory value, it can be considered that the target part of the preset posture is not included in the set number of frames, so even if the target behavior score is greater than the preset score threshold, the behavior recognition result is considered to be other behaviors.

[0126] The set frame number may be a frame number pre-set for determining the execution of a preset behavior. For example, if 12 frames of images are collected per second, the set frame number may be 24 frames, etc. If the first memory value is less than or equal to the preset memory value, it is considered that the user has not performed the preset behavior by adopting a preset posture through the target part within the set frame number. Therefore, even if the target behavior score obtained by the recognition network model for the current frame image is greater than the preset score threshold, it is considered that other postures or other parts are used to perform behaviors similar to the preset behavior, and the behavior recognition result is determined as other behaviors.

[0127] S210, if the number of continuous image frames for the behavior recognition process is greater than a preset number of frames, and the behavior recognition result is a preset behavior, controlling the vehicle to start a vehicle function corresponding to the preset behavior;

[0128] In one embodiment, a comparison result of the number of continuous image frames for behavior recognition processing and a preset number of frames is obtained. If the number of continuous image frames is greater than or equal to the preset number of frames, and the behavior recognition result of the current frame image is determined to be the preset behavior, the vehicle is controlled to start the vehicle function corresponding to the preset behavior.

[0129] The number of continuous image frames may be the number of frames of images that have been processed for behavior recognition since the vehicle meets the parking scene condition. Specifically, the number of continuous image frames may be counted from the beginning of the image for which the behavior recognition process is started, and if the current scene state of the vehicle is switched from the parking scene to another scene, the number of continuous image frames is cleared.

[0130] The preset number of frames may be a number of frames that is preset to meet the requirement of feature accumulation in the initial stage of behavior recognition processing, for example, 24 frames.

[0131] Furthermore, if the number of consecutive image frames for behavior recognition processing is less than the preset number of frames, the behavior recognition result is discarded and the process proceeds to step S203 to perform behavior recognition processing on the next frame of the current frame image.

[0132] It should be noted that since the first feature map set obtained when the first frame image is subjected to behavior recognition processing is the initial feature map set, the feature value of each feature map in the initial feature map set is a preset value, and in order to improve the accuracy of the behavior recognition results, feature accumulation is required. Therefore, if the number of consecutive image frames is greater than or equal to the preset number of frames, it can be considered that the feature accumulation is sufficient to ensure the accuracy of behavior recognition; if the number of consecutive image frames is less than the preset number of frames, then in order to avoid incorrect recognition that may lead to the misactivation of the vehicle function, the behavior recognition result will be marked as an invalid result and discarded.

[0133] Exemplarily, the method for controlling a vehicle to start a vehicle function may be, if the preset behavior is to draw a circle with one finger of one hand, and the vehicle function is to start the relaxation mode of the vehicle, then when it is determined that the driver draws a circle with one finger in front of the camera collecting the current frame image, the window, lamp controller and other related controllers in the vehicle are controlled to control the corresponding components to control the vehicle to start the relaxation mode. Among them, the relaxation mode is to close all windows and sunroofs of the vehicle, play preset audio data at a preset volume, and control the lamps of the vehicle to illuminate at a preset brightness.

[0134] It can be understood that since the condition for starting and maintaining the vehicle function is that the current scene state of the vehicle matches the parking scene, if the user performs operations such as shifting gears to change the current scene state of the vehicle, the vehicle function will be turned off.

[0135] In the embodiment of the present application, a feature map set is obtained by acquiring multiple frames of images and gradually identifying them. A recognition network model is used to perform behavior recognition on the current frame image and the feature map set corresponding to the current frame image to obtain a behavior recognition result. The feature map set is recognized by the recognition network model, that is, recognition errors caused by timing are avoided. The complexity of data processing is reduced through the feature map set, and data processing efficiency is improved, thereby improving the convenience and accuracy of vehicle behavior recognition and the ease of operation of users starting vehicle functions. Further, the current scene state of the vehicle is matched with the parking scene state to determine that the current scene state of the vehicle meets the conditions for starting the vehicle function, thereby avoiding the vehicle function being mistakenly started when the scene state is met, resulting in driving accidents, and improving the safety and reliability of the vehicle. Further, by obtaining the memory value and comparing it, it is ensured that the posture of the part corresponding to the current frame image is the preset posture, thereby improving the accuracy of behavior recognition.

[0136] based on Figure 1 The system architecture will be combined with Figure 6 and Figure 7 , the behavior recognition device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 6 The behavior recognition device 1 in the present application is used to execute 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.

[0137] A data acquisition unit 11 is used to acquire a current frame image for behavior recognition, and acquire a first feature map set corresponding to a previous frame image of the current frame image, wherein the first feature map set is a feature map set obtained after the previous frame image is input into a convolutional layer of a recognition network model for feature map fusion;

[0138] The behavior recognition unit 12 is used to input the current frame image and the first feature map set into a recognition network model to perform behavior recognition processing, so as to obtain a behavior recognition result corresponding to the current frame image;

[0139] The function activation unit 13 is used to control the vehicle to activate the vehicle function corresponding to the preset behavior if the number of continuous image frames for the behavior recognition process is greater than a preset number of frames and the behavior recognition result is a preset behavior.

[0140] Optionally, the behavior recognition unit 12 is further configured to:

[0141] Inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a target behavior score of a preset behavior corresponding to the current frame image;

[0142] If the target behavior score is greater than a preset score threshold, the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

[0143] Optionally, the behavior recognition unit 12 is further configured to:

[0144] If the target behavior score is less than the preset score threshold, it is determined that the behavior recognition result corresponding to the current frame image is other behaviors, and the other behaviors are behaviors other than the preset behaviors.

[0145] Optional, such as Figure 7 As shown, the behavior recognition device 1 further includes a memory value acquisition unit 14, which is used to:

[0146] Performing human body part detection on the current frame image based on the detection network model to determine a region image containing a target part in the current frame image;

[0147] Inputting the region image into a recognition network model for part posture recognition processing to obtain a part posture recognition result;

[0148] If the part posture recognition result indicates that the target part is in a preset posture, setting the first memory value corresponding to the current frame image as an initial value;

[0149] If the part posture recognition result indicates that the target part is in other postures, obtaining a second memory value corresponding to the previous frame image, and performing a decrement process on the second memory value according to preset data to obtain a first memory value corresponding to the current frame image;

[0150] The behavior recognition unit 12 is further used for:

[0151] If the first memory value is greater than a preset memory value, and the target behavior score is greater than a preset score threshold, then the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

[0152] Optionally, the behavior recognition unit 12 is further configured to:

[0153] If the number of continuous image frames for the behavior recognition process is less than the preset number of frames, the behavior recognition result is discarded and the process proceeds to the step of obtaining the current frame image for behavior recognition.

[0154] Optionally, the data acquisition unit 11 is further used for:

[0155] If the current frame image is the first frame image, an initial feature map set is obtained, and the feature value of each initial feature map in the initial feature map set is a preset feature value.

[0156] Optional, such as Figure 7 As shown, the behavior recognition device 1 further includes an image acquisition unit 15, which is used to:

[0157] Acquiring a current scene state of the vehicle, and matching the current scene state with a parking scene state;

[0158] If the current scene state matches the parking scene state, the camera of the vehicle is controlled to capture the current frame image.

[0159] In the embodiment of the present application, a feature map set is obtained by acquiring multiple frames of images and gradually identifying them. A recognition network model is used to perform behavior recognition on the current frame image and the feature map set corresponding to the current frame image to obtain a behavior recognition result. The feature map set is recognized by the recognition network model, that is, recognition errors caused by timing are avoided. The complexity of data processing is reduced through the feature map set, and data processing efficiency is improved, thereby improving the convenience and accuracy of vehicle behavior recognition and the ease of operation of users starting vehicle functions. Further, the current scene state of the vehicle is matched with the parking scene state to determine that the current scene state of the vehicle meets the conditions for starting the vehicle function, thereby avoiding the vehicle function being mistakenly started when the scene state is met, resulting in driving accidents, and improving the safety and reliability of the vehicle. Further, by obtaining the memory value and comparing it, it is ensured that the posture of the part corresponding to the current frame image is the preset posture, thereby improving the accuracy of behavior recognition.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

[0164] 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:

[0165] Obtain a current frame image for behavior recognition, and obtain a first feature map set corresponding to a previous frame image of the current frame image, wherein the first feature map set is a feature map set obtained after the previous frame image is input into a convolutional layer of a recognition network model for feature map fusion;

[0166] Inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame image;

[0167] If the number of continuous image frames for the behavior recognition processing is greater than a preset number of frames, and the behavior recognition result is a preset behavior, the vehicle is controlled to start a vehicle function corresponding to the preset behavior.

[0168] Optionally, when the processor 501 inputs the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame image, the processor 501 specifically performs:

[0169] Inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a target behavior score of a preset behavior corresponding to the current frame image;

[0170] If the target behavior score is greater than a preset score threshold, the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

[0171] Optionally, the processor 501 further executes:

[0172] If the target behavior score is less than the preset score threshold, it is determined that the behavior recognition result corresponding to the current frame image is other behaviors, and the other behaviors are behaviors other than the preset behaviors.

[0173] Optionally, when the target motor is discharging, the processor 501, after acquiring the current frame image for behavior recognition, further executes:

[0174] Performing human body part detection on the current frame image based on the detection network model to determine a region image containing a target part in the current frame image;

[0175] Inputting the region image into a recognition network model for part posture recognition processing to obtain a part posture recognition result;

[0176] If the part posture recognition result indicates that the target part is in a preset posture, setting the first memory value corresponding to the current frame image as an initial value;

[0177] If the part posture recognition result indicates that the target part is in other postures, obtaining a second memory value corresponding to the previous frame image, and performing a decrement process on the second memory value according to preset data to obtain a first memory value corresponding to the current frame image;

[0178] When the processor 501 determines that the behavior recognition result corresponding to the current frame image is a preset behavior if the target behavior score is greater than a preset score threshold, the processor 501 specifically executes:

[0179] If the first memory value is greater than a preset memory value, and the target behavior score is greater than a preset score threshold, then the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

[0180] Optionally, when the target motor is charging, after executing the step of inputting the current frame image and the first feature map set into the recognition network model for behavior recognition processing, the processor 501 further executes:

[0181] If the number of continuous image frames for the behavior recognition process is less than the preset number of frames, the behavior recognition result is discarded and the process proceeds to the step of obtaining the current frame image for behavior recognition.

[0182] Optionally, when executing to obtain a first feature map set corresponding to a previous frame image of the current frame image, the processor 501 specifically performs:

[0183] If the current frame image is the first frame image, an initial feature map set is obtained, and the feature value of each initial feature map in the initial feature map set is a preset feature value.

[0184] Optionally, before executing the acquisition of the current frame image for behavior recognition, the processor 501 further executes:

[0185] Acquiring a current scene state of the vehicle, and matching the current scene state with a parking scene state;

[0186] If the current scene state matches the parking scene state, the camera of the vehicle is controlled to capture the current frame image.

[0187] In the embodiment of the present application, a feature map set is obtained by acquiring multiple frames of images and gradually identifying them. A recognition network model is used to perform behavior recognition on the current frame image and the feature map set corresponding to the current frame image to obtain a behavior recognition result. The feature map set is recognized by the recognition network model, that is, recognition errors caused by timing are avoided. The complexity of data processing is reduced through the feature map set, and data processing efficiency is improved, thereby improving the convenience and accuracy of vehicle behavior recognition and the ease of operation of users starting vehicle functions. Further, the current scene state of the vehicle is matched with the parking scene state to determine that the current scene state of the vehicle meets the conditions for starting the vehicle function, thereby avoiding the vehicle function being mistakenly started when the scene state is met, resulting in driving accidents, and improving the safety and reliability of the vehicle. Further, by obtaining the memory value and comparing it, it is ensured that the posture of the part corresponding to the current frame image is the preset posture, thereby improving the accuracy of behavior recognition.

[0188] 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.

[0189] 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.

[0190] 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.

[0191] 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.

[0192] 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.

[0193] 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.

[0194] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned behavior recognition method, and thus can achieve the same effect as the above-mentioned implementation method.

[0195] 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 mutual program codes, etc.

[0196] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present 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.

[0197] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a behavior recognition method provided in the above embodiment.

[0198] 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 behavior recognition method provided in the above-mentioned embodiment.

[0199] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement a behavior recognition method provided by the above embodiment.

[0200] 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.

[0201] 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.

[0202] 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.

[0203] 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 behavior recognition method, characterized in that: The method comprises: Obtain a current frame image for behavior recognition, and obtain a first feature map set corresponding to a previous frame image of the current frame image, wherein the first feature map set is a feature map set obtained after the previous frame image is input into a convolutional layer of a recognition network model for feature map fusion; Inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame image; If the number of continuous image frames for the behavior recognition processing is greater than a preset number of frames, and the behavior recognition result is a preset behavior, the vehicle is controlled to start a vehicle function corresponding to the preset behavior.

2. The method according to claim 1, characterized in that The step of inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a behavior recognition result corresponding to the current frame image includes: Inputting the current frame image and the first feature map set into a recognition network model for behavior recognition processing to obtain a target behavior score of a preset behavior corresponding to the current frame image; If the target behavior score is greater than a preset score threshold, the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

3. The method according to claim 2, characterized in that The method further comprises: If the target behavior score is less than the preset score threshold, it is determined that the behavior recognition result corresponding to the current frame image is other behaviors, and the other behaviors are behaviors other than the preset behaviors.

4. The method according to claim 2, characterized in that: After obtaining the current frame image for behavior recognition, the method further includes: Performing human body part detection on the current frame image based on the detection network model to determine a region image containing a target part in the current frame image; Inputting the region image into a recognition network model for part posture recognition processing to obtain a part posture recognition result; If the part posture recognition result indicates that the target part is in a preset posture, setting the first memory value corresponding to the current frame image as an initial value; If the part posture recognition result indicates that the target part is in other postures, obtaining a second memory value corresponding to the previous frame image, and performing a decrement process on the second memory value according to preset data to obtain a first memory value corresponding to the current frame image; If the target behavior score is greater than a preset score threshold, determining that the behavior recognition result corresponding to the current frame image is a preset behavior includes: If the first memory value is greater than a preset memory value, and the target behavior score is greater than a preset score threshold, then the behavior recognition result corresponding to the current frame image is determined to be a preset behavior.

5. The method according to claim 1, characterized in that After the step of inputting the current frame image and the first feature map set into the recognition network model for behavior recognition processing, the method further includes: If the number of continuous image frames for the behavior recognition process is less than the preset number of frames, the behavior recognition result is discarded and the process proceeds to the step of obtaining the current frame image for behavior recognition.

6. The method according to claim 1, characterized in that The obtaining of a first feature map set corresponding to a previous frame image of the current frame image includes: If the current frame image is the first frame image, an initial feature map set is obtained, and the feature value of each initial feature map in the initial feature map set is a preset feature value.

7. The method according to claim 1, characterized in that Before obtaining the current frame image for behavior recognition, the method further includes: Acquiring a current scene state of the vehicle, and matching the current scene state with a parking scene state; If the current scene state matches the parking scene state, the camera of the vehicle is controlled to capture the current frame image.

8. A behavior recognition device, characterized in that: The device comprises: A data acquisition unit, used to acquire a current frame image for behavior recognition, and acquire a first feature map set corresponding to a previous frame image of the current frame image, wherein the first feature map set is a feature map set obtained after the previous frame image is input into a convolutional layer of a recognition network model for feature map fusion; A behavior recognition unit, which inputs the current frame image and the first feature map set into a recognition network model to perform behavior recognition processing, so as to obtain a behavior recognition result corresponding to the current frame image; The function activation unit is used to control the vehicle to activate the vehicle function corresponding to the preset behavior if the number of continuous image frames for the behavior recognition processing is greater than a preset number of frames and the behavior recognition result is a preset behavior.

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.

Citation Information

Patent Citations

  • Behavior recognition method and behavior recognition device

    CN113610030A

  • Control method and device of vehicle-mounted equipment and vehicle

    CN114170559A

  • Action recognition method and device and vehicle control method and device

    CN117058762A

  • Man-machine posture interaction method and system, electronic equipment and storage medium

    CN117111740A

  • Action recognition method and apparatus, and human-machine interaction method and apparatus

    US20210271892A1