Motion recognition device, method, and electronic apparatus

The motion recognition apparatus and method improve the accuracy of viewing direction determination by using neural networks to calculate distances between key points on an object, addressing the low accuracy and misjudgments of conventional methods.

JP2024144286APending Publication Date: 2024-10-11FUJITSU LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024048157
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-25
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Conventional methods for determining the viewing direction of an object in an image suffer from low accuracy and misjudgments.

Method used

A motion recognition apparatus and method that utilizes a neural network to identify key points on an object, such as the nose and shoulder key points, to calculate distances and determine the viewing direction based on these distances, considering image distortion and pose, thereby improving accuracy.

Benefits of technology

Enhances the accuracy of motion recognition results by simplifying calculations and reducing the influence of image distortion and pose on the determination of viewing direction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024144286000001_ABST
    Figure 2024144286000001_ABST
Patent Text Reader

Abstract

To provide a motion recognition device, a method, and an electronic apparatus.SOLUTION: A motion recognition method includes: recognizing key points of an object in an image via a neural network and acquiring the key points of the object; and determining the direction of the object based on an angle between a first connection line between the left shoulder key point and the right shoulder key point and a second connection line between the elbow key point and the wrist key point out of the acquired key points, in which the elbow key point and the wrist key point exist in the identical side.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the technical field of image processing. [Background technology]

[0002] With the continuous development of computer technology, behavior recognition (identification) based on key points has been widely used in fields such as intelligent monitoring, behavior analysis, and human-computer interaction. For example, for an image of a driver of a means of transportation (e.g., a vehicle) captured by an image capture device, the driver's gaze direction (direction of gaze (gaze)) can be determined based on the driver's human body key points in the image, and based on the gaze direction, the driver's driving plan or whether the driver's behavior complies with the behavior standard (specification) can be confirmed. This is advantageous for safe production and operation maintenance.

[0003] It should be noted that the introduction of the above background art is intended to clearly and completely explain the technical solutions of the present invention, and to facilitate understanding thereof by those skilled in the art, and these technical solutions are described in the background art of the present invention, and therefore should not be construed as being known to those skilled in the art. Summary of the Invention [Problem to be solved by the invention]

[0004] However, the inventors have found that the conventional methods for determining the gaze direction of an object in an image have certain limitations, such as low accuracy of gaze direction recognition results and high probability of misjudgment.

[0005] In view of at least one of the above problems, an object of the present invention is to provide an apparatus, method, and electronic device for action recognition that can improve the accuracy of action recognition results. [Means for solving the problem]

[0006] According to one aspect of an embodiment of the present invention, there is provided a motion recognition device, the motion recognition device comprising: an acquisition unit for recognizing key points of an object in an image by its neural network and acquiring the key points of the object; and a determining unit for determining a 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 among the acquired key points.

[0007] According to another aspect of an embodiment of the present invention, there is provided an action recognition method, the action recognition method comprising: Recognizing key points of an object in an image by a neural network and obtaining key points of the object; and determining a 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 among the acquired key points.

[0008] According to yet another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory device; and a processor connected to the memory device, the memory device storing a computer program, the processor configured to execute the computer program to realize the above-mentioned action recognition method. Effect of the Invention

[0009] By determining the gaze direction of the subject using a first distance between the nose keypoint and the left shoulder keypoint, a second distance between the nose keypoint and the right shoulder keypoint, and a third distance between the left shoulder keypoint and the right shoulder keypoint of the subject, the accuracy (precision) of the action recognition results can be improved. [Brief description of the drawings]

[0010] [Figure 1] FIG. 2 is a diagram illustrating a method for recognizing an action according to an embodiment of the present invention. [Diagram 2] FIG. 13 is a diagram showing a deformed image in the embodiment of the present invention. [Diagram 3] FIG. 13 is a diagram showing another deformed image in the embodiment of the present invention. [Figure 4] FIG. 2 is a diagram showing key points in an embodiment of the present invention. [Diagram 5] FIG. 13 is a diagram showing distances in an embodiment of the present invention. [Figure 6] FIG. 4 is a diagram showing a flow of step 102 in the embodiment of the present invention. [Figure 7A] FIG. 2 is a diagram showing a line of sight direction in an embodiment of the present invention. [Figure 7B] FIG. 2 is a diagram showing a line of sight direction in an embodiment of the present invention. [Figure 8A] FIG. 2 is a diagram showing a line of sight direction in an embodiment of the present invention. [Figure 8B] FIG. 2 is a diagram showing a line of sight direction in an embodiment of the present invention. [Figure 9] FIG. 1 illustrates an action recognition device according to an embodiment of the present invention. [Figure 10] 1 is a diagram showing an electronic device according to an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] The above and other features of the present invention will become apparent from the following detailed description and the accompanying drawings, in which: While the specification and drawings disclose certain embodiments of the present invention, these are illustrative of only some of the embodiments which may employ the principles of the present invention, and it is to be understood that the present invention is not limited to the described embodiments, but rather includes all modifications, variations and alternatives which fall within the scope of the appended claims.

[0012] In an embodiment of the present invention, the target of the action recognition may be a human body of various ages, for example, an elderly person, a child, an elderly person and / or a caregiver, a child and / or a guardian, etc. However, the present invention is not limited thereto, and the target as the detection target may be a human body or other animal body having a vital sign, or may be a device not having a vital sign.

[0013] Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[0014] <Example of the first aspect> The present invention provides a method for recognizing actions, and Fig. 1 illustrates a method for recognizing actions in an embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:

[0015] Step 101: Recognizing keypoints of an object in an image using a neural network, and obtaining keypoints of the object; and Step 102: Determine the gaze direction of the object based on 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.

[0016] According to the above embodiment, 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 are used to determine the gaze direction of the target, thereby improving the accuracy (precision) of the action recognition result.

[0017] For example, a subject watches in different directions by turning his / her head. For example, when the head is turned to the left side of the body, the gaze direction is to the left, and when the head is turned to the right side of the body, the gaze direction is to the right. When the subject turns his / her head, the positional relationship between the nose keypoint and the shoulder keypoint may change accordingly. For example, when the head is turned to the left side of the body, the nose keypoint is closer to the left shoulder keypoint of the two shoulder keypoints, and when the head is turned to the right side of the body, the nose keypoint is closer to the right shoulder keypoint of the two shoulder keypoints. Based on the distance between the nose keypoint and the two shoulder keypoints and the distance between the two shoulder keypoints, the gaze direction can be determined in a simple manner. This can reduce the amount of calculation and improve the calculation efficiency. In addition, in the process of determining the gaze direction, not only the distance between the nose keypoint and the two shoulder keypoints but also the distance between the two shoulder keypoints are taken into account, which reduces the influence on the recognition results of factors such as the image acquisition angle (e.g., front, side, etc.) and / or the subject's posture (e.g., standing, sitting, etc.) and / or whether distortion has occurred in the image (e.g., normal image or deformed image, etc.).

[0018] Note that, although the above-mentioned FIG. 1 is for explaining an embodiment of the present invention, the present invention is not limited thereto. For example, the execution order between each operation (step) can be adjusted, or some operations can be added or removed. Those skilled in the art can make appropriate modifications based on the above-mentioned contents without being limited to the description of the above-mentioned FIG. 1.

[0019] In some embodiments, the image may be of various types. For example, the image may be a normal image or a deformed image. A normal image is, for example, an image without distortion or an image with a distortion amount smaller than a predetermined value. For example, the ratio of the distance between any two pixel points in the normal image to the distance between the objects corresponding to the two pixel points may be the same, or the difference between the two may be smaller than a predetermined deformation threshold.

[0020] For example, the deformed image is an image with distortion or an image with a distortion amount larger than a predetermined value. Figures 2 and 3 are diagrams showing deformed images in an embodiment of the present invention, each showing a deformed image including an object acquired from a different angle (e.g., front, side, etc.). As shown in Figures 2 and 3, a first ratio between a distance between two pixel points and a distance between an object corresponding to the two pixel points in the deformed image is different from a second ratio between a distance between other two pixel points and a distance between an object corresponding to the other two pixel points, or the difference between the two is larger than a predetermined deformation threshold.

[0021] In some embodiments, the deformed image is, for example, a fisheye image, as shown in Figures 2 and 3. For example, the deformed image is an image of a forklift driver captured using a fisheye camera mounted on a forklift, and the forklift may be, for example, a counter forklift truck or a reach forklift truck. However, the present invention is not limited thereto, and the deformed image may be other images.

[0022] In some embodiments, in step 101, keypoints of the target can be obtained by directly performing keypoint recognition on the target in the normal image or the deformed image using a neural network. By recognizing the gaze direction of the target based on the recognized first distance between the nose keypoint and the left shoulder keypoint, the second distance between the nose keypoint and the right shoulder keypoint, and the third distance between the left shoulder keypoint and the right shoulder keypoint, the accuracy of the gaze direction recognition result can be ensured even for a deformed image in which the shape of the target is distorted (or deformed).

[0023] In some embodiments, in step 101, the neural network can recognize key points of the object in the image in various ways. For example, the neural network can use algorithms such as openpose and DeepCut to recognize the key points. For specific methods of key point recognition, see the related art.

[0024] FIG. 4 is a diagram illustrating key points in an embodiment of the present invention. In some embodiments, as shown in FIG. 4, an object may have one or more key points, each of which corresponds to a part of the object's body. For example, the object's key points 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. However, the present invention is not limited thereto, and the object's key points may include other key points besides the above 18 key points.

[0025] In some embodiments, step 102 can recognize various gaze directions of the object, such as up, down, left, right, front, back, one side of the body, the other side of the body, etc. Step 102 will be described below by taking the recognition of the left and right gaze directions as an example. It should be understood that these contents can be applied to the recognition of other directions as well.

[0026] FIG. 5 is a diagram illustrating distances in an embodiment of the present invention. In some embodiments, as shown in FIG. 5, 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. In FIG. 5, only the first distance D1, the second distance D2, and the third distance D3 in the image of the front of the object, and the fourth distance D4 and the fifth distance D5 described below are shown. It should be understood that the first distance D1, the second distance D2, and the third distance D3, and the fourth distance D4 and the fifth distance D5 described below may be corresponding distances obtained based on corresponding key points in images of the object at other angles. That is, the present invention is not limited by the angle, position, or manner of obtaining the image of the object.

[0027] In some embodiments, in step 102, the gaze direction of the object can be determined based on the first distance D1, the second distance D2, and the third distance D3. Figure 6 is a diagram showing a flow of step 102 in an embodiment of the present invention. As shown in Figure 6, step 102 may include the following steps:

[0028] Step 1021: determining a ratio of a difference between the first distance and the second distance to a third distance; and Step 1022: Determine the gaze direction of the subject based on the ratio and a predefined threshold.

[0029] By determining the gaze direction of the target 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 target posture and / or the occurrence of image distortion on the recognition result can be further reduced, and therefore the accuracy of the gaze direction can be further improved.

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

[0031] In some embodiments, when the ratio σ is a ratio σ1 between a result of subtracting the second distance D2 from the first distance D1 and a third distance D3, the predetermined threshold may include a first threshold and a second threshold, when the ratio σ is smaller than the first threshold, the gaze direction of the target is leftward, when the ratio σ is larger than the second threshold, the gaze direction of the target is rightward, where 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, and the second threshold may be a positive value.

[0032] In some embodiments, when the ratio σ is a ratio σ2 between a result of subtracting the first distance D1 from the second distance D2 and a third distance D3, the predetermined threshold may include a third threshold and a fourth threshold, when the ratio σ is smaller than the third threshold, the gaze direction of the target is to the right, when the ratio σ is larger than the fourth threshold, the gaze direction of the target is to the left, where the third threshold may be equal to or smaller than the fourth threshold. For example, the third threshold and the fourth threshold may be 0, or the third threshold may be a negative value, and the fourth threshold may be a positive value.

[0033] 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, thereby simplifying the determination of the gaze direction. However, the present invention is not limited thereto, and the third threshold value may be different from the first threshold value, and / or the fourth threshold value may be different from the second threshold value, thereby allowing the predetermined threshold value to be flexibly set.

[0034] 7A to 8B are diagrams showing the gaze directions in an embodiment of the present invention, in which Fig. 7A and Fig. 7B show a counter fork truck driver gazing to the right and left sides in a fisheye image including the driver, and Fig. 8A and Fig. 8B show a reach fork truck driver gazing to the right and left sides in a fisheye image including the driver.

[0035] In some embodiments, the first threshold and / or the third threshold and / or the second threshold and / or the fourth threshold can be adjusted based on the accuracy requirement of the recognition result, for example, when the accuracy requirement is high, the first threshold and / or the third threshold can be set to a smaller value and the second threshold and / or the fourth threshold can be set to a larger value.

[0036] In some embodiments, in step 102, as shown in Fig. 5, when the target key points include a neck key point 0, a correction amount δ can be determined based on a fourth distance D4 between the neck key point 0 and the left shoulder key point 6 and a fifth distance D5 between the neck key point 0 and the right shoulder key point 7, the ratio can be corrected based on the correction amount δ, and the gaze direction of the target can be determined based on the corrected ratio and a predetermined threshold value, thereby further improving the accuracy of the gaze direction.

[0037] In some embodiments, the correction amount is, for example, a ratio of the difference between the fourth distance D4 and the fifth distance D5 to the third distance D3. Hereinafter, for convenience, 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.

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

[0039] When the first ratio is the ratio between the result of subtracting the second distance D2 from the first distance D1 and the third distance D3, the correction amount δ (second ratio) may be the ratio between the result of subtracting the fourth distance D4 from the fifth distance D5 and the third distance D3, and the corrected ratio (third ratio) is the sum of the first ratio and the second ratio. Note that the present invention is not limited to these, and the ratio may be adjusted by other methods.

[0040] In some embodiments, in step 102, the gaze direction may be determined if a predetermined condition is satisfied. The predetermined condition may include the following: the number of key points of the target obtained in step 101 is greater than a predetermined value, and the obtained key points of the target include a left shoulder key point, a right shoulder key point, and a nose key point. The number of key points of the target obtained is greater than the predetermined value, which means that a relatively large number of key points have been obtained, and therefore the reliability of the obtained key points is high. Therefore, when the gaze direction of the target is determined based on these key points, the accuracy of the recognition result can be ensured.

[0041] In some embodiments, the predetermined value may be an integer greater than or equal to 3 and less than or equal to a maximum number of target keypoints (e.g., 18). For example, when the number of keypoints is 18, the predetermined value may be 10. However, the present invention is not limited thereto, and the predetermined condition does not need to be limited on the number of obtained keypoints.

[0042] In some embodiments, when the image is a deformed image, the distortion of the deformed image can be corrected, for example, so that the ratio of the distance between any two pixel points in the deformed image to the distance between the object corresponding to the two pixel points is the same, or the difference between the two is smaller than a predetermined deformation threshold, thereby further improving the accuracy of the recognition result of the gaze direction of the object in the deformed image.

[0043] In some embodiments, as shown in FIG. 1, the method may further include the following steps.

[0044] Step 103: The transformed image is rectified to generate a rectified image.

[0045] In step 101, keypoints of an object in the retouched image can be obtained by performing keypoint recognition on the object.

[0046] In some embodiments, in step 103, the distortion of the deformed image can be corrected in various ways. For example, the deformed image can be corrected in a latitude-longitude mapping manner, a bilinear interpolation manner, etc. For specific methods of correcting the deformed image, reference can be made to the related art.

[0047] The above describes only the steps or processes according to the present invention, but the present invention is not limited thereto. The action recognition method may further include other steps or processes, and the specific contents of these steps or processes can be referred to the prior art. In addition, the above describes the embodiments of the present invention by taking several configurations of the action recognition model as examples, but the present invention is not limited to these configurations, and these configurations may be modified appropriately, and all of the implementation methods of these modifications fall within the scope of the embodiments of the present invention.

[0048] In addition, although the above-mentioned embodiments are illustrative of the embodiments of the present invention, the present invention is not limited to these, and furthermore, appropriate modifications can be made based on the above-mentioned embodiments. For example, the above-mentioned embodiments may be used alone, or a combination of two or more of the above-mentioned embodiments may be used.

[0049] As can be seen from the above embodiment, according to the above embodiment, the gaze direction of the target is determined based on the first distance between the target's nose key point and the left shoulder key point, the second distance between the target's nose key point and the right shoulder key point, and the third distance between the target's left shoulder key point and the right shoulder key point, thereby improving the accuracy (precision) of the action recognition result.

