Data interaction method and system

文档序号:1077182 发布日期:2020-10-16 浏览:16次 中文

阅读说明:本技术 一种数据交互方法及其系统 (Data interaction method and system ) 是由 苑贵全 骞一凡 于 2020-07-03 设计创作,主要内容包括:本申请公开了一种数据交互方法及其系统,其中,数据交互方法,包括如下步骤:建立通信通道;通过通信通道接收操作指令,并根据操作指令获取待播放数据;对待播放数据进行处理,获得播放数据;对播放数据进行播放。本申请具有能够简化显示终端操作过程,以及提升操作终端查看数据效果,并避免数据语言不符合用户需求的技术效果。(The application discloses a data interaction method and a system thereof, wherein the data interaction method comprises the following steps: establishing a communication channel; receiving an operation instruction through a communication channel, and acquiring data to be played according to the operation instruction; processing data to be played to obtain played data; and playing the playing data. The method and the device have the technical effects of simplifying the operation process of the display terminal, improving the data viewing effect of the operation terminal and avoiding the data language not meeting the user requirements.)

1. A data interaction method is characterized by comprising the following steps:

establishing a communication channel;

receiving an operation instruction through a communication channel, and acquiring data to be played according to the operation instruction;

processing data to be played to obtain played data;

and playing the playing data.

2. A data exchange method according to claim 1, characterized in that the sub-step of establishing a communication channel is as follows:

receiving a creation request, wherein the creation request comprises: a security certificate of the user terminal;

performing security authentication on the creation request to generate an authentication result;

feeding back a creating instruction according to the authentication result, wherein the creating instruction comprises: the ID address of the playing terminal, the security certificate of the playing terminal and the address request of the user terminal;

and receiving the ID address of the user terminal, finishing the establishment of the communication channel and feeding back the establishment finishing information.

3. The data exchange method according to claim 1, wherein the sub-steps of receiving the operation instruction through the communication channel and obtaining the data to be played according to the operation instruction are as follows:

performing pre-analysis on the operation instruction, and determining the instruction type of the operation instruction;

acquiring acquisition data from a corresponding acquisition way according to the instruction type;

and marking the path of the acquired data, and taking the data with the path marked as the data to be played.

4. The data exchange method according to claim 1, wherein the sub-step of processing the data to be played to obtain the played data is as follows:

pre-judging data to be played to obtain a judgment result;

converting the data to be converted according to the judgment result to obtain converted data;

carrying out damage analysis on the converted data to obtain data to be processed;

and processing the data to be processed to obtain the playing data.

5. The data exchange method according to claim 4, characterized by the substep of pre-judging the data to be played to obtain a judgment result:

receiving a target language instruction;

analyzing the data to be played and determining the current language type;

pre-judging the current language type according to the target language type to generate a judgment result, wherein the judgment result comprises: and judging information, the type of the language to be converted and the data to be converted.

6. The data exchange method according to claim 4, wherein the data to be processed is video data, and the sub-step of processing the data to be processed by the repair unit to obtain the play data is as follows:

sorting damaged frames in the data to be processed into blocks to be repaired;

repairing the blocks to be repaired by using the matching blocks according to the block sequence to be repaired to obtain the data after the repair;

carrying out repair inspection on the repaired processed data by using the repair inspection value to obtain playing data;

wherein, the formula of the repair check value is as follows:

Djl=(1-)·d(ηPq)+·d(ψpq);

wherein Djl is a repair check value and is a check parameter, preferably 0.4, ηpA block centered at the p-th point in the original damaged frame ηqA block which takes a point q as a center in an original damaged frame; d (·,) represents the distance between two blocks; psipA block with the center at a point p in the directional characteristic array of the original damaged frame; psiqThe block with the center at the point q in the directional characteristic array of the original damaged frame.

7. A data interaction system, comprising: a playing terminal and a user terminal;

wherein, the playing terminal: for performing the data interaction method of any one of claims 1-6;

a user terminal: the system comprises a playing terminal, a user terminal ID address feedback unit and a user terminal ID address feedback unit, wherein the user terminal ID address feedback unit is used for acquiring access information, sending a creation request to the playing terminal, receiving a creation instruction sent by the playing terminal and feeding back a user terminal ID address to the playing terminal; and after receiving the creation completion information fed back by the playing terminal after the communication channel is created, sending an operation instruction and data to be edited to the playing terminal through the communication channel.

