CN109903395B - Model processing method and device, storage medium and electronic equipment - Google Patents

Model processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN109903395B
CN109903395B CN201910156326.6A CN201910156326A CN109903395B CN 109903395 B CN109903395 B CN 109903395B CN 201910156326 A CN201910156326 A CN 201910156326A CN 109903395 B CN109903395 B CN 109903395B
Authority
CN
China
Prior art keywords
instruction
model
processing
transition operation
processing instruction
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.)
Active
Application number
CN201910156326.6A
Other languages
Chinese (zh)
Other versions
CN109903395A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910156326.6A priority Critical patent/CN109903395B/en
Publication of CN109903395A publication Critical patent/CN109903395A/en
Application granted granted Critical
Publication of CN109903395B publication Critical patent/CN109903395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a model processing method and device, a storage medium and electronic equipment. The method comprises the following steps: receiving a first processing instruction for a target model, determining a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one prestored transition operation instruction, and executing the first processing instruction and the first transition operation instruction. By adopting the technical scheme, in the process of processing the target model, the transition operation is added to each processing instruction, the switching and processing of the target model are smoothly processed, the hardening is avoided, and the interest of model processing is improved.

Description

Model processing method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of electronic equipment, in particular to a model processing method and device, a storage medium and electronic equipment.
Background
Three-dimensional modeling is one of the most valuable applications in the field of computer graphics, and three-dimensional models generated by three-dimensional modeling are also widely used in various fields.
In the modeling process of the three-dimensional model or in the updating process of the three-dimensional model, loading and unloading of the local model exist, the current unloading of the local model is to read the local model to be unloaded from the three-dimensional model through a background and cancel the display of the local model in the three-dimensional model, the loading of the local model is to read the local model to be loaded through the background and directly display the local model in the three-dimensional model after the reading is finished, the model unloading operation and the loading operation are hard, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a model processing method and device, a storage medium and electronic equipment, and the action diversity of the model is enhanced.
In a first aspect, an embodiment of the present application provides a method for processing a model, including:
receiving a first processing instruction of a target model;
determining a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one prestored transition operation instruction;
executing the first processing instruction and the first transitional operation instruction.
In a second aspect, an embodiment of the present application provides a processing apparatus for a model, including:
the first processing instruction receiving module is used for receiving a first processing instruction of the target model;
a first transition operation instruction determining module, configured to determine, according to the first processing instruction and at least one transition operation instruction stored in advance, a first transition operation instruction corresponding to the first processing instruction;
and the first instruction execution module is used for executing the first processing instruction and the first transition operation instruction.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a processing method of a model according to the present application.
In a fourth aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a processing method of a model according to the present application when executing the computer program.
The model processing method provided in the embodiment of the application receives a first processing instruction for a target model, determines a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one prestored transition operation instruction, and executes the first processing instruction and the first transition operation instruction. By adopting the scheme, in the process of processing the target model, the transition operation is added to each processing instruction, and the switching and processing of the target model are smoothly processed, so that the hardening is avoided, and the interest of model processing is improved.
Drawings
Fig. 1 is a schematic flowchart of a model processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another exemplary model processing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating another exemplary model processing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a model processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a processing method of a model according to an embodiment of the present application, where the method may be performed by a processing apparatus of the model, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 1, the method includes:
step 101, receiving a first processing instruction of a target model.
Step 102, determining a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one transition operation instruction stored in advance.
And 103, executing the first processing instruction and the first transition operation instruction.
For example, the electronic device in the embodiment of the present application may include a smart device such as a mobile phone, a tablet computer, and a computer.
In the present embodiment, the target model is a three-dimensional model created in an electronic device, and may be, for example, a human body model, an animal model, or a partial model of a human body or an animal, such as a human head model, an animal head model, or the like. In this embodiment, the first processing instruction includes a load instruction and an unload instruction of the local model. The partial model may be, for example, an arm model, a palm model, a finger model, a nail model, a leg model, a foot model, a head contour model, an eye model, an ear model, a nose model, a mouth model, a hair model, a necklace model, a clothes model, a shoe model, a hat model, a tool model, and the like. The loading instruction of the local model is used for rendering the local model involved in the loading instruction on the target model, and the unloading instruction of the local model is used for deleting the local model involved in the unloading instruction from the target model. For example, replacing the first hair model in the target model based on the second hair model and updating the target model can be realized through the unloading instruction of the first hair model and the device instruction of the second hair model.
In this embodiment, a plurality of transition operation instructions are stored in the electronic device in advance, for example, one processing instruction corresponds to one or more transition operation instructions, and after the processing instruction is received, the transition operation instruction corresponding to the processing instruction is randomly determined according to the processing instruction, or the transition operation instruction matched with the processing instruction is obtained by matching the local model information carried in the processing instruction with the plurality of transition operation instructions.
In some embodiments, the first transition operation instruction may be an animation play operation instruction, and the first transition operation is executed based on the first transition operation instruction, for example, the animation play operation instruction performs animation play on a display page of the electronic device. And the played animation is determined according to the first processing instruction and the local model information carried in the first processing instruction. For example, if the first processing instruction is a loading instruction of the local model, the animation corresponding to the animation playback operation instruction may be an animation for loading the local model on the target model, for example, an animation for loading a hat model on the human model. If the first processing instruction is an unloading instruction of the local model, the animation corresponding to the animation playing operation instruction may be an unloading animation of the local model performed on the target model, or may be an animation of which the unloading of the local model is successful. The animation corresponding to the animation playing operation instruction can be set according to the requirements of the user, and the user can edit, delete and add the animation.
In some embodiments, the first transition operation instruction may be a motion control instruction of the target model. Wherein, the motion control command may be a motion control including at least one key point of the target model, and taking the human body model as an example, the key point may be, but is not limited to, head, glasses, mouth, nose, eyebrow, neck, left elbow, left wrist, left shoulder, left crotch, left knee, left ankle, right elbow, right wrist, right shoulder, right crotch, right knee, right ankle, and the like. The motion control command may include motion control for at least one key point, and the control for each key point may include at least one motion mode, each motion mode being used for executing one motion. Optionally, the key points included in the motion control instruction and the motion modes of the key points may be related to the first processing instruction and the local model information carried in the first processing instruction, for example, the first processing instruction is an unloading instruction of a hat model, the motion control instruction may be a hat removing instruction, and the key points included in the motion control instruction include a left shoulder, a left arm, a left palm and a finger, where the motion mode of the left shoulder may be a shoulder raising mode, the motion mode of the left arm is a hand raising mode, and the motion mode of the left palm and the finger is a removing mode. The target model can be controlled to complete the action of taking the hat according to the hat taking instruction, the unloading instruction of the hat model is corresponded, the execution of the unloading instruction is rich and interesting, the unloading instruction is not hard, and the model before processing and the model after processing are in smooth transition.
In this embodiment, after determining a first transition operation instruction of the first processing instruction, the first processing instruction and the first transition operation instruction are respectively executed, where the first processing instruction may be executed first, and then the first transition operation instruction is executed, and the first processing instruction and a processing instruction executed later are smoothly transitioned based on the first transition operation instruction, or the first transition operation instruction may be executed first, and then the first processing instruction is executed, and then the first processing instruction and a processing instruction executed earlier are smoothly transitioned based on the first transition operation instruction, so that processing operations on the target model are prevented from being harsh, and user experience is improved.
In some embodiments, said executing said first processing instruction and said first transition operation instruction comprises: determining the execution timing of the first processing instruction and the first transitional operation instruction according to the type of the first processing instruction; and sequentially executing the first processing instruction and the first transition operation instruction according to the execution time sequence. In some embodiments, transition operation instructions corresponding to different processing instructions may be different, and execution timing of the transition operation instructions may also be different. Illustratively, determining the execution timing of the first processing instruction and the first transitional operation instruction according to the type of the first processing instruction comprises: if the first processing instruction is a loading instruction of a local model, synchronously executing the first processing instruction and the first transition operation instruction, and displaying the loaded local model in the target model after the first transition operation instruction is completed; if the first processing instruction is an unloading instruction of a local model, the execution sequence of the first processing instruction is prior to the first transition operation instruction. When the loading instruction of the local model is executed, the reading operation of the local model and the rendering operation of the local model are included, and the synchronous execution of the first transition operation instruction and the loading instruction of the local model means that when the reading operation of the local model is executed, the first transition operation instruction is executed, so that invalid waiting of a user is avoided when the reading operation of the local model is carried out, meanwhile, the interest of model processing is improved, after the first transition operation instruction is executed, the rendering operation of the local model is carried out, and the loaded local model is displayed on a display page of the target model. Optionally, the execution duration of the first transitional operation instruction is less than or equal to the reading operation duration of the local model, where the corresponding first transitional operation instruction may be determined according to the data size of the local model to be loaded.
When the unloading instruction of the local model is executed, the display of the local model in the target model is deleted, the data of the local model is deleted, after the deletion of the data of the local model is completed, the first transition operation instruction is executed, or the unloading instruction is executed firstly, namely the display of the local model in the target model is deleted firstly, and after the deletion of the local model, the data of the local model and the first transition operation instruction are synchronously executed. In this embodiment, the execution timing of the transition operation instruction is determined based on the execution modes of different processing instructions, and the switching of the target model is smoothed on the basis of avoiding invalid waiting of the user.
The model processing method provided in the embodiment of the application receives a first processing instruction for a target model, determines a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one prestored transition operation instruction, and executes the first processing instruction and the first transition operation instruction. By adopting the scheme, in the process of processing the target model, the transition operation is added to each processing instruction, and the switching and processing of the target model are smoothly processed, so that the hardening is avoided, and the interest of model processing is improved.
Fig. 2 is a schematic flow chart of another model processing method provided in the embodiment of the present application, and referring to fig. 2, the method of the embodiment includes the following steps:
step 201, receiving an unloading instruction of a local model in a target model.
Step 202, determining a first transitional operation instruction corresponding to the uninstall instruction according to the uninstall instruction and at least one prestored transitional operation instruction.
And 203, canceling to execute the first transition operation instruction when a second processing instruction for the target model is received within the processing time of the unloading instruction of the local model.
And step 204, executing the uninstalling instruction and the second processing instruction.
Because the unloading instruction is preferentially executed and then the transitional operation instruction of the unloading instruction is executed, when other to-be-processed processing instructions exist after the unloading instruction, the first transitional operation instruction of the unloading instruction is cancelled, and the next processing instruction is directly executed, so that the time consumption in the target model processing process caused by the execution of the transitional operation instruction is avoided. The processing time of the uninstall instruction of the local model may be a time period for completing the downloading of the local model, or may be a sum of a time period for completing the downloading of the local model and a time period for completing the execution of the first transition operation instruction, that is, in the uninstall process of the local model or in the execution process of the first transition operation instruction, when a second processing instruction for the target model is received, the execution of the first transition operation instruction is cancelled or stopped, and the second processing instruction is executed. The second processing instruction may be a load instruction or an unload instruction of the local model, and the scheme provided by this embodiment is executed in a loop. Optionally, when the second processing instruction is a load instruction of a local model, a second transition operation instruction is determined according to the first processing instruction and the second processing instruction, and the second transition operation instruction and the second processing instruction are executed synchronously. For example, when the first processing instruction and the second processing instruction are respectively an unloading instruction and a loading instruction of a same type of local model, it may be determined that the type of local model is replaced by the first processing instruction and the second processing instruction, the determined second transition operation instruction is a replacement operation instruction of the type of local model, for example, the first processing instruction and the second processing instruction are respectively an unloading instruction and a loading instruction of a hat model, the second transition operation instruction may be an action control instruction for replacing a hat, and the target model is controlled to complete a hat taking action and a hat wearing action according to the action control instruction for replacing the hat, so that the unloading instruction and the loading instruction are smoothly processed, and the smooth switching of the target model is completed. The unloading instruction, the second transition operation instruction and the loading instruction may be executed in sequence, or the unloading instruction may be executed first, and then the second transition operation instruction and the loading instruction may be executed synchronously. Illustratively, when the first processing instruction and the second processing instruction are respectively an unloading instruction and a loading instruction of different types of local models, the transitional operation instruction corresponding to the unloading instruction is cancelled, the second transitional operation instruction is determined according to the loading instruction, the unloading instruction is executed first, and then the second transitional operation instruction and the loading instruction are executed synchronously.
It should be noted that, if the first processing instruction is a load instruction of the local model, whether the second processing instruction is received or not, the corresponding first transition operation instruction is determined according to the load instruction of the local model, and the first transition operation instruction and the load instruction of the local model are executed synchronously.
According to the model processing method provided by the embodiment of the application, when the next processing instruction is received in the processing process of the unloading instruction, the transition operation instruction corresponding to the unloading instruction is cancelled, unnecessary time consumption of model processing caused by execution of the transition operation instruction is avoided, and the model processing efficiency is improved.
In some embodiments, step 203 may further be that, when a second processing instruction for the target model is received within the processing time of the unload instruction of the local model, it is determined whether a first transition operation instruction has been executed, and at a time when the first processing instruction is executed, whether the first transition operation instruction is executed completely, if so, the execution of the first transition operation instruction does not affect the execution of the second processing instruction, and then the first transition operation instruction is executed continuously, and if not, the execution of the first transition operation instruction is cancelled. By determining the execution completion time of the first transitional operation instruction, the control flexibility of the first transitional operation instruction is improved.
Fig. 3 is a schematic flow chart of another model processing method provided in an embodiment of the present application, where the present embodiment is an alternative to the foregoing embodiment, and correspondingly, as shown in fig. 3, the method of the present embodiment includes the following steps:
301, obtaining standard structure parameters of a target model, matching in a model database according to the standard structure parameters, and determining a reference model of the target model, wherein the model database comprises at least one model to create the model.
And 302, determining a local model to be adjusted in the reference model according to the standard structure parameters.
Step 303, determining a standard local model according to the standard local structure parameter corresponding to the local model to be adjusted.
And step 304, receiving an unloading instruction of the local model to be adjusted in the target model and a loading instruction of the standard local model.
And 305, determining a transition operation instruction for updating the local model according to the unloading instruction of the local model to be adjusted and the loading instruction of the standard local model.
Step 306, executing an unloading instruction of the local model to be adjusted on the target model, synchronously executing a transition operation instruction for updating the local model and a loading instruction of the standard local model, and displaying the standard local model in the reference model after the transition operation instruction for updating the local model is completed to generate the target model.
The method comprises the steps of obtaining an image of a target model based on equipment such as a double-sided camera, a structured light camera or a depth camera, wherein the image comprises depth information, carrying out image recognition on the image of the target model, and determining standard structural parameters of the target model according to the distance between the equipment and the target model. The electronic equipment is provided with a model database, the model database is used for storing the created historical models, and the matching in the model database according to the standard structure parameters can be realized by sequentially performing parameter matching on the standard structure parameters and the created models in the model database, determining matching similarity and determining the reference model of the target model according to the similarity. Optionally, a type of the target model is identified, and the standard structure parameters are matched with a created model belonging to the type in the model database according to the type of the target model, for example, when the target model belongs to a human head, the standard structure parameters of the target model may be matched with the human body model and the human head model to determine a reference model, wherein when the standard structure parameters of the target model (for example, the human head) are matched with a partial model of the created model (a head model in the human body model), a matched partial model may be determined as the reference model of the target model. By determining the type of the target model, the model matching is performed in a targeted manner, so that the required matching operation is reduced, and the determination efficiency of the reference model is improved. In some embodiments, the matching similarity of the images is determined based on matching the images shot by the target model with the images corresponding to the created models, and the matching similarity of the images is determined as the matching similarity of the standard structure parameters and the created models.
Optionally, the performing parameter matching on the standard structure parameter and a created model stored in a model database to determine the similarity between the standard structure parameter and the created model includes: dividing the standard structure parameters into a plurality of standard local structure parameters according to the local structure of the target model; respectively matching with corresponding local models in the created models based on the plurality of standard local structure parameters, and determining the number of the successfully matched local models; and generating the similarity between the standard structure parameters and the created models according to the number of the successfully matched local models, wherein the similarity is positively correlated with the number of the successfully matched local models. Illustratively, the created model corresponding to the maximum similarity is determined as the reference model of the target model. And determining a reference model corresponding to the standard structure parameters based on the matching similarity, wherein the reference model is used as a model basis for creating the target model, namely, the reference model is improved or edited on the basis of the reference model, and repeated editing steps are reduced so as to quickly generate the target model. For example, the created model with the highest matching similarity may be determined as the reference model. It should be noted that, when the matching similarity between the reference model and the standard structural parameter meets the preset requirement, the reference model may be determined as the target model, that is, the historically created model is used as the target model, and secondary editing is not required, so that the utilization rate of the created model is improved, and the creation efficiency of the model is improved.
And when the standard structure parameters of the reference model and the target model are different, determining a local model with the difference, and determining the local model with the difference as the local model to be adjusted. The comparison may be performed based on actual parameters of each local model in the reference model and standard local parameters of a corresponding local model in standard structure parameters of the target model, when the actual parameters of the local model are consistent with the standard local parameters or an error of the actual parameters is within an allowable range, it is determined that the comparison is successful, the local model does not need to be adjusted, when the error of the actual parameters of the local model and the standard local parameters is greater than a preset error, it is determined that the comparison is failed, and the local model is a local model to be adjusted. Specifically, the preset error of the local model may be related to the type of the local model and/or the model precision required by the user, and for example, the higher the model precision required by the user is, the smaller the preset error is. For example, the smaller the size of the local model is, the smaller the corresponding preset error is, for example, the preset error of the face contour model may be larger than the preset error of the human eye model.
Optionally, step 303 may include: determining a parameter adjusting value according to the local structure parameter of the local model to be adjusted and the standard local structure parameter; and adjusting the local model to be adjusted based on the parameter adjustment value so as to update the local model to be adjusted into a standard local model. Optionally, step 303 may also be: modeling according to the standard local structure parameters corresponding to the local model to be adjusted to generate the standard local model; or matching in the model database according to the standard local structure parameters corresponding to the local model to be adjusted, and determining the standard local model matched with the standard local structure parameters.
After determining the local model to be adjusted and the standard local model, an unloading instruction of the local model to be adjusted and a loading instruction of the standard local model may be generated, and a transition operation instruction of updating the local model (for example, a local model updating animation playing instruction or an action control instruction of updating the local model) may be further generated, the unloading instruction of the local model to be adjusted, the transition operation instruction of updating the local model, and the loading instruction of the standard local model are sequentially executed, or the transition operation instruction of updating the local model and the loading instruction of the standard local model are synchronously executed after the unloading instruction of the local model to be adjusted is executed. The unloading operation of the local model to be adjusted and the loading operation of the standard local model are smoothed through the transition operation of updating the local model, so that the updating operation of the local model is more vivid and interesting.
According to the model processing method provided by the embodiment of the application, the reference model of the current target model is determined in the created model, the model is adjusted or created on the basis of the reference model, the created model is repeatedly applied, repeated creation of the same model is avoided, the modeling process is simplified, the modeling efficiency is improved, meanwhile, in the updating process of the local model to be adjusted, transition operation is added, unloading operation of the local model to be adjusted and loading operation of the standard local model are smoothly processed, hardening of the model processing process is avoided, and interestingness of model processing is enhanced.
Fig. 4 is a block diagram of a model processing apparatus, which may be implemented by software and/or hardware, and is generally integrated in an electronic device, and may perform editing processing on a three-dimensional model by executing a model processing method of the electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the apparatus includes: a first processing instruction receiving module 401, a first transition operation instruction determining module 402, and a first instruction executing module 403.
A first processing instruction receiving module 401, configured to receive a first processing instruction for a target model;
a first transition operation instruction determining module 402, configured to determine, according to the first processing instruction and at least one transition operation instruction stored in advance, a first transition operation instruction corresponding to the first processing instruction;
a first instruction execution module 403, configured to execute the first processing instruction and the first transition operation instruction.
The processing device of the model provided in the embodiment of the application, in the process of processing the target model, performs the addition transition operation on each processing instruction, performs the smooth processing on the switching and processing of the target model, avoids the hardening, and simultaneously improves the interest of the model processing.
On the basis of the above embodiment, the first processing instruction includes a load instruction and an unload instruction of the local model.
On the basis of the above embodiment, the first instruction execution module 403 includes:
an execution timing determination unit configured to determine an execution timing of the first processing instruction and the first transitional operation instruction according to a type of the first processing instruction;
and the instruction execution unit is used for sequentially executing the first processing instruction and the first transition operation instruction according to the execution time sequence.
On the basis of the above embodiment, the execution timing determination unit is configured to:
if the first processing instruction is a loading instruction of a local model, synchronously executing the first processing instruction and the first transition operation instruction, and displaying the loaded local model in the target model after the first transition operation instruction is completed;
if the first processing instruction is an unloading instruction of a local model, the execution sequence of the first processing instruction is prior to the first transition operation instruction.
On the basis of the above embodiment, the first transition operation instruction is an animation play operation instruction or an action control instruction of the target model.
On the basis of the above embodiment, when the first processing instruction is an unload instruction of the local model, the apparatus further includes:
a transitional operation instruction cancelling module, configured to cancel, before the first processing instruction and the first transitional operation instruction are executed, when a second processing instruction for the target model is received within a processing time of an uninstalling instruction of the local model, the execution of the first transitional operation instruction;
and the second instruction execution module is used for executing the first processing instruction and the second control instruction.
On the basis of the above embodiment, the method further includes:
a second transition operation instruction determining module, configured to determine a second transition operation instruction according to the first processing instruction and the second processing instruction when the second processing instruction is a load instruction of a local model;
correspondingly, the second instruction execution module is used for:
and executing the first processing instruction, and after executing the first processing instruction, synchronously executing the second transition operation instruction and the second processing instruction.
On the basis of the above embodiment, the method further includes:
the reference model determining module is used for acquiring standard structure parameters of a target model before receiving a first processing instruction of the target model, matching the standard structure parameters in a model database according to the standard structure parameters and determining a reference model of the target model, wherein the model database comprises at least one model for creating the model;
the module for determining the local model to be adjusted is used for determining the local model to be adjusted in the reference model according to the standard structure parameters;
the standard local model determining module is used for determining a standard local model according to the standard local structure parameters corresponding to the local model to be adjusted;
correspondingly, the first processing instruction is an unloading instruction of the local model to be adjusted, the second processing instruction is a loading instruction of the standard local model, and the second transition operation instruction is a transition operation instruction of updating the local model;
the second instruction execution module is configured to: and executing an unloading instruction of the local model to be adjusted on the target model, synchronously executing a transition operation instruction for updating the local model and a loading instruction of the standard local model, and displaying the standard local model in the reference model after the transition operation instruction for updating the local model is completed so as to generate the target model.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of processing a model, the method comprising:
receiving a first processing instruction of a target model;
determining a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one prestored transition operation instruction;
executing the first processing instruction and the first transitional operation instruction.
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, DDRRAM, SRAM, EDORAM, 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 a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first 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 processing operations of the model described above, and may also perform related operations in the processing method of the model provided in any embodiments of the present application.
The embodiment of the application provides electronic equipment, and a processing device of the model provided by the embodiment of the application can be integrated in the electronic equipment. Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 500 may include: a memory 501, a processor 502 and a computer program stored on the memory 501 and executable by the processor 502, wherein the processor 502 implements the processing method of the model according to the embodiment of the present application when executing the computer program.
The electronic equipment provided by the embodiment of the application executes the adding transition operation on each processing instruction in the process of processing the target model, and performs the smooth processing on the switching and processing of the target model, so that the harshness is avoided, and the interestingness of model processing is improved.
Fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application. The electronic device may include: a housing (not shown), a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU602 and the memory 601 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory 601 is used for storing executable program codes; the CPU602 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 601 to implement the steps of:
receiving a first processing instruction of a target model;
determining a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one prestored transition operation instruction;
executing the first processing instruction and the first transitional operation instruction.
The electronic device further includes: peripheral interface 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, power management chip 608, input/output (I/O) subsystem 609, other input/control devices 610, touch screen 612, other input/control devices 610, and external port 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated electronic device 600 is merely one example of an electronic device, and that the electronic device 600 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail an electronic device for processing operation of a model provided in this embodiment, which is exemplified by a mobile phone.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user electronic device and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 605 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 605 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 605 into sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
The processing device, the storage medium and the electronic device of the model provided in the above embodiments can execute the processing method of the model provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For details of the model processing method provided in any of the embodiments of the present application, reference may be made to the above-described embodiments.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A method of model processing, comprising:
receiving a first processing instruction of a target model;
determining a first transition operation instruction corresponding to the first processing instruction according to the first processing instruction and at least one transition operation instruction stored in advance, wherein the first transition operation instruction comprises an action control instruction of a target model, the action control instruction is used for controlling the action of at least one key point in the target model and comprises at least one action mode of each key point, and the key point and the action mode of the key point included in the action control instruction are determined according to the first processing instruction and local model information carried in the first processing instruction;
executing the first processing instruction and the first transitional operation instruction.
2. The method of claim 1, wherein the first processing instruction comprises a load instruction and an unload instruction for a local model.
3. The method of claim 1, wherein the executing the first processing instruction and the first transition operation instruction comprises:
determining the execution timing of the first processing instruction and the first transitional operation instruction according to the type of the first processing instruction;
and sequentially executing the first processing instruction and the first transition operation instruction according to the execution time sequence.
4. The method of claim 3, wherein determining the timing of execution of the first processing instruction and the first transition operation instruction according to the type of the first processing instruction comprises:
if the first processing instruction is a loading instruction of a local model, synchronously executing the first processing instruction and the first transition operation instruction, and displaying the loaded local model in the target model after the first transition operation instruction is completed;
if the first processing instruction is an unloading instruction of a local model, the execution sequence of the first processing instruction is prior to the first transition operation instruction.
5. The method of claim 2, wherein when the first processing instruction is an unload instruction of a local model, prior to executing the first processing instruction and the first transition operation instruction, further comprising:
and when a second processing instruction for the target model is received within the processing time of the unloading instruction of the local model, executing the first processing instruction and the second control instruction.
6. The method of claim 5, wherein when the second processing instruction is a load instruction of a local model, determining a second transition operation instruction according to the first processing instruction and the second processing instruction;
correspondingly, the executing the first processing instruction and the second control instruction includes:
and executing the first processing instruction, and after executing the first processing instruction, synchronously executing the second transition operation instruction and the second processing instruction.
7. The method of claim 6, further comprising, prior to receiving the first processing instruction for the target model:
obtaining standard structure parameters of a target model, matching in a model database according to the standard structure parameters, and determining a reference model of the target model, wherein the model database comprises at least one model to create;
determining a local model to be adjusted in the reference model according to the standard structure parameters;
determining a standard local model according to the standard local structure parameters corresponding to the local model to be adjusted;
correspondingly, the first processing instruction is an unloading instruction of the local model to be adjusted, the second processing instruction is a loading instruction of the standard local model, and the second transition operation instruction is a transition operation instruction of updating the local model;
executing the first processing instruction, and after executing the first processing instruction, synchronously executing the second transition operation instruction and the second processing instruction, including:
and executing an unloading instruction of the local model to be adjusted on the target model, synchronously executing a transition operation instruction for updating the local model and a loading instruction of the standard local model, and displaying the standard local model in the reference model after the transition operation instruction for updating the local model is completed so as to generate the target model.
8. An apparatus for processing a model, comprising:
the first processing instruction receiving module is used for receiving a first processing instruction of the target model;
a first transition operation instruction determining module, configured to determine, according to the first processing instruction and at least one transition operation instruction stored in advance, a first transition operation instruction corresponding to the first processing instruction, where the first transition operation instruction includes an action control instruction of a target model, the action control instruction is used to control an action on at least one key point in the target model, and includes at least one action mode of each key point, and the key point included in the action control instruction and the action mode of the key point are determined according to the first processing instruction and local model information carried in the first processing instruction;
and the first instruction execution module is used for executing the first processing instruction and the first transition operation instruction.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of processing a model according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of processing the model according to any one of claims 1 to 7 when executing the computer program.
CN201910156326.6A 2019-03-01 2019-03-01 Model processing method and device, storage medium and electronic equipment Active CN109903395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910156326.6A CN109903395B (en) 2019-03-01 2019-03-01 Model processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910156326.6A CN109903395B (en) 2019-03-01 2019-03-01 Model processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109903395A CN109903395A (en) 2019-06-18
CN109903395B true CN109903395B (en) 2021-07-09