[0050] For example, a subject gazes in different directions by turning his / her head, for example, when the head is turned to the left side of the body, the gaze direction becomes the left side, and when the head is turned to the right side of the body, the gaze direction becomes the right side. When a subject turns his / her head, the positional relationship between the nose keypoint and the shoulder keypoint may change accordingly. For example, when the head is turned to the left side of the body, the nose keypoint is closer to the left shoulder keypoint of the two shoulder keypoints, and when the head is turned to the right side of the body, the nose keypoint is closer to the right shoulder keypoint of the two shoulder keypoints. Based on the distance between the nose keypoint and the two shoulder keypoints and the distance between the two shoulder keypoints, the gaze direction can be determined in a simple manner. This can reduce the amount of calculation and improve the calculation efficiency. In addition, in the process of determining the gaze direction, not only the distance between the nose keypoint and the two shoulder keypoints but also the distance between the two shoulder keypoints are taken into account, which reduces the influence on the recognition results of factors such as the image acquisition angle (e.g., front or side, etc.) and / or the subject's posture (e.g., standing, sitting, etc.) and / or whether distortion has occurred in the image (e.g., normal image or deformed image, etc.).

[0051] <Example of the second aspect> The present invention provides a motion recognition device, and description of the same contents as those in the embodiment of the first aspect will be omitted here.

[0052] FIG. 9 is a diagram showing an action recognition device in an embodiment of the present invention. As shown in FIG. 9, the action recognition device 900 includes:

[0053] Acquisition unit 901: by using a neural network to recognize key points of an object in an image and acquire the key points of the object; and A determining 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 acquired key points.

[0054] In some embodiments, the determination unit 902 determines 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 determines the gaze direction of the object based on the ratio and a predetermined threshold.

[0055] In some embodiments, when the ratio is a 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 gaze direction of the object is to the left, and when the ratio is greater than a second threshold, the gaze direction of the object is to the right, wherein the first threshold is less than or equal to the second threshold.

[0056] In some embodiments, when the ratio is a ratio of the result of subtracting the first distance from the second distance to the third distance, when the ratio is smaller than a third threshold, the gaze direction of the object is to the right, and when the ratio is greater than a fourth threshold, the gaze direction of the object is to the left, wherein the third threshold is less than or equal to the fourth threshold.

[0057] In some embodiments, when the keypoints of the object include a neck keypoint, the determining unit determines a modification amount according to a fourth distance between the neck keypoint and the left shoulder keypoint and a fifth distance between the neck keypoint and the right shoulder keypoint, modifies the ratio according to the modification amount, and determines the gaze direction of the object according to the modified ratio and the predetermined threshold.

[0058] In some embodiments, the correction amount comprises a ratio of a difference between the fourth distance and the fifth distance to the third distance.

[0059] In some embodiments, the determining unit 902 determines the line of sight direction if a predetermined condition is satisfied. Wherein, the predetermined condition includes that the number of acquired key points of the object is greater than a predetermined value, and the key points of the object include a left shoulder key point, a right shoulder key point and a nose key point.

[0060] In some embodiments, the image is a deformed image, and as shown in FIG. 9, the apparatus 900 may further include:

[0061] A rectification unit 903: rectifies the distortion of the deformed image to generate a rectified image.

[0062] The acquisition unit 901 acquires keypoints of an object in the modified image by performing keypoint recognition on the object.

[0063] Although only the components or modules according to the present invention have been described above, the present invention is not limited thereto. The action recognition device 900 may further include other components or modules, and the specific contents of these components or modules can be found in the related art.

[0064] 9 shows only the connection relationships or signal directions between each component or module for convenience, but various related technologies such as bus connection may be adopted as understood by those skilled in the art. Each of the above-mentioned components or modules may be realized by hardware such as a processor, a memory, etc., and the embodiments of the present invention are not limited thereto.

[0065] The above-mentioned embodiments are provided to exemplify the embodiments of the present invention, but the present invention is not limited to these, and appropriate modifications may be made based on the above-mentioned embodiments. For example, each of the above-mentioned embodiments may be used alone, or a combination of two or more of the above-mentioned embodiments may be used.

[0066] As can be seen from the above embodiment, according to the above embodiment, the gaze direction of the object is determined based on 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, thereby improving the accuracy (precision) of the action recognition result.

