CN108390850A - Data processing method, device, electronic equipment and server - Google Patents

Data processing method, device, electronic equipment and server Download PDF

Info

Publication number
CN108390850A
CN108390850A CN201810005607.7A CN201810005607A CN108390850A CN 108390850 A CN108390850 A CN 108390850A CN 201810005607 A CN201810005607 A CN 201810005607A CN 108390850 A CN108390850 A CN 108390850A
Authority
CN
China
Prior art keywords
data
initial data
several
configuration information
serialized
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.)
Granted
Application number
CN201810005607.7A
Other languages
Chinese (zh)
Other versions
CN108390850B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810005607.7A priority Critical patent/CN108390850B/en
Publication of CN108390850A publication Critical patent/CN108390850A/en
Application granted granted Critical
Publication of CN108390850B publication Critical patent/CN108390850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

A kind of data processing method of this specification offer, device, electronic equipment and server, the program can by several initial data and for initial data running configuration information configuration in same serialized data packet, using such mode, it can easily store data packet, carry out packet delivery;A certain loss of data can be prevented in the case where being related to multinomial related data;On the other hand, since running configuration information can serialize together with initial data, therefore during carrying out unserializing to data packet, if obtaining the facility environment information in operation and control information, it can support to read initial data according to current device context is determined, so as to be determined in time subsequently to the processing procedure of initial data according to judging result.

Description