8. The data interaction system of claim 7, wherein the broadcasting terminal comprises: the system comprises a data acquisition device, a data processing device, a display device and cloud storage;

wherein the data acquisition device: the system comprises a receiving module, a playing module, a communication channel establishing module and a display module, wherein the receiving module is used for receiving an establishing request and a user terminal ID address sent by a playing terminal and completing the establishment of the communication channel; receiving an operation instruction, and acquiring data to be played according to the operation instruction;

a data processing device: the data processing device is used for receiving data to be played and processing the data to be played to obtain played data;

a display device: the system comprises a display device, a cloud terminal and a server, wherein the display device is used for displaying playing data and uploading the playing data to the cloud terminal for storage;

cloud storage: the data storage device is used for storing data uploaded by the user terminal and historical playing data of the playing terminal.

9. The data interaction system of claim 8, wherein the data processing apparatus comprises: the device comprises a receiving unit, an analyzing unit, a converting unit, a judging unit, a repairing unit and an inspecting unit;

wherein the receiving unit: the data processing device is used for receiving data to be played and sending the data to be played to the analysis unit;

an analysis unit: the device comprises a conversion unit, a storage unit and a display unit, wherein the conversion unit is used for receiving data to be played, pre-judging the data to be played, acquiring a judgment result and sending the judgment result to the conversion unit;

a conversion unit: receiving the judgment result, processing the data to be converted in the judgment result to obtain embedded data, converting the data to be converted by using the embedded data to obtain conversion data, and sending the conversion data to the judgment unit;

a judging unit: the device comprises a restoration unit, a data processing unit and a data processing unit, wherein the restoration unit is used for receiving conversion data, carrying out damage analysis on the conversion data, obtaining data to be processed and sending the data to be processed to the restoration unit;

a repair unit: the data to be processed is repaired, the repaired data is obtained, and the repaired data is sent to the inspection unit;

an inspection unit: and receiving the repaired post-processing data, performing repair check on the repaired post-processing data, and sending the repaired post-processing data which is successfully repaired after the check as playing data to the display device.

10. The data interaction system of claim 8, wherein the cloud storage comprises: a temporary database and a historical playing database;

wherein the temporary database: the data processing device is used for temporarily storing data to be edited uploaded by a user terminal;

history play database: for storing the history play data of the play terminal.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a data interaction method and system.

Background

Data (Data) is a form of expression for facts, concepts or instructions that can be manipulated by manual or automated means, and is interpreted and given some degree of meaning to become information. Data processing (data processing) is the collection, storage, retrieval, processing, transformation, and transmission of data. With the development of multimedia compression technology and network communication technology, media service providers have introduced more and more video contents and colorful audio contents with high compression ratio, high resolution and high frame rate, which will greatly improve the visual experience and auditory experience of users and enrich the entertainment life of users. However, to play the video content and audio content with high compression ratio, high resolution and high frame rate, the computing power and data processing power of the terminal player are also highly required. After the playing device receives the data synchronized by the mobile terminal, the situations that the data language does not meet the user requirement, the data is damaged and the like easily occur when the playing device plays the data.

In addition, the existing playing device with a large display device is troublesome in operation process and poor in customer experience, and when the mobile device with a small display device directly checks data, the details are inconvenient to check.

Disclosure of Invention

The application aims to provide a data interaction method and a data interaction system, which have the technical effects of simplifying the operation process of a display terminal, improving the data viewing effect of the operation terminal and avoiding the data language from being inconsistent with the requirements of a user.

In order to achieve the above object, the present application provides a data interaction method, including the following steps: establishing a communication channel; receiving an operation instruction through a communication channel, and acquiring data to be played according to the operation instruction; processing data to be played to obtain played data; and playing the playing data.

As above, wherein the sub-step of establishing the communication channel is as follows: receiving a creation request, wherein the creation request comprises: a security certificate of the user terminal; performing security authentication on the creation request to generate an authentication result; feeding back a creating instruction according to the authentication result, wherein the creating instruction comprises: the ID address of the playing terminal, the security certificate of the playing terminal and the address request of the user terminal; and receiving the ID address of the user terminal, finishing the establishment of the communication channel and feeding back the establishment finishing information.

As above, the sub-step of receiving the operation instruction through the communication channel and obtaining the data to be played according to the operation instruction is as follows: performing pre-analysis on the operation instruction, and determining the instruction type of the operation instruction; acquiring acquisition data from a corresponding acquisition way according to the instruction type; and marking the path of the acquired data, and taking the data with the path marked as the data to be played.

As above, the substep of processing the data to be played and obtaining the played data is as follows: pre-judging data to be played to obtain a judgment result; converting the data to be converted according to the judgment result to obtain converted data; carrying out damage analysis on the converted data to obtain data to be processed; and processing the data to be processed to obtain the playing data.

As above, the substep of pre-determining the data to be played to obtain the determination result comprises: receiving a target language instruction; analyzing the data to be played and determining the current language type; pre-judging the current language type according to the target language type to generate a judgment result, wherein the judgment result comprises: and judging information, the type of the language to be converted and the data to be converted.

The data to be processed is video data, the repair unit processes the data to be processed to obtain the playing data, the substeps of sorting damaged frames in the data to be processed into blocks to be repaired, repairing the blocks to be repaired according to the block to be repaired by using the matching blocks to obtain repaired data, and performing repair check on the repaired data by using the repair check value to obtain the playing data are as follows, wherein the formula of the repair check value is Djl ═ 1-) · d (η)Pq)+·d(ψpq) Wherein Djl is a repair check value and is a check parameter, preferably 0.4 or ηpBlock centered at point p in original damaged frame ηqA block which takes a point q as a center in an original damaged frame; d (·,) represents the distance between two blocks; psipA block with the center at a point p in the directional characteristic array of the original damaged frame; psiqThe block with the center at the point q in the directional characteristic array of the original damaged frame.

The present application further provides a data interaction system, comprising: a playing terminal and a user terminal; wherein, the playing terminal: the data interaction method is used for executing the method; a user terminal: the system comprises a playing terminal, a user terminal ID address feedback unit and a user terminal ID address feedback unit, wherein the user terminal ID address feedback unit is used for acquiring access information, sending a creation request to the playing terminal, receiving a creation instruction sent by the playing terminal and feeding back a user terminal ID address to the playing terminal; and after receiving the creation completion information fed back by the playing terminal after the communication channel is created, sending an operation instruction and data to be edited to the playing terminal through the communication channel.

As above, wherein the play terminal includes: the system comprises a data acquisition device, a data processing device, a display device and cloud storage; wherein the data acquisition device: the system comprises a receiving module, a playing module, a communication channel establishing module and a display module, wherein the receiving module is used for receiving an establishing request and a user terminal ID address sent by a playing terminal and completing the establishment of the communication channel; receiving an operation instruction, and acquiring data to be played according to the operation instruction; a data processing device: the data processing device is used for receiving data to be played and processing the data to be played to obtain played data; a display device: the system comprises a display device, a cloud terminal and a server, wherein the display device is used for displaying playing data and uploading the playing data to the cloud terminal for storage; cloud storage: the data storage device is used for storing data uploaded by the user terminal and historical playing data of the playing terminal.

As above, wherein the data processing apparatus comprises: the device comprises a receiving unit, an analyzing unit, a converting unit, a judging unit, a repairing unit and an inspecting unit; wherein the receiving unit: the data processing device is used for receiving data to be played and sending the data to be played to the analysis unit; an analysis unit: the device comprises a conversion unit, a storage unit and a display unit, wherein the conversion unit is used for receiving data to be played, pre-judging the data to be played, acquiring a judgment result and sending the judgment result to the conversion unit; a conversion unit: receiving the judgment result, processing the data to be converted in the judgment result to obtain embedded data, converting the data to be converted by using the embedded data to obtain conversion data, and sending the conversion data to the judgment unit; a judging unit: the device comprises a restoration unit, a data processing unit and a data processing unit, wherein the restoration unit is used for receiving conversion data, carrying out damage analysis on the conversion data, obtaining data to be processed and sending the data to be processed to the restoration unit; a repair unit: the data to be processed is repaired, the repaired data is obtained, and the repaired data is sent to the inspection unit; an inspection unit: and receiving the repaired post-processing data, performing repair check on the repaired post-processing data, and sending the repaired post-processing data which is successfully repaired after the check as playing data to the display device.

