CN114331808A - Action posture storage method, device, medium and electronic equipment - Google Patents

Action posture storage method, device, medium and electronic equipment Download PDF

Info

Publication number
CN114331808A
CN114331808A CN202111657714.6A CN202111657714A CN114331808A CN 114331808 A CN114331808 A CN 114331808A CN 202111657714 A CN202111657714 A CN 202111657714A CN 114331808 A CN114331808 A CN 114331808A
Authority
CN
China
Prior art keywords
data
basic
bone
skeleton
storage area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111657714.6A
Other languages
Chinese (zh)
Inventor
胡婷婷
包炎
赵男
林越浩
刘超
李鑫培
师锐
施一东
杨雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mihoyo Technology Shanghai Co ltd
Original Assignee
Mihoyo Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mihoyo Technology Shanghai Co ltd filed Critical Mihoyo Technology Shanghai Co ltd
Priority to CN202111657714.6A priority Critical patent/CN114331808A/en
Publication of CN114331808A publication Critical patent/CN114331808A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an action posture storage method, an action posture storage device, an action posture storage medium and electronic equipment, wherein a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area are established; acquiring a current animation video stream with a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream; and forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range. According to the action posture storage method, the action posture storage device, the action posture storage medium and the electronic equipment, the preset format basic picture is formed according to each piece of the bone data and is stored in the second basic storage area, and each preset format basic picture stores animation information of all time points of one bone. And dynamic data with changes are reserved, static data are deleted, and storage resources are saved.

Description

