Posture difference recognition method, device, electronic device, medium and program product

By extracting the position information of feature points in the image and calculating the posture difference value, the problem of low accuracy of dance movement posture recognition in the existing technology is solved, and higher posture recognition accuracy is achieved.

CN118502639BActive Publication Date: 2024-09-24HORUSHENG (CHANGZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410946781.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-24
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

The existing technology has low accuracy when sensing the user's dance movements through the panel, and it is difficult to accurately determine the difference in posture of the dance movements.

Method used

By obtaining the image to be recognized, the feature point position information of the target object is extracted, the weight of each part and the posture change center vector are calculated, the posture difference value is determined, and the accuracy of posture recognition is improved.

Benefits of technology

It effectively improves the accuracy of whether the target object's posture is standard and improves the accuracy of dance movement recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118502639B
    Figure CN118502639B
Patent Text Reader

Abstract

The present disclosure relates to a posture difference recognition method, device, electronic device, medium and program product, belonging to the technical field of image processing, the method comprising: obtaining an image to be recognized; extracting the position information of each feature point of a target object in the image to be recognized; wherein different feature points correspond to different parts of the target object; according to the position information of the feature points associated with each part of the target object, obtaining the weight of each part relative to all parts of the target object; according to the position information of the feature points associated with each part of the target object, obtaining the center vector representing the change of the posture of the target object, and obtaining the part difference value between the center vector of each part and the set standard vector; according to the weight corresponding to each part and the part difference value, determining the posture difference value of the target object. The posture difference recognition method provided by the present invention can determine whether the posture of the target object is standard.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the technical field of image processing, and more specifically, to a posture difference recognition method, device, electronic device, medium, and program product. Background Art

[0002] With the rapid development of image processing technology, it can be applied to various industries, such as dance teaching or behavior monitoring. At present, users can judge whether their dance movements are accurate by whether the time and strength of touching the panel are accurate, but the accuracy of perceiving the user's dance movements only through the panel is low. Summary of the invention

[0003] One purpose of the embodiments of the present disclosure is to provide a new technical solution for posture difference recognition.

[0004] According to a first aspect of the present disclosure, a posture difference recognition method is provided, the method comprising:

[0005] Obtain an image to be recognized;

[0006] Extracting position information of each feature point of the target object in the image to be identified; wherein different feature points correspond to different parts of the target object;

[0007] Obtaining, according to the position information of the feature points associated with each part of the target object, the weight of each part relative to all parts of the target object;

[0008] According to the position information of the feature points associated with each part of the target object, a central vector representing the change of the posture of the target object is obtained, and a part difference value between the central vector of each part and a set standard vector is obtained;

[0009] The posture difference value of the target object is determined according to the weight corresponding to each part and the part difference value.

[0010] Optionally, obtaining the weight of each part relative to all parts of the target object according to the position information of the feature points associated with each part of the target object includes:

[0011] Obtaining a region vector of each part of the target object according to position information of a feature point associated with each part of the target object;

[0012] Determine, according to the region vector of each part, the length weight and the rotation angle weight of each part with respect to all parts of the target object;

[0013] The length weight and the rotation angle weight are added according to a first set ratio to obtain a weight of each part relative to all parts of the target object.

[0014] Optionally, the image to be identified includes multiple image frames;

[0015] Determining the length weight and the rotation angle weight of each part with respect to all parts of the target object according to the region vector of each part includes:

[0016] Determine an average length value of each part according to the area vector of each part in the multiple image frames;

[0017] According to the average length value of each part, a length weight of each part relative to all parts of the target object is obtained;

[0018] Determine the rotation angle value of each part according to the area vector of each part in the image frames at the same time interval;

[0019] According to the rotation angle value of each part, the rotation angle weight of each part relative to all parts of the target object is obtained.

[0020] Optionally, the image to be identified includes multiple image frames;

[0021] The step of obtaining a center vector representing a change in the posture of the target object according to the position information of the feature points associated with each part of the target object, and obtaining a part difference value between the center vector of each part and a set standard vector, comprises:

[0022] Obtaining a center vector representing a change in the posture of the target object according to position information of feature points associated with each part of the target object;

[0023] In the plurality of image frames, determining a cumulative length difference value between a set standard vector and the central vector;

[0024] In image frames at the same time interval, determining a cumulative rotation angle difference value between the standard vector and the center vector;

[0025] The accumulated length difference value and the accumulated rotation angle difference value are added according to a second set ratio to obtain a part difference value between the center vector of each part and a set standard vector.

[0026] Optionally, determining the posture difference value of the target object according to the weight corresponding to each part and the part difference value includes:

[0027] Multiplying the weight corresponding to each part by the part difference value to obtain the weight of each part;

[0028] The weight of each part is added to obtain the posture difference value of the target object.

[0029] Optionally, before obtaining the center vector representing the change of the posture of the target object according to the position information of the feature points associated with each part of the target object, and obtaining the part difference value between the center vector of each part and a set standard vector, the method further includes:

[0030] Determining a device operation mode; wherein the device operation mode includes an object following mode;

[0031] When the device operation mode is the object following mode, a vector corresponding to each part of the indicated object in the image to be identified is used as a set standard vector.

[0032] According to a second aspect of the present disclosure, a posture difference recognition device is also provided, the device comprising:

[0033] An image acquisition module, used for acquiring an image to be identified;

[0034] An information extraction module, used to extract the position information of each feature point of the target object in the image to be identified; wherein different feature points correspond to different parts of the target object;

[0035] A weight obtaining module, used for obtaining the weight of each part relative to all parts of the target object according to the position information of the feature points associated with each part of the target object;

[0036] A vector obtaining module, used for obtaining a central vector representing a change in the posture of the target object according to the position information of the feature points associated with each part of the target object, and obtaining a part difference value between the central vector of each part and a set standard vector;

[0037] The difference value determination module is used to determine the posture difference value of the target object according to the weight corresponding to each part and the part difference value.

[0038] According to a third aspect of the present disclosure, an electronic device is also provided, including a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to the first aspect of the present disclosure.

[0039] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0040] According to a fifth aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein when the computer program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0041] A beneficial effect of the embodiments of the present disclosure is that the posture difference recognition method provided by the present invention can extract the position information of each feature point from the image to be recognized, and determine the weight and part difference value of each part of the target object based on the position information of each feature point, and then determine the posture difference value of the target object based on the weight and part difference value. By determining each part through each feature point and determining the difference between each part, the accuracy of determining whether the posture of the target object is standard can be effectively improved.

[0042] Other features and advantages of the embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the embodiments of the present disclosure.

[0044] Figure 1 is a flow chart of a posture difference recognition method according to an embodiment;

[0045] Figure 2 is a schematic diagram of a region vector of a target object according to one embodiment;

[0046] Figure 3 is a schematic diagram of a center vector of a target object according to one embodiment;

[0047] Figure 4 is a block diagram of a posture difference recognition device according to an embodiment;

[0048] Figure 5 is a schematic diagram of the hardware structure of an electronic device according to an embodiment. DETAILED DESCRIPTION

[0049] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of parts and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0050] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0051] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0052] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0053] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0054] <Method Example>

[0055] Figure 1 1 is a flow chart of a posture difference recognition method according to an embodiment. The implementation subject is an electronic device with a camera. The electronic device can be a mobile phone, a tablet or a computer, etc., which is not limited here.

[0056] like Figure 2 As shown, the posture difference recognition method of this embodiment may include the following steps S110 to S250:

[0057] Step S210, obtaining an image to be recognized.

[0058] Step S220, extracting the position information of each feature point of the target object in the image to be identified; wherein different feature points correspond to different parts of the target object.

[0059] In some examples, the posture difference recognition device can be configured with a multi-person human posture estimation system AlphaPose to perform human posture estimation. AlphaPose adopts a top-down approach and uses Regional Multi-Person Pose Estimation (RMPE) to obtain the coordinates of multiple feature points, such as joint points, and the coordinates of the multiple feature points can be the coordinates of 17 joint points, and the 17 joint points are nose, left eye, right eye, left ear, right ear, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hip, right hip, left knee, right knee, left ankle, and right ankle.