As above, wherein the cloud storage comprises: a temporary database and a historical playing database; wherein the temporary database: the data processing device is used for temporarily storing data to be edited uploaded by a user terminal; history play database: for storing the history play data of the play terminal.

The method and the device have the technical effects of simplifying the operation process of the display terminal, improving the data viewing effect of the operation terminal and avoiding the data language not meeting the user requirements.

Drawings

In order to more clearly illustrate the embodiments of the present application 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 described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.

FIG. 1 is a schematic diagram of an embodiment of a data interaction system;

FIG. 2 is a flow chart of an embodiment of a data interaction method.

Detailed Description

The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The application provides a data interaction method and a system thereof, which have the technical effects of simplifying the operation process of a display terminal, improving the data viewing effect of an operation terminal and avoiding the data language from being inconsistent with the requirements of users.

As shown in fig. 1, the present application provides a data interaction system, comprising: a cast terminal 110 and a user terminal 120.

Wherein, the playing terminal 110: for performing the data interaction method described below.

The user terminal 120: the system comprises a playing terminal, a user terminal ID address feedback unit and a user terminal ID address feedback unit, wherein the user terminal ID address feedback unit is used for acquiring access information, sending a creation request to the playing terminal, receiving a creation instruction sent by the playing terminal and feeding back a user terminal ID address to the playing terminal; and after receiving the creation completion information fed back by the playing terminal after the communication channel is created, sending an operation instruction and data to be edited to the playing terminal through the communication channel.

Further, the broadcast terminal 110 includes: the system comprises a data acquisition device, a data processing device, a display device and a cloud storage.

Wherein the data acquisition device: the system comprises a receiving module, a playing module, a communication channel establishing module and a display module, wherein the receiving module is used for receiving an establishing request and a user terminal ID address sent by a playing terminal and completing the establishment of the communication channel; and receiving an operation instruction, and acquiring data to be played according to the operation instruction.

A data processing device: the data processing device is used for receiving the data to be played and processing the data to be played to obtain the playing data.

A display device: the system is used for displaying the playing data and uploading the playing data to the cloud storage.

Cloud storage: the data storage device is used for storing data uploaded by the user terminal and historical playing data of the playing terminal.

Further, the data processing apparatus includes: the device comprises a receiving unit, an analysis unit, a conversion unit, a judgment unit, a repair unit and an inspection unit.

Wherein the receiving unit: the data processing device is used for receiving the data to be played and sending the data to be played to the analysis unit.

An analysis unit: the device is used for receiving the data to be played, pre-judging the data to be played, acquiring a judgment result and sending the judgment result to the conversion unit.

A conversion unit: and receiving the judgment result, processing the data to be converted in the judgment result to obtain embedded data, converting the data to be converted by using the embedded data to obtain conversion data, and sending the conversion data to the judgment unit.

A judging unit: the device is used for receiving the conversion data, carrying out damage analysis on the conversion data, obtaining data to be processed and sending the data to be processed to the repair unit.

A repair unit: and repairing the data to be processed to obtain repaired processed data, and sending the repaired processed data to the inspection unit.

An inspection unit: and receiving the repaired post-processing data, performing repair check on the repaired post-processing data, and sending the repaired post-processing data which is successfully repaired after the check as playing data to the display device.

Further, the cloud storage comprises: a temporary database and a history play database.

Wherein the temporary database: the method is used for temporarily storing the data to be edited uploaded by the user terminal.

History play database: for storing the history play data of the play terminal.

As shown in fig. 2, the present application provides a data interaction method, which includes the following steps:

s210: a communication channel is established.

Further, the sub-step of establishing the communication channel is as follows:

p1: receiving a creation request, wherein the creation request comprises: security credentials of the user terminal.

Specifically, as an embodiment, the user terminal scans access information displayed or preset after the playback terminal is powered on, where the access information may be an identity two-dimensional code. After acquiring the access information, the user terminal sends a creation request to the play terminal, and executes P2.

Wherein the creation request comprises: security credentials of the user terminal.

P2: and performing security authentication on the creation request to generate an authentication result.

Specifically, after receiving the creation request, the playback terminal authenticates the security certificate authentication in the creation request, generates an authentication result, and executes P3.

Wherein, the authentication result comprises authentication success or authentication failure.

P3: feeding back a creating instruction according to the authentication result, wherein the creating instruction comprises: ID address of the playing terminal, security certificate of the playing terminal and user terminal address request.

Specifically, if the authentication result is that the authentication is successful, a create instruction is sent to the user terminal, and P4 is executed. And if the authentication result is authentication failure, sending the authentication result to the user terminal.

P4: and receiving the ID address of the user terminal, finishing the establishment of the communication channel and feeding back the establishment finishing information.

Specifically, after receiving the creation instruction, the user terminal performs security authentication on a security certificate of the play terminal in the creation instruction, reads the ID address of the play terminal after the security authentication is successful, and feeds back the ID address of the user terminal to the play terminal, and after receiving the ID address of the user terminal, the play terminal completes creation of a communication channel with the user terminal and feeds back creation completion information to the user terminal. After receiving the creation completion information, the user terminal sends an operation instruction and data to be edited to the play terminal through the communication channel, and executes S220.

S220: and receiving the operation instruction through the communication channel, and acquiring the data to be played according to the operation instruction.

Further, the substeps of receiving the operation instruction through the communication channel and obtaining the data to be played according to the operation instruction are as follows:

q1: and performing pre-analysis on the operation instruction, and determining the instruction type of the operation instruction.

Specifically, after receiving an operation instruction sent by the user terminal through the communication channel, the playback terminal performs pre-analysis on the operation instruction, determines the instruction type of the operation instruction, and executes Q2 after determining the instruction type.

Wherein the instruction types at least include: data acquisition instructions and data editing instructions.

Wherein the data acquisition instruction comprises: and (5) waiting to acquire the keywords. Specifically, the keyword to be acquired is a keyword of data that needs to be acquired.

The data editing instructions include: and (5) keywords to be edited. Specifically, the keywords to be edited are keywords of the data that needs to be edited.

Q2: and acquiring the acquisition data from the corresponding acquisition way according to the instruction type.

Specifically, if the instruction type is a data acquisition instruction, the to-be-acquired keywords are read, the historical play database in the cloud storage is traversed according to the to-be-acquired keywords, and if the historical play database has data corresponding to the to-be-acquired keywords, the data is used as acquisition data, and Q3 is executed.

And if the instruction type is a data acquisition instruction, reading the key words to be acquired, traversing a historical playing database in the cloud storage according to the key words to be acquired, if the historical playing database does not have data corresponding to the key words to be acquired, acquiring the data corresponding to the key words to be acquired from the network according to the acquired key words as acquired data, and executing Q3.

And if the instruction type is a data editing instruction, reading the key words to be edited, acquiring the data to be edited from a temporary database stored in the cloud as acquired data according to the key words to be edited, and executing Q3. The data to be edited is the data uploaded to the temporary database for storage when the user terminal sends an operation instruction to the playing terminal through the communication channel.

If the instruction type is a data editing instruction, reading a keyword to be edited, acquiring data to be edited from a temporary database stored in a cloud according to the keyword to be edited, traversing a historical playing database according to the keyword to be edited if the user terminal does not upload the data to be edited to the temporary data, acquiring historical playing data corresponding to the keyword to be edited from the historical playing database as acquiring data, and executing Q3.

Q3: and marking the path of the acquired data, and taking the data with the path marked as the data to be played.

Specifically, if the acquired data is acquired from the temporary database, the path of acquiring the data is marked as YDL; if the acquired data is acquired from the historical playing database, marking the path of acquiring the data as YDS; if the data is obtained from the network, the path of obtaining the data is marked as WS. The data acquisition device sends the data with the completion route mark as data to be played to the data processing device, and S230 is executed.

S230: and processing the data to be played to obtain the played data.

Further, the substep of processing the data to be played to obtain the played data is as follows:

w1: and pre-judging the data to be played to obtain a judgment result.

Further, the substep of pre-judging the data to be played to obtain a judgment result is as follows:

w110: target language instructions are received.

Specifically, the analysis unit receives a target language instruction sent by the user terminal, and executes W120. Wherein the target language instructions include a target language type. Specifically, the target language types include: chinese, English or Japanese language types.

W120: and analyzing the data to be played and determining the current language type.

Specifically, the analyzing unit analyzes the data to be played, determines the current language type of the data to be played, and executes W130. The current language type of the data to be played comprises: chinese, English or Japanese language types.

Further, if the current language type is a mixture of a plurality of language types, the plurality of language types are all sub-language types of the current language type, and each sub-language type has a positioning tag.

Specifically, for example, the current language type includes 3 sub-language types, and the 3 sub-language types are respectively: chinese, English and Japanese, respectively positioning the Chinese part, English part and Japanese part in the data to be played, and generating corresponding positioning labels.

W130: pre-judging the current language type according to the target language type to generate a judgment result, wherein the judgment result comprises: and judging information, the type of the language to be converted and the data to be converted.

Specifically, the analysis unit performs pre-determination on the current language type according to the target language type, and if the current language type is consistent with the target language type, the generated determination result includes: and judging information, the type of the language to be converted and the data to be converted. Judging whether the information needs to be converted or not; the data to be converted is the data to be played; the language type to be converted is: none. After the analysis unit determines the data to be converted and generates the determination result, the determination result is sent to the conversion unit, and W2 is executed.

If the current language type is not consistent with the target language type, the generated judgment result comprises the following steps: and judging information, the type of the language to be converted and the data to be converted. Wherein, the information is judged to be required to be converted; the data to be converted is the data to be played; the language type to be converted is the target language type. After the analysis unit determines the data to be converted and generates the determination result, the determination result is sent to the conversion unit, and W2 is executed.

Further, if the current language type is a mixture of a plurality of language types, each sub-language type in the current language type is pre-judged according to the target language type; if the sub-language type is consistent with the target language type, the generated judgment result comprises: judging information, a language type to be converted and data to be converted, wherein the information is judged to be not required to be converted; the data to be converted is the part of the data to be played corresponding to the positioning label of the sub-language type; the language type to be converted is: none. If the current language type is not consistent with the target language type, the generated judgment result comprises the following steps: judging information, a language type to be converted and data to be converted, wherein the information is judged to be required to be converted; the data to be converted is the part of the data to be played corresponding to the positioning label of the sub-language type; the language type to be converted is: a target language type.

W2: and performing conversion processing on the data to be converted according to the judgment result to obtain conversion data.

Further, the sub-step of performing conversion processing on the data to be converted according to the judgment result to obtain the conversion data is as follows:

w210: and reading the judgment result.

Specifically, after receiving the determination result sent by the analysis unit, the conversion unit reads the determination result, and if the determination information is that conversion is not needed, the language type to be converted is: otherwise, the data to be converted is sent to the conversion unit, and W230 is executed.

If the information is judged to be required to be converted, the language type to be converted is as follows: and the target language type sends the data to be converted to the conversion unit, and the W220 is executed.

W220: and converting the data to be converted according to the judgment result to obtain embedded data.

Further, the sub-step of converting the data to be converted according to the judgment result to obtain the embedded data is as follows:

t1: and importing a format modification script into the data to be converted.

T2: and automatically running the format modification script, modifying the text material in the data to be converted by the format modification script, modifying the data to be converted into a text format supporting the display of characters of the target language type, and obtaining modified data.

T3: and translating the data part needing to be converted in the modified data to obtain embedded data.

Specifically, if the current language type in the data to be converted is a language type, the conversion unit translates the entire modified data into a target language type, and executes W230 with the target language type translated as embedded data.

If the current language type in the data to be converted is a mixture of multiple language types, the conversion unit translates the characters of the data part corresponding to the sub-language type needing to be converted in the modified data into the characters of the target language type according to the positioning calibration, takes the characters translated into the target language type as embedded data, and executes W230.

W230: and converting the data to be converted by utilizing the embedded data to obtain converted data.

Specifically, if the data to be converted in the determination result received by the conversion unit does not need to be converted, the data to be converted is directly sent to the determination unit as the conversion data, and W3 is executed.

If the data to be converted in the judgment result received by the conversion unit is required to be converted, the embedded data is used for replacing the characters of the corresponding data part in the modified data, the modified data after replacement is used as the conversion data, the converted data is sent to the judgment unit, and the W3 is executed.

Furthermore, when K sub-language types in data to be converted need conversion processing, the conversion unit can create G processing threads and distribute the G processing threads to the K sub-language types, wherein K is more than or equal to 1 and is a natural number; g is more than or equal to 1 and is a natural number.

W3: and carrying out damage analysis on the converted data to obtain data to be processed.

Specifically, the judgment unit performs damage analysis on the conversion data after receiving the conversion data, marks the damage position and the damage reason if the analysis result is that the conversion data has damage, takes the marked conversion data as the data to be processed, sends the data to be processed to the repair unit, and executes the W4.

And if the analysis result is that the conversion data is not damaged, marking the conversion data as damaged, sending the marked conversion data as data to be processed to a repair unit, and executing W4.

W4: and processing the data to be processed to obtain the playing data.

Further, as an embodiment, the data to be processed is video data, and the sub-step of processing the data to be processed by the repair unit to obtain the playing data is as follows:

w410: and sequencing the damaged frames in the data to be processed by the blocks to be repaired.

Further, a priority formula for sorting the damaged frames in the data to be processed into the blocks to be repaired is as follows:

wherein:

wherein the content of the first and second substances,

Figure BDA0002568905450000113

wherein, f (q) is the priority value of q points in the damaged frame; mu (q) is a structural sparse value of q points in the damaged frame; zy (q) is the confidence parameter of the block at the q point in the corrupted frame; bj is a set of boundary pixel points of the region to be repaired; m is the number of pixel points in the set, namely the number of elements in the set; x is the xth element in the set; m (q) is the domain of point q; my (q) is a domain formed by known pixel points in the field of q points;is a block centered at the q point and qxSimilarity of blocks with points as centers, lambda as normalization operator, f as extraction matrix of unknown part of block to be repaired, e as base of power exponent, d (-) representing distance between two blocks ηqA block which takes a point q as a center in an original damaged frame;

Figure BDA0002568905450000123

for the original damaged frame by qxA block with a point as the center; sigma is an adjusting parameter.

Specifically, the confidence parameters: is the ratio of the confidence value sum of undamaged pixels in the current block to the confidence value sum of all the pixels. The size of m (q) is larger than the size of the block to be repaired, generally taking: 40X 40. The general σ is 5. The larger the value of f (q), the higher the priority, and the more repair is performed.

W420: and repairing the blocks to be repaired by using the matching blocks according to the block sequence to be repaired to obtain the data after the repair.

Further, the formula of the matching block is specifically as follows:

wherein phi isqIs a matching block;prepresenting coefficients for sparseness ηpA block centered at the p-th point in the original damaged frame; and N is the number of the blocks to be repaired after the sorting.

Specifically, after a matching block corresponding to the block to be repaired is acquired, the matching block is filled into a part of the block to be repaired, the repair is completed, the repaired processing data is sent to the checking unit, and the W430 is executed.

W430: and carrying out repair check on the repaired processed data by using the repair check value to obtain the playing data.

Specifically, the formula of the repair check value is as follows:

Djl=(1-)·d(ηPq)+·d(ψpq);

wherein Djl is a repair check value and is a check parameter, preferably 0.4, ηpA block centered at the p-th point in the original damaged frame ηqA block which takes a point q as a center in an original damaged frame; d (·,) represents the distance between two blocks; psipA block with the center at a point p in the directional characteristic array of the original damaged frame; psiqThe block with the center at the point q in the directional characteristic array of the original damaged frame.

Specifically, if Djl is less than or equal to the preset maximum error value, it indicates that the repair is successful, and the post-repair processed data is sent to the display device as the playing data, and S240 is executed.

If Djl is greater than the preset maximum error value, it indicates that the repair is failed, and the lost frame is repaired again.

Specifically, the repair unit directly marks the conversion data as the non-damaged data to be processed as the play data, sends the play data to the display device, and executes S240.

S240: and playing the playing data.

Specifically, the display device plays the play data after receiving the play data.

The method and the device have the technical effects of simplifying the operation process of the display terminal, improving the data viewing effect of the operation terminal and avoiding the data language not meeting the user requirements.

While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, the scope of protection of the present application is intended to be interpreted to include the preferred embodiments and all variations and modifications that fall within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种视频播放方法、电子设备以及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类