Human body image generation method and system combining three-dimensional model and user-end screen
By combining the three-dimensional human body model and the real human body image on the user side, a virtual photo frame is generated and filled with real feature points, which solves the problem of poor user sense of substitution in the existing technology, realizes the real-time combination of three-dimensional animation and the real human body, and improves the accuracy of action design. Efficiency and aesthetics enhance user experience.
Patent Information
- Application Number
- CN202410800142.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The existing technology fails to combine the 3D human body model animation with the real human body image on the user end in real time, resulting in a poor user sense of immersion and the inability to fully utilize the efficiency and beauty of the 3D animation technology in human body action design, and the user is unable to make actions similar to the actors. The same beautiful actions result in the generated content not being beautiful enough to attract more users.
By obtaining the lower model and upper model of the three-dimensional human body model, the virtual photo frame is generated and combined with the lower model, the upper reference point and the lower reference point are generated based on the virtual feature points and reference points, the user's real human body image is obtained, and filled into the virtual photo frame, so that The real feature points match the reference points in the virtual photo frame to generate multiple consecutive human posture images, and the image effect is optimized through scene movement compensation.
It realizes the real-time combination of the three-dimensional human body model and the real human body image on the user side, improves the user's sense of substitution and visual feedback of action postures, enhances the user's pleasure and flow in fields such as fitness and selfies, and reduces synthesis costs and time. Improved user appeal.
Smart Images

Figure CN118379465B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and in particular relates to a method and system for generating a human body image by combining a three-dimensional model with a user-side screen. Background Art
[0002] With the rapid development of computer graphics and virtual reality technology, the generation and application of three-dimensional human body models and animations has become an active research field. However, existing technologies have not considered combining three-dimensional human body model animations with real human body images on the user side in real time, so as to fully tap the advantages of three-dimensional animation technology in terms of efficiency and aesthetics in human motion design, and fully tap the strong sense of user immersion and positive visual feedback of the user's graceful movements brought about by the real human body images on the user side being integrated into the pre-designed three-dimensional model animation in real time, thereby allowing users to have a strong sense of flow and pleasure.
[0003] For example, in the field of fitness and games, there are already a large number of products that allow users to follow the models on the screen (such as TV) to perform fitness movements or imitate games. However, since only the models are moving on the screen, the user's own movement image cannot be displayed in the model's action plot, and the user can only follow the model blindly, resulting in a poor sense of immersion and a lack of flow. At the same time, it is also difficult for users to fully keep up with the model's movement rhythm. Therefore, such products often make users feel boring. For example, in the field of selfies, users are eager to be able to achieve the same beautiful action videos as actors and integrate them into movie plots. Currently, the realization of such functions mainly relies on post-production, which is a large workload. Even so, since users cannot make the same beautiful and accurate movements as actors, and the users' body proportions are generally not as good as those of actors, the generated content is not beautiful enough and therefore cannot attract more users. Summary of the invention
[0004] In response to the above problems, the present invention provides a method and system for generating human body images by combining a three-dimensional model and a user-side screen, which combines the three-dimensional human body model animation and the real human body image on the user side in real time to solve the difficulties encountered in the aforementioned practical applications. At the same time, compared with traditional post-production solutions, the solution of the present invention has high synthesis efficiency and low cost.
[0005] The first aspect of the present invention discloses a method for generating a human body image by combining a three-dimensional model and a user terminal screen, comprising the following steps:
[0006] Step 1, obtaining the lower model of the three-dimensional human body model A; generating a virtual photo frame based on the position of the upper model of the three-dimensional human body model A, wherein the virtual photo frame and the lower model constitute a virtual-real human body model;
[0007] Step 2: Generate an upper reference point Q and a lower reference point P in a virtual photo frame based on the virtual feature point Q' and the virtual feature point P' in the three-dimensional human body model A; the imaging positions of the upper reference point Q and the lower reference point P on the imaging plane coincide with the imaging positions of the virtual feature point Q' and the virtual feature point P' on the imaging plane;
[0008] Step 3, sequentially obtaining a partial image b1 of the real human body image B currently generated by the user end, wherein the partial real human body corresponding to the partial image b1 corresponds to the partial human body model corresponding to the upper model; sequentially obtaining a plurality of virtual-real human body models in different postures based on the posture trajectory of the virtual-real human body model; and sequentially performing a synthesis operation on the partial image b1 and the virtual-real human body model to generate a plurality of continuous human body posture images, wherein the synthesis operation includes the following steps:
[0009] Fill the local image b1 of the real human image B into the corresponding area of the virtual photo frame of the virtual-real human model, and make the positions of the real feature points Q'' and P'' in the real human image B coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame respectively;
[0010] Generate the corresponding human posture image of the filled virtual and real human body model.
[0011] In the human body image generation method combining the above-mentioned three-dimensional model and the user-side screen, the three-dimensional human body model A is in a three-dimensional space coordinate system in the virtual three-dimensional space, the vertical plane of the upper model in the virtual three-dimensional space is parallel to the XY plane in the three-dimensional space coordinate system, and the vertical plane of the virtual photo frame is parallel to the XY plane.
[0012] In the human body image generation method combining the above-mentioned three-dimensional model and the user-side screen, the Z coordinate of the virtual photo frame is generated based on the Z coordinate of the virtual feature point Q' and the Z coordinate of the virtual feature point P' of the upper model, or the Z coordinate of the virtual photo frame is generated based on the Z coordinate of the endpoint at the widest part of the bottom surface of the upper model.
[0013] In the human body image generation method combining the above three-dimensional model and the user-side screen, the virtual feature point Q' is the top point of the upper model, and the virtual feature point P' is the bottom point of the upper model, and the bottom point of the upper model is located in the lower abdomen of the three-dimensional human body model A.
[0014] The human body image generation method combining the above-mentioned three-dimensional model and user-side screen is characterized in that the three-dimensional human body model A also includes an occluding prop, and the upper model originates from the part of the three-dimensional human body model A located above the occluding prop; there is a connecting surface between the occluding prop and the virtual photo frame, and the intersection line between the connecting surface and the virtual photo frame is the displayable bottom line of the torso part in the local image b1.
[0015] In the above-mentioned method for generating a human body image by combining a three-dimensional model with a user-side screen, the intersection line between the connecting surface and the virtual photo frame is close to the lower reference point P.
[0016] In the above-mentioned human body image generation method combining the three-dimensional model and the user-end screen, the posture trajectory of the virtual-reality combined human body model in step 3 includes the posture trajectory of the lower model, the posture trajectory of the virtual photo frame and the posture trajectory of the occluding props, the posture trajectory of the virtual photo frame is generated based on the posture trajectory feature point K of the upper model, and the posture trajectory of the occluding props is generated based on the posture trajectory feature point K or the virtual photo frame.
[0017] In the above-mentioned method for generating human images combining a three-dimensional model and a user-side screen, the imaging positions of the posture trajectory feature point K and the virtual feature point P' on the imaging plane coincide, and the lower reference point P is located on the displayable bottom line of the torso in the local image b1.
[0018] In the above-mentioned method for generating a human image by combining a three-dimensional model with a user-side screen, the continuous plurality of human posture images generated in step 3 also include a scene image obtained by scene motion compensation, wherein the scene motion compensation includes the scene image moving with a strong amplitude based on a strong rhythm motion axis and moving with a weak amplitude based on a weak illusion motion axis;
[0019] The strong rhythmic movement axis is obtained by the following method:
[0020] The axial motion trajectory of the human body part D of the three-dimensional human body model A is obtained, wherein the axial motion trajectory refers to the motion trajectory of the human body part D continuously on an axis, the strong rhythm motion axis is the axis where the axial motion trajectory is located; the weak illusion motion axis refers to the axis other than the strong rhythm motion axis in the three-dimensional space.
[0021] The human body image generation method combining the above-mentioned three-dimensional model and the user-end screen, in the three-dimensional space coordinate system, when the strong rhythm movement axis is the X-axis, the weak illusion movement axis is the Y-axis and / or the Z-axis; when the strong rhythm movement axis is the Z-axis, the weak illusion movement axis is the X-axis; when the strong rhythm movement axis is the Y-axis, the weak illusion movement axis is the X-axis.
[0022] In the human body image generation method combining the above three-dimensional model and the user-side screen, the strong amplitude is generated based on the size of the scene image and / or based on the movement amplitude of the human body part D on the strong rhythm movement axis, and the weak amplitude is smaller than the strong amplitude.
[0023] In the above-mentioned method for generating a human body image by combining a three-dimensional model with a user-side screen, the human body part D is the human body part with the largest movement amplitude on the lower model.
[0024] In the human body image generation method combining the three-dimensional model and the user-side screen, when the moving direction of the human body part D on the strong rhythm movement axis remains unchanged, the moving direction of the scene image on the strong rhythm movement axis remains unchanged.
[0025] The second aspect of the present invention discloses a human body image generation system combining a three-dimensional model and a user terminal screen, comprising:
[0026] The model generation module is used to obtain the lower model of the three-dimensional human body model A; generate a virtual photo frame based on the position of the upper model of the three-dimensional human body model A, and the virtual photo frame and the lower model constitute a virtual-real human body model;
[0027] A reference point generation module, used to generate an upper reference point Q and a lower reference point P in a virtual photo frame based on a virtual feature point Q' and a virtual feature point P' in a three-dimensional human body model A; the imaging positions of the upper reference point Q and the lower reference point P on the imaging plane are respectively consistent with the imaging positions of the virtual feature point Q' and the virtual feature point P' on the imaging plane;
[0028] The image generation module is used to sequentially obtain the local image b1 of the real human body image B currently generated by the user end, the local real human body corresponding to the local image b1 corresponds to the local human body model corresponding to the upper model; based on the posture trajectory of the virtual-real combined human body model, sequentially obtain the virtual-real combined human body model of multiple postures; and sequentially perform a synthesis operation on the local image b1 and the virtual-real combined human body model to generate a continuous plurality of human body posture images, the synthesis operation comprising the following steps:
[0029] Fill the local image b1 of the real human image B into the corresponding area of the virtual photo frame of the virtual-real human model, and make the positions of the real feature points Q'' and P'' in the real human image B coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame respectively;
[0030] Generate the corresponding human posture image of the filled virtual and real human body model.
[0031] The human image generation system combining the above three-dimensional model and the user-side screen, wherein the image generation module generates a plurality of continuous human posture images and also includes a scene image obtained by scene motion compensation, wherein the scene motion compensation includes the scene image moving with a strong amplitude based on a strong rhythm motion axis and moving with a weak amplitude based on a weak illusion motion axis;
[0032] The strong rhythmic movement axis is obtained by the following method:
[0033] The axial motion trajectory of the human body part D of the three-dimensional human body model A is obtained, wherein the axial motion trajectory refers to the motion trajectory of the human body part D continuously on an axis, the strong rhythm motion axis is the axis where the axial motion trajectory is located; the weak illusion motion axis refers to the axis other than the strong rhythm motion axis in the three-dimensional space.
[0034] Compared with the prior art, the present invention has the following advantages: the three-dimensional human body model animation and the real human body image on the user side are combined in real time, which not only fully utilizes the advantages of high efficiency and aesthetics of three-dimensional animation technology in human body motion design, but also fully taps the good visual feedback of user immersion and graceful movement posture brought by the real human body image on the user side being integrated into the pre-designed three-dimensional model animation in real time, thereby allowing users to have a strong sense of flow and pleasure in applications in the fields of fitness, selfies, games, etc., thereby enhancing user attractiveness, and at the same time, the synthesis efficiency is high and no tedious manual production is required.
[0035] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 The figure is a flow chart of the method of the present invention.
[0037] Figure 2 Schematic diagram of the three-dimensional human body model A in the present invention.
[0038] Figure 3 It is a schematic diagram of the virtual-real combined human body model in the present invention.
[0039] Figure 4 This is a schematic diagram of the virtual-real human body model after the synthesis operation.
[0040] Figure 5 For Figure 4 Schematic diagram after adding blocking props.
[0041] Figure 6 This is a system architecture diagram of the present invention. DETAILED DESCRIPTION
[0042] like Figure 1 As shown, the method for generating a human body image by combining a three-dimensional model and a user-side screen includes the following steps:
[0043] Step 1: Obtain a 3D human body model A (such as Figure 2 A virtual photo frame is generated based on the position of the upper model of the three-dimensional human body model A, and the virtual photo frame and the lower model constitute a virtual-real human body model (as shown in FIG. Figure 3 shown);
[0044] It should be noted that the virtual photo frame is a plane, and the size of the virtual photo frame can be set according to actual needs;
[0045] Step 2: Generate an upper reference point Q and a lower reference point P in a virtual photo frame based on the virtual feature point Q' and the virtual feature point P' in the three-dimensional human body model A; the imaging positions of the upper reference point Q and the lower reference point P on the imaging plane coincide with the imaging positions of the virtual feature point Q' and the virtual feature point P' on the imaging plane;
[0046] Step 3, sequentially obtaining a partial image b1 of the real human body image B currently generated by the user end, wherein the partial real human body corresponding to the partial image b1 corresponds to the partial human body model corresponding to the upper model; sequentially obtaining a plurality of virtual-real human body models in different postures based on the posture trajectory of the virtual-real human body model; and sequentially performing a synthesis operation on the partial image b1 and the virtual-real human body model to generate a plurality of continuous human body posture images, wherein the synthesis operation includes the following steps:
[0047] The local image b1 of the real human image B is filled into the corresponding area of the virtual photo frame of the virtual-real human model (such as Figure 4 As shown), and make the positions of the real feature point Q'' and the real feature point P'' in the real human image B coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame respectively;
[0048] Generate the corresponding human posture image of the filled virtual and real human body model.
[0049] By adopting the above technical solution, the following technical effects are achieved:
[0050] First, in step 1, the upper model (such as the upper body) of the three-dimensional human body model A is replaced by a virtual photo frame (plane) to form a virtual-real human body model consisting of the virtual photo frame and the lower model (such as the lower body) of the three-dimensional model A.
[0051] As mentioned above, we must fully utilize the advantages of 3D animation technology in terms of efficiency and aesthetics in human motion design, and be able to integrate the real human body image on the user side into the pre-designed 3D model animation in real time to achieve a good user sense of immersion and beautiful visual feedback of user motion postures. It is already a very mature technology to achieve beautiful human model motion trajectories through 3D animation technology. The key is how to integrate the real human body image on the user side into the pre-designed 3D human body model and animation.
[0052] From the perspective of human body structure, the upper torso of the human body is basically a rigid body (close to a rectangle) that moves, rotates, and scales as a whole (movement forward and backward facing the camera will bring about scaling changes) during movement, and has similar characteristics to the virtual photo frame (rigid body plane) during movement. After the real upper torso image of the user's body is filled into the virtual photo frame in real time, it will move along the motion trajectory of the virtual photo frame. In this way, the graceful posture trajectory of the real upper torso image of the user's body can be generated based on the graceful posture trajectory of the virtual photo frame in the pre-set virtual-reality combined human body model. Combined with the graceful posture trajectory of the lower body model in the pre-set virtual-reality combined human body model, an overall graceful movement posture trajectory similar to "half-real, half-virtual" or "half-human, half-immortal" can be achieved. At the same time, because the real upper body torso image of the user is displayed in real time in the virtual-real human model, and since human identification of themselves is mainly based on the characteristics of the upper body, users have a strong sense of identification and substitution with such beautiful image visual feedback, and will instinctively think that the above-mentioned "semi-real and semi-virtual" overall beautiful movements and postures are all produced by themselves, thereby generating a strong sense of pleasure and flow.
[0053] Furthermore, the three-dimensional human body model A is a stereoscopic model, and the real human body image on the user side is a plane image. By using the virtual photo frame (plane) as a component of the virtual-reality combined human body model, the user-side human body image can be conveniently filled into the photo frame plane using existing image filling technology (such as grid mapping of specific objects in U3D or 3DMax), or the virtual-reality combined human body model can be conveniently established in advance using existing 3D modeling technology (such as generating a grid object with specific parameters in U3D or 3DMax), thereby realizing the real-time fusion of the user-side real image into the three-dimensional human body model at a low cost.
[0054] In addition, by using the virtual photo frame as the upper part of the virtual-real human body model (such as the upper body), using the lower model of the three-dimensional human body model A as the lower part of the virtual-real human body model (such as the lower body), and then filling the real human body image of the user end into the virtual photo frame, it is convenient to design real human body movements that are difficult to produce with traditional post-production tools through computers, such as the lower body not moving, the upper body leaning forward or backward, or turning left or right, etc.;
[0055] Since traditional post-production tools such as PR can only process the overall human body image, complex movements such as partial bending and rotation of the human body can only be manually modified frame by frame based on the corresponding complex movements taken in advance by the user. However, as mentioned earlier, the complex movements of ordinary users are generally difficult to make as beautiful as virtual characters, resulting in a large workload for manual modification and unsatisfactory results.
[0056] Second, in step 2, the corresponding upper reference point Q and lower reference point P are generated in the virtual photo frame based on the virtual feature point Q' (such as the head vertex / neck point in the upper model) and the virtual feature point P' (such as the navel point in the upper model) in the three-dimensional human body model A, and the imaging positions of both parties on the imaging plane are matched. Since the upper model is a three-dimensional model in the three-dimensional space, and the virtual photo frame is a plane, their positions in the three-dimensional space are not the same, so it is necessary to mark appropriate reference points in the virtual photo frame to ensure that the imaging positions of the reference points in the virtual photo frame and the virtual feature points in the upper model on the imaging plane of the final application scene correspond to each other, and then fill the user-side real human body image with a suitable size to the appropriate position of the virtual photo frame based on the upper reference point and the lower reference point, so as to ensure that the virtual-real human body model integrated with the "user-side real human body image" and the pre-designed three-dimensional human body model A present similar visual effects on the imaging plane of the final application scene, and then ensure that the posture trajectory of the virtual-real human body model is as beautiful as the posture trajectory of the pre-designed three-dimensional human body model A.
[0057] For example, firstly, a two-dimensional reference portrait is generated in a virtual photo frame, and the two-dimensional reference portrait includes a human feature point q and a human feature point p; secondly, the two-dimensional reference portrait and the upper model are imaged to the same plane through a specific camera, and the virtual photo frame or the two-dimensional reference portrait on the virtual photo frame is adjusted (for example, scaled, moved) so that the imaging positions of the human feature point q and the human feature point p in the imaging plane coincide with the imaging positions of the virtual feature point Q' and the virtual feature point P' in the imaging plane, respectively, and the human feature point q and the human feature point p in the adjusted two-dimensional reference portrait are the upper reference point Q and the lower reference point P in the virtual photo frame.
[0058] Through such operation, the position of the virtual photo frame on the plane where it is located and the positions of the upper reference point Q and the lower reference point P in the virtual photo frame can be determined, so that the parameters of the virtual-real human body model are further clarified.
[0059] It should be noted that the size of the virtual photo frame should at least meet the free movement area of the upper limbs of the human body and leave a sufficient safety zone; it should be noted that the virtual feature points can be derived from the upper model or from other parts of the three-dimensional human body model A. For example, the virtual feature point P' can be derived from the part of the three-dimensional human body model A that is close to the upper model, because the purpose of "ensuring that the positions of the real feature points Q'' and P'' in the real human body image B coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame respectively" is to make the size, position, and posture of the local real human body corresponding to the local image b1 on the imaging screen similar to the size, position, and posture of the local human body model corresponding to the upper model on the imaging screen. Since the approximate proportions between the various parts of the human body will not deviate too much, and the virtual photo frame can also be larger than the local image b1, even if the virtual feature point P' is derived from the part of the three-dimensional human body model A that is close to the upper model, and the lower reference point P is located outside the local image b1 in the virtual photo frame, the purpose of filling the local image b1 into the appropriate position in the virtual photo frame can still be achieved.
[0060] It should be noted that the two-dimensional reference portrait may be a pre-photographed image of a three-dimensional human body model A, or may be a pre-photographed image of another human body, etc., and may be selected according to a specific usage scenario;
[0061] It should be further explained that the imaging of the specific camera can be orthogonal imaging to more conveniently obtain the virtual-real human body model parameters and flexibly adapt to the actual camera parameters in various subsequent application scenarios, or perspective imaging to accurately match the actual camera parameters in subsequent specific application scenarios, etc., which can be selected according to the specific usage scenario;
[0062] It should be noted that when the upper reference point Q and the lower reference point P are generated respectively in the virtual photo frame, the coordinates of the virtual feature point Q' and the virtual feature point P' can also be converted to directly calculate the positions of the upper reference point Q and the lower reference point P on the virtual photo frame plane, such as projecting the virtual feature point Q' and the virtual feature point P' onto the virtual photo frame plane to obtain the positions of the upper reference point Q and the lower reference point P on the virtual photo frame, or converting the positions of the upper reference point Q and the lower reference point P on the virtual photo frame plane based on the positions of the virtual feature point Q', the virtual feature point P' and the virtual photo frame in the three-dimensional space and the parameters of the specific camera, etc., in order to ensure that the imaging positions of the virtual feature point Q', the virtual feature point P' and the upper reference point Q and the lower reference point P on the same imaging plane are respectively consistent.
[0063] It should be noted that the positions here are consistent. Under ideal conditions, the positions of the pointer and the point coincide, for example, the parameters of the specific camera during production and the actual camera of the application scenario are consistent. Under non-ideal conditions, a certain error between the positions of the points is allowed, for example, there are differences in the parameters of the specific camera during production and the actual camera of the application scenario.
[0064] Third, in step 3, the local images b1 of the real human body image B currently generated by the user end are obtained in turn, and the local real human body corresponding to the local image b1 and the local human body model corresponding to the upper model correspond to each other (for example, the local real human body corresponding to the local image b1 and the local human body corresponding to the upper model are both the upper body of the human body, and the lower body of the real human body image B can be cut off or not displayed at this time); based on the posture trajectory of the virtual-real combined human body model, the virtual-real combined human body models of multiple postures are obtained in turn; and the synthesis operation is performed on the local image b1 and the virtual-real combined human body model in turn, so as to fill the local image b1 into the corresponding area of the virtual photo frame of the virtual-real combined human body model of the corresponding posture, so as to generate multiple continuous human body posture images.
[0065] It should be noted that the real human image B currently generated by the user end is obtained by shooting. For example, in actual operation, the user uses the camera device above the TV to shoot himself, and observes the action / animation effect produced by the fusion of his own human image and the virtual-real human model on the TV screen. As mentioned above, what the user observes on the screen is the animation image of the partial image b1 (such as the image of his own upper body) and the virtual-real human model fused together in real time. Since the overall motion trajectory of the partial image b1 is consistent with the motion trajectory of the virtual photo frame, the overall posture of the fused animation image is as beautiful as the animation posture of the pre-designed three-dimensional human model A, which brings a strong sense of immersion and good visual feedback to the user.
[0066] Furthermore, in the synthesis operation, the local image b1 of the real human image B is filled into the corresponding area of the virtual photo frame of the virtual-real combined human body model, and the positions of the real feature point Q'' (such as the top of the head / neck point) and the real feature point P'' (such as the navel point) in the real human image B are made to coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame.
[0067] In this way, first of all, the local image b1 (such as the image of the user's upper body) can present a visual effect on the final imaging plane that is very close to the upper model of the preset three-dimensional human body model A, or the overall body proportions of the virtual and real human body model after the fusion of the user's body image are very close to the overall body proportions of the more beautiful three-dimensional human body model A, which can further enhance the user's good visual feedback in the application (for example, when taking a selfie, the user will perceive that his body proportions on the screen are as beautiful as those of the demonstration model).
[0068] Secondly, in some application scenarios, the user will be in motion in front of the screen (for example, following the movements of a fitness coach on the TV screen to do fitness). At this time, although the overall motion trajectory of the partial image b1 (for example, the image of the user's upper body) is consistent with the virtual photo frame, the position and posture of the user's body in the partial image b1 will change, and these change trajectories are difficult to be completely consistent with the upper model;
[0069] By aligning the real feature points in the real human image B with the reference points in the virtual photo frame, the posture compensation can be performed on the user-side portrait in the partial image b1, and the non-standard motion trajectory of the user-side portrait can be adjusted to be close to the standard motion trajectory of the preset upper model, which can not only achieve good visual feedback, but also achieve a training effect similar to the coach's "hand-in-hand fitness teaching" (because no matter how the user moves, the motion trajectory presented on the screen must be close to the motion trajectory of the upper model);
[0070] Specifically, based on the relative relationship between the real feature point Q'' and the real feature point P'' in the real human body image B and the upper reference point Q and the lower reference point P in the virtual photo frame, the local image b1 is scaled, moved or rotated so that the positions of the real feature point Q'' and the real feature point P'' match the positions of the upper reference point Q and the lower reference point P respectively, thereby making the body features and posture features of the local image b1 match the corresponding features of the upper model;
[0071] For example, when the three-dimensional human body model A (virtual fitness coach) on the screen moves left and right, the user will also move left and right, but the movement amplitude of both parties cannot be exactly the same. At this time, based on the relative position relationship between the real feature point (such as the navel point) and the lower reference point P, the local image b1 is moved to align it with the corresponding part of the virtual photo frame, which can avoid the misalignment of the local image b1 (upper body) and the lower model (lower body); for example, when the three-dimensional human body model A (virtual fitness coach) on the screen moves forward and backward, the user will also move forward and backward, but the movement amplitude of both parties cannot be exactly the same. At this time, based on the distance between the real feature point Q'' and the real feature point P'' in the real human body image B and the distance between the upper reference point Q and the lower reference point P in the virtual photo frame. The proportional relationship is calculated by converting the distance between the two images, and the local image b1 is scaled to align it with the corresponding part of the virtual photo frame. This can avoid the situation where the size of the local image b1 (upper body) and the lower model (lower body) is obviously mismatched. For example, when the three-dimensional human model A (virtual fitness coach) on the screen rotates its trunk (such as twisting the hips), the user will also rotate his trunk, but the rotation amplitude of both parties cannot be exactly the same. At this time, based on the angle between the line between the real feature point Q'' and the real feature point P'' in the real human image B and the line between the upper reference point Q and the lower reference point P in the virtual photo frame, the local image b1 is rotated to align it with the corresponding part of the virtual photo frame. This can make the local image b1 (upper body) more matched and beautiful with the lower model (lower body) when rotated.
[0072] It should be noted that the positions of the real feature points Q'' and P'' in the real human body image B are made to coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame, respectively. In an ideal state, the positions of the pointer and the point coincide with each other. In a non-ideal state, certain differences in the positions of the points are allowed. For example, a threshold value can be set in advance, and the position difference within the threshold range is considered to be a coincidence. Only when the position difference between the real feature point Q'' and the upper reference point Q or the position difference between the real feature point P'' and the lower reference point P exceeds the threshold value, the local image b1 is readjusted (new adjustment parameters are set); the threshold value is set according to an empirical value, and a Generally, it means that the posture difference is within the visually acceptable range. For example, if the posture difference between the current real human body image B and the reference real human body image B / the adjacent real human body image B is small, then the local image b1 can be adjusted based on the adjustment parameters of the reference real human body image B / the adjacent real human body image B. In this way, on the one hand, it can avoid frequent abnormal adjustments to the local image b1 caused by the recognition errors of the real feature points of the human body in the prior art, and the resulting visual defects such as jitter. On the other hand, since the human body movement posture is composed of multiple frames of continuous pictures, in many cases the posture difference between adjacent or similar frames is not large, which can reduce the amount of calculation.
[0073] It should be noted that when performing posture compensation on the user-side portrait in the local image b1, since the user-side human body is in continuous motion, in order to simplify the calculation, the current user-side picture can also be moved, scaled, rotated, etc. based on the relative relationship between specific real feature points in the current user-side picture (which can be real feature points Q'' and / or real feature points P'', or other real feature points) and corresponding real feature points in the reference user-side picture (such as the user-side initial picture), so that it maintains posture consistency with the reference user-side picture, and then the adjusted current user-side picture is filled into the virtual photo frame according to the relative position relationship between the real feature points Q'' and real feature points P'' in the reference user-side picture and the upper reference point Q and the lower reference point P in the virtual photo frame, which is essentially the same.
[0074] In addition, the current local image b1 and the current posture virtual-real human body model are updated in sequence, and the current local image b1 is filled into the virtual photo frame of the current posture virtual-real human body model in sequence. This can be achieved in U3D or 3DMax by sequentially updating the texture of the material of the corresponding mesh, and other methods. Among them, updating the texture of the material of the mesh is a commonly used technology in this field.
[0075] It should be noted that the above-mentioned feature point alignment makes the posture features of the local image b1 match the posture features of the upper model, which is generally used to match the posture features of the user-side human body trunk with the posture features of the torso of the three-dimensional human body model A. The reason is that, first, as mentioned above, due to the characteristics of the human body structure, the movement trajectory of the virtual photo frame and the movement trajectory of the human body trunk can be constructed to be basically consistent through technical means. Second, the virtual photo frame (the upper torso of the user-side human body image) plus the lower model (the lower part of the human body in the three-dimensional model) are sufficient to construct most of the content of the human body and the human body's movement posture. The beauty of the human body's movement posture is mainly determined by the above parts. Third, the upper limbs of the human body are relatively flexible, allowing them to learn independently from the fitness coach on the screen and generate user visual feedback. It is relatively easy to learn, and through these completely real local movements, the user can have a stronger sense of reality and substitution.
[0076] Furthermore, based on the virtual-real combined human body model or the image of the virtual-real combined human body model after filling the partial image b1, a human body posture image of the virtual-real combined human body model is generated. In this way, the user can observe the aforementioned "semi-real and semi-virtual" overall picture effect, wherein the three-dimensional model (virtual-real combined human body model) is generated into an image, which is a common technology in the field, such as image rendering, image synthesis, etc.
[0077] It should be noted that the local image b1 is filled into the corresponding area of the virtual photo frame of the virtual-real human body model. The corresponding area of the virtual photo frame can be the virtual photo frame area on the virtual-real human body model or the virtual photo frame area in the image of the virtual-real human body model.
[0078] In actual operation, the local image b1 may be first filled into the corresponding area of the virtual photo frame of the virtual-real human body model in the virtual three-dimensional space, and then the final human body posture image of the virtual-real human body model may be generated through image rendering, image synthesis, etc. The human body posture image may generate an imaging picture of the virtual-real human body model;
[0079] Alternatively, virtual-real combined human body model images of different postures before filling the partial image b1 may be generated, in which case the virtual photo frame is blank, and then the partial image b1 is filled into the corresponding area of the virtual photo frame of the virtual-real combined human body model image, and then the final human body posture image is generated based on the filled virtual-real combined human body model image;
[0080] The above two methods of generating the final human body posture image are essentially the same.
[0081] Example scenario 1, selfie scenario: the user uses the camera device above the TV to shoot himself, and observes the dance movement image generated by the fusion of his upper body image in the main area in the middle of the TV screen and the lower model of the preset three-dimensional human model A (such as a dance model). The full body or upper body dance movement image of the three-dimensional human model A (such as a dance model) can appear in the upper right corner of the TV screen for action demonstration. In practice, the user only needs to use the upper limbs or arms to simulate the demonstration movements of the dance model, and other parts of the body do not need to make additional movements, so that the self-portrait dance image with graceful posture and beautiful figure can be quickly and conveniently taken.
[0082] Example scenario 2, fitness scenario: the user uses the camera device above the TV to shoot himself, and observes the fitness action image generated by the fusion of his upper body image in the main area in the middle of the TV screen and the lower model of the preset three-dimensional human model A (such as a fitness model). The full body or upper body fitness action image of the three-dimensional human model A (such as a fitness model) can appear in the upper right corner of the TV screen for action demonstration. In practice, the user follows the movements of the fitness model to perform fitness exercises, and observes the "half-real and half-virtual" beautiful action images of himself on the screen in real time. As mentioned above, the user has a strong sense of substitution in this case, and will unconsciously regard the lower model as a part of his body, and the virtual and real human model is himself. Since the posture beauty and rhythm of the model animation are relatively easy to design perfectly, it brings a strong sense of pleasure and flow to the user, making the user willing to stick to fitness. In addition, no matter how the user moves, the movement trajectory of the main part of the human body (such as the lower part of the human body and the human torso) presented on the screen must be close to the standard movement trajectory of the three-dimensional human body model A (fitness model), allowing the user to feel the training effect similar to the coach's "hand-in-hand fitness teaching" in real time during exercise.
[0083] In addition, the solution of the present invention can also be used in other scenarios such as real-life games to improve user flow and reduce the difficulty of implementing actions, such as conveniently implementing actions such as rooftop leaping and grass flying in game scenes.
[0084] It should be noted that the real feature points are feature points corresponding to human body parts that can be obtained through image recognition, including feature points corresponding to human body parts that can be obtained through image recognition or feature points converted based on the relative position relationship between the feature points corresponding to human body parts and “other feature points corresponding to human body parts” / “points or lines on the human body image” / “points or lines on the screen of the target image” / “points or lines on the screen of the user end”, etc.;
[0085] Obtaining corresponding feature points of human body parts through image recognition is a commonly used technology in this field. For example, the corresponding feature points of human body parts in the user-side screen can be obtained through human body recognition software implemented based on deep learning or other methods, or the human body image can be obtained through human body recognition software implemented based on deep learning or other methods, and then the corresponding feature points of human body parts are obtained through image analysis. The corresponding feature points of human body parts can also be obtained by setting marking lines or markers. For example, marking lines are set on the display screen to prompt the user to make the corresponding feature points of human body parts such as the vertex of the head / vertical midline of the human body coincide with the corresponding marking lines based on their own perception to obtain the corresponding feature points of human body parts, or specific markers are marked on specific parts of the user's body and then the corresponding feature points of human body parts are obtained through image analysis, etc.
[0086] In this embodiment, the three-dimensional human body model A is in a three-dimensional space coordinate system in the virtual three-dimensional space, the vertical plane of the upper model in the virtual three-dimensional space is parallel to the XY plane in the three-dimensional space coordinate system, and the vertical plane of the virtual photo frame is parallel to the XY plane.
[0087] By adopting the above technical solution, the following technical effects are achieved:
[0088] Assume that the three-dimensional human body model A is an upright human body model, and the upper model and the lower model are the upper body model and the lower body model of the human body respectively; the upper body model of the human body is intercepted or hidden, and then replaced by a virtual photo frame, the vertical planes of the virtual photo frame and the trunk of the upper body model of the human body are parallel, for example, in the virtual three-dimensional space, the vertical plane passing through the bottom and top parts of the upper body model of the human body is parallel to the XY plane in the three-dimensional space coordinate system, and the vertical plane of the virtual photo frame is parallel to the XY plane. By clarifying that the virtual photo frame is parallel to the vertical plane where the upper model is located, the final imaging posture of the user-end portrait in the virtual photo frame can be closer to the final imaging posture of the upper model.
[0089] In this embodiment, the Z coordinate of the virtual photo frame is generated based on the Z coordinate of the virtual feature point Q' and the Z coordinate of the virtual feature point P' of the upper model, or based on the Z coordinate of the endpoint of the widest part of the bottom surface of the upper model.
[0090] By adopting the above technical solution, the following technical effects are achieved:
[0091] Assuming that the upper model is a human upper body model, the virtual feature point Q' is the head vertex / neck point, and the virtual feature point P' is the navel point. Since the upper model is a three-dimensional model (there will be a difference between the Z coordinates of Q' and P'), and the virtual photo frame is a plane, when the Z coordinate of the virtual photo frame is generated based on the Z coordinates of the virtual feature points Q' and P' (for example, the Z coordinate of the virtual photo frame is a value between the Z coordinate of the virtual feature point Q' and the Z coordinate of the virtual feature point P'), the distance between the virtual photo frame and the virtual feature points Q' and P' in the Z-axis direction will not be too large, and then the relative positions of the three and the shooting camera will not be too far apart, so that the final imaging effect of the user-end portrait in the virtual photo frame can be closer to the final imaging effect of the upper model; when based on When the Z coordinate of the end point at the widest part of the bottom surface of the upper model is used to generate the Z coordinate of the virtual photo frame (for example, the Z coordinate of the end points at the widest parts on the left and right sides of the waist are selected as the Z coordinate of the virtual photo frame), since the upper model is a three-dimensional model, there is obviously no other body part in front of the end points at the widest part of its bottom surface (for example, the widest parts on both sides of the waist) to block, and thus it can be captured by the camera and become the edge points on both sides of the bottom of the upper body on the imaging plane (for example, the waist edge points on the imaging plane). Therefore, the Z coordinate of the virtual photo frame is generated based on the Z coordinate of the end point at the widest part of the bottom surface. When the user-side portrait is subsequently filled into the virtual photo frame, the final imaging effect of the user-side portrait in the virtual photo frame and the final imaging effect of the upper model can have better connectivity in the width direction.
[0092] It should be noted that, since the three-dimensional human body model A is generally in a regular posture when it is established, the Z coordinates of the endpoints at both ends of the widest part of the bottom surface of the upper model are often the same. Therefore, the Z coordinate of the virtual photo frame can be directly generated based on the Z coordinate of one point at the two end points, or the Z coordinate of the virtual photo frame can be converted based on the Z coordinates of two points at the two end points, depending on the specific situation.
[0093] It should be further explained that when the user-side portrait is filled into the virtual photo frame, the user-side portrait can be appropriately scaled in width based on the distance between the endpoints at the widest part of the bottom surface of the upper model in the X-axis direction, so that the final imaging effect of the user-side portrait is more consistent with the upper model.
[0094] In this embodiment, the virtual feature point Q' is the top point of the upper model, and the virtual feature point P' is the bottom point of the upper model, and the bottom point of the upper model is located at the lower abdomen of the three-dimensional human body model A. Preferably, the virtual feature point Q' and the virtual feature point P' are the head vertex / neck point and the navel point, respectively.
[0095] By adopting the above technical solution, the following technical effects are achieved:
[0096] As mentioned above, the torso of the user-side human body image is basically completely displayed in the virtual-real human body model from the top to the lower abdomen, which helps to form a stronger sense of user involvement and construct a beautiful overall motion trajectory. In addition, when the existing technology obtains the real feature points of the user-side human body image in real time, the accuracy of the real feature points of the top part, such as the top of the head, is relatively stable, while when the human body is exercising violently, the accuracy of the real feature points of other parts often has a small up and down change error, which in turn causes the bottom part (such as the navel part) of the user-side human body image displayed in the virtual photo frame to change up and down. In the human body torso, the small up and down change error of the lower abdomen (such as the navel point) is the least sensitive in terms of visual effect. Through such a combination of human body parts and feature points, the image of the virtual-real human body model after integrating the real human body image of the user end can be made more natural during continuous motion.
[0097] In this embodiment, the three-dimensional human body model A also includes shielding props (such as Figure 5 As shown), the upper model originates from the part of the three-dimensional human body model A located above the blocking prop; there is a connecting surface between the blocking prop and the virtual photo frame, and the intersection line between the connecting surface and the virtual photo frame is the displayable bottom line of the torso part in the local image b1.
[0098] By adopting the above technical solution, the following technical effects are achieved:
[0099] First, the main function of the occlusion props (such as the belt around the 3D human body model A) is to block the connection between the virtual photo frame and the lower model. Since the actual user-side human bodies vary greatly, it is difficult for the upper part of the user-side real human body image (partial image b1) and the lower part of the preset 3D human body model to completely match at the joint. Therefore, the introduction of occlusion props can not only improve the overall aesthetics of the virtual-real human body model, but also simulate the line of sight occlusion effect in the real scene, so that the generated human body image is more in line with the actual observation situation, increasing the authenticity and complexity of the scene.
[0100] Secondly, there is a connecting surface between the blocking prop and the virtual photo frame, and the intersection line between the connecting surface and the virtual photo frame is the visible bottom line of the torso in the local image b1. Since the human body model may perform various movements in reality, its relative position and angle with the camera may change at any time. For the three-dimensional human body model A, as long as the blocking object is tied around it (for example, tied around the waist around its navel point), because the blocking object is close to the three-dimensional human body model A, no matter how its relative position and relative angle with the camera change, the visible bottom of the upper model of the three-dimensional human body model A is stable, which is also in line with the observer's daily life common sense. For the virtual-real human body model, its upper part is a virtual photo frame, and there will inevitably be blank space between the virtual photo frame plane and the inner wall of the blocking object. When the relative position and relative angle of the virtual-real human body model and the camera change, the virtual photo frame will be visible at any time. The displayable bottom line of the torso of the user-side human image in the frame may change, and this change is frequent and random. At the same time, the virtual-real human body model simulates the movement effect of a three-dimensional human body model, which will bring discomfort and visual effects that violate common sense to the observer. For example, a "hollow" visual effect appears at the junction of the display bottom of the torso of the user-side human image and the lower model and the occluding object, or the display bottom of the torso of the user-side human image fluctuates up and down. By establishing a connecting surface between the occluding props and the virtual photo frame (equivalent to attaching the occluding props tightly to the virtual photo frame), a stable displayable bottom line of the torso in the local image b1 can be formed under various movement conditions, thereby better solving the above problems.
[0101] In this embodiment, the intersection line between the connection surface and the virtual photo frame is close to the lower reference point P.
[0102] By adopting the above technical solution, the following technical effects are achieved:
[0103] Since the intersection line between the connecting surface and the virtual photo frame is the displayable bottom line of the torso in the partial image b1, it corresponds to the bottom part of the torso in the partial image b1 displayed in the virtual-real human body model, and is generally also the boundary-connection part between the torso and the blocking props in the partial image b1 on the display interface, which is a more sensitive part in terms of visual effect. If the lower reference point P (such as the navel point) is too far away from the intersection line in the virtual-real human body model, the actual body shape of the user varies greatly, and there may be obvious differences from the three-dimensional human body model A. For example, the ratio of the distance from the navel to the hip of some human bodies to the distance from the navel to the top of the head is relatively large, while the ratio of some human bodies is relatively small. If the distance between the connecting surface and the virtual frame is small, after the real human body images B of different users are filled into the virtual photo frame, the bottom part of the torso displayed in the virtual-reality combined human body model is unstable, thus bringing a poor visual effect. However, based on the position of the lower reference point P, an intersection line between the connecting surface and the virtual photo frame is generated, so that the position of the intersection line and the lower reference point P is close (for example, the lower reference point P is located on the intersection line). This problem can be solved. For example, after the real human body images B of different users are filled into the virtual photo frame, the bottom part of the torso displayed in the virtual-reality combined human body model is the navel point, which can be combined with the lower model and the blocking props to form a good visual effect that meets the design expectations.
[0104] In this embodiment, the posture trajectory of the virtual-reality combined human body model in step 3 includes the posture trajectory of the lower model, the posture trajectory of the virtual photo frame and the posture trajectory of the occluding props. The posture trajectory of the virtual photo frame is generated based on the posture trajectory feature point K of the upper model, and the posture trajectory of the occluding props is generated based on the posture trajectory feature point K or the virtual photo frame.
[0105] By adopting the above technical solution, the following technical effects are achieved:
[0106] The posture trajectory of the virtual photo frame is generated based on the posture trajectory feature point K of the upper model, which can ensure that the overall posture trajectory of the human body of the virtual-real human body model is consistent with the overall posture trajectory of the human body of the three-dimensional human body model A; the posture trajectory of the occluding props is consistent with the posture trajectory of the virtual photo frame, which can ensure that the occluding props always cover the joint between the upper part of the real human body image on the user side and the lower part of the preset three-dimensional human body model. It should be noted that the occluding props are generally preferably made of a relatively rigid material, so as to form a natural visual effect under the posture trajectory generated based on the posture trajectory feature point K (usually a bone point).
[0107] In this embodiment, the imaging positions of the posture trajectory feature point K and the virtual feature point P' on the imaging plane coincide, and the lower reference point P is located on the displayable bottom line of the torso in the partial image b1.
[0108] By adopting the above technical solution, the following technical effects are achieved:
[0109] The virtual feature point P' is generally a human feature point located on the surface of the three-dimensional human body model, and the posture trajectory feature point K is generally a bone feature point located inside the three-dimensional human body model. Traditional modeling generally does not consider the precise correspondence between the two. In the application scenario of the present invention, the imaging positions of the two on the imaging plane are made to match during modeling. For example, when the virtual feature point P' is the navel point, the posture trajectory feature point K is a specific bone point on the spine directly behind the navel point. Since the imaging positions of the lower reference point P and the virtual feature point P' on the imaging plane are also consistent, the imaging positions of the posture trajectory feature point K and the lower reference point P on the imaging plane are also consistent. Furthermore, because the lower reference point P is located on the displayable bottom line of the torso part in the local image b1, the posture trajectory feature point K is also located on the displayable bottom line of the torso part in the local image b1 on the imaging plane.
[0110] The benefits brought about by this are, on the one hand, when the posture trajectory feature point K is located at the lower abdomen of the upper model, its motion trajectory can obviously more accurately reflect the overall motion trajectory of the torso of the upper model (as mentioned above, the torso usually moves as a whole when the human body moves), thereby making the posture trajectory of the virtual photo frame generated based on the posture trajectory feature point K closer to the posture trajectory of the upper model. On the other hand, since the lower reference point P is located on the displayable bottom line, its position on the imaging plane is consistent with that of the posture trajectory feature point K, so the height position of the posture trajectory feature point K is exactly located at the displayable bottom of the torso of the real human image of the user end in the virtual photo frame and its splicing with the lower model. In this way, the stability of the joint between the two sides can be ensured during movement. If the height position of the posture trajectory feature point K is not exactly located at the displayable bottom end of the real human image torso of the user end in the virtual photo frame and its joint with the lower model, the skeleton may be stretched when the human model moves, such as the motion parameters such as the up and down motion speed of the skeleton point and the up and down motion speed of the middle segment of the skeleton, and the motion parameters such as the up and down motion speed of the virtual photo frame are consistent with the posture trajectory feature point K. In this way, the top of the lower model and the displayable bottom end of the real human image torso of the user end in the virtual photo frame may overlap and separate sometimes, bringing uncomfortable visual effects. In actual model making, when the height position of the posture trajectory feature point K is exactly located at the displayable bottom end of the real human image torso of the user end in the virtual photo frame and its joint with the lower model, since the motion weight of the top surface of the lower model can only come from the posture trajectory feature point K, and is not affected by other adjacent motion skeleton points, the stability of the top of the lower model and the displayable bottom end joint of the real human image torso of the user end in the virtual photo frame can be ensured. Of course, in actual production, a certain gap can be made between the top of the lower model and the displayable bottom of the torso of the real human image of the user end in the virtual photo frame to solve the problem of inconsistent motion trajectories between the top of the lower model and the displayable bottom. At this time, the posture trajectory feature point K can correspond to the top position of the lower model or the position of the displayable bottom. Further, the real human image of the user end can also fill a part of the following area corresponding to the lower reference point P in the virtual photo frame to fill the gap between the top of the lower model and the displayable bottom, further preventing possible adverse visual effects caused by position mark defects during production. The specific scheme can be selected according to actual conditions. This embodiment provides a production scheme that is intuitive and convenient to operate while having a stable final display effect. It should be noted that the positions here are consistent, and the positions of the pointer and the point coincide in an ideal state, and a certain error in the positions of the points is allowed in a non-ideal state.
[0111] In this embodiment, the continuous multiple human posture images generated in step 3 also include scene images obtained by scene motion compensation, wherein the scene motion compensation includes the scene image moving with a strong amplitude based on a strong rhythm motion axis and moving with a weak amplitude based on a weak illusion motion axis; it should be noted that the movement of the scene image includes the movement of the scene image content and / or the movement of the scene image shooting camera;
[0112] The strong rhythm motion axis is obtained by the following method: obtaining the axial motion trajectory of the human body part D of the three-dimensional human body model A, the axial motion trajectory refers to the motion trajectory of the human body part D continuously on an axis, and the strong rhythm motion axis is the axis where the axial motion trajectory is located; the weak illusion motion axis refers to the axis other than the strong rhythm motion axis in the three-dimensional space.
[0113] By adopting the above technical solution, the following technical effects are achieved:
[0114] When the prior art obtains the real feature points of the user-end human body image in real time, especially when the user-end human body is in a more intense motion state, its accuracy will have a certain deviation. When the alignment operation is performed based on the real feature points of the user-end human body image and the upper and lower reference points in the virtual photo frame and the user-end human body image is filled into the virtual photo frame, although such a small deviation does not cause the misalignment between the upper image (partial image b1) of the user-end human body and the lower model in the virtual photo frame, and does not affect the overall visual effect of the virtual-real human body model, but because the direction of such small deviations is random and relatively frequent when the user-end human body moves, the upper image (partial image b1) of the user-end human body in the virtual-real human body model will follow the overall motion trajectory of the upper model while also having additional slight jitters, which will cause certain visual discomfort. For example, when a user follows a fitness coach to do fitness exercises in front of a TV screen, he will perceive that his "semi-real and semi-virtual" motion trajectory on the screen has certain jitters, so it is necessary to eliminate such visual discomfort through scene movement compensation.
[0115] Scene motion compensation first includes that the scene image moves with a strong amplitude based on a strong rhythmic motion axis, that is, the motion axis of the scene image must be consistent with the motion axis of a specific human body part D in the moving human body on the user side (the human body part D generally refers to the main moving part of the human body during movement). For example, when the human body part D moves forward and backward, the strong rhythmic motion axis is the forward and backward axis; when the human body part D moves left and right, the strong rhythmic motion axis is the left and right axis. The reason is that the movement of the scene image will give the audience the illusion that the virtual and real human body model moves on the corresponding axis. If the scene image and the human body part D's motion axes are inconsistent and move with a strong amplitude, for example, when the human body part D moves forward and backward and the strong rhythmic motion axis is the left and right axis, it will give the audience a strange visual effect that the virtual and real human body model is dominant in the moving direction. When the axes of the two are consistent, the user's sense of amplitude in the main movement direction of the human body will be enhanced, and the motion rhythm flow will be enhanced.
[0116] Furthermore, when the scene image moves, it also moves with a weak amplitude based on the weak illusion motion axis. For example, when the human body part D moves forward and backward, the scene image also moves with a weak amplitude based on the left and right axis. Because only by moving the scene image in a single axis of the strong rhythm motion axis, although the real-time movement and change of the scene image causes the moving human body to have no static reference object, the shaking feeling on the motion trajectory of the virtual-real human body model can be reduced to a certain extent, but the effect is not ideal. The reason is that the human brain has been trained to accurately perceive the size and shape changes of objects moving in a single axis in the long evolutionary history. For example, in ancient times, when a tiger rushed towards a person in a straight line, the human brain could accurately perceive the size change and the resulting distance change during the tiger's movement (otherwise it would not be able to escape). In the electronic virtual world, if the tiger image has a slight shake during the above single axis movement, the human brain will feel uncomfortable because it violates its own training memory or common sense.
[0117] After repeated experiments, it was found that if the scene image is moved with a strong amplitude based on the strong rhythm motion axis and with a weak amplitude based on the weak illusion motion axis, for example, when the human body part D moves forward and backward, the scene image is moved based on the front-back axis and the left-right axis at the same time, the jitter feeling on the motion trajectory of the virtual-real human body model can be significantly reduced. As mentioned above, the movement of the scene image will give the audience the illusion that the virtual-real human body model is moving on the corresponding axis, but the human brain does not have the training memory for the size and shape changes of moving objects on such a complex trajectory, and cannot accurately perceive how the size and shape of the object should change on the complex trajectory (for example, in ancient times, it was impossible for a tiger to rush towards a person from left to right at a high frequency, and in fact, a tiger could not make such a move).
[0118] At the same time, because the scene image is moved with a weak amplitude on the weak illusion motion axis, the audience will not be given a visual effect in which the virtual and real human body model dominates the moving direction, and therefore will not interfere with the user's physical sensation during exercise.
[0119] In this embodiment, in the three-dimensional space coordinate system, when the strong rhythm movement axis is the X-axis, the weak illusion movement axis is the Y-axis and / or the Z-axis; when the strong rhythm movement axis is the Z-axis, the weak illusion movement axis is the X-axis; when the strong rhythm movement axis is the Y-axis, the weak illusion movement axis is the X-axis.
[0120] By adopting the above technical solution, the following technical effects are achieved:
[0121] Since the movement of the scene image on the front-to-back axis (Z axis) in three-dimensional space will also cause changes in the up-down axis (Y axis) on the two-dimensional imaging plane, it is necessary to avoid simultaneous movement of the scene image on the front-to-back axis (Z axis) and the up-down axis (Y axis) in three-dimensional space to avoid interference with the visual effect.
[0122] In this embodiment, the strong amplitude is generated based on the size of the scene image and / or based on the movement amplitude of the human body part D on the strong rhythm movement axis, and the weak amplitude is smaller than the strong amplitude.
[0123] By adopting the above technical solution, the following technical effects are achieved:
[0124] For example, when the movement amplitude of the scene image is generated by the movement of the scene image content, the imaging area of the scene image generally corresponds to a part of the complete content of the scene image. Assuming that the screen size of the imaging area of the scene image is 1920*1080, the movement amplitude of the scene image content (such as the screen content of the imaging area) on the X-axis can be generated according to a certain proportion (such as 50%) of the width size (1920) of the screen of the imaging area, the movement amplitude of the scene image content on the Y-axis can be generated according to a certain proportion (such as 50%) of the height size (1080) of the screen of the imaging area, and the movement amplitude of the scene image content on the Z-axis can be generated according to the change ratio of the area size of the specific content in the screen of the imaging area (such as enlarging or reducing by 50%). In addition, the strong amplitude can also be generated based on the movement amplitude of the human body part D on the strong rhythm motion axis, the purpose is to make the overall picture more coordinated and beautiful. Further, the strong amplitude can also be generated after matching / converting the picture size of the imaging area and the movement amplitude of the human body part D on the strong rhythm motion axis. For example, the movement speed of the scene image content on the X-axis is greater than the movement speed of the human body part D on the X-axis (in the same time, the movement amplitude of the scene image content on the X-axis is greater than the movement amplitude of the human body part D on the X-axis), so as to further reduce the jitter of the human body image in some cases. The specific selection can be based on actual needs.
[0125] The weak amplitude is generally significantly smaller than the strong amplitude. For example, when the strong amplitude is 50% of the width dimension (1920) of the image of the imaging area on the X-axis, the weak amplitude may be 25% of the height dimension (1080) of the image of the imaging area on the Y-axis. This can avoid the visual effect of the weak illusion moving in the axial direction and causing distraction.
[0126] In this embodiment, the human body part D is the human body part with the largest movement amplitude on the lower model.
[0127] By adopting the above technical solution, the following technical effects are achieved:
[0128] The human body part D generally refers to the main moving part of the human body during movement. When this part is located on the lower model, as mentioned above, the user will instinctively think that the lower model is a part of his own body. At the same time, the movement trajectory and rhythm of the human body part of the lower model are very standard. The scene image movement trajectory formed thereby will bring the user a better overall picture effect and physical sensation.
[0129] In this embodiment, when the moving direction of the human body part D on the strong rhythm movement axis remains unchanged, the moving direction of the scene image on the strong rhythm movement axis remains unchanged.
[0130] By adopting the above technical solution, the following technical effects are achieved:
[0131] Since fitness exercises are often symmetrical movements, such as symmetrical movement left and right or front and back, it is convenient to set the single-direction movement period of the scene image on the strong rhythm movement axis to be an integer multiple of the single-direction movement period of the human body part D on the strong rhythm movement axis, giving the user a better sense of rhythm. It should be noted that the single-direction movement period of the scene image on the weak illusion movement axis can be consistent with the single-direction movement period of the scene image on the strong rhythm movement axis, for example, to further enhance the sense of rhythm, etc., or it can be inconsistent, for example, to further enhance the visual illusion, etc., and can be selected according to actual conditions.
[0132] like Figure 6 As shown, the present invention also discloses a human body image generation system combining a three-dimensional model and a user terminal screen, comprising:
[0133] The model generation module is used to obtain the lower model of the three-dimensional human body model A; generate a virtual photo frame based on the position of the upper model of the three-dimensional human body model A, and the virtual photo frame and the lower model constitute a virtual-real human body model;
[0134] A reference point generation module, used to generate an upper reference point Q and a lower reference point P in a virtual photo frame based on a virtual feature point Q' and a virtual feature point P' in a three-dimensional human body model A; the imaging positions of the upper reference point Q and the lower reference point P on the imaging plane are respectively consistent with the imaging positions of the virtual feature point Q' and the virtual feature point P' on the imaging plane;
[0135] The image generation module is used to sequentially obtain the local image b1 of the real human body image B currently generated by the user end, the local real human body corresponding to the local image b1 corresponds to the local human body model corresponding to the upper model; based on the posture trajectory of the virtual-real combined human body model, sequentially obtain the virtual-real combined human body model of multiple postures; and sequentially perform a synthesis operation on the local image b1 and the virtual-real combined human body model to generate a continuous plurality of human body posture images, the synthesis operation comprising the following steps:
[0136] Fill the local image b1 of the real human image B into the corresponding area of the virtual photo frame of the virtual-real human model, and make the positions of the real feature points Q'' and P'' in the real human image B coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame respectively;
[0137] Generate the corresponding human posture image of the filled virtual and real human body model.
[0138] In this embodiment, the three-dimensional human body model A is in a three-dimensional space coordinate system in the virtual three-dimensional space, the vertical plane of the upper model in the virtual three-dimensional space is parallel to the XY plane in the three-dimensional space coordinate system, and the vertical plane of the virtual photo frame is parallel to the XY plane.
[0139] In this embodiment, the Z coordinate of the virtual photo frame is generated based on the Z coordinate of the virtual feature point Q' and the Z coordinate of the virtual feature point P' of the upper model, or based on the Z coordinate of the endpoint of the widest part of the bottom surface of the upper model.
[0140] In this embodiment, the virtual feature point Q' is the top point of the upper model, and the virtual feature point P' is the bottom point of the upper model. The bottom point of the upper model is located at the lower abdomen of the three-dimensional human body model A.
[0141] In this embodiment, the three-dimensional human body model A also includes an occluding prop, and the upper model originates from the part of the three-dimensional human body model A located above the occluding prop; there is a connecting surface between the occluding prop and the virtual photo frame, and the intersection line between the connecting surface and the virtual photo frame is the displayable bottom line of the torso part in the local image b1.
[0142] In this embodiment, the intersection line between the connection surface and the virtual photo frame is close to the lower reference point P.
[0143] In this embodiment, the posture trajectory of the virtual-reality combined human body model includes the posture trajectory of the lower model, the posture trajectory of the virtual photo frame and the posture trajectory of the occluding props. The posture trajectory of the virtual photo frame is generated based on the posture trajectory feature point K of the upper model, and the posture trajectory of the occluding props is generated based on the posture trajectory feature point K or the virtual photo frame.
[0144] In this embodiment, the imaging positions of the posture trajectory feature point K and the virtual feature point P' on the imaging plane coincide, and the lower reference point P is located on the displayable bottom line of the torso in the partial image b1.
[0145] In this embodiment, the continuous plurality of human posture images generated by the image generation module also include scene images obtained by scene motion compensation, wherein the scene motion compensation includes the scene image moving with a strong amplitude based on a strong rhythm motion axis and moving with a weak amplitude based on a weak illusion motion axis;
[0146] The strong rhythmic movement axis is obtained by the following method:
[0147] The axial motion trajectory of the human body part D of the three-dimensional human body model A is obtained, wherein the axial motion trajectory refers to the motion trajectory of the human body part D continuously on an axis, the strong rhythm motion axis is the axis where the axial motion trajectory is located; the weak illusion motion axis refers to the axis other than the strong rhythm motion axis in the three-dimensional space.
[0148] In this embodiment, in the three-dimensional space coordinate system, when the strong rhythm movement axis is the X-axis, the weak illusion movement axis is the Y-axis and / or the Z-axis; when the strong rhythm movement axis is the Z-axis, the weak illusion movement axis is the X-axis; when the strong rhythm movement axis is the Y-axis, the weak illusion movement axis is the X-axis.
[0149] In this embodiment, the strong amplitude is generated based on the size of the scene image and / or based on the movement amplitude of the human body part D on the strong rhythm movement axis, and the weak amplitude is smaller than the strong amplitude.
[0150] In this embodiment, the human body part D is the human body part with the largest movement amplitude on the lower model.
[0151] In this embodiment, when the moving direction of the human body part D on the strong rhythm movement axis remains unchanged, the moving direction of the scene image on the strong rhythm movement axis remains unchanged.
[0152] In view of the fact that the system embodiment adopts the technical principles and methodology consistent with the method embodiment, this document will no longer elaborate on the technical details of the system embodiment, but instead recommends that readers directly refer to the detailed description and explanation provided in the method embodiment to obtain a comprehensive understanding of the working principles of the system embodiment.
[0153] The above is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any simple modification, change and equivalent structural change made to the above embodiment according to the technical essence of the present invention still fall within the protection scope of the technical solution of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims and their equivalents.
Claims
1. A method for generating human body images by combining a three-dimensional model with a user-side screen. It is characterized in that The following steps are involved: Step 1, obtaining the lower model of the three-dimensional human body model A; generating a virtual photo frame based on the position of the upper model of the three-dimensional human body model A, wherein the virtual photo frame and the lower model constitute a virtual-real human body model; Step 2: Generate an upper reference point Q and a lower reference point P in a virtual photo frame based on the virtual feature point Q' and the virtual feature point P' in the three-dimensional human body model A; the imaging positions of the upper reference point Q and the lower reference point P on the imaging plane coincide with the imaging positions of the virtual feature point Q' and the virtual feature point P' on the imaging plane; Step 3, sequentially obtaining a partial image b1 of the real human body image B currently generated by the user end, wherein the partial real human body corresponding to the partial image b1 corresponds to the partial human body model corresponding to the upper model; sequentially obtaining a plurality of virtual-real human body models in different postures based on the posture trajectory of the virtual-real human body model; and sequentially performing a synthesis operation on the partial image b1 and the virtual-real human body model to generate a plurality of continuous human body posture images, wherein the synthesis operation includes the following steps: Fill the local image b1 of the real human image B into the corresponding area of the virtual photo frame of the virtual-real human model, and make the positions of the real feature points Q'' and P'' in the real human image B coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame respectively; Generate a human body posture image corresponding to the filled virtual-real human body model; The continuous plurality of human posture images generated in step 3 also include scene images obtained by scene motion compensation, wherein the scene motion compensation includes the scene images moving with a strong amplitude based on a strong rhythm motion axis and moving with a weak amplitude based on a weak illusion motion axis; The strong rhythmic movement axis is obtained by the following method: The axial motion trajectory of the human body part D of the three-dimensional human body model A is obtained, wherein the axial motion trajectory refers to the motion trajectory of the human body part D continuously on an axis, the strong rhythm motion axis is the axis where the axial motion trajectory is located; the weak illusion motion axis refers to the axis other than the strong rhythm motion axis in the three-dimensional space.
2. The method for generating a human body image by combining a three-dimensional model and a user-side screen according to claim 1, It is characterized in that The three-dimensional human body model A is in a three-dimensional space coordinate system in the virtual three-dimensional space, the vertical plane of the upper model in the virtual three-dimensional space is parallel to the XY plane in the three-dimensional space coordinate system, and the vertical plane of the virtual photo frame is parallel to the XY plane.
3. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 2, It is characterized in that The Z coordinate of the virtual photo frame is generated based on the Z coordinate of the virtual feature point Q' and the virtual feature point P' of the upper model, or based on the Z coordinate of the end point at the widest part of the bottom surface of the upper model.
4. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 1, It is characterized in that The virtual feature point Q' is the top point of the upper model, and the virtual feature point P' is the bottom point of the upper model. The bottom point of the upper model is located at the lower abdomen of the three-dimensional human body model A.
5. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 1, It is characterized in that The three-dimensional human body model A also includes an occluding prop, and the upper model originates from the part of the three-dimensional human body model A located above the occluding prop; there is a connecting surface between the occluding prop and the virtual photo frame, and the intersection line between the connecting surface and the virtual photo frame is the displayable bottom line of the torso part in the partial image b1.
6. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 5, It is characterized in that The intersection line between the connection surface and the virtual photo frame is close to the lower reference point P.
7. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 5, It is characterized in that In step 3, the posture trajectory of the virtual-reality combined human body model includes the posture trajectory of the lower model, the posture trajectory of the virtual photo frame and the posture trajectory of the occluding props. The posture trajectory of the virtual photo frame is generated based on the posture trajectory feature point K of the upper model, and the posture trajectory of the occluding props is generated based on the posture trajectory feature point K or the virtual photo frame.
8. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 7, It is characterized in that The imaging positions of the posture trajectory feature point K and the virtual feature point P' on the imaging plane coincide, and the lower reference point P is located on the displayable bottom line of the torso part in the partial image b1.
9. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 1, It is characterized in that In the three-dimensional space coordinate system, when the strong rhythm movement axis is the X-axis, the weak illusion movement axis is the Y-axis and / or the Z-axis; when the strong rhythm movement axis is the Z-axis, the weak illusion movement axis is the X-axis; when the strong rhythm movement axis is the Y-axis, the weak illusion movement axis is the X-axis.
10. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 1, It is characterized in that The strong amplitude is generated based on the size of the scene image and / or based on the movement amplitude of the human body part D on the strong rhythmic movement axis, and the weak amplitude is smaller than the strong amplitude.
11. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 1, It is characterized in that The human body part D is the human body part with the largest movement amplitude on the lower model.
12. The method for generating a human body image by combining a three-dimensional model with a user-side screen according to claim 1, It is characterized in that When the moving direction of the human body part D on the strong rhythm movement axis remains unchanged, the moving direction of the scene image on the strong rhythm movement axis remains unchanged.
13. A human image generation system combining a 3D model with the user-side screen. It is characterized in that include: The model generation module is used to obtain the lower model of the three-dimensional human body model A; generate a virtual photo frame based on the position of the upper model of the three-dimensional human body model A, and the virtual photo frame and the lower model constitute a virtual-real human body model; A reference point generation module, used to generate an upper reference point Q and a lower reference point P in a virtual photo frame based on a virtual feature point Q' and a virtual feature point P' in a three-dimensional human body model A; the imaging positions of the upper reference point Q and the lower reference point P on the imaging plane are respectively consistent with the imaging positions of the virtual feature point Q' and the virtual feature point P' on the imaging plane; The image generation module is used to sequentially obtain the local image b1 of the real human body image B currently generated by the user end, the local real human body corresponding to the local image b1 corresponds to the local human body model corresponding to the upper model; based on the posture trajectory of the virtual-real combined human body model, sequentially obtain the virtual-real combined human body model of multiple postures; and sequentially perform a synthesis operation on the local image b1 and the virtual-real combined human body model to generate a continuous plurality of human body posture images, the synthesis operation comprising the following steps: Fill the local image b1 of the real human image B into the corresponding area of the virtual photo frame of the virtual-real human model, and make the positions of the real feature points Q'' and P'' in the real human image B coincide with the positions of the upper reference point Q and the lower reference point P in the virtual photo frame respectively; Generate a human body posture image corresponding to the filled virtual-real human body model; The image generation module generates a plurality of continuous human posture images, and further includes a scene image obtained by scene motion compensation, wherein the scene motion compensation includes the scene image moving with a strong amplitude based on a strong rhythm motion axis and moving with a weak amplitude based on a weak illusion motion axis; The strong rhythmic movement axis is obtained by the following method: The axial motion trajectory of the human body part D of the three-dimensional human body model A is obtained, wherein the axial motion trajectory refers to the motion trajectory of the human body part D continuously on an axis, the strong rhythm motion axis is the axis where the axial motion trajectory is located; the weak illusion motion axis refers to the axis other than the strong rhythm motion axis in the three-dimensional space.