[0060] In some embodiments, the image to be identified is taken as image data, which can be segmented according to each object. Since the start time and end time of each object's action may be different, alignment is required to ensure that the length of the image data of each object is the same.

[0061] In some examples, each image data may include the coordinates of 17 joint points and the confidence of the estimated posture of the target object, set a confidence threshold, and delete the image data below the confidence threshold to ensure the validity of the image data. Among them, the confidence threshold can be set manually and is not limited here. The posture difference recognition device reorders the image data according to the relative position relationship of each object in the image frame corresponding to the first frame of the image to be recognized, so that each image data corresponds to the object one by one. For example, the image to be recognized can be divided into image data A-image data C, image data A corresponds to object a, image data B corresponds to object b, and image data C corresponds to object c.

[0062] In some examples, the image data format obtained after running AlphaPose is as follows:

[0063] {

[0064] "image_id": "image_idx.jpg",

[0065] "category_id": category_idx,

[0066] "keypoints": [x1, y1, v1, … x17, y17, v17],

[0067] “score”: scorex

[0068] }

[0069] Among them, image_idx represents the image frame id. AlphaPose captures an image frame for each frame of the video during operation. For a 10s 30fps video, image_idx is 1 to 300; category_id represents the category corresponding to the object, which is 1 for human posture estimation; (xn, yn, vn) represents the position information of the nth feature point, xn and yn correspond to the x-coordinate value and y-coordinate value of the feature point respectively, and vn corresponds to the flag of the feature point. For the 17 joint points detected by AlphaPose, n is 1 to 17; scorex represents the confidence of the object. Among them, the video is an image to be identified.

[0070] In some examples, due to the existence of image_idx, the length of each piece of image data will change with the change of video frame rate and duration. To facilitate extraction, the image_idx of each piece of image data needs to be prefixed with 0 based on the maximum value of image_idx. For example, for data with a maximum image_idx value of 10000, image_idx less than five digits, such as 100, needs to be prefixed with 0 to 00100, so that the length of each piece of image data is consistent.

[0071] In some examples, for an image to be recognized with a known frame rate, duration, and number of people, the amount of image data that needs to be extracted is also known. However, since no screening has been performed yet, AlphaPose will also record some non-human data with lower confidence in the image data. Therefore, a data space larger than the expected data space is required to completely extract the image data into the code editor.

[0072] In some examples, after setting the confidence threshold, the confidence of each image data can be compared with the confidence threshold, and if it is lower than the confidence threshold, the image data is deleted. By continuously adjusting the confidence threshold, the coordinates of the real feature points can be finally obtained.

[0073] In some examples, the x-coordinates of the noses of different objects in the first frame are used to locate them, and the subsequent frames are reordered to ensure that the image data at the same position always corresponds to the same object. The final result is an M×N×17×2 array, where M represents the number of images, that is, the total number of frames in the video, and N represents the number of objects, that is, the number of people.

[0074] Step S230 , obtaining the weight of each part relative to all parts of the target object according to the position information of the feature points associated with each part of the target object.

[0075] In some embodiments, in order to improve the accuracy of determining the posture of the target object, the length weight and the angle weight of each part of the target object may be determined. Step S230 may include the following steps S2301 to S2303:

[0076] Step S2301, obtaining a region vector of each part of the target object according to the position information of the feature points associated with each part of the target object.

[0077] In some examples, the region vector of each part can be obtained based on the position information of the feature points associated with each part of the target object. Figure 2As shown, a vector formed by any two adjacent feature points from "0" to "16" can represent a regional vector of a part. For example, the two feature points of the left elbow 8 and the left wrist 10 can determine the regional vector of the forearm.

[0078] Step S2302: Determine the length weight and the rotation angle weight of each part with respect to all parts of the target object according to the region vector of each part.