[0067] For example, a subject gazes in different directions by turning his / her head, for example, when the head is turned to the left side of the body, the gaze direction becomes the left side, and when the head is turned to the right side of the body, the gaze direction becomes the right side. When a subject turns his / her head, the positional relationship between the nose keypoint and the shoulder keypoint may change accordingly. For example, when the head is turned to the left side of the body, the nose keypoint is closer to the left shoulder keypoint of the two shoulder keypoints, and when the head is turned to the right side of the body, the nose keypoint is closer to the right shoulder keypoint of the two shoulder keypoints. Based on the distance between the nose keypoint and the two shoulder keypoints and the distance between the two shoulder keypoints, the gaze direction can be determined in a simple manner. This can reduce the amount of calculation and improve the calculation efficiency. In addition, in the process of determining the gaze direction, not only the distance between the nose keypoint and the two shoulder keypoints but also the distance between the two shoulder keypoints are taken into account, which reduces the influence on the recognition results of factors such as the image acquisition angle (e.g., front or side, etc.) and / or the subject's posture (e.g., standing, sitting, etc.) and / or whether distortion has occurred in the image (e.g., normal image or deformed image, etc.).

[0068] <Example of the third aspect> The present invention provides an electronic device, which includes the motion recognition device 900 according to the embodiment of the second aspect, the contents of which are incorporated herein. The electronic device may be, for example, a computer, a server, a workstation, a notebook computer, a smartphone, etc., but the embodiments of the present invention are not limited thereto.

[0069] Fig. 10 is a diagram showing an electronic device according to an embodiment of the present invention. As shown in Fig. 10, the electronic device 1000 may include a processor (e.g., a central processing unit CPU) 1010 and a memory 1020, and the memory 1020 is connected to the central processing unit 1010. The memory 1020 can store various data, and can further store a program for information processing, and can execute the program under the control of the processor 1010.

[0070] In some embodiments, the functionality of the action recognition device 1000 is implemented by integrating it into a processor 1010. In that case, the processor 1010 is configured to execute the action recognition method described in the embodiments of the first aspect.

[0071] In some embodiments, the action recognition device 1000 may be configured separately from the processor 1010, for example, the action recognition device 1000 may be installed as a chip connected to the processor 1010, and configured to realize the functions of the action recognition device 1000 under the control of the processor 1010.

[0072] For example, the processor 1010 is configured to perform the following control: recognize key points of an object in an image by a neural network, acquire 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 among the acquired key points.

[0073] 10, the electronic device 1000 may further include an input / output (I / O) device 1030, a display 1040, etc., among which the functions of these components are the same as those of the prior art, and detailed description thereof will be omitted here. Note that the electronic device 1000 does not need to include all the components shown in FIG. 10. The electronic device 800 may further include components not shown in FIG. 10, and for this, reference may be made to the related art.

[0074] An embodiment of the present invention further provides a computer-readable program, which, when executed on an electronic device, causes a computer to execute the action recognition method described in the embodiment of the first aspect on the electronic device.

[0075] An embodiment of the present invention further provides a storage medium storing a computer readable program, wherein the computer readable program causes a computer to execute the gesture recognition method according to the embodiment of the first aspect in an electronic device.

[0076] The above-mentioned devices and methods may be realized by software or hardware, or may be realized by a combination of hardware and software. The present invention further relates to a computer readable program, which, when executed by a logic component, causes the logic component to realize the above-mentioned devices or components, or causes the logic component to realize the various methods or steps described above. The logic component may be, for example, a Field Programmable Gate Array (FPGA), a microprocessor, a processor for use in a computer, etc. The present invention also relates to a storage medium, such as a hard disk, a magnetic disk, an optical hard disk, a DVD, a flash memory, etc., storing the above-mentioned program.

[0077] Additionally, one or more combinations of the functional blocks depicted in the figures and / or one or more combinations of the functional blocks may be implemented as a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic component, a discrete gate or transistor logic component, a discrete hardware assembly, or any other suitable combination for performing the functions described herein. Also, one or more combinations of the functional blocks depicted in the figures and / or one or more combinations of the functional blocks may be further configured as a combination of computing devices, such as a combination of a DSP and a microprocessor, a combination of multiple microprocessors, one or more microprocessors in communication with a DSP, or any other configuration.

[0078] Furthermore, with respect to the above-mentioned embodiments, the following supplementary notes are disclosed.

[0079] (Appendix 1) A motion recognition method, comprising: Recognizing key points of an object in an image by a neural network and obtaining key points of the object; and determining a gaze direction of the subject 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 among the acquired key points.

[0080] (Appendix 2) 2. The method according to claim 1, comprising: determining a 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 among the acquired key points; 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 determining a gaze direction of the subject based on the ratio and a predetermined threshold.

[0081] (Appendix 3) 3. The method according to claim 2, comprising: when the ratio is a ratio of a result of subtracting the second distance from the first distance to the third distance, when the ratio is less than a first threshold, the gaze direction of the subject is to the left; When the ratio is greater than a second threshold, the gaze direction of the subject is to the right; The method, wherein the first threshold is less than or equal to the second threshold.

[0082] (Appendix 4) 3. The method according to claim 2, comprising: when the ratio is a 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 gaze direction of the subject is to the right; when the ratio is greater than a fourth threshold, the gaze direction of the subject is to the left; The method, wherein the third threshold is less than or equal to the fourth threshold.

[0083] (Appendix 5) 3. The method according to claim 2, comprising: when the keypoints of the object include a neck keypoint, determining a correction amount based on a fourth distance between the neck keypoint and the left shoulder keypoint and a fifth distance between the neck keypoint and the right shoulder keypoint, correcting the ratio based on the correction amount, and determining a gaze direction of the object based on the corrected ratio and the predetermined threshold.

[0084] (Appendix 6) 6. The method according to claim 5, The method, wherein the correction amount comprises a ratio of a difference between the fourth distance and the fifth distance to the third distance.

[0085] (Appendix 7) 2. The method according to claim 1, comprising: determining the line of sight direction when a predetermined condition is satisfied; The method, wherein the predetermined condition includes a number of acquired keypoints of the object being greater than a predetermined value, and the keypoints of the object including the left shoulder keypoint, the right shoulder keypoint, and the nose keypoint.

[0086] (Appendix 8) 2. The method according to claim 1, comprising: the image is a distorted image, The method further includes correcting distortion of the distorted image to generate a corrected image.

[0087] (Appendix 9) A storage medium storing a computer-readable program, A storage medium that causes a computer to execute the action recognition method described in any one of Supplementary Notes 1 to 8 in an electronic device.

[0088] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to such embodiments, and any modifications to the present invention fall within the technical scope of the present invention as long as they do not depart from the spirit of the present invention.

Claims

1. A device for recognizing a motion, comprising: An acquisition unit for recognizing key points of an object in an image by a neural network and acquiring key points of the object; and a determining unit for determining a 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 among the acquired key points.

2. 2. The apparatus of claim 1, The determination unit determines 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 determines a gaze direction of the object based on the ratio and a predetermined threshold.

3. 3. The apparatus of claim 2, when the ratio is a ratio of a result of subtracting the second distance from the first distance to the third distance, The apparatus, wherein when the ratio is smaller than a first threshold, the subject's gaze direction is to the left, and when the ratio is greater than a second threshold, the subject's gaze direction is to the right, and the first threshold is less than or equal to the second threshold.

4. 3. The apparatus of claim 2, when the ratio is a ratio of a result of subtracting the first distance from the second distance to the third distance, When the ratio is smaller than a third threshold, the subject's gaze direction is to the right, and when the ratio is greater than a fourth threshold, the subject's gaze direction is to the left, and the third threshold is less than or equal to the fourth threshold.

5. 3. The apparatus of claim 2, and when the key points of the object include a neck key point, the determining unit determines a modification 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, modifies the ratio based on the modification amount, and determines a gaze direction of the object based on the modified ratio and the predetermined threshold.

6. 6. The apparatus of claim 5, The apparatus, wherein the correction amount comprises a ratio of a difference between the fourth distance and the fifth distance to the third distance.

7. 2. The apparatus of claim 1, When a predetermined condition is satisfied, the determination unit determines the line of sight direction; The predetermined condition includes that a number of acquired key points of the object is greater than a predetermined value, and that the key points of the object include the left shoulder key point, the right shoulder key point, and the nose key point.

8. 2. The apparatus of claim 1, the image is a distorted image, The apparatus further includes a correction unit for correcting distortion of the deformed image to generate a corrected image; The acquisition unit acquires keypoints of an object in the rectified image by performing keypoint recognition on the object.

9. A method for recognizing an action, comprising: Recognizing key points of an object in an image by a neural network and obtaining key points of the object; and determining a gaze direction of the subject 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 among the acquired key points.

10. An electronic device including a memory and a processor connected to the memory, The storage device stores a computer program, 10. An electronic device, wherein the processor is configured to execute the computer program to implement the method of claim 9.