Family

ID=66946052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910156326.6A Active CN109903395B (en) 2019-03-01 2019-03-01 Model processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109903395B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110342B (en) * 2021-04-22 2022-04-26 中国电力工程顾问集团西北电力设计院有限公司 Multifunctional tower type molten salt photo-thermal power station simulation verification platform and implementation method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214068A (en) * 2011-04-28 2011-10-12 宇龙计算机通信科技(深圳)有限公司 Control method for page switching display and mobile terminal
CN106527914A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 A page turning method and device and an electronic apparatus
CN106933592A (en) * 2017-03-17 2017-07-07 武汉斗鱼网络科技有限公司 Interactive animation generation method and device
CN107223271A (en) * 2016-12-28 2017-09-29 深圳前海达闼云端智能科技有限公司 A kind of data display processing method and device
WO2018177208A1 (en) * 2017-04-01 2018-10-04 腾讯科技(深圳)有限公司 Costume replacement method and apparatus, computer readable medium and electronic device
CN108875079A (en) * 2018-07-12 2018-11-23 北京千家悦网络科技有限公司 A method of switching browser page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9069440B2 (en) * 2012-06-05 2015-06-30 Apple Inc. Method, system and apparatus for providing a three-dimensional transition animation for a map view change

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214068A (en) * 2011-04-28 2011-10-12 宇龙计算机通信科技(深圳)有限公司 Control method for page switching display and mobile terminal
CN106527914A (en) * 2015-09-09 2017-03-22 阿里巴巴集团控股有限公司 A page turning method and device and an electronic apparatus
CN107223271A (en) * 2016-12-28 2017-09-29 深圳前海达闼云端智能科技有限公司 A kind of data display processing method and device
CN106933592A (en) * 2017-03-17 2017-07-07 武汉斗鱼网络科技有限公司 Interactive animation generation method and device
WO2018177208A1 (en) * 2017-04-01 2018-10-04 腾讯科技(深圳)有限公司 Costume replacement method and apparatus, computer readable medium and electronic device
CN108875079A (en) * 2018-07-12 2018-11-23 北京千家悦网络科技有限公司 A method of switching browser page

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ppt点击文字出现图片,再次点击消失;王晓东1号;《https://www.cnblogs.com/Donnnnnn/p/7542851.html》;20170918;全文 *
如何在PPT中实现多张图片叠加在一起,点击消失一张出来下一张的效果;半个圆弧;《http://blog.sina.com.cn/s/blog_4fc125320100p9ub.html》;20110221;全文 *
王晓东1号.ppt点击文字出现图片,再次点击消失.《https://www.cnblogs.com/Donnnnnn/p/7542851.html》.2017,全文. *

Also Published As

Publication number Publication date
CN109903395A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN109324749B (en) Drawing method, drawing device, storage medium and electronic equipment
CN108076224A (en) application control method, device and storage medium and mobile terminal
KR20170001186A (en) Electronic device and Method for providing a haptic feedback of the same
US20170046123A1 (en) Device for providing sound user interface and method thereof
CN109495871B (en) Bluetooth connection control method, electronic device and computer readable storage medium
CN109903375B (en) Model generation method and device, storage medium and electronic equipment
CN109829982B (en) Model matching method, device, terminal equipment and storage medium
CN108733193A (en) Method, apparatus, storage medium and the intelligent terminal of adjustment frame per second
CN109903395B (en) Model processing method and device, storage medium and electronic equipment
US9757651B2 (en) Electronic device and method of processing user input by electronic device
CN111399874A (en) System upgrading method and device, storage medium and intelligent wearable device
CN108986187B (en) Universal animation realization method and device, storage medium and android terminal
CN112463103A (en) Sound pickup method, sound pickup device, electronic device and storage medium
CN110119243A (en) Command processing method, device, terminal and storage medium
CN107193551B (en) Method and device for generating image frame
CN106791090B (en) Mobile terminal restart control method and device and mobile terminal
CN109656719B (en) Algorithm processing method and device, storage medium and terminal equipment
CN106954191A (en) Broadcast transmission method, device and terminal device
CN110362203B (en) Information processing method and device, storage medium and augmented reality equipment
CN106249874A (en) The report method of a kind of sensing data, processor and mobile terminal
CN107704919B (en) Control method and device of mobile terminal, storage medium and mobile terminal
CN107025058B (en) Information writing method and device of mobile terminal and mobile terminal
CN110941977A (en) Image processing method, image processing device, storage medium and electronic equipment
CN109949406B (en) Model action processing method and device, storage medium and electronic equipment
CN109298942B (en) Picture processing method and electronic 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
GR01 Patent grant
GR01 Patent grant