[0079] In some embodiments, in order to further improve the accuracy of determining the posture of the target object, the average length of each part and the angle value in the image frames with the same time interval may be calculated. The image to be identified includes multiple image frames. Step S2302 may include the following steps S310 and S340:

[0080] Step S310, determining an average length value of each part according to the region vector of each part in multiple image frames.

[0081] Step S320, obtaining the length weight of each part with respect to all parts of the target object according to the average length value of each part.

[0082] In some examples, the posture difference recognition device can calculate the lengths of all region vectors, classify them according to the body parts of the target object and take the average value, obtain the lengths of different parts of the target object, obtain the length of each part and the sum of the lengths of all parts, and obtain the length weight of each part relative to all parts of the target object.

[0083] Step S330, determining the rotation angle value of each part according to the region vector of each part in the image frames at the same time interval.

[0084] Step S340, obtaining the rotation angle weight of each part with respect to all parts of the target object according to the rotation angle value of each part.

[0085] In some examples, the image frames at the same time interval may be image frames spaced a certain number of frames apart, and the posture difference recognition device may calculate the rotation angle value of the same area vector in the image frames spaced a certain number of frames apart to obtain the rotation angle weight of each part relative to all parts of the target object.

[0086] Step S2303: Add the length weight and the rotation angle weight according to the first set ratio to obtain the weight of each part relative to all parts of the target object.

[0087] In some examples, the length weight is H1, the angle weight is A1, the first set ratio is, for example, h1:a1, and the weight of each part relative to all parts of the target object = h1×H1+a1×A1.

[0088] Step S240 , obtaining a central vector representing a change in the posture of the target object according to the position information of the feature points associated with each part of the target object, and obtaining a part difference value between the central vector of each part and a set standard vector.

[0089] In some embodiments, step S240 may include the following steps S410 to S440:

[0090] Step S410: obtaining a central vector representing a change in the posture of the target object based on the position information of the feature points associated with each part of the target object.

[0091] In some examples, such as Figure 3 As shown, a vector formed by any feature point from "0" and "1" to "16" can represent the center vector of a part. For example, the two feature points of left wrist 10 and nose 0 can determine the center vector of the left wrist.

[0092] Step S420 , determining the cumulative length difference between the set standard vector and the center vector in the plurality of image frames.

[0093] Step S430, determining the accumulated rotation angle difference between the standard vector and the center vector in the image frames at the same time interval.

[0094] In some examples, the standard vector may be pre-set, or a vector of an object indicated in the image to be identified may be used as the standard vector.

[0095] In some examples, the posture difference recognition device can obtain the center vector representing the posture change of the target object based on the above image data. Determine the difference between the center vector of each part of multiple image frames and the standard vector, and calculate the cumulative length difference value of all image frames, that is, the difference between the normalized center vector and the standard vector. Determine the difference between the rotation angle of the center vector of each part of two image frames separated by a certain number of frames and the rotation angle of the standard vector.

[0096] Step S440: Add the accumulated length difference value and the accumulated rotation angle difference value according to a second set ratio to obtain a part difference value between the center vector of each part and the set standard vector.

[0097] In some examples, the cumulative length difference value of part C1 is L1, the cumulative rotation angle difference value of part C1 is J1, and the second set ratio of part C1 is, for example, l1:j1. The part difference value between the center vector of part C1 and the set standard vector = l1×L1+j1×J1.

[0098] In other words, considering the cumulative length difference value (static level) and the cumulative angle difference value (dynamic level) of each part at the same time can effectively avoid the loss of information and provide more comprehensive and reliable results.

[0099] In some examples, the object following mode may include a leader mode and a group mode. In the leader mode, there is a leader as a standard and multiple learners. The standard vector is determined by the leader, and finally the posture difference values ​​of different parts between different learners and the leader are given. In the group mode, all people are participants, and the standard vector is determined by all participants, and finally the posture difference values ​​of different participants and different body parts are given.

[0100] is the region vector of the kth part of the fth image of the jth object, then the length value and the angle value The expression is as follows:

[0101]

[0102]

[0103] In the leader mode, j = 1, 2, 3 correspond to three learners respectively, and in the group mode, j = 1, 2, 4 correspond to four participants respectively. f1 represents the number of pictures between two pictures. The time is divided into time interval, and They represent the numbers of the start and end pictures of the i-th time interval. f1 is adjusted according to the action speed, where f1=5.

[0104] Length Weight and corner weight The expression is as follows:

[0105]

[0106]

[0107] Among them, the weight expression of part k relative to all parts of the target object is as follows:

[0108] wk=P1×wk1+(1-P1)×wk2

[0109] Wherein, P1 is the first set ratio.

[0110] In some embodiments, before step S240, the method further includes the following steps S238 and S239:

[0111] Step S238, determining the device operation mode; wherein the device operation mode includes an object following mode.

[0112] Step S239: when the device operation mode is the object following mode, the vector corresponding to each part of the indicated object in the image to be identified is used as a set standard vector.

[0113] In some examples, in the object following mode, the posture difference recognition device may use a vector of an object indicated in the image to be recognized as a standard vector.

[0114] In other words, by setting the object following mode, a certain object can be used as a standard to determine whether the posture of the target object is standard, and thus the posture difference recognition method is adapted to different application scenarios.

[0115] Step S250, determining the posture difference value of the target object according to the weight corresponding to each part and the part difference value.

[0116] In some embodiments, in order to obtain a more accurate posture difference value, step S250 may include the following steps S2501 and S2502:

[0117] Step S2501, multiply the weight corresponding to each part by the part difference value to obtain the weight of each part.

[0118] Step S2502, adding the weight of each part to obtain the posture difference value of the target object.

[0119] In some examples, the target object O1 includes part o1, part o2 and part o3, the weight of part o1 is o11, the part difference value of part o1 is o12, the weight of part o1 is o11×o12, the weight of part o2 is o21, the part difference value of part o2 is o22, the weight of part o2 is o21×o22, the weight of part o3 is o31, the part difference value of part o3 is o32, and the weight of part o3 is o31×o32, then the posture difference value is o11×o12+o21×o22+o31×o32.

[0120] In some examples, and They are the results before and after normalization of the center vector of the kth body part of the fth image of the jth object. At the static level, the cumulative length difference between the leadership mode and the group mode The expression is as follows:

[0121] =

[0122] =

[0123] In the leadership mode, j=1, 2, 3 represent three learners, j= represents the leader. In group mode, j=1, 2, 3, 4 represent four participants.

[0124] At the dynamic level, the difference in cumulative turning angle between leadership mode and group mode The expression is as follows:

[0125] =

[0126] =

[0127] Among them, f2 represents the number of pictures between two pictures, and the time is divided into time interval, and They represent the numbers of the start and end pictures of the ith time interval. Similarly, f2=5 is taken in this paper.

[0128] in,

[0129]

[0130] For parts with high cumulative length difference values, the corresponding subjects should pay attention to their positions to avoid wrong movements. For parts of the body with high cumulative rotation angle difference values, the corresponding subjects should pay attention to the size of their rotation angle to avoid too small or too large rotation.

[0131] The expression of the part difference value BPS(j,k) is as follows, where P2 is the second set ratio.

[0132] BPS(j,k)=P2× +(1-P2)×

[0133] For group mode, the difference values ​​of different body parts can also be calculated , the expression is as follows:

[0134]

[0135] Taking P2=0.5, the calculation results show that the three body parts with the worst synchronization of participant 1 are the left forearm, right forearm, and left torso. However, in the questionnaire, most respondents ignored the asynchrony of the left torso. This is because the torso does not have obvious edge protruding structures, so its asynchrony is difficult for observers to detect visually.

[0136] In some examples, according to the posture difference value of the target object, the personal score of the target object can be obtained, and the expression of the personal score pointj is as follows:

[0137] pointj=

[0138] For the group mode, the overall score pointj can also be calculated, the expression is as follows:

[0139] pointj=

[0140] Among them, K=5000, Table 1 shows the length weight and angle weight of each part of video 1, and Table 2 shows the scores of different learners corresponding to different P1s in video 1 when P2=0.5. Table 3 shows the length weight and angle weight of each part of video 2, and Table 4 shows the scores of different learners corresponding to different P1s in video 2 when P2=0.5.

[0141] Table 1:

[0142]

[0143] Table 2:

[0144]

[0145] Table 3:

[0146]

[0147] Table 4:

[0148]

[0149] As shown in Tables 1 to 4, when P2=0.5 and P1=0, 0.5 and 1 are taken, for video 1, the scores of different learners are calculated, and it can be seen that learner 1 has the highest score. As P1 decreases, that is, more attention is paid to the rotation angle weight of body parts when calculating the score, the difference in scores among the three learners becomes smaller and smaller. For video 2, the scores of different participants are calculated, and it can be seen that the scores of participants 2 and 3 are significantly higher than those of participants 1 and 4, with an overall score of 91.8911. After deleting participant 4 with a lower score, the overall score becomes 93.7245, which realizes that the posture difference recognition method can accurately determine whether the posture of the target object is standard.

[0150] <Equipment Example 1>

[0151] Figure 4 is a principle block diagram of a posture difference recognition device according to an embodiment. Figure 4 As shown, the posture difference recognition device 400 may include:

[0152] An image acquisition module 410 is used to acquire an image to be recognized;

[0153] The information extraction module 420 is used to extract the position information of each feature point of the target object in the image to be identified; wherein different feature points correspond to different parts of the target object;

[0154] A weight obtaining module 430 is used to obtain the weight of each part relative to all parts of the target object according to the position information of the feature points associated with each part of the target object;

[0155] A vector obtaining module 440 is used to obtain a central vector representing a change in the posture of the target object according to the position information of the feature points associated with each part of the target object, and to obtain a part difference value between the central vector of each part and a set standard vector;

[0156] The difference value determination module 450 is used to determine the posture difference value of the target object according to the weight corresponding to each part and the part difference value.

[0157] Optionally, the weight obtaining module 430 is also used to obtain the area vector of each part of the target object based on the position information of the feature points associated with each part of the target object; determine the length weight and angle weight of each part relative to all parts of the target object based on the area vector of each part; add the length weight and the angle weight according to a first set ratio to obtain the weight of each part relative to all parts of the target object.

[0158] Optionally, the weight obtaining module 430 is also used to determine the average length value of each part based on the area vector of each part in multiple image frames; obtain the length weight of each part with respect to all parts of the target object based on the average length value of each part; determine the angle value of each part based on the area vector of each part in image frames with the same time interval; and obtain the angle weight of each part with respect to all parts of the target object based on the angle value of each part.

[0159] Optionally, the vector obtaining module 440 is also used to obtain a central vector representing the posture change of the target object based on the position information of the feature points associated with each part of the target object; determine the cumulative length difference value between the set standard vector and the central vector in multiple image frames; determine the cumulative angle difference value between the standard vector and the central vector in image frames with the same time interval; add the cumulative length difference value and the cumulative angle difference value according to a second set ratio to obtain the part difference value between the central vector of each part and the set standard vector.

[0160] Optionally, the difference value determination module 450 is further used to multiply the weight corresponding to each part by the part difference value to obtain the weight of each part; and add the weight of each part to obtain the posture difference value of the target object.

[0161] Optionally, the posture difference recognition device 400 also includes a mode determination module for determining a device operation mode; wherein the device operation mode includes an object following mode; when the device operation mode is an object following mode, a vector corresponding to each part of the indicated object in the image to be identified is used as a set standard vector.

[0162] <Equipment Example 2>

[0163] Figure 5 is a schematic diagram of the hardware structure of an electronic device according to another embodiment.

[0164] like Figure 5 As shown, the electronic device 500 includes a processor 510 and a memory 520, wherein the memory 520 is used to store an executable computer program, and the processor 510 is used to execute a method such as any of the above method embodiments under the control of the computer program.

[0165] Each module of the above posture difference recognition device 400 may be implemented by the processor 510 in this embodiment executing a computer program stored in the memory 520, or may be implemented by other structures, which is not limited here.

[0166] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0167] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0168] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0169] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby implementing various aspects of the present invention.

[0170] Various aspects of the present invention are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of the boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0171] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0172] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0173] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0174] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.

Claims

1. A posture difference recognition method, characterized in that: The method comprises: Obtain an image to be recognized; Extracting position information of each feature point of the target object in the image to be identified; wherein different feature points correspond to different parts of the target object; Obtaining, according to the position information of the feature points associated with each part of the target object, the weight of each part relative to all parts of the target object; According to the position information of the feature points associated with each part of the target object, a central vector representing the change of the posture of the target object is obtained, and a part difference value between the central vector of each part and a set standard vector is obtained; Determining the posture difference value of the target object according to the weight corresponding to each part and the part difference value; obtaining the weight of each part relative to all parts of the target object according to the position information of the feature points associated with each part of the target object, includes: Obtaining a region vector of each part of the target object according to position information of a feature point associated with each part of the target object; Determine, according to the region vector of each part, the length weight and the rotation angle weight of each part with respect to all parts of the target object; The length weight and the rotation angle weight are added according to a first set ratio to obtain a weight of each part relative to all parts of the target object.

2. The method according to claim 1, characterized in that The image to be identified includes a plurality of image frames; Determining the length weight and the rotation angle weight of each part with respect to all parts of the target object according to the region vector of each part includes: Determine an average length value of each part according to the area vector of each part in the multiple image frames; According to the average length value of each part, a length weight of each part relative to all parts of the target object is obtained; Determine the rotation angle value of each part according to the area vector of each part in the image frames at the same time interval; According to the rotation angle value of each part, the rotation angle weight of each part relative to all parts of the target object is obtained.

3. The method according to claim 1, characterized in that The image to be identified includes a plurality of image frames; The step of obtaining a center vector representing a change in the posture of the target object according to the position information of the feature points associated with each part of the target object, and obtaining a part difference value between the center vector of each part and a set standard vector, comprises: Obtaining a center vector representing a change in the posture of the target object according to position information of feature points associated with each part of the target object; In the plurality of image frames, determining a cumulative length difference value between a set standard vector and the central vector; In image frames at the same time interval, determining a cumulative rotation angle difference value between the standard vector and the center vector; The accumulated length difference value and the accumulated rotation angle difference value are added according to a second set ratio to obtain a part difference value between the center vector of each part and a set standard vector.

4. The method according to claim 1, characterized in that: Determining the posture difference value of the target object according to the weight corresponding to each part and the part difference value includes: Multiplying the weight corresponding to each part by the part difference value to obtain the weight of each part; The weight of each part is added to obtain the posture difference value of the target object.

5. The method according to claim 1, characterized in that Before obtaining the center vector representing the change of the posture of the target object according to the position information of the feature points associated with each part of the target object, and obtaining the part difference value between the center vector of each part and a set standard vector, the method further includes: Determining a device operation mode; wherein the device operation mode includes an object following mode; When the device operation mode is the object following mode, a vector corresponding to each part of the indicated object in the image to be identified is used as a set standard vector.

6. A posture difference recognition device, characterized in that: The device comprises: An image acquisition module, used for acquiring an image to be identified; An information extraction module, used to extract the position information of each feature point of the target object in the image to be identified; wherein different feature points correspond to different parts of the target object; A weight obtaining module, used for obtaining the weight of each part relative to all parts of the target object according to the position information of the feature points associated with each part of the target object; A vector obtaining module, used for obtaining a central vector representing a posture change of the target object according to position information of a feature point associated with each part of the target object, and obtaining a part difference value between the central vector of each part and a set standard vector; The difference value determination module is used to determine the posture difference value of the target object according to the weight corresponding to each part and the part difference value.

7. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

9. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 when being executed by a processor.