Data processing method, device, electronic equipment and server
Technical field
This specification is related to technical field of data processing more particularly to data processing method, device, electronic equipment and service Device.
Background technology
In some data processing scenes, the processing of multiple associated documents is often referred to.For example, in some AR In (Augmented Reality, augmented reality) scene, completes AR effects and need to play a video, displaying plurality of pictures, follow Processing, the processing procedures such as ring displaying dynamic word are related to the data such as a video file, more parts of picture files and word.It provides The electronic equipment of AR services needs to obtain above-mentioned more parts of files.
Invention content
To overcome the problems in correlation technique, present description provides data processing method, device, electronic equipment and Server.
According to this specification embodiment in a first aspect, provide a kind of data processing method, the method includes:
Pending serialized data packet is obtained, the serialized data packet includes:It several initial data and is directed to The running configuration information of several initial data, the running configuration information include:Read several initial data Required facility environment information;
Unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, if obtaining the fortune Row configuration information then judges that can current device context read several initial data according to the facility environment information;
The processing procedure to several initial data is determined according to judging result.
Optionally, the processing procedure determined according to judging result to several initial data, including:
If it is determined that current device context can not read several initial data, data processing is terminated.
Optionally, several initial data in the serialized data packet are compressed data;
The processing procedure determined according to judging result to several initial data, including:
If it is determined that current device context can read several initial data, the compressed data are solved Several initial data are obtained after pressure.
Optionally, the serialized data packet includes the data portion after head and head, the running configuration information Configuration is in the head of the serialized data packet, data portion of several initial data configuration in the serialized data packet Point;
It is described that unserializing is carried out to the serialized data packet, including:
Unserializing is carried out to the head of the serialized data packet;
The processing procedure determined according to judging result to several initial data, including:
If it is determined that current device context can read several initial data, antitone sequence is carried out to the data portion Several initial data are obtained after change.
Optionally, the running configuration information further includes:The data type information of several initial data;
After the determining current device context can read several initial data, the method further includes:
Start the application program for reading the initial data according to the data type information.
Optionally, the running configuration information further includes:The operation and control information of several initial data;
The method further includes:
After obtaining several initial data, the application program is controlled according to the operation and control information and reads institute State initial data.
According to the second aspect of this specification embodiment, a kind of data processing method is provided, the method includes:
Obtain several pending initial data;
The running configuration information for several initial data is obtained, the running configuration information includes:Read institute State the facility environment information needed for several initial data;
The running configuration information and several initial data are serialized, serialized data packet is obtained.
Optionally, several initial data in the serialized data packet are compressed data.
Optionally, the serialized data packet includes the data portion after head and head, the running configuration information Configuration is in the head of the serialized data packet, data portion of several initial data configuration in the serialized data packet Point.
Optionally, the running configuration information obtained for several initial data, including:
The information configuration interface for the initial data is provided, configuring interface by described information obtains for the original The running configuration information of beginning data.
Optionally, the running configuration information obtained for several initial data, including:
The data type for identifying the initial data, generates the data type information of the initial data, and the operation is matched Confidence ceases:The data type information.
Optionally, the running configuration information includes:It is used to indicate the operation control that application program reads the initial data Information processed.
Optionally, described to be serialized, including:
It is serialized using ProtocolBuffer.
According to the third aspect of this specification embodiment, a kind of data processing method is provided, the method includes:
Pending serialized data packet is obtained, the serialized data packet includes:Several AR resources and be directed to institute The running configuration information of several AR resources is stated, the running configuration information includes:It reads needed for several AR resources Facility environment information;
Unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, if obtaining the fortune Row configuration information then judges that can current device context read several AR resources according to facility environment information;
The processing procedure to several AR resources is determined according to judging result.
According to the fourth aspect of this specification embodiment, a kind of data processing method is provided, the method includes:
Obtain several pending AR resources;
The running configuration information for several AR resources is obtained, the running configuration information includes:Described in reading Facility environment information needed for several AR resources;
The running configuration information and several AR resources are serialized, serialized data packet is obtained.
According to the 5th of this specification embodiment the aspect, a kind of data processing equipment is provided, described device includes:
Data packet acquisition module, is used for:Pending serialized data packet is obtained, the serialized data packet includes:If Dry item initial data and running configuration information for several initial data, the running configuration information include:It reads Take the facility environment information needed for several initial data;
Unserializing module, is used for:Unserializing is carried out to the serialized data packet, wherein carrying out unserializing In the process, if obtaining the running configuration information, judge that can current device context read according to the facility environment information Several initial data;
Determining module is handled, is used for:The processing procedure to several initial data is determined according to judging result.
According to the 6th of this specification embodiment the aspect, a kind of data processing equipment is provided, described device includes:
Data acquisition module is used for:Obtain several pending initial data;
Data obtaining module, for obtaining the running configuration information for several initial data, the operation is matched Confidence ceases:Read the facility environment information needed for several initial data;
Serialization module is obtained for serializing the running configuration information and several initial data Serialized data packet.
According to the 7th of this specification embodiment the aspect, a kind of electronic equipment is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Pending serialized data packet is obtained, the serialized data packet includes:It several initial data and is directed to The running configuration information of several initial data, the running configuration information include:Read several initial data Required facility environment information;
Unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, if obtaining the fortune Row configuration information then judges that can current device context read several initial data according to the facility environment information;
The processing procedure to several initial data is determined according to judging result.
According to the eighth aspect of this specification embodiment, a kind of server is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain several pending initial data;
The running configuration information for several initial data is obtained, the running configuration information includes:Read institute State the facility environment information needed for several initial data;
The running configuration information and several initial data are serialized, serialized data packet is obtained.
The technical solution that the embodiment of this specification provides can include the following benefits:
In this specification, can by several initial data and for initial data running configuration information configuration in same Serialized data packet can be stored easily using such mode, be carried out data distribution;In the feelings for being related to multinomial related data A certain loss of data can be prevented under condition;On the other hand, since running configuration information can serialize together with initial data, because This to data packet during carrying out unserializing, can be according to true if obtaining the facility environment information in operation and control information Can determine current device context support to read initial data, so as to be determined in time subsequently to initial data according to judging result Processing procedure.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not This specification can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the reality for meeting this specification Apply example, and the principle together with specification for explaining this specification.
Fig. 1 is a kind of AR schematic diagram of a scenario of this specification shown according to an exemplary embodiment.
Fig. 2A is a kind of data handling utility schematic diagram of a scenario of this specification shown according to an exemplary embodiment.
Fig. 2 B are a kind of flow charts of data processing method of this specification shown according to an exemplary embodiment.
Fig. 2 C are the flow charts of another data processing method of this specification shown according to an exemplary embodiment.
Fig. 3 is a kind of data processing schematic diagram of this specification shown according to an exemplary embodiment.
Fig. 4 is a kind of hardware structure diagram of server/electronic equipment where this specification data processing equipment.
Fig. 5 is a kind of block diagram of data processing equipment of this specification shown according to an exemplary embodiment.
Fig. 6 is the block diagram of another data processing equipment of this specification shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is the purpose only merely for description specific embodiment in the term that this specification uses, is not intended to be limiting this explanation Book.The "an" of used singulative, " described " and "the" are also intended to packet in this specification and in the appended claims Most forms are included, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein is Refer to and include one or more associated list items purposes any or all may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but These information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not taking off In the case of this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
In some data processing scenes, the processing of multinomial related data is often referred to.As shown in Figure 1, being that this illustrates root A kind of AR schematic diagram of a scenario shown according to an exemplary embodiment, Fig. 1 include the smart mobile phone that user is held and AR industry The server that business provider is configured, wherein the APP that business provider is provided is equipped in smart mobile phone AR business may be implemented by the APP in (Application, application program).The user is shot by the APP in smart mobile phone To a certain true environment picture, the AR business that may be implemented based on the true environment picture is had:It is folded on the true environment picture Add and plays a video, displaying plurality of pictures, circularly exhibiting dynamic word etc..The source data that the processing procedure is related to includes Have:The data such as a video file, more parts of picture files and word.Therefore, APP needs to prestore above-mentioned more parts of files or logical It crosses network and downloads above-mentioned more parts of files, after obtaining above-mentioned more parts of files, need to run corresponding program to read file.Other The scene for being related to more data processings further includes having page processing, and the source number of a variety of content of pages may also be related to when opening the page According to:Text, picture, video or animation etc..The client for opening the page is also required to download above-mentioned more parts of files by network, After obtaining above-mentioned more parts of files, need to run corresponding program to read file.
Based on this, this specification provides a kind of data processing scheme, by several initial data and can be directed to original number According to running configuration information configuration in same serialized data packet, using such mode, can easily store, carry out data point Hair;A certain loss of data can be prevented in the case where being related to multinomial related data;On the other hand, since running configuration information can To be serialized together with initial data, therefore during carrying out unserializing to data packet, if obtaining in operation and control information Facility environment information, can according to determine current device context can support read initial data, so as to timely basis Judging result determines subsequently to the processing procedure of initial data.
This specification embodiment be related to initial data carry out serializing obtain data packet process, and to data packet into The process of row unserializing.As shown in Figure 2 A, it is a kind of data processing of this specification shown according to an exemplary embodiment Application scenario diagram, Fig. 2A include the server-side as data providing, and as the electronic equipment of data receiver, user Electronic equipment can be utilized to access server-side, to obtain the business of data providing offer.
During realization business, due to being related to several initial data, server-side can apply this specification to implement The data processing scheme that example provides, as shown in Figure 2 B, the program may include:
In the step 212, several pending initial data are obtained.
In step 214, the running configuration information for several initial data, the running configuration information are obtained Including:Read the facility environment information needed for several initial data.
In the step 216, the running configuration information and several initial data are serialized, obtains sequence Change data packet.
Through the above scheme, several initial data and running configuration information processing can be serialized data by server-side Packet.Above-mentioned serialized data packet can be pre-stored within electronic equipment or electronic equipment when needed from server-side Place obtains.Electronic equipment when needed, can apply another data processing scheme of this specification embodiment offer, such as Fig. 2 C institutes Show, the program may include:
In step 222, pending serialized data packet is obtained, the serialized data packet includes:Several items are original Data and running configuration information for several initial data, the running configuration information include:If reading described Facility environment information needed for dry item initial data.
In step 224, unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, If obtaining the running configuration information, it is described several to judge that can current device context read according to the facility environment information Item initial data.
In step 226, the processing procedure to several initial data is determined according to judging result.
Through the above scheme, electronic equipment can obtain data packet unserializing initial data, and original by reading Data realize business.
Next above-mentioned data processing scheme is illustrated again.
For the ease of data distribution and storage, the server-side of the present embodiment can choose the relevant original of several items as needed Beginning data serialize processing in same data packet together, wherein initial data can be text file, voice document, image, AR models material, video or animation etc..
And in serialization process, in addition to initial data, this embodiment scheme further relates to the running configuration letter of initial data Breath.In view of the data packet after serializing is obtained by electronic equipment, electronic equipment can obtain original after carrying out antitone sequence to data packet Beginning data, following electronic equipment need to read initial data to realize business processing.But in practical application, for initial data Reading may need to configure some application program in electronic equipment, configure certain device or electronic equipment is required to have preferable property Energy etc. condition.As an example, reading initial data, which may require being equipped in electronic equipment, reads the initial data Application program requires to be built-in with gyroscope, acceleration transducer, gravity sensor, 3D laser sensor or preceding in electronic equipment It sets the devices such as camera, certain chips in electronic equipment is required to have preferable performance, require electronic equipment that can support AR functions Etc..In other examples, server-side provides service to the user by APP, and APP may have different editions, each version can Support different function, reading initial data may also need to specify certain APP versions.Therefore, this specification embodiment can root According to needing to obtain the running configuration information for initial data, these running configuration information may include software version information or hard Part environmental information etc. is used to indicate the condition that initial data can be read.
In practical application, obtain running configuration information mode can flexible configuration as needed, as an example, can be It is write by technical staff, optionally, the running configuration information write can be stored as the file of certain format.In other examples In, in order to improve treatment effeciency, the information configuration interface for the initial data can also be provided, configured by described information Interface obtains the running configuration information for the initial data, as an example, information configuration interface can be for for technology Personnel input input frame, input window or selection option of running configuration information etc., and by information configuration, interfacing personnel can To input or select running configuration information, the content that technical staff is inputted or selected later is uniformly converted to running configuration letter Breath.By such realization method, can also be supported to running configuration information in order to technical staff's editing run configuration information Extension.
To the specific implementation that initial data and running configuration information are serialized, can be selected in practical application Some sequencing methods, such as the ProtocolBuffer tools of Google, Jackson serializing tool, Python are provided Pickle modules etc..Serializing refer to data serializing be that is to say into the process for converting data to certain numeral system string, such as Convert data to binary string, hexadecimal string etc..Unserializing that is to say the supplementary set of the above process:By the number of serializing According to reading, the process of the identifiable data of programming language is resolved to.
Since the data packet after serializing is gone here and there together, during antitone sequence, in data packet according to definition is continuous The serial data of sequence in front can be obtained first by unserializing, therefore in this specification embodiment, can be according to " operation is matched Confidence breath is arranged in before initial data " sequence, running configuration information and initial data are serialized together.It obtains In serialized data packet, this specification embodiment can be understood as including at least two parts:Head and the number after head According to part, head includes above-mentioned running configuration information, and data portion includes above-mentioned several initial data.It is set for the ease of electronics The other head in preparation area and data portion can be arranged for distinguishing head and the data in an optional realization method Spacing identification between part;Can also be the fixed digit of setting as head portion, if the total bit of running configuration information Less than the fixed position, empty information, such as null etc. can be filled.
By the above-mentioned means, when electronic equipment carries out unserializing to data packet, due to can first obtain running configuration Information, so as to judge that can current device context read several initial data according to the facility environment information. Using above-mentioned processing, it is assumed that packet data part is larger, and can electronic equipment may read institute to current device context on one side It states several initial data to be judged, on one side in the unserializing processing for carrying out data portion, relative to the anti-of data portion Serializing, judging result can be obtained comparatively fast, and electronic equipment can be determined according to judging result to several initial data Processing procedure.
Assuming that electronic equipment can not read a certain initial data, it will be understood that electronic equipment will be unable to realization business, electronics Equipment can prompt the APP of user's download latest edition or be the reason of prompt user cannot achieve this business or end The initial data etc. that only data processing or deletion have serialized.As an example, if it is determined that current device context can not Several initial data are read, electronic equipment can terminate data processing immediately, without carrying out follow-up useless number According to processing work.
In addition to the above-mentioned realization method that data packet is divided into head and data portion, in other examples, server-side Data after compression and running configuration information can be subjected to serializing processing together so that finally obtain by after compressing original data The data packet obtained can occupy less memory space, can also improve the network transfer speeds of data packet.Using such mode, What is obtained after electronic equipment unserializing is compressed initial data, and the process of data decompression is usually relatively slow, electronic equipment Running configuration information and compressed initial data are obtained after to serialized data packet entirety unserializing, later according to fortune Row configuration information can determine that can current device context read several initial data can not if cannot read Compressed initial data is decompressed, without carrying out follow-up useless data processing work.If it is determined that current device Environment can read several initial data, and electronic equipment can continue data processing.
In view of that may need to handle a variety of different types of initial data in practical application, since every class initial data needs It to be read by corresponding application program, electronic equipment needs to start corresponding several answer after obtaining several initial data With program, in order to improve data processing speed, this illustrates in embodiment, can identify the data class of the initial data in advance Type generates the data type information of the initial data, and using data type information as a part for running configuration information.Its In, it identifies the process of the data type of initial data, can identify to obtain by reading the attribute information of data.
Therefore, electronic equipment is able to know that the data type of each initial data after carrying out unserializing to data packet, To pre-actuate several corresponding application programs.In the case where initial data is larger, initial data is more, electronic equipment Terminate to restart application program after obtaining initial data without waiting for unserializing.And for compressed initial data, due to Decompression procedure is usually with greater need for the time is expended, by the above-mentioned means, can start application program before decompression, to decompress The application program having had been turned on can be called to read initial data after to initial data at once, to improve data-handling efficiency, Business realizing speed is faster.
It should be noted that it is data that can also configure other data in practical application as needed to serialize processing together Packet so that more other informations can also be carried in serialized data packet, the present embodiment is not construed as limiting this.When being related to more letter When breath needs to serialize processing together, for the ease of inverted sequence column processing later, serializing rule, serializing rule can be set Can then specify running configuration information and every initial data put in order and running configuration information in each information row Row sequence, or the separation between every information can also be specified to identify etc., it can be with flexible configuration, this implementation in practical application Example is not construed as limiting this.
In some business realizing scenes, initial data may relate to certain customized control modes, as an example, certain Needed in a AR business scenarios by video file play it is primary after close, by text importing twice, by audio file loop play Etc..For these initial data after reading opening by application program, electronic equipment needs to know how that control application program is read Initial data, these information can also merge is supplied to electronic equipment, this specification real in serialized data packet by server-side It applies example and the information how these control application programs read initial data is referred to as operation and control information.Based on this, the fortune Row configuration information can also include:The operation and control information of several initial data, electronic equipment are described several in acquisition After item initial data, the application program can be controlled according to the operation and control information and read the initial data, to carry For more abundant data processing scheme.
Next this specification scheme is illustrated by another embodiment again.
For realizing AR business, server-side provides a user APP, which is installed in electronic equipment, which can be real Existing AR business.As shown in figure 3, being this specification according to the data processing schematic diagram shown in an exemplary embodiment, server-side can With the data processing scheme provided using this specification embodiment, it will realize that several AR resources needed for AR business are handled in advance For serialized data packet.Wherein, the processing side for data to be carried out with serializing acquisition serialized data packet in the present embodiment Case, optionally, specific implementation product can be a software, which is supplied to the technical staff for carrying out data preparation, by the skill Art personnel carry out serializing processing to initial data etc. using the software and obtain serialized data packet.
Optionally, serializing and unserializing are realized using Protocol Buffer tools in the present embodiment.Protocol Buffer (abbreviation Protobuf) is a kind of structural data storage format of portable and effective, and it is serial to can be used for structural data Change, serialize in other words, is that a kind of language can be used for the fields such as communications protocol, data storage is unrelated, platform is unrelated, expansible Serializing structured data formats.
The serializing rule of initial data and running configuration information can be determined first, wherein running configuration information is arranged On head, initial data is set to the data portion after head;Running configuration information includes facility environment information, original number According to data type information, can also include optionally operation and control information etc..Protocol may be used in serializing rule Buffer tools are converted to the language such as the code of specified programming language, such as ObjectiveC, Java or Go, aforementioned to be formed For to data carry out serializing obtain serialized data packet software product, as an example, embodiment illustrated in fig. 3 with For Go becomes language, the product the present embodiment developed is known as ParGo tools.
The ParGo tools can provide data introducting interface and information configuration interface, and technical staff is imported by the data Interface imports several initial data, after importing initial data, can generate number by the data type of identification initial data According to type information.On the other hand, the running configuration information needed for being configured by the information configuration interface.
After completing above-mentioned flow, optionally, it is contemplated that initial data is larger and is related to a variety of different types, for difference The initial data of type can choose corresponding compression method and be compressed to initial data, obtain compressed initial data, To reduce occupied space, transmission speed is improved.Later, by compressed initial data and running configuration information according to above-mentioned sequence Rowization rule is serialized, final to obtain serialized data packet.
When needed, the download sequence data packet from server-side is right according to serializing rule by APP in electronic equipment Data packet carries out unserializing, and after obtaining running configuration information, electronic equipment passes through the facility environment in running configuration information Information judges whether that initial data can be read, and after being determined to reading, is believed according to the data type in running configuration information Breath starts the application program for reading initial data.On the other hand, electronic equipment can also continue to decompress compressed initial data. After the completion of decompression, you can initial data is read using application program, to realize business processing.
Corresponding with the embodiment of aforementioned data processing method, this specification additionally provides data processing equipment and its is answered The embodiment of equipment.
The embodiment of this specification data processing equipment can be applied on the computing device, such as server or electronics are set It is standby.Device embodiment can also be realized by software realization by way of hardware or software and hardware combining.With software reality It is by the processor of file process where it by nonvolatile memory as the device on a logical meaning for existing In corresponding computer program instructions read in memory what operation was formed.For hardware view, as shown in figure 4, being this theory A kind of hardware structure diagram of computing device where bright book data processing equipment, in addition to processor 410 shown in Fig. 4, memory 430, Except network interface 420 and nonvolatile memory 440, server or electronic equipment in embodiment where device 431, Generally according to the actual functional capability of the computer equipment, it can also include other hardware, this is repeated no more.
As shown in figure 5, Fig. 5 is a kind of frame of data processing equipment of this specification shown according to an exemplary embodiment Figure, described device include:
Data packet acquisition module 51, is used for:Pending serialized data packet is obtained, the serialized data packet includes: Several initial data and running configuration information for several initial data, the running configuration information include: Read the facility environment information needed for several initial data;
Unserializing module 52, is used for:Unserializing is carried out to the serialized data packet, wherein carrying out antitone sequence During change, if obtaining the running configuration information, judge that can current device context be read according to the facility environment information Take several initial data;
Determining module 53 is handled, is used for:The processing procedure to several initial data is determined according to judging result.
Optionally, the processing determining module, is additionally operable to:
If it is determined that current device context can not read several initial data, data processing is terminated.
Optionally, several initial data in the serialized data packet are compressed data;
The processing determining module, is additionally operable to:
If it is determined that current device context can read several initial data, the compressed data are solved Several initial data are obtained after pressure.
Optionally, the serialized data packet includes the data portion after head and head, the running configuration information Configuration is in the head of the serialized data packet, data portion of several initial data configuration in the serialized data packet Point;
The unserializing module, is additionally operable to:
Unserializing is carried out to the head of the serialized data packet;
The processing procedure determined according to judging result to several initial data, including:
If it is determined that current device context can read several initial data, antitone sequence is carried out to the data portion Several initial data are obtained after change.
Optionally, the running configuration information further includes:The data type information of several initial data;
Described device further includes starting module, is used for:
After the determining current device context can read several initial data, believed according to the data type Breath starts the application program for reading the initial data.
Optionally, the running configuration information further includes:The operation and control information of several initial data;
Described device further includes control module, is used for:
After obtaining several initial data, the application program is controlled according to the operation and control information and reads institute State initial data.
As shown in fig. 6, Fig. 6 is the frame of another data processing equipment of this specification shown according to an exemplary embodiment Figure, described device include:
Data acquisition module 61, is used for:Obtain several pending initial data;
Data obtaining module 62, for obtaining the running configuration information for several initial data, the operation Configuration information includes:Read the facility environment information needed for several initial data;
Serialization module 63 is obtained for serializing the running configuration information and several initial data Obtain serialized data packet.
Optionally, several initial data in the serialized data packet are compressed data.
Optionally, the serialized data packet includes the data portion after head and head, the running configuration information Configuration is in the head of the serialized data packet, data portion of several initial data configuration in the serialized data packet Point.
Optionally, the running configuration information obtained for several initial data, including:
The information configuration interface for the initial data is provided, configuring interface by described information obtains for the original The running configuration information of beginning data.
Optionally, described information acquisition module is additionally operable to:
The data type for identifying the initial data, generates the data type information of the initial data, and the operation is matched Confidence ceases:The data type information.
Optionally, the running configuration information includes:It is used to indicate the operation control that application program reads the initial data Information processed.
Optionally, the serialization module, is additionally operable to:
It is serialized using ProtocolBuffer.
Correspondingly, this specification also provides a kind of electronic equipment, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Pending serialized data packet is obtained, the serialized data packet includes:It several initial data and is directed to The running configuration information of several initial data, the running configuration information include:Read several initial data Required facility environment information;
Unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, if obtaining the fortune Row configuration information then judges that can current device context read several initial data according to the facility environment information;
The processing procedure to several initial data is determined according to judging result.
Correspondingly, this specification also provides a kind of server, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain several pending initial data;
The running configuration information for several initial data is obtained, the running configuration information includes:Read institute State the facility environment information needed for several initial data;
The running configuration information and several initial data are serialized, serialized data packet is obtained.
The function of modules and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The module of explanation may or may not be physically separated, and the component shown as module can be or can also It is not physical module, you can be located at a place, or may be distributed on multiple network modules.It can be according to actual It needs that some or all of module therein is selected to realize the purpose of this specification scheme.Those of ordinary skill in the art are not In the case of making the creative labor, you can to understand and implement.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can With or it may be advantageous.
Those skilled in the art will readily occur to this specification after considering specification and putting into practice the invention applied here Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications, Purposes or adaptive change follow the general principle of this specification and include that this specification is not applied in the art Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precision architecture for being described above and being shown in the accompanying drawings, And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims System.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection Within enclosing.

Claims (19)

1. a kind of data processing method, the method includes:
Pending serialized data packet is obtained, the serialized data packet includes:Several initial data and for described The running configuration information of several initial data, the running configuration information include:It reads needed for several initial data Facility environment information;
Unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, match if obtaining the operation Confidence ceases, then judges that can current device context read several initial data according to the facility environment information;
The processing procedure to several initial data is determined according to judging result.
2. according to the method described in claim 1, the processing determined according to judging result to several initial data Process, including:
If it is determined that current device context can not read several initial data, data processing is terminated.
3. according to the method described in claim 1, several initial data in the serialized data packet are to be compressed Data;
The processing procedure determined according to judging result to several initial data, including:
If it is determined that current device context can read several initial data, after being decompressed to the compressed data Obtain several initial data.
4. according to the method described in claim 1, the serialized data packet includes the data portion after head and head, institute Running configuration information configuration is stated on the head of the serialized data packet, several initial data configuration is in the serializing The data portion of data packet;
It is described that unserializing is carried out to the serialized data packet, including:
Unserializing is carried out to the head of the serialized data packet;
The processing procedure determined according to judging result to several initial data, including:
If it is determined that current device context can read several initial data, after carrying out unserializing to the data portion Obtain several initial data.
5. method according to claim 3 or 4, the running configuration information further include:Several initial data Data type information;
After the determining current device context can read several initial data, the method further includes:
Start the application program for reading the initial data according to the data type information.
6. according to the method described in claim 5, the running configuration information further includes:The operation of several initial data Control information;
The method further includes:
After obtaining several initial data, the application program is controlled according to the operation and control information and reads the original Beginning data.
7. a kind of data processing method, the method includes:
Obtain several pending initial data;
The running configuration information for several initial data is obtained, the running configuration information includes:If reading described Facility environment information needed for dry item initial data;
The running configuration information and several initial data are serialized, serialized data packet is obtained.
8. according to the method described in claim 7, several initial data in the serialized data packet are to be compressed Data.
9. according to the method described in claim 7, the serialized data packet includes the data portion after head and head, institute Running configuration information configuration is stated on the head of the serialized data packet, several initial data configuration is in the serializing The data portion of data packet.
10. according to the method described in claim 7, it is described obtain for several initial data running configuration information, Including:
The information configuration interface for the initial data is provided, configuring interface by described information obtains for the original number According to running configuration information.
11. according to the method described in claim 7, it is described obtain for several initial data running configuration information, Including:
The data type for identifying the initial data generates the data type information of the initial data, the running configuration letter Breath further includes:The data type information.
12. according to the method described in claim 7, the running configuration information includes:It is used to indicate described in application program reading The operation and control information of initial data.
13. according to the method described in claim 7, described serialized, including:
It is serialized using ProtocolBuffer.
14. a kind of data processing method, the method includes:
Pending serialized data packet is obtained, the serialized data packet includes:If several AR resources and for described The running configuration information of dry item AR resources, the running configuration information include:Read the equipment needed for several AR resources Environmental information;
Unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, match if obtaining the operation Confidence ceases, then judges that can current device context read several AR resources according to facility environment information;
The processing procedure to several AR resources is determined according to judging result.
15. a kind of data processing method, the method includes:
Obtain several pending AR resources;
The running configuration information for several AR resources is obtained, the running configuration information includes:It reads described several Facility environment information needed for item AR resources;
The running configuration information and several AR resources are serialized, serialized data packet is obtained.
16. a kind of data processing equipment, described device include:
Data packet acquisition module, is used for:Pending serialized data packet is obtained, the serialized data packet includes:Several items Initial data and running configuration information for several initial data, the running configuration information include:Read institute State the facility environment information needed for several initial data;
Unserializing module, is used for:Unserializing is carried out to the serialized data packet, wherein carrying out unserializing process In, if obtaining the running configuration information, it is described to judge that can current device context read according to the facility environment information Several initial data;
Determining module is handled, is used for:The processing procedure to several initial data is determined according to judging result.
17. a kind of data processing equipment, described device include:
Data acquisition module is used for:Obtain several pending initial data;
Data obtaining module, for obtaining the running configuration information for several initial data, the running configuration letter Breath includes:Read the facility environment information needed for several initial data;
Serialization module obtains sequence for serializing the running configuration information and several initial data Change data packet.
18. a kind of electronic equipment, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Pending serialized data packet is obtained, the serialized data packet includes:Several initial data and for described The running configuration information of several initial data, the running configuration information include:It reads needed for several initial data Facility environment information;
Unserializing is carried out to the serialized data packet, wherein during carrying out unserializing, match if obtaining the operation Confidence ceases, then judges that can current device context read several initial data according to the facility environment information;
The processing procedure to several initial data is determined according to judging result.
19. a kind of server, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain several pending initial data;
The running configuration information for several initial data is obtained, the running configuration information includes:If reading described Facility environment information needed for dry item initial data;
The running configuration information and several initial data are serialized, serialized data packet is obtained.
CN201810005607.7A 2018-01-03 2018-01-03 Data processing method and device, electronic equipment and server Active CN108390850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810005607.7A CN108390850B (en) 2018-01-03 2018-01-03 Data processing method and device, electronic equipment and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810005607.7A CN108390850B (en) 2018-01-03 2018-01-03 Data processing method and device, electronic equipment and server

Publications (2)

Publication Number Publication Date
CN108390850A true CN108390850A (en) 2018-08-10
CN108390850B CN108390850B (en) 2020-10-02

Family

ID=63076817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810005607.7A Active CN108390850B (en) 2018-01-03 2018-01-03 Data processing method and device, electronic equipment and server

Country Status (1)

Country Link
CN (1) CN108390850B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000417B (en) * 2020-10-27 2021-05-28 统信软件技术有限公司 Control method for window display effect and computing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136234A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Data processing method and data processing device
CN105843866A (en) * 2016-03-17 2016-08-10 畅捷通信息技术股份有限公司 Data searching method and system based on cloud searching platform
US20170115346A1 (en) * 2015-10-27 2017-04-27 Nvidia Corporation Scan system interface (ssi) module
CN107040539A (en) * 2017-04-20 2017-08-11 广州华多网络科技有限公司 A kind of protocol data bag construction method, device and computer system
CN107093436A (en) * 2017-03-10 2017-08-25 青岛海信移动通信技术股份有限公司 The storage method and device of the audio, video data pre-recorded, mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136234A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Data processing method and data processing device
US20170115346A1 (en) * 2015-10-27 2017-04-27 Nvidia Corporation Scan system interface (ssi) module
CN105843866A (en) * 2016-03-17 2016-08-10 畅捷通信息技术股份有限公司 Data searching method and system based on cloud searching platform
CN107093436A (en) * 2017-03-10 2017-08-25 青岛海信移动通信技术股份有限公司 The storage method and device of the audio, video data pre-recorded, mobile terminal
CN107040539A (en) * 2017-04-20 2017-08-11 广州华多网络科技有限公司 A kind of protocol data bag construction method, device and computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000417B (en) * 2020-10-27 2021-05-28 统信软件技术有限公司 Control method for window display effect and computing device

Also Published As

Publication number Publication date
CN108390850B (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN108495192B (en) Page editing processing method and device
US11653069B2 (en) Subtitle splitter
US7979801B2 (en) Media presentation driven by meta-data events
US20200258189A1 (en) Multistage neural network processing using a graphics processor
EP3410258B1 (en) Method for pushing picture, mobile terminal and storage medium
KR20210040882A (en) Method and apparatus for generating video
CN110399306B (en) Automatic testing method and device for software module
CN111061896B (en) Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF)
CN112866776A (en) Video generation method and device
CN108021954A (en) The startup method and apparatus of business procedure
US11003707B2 (en) Image processing in a virtual reality (VR) system
US20070239780A1 (en) Simultaneous capture and analysis of media content
CN110750659A (en) Dynamic display method, device and storage medium for media resources
CN114253436B (en) Page display method, device and storage medium
CN108390850A (en) Data processing method, device, electronic equipment and server
CN108834171B (en) Image method and device
CN113391811A (en) Function compiling method and device, electronic equipment and computer readable storage medium
US11417086B2 (en) Personalized augmented reality
CN109558186B (en) Page display method and device
US20060136204A1 (en) Database construction apparatus and method
US11182635B2 (en) Terminal apparatus, character recognition system, and character recognition method
CN112789830A (en) A robotic platform for multi-mode channel-agnostic rendering of channel responses
CN113542706B (en) Screen throwing method, device and equipment of running machine and storage medium
CN116385597B (en) Text mapping method and device
US20060230069A1 (en) Media transmission method and a related media provider that allows fast downloading of animation-related information via a network system

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
TR01 Transfer of patent right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right