Motion recognition device and method and electronic equipment

The key points in the image are identified through the neural network, and the distance between the nose and the shoulder is used to determine the gaze direction of the object, which solves the problem of low gaze direction recognition accuracy in the existing technology and improves the accuracy and computational efficiency of action recognition.

CN118736661APending Publication Date: 2024-10-01FUJITSU LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310332523.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing methods for determining the gaze direction of objects in images have low accuracy and are prone to misjudgment.

Method used

Key points of objects in the image are identified through neural networks, using the first distance between the nose key point and the left shoulder key point, the second distance between the nose key point and the right shoulder key point, and the left shoulder key point and the right shoulder key point. The third distance between points to determine the direction of the subject's gaze.

Benefits of technology

It improves the accuracy of action recognition results and reduces the amount of calculation and the impact of image acquisition angle, object posture and image distortion on the recognition results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736661A_ABST
    Figure CN118736661A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an action recognition device and method and electronic equipment. The method comprises the following steps: carrying out key point identification on an object in an image through a neural network to obtain key points of the object; and determining the gazing direction of the object according to a first distance between a nose key point and a left shoulder key point in the obtained key points, a second distance between the nose key point and a right shoulder key point and a third distance between the left shoulder key point and the right shoulder key point. Therefore, the accuracy of the action recognition result can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology. Background Art

[0002] With the continuous development of computer technology, key point-based action recognition has been widely used in the fields of intelligent monitoring, motion analysis, human-computer interaction, etc. For example, for an image of a vehicle driver acquired by an image acquisition device, the driver's gaze direction can be determined based on the driver's body key points in the image, so that the driver's driving plan or whether the driver's action complies with the action specification can be confirmed based on the gaze direction, which is helpful for safe production and operation and maintenance.

[0003] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present application and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because these solutions are described in the background technology part of the present application. Summary of the invention

[0004] However, the inventors have found that the current method for determining the gaze direction of an object in an image has certain limitations, for example, the recognition result of the gaze direction is low in accuracy and prone to misjudgment.

[0005] In response to at least one of the above technical problems, the embodiments of the present application provide a motion recognition device and method and an electronic device, in the hope of improving the accuracy of motion recognition results.

[0006] According to one aspect of an embodiment of the present application, there is provided a motion recognition device, including:

[0007] an acquisition unit, which recognizes key points of an object in an image through a neural network to acquire key points of the object; and

[0008] A determination unit determines the gaze direction of the object according to a first distance between a nose key point and a left shoulder key point, a second distance between the nose key point and a right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point among the key points acquired.

[0009] According to another aspect of an embodiment of the present application, there is provided a method for action recognition, comprising:

[0010] Recognize key points of the object in the image by using a neural network to obtain the key points of the object; and

[0011] The gaze direction of the object is determined according to a first distance between a nose key point and a left shoulder key point, a second distance between the nose key point and a right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point.

[0012] According to another aspect of an embodiment of the present application, there is provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the action recognition method as described above.

[0013] One of the beneficial effects of the embodiments of the present application is that by determining the gaze direction of the object by utilizing the first distance between the object's nose key point and the left shoulder key point, the second distance between the nose key point and the right shoulder key point, and the third distance between the left shoulder key point and the right shoulder key point, the accuracy of the action recognition results can be improved.

[0014] With reference to the following description and accompanying drawings, the specific implementation of the embodiment of the present application is disclosed in detail, indicating the way in which the principle of the embodiment of the present application can be adopted. It should be understood that the implementation of the present application is not limited in scope. Within the scope of the spirit and clauses of the attached claims, the implementation of the present application includes many changes, modifications and equivalents. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The included drawings are used to provide a further understanding of the embodiments of the present application, which constitute a part of the specification, are used to illustrate the implementation methods of the present application, and together with the text description, explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other implementation methods can be obtained based on these drawings without creative work. In the drawings:

[0016] Figure 1 is a schematic diagram of the action recognition method according to an embodiment of the present application;

[0017] Figure 2 is a schematic diagram of a deformed image according to an embodiment of the present application;

[0018] Figure 3 is another schematic diagram of a deformed image according to an embodiment of the present application;

[0019] Figure 4 It is a schematic diagram of the key points of the embodiment of the present application;

[0020] Figure 5 is a schematic diagram of the distance of an embodiment of the present application;

[0021] Figure 6is a schematic diagram of the process of step 102 of the embodiment of the present application;

[0022] Figure 7(a) to Figure 8(b) is a schematic diagram of the gaze direction of an embodiment of the present application;

[0023] Fig. 9 is a schematic diagram of a motion recognition device according to an embodiment of the present application;

[0024] Fig.10 It is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] With reference to the accompanying drawings, the foregoing and other features of the embodiments of the present application will become apparent through the following description. In the description and the accompanying drawings, specific embodiments of the present application are specifically disclosed, which show some embodiments in which the principles of the embodiments of the present application can be adopted. It should be understood that the present application is not limited to the described embodiments. On the contrary, the embodiments of the present application include all modifications, variations and equivalents that fall within the scope of the attached claims.

[0026] In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish different elements in terms of title, but do not indicate the spatial arrangement or temporal order of these elements, etc., and these elements should not be limited by these terms. The term "and / or" includes any one and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having", etc. refer to the presence of the stated features, elements, components or components, but do not exclude the presence or addition of one or more other features, elements, components or components.

[0027] In the embodiments of the present application, the singular forms "a", "the", etc. include plural forms and should be broadly understood as "a kind" or "a type" rather than being limited to the meaning of "one"; in addition, the term "said" should be understood to include both singular and plural forms, unless the context clearly indicates otherwise. In addition, the term "according to" should be understood as "at least in part according to...", and the term "based on" should be understood as "at least in part based on...", unless the context clearly indicates otherwise.

[0028] Features described and / or shown for one embodiment may be used in one or more other embodiments in the same or similar manner, combined with features in other embodiments, or replace features in other embodiments. The term "includes / comprising" when used herein refers to the presence of a feature, an entirety, a step, or a component, but does not exclude the presence or addition of one or more other features, entireties, steps, or components.

[0029] In the embodiment of the present application, the object of motion recognition can be a human body of various ages, for example, it can be an elderly person, it can be a child, it can be an elderly person and / or a caregiver, a child and / or a guardian. The present application is not limited to this, and the object of the detection target can be a human body or other animal body with life characteristics, or a machine without life characteristics, etc.

[0030] Embodiments of the first aspect

[0031] The present application provides an action recognition method. Figure 1 is a schematic diagram of the action recognition method of the embodiment of the present application. Figure 1 As shown, the method includes:

[0032] Step 101, identifying key points of an object in an image through a neural network to obtain key points of the object;

[0033] Step 102: Determine the gaze direction of the object according to a first distance between the nose key point and the left shoulder key point, a second distance between the nose key point and the right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point among the acquired key points.

[0034] According to the above embodiment, by using the first distance between the object's nose key point and the left shoulder key point, the second distance between the nose key point and the right shoulder key point, and the third distance between the left shoulder key point and the right shoulder key point to determine the object's gaze direction, the accuracy of the action recognition results can be improved.

[0035] For example, the subject turns his head to look at different directions. For example, when the head is turned to the left side of the trunk, the direction of the gaze is the left side; when the head is turned to the right side of the trunk, the direction of the gaze is the right side, and so on. When the subject turns his head, the positional relationship between the nose key point and the shoulder key point will change accordingly. For example, when the head is turned to the left side of the trunk, the nose key point is closer to the left shoulder key point of the two shoulder key points; when the head is turned to the right side of the trunk, the nose key point is closer to the right shoulder key point of the two shoulder key points. According to the distance between the nose key point and the two shoulder key points, and the distance between the two shoulder key points, the gaze direction can be determined in a simple manner, which reduces the amount of calculation and improves the calculation efficiency. In addition, in the process of determining the gaze direction, not only the distance between the nose key point and the two shoulder key points is considered, but also the distance between the two shoulder key points is considered, which can reduce the influence of the image acquisition angle (such as front or side, etc.) and / or the posture of the object (such as standing or sitting posture) and / or whether the image is distorted (such as a normal image or a deformed image, etc.) on the recognition result.

[0036] It is worth noting that the above Figure 1The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, the execution order of the various operations can be appropriately adjusted, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended Figure 1 Records of.

[0037] In some embodiments, the image may be an image in various forms. For example, the image may be an ordinary image or a deformed image. An ordinary image is, for example, an image without distortion or an image with a distortion amount less than a specified value. For example, the ratio of the distance between any two pixels in the ordinary image and the distance between the objects corresponding to the two pixels may be the same or the difference may be less than a preset deformation threshold.

[0038] The deformed image is, for example, a distorted image or an image whose distortion amount is greater than a predetermined value. Figure 2 and Figure 3 is a schematic diagram of a deformed image of an embodiment of the present application, showing deformed images containing an object acquired from different angles (eg, front and side). Figure 2 and Figure 3 As shown, a first ratio of the distance between two pixels in the deformed image and the distance between the objects corresponding to the two pixels is different from a second ratio of the distance between another two pixels and the distance between the objects corresponding to the other two pixels, or the difference is greater than a preset deformation threshold.

[0039] In some embodiments, Figure 2 and Figure 3 As shown, the deformed image is, for example, a fisheye image. For example, the deformed image is an image of a forklift driver acquired by a fisheye camera mounted in a forklift, and the forklift is, for example, various types of forklifts, such as a counter fork truck or a reach fork truck, etc. The present application is not limited thereto, and the deformed image may also be other images.

[0040] In some embodiments, in step 101, the key points of the object in the normal image or the deformed image can be directly identified by a neural network to obtain the key points of the object. The gaze direction of the object is determined according to the first distance between the identified nose key point and the left shoulder key point, the second distance between the nose key point and the right shoulder key point, and the third distance between the left shoulder key point and the right shoulder key point. Even if the deformed image has a distorted (or deformed) shape of the object, the accuracy of the gaze direction recognition result can be guaranteed.

[0041] In some embodiments, in step 101, key points of objects in the image may be identified by a neural network in various ways. For example, key points may be identified by a neural network using algorithms such as openpose and DeepCut. For specific methods of key point identification, reference may be made to related technologies.

[0042] Figure 4 Schematic diagram of the key points of the embodiment of the present application. In some embodiments, Figure 4 As shown, an object may have one or more key points, each of which corresponds to a body part of the object. For example, the key points of an object may include one or more of the following: neck 0, nose 1, left shoulder 6, right shoulder 7, left hip 12, right hip 13, left eye 2, right eye 3, left elbow 8, right elbow 9, left knee 14, right knee 15, left ear 4, right ear 5, left wrist 10, right wrist 11, left ankle 16, and right ankle 17. The present application is not limited thereto, and the key points of an object may also include other key points in addition to the above 18 key points.

[0043] In some embodiments, in step 102, various gaze directions of the subject may be identified, such as up, down, left, right, front, back, one side of the torso, the other side of the torso, etc. In the following, step 102 is described exemplarily by taking the identification of the left and right gaze directions as an example. It is understood that these contents are also applicable to the identification of other directions.

[0044] Figure 5 is a schematic diagram of the distance of an embodiment of the present application. In some embodiments, Figure 5 As shown, the first distance D1 is the distance between the nose key point 1 and the left shoulder key point 6, the second distance D2 is the distance between the nose key point and the right shoulder key point 7, and the third distance D3 is the distance between the left shoulder key point 6 and the right shoulder key point 7. Figure 5 The first distance D1, the second distance D2, and the third distance D3 in the image of the front of the object, as well as the fourth distance D4 and the fifth distance D5 described later, are only exemplarily shown. It can be understood that the first distance D1, the second distance D2, and the third distance D3, as well as the fourth distance D4 and the fifth distance D5 described later, can also be the corresponding distances obtained according to the corresponding key points in the image of other angles of the object. That is, the present application does not limit the angle, position, or method of obtaining the image of the object.

[0045] In some embodiments, in step 102 , the gaze direction of the object may be determined according to the first distance D1 , the second distance D2 , and the third distance D3 . Figure 6 FIG. 1 is a schematic diagram of the process of step 102 of the embodiment of the present application. Figure 6 As shown, step 102 may include:

[0046] Step 1021, determining a ratio of a difference between the first distance and the second distance to a third distance; and

[0047] Step 1022: Determine the gaze direction of the object according to the ratio and a preset threshold.

[0048] By determining the gaze direction of the object based on the ratio of the difference between the first distance and the second distance to the third distance, the influence of the image acquisition angle and / or the posture of the object and / or whether the image is distorted on the recognition result can be further reduced, and the accuracy of the gaze direction can be further improved.

[0049] In some embodiments, the ratio σ of the difference between the first distance D1 and the second distance D2 to the third distance D3 can be the ratio σ1 of the result of subtracting the second distance D2 from the first distance D1 to the third distance D3, or the ratio σ2 of the result of subtracting the first distance D1 from the second distance D2 to the third distance D3.

[0050] In some embodiments, when the ratio σ is the ratio σ1 of the result of subtracting the second distance D2 from the first distance D1 to the third distance D3: the preset threshold may include a first threshold and a second threshold, and when the ratio σ is less than the first threshold, the object's gaze direction is to the left; when the ratio σ is greater than the second threshold, the object's gaze direction is to the right, wherein the first threshold may be less than or equal to the second threshold. For example, the first threshold and the second threshold may be 0; or the first threshold may be a negative value, the second threshold may be a positive value, and so on.

[0051] In some embodiments, when the ratio σ is the ratio σ2 of the result of subtracting the first distance D1 from the second distance D2 to the third distance D3: the preset threshold may include a third threshold and a fourth threshold, and when the ratio σ is less than the third threshold, the object's gaze direction is to the right; when the ratio σ is greater than the fourth threshold, the object's gaze direction is to the left, wherein the third threshold may be less than or equal to the fourth threshold. For example, the third threshold and the fourth threshold may be 0; or the third threshold may be a negative value, the fourth threshold may be a positive value, and so on.

[0052] In some embodiments, the third threshold value may be the same as the first threshold value, and / or the fourth threshold value may be the same as the second threshold value. Thus, the determination of the gaze direction can be simplified. The present application is not limited thereto, and the third threshold value may also be different from the first threshold value, and / or the fourth threshold value may also be different from the second threshold value. Thus, the preset threshold value can be flexibly set.

[0053] Figure 7(a) to Figure 8(b)7(a) and 7(b) respectively show the situations in which the driver of a counter fork truck looks at the right side and the left side in the fisheye image of the driver, and FIG8(a) and FIG8(b) respectively show the situations in which the driver of a reach fork truck looks at the right side and the left side in the fisheye image of the driver.

[0054] In some embodiments, the first threshold and / or the third threshold and / or the second threshold and / or the fourth threshold may be adjusted according to the accuracy requirement of the recognition result. For example, when the accuracy requirement is high, the first threshold and / or the third threshold may be set to a smaller value, and the second threshold and / or the fourth threshold may be set to a larger value.

[0055] In some embodiments, in step 102, Figure 5 As shown, when the key points of the object include the neck key point 0, the correction amount δ can be determined according to the fourth distance D4 between the neck key point 0 and the left shoulder key point 6 and the fifth distance D5 between the neck key point 0 and the right shoulder key point 7, the ratio is corrected according to the correction amount δ, and the gaze direction of the object is determined according to the corrected ratio and the preset threshold. In this way, the accuracy of the gaze direction can be further improved.

[0056] In some embodiments, the correction amount is, for example, a ratio of a difference between the fourth distance D4 and the fifth distance D5 to the third distance D3. For ease of description, the ratio of the difference between the first distance D1 and the second distance D2 to the third distance D3 is referred to as a first ratio, the ratio of the difference between the fourth distance D4 and the fifth distance D5 to the third distance D3 is referred to as a second ratio, and the corrected ratio is referred to as a third ratio.

[0057] For example, when the first ratio is the ratio of the result of subtracting the first distance D1 from the second distance D2 to the third distance D3, the correction amount δ (second ratio) can be the ratio of the result of subtracting the fifth distance D5 from the fourth distance D4 to the third distance D3, and the corrected ratio (third ratio) is the sum of the first ratio and the second ratio.

[0058] In the case where the first ratio is the ratio of the result of subtracting the second distance D2 from the first distance D1 to the third distance D3, the correction amount δ (second ratio) may be the ratio of the result of subtracting the fourth distance D4 from the fifth distance D5 to the third distance D3, and the corrected ratio (third ratio) is the sum of the first ratio and the second ratio. The present application is not limited thereto, and the ratio may also be adjusted in other ways.

[0059] In some embodiments, in step 102, the gaze direction may be determined if a preset condition is met. The preset condition may include: the number of key points of the object acquired in step 101 is greater than a preset value, and the key points of the object acquired include a left shoulder key point, a right shoulder key point, and a nose key point. Since the number of key points of the object acquired is greater than the preset value, it means that more key points are obtained, and the reliability of the acquired key points is relatively high. Therefore, when the gaze direction of the object is determined based on these key points, the accuracy of the recognition result can be guaranteed.

[0060] In some embodiments, the preset value may be an integer greater than or equal to 3 and less than or equal to the maximum value of the number of key points of the object (e.g., 18, etc.). For example, when the number of key points is 18, the preset value may be 10. The present application is not limited thereto, and the preset condition may not limit the number of key points obtained.

[0061] In some embodiments, when the image is a deformed image, the distortion of the deformed image may also be corrected. For example, the ratio of the distance between any two pixels in the deformed image and the distance between the objects corresponding to the two pixels is made the same or the difference is less than a preset deformation threshold. In this way, the accuracy of the recognition result of the gaze direction of the object in the deformed image can be further improved.

[0062] In some embodiments, Figure 1 As shown, the method may also include:

[0063] Step 103: Correct the distortion of the deformed image to generate a corrected image.

[0064] In step 101, key points of the object in the corrected image may be identified to obtain the key points of the object.

[0065] In some embodiments, in step 103, the distortion of the deformed image may be corrected in various ways. For example, the deformed image may be corrected by latitude and longitude mapping, bilinear interpolation, etc. For specific ways to correct the deformed image, reference may be made to related technologies.

[0066] The above only describes the steps or processes related to the present application, but the present application is not limited thereto. The action recognition method may also include other steps or processes. For the specific content of these steps or processes, reference may be made to the prior art. In addition, the above only uses some structures of the action recognition model as examples to exemplify the embodiments of the present application, but the present application is not limited to these structures, and these structures may also be appropriately modified, and the implementation methods of these modifications should all be included within the scope of the embodiments of the present application.

[0067] The above embodiments are merely exemplary of the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may be made based on the above embodiments. For example, the above embodiments may be used alone, or one or more of the above embodiments may be combined.

[0068] It can be seen from the above embodiments that, according to the above embodiments, by utilizing the first distance between the object's nose key point and the left shoulder key point, the second distance between the nose key point and the right shoulder key point, and the third distance between the left shoulder key point and the right shoulder key point to determine the object's gaze direction, the accuracy of the action recognition results can be improved.

[0069] For example, the subject turns his head to look at different directions. For example, when the head is turned to the left side of the trunk, the direction of the gaze is the left side; when the head is turned to the right side of the trunk, the direction of the gaze is the right side, and so on. When the subject turns his head, the positional relationship between the nose key point and the shoulder key point will change accordingly. For example, when the head is turned to the left side of the trunk, the nose key point is closer to the left shoulder key point of the two shoulder key points; when the head is turned to the right side of the trunk, the nose key point is closer to the right shoulder key point of the two shoulder key points. According to the distance between the nose key point and the two shoulder key points, and the distance between the two shoulder key points, the gaze direction can be determined in a simple manner, which reduces the amount of calculation and improves the calculation efficiency. In addition, in the process of determining the gaze direction, not only the distance between the nose key point and the two shoulder key points is considered, but also the distance between the two shoulder key points is considered, which can reduce the influence of the image acquisition angle (such as front or side, etc.) and / or the posture of the object (such as standing or sitting posture) and / or whether the image is distorted (such as a normal image or a deformed image, etc.) on the recognition result.

[0070] Embodiments of the second aspect

[0071] The present application provides a motion recognition device, and the contents that are the same as those of the embodiment of the first aspect are not repeated here.

[0072] Fig. 9 is a schematic diagram of a motion recognition device according to an embodiment of the present application. Fig. 9 As shown, the motion recognition device 900 includes:

[0073] An acquisition unit 901, which recognizes key points of an object in an image through a neural network to acquire key points of the object; and

[0074] A determination unit 902 determines the gaze direction of the object according to a first distance between a nose key point and a left shoulder key point, a second distance between the nose key point and a right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point among the key points acquired.

[0075] In some embodiments, the determination unit 902 determines the ratio of the difference between the first distance and the second distance to the third distance based on the first distance, the second distance and the third distance, and determines the gaze direction of the object based on the ratio and a preset threshold.

[0076] In some embodiments, when the ratio is the ratio of the result of subtracting the second distance from the first distance to the third distance:

[0077] When the ratio is less than a first threshold, the object's gaze direction is to the left; when the ratio is greater than a second threshold, the object's gaze direction is to the right, wherein the first threshold is less than or equal to the second threshold.

[0078] In some embodiments, when the ratio is the ratio of the result of subtracting the first distance from the second distance to the third distance:

[0079] When the ratio is less than a third threshold, the object's gaze direction is to the right; when the ratio is greater than a fourth threshold, the object's gaze direction is to the left, wherein the third threshold is less than or equal to the fourth threshold.

[0080] In some embodiments, when the key points of the object include a neck key point, the determination unit determines a correction amount based on a fourth distance between the neck key point and the left shoulder key point and a fifth distance between the neck key point and the right shoulder key point, corrects the ratio based on the correction amount, and determines the gaze direction of the object based on the corrected ratio and the preset threshold.

[0081] In some embodiments, the correction amount includes:

[0082] A ratio of a difference between the fourth distance and the fifth distance to the third distance.

[0083] In some embodiments, when a preset condition is met, the determining unit 902 determines the gaze direction.

[0084] The preset condition includes: the number of key points of the object obtained is greater than a preset value, and the key points of the object include a left shoulder key point, a right shoulder key point and a nose key point.

[0085] In some embodiments, the image is a deformed image, such as Fig. 9 As shown, the device 900 may further include:

[0086] a correction unit 903, which corrects the distortion of the deformed image to generate a corrected image,

[0087] The acquisition unit 901 performs key point recognition on the object in the corrected image to acquire the key points of the object.

[0088] It is worth noting that the above only describes the components or modules related to the present application, but the present application is not limited thereto. The motion recognition device 900 may also include other components or modules, and the specific contents of these components or modules may refer to the relevant technology.

[0089] To keep it simple, Fig. 9 The connection relationship or signal direction between various components or modules is only exemplified, but it should be clear to those skilled in the art that various related technologies such as bus connection can be used. The above-mentioned components or modules can be implemented by hardware facilities such as processors and memories; the embodiments of the present application are not limited to this.

[0090] The above embodiments are merely exemplary of the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may be made based on the above embodiments. For example, the above embodiments may be used alone, or one or more of the above embodiments may be combined.

[0091] It can be seen from the above embodiments that, according to the above embodiments, by utilizing the first distance between the object's nose key point and the left shoulder key point, the second distance between the nose key point and the right shoulder key point, and the third distance between the left shoulder key point and the right shoulder key point to determine the object's gaze direction, the accuracy of the action recognition results can be improved.

[0092] For example, the subject turns his head to look at different directions. For example, when the head is turned to the left side of the trunk, the direction of the gaze is the left side; when the head is turned to the right side of the trunk, the direction of the gaze is the right side, and so on. When the subject turns his head, the positional relationship between the nose key point and the shoulder key point will change accordingly. For example, when the head is turned to the left side of the trunk, the nose key point is closer to the left shoulder key point of the two shoulder key points; when the head is turned to the right side of the trunk, the nose key point is closer to the right shoulder key point of the two shoulder key points. According to the distance between the nose key point and the two shoulder key points, and the distance between the two shoulder key points, the gaze direction can be determined in a simple manner, which reduces the amount of calculation and improves the calculation efficiency. In addition, in the process of determining the gaze direction, not only the distance between the nose key point and the two shoulder key points is considered, but also the distance between the two shoulder key points is considered, which can reduce the influence of the image acquisition angle (such as front or side, etc.) and / or the posture of the object (such as standing or sitting posture) and / or whether the image is distorted (such as a normal image or a deformed image, etc.) on the recognition result.

[0093] Embodiments of the third aspect

[0094] The present application provides an electronic device, including the motion recognition device 900 as described in the embodiment of the second aspect, the content of which is incorporated herein. The electronic device can be, for example, a computer, a server, a workstation, a laptop computer, a smart phone, etc.; but the embodiments of the present application are not limited thereto.

[0095] Fig.10 Schematic diagram of an electronic device according to an embodiment of the present application. Fig.10 As shown, the electronic device 1000 may include: a processor (such as a central processing unit CPU) 1010 and a memory 1020; the memory 1020 is coupled to the central processing unit 1010. The memory 1020 can store various data; in addition, it also stores information processing programs and executes the programs under the control of the processor 1010.

[0096] In some embodiments, the functions of the motion recognition apparatus 1000 are integrated into the processor 1010. The processor 1010 is configured to implement the motion recognition method as described in the embodiment of the first aspect.

[0097] In some embodiments, the motion recognition device 1000 is configured separately from the processor 1010 . For example, the motion recognition device 1000 can be configured as a chip connected to the processor 1010 , and the functions of the motion recognition device 1000 are realized through the control of the processor 1010 .

[0098] For example, processor 1010 is configured to perform the following control: identify key points of an object in an image through a neural network to obtain the key points of the object; and determine the gaze direction of the object based on a first distance between a nose key point and a left shoulder key point, a second distance between the nose key point and a right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point.

[0099] In addition, if Fig.10 As shown, the electronic device 1000 may also include: an input / output (I / O) device 1030 and a display 1040, etc.; wherein the functions of the above components are similar to those of the prior art and are not described in detail here. It is worth noting that the electronic device 1000 does not necessarily have to include Fig.10 In addition, the electronic device 800 may also include Fig.10 For components not shown in the figure, reference may be made to the related art.

[0100] An embodiment of the present application also provides a computer-readable program, wherein when the program is executed in an electronic device, the program enables a computer to execute the action recognition method as described in the embodiment of the first aspect in the electronic device.

[0101] An embodiment of the present application also provides a storage medium storing a computer-readable program, wherein the computer-readable program enables a computer to execute the action recognition method as described in the embodiment of the first aspect in an electronic device.

[0102] The above devices and methods of the present application can be implemented by hardware, or by hardware combined with software. The present application relates to such a computer-readable program, which, when executed by a logic component, enables the logic component to implement the above-mentioned devices or components, or enables the logic component to implement the various methods or steps described above. The present application also relates to a storage medium for storing the above program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, etc.

[0103] The method / device described in conjunction with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams shown in the figure and / or one or more combinations of the functional block diagrams may correspond to various software modules of the computer program flow or to various hardware modules. These software modules may correspond to the various steps shown in the figure, respectively. These hardware modules may be implemented by solidifying these software modules, for example, using a field programmable gate array (FPGA).

[0104] The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The software module may be stored in a memory of a mobile terminal or in a memory card that can be inserted into the mobile terminal. For example, if a device (such as a mobile terminal) uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large-capacity flash memory device.

[0105] For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can be implemented as a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof for performing the functions described in the present application. For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in communication with a DSP, or any other such configuration.

[0106] The present application is described above in conjunction with specific implementation methods, but it should be clear to those skilled in the art that these descriptions are exemplary and are not intended to limit the scope of protection of the present application. Those skilled in the art can make various modifications and variations to the present application based on the principles of the present application, and these modifications and variations are also within the scope of the present application.

[0107] Regarding the implementation methods including the above embodiments, the following additional notes are also disclosed:

[0108] Note 1. A method for motion recognition, wherein the method comprises:

[0109] Recognize key points of the object in the image by using a neural network to obtain the key points of the object; and

[0110] The gaze direction of the object is determined according to a first distance between a nose key point and a left shoulder key point, a second distance between the nose key point and a right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point.

[0111] Note 2. The method according to Note 1, wherein the gaze direction of the object is determined according to the first distance between the nose key point and the left shoulder key point, the second distance between the nose key point and the right shoulder key point, and the third distance between the left shoulder key point and the right shoulder key point, including:

[0112] Determining a ratio of a difference between the first distance and the second distance to the third distance based on the first distance, the second distance, and the third distance; and

[0113] The gaze direction of the object is determined according to the ratio and a preset threshold.

[0114] Note 3. The method according to Note 2, wherein:

[0115] In a case where the ratio is the ratio of the result of subtracting the second distance from the first distance to the third distance:

[0116] When the ratio is less than a first threshold, the object's gaze direction is to the left; when the ratio is greater than a second threshold, the object's gaze direction is to the right, wherein the first threshold is less than or equal to the second threshold.

[0117] Note 4. The method according to Note 2, wherein:

[0118] In a case where the ratio is the ratio of a result of subtracting the first distance from the second distance to the third distance:

[0119] When the ratio is less than a third threshold, the object's gaze direction is to the right; when the ratio is greater than a fourth threshold, the object's gaze direction is to the left, wherein the third threshold is less than or equal to the fourth threshold.

[0120] Note 5. The method according to Note 2, wherein:

[0121] In the case where the key points of the object include a neck key point, the determination unit determines a correction amount based on a fourth distance between the neck key point and the left shoulder key point and a fifth distance between the neck key point and the right shoulder key point, corrects the ratio based on the correction amount, and determines the gaze direction of the object based on the corrected ratio and the preset threshold.

[0122] Note 6. The method according to Note 5, wherein the correction amount comprises:

[0123] A ratio of a difference between the fourth distance and the fifth distance to the third distance.

[0124] Note 7. The method according to Note 1, wherein:

[0125] When a preset condition is met, the determining unit determines the gaze direction.

[0126] The preset condition includes: the number of key points of the object obtained is greater than a preset value, and the key points of the object include the left shoulder key point, the right shoulder key point and the nose key point.

[0127] Supplement 8. The method according to Supplement 1, wherein the image is a deformed image, and the method further comprises:

[0128] The distortion of the deformed image is corrected to generate a corrected image.

[0129] Note 9. A storage medium storing a computer-readable program, wherein the computer-readable program enables a computer to execute the motion recognition method as described in any one of Notes 1 to 8 in an electronic device.

Claims

1. A motion recognition device, characterized in that: The device comprises: an acquisition unit, which recognizes key points of an object in an image through a neural network to acquire key points of the object; and A determination unit determines the gaze direction of the object according to a first distance between a nose key point and a left shoulder key point, a second distance between the nose key point and a right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point among the key points acquired.

2. The device according to claim 1, characterized in that The determination unit determines a ratio of a difference between the first distance and the second distance to the third distance according to the first distance, the second distance and the third distance, and determines a gaze direction of the object according to the ratio and a preset threshold.

3. The device according to claim 2, characterized in that In a case where the ratio is the ratio of the result of subtracting the second distance from the first distance to the third distance: When the ratio is less than a first threshold, the object's gaze direction is to the left; when the ratio is greater than a second threshold, the object's gaze direction is to the right, wherein the first threshold is less than or equal to the second threshold.

4. The device according to claim 2, characterized in that In a case where the ratio is the ratio of a result of subtracting the first distance from the second distance to the third distance: When the ratio is less than a third threshold, the object's gaze direction is to the right; when the ratio is greater than a fourth threshold, the object's gaze direction is to the left, wherein the third threshold is less than or equal to the fourth threshold.

5. The device according to claim 2, characterized in that In the case where the key points of the object include a neck key point, the determination unit determines a correction amount based on a fourth distance between the neck key point and the left shoulder key point and a fifth distance between the neck key point and the right shoulder key point, corrects the ratio based on the correction amount, and determines the gaze direction of the object based on the corrected ratio and the preset threshold.

6. The device according to claim 5, characterized in that The correction amount includes a ratio of a difference between the fourth distance and the fifth distance to the third distance.

7. The device according to claim 1, characterized in that When a preset condition is met, the determining unit determines the gaze direction. The preset condition includes: the number of key points of the object obtained is greater than a preset value, and the key points of the object include the left shoulder key point, the right shoulder key point and the nose key point.

8. The device according to claim 1, characterized in that The image is a deformed image, and the device further includes: a correction unit, which corrects the distortion of the deformed image to generate a corrected image, The acquisition unit performs key point recognition on the object in the corrected image to acquire the key points of the object.

9. A method for motion recognition, characterized in that: The method comprises: Recognize key points of the object in the image by using a neural network to obtain the key points of the object; and The gaze direction of the object is determined according to a first distance between a nose key point and a left shoulder key point, a second distance between the nose key point and a right shoulder key point, and a third distance between the left shoulder key point and the right shoulder key point.

10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: The processor is configured to execute the computer program to implement the action recognition method according to claim 9.

Citation Information

Patent Citations

  • Examinee return plagiarism cheating detection method based on deep convolutional neural network model

    CN110135282A

  • Long-distance sight line estimation method and device based on human skeleton key points

    CN114005167A

  • Attitude detection method and device, electronic equipment and storage medium

    CN114241604A

  • Inward / outward vehicle monitoring for remote reporting and in-cab warning enhancements

    US20210394775A1