CN110069570B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN110069570B
CN110069570B CN201811368710.4A CN201811368710A CN110069570B CN 110069570 B CN110069570 B CN 110069570B CN 201811368710 A CN201811368710 A CN 201811368710A CN 110069570 B CN110069570 B CN 110069570B
Authority
CN
China
Prior art keywords
data
type
attribute
class
processing
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
CN201811368710.4A
Other languages
Chinese (zh)
Other versions
CN110069570A (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.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision Technology 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 Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811368710.4A priority Critical patent/CN110069570B/en
Publication of CN110069570A publication Critical patent/CN110069570A/en
Application granted granted Critical
Publication of CN110069570B publication Critical patent/CN110069570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure discloses a data processing method, a data processing device, an electronic device and a computer readable storage medium. The data processing method comprises the following steps: acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute; judging the value of a first attribute of the first type of data and the second type of data; if the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule; and generating a data processing queue according to the processed first class data and the processed second class data. The embodiment of the disclosure solves the technical problem of data processing conflict in the prior art by judging the attribute value of the data and processing the data by using the preset processing rule according to the attribute value to generate the processing queue of the data.

Description

Data processing method and device
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a data processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, the application range of the intelligent terminal is widely improved, for example, the intelligent terminal can listen to music, play games, chat on internet, take pictures and the like. For the photographing technology of the intelligent terminal, the photographing pixels of the intelligent terminal reach more than ten million pixels, and the intelligent terminal has higher definition and the photographing effect comparable to that of a professional camera.
At present, when an intelligent terminal is used for photographing, not only can photographing effects of traditional functions be realized by using photographing software built in when the intelligent terminal leaves a factory, but also photographing effects with additional functions can be realized by downloading an application (APP for short) from a network end, for example, the APP with functions of dark light detection, a beauty camera, super pixels and the like can be realized. Various special effects such as beauty, filters, large eyes and thin face, etc. can be formed by combining various basic image processes.
However, sometimes a user may select multiple special effects at the same time to realize some superimposed effects, in a conventional special effect superimposing method, usually, a later added special effect is directly superimposed on a previous special effect, or the superimposed special effects are processed according to a certain priority level, which is very inflexible, and the user often cannot obtain a desired effect, and some special effects may conflict with each other to affect the display effect of the special effects.
Disclosure of Invention
In a first aspect, an embodiment of the present disclosure provides a data processing method, including: acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute; judging the value of a first attribute of the first type of data and the second type of data; if the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule; and generating a data processing queue according to the processed first class data and the processed second class data.
Further, before the acquiring the first type data and the second type data, the method further includes: setting a value of a first attribute of the first type of data and the second type of data.
Further, the first type of data and the second type of data further include a second attribute, and if the value of the first attribute is a first value, the processing of the first type of data and the second type of data according to a preset processing rule includes: and if the values of the second attributes of the first type of data and the second type of data are the same and the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule.
Further, before the acquiring the first type data and the second type data, the method further includes: and setting a processing rule corresponding to the value of the second attribute.
Further, the setting of the processing rule corresponding to the value of the second attribute includes: and reading a second attribute configuration file, wherein the second attribute configuration file comprises a processing rule corresponding to the value of the second attribute.
Further, the second attribute configuration file further includes: and when the triggering condition is met, changing the processing rule corresponding to the value of the second attribute into the processing rule corresponding to the triggering condition.
Further, the method is characterized by further comprising: and if the value of the first attribute is a second value, generating a data processing queue according to the priority of the first class of data and the second class of data.
Further, the method further comprises: acquiring the change state of the first type of data and/or the second type of data; reprocessing the first class data and the second class data according to the change state; and generating a data processing queue according to the reprocessed first class data and the second class data.
Further, the changing state includes: one or more of switching, adding or deleting, and replacing of the valid state or invalid state.
Further, the rule of the preset processing includes: one or more of the first type of data is valid, the second type of data is valid, the first type of data and the second type of data are simultaneously valid, and the first type of data and the second type of data are mutually exclusive.
In a second aspect, an embodiment of the present disclosure provides a data processing apparatus, including:
the data acquisition module is used for acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute and a second attribute value;
the attribute value judging module is used for judging the values of the first attribute and the second attribute of the first type data and the second type data;
the data processing module is used for processing the first type of data and the second type of data according to a preset processing rule if the values of the second attributes of the first type of data and the second type of data are the same and the value of the first attribute is a first value;
and the processing queue generating module is used for generating a data processing queue according to the processed first-class data and the processed second-class data.
Further, the data processing apparatus further includes:
and the processing rule setting module is used for setting the processing rule corresponding to the value of the second attribute.
Further, the processing rule setting module includes:
and the second attribute configuration file reading module is used for reading a second attribute configuration file, and the second attribute configuration file stores a processing rule corresponding to the value of the second attribute.
Further, the second attribute configuration file further includes:
and when the triggering condition is met, changing the processing rule corresponding to the value of the second attribute into the processing rule corresponding to the triggering condition.
Further, the processing queue generating module is further configured to: and if the value of the first attribute is a second value, generating a data processing queue according to the priority of the first class of data and the second class of data.
Further, the data processing module is further configured to: acquiring the change state of the first type of data and/or the second type of data; reprocessing the first class data and the second class data according to the change state; the processing queue generating module is further configured to: and generating a data processing queue according to the reprocessed first class data and the second class data.
Further, the changing state includes: one or more of switching, adding or deleting, and replacing of the valid state or invalid state.
Further, the rule of the preset processing includes: one or more of the first type of data is valid, the second type of data is valid, the first type of data and the second type of data are simultaneously valid, and the first type of data and the second type of data are mutually exclusive.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data processing method of any one of the preceding first aspects.
In a fourth aspect, the disclosed embodiments provide a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the data processing method of any one of the foregoing first aspects.
The disclosure discloses a data processing method, a data processing device, an electronic device and a computer readable storage medium. The data processing method comprises the following steps: acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute; judging the value of a first attribute of the first type of data and the second type of data; if the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule; and generating a data processing queue according to the processed first class data and the processed second class data. The embodiment of the disclosure solves the technical problem of data processing conflict in the prior art by judging the attribute value of the data and processing the data by using the preset processing rule according to the attribute value to generate the processing queue of the data.
The foregoing is a summary of the present disclosure, and for the purposes of promoting a clear understanding of the technical means of the present disclosure, the present disclosure may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained according to the drawings without creative efforts for those skilled in the art.
Fig. 1 is a flowchart of a first embodiment of a data processing method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a second embodiment of a data processing method according to the present disclosure;
fig. 3 is a schematic structural diagram of a first data processing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a second data processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
Fig. 1 is a flowchart of a first embodiment of a data processing method provided in the present disclosure, where the data processing method provided in this embodiment may be executed by a data processing apparatus, the data processing apparatus may be implemented as software, or implemented as a combination of software and hardware, and the data processing apparatus may be integrally disposed in a certain device in a data processing system, such as a data processing server or a data processing terminal device. As shown in fig. 1, the method comprises the steps of:
step S101, acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute;
in one embodiment, the first type of data and the second type of data are special effect packets, and objects in a video acquired by a terminal device can be processed by using the special effect packets to generate special effects. Optionally, the special effect bag may be a beauty bag, a filter, a big eye and a thin face, a night mode, a black color, and the like. The first type of data can be a built-in (BuildIn) special effect package, the second type of data is an issued (Active) special effect package, the built-in special effect package is a special effect package preset in the terminal device in advance, and the issued special effect package is a special effect package obtained from the server dynamically.
In this embodiment, the first class of data and the second class of data include a first attribute, the first attribute indicates whether the first class of data and the second class of data have a service function, and a value of the first attribute includes a service and a non-service. When the value of the first attribute is a service, the first class of data and the second class of data comprise service processing logic; when the value of the first attribute is non-service, the first type of data and the second type of data do not include service processing logic.
Step S102: judging the value of a first attribute of the first type of data and the second type of data;
in this step, the value of the first attribute of the first type of data and the second type of data is determined. In this embodiment, the first type of data and the second type of data are special effect packets, where the first type of data is a built-in special effect packet, the second type of data is an issued special effect packet, whether the built-in special effect packet is a service special effect packet or a non-service special effect packet is determined, and whether the issued special effect packet is a service special effect packet or a non-service special effect packet is determined. The above embodiments of the first attribute and the value of the first attribute are only examples, and are not intended to limit the present disclosure, and the first attribute may be any attribute of the first type data and the second type data, and the value of the first attribute may also be any value.
Step S103: if the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule;
in this step, if it is determined in step S102 that the value of the first attribute is the first value, the first type data and the second type data are processed according to a predetermined processing rule. Optionally, the preset rule may be one or more of validity of the first type of data, validity of the second type of data, simultaneous validity of the first type of data and the second type of data, and mutual exclusion of the first type of data and the second type of data. Optionally, the first type of data is a built-in special effect package, the second type of data is a delivered special effect package, and when the first attribute values of the built-in special effect package and the delivered special effect package are both services, both the built-in special effect package and the delivered special effect package have a service function. Optionally, the built-in special effect package is a beauty special effect package, the issued special effect package is also a beauty special effect package, the preset processing rule is to enable the built-in special effect package to take effect, at this time, the first type of data and the second type of data are processed according to the preset processing rule, and the processing result is to enable the built-in beauty special effect package to take effect and enable the issued beauty special effect package not to take effect when the built-in beauty special effect package and the issued beauty special effect package are used simultaneously. Of course, there are many preset rules, and the above examples are only examples and do not limit the disclosure.
Step S104: and generating a data processing queue according to the processed first class data and the processed second class data.
In this step, a data processing queue is generated from the processed first-type data and second-type data according to the processing result in step S103. Optionally, the first type of data is a built-in special effect package, the second type of data is a delivered special effect package, and when the processing result in S103 is that the built-in special effect package is enabled to be effective and the delivered special effect package is not enabled to be effective, the built-in special effect package is placed in the rendering chain, and the delivered special effect package is not placed in the rendering chain. And the rendering chain is a queue of the special effect packages, and after the rendering chain is generated, the special effect packages in the rendering chain are used for processing the images in sequence. Optionally, the built-in special effect packages include a beauty special effect package, a filter special effect package, and a large-eye face-thinning special effect package, the issued special effect packages also include the beauty special effect package, the filter special effect package, and the large-eye face-thinning special effect package, and in order to validate the built-in special effect package, the built-in beauty special effect package, the filter special effect package, and the large-eye face-thinning special effect package are used to generate a rendering sequence in sequence, and after the rendering sequence is generated, the rendering sequence can be used to process the images collected by the terminal device, and the processing sequence is to perform beauty processing first, then perform filter processing, and finally perform large-eye face-thinning processing. Particularly, when attention needs to be paid to the mutual exclusion processing rule, when the first type of data or the second type of data which is effective is cleared, the second type of data or the first type of data which is mutually exclusive immediately takes effect, if the built-in beauty special effect package and the issued beauty special effect package are sequentially set, the issued beauty special effect package takes effect according to the mutual exclusion rule, and when the issued beauty special effect package is cleared, the built-in beauty special effect package takes effect.
In one embodiment, when the value of the first attribute of the first type data and the second type data determined in step S102 is the second value, a data processing queue is generated according to the priority of the first type data and the second type data. Optionally, the first type of data is a built-in special effect packet, the second type of data is a delivered special effect packet, and the value of the first attribute is determined to be non-service, that is, the built-in special effect packet and the delivered special effect packet do not have a service function, at this time, a data processing queue is directly generated according to the priority of the first type of data and the second type of data, which is not described herein again.
In one embodiment, after step S104, the method may further include:
acquiring the change state of the first type of data and/or the second type of data;
and reprocessing the first type of data and the second type of data according to the change state, and generating a data processing queue according to the reprocessed first type of data and second type of data.
Wherein the change state comprises one or more of switching, adding or deleting and replacing the valid state or the invalid state.
In this embodiment, after the data processing queue is generated, the first type of data and the second type of data may be changed, for example, the state of the built-in special effect package is switched from the valid state to the invalid state, the added or deleted issued special effect package, the replacement of the issued special effect package, and the like.
In one embodiment, before the step S101, a step S105 may be further included:
setting a value of a first attribute of the first type of data and the second type of data. Optionally, the first attribute may indicate whether the first type of data and the second type of data have a service function, and a value of the first attribute may include a service and a non-service. In this embodiment, the setting of the value of the first attribute may be directly set, and optionally, a direct setting mode is to receive a setting command, where the setting command includes the value of the first attribute; the setting of the first attribute may be set indirectly, and an alternative indirect setting mode is to read a configuration file, where the configuration file has a value of the first attribute. By setting the value of the first attribute of the first type of data and the second type of data, different data processing queues can be generated to achieve different effects.
Fig. 2 is a flowchart of a second data processing method provided in an embodiment of the present disclosure, where the data processing method provided in this embodiment may be executed by a data processing apparatus, the data processing apparatus may be implemented as software, or implemented as a combination of software and hardware, and the data processing apparatus may be integrally disposed in a certain device in a data processing system, such as a data processing server or a data processing terminal device. As shown in fig. 2, the method comprises the steps of:
step S201: acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute and a second attribute;
in one embodiment, the first type of data and the second type of data are special effect packets, and objects in a video acquired by a terminal device can be processed by using the special effect packets to generate special effects. Optionally, the special effect bag may be a beauty bag, a filter, a big eye and a thin face, a night mode, a black color, and the like. The first type of data may be a built-in special effect package, the second type of data may be an issued special effect package, the built-in special effect package is a special effect package preset in the terminal device in advance, and the issued special effect package is a special effect package dynamically acquired from the server.
In this embodiment, the first class of data and the second class of data include a first attribute, the first attribute indicates whether the first class of data and the second class of data have a service function, and a value of the first attribute includes a service and a non-service. When the value of the first attribute is a service, the first class of data and the second class of data comprise service processing logic; when the value of the first attribute is non-service, the first type of data and the second type of data do not include service processing logic.
In this embodiment, the first class of data and the second class of data further include a second attribute. Optionally, the second attribute indicates another classification type of the first type of data and the second type of data. Optionally, the first type of data and the second type of data are special effect packages, and the second attribute is the type of the special effect package, that is, the special effect package is a beauty type special effect package, a filter type special effect package, a large-eye face-thinning type special effect package, a night mode type special effect package, a beauty-blackness type special effect package, or the like, and details thereof are omitted.
Step S202: judging the values of the first attribute and the second attribute of the first type data and the second type data;
in this step, the value of the first attribute of the first type of data and the second type of data is determined. In this embodiment, the first type of data and the second type of data are special effect packets, where the first type of data is a built-in special effect packet, the second type of data is an issued special effect packet, whether the built-in special effect packet is a service special effect packet or a non-service special effect packet is determined, and whether the issued special effect packet is a service special effect packet or a non-service special effect packet is determined. The above embodiments of the first attribute and the value of the first attribute are only examples, and are not intended to limit the present disclosure, and the first attribute may be any attribute of the first type data and the second type data, and the value of the first attribute may also be any value.
In this step, the value of the second attribute of the first type data and the second type data is judged. Optionally, the second attribute indicates another classification type of the first type of data and the second type of data. Optionally, the first type of data and the second type of data are special effect packets, and the value of the second attribute is the type of the special effect packet, that is, the special effect packets are a beauty type special effect packet, a filter type special effect packet, a large-eye face-thinning type special effect packet, a night mode type special effect packet, a beauty-blacking type special effect packet, and the like, and are not described again. The above embodiments of the second attribute and the value of the second attribute are only examples, and are not intended to limit the present disclosure, and the second attribute may be any attribute of the first type data and the second type data, and the value of the second attribute may also be any value.
Step S203: if the values of the second attributes of the first type of data and the second type of data are the same and the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule;
in this step, if it is determined in step S202 that the values of the second attributes of the first type data and the second type data are the same and the value of the second attribute of the first type data and the second type data is the first value, the first type data and the second type data are processed according to a preset processing rule. Optionally, the preset rule may be one or more of validity of the first type of data, validity of the second type of data, simultaneous validity of the first type of data and the second type of data, and mutual exclusion of the first type of data and the second type of data. Optionally, the first type of data is a built-in special effect package, the second type of data is a delivered special effect package, the second attributes of the built-in special effect package and the delivered special effect package are both beauty types, when the first attributes are both services, the preset processing rule is to enable the built-in special effect package to take effect, at this time, the first type of data and the second type of data are processed according to the preset processing rule, and the processing result is to enable the built-in beauty special effect package to take effect when the built-in beauty special effect package and the delivered beauty special effect package are used simultaneously, so that the delivered beauty special effect package is not in effect. Of course, there are many preset rules, and the above examples are only examples and do not limit the disclosure.
In this embodiment, the comparison processing is performed only on the first type data and the second type data having the same value of the second attribute. Optionally, the first type of data may include a plurality of first type of data, and the second type of data may include a plurality of second type of data. Optionally, the first type of data is a built-in special effect package, the built-in special effect package includes a first built-in beauty special effect package, a first built-in filter special effect package, and a second built-in filter special effect package, the second type of data is a delivered special effect package, the delivered special effect package includes a first delivered beauty special effect package, a second delivered beauty special effect package, and a first delivered filter special effect package, the processing rule is that the first type of data and the second type of data are mutually exclusive, that is, the last one of the first type of data and the second type of data is set to be effective, according to the rule, when the setting sequence of the beauty special effect package is that the first built-in beauty special effect package, the first delivered beauty special effect package, and the second delivered beauty special effect package are effective, and when the setting sequence of the filters is that the first built-in beauty special effect package, the first built-in filter special effect package, the first built-in beauty special effect package, the second built-in filter special effect package, and the second built-in special effect package, The filter box comprises a first sending filter special effect bag, a second built-in filter special effect bag and a second built-in filter special effect bag, wherein the second built-in filter special effect bag takes effect. It is understood that the above alternative examples are only examples, and do not limit the present disclosure, and different data processing results can be formed by selecting attributes and attribute values, and selecting processing rules.
Step S204: and generating a data processing queue according to the processed first class data and the processed second class data.
In this step, a data processing queue is generated from the processed first-type data and second-type data according to the processing result in step S203. Optionally, the first type of data is a built-in special effect package, the second type of data is a delivered special effect package, and when the processing result in S203 is that the built-in special effect package is enabled to be effective and the delivered special effect package is not enabled to be effective, the built-in special effect package is placed in the rendering chain, and the delivered special effect package is not placed in the rendering chain. And the rendering chain is a queue of the special effect packages, and after the rendering chain is generated, the special effect packages in the rendering chain are used for processing the images in sequence. Optionally, the built-in special effect packages include a beauty special effect package, a filter special effect package, and a large-eye face-thinning special effect package, the issued special effect packages also include the beauty special effect package, the filter special effect package, and the large-eye face-thinning special effect package, and in order to validate the built-in special effect package, the built-in beauty special effect package, the filter special effect package, and the large-eye face-thinning special effect package are used to generate a rendering sequence in sequence, and after the rendering sequence is generated, the rendering sequence can be used to process the images collected by the terminal device, and the processing sequence is to perform beauty processing first, then perform filter processing, and finally perform large-eye face-thinning processing.
In one embodiment, before step S201, step S205 is further included:
and setting a processing rule corresponding to the value of the second attribute.
Optionally, the processing rule of the beauty type may be set as the mutual exclusion of the first type data and the second type data, the processing rule of the filter type may be set as the validity of the second type data, and the processing rule of the blackness type may be set as the validity of the second type data. Optionally, the setting of the processing rule corresponding to the value of the second attribute may be reading a second attribute configuration file, where the processing rule corresponding to the value of the second attribute is stored in the second attribute configuration file, and a user may change the processing rule corresponding to the value of the different second attribute or the processing rule itself by modifying the configuration file of the second attribute.
In an embodiment, the configuration file of the second attribute further includes a trigger condition of the value of the second attribute, and when the trigger condition is satisfied, the processing rule corresponding to the value of the second attribute is changed to the processing rule corresponding to the trigger condition. In this embodiment, dynamic change of the processing rule may be implemented, in one example, when a smiling expression of a face in an image is set in the configuration file of the second attribute, the processing rule of the beauty type is changed to enable the issued beauty effect package to take effect, and the previous rule is to enable the built-in beauty effect package to take effect, so that a user may control the effective effect package through the expression or the action, and a technical effect of dynamically changing the processing rule may be implemented.
In one embodiment, when the value of the first attribute of the first type data and the second type data determined in step S202 is the second value, a data processing queue is generated according to the priority of the first type data and the second type data. Optionally, the first type of data is a built-in special effect packet, the second type of data is a delivered special effect packet, and the value of the first attribute is determined to be non-service, that is, the built-in special effect packet and the delivered special effect packet do not have a service function, at this time, a data processing queue is directly generated according to the priority of the first type of data and the second type of data, which is not described herein again.
In one embodiment, after step S204, the method may further include:
acquiring the change state of the first type of data and/or the second type of data;
and reprocessing the first type of data and the second type of data according to the change state, and generating a data processing queue according to the reprocessed first type of data and second type of data.
Wherein the change state comprises one or more of switching, adding or deleting and replacing the valid state or the invalid state.
In this embodiment, after the data processing queue is generated, the first type of data and the second type of data may be changed, for example, the state of the built-in special effect package is switched from the valid state to the invalid state, the added or deleted issued special effect package, the replacement of the issued special effect package, and the like.
The disclosure discloses a data processing method, a data processing device, an electronic device and a computer readable storage medium. The data processing method comprises the following steps: acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute; judging the value of a first attribute of the first type of data and the second type of data; if the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule; and generating a data processing queue according to the processed first class data and the processed second class data. The embodiment of the disclosure solves the technical problem of data processing conflict in the prior art by judging the attribute value of the data and processing the data by using the preset processing rule according to the attribute value to generate the processing queue of the data.
Fig. 3 is a schematic structural diagram of a first data processing apparatus according to an embodiment of the present disclosure, and as shown in fig. 3, the apparatus 300 includes: a data acquisition module 301, a first attribute value judgment module 302, a data processing module 303 and a processing queue generation module 304. Wherein the content of the first and second substances,
a data obtaining module 301, configured to obtain first type data and second type data, where the first type data and the second type data include a first attribute;
a first attribute value determining module 302, configured to determine a value of a first attribute of the first type of data and the second type of data;
a data processing module 303, configured to, if the value of the first attribute is a first value, process the first type of data and the second type of data according to a preset processing rule;
and a processing queue generating module 304, configured to generate a data processing queue according to the processed first type data and the processed second type data.
Further, the data processing apparatus 300 further includes:
and the first attribute value setting module is used for setting the value of the first attribute of the first type of data and the second type of data.
Further, the processing queue generating module 304 is further configured to:
and if the value of the first attribute is a second value, generating a data processing queue according to the priority of the first class of data and the second class of data.
Further, the data processing module 303 is further configured to: acquiring the change state of the first type of data and/or the second type of data; reprocessing the first class data and the second class data according to the change state; the processing queue generating module 304 is further configured to: and generating a data processing queue according to the reprocessed first class data and the second class data.
Further, the changing state includes: one or more of switching, adding or deleting, and replacing of the valid state or invalid state.
Further, the rule of the preset processing includes: one or more of the first type of data is valid, the second type of data is valid, the first type of data and the second type of data are simultaneously valid, and the first type of data and the second type of data are mutually exclusive.
The apparatus shown in fig. 3 can perform the method of the embodiment shown in fig. 1, and reference may be made to the related description of the embodiment shown in fig. 1 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 1, and are not described herein again.
Fig. 4 is a schematic structural diagram of a second data processing apparatus according to an embodiment of the present disclosure, and as shown in fig. 3, the apparatus 400 includes: a data acquisition module 401, an attribute value judgment module 402, a data processing module 403 and a processing queue generation module 404. Wherein the content of the first and second substances,
a data obtaining module 401, configured to obtain first-class data and second-class data, where the first-class data and the second-class data include a first attribute and a second attribute value;
an attribute value determination module 402, configured to determine a value of a first attribute and a value of a second attribute of the first type data and the second type data;
a data processing module 403, configured to process the first type of data and the second type of data according to a preset processing rule if the values of the second attributes of the first type of data and the second type of data are the same and the value of the first attribute is a first value;
and a processing queue generating module 404, configured to generate a data processing queue according to the processed first type data and the processed second type data.
Further, the data processing apparatus 400 further includes:
and the processing rule setting module is used for setting the processing rule corresponding to the value of the second attribute.
Further, the processing rule setting module includes:
and the second attribute configuration file reading module is used for reading a second attribute configuration file, and the second attribute configuration file stores a processing rule corresponding to the value of the second attribute.
Further, the second attribute configuration file further includes:
and when the triggering condition is met, changing the processing rule corresponding to the value of the second attribute into the processing rule corresponding to the triggering condition.
Further, the processing queue generating module 404 is further configured to: and if the value of the first attribute is a second value, generating a data processing queue according to the priority of the first class of data and the second class of data.
Further, the data processing module 403 is further configured to: acquiring the change state of the first type of data and/or the second type of data; reprocessing the first class data and the second class data according to the change state; the processing queue generating module 404 is further configured to: and generating a data processing queue according to the reprocessed first class data and the second class data.
Further, the changing state includes: one or more of switching, adding or deleting, and replacing of the valid state or invalid state.
Further, the rule of the preset processing includes: one or more of the first type of data is valid, the second type of data is valid, the first type of data and the second type of data are simultaneously valid, and the first type of data and the second type of data are mutually exclusive.
The apparatus shown in fig. 4 can perform the method of the embodiment shown in fig. 2, and reference may be made to the related description of the embodiment shown in fig. 2 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 2, and are not described herein again.
Referring now to FIG. 5, a block diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (12)

1. A data processing method, comprising:
acquiring first-class data and second-class data, wherein the first-class data and the second-class data comprise a first attribute;
judging the value of a first attribute of the first type of data and the second type of data;
if the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule;
generating a data processing queue according to the processed first class data and the processed second class data; the first type of data and the second type of data are used for processing data to be processed; the processing queue is used for determining the sequence of processing the data to be processed by using the processed first class data and the processed second class data; the first type of data and the second type of data are special effect packages; the value of the first attribute comprises a service and a non-service, and when the value of the first attribute is the service, the first type of data and the second type of data comprise service processing logic; when the value of the first attribute is non-service, the first class of data and the second class of data do not comprise service processing logic, and the first value is service; the preset processing rule is one or more of first-class data validity, second-class data validity, simultaneous validity of the first-class data and the second-class data, and mutual exclusion of the first-class data and the second-class data.
2. The data processing method of claim 1, further comprising, prior to said obtaining the first type of data and the second type of data:
setting a value of a first attribute of the first type of data and the second type of data.
3. The data processing method according to claim 1, wherein the first type of data and the second type of data further include a second attribute, and if the value of the first attribute is a first value, the processing of the first type of data and the second type of data according to a preset processing rule comprises:
and if the values of the second attributes of the first type of data and the second type of data are the same and the value of the first attribute is a first value, processing the first type of data and the second type of data according to a preset processing rule.
4. The data processing method of claim 3, further comprising, prior to said obtaining the first type of data and the second type of data:
and setting a processing rule corresponding to the value of the second attribute.
5. The data processing method of claim 4, wherein the setting of the processing rule corresponding to the value of the second attribute comprises:
and reading a second attribute configuration file, wherein the second attribute configuration file comprises a processing rule corresponding to the value of the second attribute.
6. The data processing method of claim 5, wherein the second attribute profile further comprises:
and when the triggering condition is met, changing the processing rule corresponding to the value of the second attribute into the processing rule corresponding to the triggering condition.
7. One of the data processing methods of claim 1 or 3, wherein the method further comprises:
and if the value of the first attribute is a second value, generating a data processing queue according to the priority of the first class of data and the second class of data.
8. One of the data processing methods of claim 1 or 3, wherein the method further comprises:
acquiring the change state of the first type of data and/or the second type of data;
reprocessing the first class data and the second class data according to the change state;
and generating a data processing queue according to the reprocessed first class data and the second class data.
9. The data processing method of claim 8, wherein the changing the state comprises:
one or more of switching, adding or deleting, and replacing of the valid state or invalid state.
10. A data processing apparatus, comprising:
the data acquisition module is used for acquiring first-class data and second-class data, and the first-class data and the second-class data comprise a first attribute;
the first attribute value judging module is used for judging the values of the first attributes of the first type of data and the second type of data;
the data processing module is used for processing the first type of data and the second type of data according to a preset processing rule if the value of the first attribute is a first value;
the processing queue generating module is used for generating a data processing queue according to the processed first type data and the processed second type data; the processing queue is used for determining the sequence of processing the data to be processed by using the processed first class data and the processed second class data; the first type of data and the second type of data are special effect packages; the value of the first attribute comprises a service and a non-service, and when the value of the first attribute is the service, the first type of data and the second type of data comprise service processing logic; when the value of the first attribute is non-service, the first class of data and the second class of data do not comprise service processing logic, and the first value is service; the preset processing rule is one or more of first-class data validity, second-class data validity, simultaneous validity of the first-class data and the second-class data, and mutual exclusion of the first-class data and the second-class data.
11. An electronic device, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executing performs the data processing method of any of claims 1-9.
12. A computer-readable storage medium storing non-transitory computer-readable instructions which, when executed by a computer, cause the computer to perform the data processing method of any one of claims 1-9.
CN201811368710.4A 2018-11-16 2018-11-16 Data processing method and device Active CN110069570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811368710.4A CN110069570B (en) 2018-11-16 2018-11-16 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811368710.4A CN110069570B (en) 2018-11-16 2018-11-16 Data processing method and device

Publications (2)

Publication Number Publication Date
CN110069570A CN110069570A (en) 2019-07-30
CN110069570B true CN110069570B (en) 2022-04-05

Family

ID=67365861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811368710.4A Active CN110069570B (en) 2018-11-16 2018-11-16 Data processing method and device

Country Status (1)

Country Link
CN (1) CN110069570B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020227A (en) * 2012-12-13 2013-04-03 中国银行股份有限公司 Data processing method and system in computer equipment
CN104731859A (en) * 2015-02-02 2015-06-24 厦门市美亚柏科信息股份有限公司 Data processing method and device
CN105787619A (en) * 2014-12-25 2016-07-20 阿里巴巴集团控股有限公司 Data processing method, data processing device, and data processing system
CN106897139A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of business datum
CN107203550A (en) * 2016-03-17 2017-09-26 华为技术有限公司 A kind of data processing method and database server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100274750A1 (en) * 2009-04-22 2010-10-28 Microsoft Corporation Data Classification Pipeline Including Automatic Classification Rules
US10832162B2 (en) * 2016-09-08 2020-11-10 International Business Machines Corporation Model based data processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020227A (en) * 2012-12-13 2013-04-03 中国银行股份有限公司 Data processing method and system in computer equipment
CN105787619A (en) * 2014-12-25 2016-07-20 阿里巴巴集团控股有限公司 Data processing method, data processing device, and data processing system
CN104731859A (en) * 2015-02-02 2015-06-24 厦门市美亚柏科信息股份有限公司 Data processing method and device
CN106897139A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of business datum
CN107203550A (en) * 2016-03-17 2017-09-26 华为技术有限公司 A kind of data processing method and database server

Also Published As

Publication number Publication date
CN110069570A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN110070496B (en) Method and device for generating image special effect and hardware device
CN111291244B (en) House source information display method, device, terminal and storage medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN110070592B (en) Generation method and device of special effect package and hardware device
CN110070495B (en) Image processing method and device and electronic equipment
US20230112005A1 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
CN112351221B (en) Image special effect processing method, device, electronic equipment and computer readable storage medium
CN110070586B (en) Color card generation method and device and electronic equipment
CN116596748A (en) Image stylization processing method, apparatus, device, storage medium, and program product
CN110069570B (en) Data processing method and device
CN114363654B (en) Video push method, device, terminal equipment and storage medium
CN111199519B (en) Method and device for generating special effect package
CN113766303B (en) Multi-screen interaction method, device, equipment and storage medium
CN111200705B (en) Image processing method and device
CN111223105B (en) Image processing method and device
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN112417276A (en) Paging data acquisition method and device, electronic equipment and computer readable storage medium
GB2600341A (en) Image special effect processing method and apparatus, electronic device and computer-readable storage medium
CN111292245A (en) Image processing method and device
CN110807114B (en) Method, device, terminal and storage medium for picture display
CN113010300A (en) Image effect refreshing method and device, electronic equipment and computer readable storage medium
CN113515329B (en) Special effect attribute setting method and device
CN117579563A (en) Hotel general current limiting queuing method and system based on applet
CN117412132A (en) Video generation method and device, electronic equipment and storage medium
CN117241101A (en) Video generation method, device, equipment and storage medium

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