Action posture storage method, device, medium and electronic equipment
Technical Field
The invention relates to the technical field of computer graphics, in particular to an action posture storage method, an action posture storage device, an action posture storage medium and electronic equipment.
Background
In prior art games or three-dimensional animations where animation files are stored in FBX type, the FBX import channel supports animation, the user can import skeletal mesh animation from 3D software into the illusion engine for use in the game through a simple workflow, only a single animation per skeletal mesh can be imported/exported in a single file currently. In order to improve the enthusiasm of player creation, the finished animation video can be stored as a block chain, the block chain needs to be stored in a clear text to meet the state that all people can modify, but the FBX type file needs to be decoded in the modifying creation process so as not to be convenient to store the block chain, the standard of a preset file format needs to be formulated to meet the requirement of the block chain storage, and the block chain is put into the block chain for modifying storage, so that the enthusiasm of player creation is improved.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method, a device, a medium and electronic equipment for storing motion gestures, which solve the problems of decoding and inconvenient storage in the existing animation file format storage process.
In order to achieve the purpose, the invention is realized by the following technical scheme: a motion gesture storage method comprises the following steps,
establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
acquiring a current animation video stream with a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
and forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range.
Preferably, a first basic storage area, a second basic storage area and an association relationship between the first basic storage area and the second storage area are established, wherein the first basic storage area is used for recording each bone and the parent-child relationship between the bone and the associated bone, the association relationship between the first basic storage area and the second storage area and the IK parameter; wherein, the IK parameter records the bone start point data matched with the IK parameter and the bone end data matched with the IK parameter.
Preferably, a current animation video stream with a preset format is obtained; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream; specifically, the method comprises the following steps of,
acquiring a current animation video stream with a preset format; acquiring each skeleton data according to the current animation video stream;
acquiring a basic parameter set of each bone according to each bone data, wherein the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter;
and performing compression processing according to each reserved frame image and the basic parameter set to form the animation skeleton data.
Preferably, a basic parameter set of each bone is obtained according to each bone data, wherein the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter; specifically, the method comprises the following steps of,
reading skeleton data in a current frame image and skeleton data in a previous frame image;
under the condition that the skeleton data in the current frame image data is different from the skeleton data in the previous frame image data, saving the skeleton data in the current frame image data to form reserved frame skeleton data; deleting the skeleton data in the current frame under the condition that the skeleton data in the current frame image data is the same as the skeleton data in the previous frame image data;
reading the remaining frame bone data matching the current bone to form a base parameter set for each bone, the base parameter set including at least a location parameter, a rotation parameter, and a scaling parameter.
In a second aspect, an embodiment of the present invention provides an action gesture storage apparatus, which includes
The storage unit establishing module is used for establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
the acquisition module is used for acquiring the current animation video stream in a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
and the data storage module is used for forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range.
Preferably, the obtaining module includes a first module for obtaining the data,
the skeleton data acquisition unit is used for acquiring a current animation video stream in a preset format; acquiring each skeleton data according to the current animation video stream;
a basic parameter set obtaining unit, configured to obtain a basic parameter set of each bone according to each piece of bone data, where the basic parameter set at least includes a position parameter, a rotation parameter, and a scaling parameter;
and the compression processing unit is used for performing compression processing according to each reserved frame image and the basic parameter set to form the animation skeleton data.
Preferably, the base parameter set acquisition unit includes,
a reading unit configured to read skeleton data in a current frame image and skeleton data in a previous frame image;
a judging unit, configured to save the skeleton data in the current frame image data to form retained frame skeleton data when the skeleton data in the current frame image data is not the same as the skeleton data in the previous frame image data; deleting the skeleton data in the current frame under the condition that the skeleton data in the current frame image data is the same as the skeleton data in the previous frame image data;
and the storage unit is used for reading the reserved frame bone data matched with the current bone to form a basic parameter set of each bone, wherein the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the computer program implements the action posture storage method as described above.
In a fourth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program to implement the motion gesture storage method in the electronic device.
The invention has the following beneficial effects:
and forming a current animation video stream according to the image data of the 1 st frame to the image data of the Nth frame by using the animation video stream to obtain each piece of bone data, forming the basic pictures in the preset format according to each piece of bone data, and storing the basic pictures in the second basic storage area, wherein each basic picture in the preset format stores animation information of all time points of one bone. Namely, the animation video stream is converted into a plurality of basic pictures with preset formats and a skinnPose table with skeletal parent-child relationship for storage. Only the dynamic data with changes are reserved, the static data are deleted, and the storage resources are greatly saved. In addition, the basic picture with the preset format is formed in a pixel storage mode, and reading resources are greatly reduced.
The storage method can be applied to a GPU processor to implement calculation, the GPU processor reads the base picture and the skinnPose table, the GPU processor performs parallel multithreading and simultaneously processes data in the base picture and the skinnPose table to rapidly display the animation video stream, the processing speed is greatly improved compared with CPU calculation, and meanwhile, different players can perform secondary creation on the obtained animation data by adopting the plaintext storage mode, so that the creativity of the players is stimulated.
Drawings
Fig. 1 is a flowchart of an action gesture storage and storage method according to an embodiment of the present invention;
fig. 2 is a flowchart of an action gesture storage and storage method according to an embodiment of the present invention;
fig. 3 is a flowchart of an action gesture storage and storage method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a first basic memory area according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a second basic memory area according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1-3 are flowcharts of a method for storing an action gesture according to this embodiment, specifically including,
s110, establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
specifically, a first basic storage area and a second basic storage area are established, for example, the first basic storage area is used for storing a skinpos table, the second basic storage area is used for storing a MiHoYoTT basic picture, and the basic skinpos table is used for recording each bone and the parent-child relationship between the bone and the associated bone, the association relationship between the first basic storage area and the second basic storage area, and an IK parameter; the IK parameters include bone start point data matching the IK parameters and bone end data matching the IK parameters, and as shown in fig. 4, a basic skinnpos table is used to record bone parent-child relationships. For example, in the walking action, the starting skeleton is the left leg, the ending skeleton is the right leg, the IK parameter is set in the left leg skeleton, the IK parameter is the starting, the IK parameter is set in the right leg skeleton, and the IK parameter is the ending.
The association relationship with the first basic storage area can be formed by a skeleton management unit, for example, all skeletons of the role A are named as A-hips, A-Spines and A-head … …, all skeletons of the role B are named as B-hips, B-Spines and B-head … …, and since the skeletons of the role A and the skeletons of the role B are different, animations of the role A and the role B cannot be shared, based on the fact that each skeleton is provided with a UID through the skeleton management unit, the A-hips, the A-Spines and the A-head … … in the role A are respectively provided with a UID, the A-hips, the A-Spines and the A-head … … in the role B are respectively provided with a UID, and the animation sharing of the role A and the role B is realized through the UIDs.
S120, acquiring a current animation video stream in a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
specifically, the method comprises the following steps: s1201, acquiring a current animation video stream in a preset format; acquiring each skeleton data according to the current animation video stream; specifically, a current animation video stream with a preset format is obtained, an animation file is stored in an mhytt file form in the storage process, and the animation video stream of the mhytt file can be directly read when a player is interested in a certain animation video; reading each skeleton data in the current animation video stream; for example, if the current animation video stream contains N frame skeletons, all skeleton data of the N skeletons can be obtained, taking the head skeleton data as an example, the head skeleton data is all data of the head skeleton from the start frame image to the end frame image in the current animation video stream;
step S1202, obtaining a basic parameter set of each bone according to each bone data, wherein the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter; the method specifically comprises the following steps:
step 12021, reading skeleton data in the current frame image and skeleton data in the previous frame image;
step 12022, when the skeleton data in the current frame image data is not the same as the skeleton data in the previous frame image data, saving the skeleton data in the current frame image data to form reserved frame skeleton data; deleting the skeleton data in the current frame under the condition that the skeleton data in the current frame image data is the same as the skeleton data in the previous frame image data;
schematically, taking hip bone data as an example, reading N frame images traversed by a loop function from the second frame image, for example, if the current frame is hip bone data in the 2 nd frame image, comparing the hip bone data in the 2 nd frame image with the hip bone data in the 1 st frame image; under the condition that the hip bone data in the 2 nd frame image is different from the hip bone data in the 1 st frame image, saving the hip bone data in the 2 nd frame image to form a reserved frame hip bone data; and deleting the hip bone data in the 2 nd frame under the condition that the hip bone data in the 2 nd frame image is the same as the hip bone data in the 1 st frame image.
It should be noted that reading may be started from the first frame image, and whether the current frame image or the next frame image needs to be saved is determined by comparing the current frame image and the next frame image. This way, the technical purpose of the present application can be achieved.
The retained frame bone data matching the current bone is read 12023 to form a base parameter set for each bone, the base parameter set including at least a position parameter, a rotation parameter, and a scaling parameter.
Step S1203, performing compression processing according to each of the retained frame images and the basic parameter set to form the animation skeleton data.
The animation skeleton data is all basic data of the animation skeleton under the reserved frame image, such as position values, rotation values and scaling values, or crank values, such as the bones of the head, the legs and the hands, the rotation values and the scaling values or the crank values of the head, the legs and the hands during the Coliwalk corresponding to the reserved frame image.
And S130, forming the basic picture with the preset format according to the animation skeleton data, and storing the basic picture in the second basic storage area, wherein the animation skeleton data are arranged in a preset range. Wherein the predetermined format base picture may be a MiHoYoTT picture.
Specifically, the storage picture stores animation information of all time points of one bone, and N bones need to have N pictures for storage. Each storage picture is divided into a plurality of pixel regions, each pixel region forms a pixel point, and each pixel point stores a position parameter, a rotation parameter or a scaling parameter of a skeleton. For example, a storage picture of a head skeleton, a first pixel point stores a position parameter of a first frame image of the head skeleton, a second pixel point stores a rotation parameter of the first frame image of the head skeleton, a third pixel point stores a zoom parameter of the first frame image of the head skeleton, a fourth pixel point stores a position parameter of a fifth frame image of the head skeleton, a fifth pixel point stores a rotation parameter of the fifth frame image of the head skeleton, a sixth pixel point stores a zoom parameter of the fifth frame image of the head skeleton, a seventh pixel point stores a position parameter of an eleventh frame image of the head skeleton, an eighth pixel point stores a rotation parameter of the eleventh frame image of the head skeleton, and a ninth pixel point stores a zoom parameter of the eleventh frame image of the head skeleton sequentially until all dynamic parameters matched with the head skeleton are stored, wherein the second frame image, the third frame image, the eighth frame image, the seventh frame image, the eighth frame image, the sixth frame image, the fourth frame image is identical to the first frame image in head skeleton data and is deleted, and the sixth frame image, the seventh frame image, the eighth frame image, the ninth frame image and the tenth frame image are identical to the fifth frame image and are deleted.
Wherein the position parameter, the rotation parameter, and the scaling parameter are all compressed to be within 0-255. The position parameter, the rotation parameter, and the scaling parameter all include four coefficients, where the first three coefficients are parameter information, the fourth coefficient is a frame number, for example, the position parameter of the head bone is (10, 2, 1, 5), where (10, 2, 1) is the position information of the head bone, 5 is the 5 th frame image, and (10, 2, 1, 5) is the position parameter of the head bone in the fifth frame image.
The position data, the rotation data and the zooming data are all compressed to be in a range of 0-255 for storage, and in the compression process, the data compression value can be accurate to percentile, so that the accuracy can be guaranteed not to be lost; by storing the position parameter, the rotation parameter, the scaling parameter or the crank parameter in the form of a pixel, as shown in fig. 5, fig. 5 is the Bone _ Root motion data information stored in any frame state, for example, (10, 2, 1, 5) represents the position data information of Bone _ Root in the 5 th frame state, (90, 0, 90, 5) represents the rotation data information of Bone _ Root in the 5 th frame state, (1, 1, 1, 5) represents the scaling data information of Bone _ Root in the 5 th frame state, and so on, (10, 2, 1, 23) represents the position data information of Bone _ Root in the 5 th frame state, and so on, a fourth type of motion parameter, for example, a numerical value of crank data, can be stored in the storage process.
In the above embodiment, each piece of skeleton data is obtained by forming a current animation video stream from the 1 st frame image data to the nth frame image data of an animation video stream, and the predetermined format base pictures formed according to each piece of skeleton data are stored in the second base storage area, and each predetermined format base picture stores animation information of all time points of one skeleton. Namely, the animation video stream is converted into a plurality of basic pictures with preset formats and a skinnPose table with skeletal parent-child relationship for storage. Only the dynamic data with changes are reserved, the static data are deleted, and the storage resources are greatly saved. In addition, the basic picture with the preset format is formed in a pixel storage mode, and reading resources are greatly reduced.
The storage method can be applied to a GPU processor to implement calculation, the GPU processor reads the base picture and the skinnPose table, the GPU processor performs parallel multithreading and simultaneously processes data in the base picture and the skinnPose table to rapidly display the animation video stream, the processing speed is greatly improved compared with CPU calculation, and meanwhile, different players can perform secondary creation on the obtained animation data by adopting the plaintext storage mode, so that the creativity of the players is stimulated.
Example two
The embodiment of the invention provides an action posture storage and storage device, which specifically comprises:
the storage unit establishing module is used for establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
the acquisition module is used for acquiring the current animation video stream in a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
and the data storage module is used for forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range.
In a preferred embodiment, the obtaining module includes,
the skeleton data acquisition unit is used for acquiring a current animation video stream in a preset format; acquiring each skeleton data according to the current animation video stream;
a basic parameter set obtaining unit, configured to obtain a basic parameter set of each bone according to each piece of bone data, where the basic parameter set at least includes a position parameter, a rotation parameter, and a scaling parameter;
and the compression processing unit is used for performing compression processing according to each reserved frame image and the basic parameter set to form the animation skeleton data.
In a preferred embodiment, the base parameter set acquisition unit includes,
a reading unit configured to read skeleton data in a current frame image and skeleton data in a previous frame image;
a judging unit, configured to save the skeleton data in the current frame image data to form retained frame skeleton data when the skeleton data in the current frame image data is not the same as the skeleton data in the previous frame image data; deleting the skeleton data in the current frame under the condition that the skeleton data in the current frame image data is the same as the skeleton data in the previous frame image data;
and the storage unit is used for reading the reserved frame bone data matched with the current bone to form a basic parameter set of each bone, wherein the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter.
The working principle of the present embodiment is the same as that of the first embodiment, and therefore, the description thereof is not repeated.
EXAMPLE III
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform:
establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
acquiring a current animation video stream with a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
and forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the motion gesture storage method described above, and may also perform related operations in the motion gesture storage method provided in any embodiment of the present application.
Example four
The embodiment of the application provides electronic equipment, and the action posture storage device provided by the embodiment of the application can be integrated in the electronic equipment. Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application. As shown in fig. 6, the present embodiment provides an electronic device 400, which includes: one or more processors 420; storage 410 to store one or more programs that, when executed by the one or more processors 420, cause the one or more processors 420 to implement:
establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
acquiring a current animation video stream with a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
and forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range.
As shown in fig. 6, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of the processors 420 in the electronic device may be one or more, and one processor 420 is taken as an example in fig. 6; the processor 420, the storage device 410, the input device 430, and the output device 440 in the electronic apparatus may be connected by a bus or other means, and are exemplified by being connected by a bus 450 in fig. 6.
The storage device 410 is a computer-readable storage medium, and can be used for storing software programs, computer executable programs, and module units, such as program instructions corresponding to the action posture storage method in the embodiment of the present application.
The storage device 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 410 may further include memory located remotely from processor 420, which may be connected via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 430 may be used to receive input numbers, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. The output device 440 may include a display screen, speakers, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (9)

1. A motion gesture storage method is characterized by specifically comprising the following steps,
establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
acquiring a current animation video stream with a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
and forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range.
2. An action posture storage method according to claim 1, wherein a first basic storage area, a second basic storage area and an association relationship between the first basic storage area and the second storage area are established, wherein the first basic storage area is used for recording each bone and a father-son relationship between the bone and the associated bone, the association relationship between the first basic storage area and the second storage area and an IK parameter; wherein, the IK parameter records the bone start point data matched with the IK parameter and the bone end data matched with the IK parameter.
3. The method for storing motion gestures according to claim 1, characterized by obtaining a current animation video stream in a predetermined format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream; specifically, the method comprises the following steps of,
acquiring a current animation video stream with a preset format; acquiring each skeleton data according to the current animation video stream;
acquiring a basic parameter set of each bone according to each bone data, wherein the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter;
and performing compression processing according to each reserved frame image and the basic parameter set to form the animation skeleton data.
4. The action posture storage method according to claim 3, wherein a basic parameter set of each bone is obtained according to each bone data, and the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter; specifically, the method comprises the following steps of,
reading skeleton data in a current frame image and skeleton data in a previous frame image;
under the condition that the skeleton data in the current frame image data is different from the skeleton data in the previous frame image data, saving the skeleton data in the current frame image data to form reserved frame skeleton data; deleting the skeleton data in the current frame under the condition that the skeleton data in the current frame image data is the same as the skeleton data in the previous frame image data;
reading the remaining frame bone data matching the current bone to form a base parameter set for each bone, the base parameter set including at least a location parameter, a rotation parameter, and a scaling parameter.
5. An action posture storage device is characterized by comprising,
the storage unit establishing module is used for establishing a first basic storage area, a second basic storage area and an incidence relation between the first basic storage area and the second basic storage area;
the acquisition module is used for acquiring the current animation video stream in a preset format; forming each skeleton animation data matched with the current animation video stream according to the current animation video stream;
and the data storage module is used for forming the basic picture with the preset format according to the animation bone data and storing the basic picture in the second basic storage area, wherein the animation bone data are arranged in a preset range.
6. An action gesture storage device according to claim 5, wherein the obtaining module comprises,
the skeleton data acquisition unit is used for acquiring a current animation video stream in a preset format; acquiring each skeleton data according to the current animation video stream;
a basic parameter set obtaining unit, configured to obtain a basic parameter set of each bone according to each piece of bone data, where the basic parameter set at least includes a position parameter, a rotation parameter, and a scaling parameter;
and the compression processing unit is used for performing compression processing according to each reserved frame image and the basic parameter set to form the animation skeleton data.
7. An action gesture storage device according to claim 6, wherein said basic parameter set acquisition unit includes,
a reading unit configured to read skeleton data in a current frame image and skeleton data in a previous frame image;
a judging unit, configured to save the skeleton data in the current frame image data to form retained frame skeleton data when the skeleton data in the current frame image data is not the same as the skeleton data in the previous frame image data; deleting the skeleton data in the current frame under the condition that the skeleton data in the current frame image data is the same as the skeleton data in the previous frame image data;
and the storage unit is used for reading the reserved frame bone data matched with the current bone to form a basic parameter set of each bone, wherein the basic parameter set at least comprises a position parameter, a rotation parameter and a scaling parameter.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the action gesture storage method according to any one of claims 1 to 4.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the action gesture storage method according to any one of claims 1 to 4 when executing the computer program.
CN202111657714.6A 2021-12-31 2021-12-31 Action posture storage method, device, medium and electronic equipment Pending CN114331808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111657714.6A CN114331808A (en) 2021-12-31 2021-12-31 Action posture storage method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111657714.6A CN114331808A (en) 2021-12-31 2021-12-31 Action posture storage method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114331808A true CN114331808A (en) 2022-04-12

Family

ID=81018077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111657714.6A Pending CN114331808A (en) 2021-12-31 2021-12-31 Action posture storage method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114331808A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114782284A (en) * 2022-06-17 2022-07-22 广州三七极耀网络科技有限公司 Motion data correction method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114782284A (en) * 2022-06-17 2022-07-22 广州三七极耀网络科技有限公司 Motion data correction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108010112B (en) Animation processing method, device and storage medium
CN106611435B (en) Animation processing method and device
CN112933597B (en) Image processing method, image processing device, computer equipment and storage medium
CN107015788B (en) Method and device for displaying images on mobile device in animation mode
CN108959392B (en) Method, device and equipment for displaying rich text on 3D model
CN112652025B (en) Image rendering method and device, computer equipment and readable storage medium
US20090262139A1 (en) Video image display device and video image display method
CN112233009A (en) Picture rendering method, device, equipment and storage medium
CN114638232A (en) Method and device for converting text into video, electronic equipment and storage medium
CN114331808A (en) Action posture storage method, device, medium and electronic equipment
CN111464760A (en) Dynamic image generation method and device and terminal equipment
CN114401443B (en) Special effect video processing method and device, electronic equipment and storage medium
CN111228816A (en) Scene layout method and device in game
CN116115995A (en) Image rendering processing method and device and electronic equipment
WO2023173828A1 (en) Scene element processing method and apparatus, device, and medium
CN114329046A (en) Dynamic video storage management method, device, medium and electronic equipment based on map
WO2022179054A1 (en) Method for playing system image
WO2019194900A1 (en) Watermarking digital content
CN114297162A (en) Method, device and medium for optimizing video stream storage and electronic equipment
JP2000148126A (en) Image display device and method
CN114125556B (en) Video data processing method, terminal and storage medium
CN113207037B (en) Template clipping method, device, terminal, system and medium for panoramic video animation
CN114942854A (en) Screenshot method of GIF (graphic interchange Format) dynamic image and related equipment
CN112153455A (en) Voting application method and device, electronic equipment and storage medium
CN112419469A (en) Model rendering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination