[go: up one dir, main page]

CN108307191B - Image data alignment method and device - Google Patents

Image data alignment method and device Download PDF

Info

Publication number
CN108307191B
CN108307191B CN201810005289.4A CN201810005289A CN108307191B CN 108307191 B CN108307191 B CN 108307191B CN 201810005289 A CN201810005289 A CN 201810005289A CN 108307191 B CN108307191 B CN 108307191B
Authority
CN
China
Prior art keywords
image data
pixel block
pixel
comparison result
binary data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810005289.4A
Other languages
Chinese (zh)
Other versions
CN108307191A (en
Inventor
蔡显志
苏睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN201810005289.4A priority Critical patent/CN108307191B/en
Publication of CN108307191A publication Critical patent/CN108307191A/en
Application granted granted Critical
Publication of CN108307191B publication Critical patent/CN108307191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses an image data alignment method and device. Wherein, the method comprises the following steps: determining at least one identified block of pixels of the first image data; obtaining binary data corresponding to the at least one identification pixel block; comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; and determining whether the first image data is identical to the second image data according to the first comparison result, wherein the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data. The invention solves the technical problem that the prior art can not effectively align frame pictures in the image transmission or acquisition process.

Description

Image data alignment method and device
Technical Field
The invention relates to the field of data processing, in particular to an image data alignment method and device.
Background
In a real-time image codec transmission system, in order to comprehensively evaluate the performance of the system, the system needs to be tested, for example, the image data received by an encoder is compared with the image data output by a decoder to obtain a Peak Signal to Noise Ratio (PSNR) and a Structural Similarity (SSIM), so as to test the compression quality index of the codec; counting the number, length and time information of network data packets in the transmission process of the system, and testing the compression capacity of the encoder; and (3) counting the difference between the time of the initial image data entering the encoder and the time of the image data output by the decoder to obtain the transmission delay of the system, testing the execution performance of the encoder and the decoder and the transmission performance of the system, and further comprehensively evaluating the execution performance of the image encoder and the decoding and the transmission performance of the system.
In an actual end-to-end test system, frame picture alignment is a key for ensuring the end-to-end test system to smoothly perform, and specific frame numbers need to be identified and compared at a sending source end and a receiving source end, and information such as picture quality, time delay, frame loss and the like of transmitted image data is compared based on the specific frame numbers. In the prior art, the alignment method usually used is to perform alignment by using time, for example, adding the current time information to the frame when sending the image data, or directly stamping a decimal time stamp on the frame, and then identifying the time stamp at the decoding end and then performing time difference subtraction. There is also a related art for frame alignment by using a dark red small square serial barcode throughout the entire frame width at the frame 1/5 when comparing image data. However, the above prior art inevitably has the problem that the frame pictures cannot be aligned effectively due to the reduction of picture quality and the tearing of pictures in the process of image transmission or acquisition.
Aiming at the problem that the prior art can not effectively align frame pictures in the image transmission or acquisition process, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides an alignment method and device of image data, which at least solve the technical problem that the prior art can not effectively align frame pictures in the image transmission or acquisition process.
According to an aspect of an embodiment of the present invention, there is provided an alignment method of image data, including: determining at least one identified block of pixels of the first image data; obtaining binary data corresponding to the at least one identification pixel block; comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; and determining whether the first image data is identical to the second image data according to the first comparison result, wherein the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data.
Further, the obtaining of binary data corresponding to the at least one identified pixel block comprises: acquiring pixel components of the at least one identification pixel block; and determining binary data corresponding to the at least one identification pixel block according to the average value of each pixel component in the at least one identification pixel block.
Further, when the number of the pixel components is three, determining the binary data corresponding to the at least one identification pixel block according to the average value of each of the pixel components includes: comparing the average value of each pixel component with a first preset average value to obtain a second comparison result; comparing the average value of each pixel component with a second preset average value to obtain a third comparison result; and if the second comparison result is that the average value of any one of the pixel components is greater than or equal to the first predetermined average value, and the third comparison result is that the average value of two other pixel components is less than or equal to the second predetermined average value, determining the binary data corresponding to the any one pixel component as the binary data corresponding to the at least one identification pixel block.
Further, determining whether the first image data and the second image data are consistent according to the first comparison result includes: if the first comparison result is that the binary data is consistent with the binary data corresponding to at least one identification pixel block in the second image data, determining that the first image data is consistent with the second image data; and if the first comparison result shows that the binary data is inconsistent with the binary data corresponding to at least one identification pixel block in the second image data, determining that the first image data is inconsistent with the second image data.
Further, the at least one identified pixel block comprises: a first pixel block and a second pixel block, before determining whether the first image data and the second image data are consistent according to the first comparison result, the method further comprising: determining binary data corresponding to the first pixel block and binary data corresponding to the second pixel block; comparing the binary data corresponding to the first pixel block with the binary data corresponding to the second pixel block to obtain a fourth comparison result; and determining whether the first image data is complete image data according to the fourth comparison result.
Further, determining whether the first image data is complete image data according to the fourth comparison result includes: and if the fourth comparison result indicates that the binary data corresponding to the first pixel block is identical to the binary data corresponding to the second pixel block, determining that the first image data is the complete image data.
According to an aspect of an embodiment of the present invention, there is provided an alignment apparatus of image data, including: a first determining module for determining at least one identified block of pixels of the first image data; a first obtaining module, configured to obtain binary data corresponding to the at least one identified pixel block; the comparison module is used for comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; and a second determining module, configured to determine whether the first image data is consistent with the second image data according to the first comparison result, where the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data.
Further, the first obtaining module includes: a second obtaining module, configured to obtain a pixel component of the at least one identified pixel block; and a third determining module, configured to determine binary data corresponding to the at least one identified pixel block according to an average value of each of the pixel components in the at least one identified pixel block.
According to an aspect of an embodiment of the present invention, there is provided a storage medium including a stored program, wherein the program executes any one of the above-described image data alignment methods.
According to an aspect of the embodiments of the present invention, there is provided a processor, configured to execute a program, where the program executes to perform any one of the above image data alignment methods.
In the embodiment of the invention, at least one identification pixel block of the first image data is determined by adopting a mode of aligning frame picture identifications; obtaining binary data corresponding to the at least one identification pixel block; comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; according to the first comparison result, whether the first image data is consistent with the second image data or not is determined, and the purpose of effectively guaranteeing the accuracy of frame alignment after image transmission is achieved, so that the technical effect of reducing the phenomena of frame image identification errors, deviation or confusion is achieved, the working efficiency of a test system is effectively improved, and the technical problem that the frame images cannot be effectively aligned in the image transmission or acquisition process in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of the steps of a method for aligning image data according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of an alternative method for aligning image data according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating steps of an alternative method for aligning image data according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating steps of an alternative method for aligning image data according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating steps of an alternative method for aligning image data according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative end-to-end test system testing process according to an embodiment of the present invention; and
fig. 7 is a schematic block diagram of an alignment apparatus of image data according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, in order to facilitate understanding of the embodiments of the present invention, some terms or nouns referred to in the present invention will be explained as follows:
codec (codec): refers to a device or program capable of transforming a signal or a data stream. The transformation referred to herein includes both the operation of encoding (typically for transmission, storage or encryption) or extracting a signal or data stream into an encoded stream and the operation of recovering from the encoded stream a form suitable for observation or manipulation for observation or processing.
Real-time image coding and decoding transmission system: the system is a system which compresses real-time continuous image data stream by using a certain codec, immediately transmits the compressed real-time continuous image data stream by using Ethernet and is decoded and restored by a decoder at a receiving end.
Peak Signal to Noise ratio (Peak Signal to Noise Rat io, PSNR): refers to an objective criterion for evaluating an image.
Structural Similarity Index (SSIM) is an index for measuring the similarity between two images.
End-to-end test system: the test system designed for the real-time image coding and decoding transmission system product is mainly used for the performance test of the real-time image coding and decoding transmission system.
Example 1
While the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that illustrated herein, embodiments of the present invention provide a method embodiment of an alignment method for image data.
Fig. 1 is a flowchart of the steps of an alignment method of image data according to an embodiment of the present invention, as shown in fig. 1, the method includes the steps of:
step S102, determining at least one identification pixel block of the first image data;
step S104, obtaining binary data corresponding to the at least one identification pixel block;
step S106, comparing the binary data with the binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result;
step S108 is to determine whether the first image data is identical to the second image data according to the first comparison result, where the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data.
In the embodiment of the invention, at least one identification pixel block of the first image data is determined by adopting a mode of aligning frame picture identifications; obtaining binary data corresponding to the at least one identification pixel block; comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; according to the first comparison result, whether the first image data is consistent with the second image data or not is determined, and the purpose of effectively guaranteeing the accuracy of frame alignment after image transmission is achieved, so that the technical effect of reducing the phenomena of frame image identification errors, deviation or confusion is achieved, the working efficiency of a test system is effectively improved, and the technical problem that the frame images cannot be effectively aligned in the image transmission or acquisition process in the prior art is solved.
It should be noted that the optional embodiment provided in the present application may be used in, but not limited to, a testing process of an end-to-end testing system, and may ensure that the end-to-end testing system performs a test smoothly, so as to compare information such as picture quality, time delay, frame loss, and the like of transmitted image data. The end-to-end test system is designed for a real-time image coding and decoding transmission system product and is mainly used for testing the performance of the real-time image coding and decoding transmission system.
In an optional embodiment, the second image data is original image data, that is, original image data of a source end; the first image data is obtained by encoding and decoding the initial image data, that is, the image data received by the receiving source. Alternatively, the above-mentioned identification pixel block may be any one or more pixel blocks on the frame picture for identifying the frame picture.
In an alternative embodiment provided in the present application, in order to identify each frame of picture, each frame of picture may be numbered, for example, a frame may be identified from ID number 0, and accumulated step by step to ensure that the ID number of each frame of picture is different, and optionally, the ID number in the present application may be represented in a binary form, but is not limited thereto. Also, the ID number may be, but not limited to, identified on each frame picture by 16 pixel squares of 16 × 16 size, occupying an area of 256 × 16 size of each frame picture, and if the ID number is 0, the (0,255,0) is displayed as a green block using RGB value of (0,255, 0); if the above ID number is 1, the (255,0,0) is displayed as a red block using the RGB value representation of (255,0, 0).
It should be noted that each pixel block of 16 × 16 is identified with one bit, 16 pixel blocks of 16 × 16 size are also identified with 16 bits, and the 16 bits may represent 65535 frames, and according to the play rate of 60fps, a time span of 1092 hours may be supported, which is sufficient to complete the test of the end-to-end test system.
As an alternative embodiment, fig. 2 is a flowchart of steps of an alternative image data alignment method according to an embodiment of the present invention, and as shown in fig. 2, acquiring binary data corresponding to the at least one identification pixel block includes the following method steps:
step S202, obtaining the pixel component of the at least one identification pixel block;
step S204, determining binary data corresponding to the at least one identified pixel block according to the average value of each of the pixel components in the at least one identified pixel block.
In an alternative embodiment, the pixel component of the at least one identification pixel block may be the pixel R, G and the B component, and when identifying or aligning the frame picture, an average value of all pixels R, G and the B component in each identification data block (e.g., 16 × 16 pixel block) may be calculated, and binary data corresponding to each identification data block may be determined according to the average value of all pixels R, G and the B component in each identification data block.
In an alternative embodiment, fig. 3 is a flowchart of steps of an alternative image data alignment method according to an embodiment of the present invention, and as shown in fig. 3, when the number of the pixel components is three, determining binary data corresponding to the at least one identification pixel block according to an average value of each of the pixel components includes the following method steps:
step S302, comparing the average value of each pixel component with a first preset average value to obtain a second comparison result;
step S304, comparing the average value of each pixel component with a second preset average value to obtain a third comparison result;
in step S306, if the second comparison result is that the average value of any one of the pixel components is greater than or equal to the first predetermined average value, and the third comparison result is that the average value of two other pixel components is less than or equal to the second predetermined average value, the binary data corresponding to the any one pixel component is determined as the binary data corresponding to the at least one flag pixel block.
It should be noted that the number of the pixel components is three, that is, the pixel component of the at least one identified pixel block may be the pixel R, G and the B component.
As an alternative embodiment, black and white pixel blocks may be used as the identification pixel blocks, that is, two RGB values (255, 255, 255) and (0, 0,0) may be used to represent 0 and 1. However, due to the reasons of quality reduction, color sharpening and the like in the picture transmission process, the problem of ID number identification errors is easily caused, a certain pixel component in RGB values can be adopted to perform prominent identification relative to the other two pixel components, and further, under the condition of picture quality reduction, effective identification can still be performed.
In an alternative embodiment, if the average value of G components of an identification data block is greater than 130, and the average value of R components and the average value of B components are both less than 120, the RGB value of the pixel block is (0,255,0), and the binary data (i.e., ID number) corresponding to the identification data block is determined to be 0; if the average value of the R component of an identification data block is greater than 130, and the average value of the G component and the average value of the B component are both less than 120, the RGB value of the pixel block is (255,0,0), and it is determined that the binary data corresponding to the identification data block is 1.
In an alternative embodiment, fig. 4 is a flowchart of steps of an alternative image data alignment method according to an embodiment of the present invention, and as shown in fig. 4, determining whether the first image data and the second image data are consistent according to the first comparison result includes the following steps:
step S402, if the first comparison result indicates that the binary data is consistent with the binary data corresponding to at least one identified pixel block in the second image data, determining that the first image data is consistent with the second image data;
step S404, if the first comparison result indicates that the binary data corresponding to at least one identified pixel block in the binary data and the second image data are not consistent, determining that the first image data is not consistent with the second image data.
In an optional embodiment, when comparing whether the first image data is consistent with the second image data, the binary data corresponding to at least one identified pixel block of the first image data may be compared with the binary data corresponding to at least one identified pixel block of the second image data, so as to determine whether the first image data is consistent with the second image data.
In this application, as an alternative embodiment, fig. 5 is a flowchart of steps of an alternative image data alignment method according to an embodiment of the present invention, and as shown in fig. 5, the at least one identification pixel block includes: a first pixel block and a second pixel block, before determining whether the first image data and the second image data are consistent according to the first comparison result, the method further comprising the steps of:
step S502, determining the binary data corresponding to the first pixel block and the binary data corresponding to the second pixel block;
step S504, comparing the binary data corresponding to the first pixel block with the binary data corresponding to the second pixel block to obtain a fourth comparison result;
step S506, determining whether the first image data is complete image data according to the fourth comparison result.
In order to avoid that frame data cannot be effectively identified or aligned due to frame tearing or a half-frame phenomenon caused in the image transmission or acquisition process, the frame data can be identified by adding an ID watermark to the diagonal of the frame, for example, but not limited to, a 16-bit mark is added to the lower left corner and the upper right corner of the image, and if the watermark at the lower left corner is completely consistent with the watermark at the upper right corner, it indicates that the current frame does not generate the frame tearing or the half-frame phenomenon.
In an alternative embodiment, during the process of transmitting or acquiring image data of a frame, the frame may be restored to a problem for various reasons, and then a phenomenon of tearing or half-frame of a certain frame occurs, that is, a part of the frame already belongs to the content of a new frame, and another part is still the content of an old frame. Because the two ID watermarks are respectively arranged on the upper part and the lower part of the same frame, whether the currently acquired frame is a complete frame can be judged by identifying whether the two ID numbers are unified, and the situation that a half frame is compared with an original frame to obtain an error result is avoided.
In this application, in an alternative embodiment, determining whether the first image data is complete image data according to the fourth comparison result includes the following method steps: and if the fourth comparison result indicates that the binary data corresponding to the first pixel block is identical to the binary data corresponding to the second pixel block, determining that the first image data is the complete image data.
Fig. 6 is a schematic diagram of a testing process of an optional end-to-end testing system according to an embodiment of the present invention, as shown in fig. 6, in the testing process of the end-to-end testing system, in step S602, an image 1 may be collected in real time at a sending source end, and each of the images 1 is identified (identification is generated), and then image superposition processing is performed on all the images 1 subjected to identification processing, so as to obtain initial image data (the first image data) at the sending source end, and after counting time (statistical time) when the initial image data enters an encoder, the initial image data is output. In step S604, the receiver end may acquire the image 2 in real time to obtain image data (the second image data) output by the decoder, and identify (identify) an identifier in the image data, so as to perform image comparison processing (image comparison processing) on the initial image data and the image data output by the decoder, that is, perform frame alignment processing on the image. In step S606, after the end-to-end test system performs frame alignment and image recognition on the transmitted image data, the image may capture network data (network data capture) and perform network data statistics (network data statistics).
Through the steps, the frame alignment accuracy after the image data transmission can be ensured, the problems of identification errors, deviation and chaos caused by the image quality are reduced, and the working efficiency of the test system can be improved.
Example 2
An embodiment of the present invention further provides an apparatus for implementing the method for aligning image data, and fig. 7 is a schematic block diagram of an apparatus for aligning image data according to an embodiment of the present invention, and as shown in fig. 7, the apparatus for aligning image data includes: a first determination module 70, a first acquisition module 72, a comparison module 74, and a second determination module 76, wherein,
a first determining module 70 for determining at least one identified block of pixels of the first image data; a first obtaining module 72, configured to obtain binary data corresponding to the at least one identified pixel block; a comparing module 74, configured to compare the binary data with binary data corresponding to at least one identified pixel block in the second image data, so as to obtain a first comparison result; a second determining module 76, configured to determine whether the first image data is consistent with the second image data according to the first comparison result, where the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data.
In an optional embodiment, the first obtaining module includes: a second obtaining module, configured to obtain a pixel component of the at least one identified pixel block; and a third determining module, configured to determine binary data corresponding to the at least one identified pixel block according to an average value of each of the pixel components in the at least one identified pixel block.
In the embodiment of the invention, at least one identification pixel block of the first image data is determined by adopting a mode of aligning frame picture identifications; obtaining binary data corresponding to the at least one identification pixel block; comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; according to the first comparison result, whether the first image data is consistent with the second image data or not is determined, and the purpose of effectively guaranteeing the accuracy of frame alignment after image transmission is achieved, so that the technical effect of reducing the phenomena of frame image identification errors, deviation or confusion is achieved, the working efficiency of a test system is effectively improved, and the technical problem that the frame images cannot be effectively aligned in the image transmission or acquisition process in the prior art is solved.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted that the first determining module 70, the first obtaining module 72, the comparing module 74 and the second determining module 76 correspond to steps S102 to S108 in embodiment 1, and the modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
It should be noted that, reference may be made to the relevant description in embodiment 1 for alternative or preferred embodiments of this embodiment, and details are not described here again.
The image data alignment apparatus may further include a processor and a memory, where the first determining module 70, the first obtaining module 72, the comparing module 74, the second determining module 76, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory, wherein one or more than one kernel can be arranged. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the application also provides a storage medium. Optionally, in this embodiment, the storage medium includes a stored program, and the device on which the storage medium is located is controlled to execute the alignment method for any image data when the program runs.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
The embodiment of the application also provides a processor. Optionally, in this embodiment, the processor is configured to run a program, where the program is run to execute any one of the image data alignment methods.
The embodiment of the application provides equipment, the equipment comprises a processor, a memory and a program which is stored on the memory and can run on the processor, and the following steps are realized when the processor executes the program: determining at least one identified block of pixels of the first image data; obtaining binary data corresponding to the at least one identification pixel block; comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; and determining whether the first image data is identical to the second image data according to the first comparison result, wherein the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data.
Optionally, when the processor executes a program, the processor may further obtain a pixel component of the at least one identified pixel block; and determining binary data corresponding to the at least one identification pixel block according to the average value of each pixel component in the at least one identification pixel block.
Optionally, when the processor executes a program, the processor may further compare the average value of each of the pixel components with a first predetermined average value to obtain a second comparison result; comparing the average value of each pixel component with a second preset average value to obtain a third comparison result; and if the second comparison result is that the average value of any one of the pixel components is greater than or equal to the first predetermined average value, and the third comparison result is that the average value of two other pixel components is less than or equal to the second predetermined average value, determining the binary data corresponding to the any one pixel component as the binary data corresponding to the at least one identification pixel block.
Optionally, when the processor executes a program, if the first comparison result indicates that the binary data corresponds to at least one identified pixel block in the second image data, it may be determined that the first image data is identical to the second image data; and if the first comparison result shows that the binary data is inconsistent with the binary data corresponding to at least one identification pixel block in the second image data, determining that the first image data is inconsistent with the second image data.
Optionally, when the processor executes a program, binary data corresponding to the first pixel block and binary data corresponding to the second pixel block may also be determined; comparing the binary data corresponding to the first pixel block with the binary data corresponding to the second pixel block to obtain a fourth comparison result; and determining whether the first image data is complete image data according to the fourth comparison result.
Alternatively, when the processor executes a program, if the fourth comparison result indicates that the binary data corresponding to the first pixel block matches the binary data corresponding to the second pixel block, the processor may determine that the first image data is the complete image data.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: determining at least one identified block of pixels of the first image data; obtaining binary data corresponding to the at least one identification pixel block; comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result; and determining whether the first image data is identical to the second image data according to the first comparison result, wherein the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data.
Optionally, when the computer program product executes a program, the computer program product may further obtain a pixel component of the at least one identified pixel block; and determining binary data corresponding to the at least one identification pixel block according to the average value of each pixel component in the at least one identification pixel block.
Optionally, when the computer program product executes a program, the average value of each of the pixel components may be compared with a first predetermined average value to obtain a second comparison result; comparing the average value of each pixel component with a second preset average value to obtain a third comparison result; and if the second comparison result is that the average value of any one of the pixel components is greater than or equal to the first predetermined average value, and the third comparison result is that the average value of two other pixel components is less than or equal to the second predetermined average value, determining the binary data corresponding to the any one pixel component as the binary data corresponding to the at least one identification pixel block.
Optionally, when the computer program product executes a program, if the binary data is identical to binary data corresponding to at least one identified pixel block in second image data as a result of the first comparison, it may be determined that the first image data is identical to the second image data; and if the first comparison result shows that the binary data is inconsistent with the binary data corresponding to at least one identification pixel block in the second image data, determining that the first image data is inconsistent with the second image data.
Optionally, when the computer program product executes a program, binary data corresponding to the first pixel block and binary data corresponding to the second pixel block may also be determined; comparing the binary data corresponding to the first pixel block with the binary data corresponding to the second pixel block to obtain a fourth comparison result; and determining whether the first image data is complete image data according to the fourth comparison result.
Alternatively, when the computer program product executes a program, if the fourth comparison result indicates that the binary data corresponding to the first pixel block matches the binary data corresponding to the second pixel block, the first image data may be determined to be the complete image data.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (7)

1. A method of aligning image data, comprising:
determining at least one identified block of pixels of the first image data;
acquiring binary data corresponding to the at least one identification pixel block;
comparing the binary data with binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result;
determining whether the first image data is consistent with the second image data according to the first comparison result, wherein the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data;
wherein obtaining binary data corresponding to the at least one identified pixel block comprises: acquiring pixel components of the at least one identified pixel block; determining binary data corresponding to the at least one identification pixel block according to the average value of each pixel component in the at least one identification pixel block; the pixel components are a pixel R component, a pixel G component and a pixel B component;
wherein the at least one identified block of pixels comprises: a first pixel block and a second pixel block, before determining whether the first image data and the second image data are consistent according to the first comparison result, the method further comprising: determining binary data corresponding to the first pixel block and binary data corresponding to the second pixel block; comparing the binary data corresponding to the first pixel block with the binary data corresponding to the second pixel block to obtain a fourth comparison result; determining whether the first image data is complete image data according to the fourth comparison result;
wherein the first pixel block and the second pixel block are respectively set at diagonal positions of the first image data.
2. The method of claim 1, wherein when the number of pixel components is three, determining binary data corresponding to the at least one identified pixel block based on an average value of each of the pixel components comprises:
comparing the average value of each pixel component with a first preset average value to obtain a second comparison result;
comparing the average value of each pixel component with a second preset average value to obtain a third comparison result;
and if the second comparison result is that the average value of any one pixel component is greater than or equal to the first preset average value, and the third comparison result is that the average values of the other two pixel components are less than or equal to the second preset average value, determining the binary data corresponding to any one pixel component as the binary data corresponding to the at least one identification pixel block.
3. The method of claim 1, wherein determining whether the first image data and the second image data are consistent according to the first comparison result comprises:
if the first comparison result is that the binary data is consistent with the binary data corresponding to at least one identification pixel block in the second image data, determining that the first image data is consistent with the second image data;
and if the first comparison result is that the binary data is inconsistent with the binary data corresponding to at least one identification pixel block in the second image data, determining that the first image data is inconsistent with the second image data.
4. The method of claim 1, wherein determining whether the first image data is complete image data based on the fourth comparison comprises:
and if the fourth comparison result is that the binary data corresponding to the first pixel block is consistent with the binary data corresponding to the second pixel block, determining that the first image data is the complete image data.
5. An apparatus for aligning image data, comprising:
a first determining module for determining at least one identified block of pixels of the first image data;
a first obtaining module, configured to obtain binary data corresponding to the at least one identified pixel block;
the comparison module is used for comparing the binary data with the binary data corresponding to at least one identification pixel block in the second image data to obtain a first comparison result;
a second determining module, configured to determine whether the first image data and the second image data are consistent according to the first comparison result, where the second image data is initial image data, and the first image data is image data obtained by encoding and decoding the initial image data;
wherein the first obtaining module is further configured to obtain pixel components of the at least one identified pixel block; determining binary data corresponding to the at least one identification pixel block according to the average value of each pixel component in the at least one identification pixel block; the pixel components are a pixel R component, a pixel G component and a pixel B component;
wherein the at least one identified block of pixels comprises: a first pixel block and a second pixel block, the apparatus being further configured to determine binary data corresponding to the first pixel block and binary data corresponding to the second pixel block before determining whether the first image data is consistent with the second image data according to the first comparison result; comparing the binary data corresponding to the first pixel block with the binary data corresponding to the second pixel block to obtain a fourth comparison result; determining whether the first image data is complete image data according to the fourth comparison result;
wherein the first pixel block and the second pixel block are respectively set at diagonal positions of the first image data.
6. The apparatus of claim 5, wherein the first obtaining module comprises:
a second obtaining module for obtaining pixel components of the at least one identified pixel block;
and the third determining module is used for determining binary data corresponding to the at least one identification pixel block according to the average value of each pixel component in the at least one identification pixel block.
7. A computer-readable storage medium characterized in that the storage medium includes a stored program, wherein the program executes the alignment method of image data according to any one of claims 1 to 4.
CN201810005289.4A 2018-01-03 2018-01-03 Image data alignment method and device Active CN108307191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810005289.4A CN108307191B (en) 2018-01-03 2018-01-03 Image data alignment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810005289.4A CN108307191B (en) 2018-01-03 2018-01-03 Image data alignment method and device

Publications (2)

Publication Number Publication Date
CN108307191A CN108307191A (en) 2018-07-20
CN108307191B true CN108307191B (en) 2020-03-27

Family

ID=62868147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810005289.4A Active CN108307191B (en) 2018-01-03 2018-01-03 Image data alignment method and device

Country Status (1)

Country Link
CN (1) CN108307191B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547768B (en) * 2018-11-05 2021-04-27 万维科研有限公司 Method for generating three-dimensional video accurate depth map
CN112714309A (en) * 2020-12-22 2021-04-27 北京百度网讯科技有限公司 Video quality evaluation method, device, apparatus, medium, and program product

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107499310A (en) * 2017-08-17 2017-12-22 广州大学 The track identified based on car networking and vehicle mounted road keeps householder method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100396106C (en) * 2004-12-13 2008-06-18 武汉大学 A method for testing the signal-to-noise ratio of a digital video codec system
CN100496133C (en) * 2004-12-13 2009-06-03 武汉大学 A method for testing audio and video codec system audio and video out of synchronization
CN100396107C (en) * 2004-12-13 2008-06-18 武汉大学 A method of labeling each frame image in a video sequence
GB0706496D0 (en) * 2007-04-03 2007-05-09 British Telecomm Method and system for video quality assessment
CN201467383U (en) * 2009-07-27 2010-05-12 北京汉邦高科数字技术有限公司 Video frequency frame rate tester
CN102932649A (en) * 2011-08-08 2013-02-13 华为软件技术有限公司 Video decoding quality detection method and device of set top box
CN105611291B (en) * 2015-12-31 2019-01-08 上海众源网络有限公司 The method and apparatus that mark information is added in the video frame and detects frame losing
CN107181938B (en) * 2016-03-11 2019-05-21 深圳超多维科技有限公司 Image display method and equipment, image analysis method, equipment and system
CN105930835B (en) * 2016-04-13 2019-04-02 无锡东游华旅网络科技有限公司 Enhanced image identifying system and method
CN107454387A (en) * 2017-08-28 2017-12-08 西安万像电子科技有限公司 Mass parameter acquisition methods and device for image coding and decoding Transmission system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107499310A (en) * 2017-08-17 2017-12-22 广州大学 The track identified based on car networking and vehicle mounted road keeps householder method and system

Also Published As

Publication number Publication date
CN108307191A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
CN108933935B (en) Detection method and device of video communication system, storage medium and computer equipment
CN104661021B (en) Quality evaluation method of video stream
CN107483934B (en) Coding and decoding method, device and system
CN108271024A (en) Image coding, coding/decoding method and device
EP2733939A1 (en) Encoding/decoding method and apparatus
US8873625B2 (en) Enhanced compression in representing non-frame-edge blocks of image frames
WO2008047865A1 (en) Image quality evaluation method, image quality evaluation system and image quality evaluation program
CN110636334B (en) Data transmission method and system
Lin et al. Novel chroma subsampling strategy based on mathematical optimization for compressing mosaic videos with arbitrary RGB color filter arrays in H. 264/AVC and HEVC
CN108307191B (en) Image data alignment method and device
CN102256130B (en) Method for marking video frame image sequence number based on inserted macro block brightness particular values
CN114640881A (en) Video frame alignment method and device, terminal equipment and computer readable storage medium
CN101409844B (en) Method and system for processing video signal
CN112884641A (en) Method, device and system for image display processing
CN111212288B (en) Video data encoding and decoding method and device, computer equipment and storage medium
CN112351278A (en) Video encoding method and device and video decoding method and device
CN100396106C (en) A method for testing the signal-to-noise ratio of a digital video codec system
CN107920279B (en) Method and apparatus for evaluating video quality
CN115941958A (en) Video coding method and device, electronic equipment and storage medium
US20030108104A1 (en) Video encoding and decoding method of mitigating data losses in an encoded video signal transmitted through a channel
Ong et al. Video quality monitoring of streamed videos
CN113596449B (en) Image processing method and device
CN102724494B (en) Method for embedding reversible watermark, extraction method thereof, device and system
US12113993B2 (en) Video processing method and device
CN117579896B (en) Unmanned aerial vehicle video transmission processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant