CN111800631B - Data processing method and system - Google Patents
Data processing method and system Download PDFInfo
- Publication number
- CN111800631B CN111800631B CN202010576141.3A CN202010576141A CN111800631B CN 111800631 B CN111800631 B CN 111800631B CN 202010576141 A CN202010576141 A CN 202010576141A CN 111800631 B CN111800631 B CN 111800631B
- Authority
- CN
- China
- Prior art keywords
- target image
- target
- sequence
- preset
- image sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 23
- 238000000034 method Methods 0.000 claims description 48
- 238000013507 mapping Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000013598 vector Substances 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/142—Detection of scene cut or scene change
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/146—Data rate or code amount at the encoder output
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N19/159—Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/172—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The disclosure provides a data processing method and a data processing system, relates to the technical field of electronic information, and can solve the problem of large data volume of encoding and decoding processing when images are transmitted in a cloud desktop system. The specific technical scheme is as follows: when the encoding equipment acquires a target image, a target image sequence containing the target image is searched in at least one preset image sequence, when the target image sequence is searched, a preset reference frame and target sequence identification information corresponding to the target image sequence are acquired, and encoding processing is carried out on the target image according to the preset reference frame and the target sequence identification information. The present disclosure is used for image encoding processing and decoding processing.
Description
Technical Field
The present disclosure relates to the field of electronic information technologies, and in particular, to a data processing method and system.
Background
As the personalization requirements of enterprises become higher, VDI (Virtual Desktop Infrastructure, i.e., virtual desktop infrastructure) is welcome by more and more enterprises. The VDI can virtualize a plurality of virtual machines VM (Virtual Machine) on a powerful server through a desktop virtualization technology, and a user and an administrator can install an operating system, an application program, and the like in the VM, and the administrator can allocate one or more VMs to one or more users as required. The desktop of the user is not required to be provided with a personal computer with strong performance, and only a safe and manageable zero terminal is required to be provided for connection to the VM of the data center. The user can input the user name and the password in the zero terminal, the zero terminal sends the input user name and password to the server for user verification, if the user verification of the server is passed, the server can transmit the display picture of the VM to the zero terminal and display the display picture to the user, and meanwhile, the user can operate the VM through the zero terminal.
When the VDI system is used in an office environment, a user can frequently switch the use interfaces of a plurality of application programs when using the VM, for example, WORD, webpage and PPT are opened at the same time, and when the use interfaces are continuously switched, the picture difference of the use interfaces of different application programs is large, so that when images of different use interfaces are transmitted, if the picture quality of the VM end is required to be improved, the data quantity transmitted by server coding is also increased; if the amount of encoded data is limited, the picture quality at the VM end is affected.
Disclosure of Invention
The embodiment of the disclosure provides a data processing method and a data processing system, which can solve the problem of large encoding and decoding data volume during image transmission in a desktop transmission system. The technical scheme is as follows:
According to a first aspect of embodiments of the present disclosure, there is provided a data processing method applied to an encoding apparatus, including:
acquiring a target image to be encoded;
According to a preset algorithm, when a target image sequence containing the target image is found in at least one preset image sequence, acquiring target sequence identification information and a preset reference frame corresponding to the target image sequence;
And carrying out inter-frame coding processing on the target image according to the preset reference frame and the target sequence identification information to generate coded data.
In one embodiment, the method finds a target image sequence containing the target image in at least one preset image sequence, comprising:
processing the target image to obtain a target image characteristic value of the target image;
acquiring at least one preset image characteristic value corresponding to the at least one preset image sequence according to the at least one preset image sequence;
and comparing the target image characteristic value with the at least one preset image characteristic value one by one, and determining that the target image is contained in the preset image sequence when the comparison result of the target image characteristic value and the preset target characteristic value is within a preset threshold value.
In one embodiment, the method further comprises:
Creating a target image sequence in at least one preset image sequence according to the target image when the preset image sequence containing the target image cannot be found in the at least one preset image sequence according to the target image characteristic value;
and carrying out coding processing on the target image according to the target image sequence.
In one embodiment, the method creates a target image sequence from the target image, comprising:
Acquiring sequence identification information corresponding to the target image;
and determining a target reference frame corresponding to the target image sequence according to the target image.
The target image sequence is created based on the sequence identification information and the target reference frame.
In one embodiment, the method for obtaining the preset reference frame corresponding to the target image sequence includes:
acquiring target sequence identification information corresponding to the preset image sequence;
And searching a preset reference frame corresponding to the target image sequence in a target map according to the target sequence identification information, wherein the target map is used for indicating the corresponding relation between the sequence identification information corresponding to the preset image sequence and the reference frame corresponding to the preset image sequence.
According to a second aspect of embodiments of the present disclosure, there is provided a data processing method applied to a decoding apparatus, including:
acquiring coding data, wherein the coding data comprises a target image and target sequence identification information, and the target sequence identification information is used for indicating a target image sequence corresponding to the target image;
according to the target sequence identification information, when a target image sequence corresponding to the target sequence identification information is found in a preset image sequence, acquiring a preset reference frame corresponding to the target image sequence;
And decoding the encoded data according to the preset reference frame to obtain a target image.
According to a third aspect of embodiments of the present disclosure, there is provided a data processing system, the method being applied to a decoding device, comprising: an encoding device, a decoding device, the encoding device being connected to the decoding device,
The encoding device is used for acquiring a target image, wherein the target image comprises an operation interface image of the server;
According to a preset algorithm, when a target image sequence containing the target image is found in at least one preset image sequence, acquiring a preset reference frame corresponding to the target image sequence, wherein the preset image sequence comprises a historical operation interface image of the server;
according to the preset reference frame and the target sequence identification information, carrying out inter-frame coding processing on the target image, generating coded data, and sending the coded data to the decoding equipment;
the decoding device is used for acquiring encoded data, wherein the encoded data comprises a target image and target sequence identification information, and the target sequence identification information is used for indicating a target image sequence corresponding to the target image;
According to the target sequence identification information, when a target image sequence corresponding to the target sequence identification information is found in a preset image sequence, acquiring a preset reference frame and target sequence identification information corresponding to the target image sequence;
And decoding the encoded data according to the preset reference frame to obtain a target image.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of a data processing method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart diagram 1 of a data processing method provided by an embodiment of the present disclosure;
FIG. 3a is Table 1 of a data processing method provided by an embodiment of the present disclosure;
FIG. 3b is Table 2 of a data processing method provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart diagram 2 of a data processing method provided by an embodiment of the present disclosure;
FIG. 5a is Table 3 in a data processing method provided by an embodiment of the present disclosure;
FIG. 5b is Table 4 of a data processing method provided by an embodiment of the present disclosure;
FIG. 6 is a block diagram of a data processing system provided by an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
A flow logic diagram of a data processing method provided by the present disclosure is illustrated with reference to fig. 1. In the method, after acquiring a target image, an encoder searches a target image sequence corresponding to the target image according to a pre-stored image sequence, encodes the target image according to the target image sequence, then sends the encoded image to a decoder, and the decoder searches the pre-stored image sequence according to encoded data, searches the target image sequence corresponding to the target sequence identification information, and decodes the target image according to the target image sequence. Specifically, the left "storage logic schematic" and the right "storage logic schematic" are the correspondence between the reference frame of each image sequence and the sequence number of each image sequence, the left "storage logic schematic" is stored in the memory 1, and the right "storage logic schematic" is stored in the memory 2. In a scenario where the decoder and the encoder are closer, a memory may be used, and may be determined according to practical situations.
Example 1
An embodiment of the present disclosure provides a data processing method, as shown in fig. 1, where the method is applied to an encoding device, and the data encoding method includes the following steps:
101. And acquiring a target image to be encoded.
The target image in the method provided by the disclosure may include a terminal device remote control server, and the server responds to the interface image of the remote operation; and the method can also comprise that the terminal equipment accesses a server, and the desktop image sent by the server is also included.
The method provided by the disclosure can be that the server acquires the interface image responding to the operation instruction of the terminal equipment, and sends the target image to the terminal equipment so as to realize the technical effect of remotely controlling the server through the target image, and specifically, the target image can be encoded through an encoder in the server.
102. And according to a preset algorithm, when a target image sequence containing the target image is found in at least one preset image sequence, acquiring a preset reference frame and target sequence identification information corresponding to the target image sequence.
The predetermined image sequence may include a historical operating interface image of the server.
The method provided by the disclosure further comprises the step of creating a preset image sequence, wherein the preset image sequence can be generated according to images with the use rate higher than a threshold value in the history record, and can also be generated according to the operation interface image of the target software in the server. For example, when the server transmits the word operation interface image to the terminal device, the probability of the change of the toolbar image is smaller than the threshold value, so that the toolbar image is unchanged in daily use, and therefore, when the toolbar image is transmitted in a coding mode, the preset image sequence can be used as a coding reference image, so that the coding data amount is reduced.
Further, in the method provided by the present disclosure, sequence identification information may be generated for a preset image sequence, and the preset image sequence may be identified by the sequence identification information, so that a plurality of preset image sequences may be distinguished by the identification information, and the sequence identification information may be a sequence number.
After the preset image sequence is generated in the method provided by the disclosure, an image characteristic value corresponding to the preset image sequence and a preset reference frame of the preset image sequence are also obtained, and a mapping relation between each preset reference frame and each preset image sequence is established.
In a specific implementation, the method provided by the present disclosure may establish a correspondence between a preset image sequence and an image feature value by means of establishing a table, where each image sequence is labeled by a serial number, as shown in fig. 3 a: the image characteristic value corresponding to the image sequence number 1 is the characteristic value A, and the image sequence corresponding to the image sequence number 1 is the image sequence A.
Further, the method provided by the present disclosure may further establish a correspondence between the reference frame of each image sequence and the sequence number of each image sequence by establishing a table, as shown in fig. 5b, by looking up a table, it can be known that: the reference frame corresponding to the image sequence number 1 is an A reference frame, and the image sequence corresponding to the image sequence number 1 is an image sequence A.
The method provided by the disclosure can compare the target image frame with a preset image sequence through the image characteristic value, so as to judge whether the target image belongs to the preset image sequence, and the specific judging method comprises the following steps:
in the step, firstly extracting the image characteristic value of the target frame image, wherein the obtained target image characteristic value of the target image can be extracted from the target image by utilizing a perceptual Hash algorithm, such as an algorithm a-Hash, a p-Hash, a d-Hash and the like;
searching in the corresponding relation between the preset image sequence and the image characteristic value according to the extracted target image characteristic value, wherein the specific searching can be performed through the table in the figure 3 a;
If the target frame image can be found, the image sequence to which the target frame image belongs is a preset target image sequence, and a preset reference frame corresponding to the preset target image sequence can be used for encoding;
If the image sequence is not found, the image sequence to which the target frame image belongs is not a preset image sequence, and the reference frame corresponding to the preset image sequence cannot be used for encoding.
The above-mentioned finding the target image frame in the preset image sequence may be determined according to the difference value between the two: when the difference value between the image characteristic value extracted from the target frame image and the image characteristic value extracted from the preset image sequence is smaller than the preset characteristic value threshold value, the target frame image can be considered to belong to the image sequence corresponding to the preset image characteristic value.
It will be appreciated that images having image feature values belonging to the same image sequence are all relatively similar. The same reference frame can be used for inter-frame coding, the image quality is higher, and the code stream is smaller. Even in the scene of page switching, the image sequence of the image can be found according to the image characteristic value of the image, and then the reference frame corresponding to the image sequence is found.
For example, an a-Hash algorithm is used to extract an image feature value, and the preset feature value threshold may be a hamming distance (the hamming distance between 2 vectors is defined as the percentage of components different from 2 vectors), and specifically may be set to be (0.25); the image characteristic value extracted from the target frame image A is (1010101010), the image characteristic value corresponding to the preset image sequence A is (1010101011), the Hamming distance between the two is (0.1) and is smaller than the preset characteristic value threshold, and the target frame image A can be considered to be attributed to the image sequence A.
In a specific implementation process, if the preset image sequence includes multiple images, the images can be compared one by one to confirm which image includes the target frame image
The method for searching the reference frame corresponding to the target image sequence provided by the present disclosure may include:
According to the sequence identification information of the target image sequence to which the target image belongs, a reference frame corresponding to the sequence identification information is searched in a database, and the corresponding relation between the reference frame of at least one image sequence and the sequence number identification information of at least one image sequence is prestored in a memory of a specific server, so that the reference frame corresponding to the target image can be searched through the sequence identification information, and the specific search can be searched through a table in fig. 3 b.
103. And carrying out inter-frame coding on the target frame image according to the preset reference frame and the target sequence identification information to generate coded data.
The method provided by the disclosure performs inter-frame coding on the target image to generate coded data, and includes:
acquiring sequence identification information corresponding to the target preset image, wherein the sequence identification information can be the sequence number of the image sequence number;
And generating the coded data after marking the preset reference frame by the sequence identification information.
By the sequence identification information, the decoding device can find the reference frame used in the encoding of the target image, so that the decoding efficiency is improved, and of course, the encoding device and the decoding device synchronize the sequence identification information and the corresponding relation between the sequence identification information and the reference frame in advance.
When the target image is not found in the preset image sequence, the method provided by the disclosure generates a new image sequence according to the target image and performs coding processing. The encoder carries out intra-frame encoding on the target data to generate encoded data, wherein the encoded data carries sequence identification information of the new image sequence.
It will be appreciated that the encoder will perform intra-coding only in the case where the image to be coded belongs to a new image sequence, and the reference frame will be included in the coded data.
After the new image sequence is created, the method provided by the disclosure can send the new image sequence, the identification information thereof and the reference frame image to the encoding equipment, thereby ensuring that the same reference frame can be used for encoding and decoding and achieving the effect of improving the encoding and decoding processing efficiency.
In a specific practical process, an encoder in a server creates and stores a new image sequence, attributes the target image to the new image sequence, and sends the target image and identification information corresponding to the target image to a memory; the memory stores the target image as a reference frame for a new sequence of target images.
After receiving the sequence numbers of the target image and the target image sequence, the memory stores the target image as a reference frame of a new target image sequence, and establishes a corresponding relation between the reference frame of the new image sequence and the sequence number of the new image sequence.
The data processing method provided by the embodiment of the disclosure is applied to encoding equipment, when the encoding equipment acquires a target image, the encoding equipment firstly searches a target image sequence containing the target image in at least one preset image sequence, and when the target image sequence is found, acquires a preset reference frame corresponding to the target image sequence, and encodes the target image according to the preset reference frame.
In the method provided by the disclosure, each preset image sequence corresponds to a reference frame, and when the same image sequence is encoded, the reference frame corresponding to the image sequence is used for encoding; meanwhile, the decoding device stores the reference frames corresponding to the image sequences, the coded data of the same image sequence is decoded by using the reference frames corresponding to the image sequences. Therefore, in the scene of image switching, different reference frames are respectively used for images belonging to different image sequences so as to ensure the picture quality, and in addition, the number of the reference frames in the coded data sent to the decoding end by the coding end is less, so that the coded data quantity is smaller.
Example two
Based on the data encoding method provided in the embodiment corresponding to fig. 2, another embodiment of the present disclosure provides a data decoding method, which may be applied to the target image sent by the terminal device decoding processing server. Referring to fig. 4, the data processing method provided in this embodiment includes the following steps:
301. Acquiring encoded data
The coded data refers to a coded target image, and the coded data comprises target sequence identification information of a preset image sequence; the target sequence identification information may include a sequence number of the target image sequence, thereby facilitating a search for the target image sequence among a plurality of stored preset image sequences.
In specific practice, the method provided by the disclosure may be used for obtaining the encoded image, which may be encoded data sent by the terminal device decoding processing server, where the encoded data may be data obtained by performing encoding processing on an interface image obtained by the server and responding to an operation instruction of the terminal device, and specifically may be used for performing decoding processing on the encoded image through a decoder in the terminal device.
The coded data provided by the present disclosure includes a target image and target sequence identification information, where the target sequence identification information is used to indicate a preset image sequence corresponding to the target image.
302. And according to the target sequence identification information, when a target image sequence corresponding to the target sequence identification information is found in a preset image sequence, acquiring a preset reference frame corresponding to the target image sequence.
In the decoding method provided by the present disclosure, a preset image sequence list is stored, where the preset image sequence list includes image sequences and a sequence number corresponding to each image sequence, as shown in fig. 5a, it can be known by looking up a table: the image sequence corresponding to the image sequence number 1 is the image sequence A.
In the decoding method provided by the present disclosure, the corresponding relationship between the reference frame of each image sequence and the serial number of the corresponding image sequence of each image sequence is also stored, as shown in fig. 5b, as follows from the table lookup: the reference frame corresponding to the image sequence number 1 is the reference frame A.
In summary, in the decoding method provided by the present disclosure, a first correspondence between identification information and a preset image sequence is consistent with a second correspondence between identification information and a reference frame image corresponding to the preset image sequence. For example, the preset image sequence a corresponding to the sequence number 1 may be found in fig. 5a and 5b by the sequence number 1, or the reference frame a corresponding to the sequence number 1 may be found by the sequence number 1, that is, the reference frame a may be known to be the reference frame corresponding to the preset image sequence a.
When judging whether the identification information has a corresponding preset image or not in the method provided by the disclosure, according to the sequence number of the image sequence analyzed from the encoded data, searching a reference frame corresponding to the sequence number in the pre-stored correspondence between the reference frame of each image sequence and the sequence number of each image sequence, wherein the processing procedure comprises:
Analyzing the coded data, and acquiring identification information according to an analysis result;
According to the identification information, searching whether a target image sequence matched with the identification information exists in a preset image sequence list;
if a target image sequence matched with the identification information is found, acquiring a reference frame image corresponding to the target image sequence;
if not, the preset image sequence is not included, the target image sequence corresponding to the data to be decoded is not included, the encoded data is generated by intra-frame encoding, and the reference frame required for decoding the encoded data is not stored in the memory 2.
In the method provided by the present disclosure, when a target image sequence corresponding to the target sequence identification information is not found in a preset image sequence, the target image sequence is created according to encoded data, which specifically includes:
decoding the encoded data to obtain a complete target image;
creating a new image sequence according to the target image and the target sequence identification information, and establishing a mapping relation between the target sequence identification information and the new image sequence;
and storing the target image sequence, the target sequence identification information and the mapping relation into a second memory.
Further, a new target image sequence can be processed, the target frame image is used as a reference frame corresponding to the target image sequence, and a mapping relation between the reference frame and target sequence identification information is established
Through the above-mentioned processing, in the decoding method provided by the present disclosure, when the encoded data generated by inter-frame encoding of the target image sequence is encountered next time, the new target image sequence is determined to be included in the preset image sequence list according to the identification information, such as the sequence number, carried in the encoded data, and then the required reference frame is acquired from the memory 2 according to the identification information.
303. And decoding the encoded data according to the preset reference frame to obtain a target frame image.
The method provided by the disclosure obtains a complete target image by decoding encoded data using the preset reference frame.
Furthermore, in order to improve the decoding efficiency, the present disclosure may further replace the reference frame corresponding to the image sequence to be decoded in the corresponding relationship with the target image, and through the replacing process, the reference frame corresponding to each image sequence stored in the memory may be continuously updated, so that the image during encoding and decoding is as close as possible to the reference frame, which not only can reduce the encoded data, but also can improve the image quality of the decoding process.
In the specific practical process of the method provided by the disclosure, the serial numbers of the decoded complete image and the decoded image sequence can be sent to a memory through a decoder; the memory replaces the reference frame corresponding to the sequence number of the parsed image sequence with the complete image, namely, the decoded complete image is used for updating the reference frame of the image sequence to which the complete image belongs.
The data processing method provided by the embodiment of the disclosure is applied to decoding equipment, when the decoding equipment acquires encoded data, the encoded data is firstly analyzed to acquire preset identification information corresponding to the encoded data, a target image sequence corresponding to the preset identification information is searched in at least one preset image sequence according to the preset identification information, when the target image sequence is searched, a preset reference frame corresponding to the target image sequence is acquired, and decoding processing is performed on encoding according to the preset reference frame. The method and the device can decode the coded data through the pre-stored reference frames during decompression processing, so that the efficiency of decoding processing can be improved, and the decoding quality can be ensured.
Example 3
Based on the data processing code methods described in the above-described embodiments corresponding to fig. 2 and fig. 4, the following are system embodiments of the present disclosure, which may be used to perform method embodiments of the present disclosure.
An embodiment of the present disclosure provides a data processing system, as shown in FIG. 6, the data processing system 60 comprising:
the system 60 includes: an encoding device 601, a decoding device 602; the encoding device 601 is connected to the decoding device 602,
The encoding device 601 is configured to acquire a target image, where the target image includes an operation interface image of a server;
According to a preset algorithm, when a target image sequence containing the target image is found in at least one preset image sequence, acquiring a preset reference frame and target sequence identification information corresponding to the target image sequence, wherein the preset image sequence can comprise a historical operation interface image of the server;
and according to the preset reference frame and the target sequence identification information, inter-frame coding is performed on the target image, so as to generate coded data, and the coded data is sent to the decoding device 602.
The encoding device 601 is further configured to create, according to the target image feature value, a target image sequence in at least one preset image sequence when the preset image sequence including the target image is not found in the at least one preset image sequence;
and carrying out coding processing on the target image according to the target image sequence.
The decoding device 602 is configured to obtain encoded data, where the encoded data includes a target image and target sequence identification information, and the target sequence identification information is used to indicate a target image sequence corresponding to the target image;
according to the sequence identification information, when a target image sequence corresponding to the target sequence identification information is found in a preset image sequence, a preset reference frame corresponding to the target image sequence is obtained;
And decoding the encoded data according to the preset reference frame to obtain a target image.
The decoding device 602 is further configured to decode the encoded data according to a preset decoding rule to obtain a target image when the target sequence identification information cannot be found in the identification information in the preset image sequence;
and creating a target image sequence in the at least one preset image sequence according to the target image.
In one embodiment, the system 60 further comprises a first memory 603 and a second memory 604, the first memory 603 being connected to the encoding device 601;
the second memory 604 is coupled to the decoding device 602;
The first memory 603 is configured to store the at least one preset image sequence, a preset image feature value corresponding to the preset image sequence, a preset reference frame corresponding to the preset image sequence, and sequence identification information corresponding to the preset image sequence.
The first memory 603 is further configured to, when the first memory 603 receives a first query instruction sent by the encoding device 601, instruct to search for a corresponding target image sequence in a preset image sequence according to a target image feature value corresponding to the target image;
And generating a query result according to the first query instruction, wherein the query result comprises: when the target image sequence is found, the target image sequence, a preset reference frame corresponding to the target image sequence, and sequence identification information corresponding to the preset image sequence are sent to the encoding device 601.
When the target image sequence is not found, search failure information is transmitted to the encoding apparatus 601.
The first memory 603 is configured to receive the newly created target image sequence sent by the encoding device 601.
The second memory 604 is configured to store the at least one preset image sequence, a preset reference frame corresponding to the preset image sequence, and sequence identification information corresponding to the preset image sequence.
When the second memory 604 receives a first query instruction sent by the decoding device 602, the first query instruction is used for indicating to find a corresponding target image sequence in a preset image sequence according to sequence identification information corresponding to the encoded image;
And generating a query result according to the second query instruction, wherein the query result comprises:
When the target image sequence is found, the target image sequence, a preset reference frame corresponding to the target image sequence, and sequence identification information corresponding to the preset image sequence are sent to the decoding device 602.
When the target image sequence is not found, the search failure information is transmitted to the decoding apparatus 602.
In a specific implementation, the first memory and the second memory may be the same memory; the first memory may be an internal memory of the encoding apparatus or an external memory of the encoding apparatus.
The data processing system provided by the embodiment of the disclosure comprises encoding equipment and decoding equipment, wherein when the encoding equipment acquires a target image, the encoding equipment firstly searches a target image sequence containing the target image in at least one preset image sequence, and when the target image sequence is searched, acquires a preset reference frame corresponding to the target image sequence, encodes the target image according to the preset reference frame, and transmits encoded data to the decoding equipment; when the decoding equipment acquires the coded data, firstly analyzing the coded data to acquire preset identification information corresponding to the coded data, searching a target image sequence corresponding to the preset identification information in at least one preset image sequence according to the preset identification information, and when the target image sequence is searched, acquiring a preset reference frame corresponding to the target image sequence, and decoding the code according to the preset reference frame.
Based on the data processing method described in the embodiments corresponding to fig. 2 and 4, the embodiments of the present disclosure also provide a computer readable storage medium, for example, a non-transitory computer readable storage medium may be a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the data processing method described in the embodiments corresponding to fig. 2 and fig. 4, which are not described herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims (6)
1. A data processing method, characterized by being applied to an encoding apparatus, the method comprising:
acquiring a target image to be encoded;
according to a preset algorithm, when a target image sequence containing the target image is found in at least one preset image sequence, acquiring target sequence identification information and a preset reference frame corresponding to the target image sequence; according to the preset reference frame and the target sequence identification information, inter-frame coding processing is carried out on the target image, and coding data are generated;
according to the characteristic value of the target image, when the target image sequence containing the target image is not found in at least one preset image sequence, creating the target image sequence in the at least one preset image sequence according to the target image; according to the target image sequence, carrying out coding processing on the target image; wherein the creating a target image sequence in the at least one preset image sequence according to the target image comprises: acquiring sequence identification information corresponding to the target image; determining a target reference frame corresponding to the target image sequence according to the target image; and creating the target image sequence according to the sequence identification information and the target reference frame.
2. The method according to claim 1, wherein said finding a target image sequence containing said target image in at least one preset image sequence comprises:
processing the target image to obtain a target image characteristic value of the target image;
acquiring at least one preset image characteristic value corresponding to the at least one preset image sequence according to the at least one preset image sequence;
And comparing the target image characteristic value with the at least one preset image characteristic value one by one, and determining that the target image is contained in the preset image sequence when the comparison result of the target image characteristic value and the preset target characteristic value is within a preset threshold value.
3. The method according to claim 1, wherein the method for obtaining the preset reference frame corresponding to the target image sequence includes:
Acquiring target sequence identification information corresponding to the preset image sequence;
And searching a preset reference frame corresponding to the target image sequence in a target mapping according to the target sequence identification information, wherein the target mapping is used for indicating the corresponding relation between the sequence identification information corresponding to the preset image sequence and the reference frame corresponding to the preset image sequence.
4. A data processing method, characterized by being applied to a decoding apparatus, comprising:
Acquiring coding data, wherein the coding data comprises a target image and target sequence identification information, and the target sequence identification information is used for indicating a target image sequence corresponding to the target image;
According to the target sequence identification information, when a target image sequence corresponding to the target sequence identification information is found in a preset image sequence, acquiring a preset reference frame corresponding to the target image sequence; decoding the encoded data according to the preset reference frame to obtain a target image;
when the target sequence identification information cannot be found in the identification information in at least one preset image sequence, decoding the encoded data according to a preset decoding rule to obtain a target image; and creating a target image sequence in the at least one preset image sequence according to the target image, wherein the creating the target image sequence in the at least one preset image sequence according to the target image comprises the following steps: acquiring sequence identification information corresponding to the target image; determining a target reference frame corresponding to the target image sequence according to the target image; and creating the target image sequence according to the sequence identification information and the target reference frame.
5. A data processing system, the system comprising: encoding apparatus, decoding apparatus; the encoding device is connected to the decoding device,
The encoding device is used for acquiring a target image to be encoded;
According to a preset algorithm, when a target image sequence containing the target image is found in at least one preset image sequence, acquiring target sequence identification information corresponding to the target image sequence and a preset reference frame corresponding to the target image sequence, wherein the preset image sequence comprises a historical operation interface image of a server;
According to the preset reference frame and the target sequence identification information, carrying out inter-frame coding processing on the target image, generating coded data, and sending the coded data to the decoding equipment;
The decoding device is used for acquiring encoded data, wherein the encoded data comprises a target image and target sequence identification information, and the target sequence identification information is used for indicating a target image sequence corresponding to the target image;
According to the target sequence identification information, when a target image sequence corresponding to the target sequence identification information is found in a preset image sequence, acquiring a preset reference frame corresponding to the target image sequence;
Decoding the encoded data according to the preset reference frame to obtain a target image;
The encoding device is further configured to create a target image sequence in at least one preset image sequence according to the target image when the preset image sequence including the target image is not found in the at least one preset image sequence according to the target image feature value; according to the target image sequence, carrying out coding processing on the target image; wherein the creating a target image sequence in the at least one preset image sequence according to the target image comprises: acquiring sequence identification information corresponding to the target image; determining a target reference frame corresponding to the target image sequence according to the target image; creating the target image sequence according to the sequence identification information and the target reference frame;
The decoding device is further configured to decode the encoded data according to a preset decoding rule to obtain a target image when the target sequence identification information cannot be found in the identification information in the preset image sequence; and creating a target image sequence in the at least one preset image sequence according to the target image.
6. The system of claim 5, further comprising a first memory and a second memory,
The first memory is connected with the encoding device;
the second memory is connected with the decoding device;
the first memory is configured to store the at least one preset image sequence, a preset image feature value corresponding to the preset image sequence, a preset reference frame corresponding to the preset image sequence, and sequence identification information corresponding to the preset image sequence;
the second memory is configured to store the at least one preset image sequence, a preset reference frame corresponding to the preset image sequence, and sequence identification information corresponding to the preset image sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010576141.3A CN111800631B (en) | 2020-06-22 | 2020-06-22 | Data processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010576141.3A CN111800631B (en) | 2020-06-22 | 2020-06-22 | Data processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111800631A CN111800631A (en) | 2020-10-20 |
CN111800631B true CN111800631B (en) | 2024-07-23 |
Family
ID=72804475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010576141.3A Active CN111800631B (en) | 2020-06-22 | 2020-06-22 | Data processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111800631B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111083481A (en) * | 2019-11-15 | 2020-04-28 | 西安万像电子科技有限公司 | Image coding method and device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3348776B2 (en) * | 1999-04-12 | 2002-11-20 | 日本電気株式会社 | Moving picture coding apparatus and method |
CN102215386B (en) * | 2010-04-09 | 2013-03-27 | 华为技术有限公司 | Video image block processing method and device |
CN102075760B (en) * | 2010-10-27 | 2012-11-21 | 无锡中星微电子有限公司 | Quick movement estimation method and device |
CN103618911B (en) * | 2013-10-12 | 2017-02-01 | 北京视博云科技有限公司 | Video streaming providing method and device based on video attribute information |
CN103957341B (en) * | 2014-04-30 | 2016-09-28 | 华为软件技术有限公司 | The method of picture transfer and relevant device thereof |
CN104519364A (en) * | 2014-12-10 | 2015-04-15 | 北京中星微电子有限公司 | Video encoding method and device |
WO2019227491A1 (en) * | 2018-06-01 | 2019-12-05 | 深圳市大疆创新科技有限公司 | Coding and decoding methods, and coding and decoding devices |
CN110636334B (en) * | 2019-08-23 | 2022-12-09 | 西安万像电子科技有限公司 | Data transmission method and system |
-
2020
- 2020-06-22 CN CN202010576141.3A patent/CN111800631B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111083481A (en) * | 2019-11-15 | 2020-04-28 | 西安万像电子科技有限公司 | Image coding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111800631A (en) | 2020-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140369413A1 (en) | Systems and methods for compressing video data using image block matching | |
KR102283725B1 (en) | Image encoding/decoding method and device | |
WO2017193821A1 (en) | Cloud desktop image processing method, server, client and computer storage medium | |
US11317123B2 (en) | Systems and methods for using pre-calculated block hashes for image block matching | |
KR101953078B1 (en) | Improving service quality of video matching system using image matching system | |
CN110688286B (en) | Application program operation information transmission method and device, storage medium and electronic equipment | |
CN110636334B (en) | Data transmission method and system | |
US10108594B2 (en) | Systems and methods for applying a residual error image | |
CN110662080B (en) | Machine-oriented universal coding method | |
CN113268453A (en) | Log information compression storage method and device | |
US10536726B2 (en) | Pixel patch collection for prediction in video coding system | |
CN111800631B (en) | Data processing method and system | |
CN111629228B (en) | Data transmission method and server | |
CN104980763A (en) | Video code stream and video encoding and decoding method and device | |
EP3637734B1 (en) | Video data display method and device | |
CN110289935B (en) | Decoding method, device, terminal and storage medium | |
CN117278780B (en) | Video encoding and decoding method, device, equipment and storage medium | |
WO2024045792A1 (en) | Translation processing method, training method for post-editing model, and related apparatus | |
CN113840173B (en) | Webpage video playing method, device, equipment, storage medium and program product | |
CN114070471B (en) | Test data packet transmission method, device, system, equipment and medium | |
CN111491182B (en) | Method and device for video cover storage and analysis | |
CN112954343A (en) | Encoding and decoding method, device and system | |
CN117850976A (en) | Cloud desktop migration method and system | |
CN111447450A (en) | Data processing method and device | |
CN115052149A (en) | Image coding and decoding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |