In-vehicle gesture recognition method and device, electronic equipment and vehicle
By identifying the deviation between the position of the user's hand and the camera area, collecting joint information, adjusting the camera area, and generating prompt information to guide the user to move their hand into the camera area, the problem of inaccurate camera recognition in the car is solved and accurate gesture recognition is achieved. Sexual and functional satisfaction.
Patent Information
- Application Number
- CN202410825070.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-11
AI Technical Summary
The camera in the car has a limited camera range, which makes it impossible to accurately recognize user gestures and cannot meet user needs.
By judging the deviation between the position of the user's hand and the camera area, it collects images of the user's joints, determines the joint positions, adjusts the camera area, generates prompt information, and guides the user to move the hand into the camera area to ensure the accuracy of gesture recognition.
It improves the accuracy of gesture recognition, meets the functional needs of users, and avoids the problem of users not knowing where to put their hands.
Smart Images

Figure CN118762403A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle control, and in particular to an in-vehicle gesture recognition method, device, electronic equipment and vehicle. Background Art
[0002] With the rapid development of vehicle technology, vehicles have become an important means of transportation in people's daily lives. Vehicles are usually equipped with multiple functions, and users can trigger the corresponding functions by viewing or clicking the corresponding function buttons in the car.
[0003] To avoid distracting the driver, the function can currently be activated by the driver making a specific gesture to the camera. However, due to the limited camera range of the in-car camera, the user's gestures are often not accurately recognized, resulting in failure to meet user needs. Summary of the invention
[0004] In view of this, the purpose of the present disclosure is to propose an in-vehicle gesture recognition method, device, electronic device and vehicle to solve the current problem that due to the limited camera range of the in-vehicle camera, the user's gestures cannot be accurately recognized, resulting in the problem that user needs cannot be met.
[0005] Based on the above purpose, the first aspect of the present disclosure provides a method for in-vehicle gesture recognition, the method comprising:
[0006] Determine whether gesture information is recognized;
[0007] In response to not recognizing the gesture information, collecting an image including joints of the user;
[0008] determining a current position of a user's hand according to joint positions of the user's joints contained in the image;
[0009] Determine a camera area for image acquisition, determine a first moving direction of a user's hand according to the camera area and the current position, generate and output prompt information including the first moving direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first moving direction;
[0010] In response to identifying gesture information corresponding to the hand in the camera area, executing a target function corresponding to the gesture information.
[0011] Based on the same inventive concept, the second aspect of the present disclosure proposes an in-vehicle gesture recognition device, comprising:
[0012] A determination module, configured to determine whether gesture information is recognized;
[0013] An image acquisition module, configured to acquire an image including a user's joints in response to failure to recognize gesture information;
[0014] a position determination module, configured to determine a current position of a user's hand according to joint positions of the user's joints contained in the image;
[0015] a prompt module, configured to determine a camera area for image acquisition, determine a first moving direction of a user's hand according to the camera area and the current position, and generate and output prompt information including the first moving direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first moving direction;
[0016] The gesture recognition module is configured to execute a target function corresponding to the gesture information in response to identifying gesture information corresponding to the hand in the camera area.
[0017] Based on the same inventive concept, the third aspect of the present disclosure proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the in-vehicle gesture recognition method as described above when executing the computer program.
[0018] Based on the same inventive concept, a fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the in-vehicle gesture recognition method as described above.
[0019] Based on the same inventive concept, a fifth aspect of the present disclosure provides a vehicle, comprising the in-vehicle gesture recognition device described in the second aspect or the electronic device described in the third aspect or the storage medium described in the fourth aspect.
[0020] As can be seen from the above, the present disclosure proposes a method, device, electronic device and vehicle for in-vehicle gesture recognition, which determines whether gesture information is recognized. If gesture information is not recognized, it means that there is a deviation between the position of the user's hand and the camera area of the in-vehicle camera device. An image containing the user's joints is collected, and the current position of the user's hand is determined according to the joint positions of the user's joints contained in the image. Since the proportions of the human body are relatively fixed, the position of the hand determined based on the joint position is more accurate. The camera area for image acquisition is determined, and the first moving direction of the user's hand is determined according to the camera area and the current position. According to the first moving direction, prompt information is generated and output to prompt the user to move the hand to the camera area, so that the user's hand is recognized in the camera area, avoiding the situation where the user is not clear about where to put the hand to be collected. When gesture information is recognized in the camera area, the target function corresponding to the gesture information is executed, which ensures the accurate recognition of the gesture information, responds to the corresponding function, and meets the needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a method for in-vehicle gesture recognition according to an embodiment of the present disclosure;
[0023] Figure 2 is a schematic diagram of a user joint according to an embodiment of the present disclosure;
[0024] Figure 3 A schematic diagram of a first position point in a situation in an embodiment of the present disclosure;
[0025] Figure 4 is a schematic diagram of a first position point in another situation in an embodiment of the present disclosure;
[0026] Figure 5 is a flow chart of a method for in-vehicle gesture recognition according to another embodiment of the present disclosure;
[0027] Figure 6 is a structural block diagram of an in-vehicle gesture recognition device according to an embodiment of the present disclosure;
[0028] Figure 7 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0030] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0031] Cars are usually equipped with multiple functions. Users can trigger the corresponding functions by viewing or clicking the corresponding function buttons in the car. Multimodal technology is gradually maturing in the automotive field, and gesture detection occupies the vast majority of multimodal functions. In order to avoid distracting the driver's attention, the driver can now make specific gestures to the camera to activate the function.
[0032] However, due to the limitations of the camera or visual algorithm, the user's hand position often deviates from the camera's camera area, making it impossible to accurately identify the user's gestures, resulting in the inability to meet user needs.
[0033] Based on the above description, this embodiment proposes a method for in-vehicle gesture recognition, such as Figure 1 As shown, the method includes:
[0034] Step 101, determining whether gesture information is recognized.
[0035] In specific implementation, it is determined whether the gesture information is recognized. If the gesture information is not recognized, it means that there is a deviation between the position of the user's hand and the camera area of the camera device in the car. If the gesture information is recognized, the gesture information can be directly recognized and the target function corresponding to the gesture information is executed.
[0036] Step 102 : In response to failure to recognize gesture information, collect images containing joints of the user.
[0037] In specific implementation, when gesture information is not recognized, an image containing the user's joints is collected, wherein the image may be collected by an in-car camera device or by other external cameras. The in-car camera device may be an independent camera in the car or a built-in camera set on the in-car screen. The setting position of the independent in-car camera includes at least one of the following: the co-pilot of the vehicle, the roof of the vehicle, the door, the inside of the trunk of the vehicle, the back of the vehicle seat, etc. The in-car screen includes at least one of the following: the central control screen, the co-pilot screen, the seat back screen, the ceiling screen, etc.
[0038] After collecting an image containing a user's joints, the image is identified to determine the user's joints in the image, wherein the user's joints include a shoulder joint, an elbow joint, and a wrist joint. Figure 2 As shown, the user joints are joints on the user's shoulders and arms, including shoulder joints, elbow joints or wrist joints. Figure 2 The middle position is the shoulder joint. Figure 2 The middle 2 positions are the elbow joint, Figure 2 The middle 3 positions are recorded as wrist joints.
[0039] Step 103: determine the current position of the user's hand according to the joint positions of the user's joints contained in the image.
[0040] In specific implementation, the current position of the user's hand is determined according to the joint position of the user's joint contained in the image. In this embodiment, the joint position of the user's wrist joint is used as the current position of the user's hand, that is, the position of the user's wrist joint is the position of the user's hand.
[0041] Exemplarily, the user image is acquired by using an in-car camera device, and the position of the user's wrist joint is identified as the lower left of the user image. At this time, it can be determined that the position of the user's hand is the lower left of the image.
[0042] Step 104, determine the camera area for image acquisition, determine the first movement direction of the user's hand according to the camera area and the current position, generate and output prompt information including the first movement direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first movement direction.
[0043] In a specific implementation, the position of the user's hand is determined according to the joint position corresponding to the user's joint contained in the image. The camera area for image acquisition is determined. For example, when the image is an image acquired by an in-vehicle camera device, the camera area is an area where the in-vehicle camera device can clearly and accurately identify the position of the user's hand.
[0044] The first moving direction of the user's hand is determined based on the camera area and the current position of the user's hand, that is, taking the current position as the starting point, the relative direction between the camera area and the current position is determined, and the relative direction is the first moving direction of the user's hand.
[0045] Exemplarily, taking the current position as the starting point, it is determined that the camera area is located at the upper left of the current position. At this time, the direction that the user's hand needs to move is to the upper left.
[0046] Prompt information including the first moving direction is generated, and the prompt information is output to prompt the user to move the hand according to the first moving direction so that the moved hand is located in the camera area.
[0047] The content form of the prompt information includes at least one of the following: voice, text, picture, video and rich text. The prompting method of the prompt information includes at least one of the following: voice broadcast, HUD display, instrument display, central control screen display, window display and in-vehicle equipment linkage, etc. Among them, HUD display is head-up display. For example, if the prompting method of the prompt information is HUD display, the prompt information will be projected in front of the user.
[0048] For example, the prompt information is in the form of voice broadcast, and the content of the prompt information is in the form of text. If the current position of the user's hand is at the lower left corner, and the camera area of the in-car camera device is at the upper right corner, the voice broadcast is a prompt information of "please move your hand slowly to the upper right corner".
[0049] Step 105 , in response to identifying the gesture information corresponding to the hand in the camera area, executing the target function corresponding to the gesture information.
[0050] In a specific implementation, when the user moves his hand and the user's gesture information is recognized in the camera area, the gesture information is immediately responded to and the function corresponding to the gesture information is executed.
[0051] In this embodiment, the user can pre-set the functions corresponding to different gesture information. When the user sets, the setting can be performed through the vehicle computer or through a terminal, and the terminal includes at least one of the following: a mobile phone, a watch, a bracelet, a laptop or a tablet computer. It can be understood that the terminal has established a communication connection with the vehicle computer.
[0052] For example, a shushing gesture made by a user is recognized in the camera area, and the vehicle computer responds to the gesture and controls the vehicle computer to mute, such as turning off the playing music.
[0053] Through the above scheme, it is determined whether the gesture information is recognized. If the gesture information is not recognized, it means that there is a deviation between the position of the user's hand and the camera area of the in-vehicle camera device. An image containing the user's joints is collected, and the current position of the user's hand is determined based on the joint positions of the user's joints contained in the image. Since the proportions of the human body are relatively fixed, the position of the hand determined based on the joint position is more accurate. The camera area for image acquisition is determined, and the first moving direction of the user's hand is determined based on the camera area and the current position. According to the first moving direction, prompt information is generated and output to prompt the user to move the hand to the camera area, so that the user's hand is recognized in the camera area, avoiding the situation where the user is not clear about where to put the hand to be collected. When gesture information is recognized in the camera area, the target function corresponding to the gesture information is executed, ensuring the accurate recognition of the gesture information, and responding to the corresponding function to meet the needs of the user.
[0054] In some embodiments, step 103 specifically includes:
[0055] Step 1031, in response to the user joints included in the image being a shoulder joint and an elbow joint, obtaining a first distance between the shoulder joint and the elbow joint.
[0056] Step 1032, obtaining a preset ratio, and determining a second distance between the elbow joint and the wrist joint according to the preset ratio and the first distance.
[0057] Step 1033, determining that a target position on an extension line of the shoulder joint and the elbow joint and at a second distance from the elbow joint is the current position of the user's hand.
[0058] During specific implementation, when it is determined that the acquired image containing the user joints contains the shoulder joint and the elbow joint, the first distance between the shoulder joint and the elbow joint is determined.
[0059] A preset ratio is obtained, where the ratio is a predetermined ratio of a second distance between the wrist joint and the elbow joint to a first distance between the elbow joint and the shoulder joint, that is, a ratio of an upper arm to a forearm of a human body.
[0060] According to the preset ratio and the determined first distance between the shoulder joint and the elbow joint, the second distance between the wrist joint and the elbow joint can be calculated. On the extension line of the shoulder joint and the elbow joint, the target position at the second distance from the elbow joint is determined to be the position of the user's hand.
[0061] For example, the shoulder joint and elbow joint of user A are identified, and the first distance between the shoulder joint and the elbow joint is calculated to be 45 cm. The preset ratio is 1.5:1, and the second distance between the wrist joint and the elbow joint of user A is calculated to be 30 cm. That is, the upper arm of user A is 45 cm long and the lower arm is 30 cm long. The position 30 cm away from the elbow joint on the extension line of the shoulder joint and the elbow joint of user A is regarded as the position of the hand of user A.
[0062] Through the above scheme, when the shoulder joint and the elbow joint are identified, the position of the user's hand can be calculated according to the proportions of the human body, and the determined hand position is more accurate, thereby making the determination of the first moving direction more accurate.
[0063] In some embodiments, step 103 specifically includes:
[0064] Step 103A, in response to the user joint included in the image being a shoulder joint, and the image including a first position point on the user's arm, determining a third distance between the shoulder joint and the first position point.
[0065] Step 103B: compare the third distance with the preset distance to obtain a comparison result.
[0066] Step 103C, determining the position of the elbow joint according to the comparison result, and determining the current position of the user's hand based on the positions of the shoulder joint and the elbow joint.
[0067] In a specific implementation, when it is determined that the captured image containing the user joint is a shoulder joint, and the image contains a first position point on the user's arm, the first position point is located on the user's arm and is located between the elbow joint and the shoulder joint, a third distance between the shoulder joint and the first position point is calculated.
[0068] A preset distance threshold is obtained, wherein the preset distance threshold is a preset distance, and its value represents half of the distance between the shoulder joint and the elbow joint of the human body, that is, the distance between the center point of the shoulder joint and the elbow joint and the shoulder joint. A comparison is made between the third distance and the preset distance to obtain a comparison result.
[0069] The position of the elbow joint is determined based on the comparison result, and the current position of the user's hand is determined based on the positions of the shoulder joint and the elbow joint. Specifically:
[0070] A fourth distance and a preset ratio between the positions of the shoulder joint and the elbow joint are obtained, wherein the ratio is a predetermined ratio of a second distance between the wrist joint and the elbow joint to a first distance between the elbow joint and the shoulder joint, that is, a ratio of an upper arm to a forearm of a human body.
[0071] The fifth distance between the elbow joint and the wrist joint is determined according to the preset ratio and the fourth distance. On the extension line of the shoulder joint and the elbow joint, the target position at the fifth distance from the elbow joint is determined to be the position of the user's hand.
[0072] Through the above scheme, when only the shoulder joint and the first position point on the arm are identified, the position of the elbow joint is estimated by the distance between the shoulder joint and the first position point, and then the position of the hand is determined based on the distance between the elbow joint and the shoulder joint, so as to subsequently determine the first moving direction and remind the user to move the hand according to the first moving direction, ensuring that the in-vehicle camera device can recognize the user gesture information within its own camera area.
[0073] In some embodiments, step 103C specifically includes:
[0074] Step 103C1, in response to the comparison result that the third distance is greater than the preset distance, a target position that is a preset distance that is a preset multiple of the shoulder joint is used as the position of the elbow joint.
[0075] In a specific implementation, when it is determined that the third distance is greater than the preset distance, Figure 3As shown, position 1 is recorded as the shoulder joint, position 2 is recorded as the elbow joint, position 3 is recorded as the wrist joint, position 4 is the preset middle point between the shoulder joint and the elbow joint, and position 5 is the first position point. This indicates that the distance between the first position point and the shoulder joint is greater than the distance between the preset middle point between the shoulder joint and the elbow joint and the shoulder joint, that is, it is located below the middle point and close to the elbow joint. At this time, the target position at a preset distance multiple of the shoulder joint is taken as the position of the elbow joint, that is, the distance between the shoulder joint and the elbow joint is a preset distance multiple of the preset distance.
[0076] For example, the preset multiple is 2 times, and the preset distance is 20 cm. It is determined that the third distance between the first position point of user B and the shoulder joint is 35 cm. At this time, the first position point of user B is lower than the preset middle point. At this time, 2 times the preset distance is calculated to be 50 cm, that is, the distance between the elbow joint of user B and the shoulder joint is 50 cm.
[0077] or,
[0078] Step 103C2, in response to the comparison result that the third distance is less than or equal to the preset distance, the target position of the third distance that is a preset multiple of the shoulder joint is used as the position of the elbow joint.
[0079] In a specific implementation, when it is determined that the third distance is less than or equal to the preset distance, Figure 4 As shown, position 1 is recorded as the shoulder joint, position 2 is recorded as the elbow joint, position 3 is recorded as the wrist joint, position 4 is the preset midpoint between the shoulder joint and the elbow joint, and position 5 is the first position point. This indicates that the distance between the first position point and the shoulder joint is less than or equal to the distance between the preset midpoint between the shoulder joint and the elbow joint and the shoulder joint, that is, it is located above the midpoint and close to the shoulder joint. At this time, it can be regarded as the user's arm is short, and the first position point is taken as the midpoint between the shoulder joint and the elbow joint. Therefore, the target position of the third distance at a preset multiple of the shoulder joint is taken as the position of the elbow joint, that is, the distance between the shoulder joint and the elbow joint is the third distance at a preset multiple.
[0080] For example, the preset multiple is 2 times, and the preset distance is 20 cm. It is determined that the third distance between the first position point of user B and the shoulder joint is 18 cm. At this time, the first position point of user B is above the preset middle point. At this time, 2 times the third distance is calculated to be 36 cm, that is, the distance between the elbow joint of user B and the shoulder joint is 36 cm.
[0081] Through the above scheme, by comparing the distance between the first position point and the shoulder joint with the preset distance, the distance between the elbow joint and the shoulder joint is determined according to the comparison result, which makes the determination of the elbow joint position more accurate.
[0082] In some embodiments, step 103 specifically further includes:
[0083] Step 103a: in response to the user joint contained in the image being a wrist joint, taking the position of the wrist joint as the current position of the user's hand.
[0084] In a specific implementation, when it is determined that the captured image containing the user joint is a wrist joint, it can be considered that the user's hand is at the wrist joint position, and therefore the wrist joint position is taken as the current position of the user's hand.
[0085] In some embodiments, the camera area is an image acquisition area of an in-vehicle camera device, and after step 103, the method further includes:
[0086] Step 10A, obtaining the camera area of the in-vehicle camera device.
[0087] Step 10B: determining a second moving direction according to the camera area and the current position, and controlling the in-vehicle camera device to move according to the second moving direction.
[0088] In a specific implementation, a camera area of the in-vehicle camera device is obtained, where the in-vehicle camera device can clearly and accurately identify the position of the user's hand. A second moving direction is determined based on the camera area and the current position of the user's hand, and a moving instruction is sent to the in-vehicle camera device to control the in-vehicle camera device to move according to the second moving direction.
[0089] Exemplarily, the current position of the user's hand is at the lower left corner, and the camera area of the in-vehicle camera device is at the upper right corner. At this time, the in-vehicle camera device is controlled to move to the lower left until the user gesture information is recognized in its own camera area.
[0090] Step 10C: in response to the in-vehicle camera device identifying the gesture information corresponding to the hand in the camera area, executing the target function corresponding to the gesture information.
[0091] In a specific implementation, when the user moves his hand, when the in-vehicle camera device recognizes the user's gesture information in its own camera area, it immediately responds to the gesture information and executes the function corresponding to the gesture information.
[0092] Through the above scheme, after determining the current position of the user's hand, in addition to sending a prompt message to the user to prompt the user to move his or her arm, the movement of the camera device in the car can also be controlled until the gesture information can be recognized in its own camera area, thereby enhancing the intelligence of the system.
[0093] In some embodiments, after step 101, the method further includes:
[0094] Step 10a: in response to the gesture information being recognized in the camera area by the in-vehicle camera device, executing the target function corresponding to the gesture information.
[0095] In a specific implementation, when gesture information is recognized in the camera area by the in-vehicle camera device, the gesture information is immediately responded to and the function corresponding to the gesture information is executed without the need for subsequent user joint recognition operations.
[0096] In some embodiments, step 104 specifically includes:
[0097] Step 1041, constructing a position coordinate system based on the current position.
[0098] In specific implementation, when determining the first moving direction of the user's hand, a position coordinate system is constructed based on the current position. At this time, the current position of the user's hand is the origin position of the position coordinate system, and the first coordinate information of the current position of the user's hand is (0,0).
[0099] Step 1042: Taking the point of the camera area closest to the current position as a target point, and determining a first position of the target point in the position coordinate system.
[0100] In a specific implementation, the camera area includes multiple coordinate points in the position coordinate system, and the closest point to the current position in the camera area is determined. Since it is necessary to identify the user's hand in the camera area of the in-vehicle camera device, it is only necessary to ensure that the user's hand moves from the current position to the camera area. This is to shorten the moving distance of the user's hand.
[0101] Therefore, the closest point to the current position in the camera area is determined, the closest point is used as the target point, and the first position of the target point in the position coordinate system is obtained, that is, the second coordinate information of the target point is obtained.
[0102] Step 1043, performing coordinate calculation according to the current position and the first position to determine the relative direction between the camera area and the current position.
[0103] In specific implementation, according to the first coordinate information of the current position and the second coordinate information of the first position of the target point, the direction angle is calculated according to the first coordinate information and the second coordinate information, and the obtained direction angle is the relative direction between the camera area and the current position.
[0104] Exemplarily, in the position coordinate system, the first coordinate information of the current position is (0, 0), and the second coordinate information of the first position of the target point is (1, 1). At this time, the calculated direction angle between the target point and the current position is 45 degrees, and then it is determined that the closest point of the camera area to the current position of the user's hand is located to the upper right of the current position of the user's hand.
[0105] Step 1044: Use the relative direction as the first moving direction of the user's hand.
[0106] In specific implementation, coordinate calculation is performed based on the current position and the first position to determine the relative direction between the camera area and the current position as the first moving direction of the user's hand, and then the user is prompted to slowly move his hand in the first moving direction.
[0107] Through the above scheme, the nearest point of the camera area to the current position is used as the target point to calculate the relative direction with the current position, which shortens the distance the user's hand moves. At the same time, the relative direction is calculated based on the coordinates, and the calculation of the relative direction is more accurate.
[0108] Based on the same inventive concept, another embodiment of the present disclosure shows a method for in-vehicle gesture recognition, such as Figure 5 As shown, the method specifically includes:
[0109] Step 501, turn on the camera device.
[0110] Step 502 , determining whether gesture information is recognized in the camera area by the in-vehicle camera device; if not, proceed to step 503 ; if yes, proceed to step 507 .
[0111] In a specific implementation, when the in-vehicle camera device is turned on, when gesture information is recognized in the camera area by the in-vehicle camera device, the gesture information is immediately responded to and the function corresponding to the gesture information is executed without the need for subsequent user joint recognition operations.
[0112] Step 503 , determining whether the wrist joint is recognized in the camera area by the in-vehicle camera device; if so, proceeding to step 504 , if not, proceeding to step 505 .
[0113] Step 504, reminding the user to move to the camera area according to the wrist joint.
[0114] In a specific implementation, when the in-vehicle camera device recognizes that the user joint in its own camera area is a wrist joint, it can be considered that the user's hand is at the wrist joint position, so the wrist joint position is used as the current position of the user's hand.
[0115] Acquire a camera area of the in-vehicle camera device, determine a first moving direction of the user's hand based on the camera area and the current position, generate and output prompt information including the first moving direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first moving direction.
[0116] Step 505 , determining whether the shoulder joint and the elbow joint are recognized in the camera area by the in-vehicle camera device; if so, proceed to step 506 , if not, proceed to step 502 .
[0117] Step 506, reminding the user to move to the camera area according to the elbow joint and the shoulder joint.
[0118] In a specific implementation, when the user joints recognized by the in-vehicle camera device in its own camera area are shoulder joints and elbow joints, a first distance between the shoulder joints and the elbow joints is determined.
[0119] A preset ratio is obtained, where the ratio is a predetermined ratio of a second distance between the wrist joint and the elbow joint to a first distance between the elbow joint and the shoulder joint, that is, a ratio of an upper arm to a forearm of a human body.
[0120] According to the preset ratio and the determined first distance between the shoulder joint and the elbow joint, the second distance between the wrist joint and the elbow joint can be calculated. On the extension line of the shoulder joint and the elbow joint, the target position at the second distance from the elbow joint is determined to be the position of the user's hand.
[0121] Acquire a camera area of the in-vehicle camera device, determine a first moving direction of the user's hand based on the camera area and the current position, generate and output prompt information including the first moving direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first moving direction.
[0122] Step 507: The in-vehicle camera device recognizes the gesture information corresponding to the hand in the camera area, and executes the target function corresponding to the gesture information.
[0123] In a specific implementation, when the in-vehicle camera device recognizes the user's gesture information in its own camera area, it immediately responds to the gesture information and executes the function corresponding to the gesture information.
[0124] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0125] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0126] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an in-vehicle gesture recognition device.
[0127] refer to Figure 6 , Figure 6 The in-vehicle gesture recognition device of the embodiment includes:
[0128] The determination module 601 is configured to determine whether gesture information is recognized;
[0129] The image acquisition module 602 is configured to acquire an image including a joint of the user in response to failure to recognize the gesture information;
[0130] a position determination module 603, configured to determine the current position of the user's hand according to the joint positions of the user's joints contained in the image;
[0131] a prompt module 604, configured to determine a camera area for image acquisition, determine a moving direction of the user's hand according to the camera area and the current position, and generate and output prompt information including the first moving direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first moving direction;
[0132] The gesture recognition module 605 is configured to execute a target function corresponding to the gesture information in response to identifying the gesture information corresponding to the hand in the camera area.
[0133] In some embodiments, the location determination module 603 is specifically configured to:
[0134] In response to the user joints included in the image being a shoulder joint and an elbow joint, acquiring a first distance between the shoulder joint and the elbow joint;
[0135] Obtaining a preset ratio, and determining a second distance between the elbow joint and the wrist joint according to the preset ratio and the first distance;
[0136] Determine that a target position on an extension line of the shoulder joint and the elbow joint that is a second distance from the elbow joint is the current position of the user's hand.
[0137] In some embodiments, the location determination module 603 specifically includes:
[0138] a recognition unit configured to determine a third distance between the shoulder joint and the first position point in response to the user joint contained in the image being a shoulder joint and the image containing a first position point on the user's arm;
[0139] a comparing unit, configured to compare the third distance with a preset distance to obtain a comparison result;
[0140] The position determination unit is configured to determine the position of the elbow joint according to the comparison result, and determine the current position of the user's hand based on the positions of the shoulder joint and the elbow joint.
[0141] In some embodiments, the comparison unit is specifically configured to:
[0142] In response to the comparison result that the third distance is greater than the preset distance, a target position at a preset distance multiple of the shoulder joint is used as the position of the elbow joint; or
[0143] In response to the comparison result that the third distance is less than or equal to the preset distance, the target position of the third distance that is a preset multiple of the shoulder joint is used as the position of the elbow joint.
[0144] In some embodiments, the location determination module 603 is specifically configured to:
[0145] In response to the user joint contained in the image being a wrist joint, the position of the wrist joint is used as the current position of the user's hand.
[0146] In some embodiments, the camera area is an image acquisition area of an in-vehicle camera device, and the device further includes a mobile module, and the mobile module is specifically configured as follows:
[0147] Obtaining a camera area of a camera device inside the vehicle;
[0148] Determine a second moving direction according to the camera area and the current position, and control the in-vehicle camera device to move according to the second moving direction;
[0149] In response to the in-vehicle camera device recognizing gesture information corresponding to the hand in the camera area, a target function corresponding to the gesture information is executed.
[0150] In some embodiments, the device further includes a function execution module, and the function execution module is specifically configured to:
[0151] In response to the gesture information being recognized by the in-vehicle camera device, a target function corresponding to the gesture information is executed.
[0152] In some embodiments, the prompt module 604 is specifically configured to:
[0153] Construct a position coordinate system based on the current position;
[0154] Taking the closest point of the camera area to the current position as a target point, and determining a first position of the target point in the position coordinate system;
[0155] Performing coordinate calculation according to the current position and the first position to determine the relative direction between the camera area and the current position;
[0156] The relative direction is taken as the first moving direction of the user's hand.
[0157] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0158] The device of the above embodiment is used to implement the corresponding in-vehicle gesture recognition method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0159] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the in-vehicle gesture recognition method described in any of the above embodiments is implemented.
[0160] Figure 7 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1050, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1050 are connected to each other through the bus 1050 in the device.
[0161] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0162] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0163] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0164] The communication interface 1050 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0165] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1050 ).
[0166] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1050 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0167] The electronic device of the above embodiment is used to implement the corresponding in-vehicle gesture recognition method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0168] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the in-vehicle gesture recognition method as described in any of the above embodiments.
[0169] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0170] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the in-vehicle gesture recognition method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0171] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a vehicle, including the in-vehicle gesture recognition device in the above-mentioned embodiments, the electronic device in the above-mentioned embodiments, and the computer-readable storage medium in the above-mentioned embodiments, and the vehicle equipment implements the in-vehicle gesture recognition method described in any of the above embodiments.
[0172] The vehicle of the above-mentioned embodiment is used to implement the in-vehicle gesture recognition method described in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0173] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0174] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0175] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0176] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0177] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0178] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0179] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0180] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A method for in-vehicle gesture recognition, It is characterized in that include: Determine whether gesture information is recognized; In response to not recognizing the gesture information, collecting an image including joints of the user; determining a current position of a user's hand according to joint positions of the user's joints contained in the image; Determine a camera area for image acquisition, determine a first moving direction of a user's hand according to the camera area and the current position, generate and output prompt information including the first moving direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first moving direction; In response to identifying gesture information corresponding to the hand in the camera area, executing a target function corresponding to the gesture information.
2. The method according to claim 1, It is characterized in that The determining the current position of the user's hand according to the joint positions of the user's joints contained in the image comprises: In response to the user joints included in the image being a shoulder joint and an elbow joint, acquiring a first distance between the shoulder joint and the elbow joint; Obtaining a preset ratio, and determining a second distance between the elbow joint and the wrist joint according to the preset ratio and the first distance; Determine that a target position on an extension line of the shoulder joint and the elbow joint that is a second distance from the elbow joint is the current position of the user's hand.
3. The method according to claim 1, It is characterized in that The determining the current position of the user's hand according to the joint positions of the user's joints contained in the image comprises: In response to the user joint included in the image being a shoulder joint, and the image including a first position point on the user's arm, determining a third distance between the shoulder joint and the first position point; Comparing the third distance with the preset distance to obtain a comparison result; The position of the elbow joint is determined according to the comparison result, and the current position of the user's hand is determined based on the positions of the shoulder joint and the elbow joint.
4. The method according to claim 3, It is characterized in that Determining the position of the elbow joint according to the comparison result includes: In response to the comparison result that the third distance is greater than the preset distance, a target position at a preset distance multiple of the shoulder joint is used as the position of the elbow joint; or In response to the comparison result that the third distance is less than or equal to the preset distance, the target position of the third distance that is a preset multiple of the shoulder joint is used as the position of the elbow joint.
5. The method according to claim 1, It is characterized in that The determining the current position of the user's hand according to the joint positions of the user's joints contained in the image comprises: In response to the user joint contained in the image being a wrist joint, the position of the wrist joint is used as the current position of the user's hand.
6. The method according to claim 1, It is characterized in that The camera area is the image acquisition area of the camera device inside the vehicle. After determining the current position of the user's hand according to the joint positions of the user's joints contained in the image, the method further includes: Obtaining a camera area of a camera device inside the vehicle; Determine a second moving direction according to the camera area and the current position, and control the in-vehicle camera device to move according to the second moving direction; In response to the in-vehicle camera device recognizing gesture information corresponding to the hand in the camera area, a target function corresponding to the gesture information is executed.
7. The method according to claim 1, It is characterized in that The determining a first moving direction of the user's hand according to the camera area and the current position includes: Construct a position coordinate system based on the current position; Taking the closest point of the camera area to the current position as a target point, and determining a first position of the target point in the position coordinate system; Performing coordinate calculation according to the current position and the first position to determine the relative direction between the camera area and the current position; The relative direction is taken as the first moving direction of the user's hand.
8. An in-vehicle gesture recognition device, It is characterized in that include: A determination module, configured to determine whether gesture information is recognized; An image acquisition module, configured to acquire an image including a user's joints in response to failure to recognize gesture information; a position determination module, configured to determine a current position of a user's hand according to joint positions of the user's joints contained in the image; a prompt module, configured to determine a camera area for image acquisition, determine a moving direction of a user's hand according to the camera area and the current position, and generate and output prompt information including the first moving direction, wherein the prompt information is used to prompt the user to move the hand to the camera area according to the first moving direction; The gesture recognition module is configured to execute a target function corresponding to the gesture information in response to identifying gesture information corresponding to the hand in the camera area.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program.
10. A vehicle, It is characterized in that An electronic device comprising the electronic device described in claim 9.
