WO2024078106A1 - Image frame sequence processing method and apparatus, computer device, and storage medium - Google Patents

Image frame sequence processing method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2024078106A1
WO2024078106A1 PCT/CN2023/111458 CN2023111458W WO2024078106A1 WO 2024078106 A1 WO2024078106 A1 WO 2024078106A1 CN 2023111458 W CN2023111458 W CN 2023111458W WO 2024078106 A1 WO2024078106 A1 WO 2024078106A1
Authority
WO
WIPO (PCT)
Prior art keywords
differential
image frame
block
target
pixel point
Prior art date
Application number
PCT/CN2023/111458
Other languages
French (fr)
Chinese (zh)
Inventor
雷明
Original Assignee
深圳市Tcl云创科技有限公司
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 深圳市Tcl云创科技有限公司 filed Critical 深圳市Tcl云创科技有限公司
Publication of WO2024078106A1 publication Critical patent/WO2024078106A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Definitions

  • the present application relates to the field of artificial intelligence technology, and in particular to an image frame sequence processing method, apparatus, computer equipment, and computer-readable storage medium (storage medium for short).
  • the difference area between the image frames is usually found by comparing the previous and next image frames.
  • the image frame sequence only the image blocks corresponding to the difference area between the previous image frame and the next image frame can be saved to reduce the file size of the image frame sequence.
  • the image blocks of each differential area of the subsequent image frame need to be decoded one by one in order to render and overlay them on the previous image frame.
  • the decoding and rendering of the differential areas requires a lot of resources and time, resulting in a significant reduction in drawing efficiency.
  • the present application provides a method for processing an image frame sequence, the method comprising:
  • a target difference block is generated based on the first difference block and the second difference block; wherein the second difference block is a difference block in the target image frame except the first difference block;
  • the image frame sequence is saved based on the target differential block.
  • the step of updating the first differential block in the target image frame based on the target differential pixel point of the current differential step includes:
  • the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold is determined as the first differential block, and the first differential block is updated based on the target differential pixel point of the current differential step.
  • the method further includes:
  • a first differential block is generated based on the target differential pixel point.
  • the method further includes:
  • the target differential block is determined as a new first differential block, and if the distance between the first differential block and the second differential block is less than a preset distance threshold, the target differential block is generated based on the first differential block and the second differential block. step.
  • the step of acquiring differential pixels between a target image frame and a reference image frame in a differential step order includes:
  • the pixel point of the current coordinate point is determined as a differential pixel point.
  • the step of acquiring differential pixels between a target image frame and a reference image frame in a differential step order includes:
  • first transparency parameter and the second transparency parameter are both greater than the preset transparency parameter, obtaining a first RGB parameter of the target image frame at the current coordinate point and a second RGB parameter of the reference image frame at the current pixel point;
  • the pixel point at the current coordinate point is determined as a differential pixel point.
  • the step before the step of acquiring the target image frame in the image frame sequence and the reference image frame corresponding to the target image frame, the step further includes:
  • the maximum value of the image width and the image height is determined, and a preset distance threshold is determined based on the maximum value.
  • the step of saving the image frame sequence based on the target difference block includes:
  • the image frame sequence is saved based on the differential image information and the reference image frame.
  • the present application provides an image frame sequence processing device, the device comprising:
  • An image frame acquisition module used to acquire a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame
  • a differential pixel acquisition module used to acquire differential pixel points between a target image frame and a reference image frame in a differential step order, and update a first differential block in the target image frame based on a target differential pixel point of a current differential step;
  • a difference block merging module configured to generate a target difference block based on the first difference block and the second difference block when the distance value between the first difference block and the second difference block is less than a preset distance threshold; wherein the second difference block is a difference block in the target image frame except the first difference block;
  • the frame sequence saving module is used to save the image frame sequence based on the target differential block when the target differential pixel point of the current differential step is the last differential pixel point.
  • the present application further provides a computer device, the computer device comprising:
  • processors one or more processors
  • One or more applications wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the image frame sequence processing method.
  • the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the image frame sequence processing method.
  • the above-mentioned image frame sequence processing method, device, computer equipment and storage medium obtain a target image frame in the image frame sequence and a reference image frame corresponding to the target image frame; obtain the differential pixel points between the target image frame and the reference image frame in a differential step order, and update the first differential area in the target image frame based on the target differential pixel point of the current differential step.
  • the method updates the first differential block based on the target differential pixel point of the current differential step while calculating the differential pixel point between the target image frame and the reference image frame, and simultaneously calculates the distance between the first differential block updated by the target differential pixel point and the other second differential blocks.
  • the first differential block is merged with the second differential block in real time to reduce the time consumption of the differential block in the target image frame, and effectively control the number of differential blocks in the target image frame, so as to avoid the consumption of resources and time for decoding and rendering of the differential area due to too many differential blocks in the target image frame, and improve the efficiency of subsequent drawing of the target image frame.
  • FIG1A is a schematic diagram of a differential block in an image frame in the prior art
  • FIG1B is a schematic diagram of drawing an image frame based on differential blocks in the prior art
  • FIG2 is a schematic diagram of a flow chart of an image frame sequence processing method in an embodiment of the present application.
  • FIG3 is a schematic diagram of a differential block in a target image frame in an embodiment of the present application.
  • FIG4 is another schematic flow chart of the method for processing an image frame sequence in an embodiment of the present application.
  • FIG5 is a schematic diagram of a differential block in an image frame in an embodiment of the present application.
  • FIG6 is a schematic diagram of drawing an image frame based on differential blocks in an embodiment of the present application.
  • FIG7 is a schematic diagram of the structure of an image frame sequence processing device in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of the structure of a computer device in an embodiment of the present application.
  • first and second are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of “plurality” is two or more, unless otherwise clearly and specifically defined.
  • the difference area between the image frames is found by comparing the previous and next image frames.
  • image frame 120 is the (t+1)-th image frame in the image frame sequence.
  • the image frame sequence is an animation frame sequence similar to a starlight twinkling effect
  • the image frame sequence is saved based on the differential regions, the file size of the image frame sequence will increase instead.
  • the image blocks corresponding to the differential areas need to be decoded one by one, and drawn one by one and overlaid on image frame 110.
  • a large number of decoding commands and drawing commands need to be called, as shown in 1B, resulting in a significant reduction in drawing efficiency.
  • an embodiment of the present application provides an image frame sequence processing method, which updates a first differential block based on the target differential pixel of the current differential step while calculating the differential pixel between the target differential pixel, and synchronously calculates the distance between the first differential block updated by the target differential pixel and the other second differential blocks.
  • the first differential block is merged with the second differential block in real time to reduce the time consumption of the differential block in the target image frame, and effectively control the number of differential blocks in the target image frame to avoid too many differential blocks in the target image frame, which leads to the consumption of resources and time for decoding and rendering of the differential area, thereby improving the efficiency of subsequent drawing of the target image frame.
  • the image frame sequence processing method provided in the embodiment of the present application can be run on a terminal device or a server.
  • the terminal device can be a local terminal device.
  • the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
  • an embodiment of the present application provides a method for processing an image frame sequence, which is mainly illustrated by applying the method to a server.
  • the method includes steps S210 to S230, which are specifically as follows:
  • Step S210 obtaining a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame.
  • the image frame sequence may specifically be video data, animation data, etc., and the image frame sequence includes multiple image frames that are continuous in time sequence.
  • the target image frame refers to an image frame to be processed in the image frame sequence
  • the reference image frame is an image frame that is the previous frame in time sequence of the target image frame and is adjacent to the target image frame in time sequence.
  • the target image frame may be an image frame at the t-th moment in the target frame sequence
  • the reference image frame is an image frame at the (t-1)th moment in the target frame sequence.
  • each image frame is determined as a target image frame in turn according to the order of the image frames in the image frame sequence, and a reference image frame corresponding to the target image frame is obtained.
  • Step S220 obtaining differential pixels between the target image frame and the reference image frame in a differential step order, and updating a first differential block in the target image frame based on the target differential pixel of the current differential step.
  • the terminal performs differential processing on the pixel point at the same coordinate point on the target image frame and the reference image frame to determine whether the pixel point at the coordinate point is a differential pixel point;
  • the differential step order can be determined according to the arrangement order of the pixels in the target image frame (or reference image frame).
  • Figure 3 shows a schematic diagram of a target image frame including 6 rows and 6 columns of pixels.
  • the pixel point F can be used as the starting coordinate point to take points row by row, and a coordinate point is taken as the target coordinate point of the current differential step in each differential step.
  • the pixel data of the target image frame and the reference image frame at the target coordinate point are compared to determine whether the pixel point corresponding to the target coordinate point is a differential pixel point; for example, the current differential step is to perform differential processing on the pixel point A in the target image frame and the pixel point in the first row and fifth column in the reference image frame to determine whether the pixel point on the pixel point in the first row and fifth column is a differential pixel point, and the next differential step is to perform differential processing on the pixel point in the first row and sixth column in the target image frame (i.e., pixel point B) and the pixel point in the first row and sixth column in the reference image frame.
  • the pixel points in the sixth column of a row are subjected to differential processing to determine whether the pixel points in the sixth column of the first row are differential pixels, and so on.
  • the difference block refers to a rectangular area where there are difference pixels in the target image frame compared to the reference image frame; continuing to take Figure 3 as an example, the pixels A, B, C and D in the target image frame of Figure 3 are difference pixels, and a difference block 310 is formed in the target image frame based on the pixels A, B and C, and a difference block 320 is formed in the target image frame based on the pixel D. It can be understood that, compared to the reference image frame, the target image frame has one or more difference blocks; wherein the first difference block refers to the difference block to be included in the target difference pixel obtained by the current difference step.
  • the pixel point corresponding to the coordinate point processed by the current differential step is a differential pixel point
  • the pixel point corresponding to the coordinate point can be determined as the target differential pixel point
  • the first differential block corresponding to the target differential pixel point can be determined in the existing historical differential blocks in the target image frame, or a new differential block can be generated based on the coordinate position of the differential pixel point to obtain the first differential block.
  • the coordinate position of the differential pixel point and the area position of the first differential block can be compared to determine whether the coordinate position of the differential pixel point is within the area range of the first differential block; if the coordinate position of the differential pixel point is within the area range of the first differential block, the area range of the first differential block remains unchanged after the differential pixel point is included in the first differential block; if the coordinate position of the differential pixel point is outside the area range of the first differential block, the area range of the first differential block changes after the differential pixel point is included in the first differential block. At this time, the area range of the first differential block is updated based on the coordinate position of the target differential pixel point.
  • the pixel point D in FIG. 3 is the target differential pixel point obtained in the current differential step, and a new differential block 320 can be generated based on the coordinate position of the pixel point D to obtain a first differential block; in the next differential step, it is determined whether the pixel point E is a differential pixel point.
  • the first differential block can be determined as the differential area 320 based on the pixel point E, and the pixel point E is included in the differential area 320 to update the area range of the differential area 320.
  • the area range of the differential area 320 changes, and the changed area range is shown in the differential area 320'.
  • Step S230 if the distance between the first difference block and the second difference block is less than a preset distance threshold, a target difference block is generated based on the first difference block and the second difference block; wherein the second difference block is a difference block in the target image frame except the first difference block.
  • the target image frame has one or more difference blocks; after obtaining the updated first difference block, the distance value between the first difference block and the second difference block in the target image frame other than the first difference block can be calculated.
  • the center coordinates of the first difference block and the center coordinates of the second difference block can be obtained, and based on the distance between the center coordinates of the first difference block and the center coordinates of the second difference block, the distance value between the first difference block and the second difference block is determined; or the shortest distance value between the boundary of the first difference block and the boundary of the second difference block is obtained, and the shortest distance value is determined as the distance value between the first difference block and the second difference block.
  • the distance value is compared with the preset distance threshold. If the distance value between the first difference block and a second difference block is less than the preset distance threshold, the first difference block and the second difference block can be merged to obtain the target difference block.
  • the method further includes: determining the target difference block as a new first difference block, and continuing to execute the step of generating the target difference block based on the first difference block and the second difference block if the distance value between the first difference block and the second difference block is less than a preset distance threshold.
  • the area range of the target difference block obtained by merging the first difference block and the second difference block must change, that is, the area range of the target difference block is expanded.
  • the target difference block is determined as the new first difference block.
  • the method further comprises: calculating a distance value between the first difference block and the second difference blocks other than the first difference block in the target image frame, and then determining, among the other second difference blocks, a second difference block whose distance value with the first difference block is less than a preset distance threshold, and merging the first difference block with the second difference block again to update the first difference block again, until the distance values between the first difference block and the other difference blocks other than the first difference block in the target image frame are all greater than or equal to the preset distance threshold.
  • the differential pixels of the next differential step can be obtained according to the differential step order, and the above steps can be repeated, that is, the differential block in the target image frame is updated again based on the differential pixel points of the next differential step, and if the distance value between the differential block updated by the differential pixel points corresponding to the next differential step and other differential blocks in the target image frame is less than the preset distance threshold, the differential block updated by the differential pixel points corresponding to the next differential step and the differential block are used to generate a target differential block, until the distance values between any two differential blocks in the target image frame are greater than or equal to the preset distance threshold.
  • Step S240 when the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block.
  • the target difference block is the change area between the target image frame and the reference image frame.
  • the image frame sequence can be saved by saving the target difference block and the reference image frame.
  • a target image frame in the image frame sequence and a reference image frame corresponding to the target image frame are obtained; differential pixel points between the target image frame and the reference image frame are obtained in a differential step order, and a first differential block in the target image frame is updated based on the target differential pixel point of the current differential step; if the distance value between the first differential block and the second differential block is less than a preset distance threshold, a target differential block is generated based on the first differential block and the second differential block; wherein the second differential block is a differential block in the target image frame except the first differential block; when the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block.
  • the first differential block While calculating the differential pixel points between the target image frame and the reference image frame, the first differential block is updated based on the target differential pixel points of the current differential step, and the distance between the first differential block updated by the target differential pixel points and other second differential blocks is synchronously calculated. If the distance between the first differential block and the other second differential block is less than a preset distance threshold, the first differential block is merged with the second differential block in real time to reduce the time consumption of the differential block in the target image frame, and at the same time effectively control the number of differential blocks in the target image frame, avoid too many differential blocks in the target image frame, which leads to the consumption of resources and time for decoding and rendering of the differential area, and improve the efficiency of subsequent drawing of the target image frame.
  • the step of updating the first differential block in the target image frame based on the target differential pixel point of the current differential step includes: obtaining the historical differential blocks in the target image frame; if the target differential pixel point is not in any differential block in the historical differential blocks, determining the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold as the first differential block, and updating the first differential block based on the target differential pixel point of the current differential step.
  • the historical differential block refers to the existing differential block in the target image frame.
  • the coordinate position of the target differential pixel point corresponding to the current differential step and the regional position of the historical differential block can be compared to determine whether the target differential pixel point is in a differential block in the historical differential block. If the target differential pixel point is in a differential block in the historical differential block, the differential block can be determined as the first differential block corresponding to the target differential pixel point of the current differential step; it can be understood that since the target differential block is in the first differential block, the first differential area is updated based on the target differential block, and the regional range of the first differential block remains unchanged.
  • the pixel point G in FIG. 3 is the target differential pixel point obtained by the current differential step.
  • the coordinate position of the pixel point G corresponding to the current differential step and the regional position of the differential block 310 can be compared to determine whether the pixel point G is in the differential block 310. Since the pixel point G is in the differential block 310, the pixel point G is divided into the differential block 310, and the differential block 310 remains unchanged.
  • the target differential can be calculated.
  • the distance value between the pixel point and each historical differential block is determined, and then based on the distance value between the target differential pixel point and each historical differential block, the differential block corresponding to the target differential pixel point is determined to obtain the first differential block.
  • the differential block is determined as the first differential block corresponding to the target differential pixel point, and then the first differential block is updated based on the target differential pixel point; it can be understood that since the target differential block is in the first differential block, the first differential area is updated based on the target differential block, and the area range of the first differential block becomes larger.
  • the step of obtaining the historical difference blocks in the target image frame it also includes: if the target differential pixel point is not in any difference block in the historical difference blocks, and the distance value between any difference block in the historical difference blocks and the target differential pixel point is greater than or equal to a preset distance threshold, a first difference block is generated based on the target differential pixel point.
  • the coordinate position of the target difference pixel point is obtained, and a new difference block is generated based on the coordinate position, and the difference block is used as the first difference block corresponding to the target difference pixel point.
  • the differential block updated by the target differential pixel point is determined based on the distance value between the target differential pixel point and each historical differential block, so that while calculating the differential pixel point between the target image frame and the reference image frame, the differential block in the target image frame is updated in real time based on the target differential pixel point of the current differential step, so as to facilitate the subsequent distance-based merging of the differential blocks in the target image frame, so as to reduce the time consumption of the differential blocks in the target image frame.
  • the step of acquiring differential pixel points between a target image frame and a reference image frame in a differential step order includes: acquiring first pixel data of the target image frame at a current coordinate point and second pixel data of the reference image frame at the current coordinate point in a differential step order; if the first pixel data is different from the second pixel data, determining the pixel point of the current coordinate point as a differential pixel point.
  • pixel data can refer to the color value of a pixel point corresponding to a certain coordinate point; specifically, pixel data can refer to a value in a color space, for example, it can be a value corresponding to an RGB color space, i.e., an RGB color value, or it can be a value in a YUV color space, i.e., a YUV color value.
  • the current target coordinate point refers to the target coordinate point processed in the current difference step.
  • the differential pixel points of the target image frame compared to the reference image frame are obtained based on the pixel data at the same coordinate point of the target image frame and the reference image frame.
  • the target coordinate point processed by the current differential step is determined, and the first pixel data at the current coordinate point is obtained from the target image frame, and the second pixel data at the current coordinate point is obtained from the reference image frame; then, the pixel data at the target coordinate point of the target image frame and the reference image frame are compared, and if the first pixel data and the second pixel data at the target coordinate point are not equal, the pixel point corresponding to the target coordinate point can be determined as a differential pixel.
  • the pixel point corresponding to the target coordinate point is a non-differential pixel point.
  • the coordinate point processed by the next differential step can be determined, and the pixel data of the target image frame and the reference image frame at the new coordinate point can be compared to determine whether the pixel point corresponding to the next coordinate point is a differential pixel point.
  • the pixel data generally includes a transparency parameter and an RGB parameter. Therefore, in one embodiment, the step of obtaining the differential pixel points between the target image frame and the reference image frame in a differential step order includes: obtaining the first transparency parameter of the target image frame at the current coordinate point and the first transparency parameter of the reference image frame at the current coordinate point in the differential step order.
  • a second transparency parameter of the reference image frame if one of the first transparency parameter and the second transparency parameter is greater than the preset transparency parameter and the other is less than or equal to the preset transparency parameter, the pixel point at the current coordinate point is determined as a differential pixel point; if both the first transparency parameter and the second transparency parameter are greater than the preset transparency parameter, the first RGB parameter of the target image frame at the current coordinate point and the second RGB parameter of the reference image frame at the current pixel point are obtained; if the first RGB parameter is different from the second RGB parameter, the pixel point at the current coordinate point is determined as a differential pixel point.
  • the pixel data may refer to the RGB-A value of the pixel corresponding to a certain coordinate point, that is, the pixel data includes the RGB parameters on the RGB channel and the transparency parameters on the alpha channel. It can be understood that when the transparency parameter of the alpha channel is 0%, the pixel corresponding to the target coordinate point is a completely transparent pixel, and generally displays white regardless of the value of the RGB parameter on the RGB channel; when the transparency parameter of the alpha channel is 100%, the pixel corresponding to the target coordinate point is an opaque pixel, and the pixel corresponding to the target coordinate point displays the color represented by the RGB parameter.
  • the target coordinate point processed by the current difference step is determined, and a first transparency parameter at the current coordinate point is obtained from the target image frame, and a second transparency parameter at the current coordinate point is obtained from the reference image frame; then, based on the first transparency parameter and the second transparency parameter, the transparency at the corresponding target coordinate point is determined, which may specifically include the following three situations:
  • Case 1 When the first transparency parameter and the second transparency parameter are both less than or equal to the preset transparency parameter, at this time, the pixel points at the target coordinate point in both the target image frame and the reference image frame are transparent pixel points, and it can be considered that the pixel points at the target coordinate point in both the target image frame and the reference image frame display the same color, and the pixel points at the target coordinate point are non-differential pixel points;
  • Case 2 When one of the first transparency parameter and the second transparency parameter is greater than the preset transparency parameter and the other is less than or equal to the preset transparency parameter, at this time, among the pixels at the target coordinate point of the target image frame and the reference image frame, one is a transparent pixel point and the other is an opaque pixel point. At this time, the pixel point corresponding to the target coordinate point can be determined as a differential pixel point;
  • the preset transparency parameter is used to determine whether the pixel at the current coordinate point is a transparent pixel.
  • the pixel at the current coordinate point can be considered to be a transparent pixel.
  • the preset transparency parameter can take a value of 0; in addition, considering the interference of noise, the preset transparency parameter can also be set to a smaller value, such as 5.
  • the step of obtaining the target image frame in the image frame sequence and the reference image frame corresponding to the target image frame it also includes: obtaining the image width and image height of the image frame sequence; determining the maximum value of the image width and the image height, and determining a preset distance threshold based on the maximum value.
  • the image width and image height are used to identify the image size of the image frame in the image frame sequence. After obtaining the image width and image height in the image frame sequence, the image width and image height are compared, the maximum value of the two values is taken, and then the preset distance threshold is calculated based on the maximum value.
  • the preset distance threshold can be a value obtained by dividing the maximum value of the image width and the image height by n, where n is an integer whose value range is [5,10].
  • the preset distance threshold is set based on the image width and image height of the image frame sequence to avoid the preset distance threshold being too large, resulting in the merging of the various difference blocks in the target image frame into one difference block. It also avoids the situation where the preset distance threshold is too small and the difference blocks in the target image frame cannot be merged, or there are too many difference blocks.
  • the step of saving the image frame sequence based on the target difference block includes: generating difference image information according to the region position and region size of the target difference block in the target image frame; and saving the image frame sequence based on the difference image information and the reference image frame.
  • the differential area in the target image frame is also obtained.
  • the area position and area size of the target differential block in the target image frame can be obtained to generate differential image information; then, based on the differential image information and the reference image frame, the image frame sequence is saved.
  • the image information of the differential area when rendering the target image frame, the image information of the differential area can be obtained, and the rendering position of the image information can be determined based on the area position and area size of the differential area, and then the image information of the differential area can be rendered at the corresponding rendering position of the reference image frame to obtain the target image frame.
  • the image frame sequence processing method is further described below in conjunction with a specific application scenario. Specifically, referring to FIG4 , the image frame sequence processing method includes:
  • Step S401 obtaining a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame.
  • Step S402 obtaining differential pixel points between the target image frame and the reference image frame according to the differential step order.
  • Step S403 obtaining the historical difference block in the target image frame.
  • Step S404 determine whether the target differential pixel point of the current differential step is in a differential block in the historical differential blocks; if so, jump to step S402; if not, jump to step S405.
  • Step S405 obtain the distance value between any differential block in the historical differential block and the target differential pixel point; if the distance value between any differential block in the historical differential block and the target differential pixel point is greater than or equal to the preset distance threshold, jump to step 406; if there is a distance value between the differential block and the target differential pixel point in the historical differential block that is less than the preset distance threshold, jump to 407.
  • Step S406 generating a new differential block based on the target differential pixel point, and jumping to step S402.
  • Step S407 determine the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold as the first differential block, and update the first differential block based on the target differential pixel point of the current differential step.
  • Step S408 determining whether the distance between the first differential block and the second differential block is less than a preset distance value; if so, jumping to step S409; otherwise, jumping to step S402.
  • the second difference block is a difference block in the target image frame except the first difference block.
  • Step S409 generating a target differential block based on the first differential block and the second differential block.
  • Step S410 determine the target differential block as a new first differential block, and jump to execute step S480.
  • the image frame sequence is saved based on the target differential block.
  • the image frame 110 and the image frame 120 shown in FIG. 1 are subjected to differential processing based on the above-mentioned image frame sequence processing method, and the obtained differential blocks are shown in FIG. 5 , which effectively controls the number of blocks.
  • FIG. 5 Another benefit brought by the image frame sequence processing method is that when drawing the image frame 120, the number of differential blocks is reduced, and the decoding instructions and drawing instructions called during drawing are also greatly reduced, as shown in FIG. 6 , which greatly improves the drawing efficiency.
  • an image frame sequence processing device is further provided in the embodiment of the present application.
  • the image frame sequence processing device 700 includes:
  • An image frame acquisition module 710 is used to acquire a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame;
  • the differential pixel acquisition module 720 is used to acquire the difference between the target image frame and the reference image frame in a differential step order. Sub-pixel point, updating the first differential block in the target image frame based on the target differential pixel point of the current differential step;
  • the difference block merging module 730 is used to generate a target difference block based on the first difference block and the second difference block when the distance value between the first difference block and the second difference block is less than a preset distance threshold; wherein the second difference block is a difference block in the target image frame except the first difference block;
  • the frame sequence saving module 740 is used to save the image frame sequence based on the target differential block when the target differential pixel point of the current differential step is the last differential pixel point.
  • the differential pixel acquisition module is specifically used to acquire the historical differential blocks in the target image frame; if the target differential pixel point is not in any of the historical differential blocks, the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold is determined as the first differential block, and the first differential block is updated based on the target differential pixel point of the current differential step.
  • the differential pixel acquisition module is specifically used to generate a first differential block based on the target differential pixel point if the target differential pixel point is not in any differential block in the historical differential blocks, and the distance value between any differential block in the historical differential blocks and the target differential pixel point is greater than or equal to a preset distance threshold.
  • the difference block merging module is further configured to determine the target difference block as a new first difference block, and continue to execute the step of generating the target difference block based on the first difference block and the second difference block if the distance value between the first difference block and the second difference block is less than a preset distance threshold.
  • a differential pixel acquisition module is used to acquire first pixel data of a target image frame at a current coordinate point and second pixel data of a reference image frame at the current coordinate point in a differential step order; if the first pixel data is different from the second pixel data, the pixel point of the current coordinate point is determined as a differential pixel point.
  • a differential pixel acquisition module is used to acquire a first transparency parameter of a target image frame at a current coordinate point and a second transparency parameter of a reference image frame at the current coordinate point in a differential step order; if one of the first transparency parameter and the second transparency parameter is greater than a preset transparency parameter and the other is less than or equal to the preset transparency parameter, the pixel point at the current coordinate point is determined as a differential pixel point; if both the first transparency parameter and the second transparency parameter are greater than the preset transparency parameter, the first RGB parameter of the target image frame at the current coordinate point and the second RGB parameter of the reference image frame at the current pixel point are acquired; if the first RGB parameter is different from the second RGB parameter, the pixel point at the current coordinate point is determined as a differential pixel point.
  • the image frame acquisition module is specifically used to obtain the image width and image height of the image frame sequence; determine the maximum value of the image width and the image height, and determine a preset distance threshold based on the maximum value.
  • a frame sequence saving module is used to generate differential image information according to the regional position and regional size of the target differential block in the target image frame; and save the image frame sequence based on the differential image information and the reference image frame.
  • Each module in the above-mentioned image frame sequence processing device can be implemented in whole or in part by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • the image frame sequence processing device 700 can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in FIG8.
  • the memory of the computer device can store various program modules constituting the image frame sequence processing device 700, such as the image frame acquisition module 710, the differential pixel acquisition module 720, the differential block merging 730, and the frame sequence saving module 740 shown in FIG7.
  • the computer program composed of various program modules enables the processor to execute the steps of the image frame sequence processing method of various embodiments of the present application described in this specification.
  • the computer device shown in FIG8 can be used in the image frame sequence processing device 700 shown in FIG7
  • the image frame acquisition module 710 performs step S210.
  • the computer device can perform step S220 through the differential pixel acquisition module 720.
  • the computer device can perform step S230 through the differential block merging 730.
  • the computer device can perform step S240 through the differential block merging 740.
  • the computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external computer device through a network connection.
  • an image frame sequence processing method is implemented.
  • FIG. 8 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
  • a computer device comprising one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor in the steps of the above-mentioned image frame sequence processing method.
  • the steps of the image frame sequence processing method here may be the steps of the image frame sequence processing method in each of the above-mentioned embodiments.
  • a computer-readable storage medium which stores a computer program, and the computer program is loaded by a processor, so that the processor executes the steps of the above-mentioned image frame sequence processing method.
  • the steps of the image frame sequence processing method here can be the steps of the image frame sequence processing method in each of the above-mentioned embodiments.
  • Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present application provides an image frame sequence processing method and apparatus, a computer device, and a storage medium. The method comprises: updating a first differential block on the basis of a target differential pixel while calculating a differential pixel between a target image frame and a reference image frame, calculating the distance between the updated first differential block and another second differential block, and merging the first differential block and the second differential block in real time if the distance is less than a preset distance threshold. Thus, the efficiency with which the target image frame is subsequently rendered is increased.

Description

图像帧序列处理方法、装置、计算机设备以及存储介质Image frame sequence processing method, device, computer equipment and storage medium
本申请要求于2022年10月10日提交中国专利局、申请号为202211237073.3、申请名称为“图像帧序列处理方法、装置、计算机设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the Chinese Patent Office on October 10, 2022, with application number 202211237073.3 and application name “Image frame sequence processing method, device, computer equipment and storage medium”, all contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请涉及人工智能技术领域,具体涉及一种图像帧序列处理方法、装置、计算机设备以及计算机可读存储介质(简称存储介质)。The present application relates to the field of artificial intelligence technology, and in particular to an image frame sequence processing method, apparatus, computer equipment, and computer-readable storage medium (storage medium for short).
背景技术Background technique
现有针对图像帧序列处理的保存技术中,通常是对比前后两帧图像帧找出图像帧间的差分区域,在保存图像帧序列时可以仅保存前一帧图像帧以及后一帧图像帧的差分区域对应图像块,以降低图像帧序列的文件大小。In the existing storage technology for image frame sequence processing, the difference area between the image frames is usually found by comparing the previous and next image frames. When saving the image frame sequence, only the image blocks corresponding to the difference area between the previous image frame and the next image frame can be saved to reduce the file size of the image frame sequence.
但是,在图像帧序列播放的时候,需要对后一帧图像帧的各个差分区域的图像块进行一一解码,以渲染覆盖到前一帧图像帧上,当差分区域的数量较大时,差分区域的解码、渲染需要消耗大量资源、时间,导致绘制效率大幅降低。However, when the image frame sequence is played, the image blocks of each differential area of the subsequent image frame need to be decoded one by one in order to render and overlay them on the previous image frame. When the number of differential areas is large, the decoding and rendering of the differential areas requires a lot of resources and time, resulting in a significant reduction in drawing efficiency.
发明内容Summary of the invention
基于此,有必要针对上述技术问题,提供一种图像帧序列处理方法、装置、计算机设备以及存储介质,用以提高目标对象的尺寸识别准确率。Based on this, it is necessary to provide an image frame sequence processing method, device, computer equipment and storage medium to improve the size recognition accuracy of the target object in response to the above technical problems.
第一方面,本申请提供一种图像帧序列处理方法,该方法包括:In a first aspect, the present application provides a method for processing an image frame sequence, the method comprising:
获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧;Acquire a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame;
按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区块;Acquire differential pixels between a target image frame and a reference image frame in a differential step order, and update a first differential block in the target image frame based on a target differential pixel of a current differential step;
若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块;其中,第二差分区块为目标图像帧中的除第一差分区块以外的差分区块;If the distance value between the first difference block and the second difference block is less than a preset distance threshold, a target difference block is generated based on the first difference block and the second difference block; wherein the second difference block is a difference block in the target image frame except the first difference block;
在当前差分步的目标差分像素点为最后一个差分像素点时,基于目标差分区块,对图像帧序列进行保存。When the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block.
在本申请一些实施例中,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区块的步骤,包括:In some embodiments of the present application, the step of updating the first differential block in the target image frame based on the target differential pixel point of the current differential step includes:
获取目标图像帧中的历史差分区块;Obtaining historical difference blocks in a target image frame;
若目标差分像素点不在历史差分区块中的任意一个差分区块内,将距离目标差分像素点值小于预设距离阈值的历史差分区块确定为第一差分区块,并基于当前差分步的目标差分像素点更新第一差分区块。If the target differential pixel point is not in any differential block in the historical differential blocks, the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold is determined as the first differential block, and the first differential block is updated based on the target differential pixel point of the current differential step.
在本申请一些实施例中,获取目标图像帧中的历史差分区块的步骤之后,还包括:In some embodiments of the present application, after the step of obtaining the historical difference block in the target image frame, the method further includes:
若目标差分像素点不在历史差分区块中的任意一个差分区块内,且历史差分区块中任意差分区块与目标差分像素点间的距离值均大于或等于预设距离阈值,基于目标差分像素点生成第一差分区块。If the target differential pixel point is not in any differential block in the historical differential blocks, and the distance value between any differential block in the historical differential blocks and the target differential pixel point is greater than or equal to the preset distance threshold, a first differential block is generated based on the target differential pixel point.
在本申请一些实施例中,基于第一差分区块以及第二差分区块生成目标差分区块的步骤之后,还包括:In some embodiments of the present application, after the step of generating a target differential block based on the first differential block and the second differential block, the method further includes:
将目标差分区块确定为新的第一差分区块,继续执行若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块的 步骤。The target differential block is determined as a new first differential block, and if the distance between the first differential block and the second differential block is less than a preset distance threshold, the target differential block is generated based on the first differential block and the second differential block. step.
在本申请一些实施例中,按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点的步骤,包括:In some embodiments of the present application, the step of acquiring differential pixels between a target image frame and a reference image frame in a differential step order includes:
按照差分步次序获取目标图像帧在当前坐标点上的第一像素数据以及参考图像帧在当前坐标点上的第二像素数据;Acquire the first pixel data of the target image frame at the current coordinate point and the second pixel data of the reference image frame at the current coordinate point in a differential step order;
若第一像素数据与第二像素数据不相同,则将当前坐标点的像素点确定为差分像素点。If the first pixel data is different from the second pixel data, the pixel point of the current coordinate point is determined as a differential pixel point.
在本申请一些实施例中,按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点的步骤,包括:In some embodiments of the present application, the step of acquiring differential pixels between a target image frame and a reference image frame in a differential step order includes:
按照差分步次序获取目标图像帧在当前坐标点上的第一透明度参数以及参考图像帧在当前坐标点上的第二透明度参数;Acquire a first transparency parameter of the target image frame at the current coordinate point and a second transparency parameter of the reference image frame at the current coordinate point in a differential step order;
若第一透明度参数与第二透明度参数中的一个大于预设透明度参数且另一个小于或等于预设透明度参数,将当前坐标点的像素点确定为差分像素点;If one of the first transparency parameter and the second transparency parameter is greater than the preset transparency parameter and the other is less than or equal to the preset transparency parameter, determining the pixel point of the current coordinate point as the differential pixel point;
若第一透明度参数与第二透明度参数均大于预设透明度参数,则获取目标图像帧在当前坐标点上的第一RGB参数以及参考图像帧在当前像素点上的第二RGB参数;If the first transparency parameter and the second transparency parameter are both greater than the preset transparency parameter, obtaining a first RGB parameter of the target image frame at the current coordinate point and a second RGB parameter of the reference image frame at the current pixel point;
若第一RGB参数与第二RGB参数不相同,则将当前坐标点的像素点确定为差分像素点。If the first RGB parameter is different from the second RGB parameter, the pixel point at the current coordinate point is determined as a differential pixel point.
在本申请一些实施例中,获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧的步骤之前,还包括:In some embodiments of the present application, before the step of acquiring the target image frame in the image frame sequence and the reference image frame corresponding to the target image frame, the step further includes:
获取图像帧序列的图像宽度以及图像高度;Get the image width and image height of the image frame sequence;
确定图像宽度与图像高度中的最大值,基于最大值确定预设距离阈值。The maximum value of the image width and the image height is determined, and a preset distance threshold is determined based on the maximum value.
在本申请一些实施例中,基于目标差分区块,对图像帧序列进行保存的步骤,包括:In some embodiments of the present application, the step of saving the image frame sequence based on the target difference block includes:
根据目标差分区块在目标图像帧的区域位置以及区域大小,生成差分图像信息;Generate differential image information according to the region position and region size of the target differential block in the target image frame;
基于差分图像信息以及参考图像帧,对图像帧序列进行保存。The image frame sequence is saved based on the differential image information and the reference image frame.
第二方面,本申请提供一种图像帧序列处理装置,该装置包括:In a second aspect, the present application provides an image frame sequence processing device, the device comprising:
图像帧获取模块,用于获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧;An image frame acquisition module, used to acquire a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame;
差分像素获取模块,用于按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区块;A differential pixel acquisition module, used to acquire differential pixel points between a target image frame and a reference image frame in a differential step order, and update a first differential block in the target image frame based on a target differential pixel point of a current differential step;
差分区块合并模块,用于在第一差分区块与第二差分区块间的距离值小于预设距离阈值时,基于第一差分区块以及第二差分区块生成目标差分区块;其中,第二差分区块为目标图像帧中的除第一差分区块以外的差分区块;A difference block merging module, configured to generate a target difference block based on the first difference block and the second difference block when the distance value between the first difference block and the second difference block is less than a preset distance threshold; wherein the second difference block is a difference block in the target image frame except the first difference block;
帧序列保存模块,用于在当前差分步的目标差分像素点为最后一个差分像素点时,基于目标差分区块,对图像帧序列进行保存。The frame sequence saving module is used to save the image frame sequence based on the target differential block when the target differential pixel point of the current differential step is the last differential pixel point.
第三方面,本申请还提供一种计算机设备,该计算机设备包括:In a third aspect, the present application further provides a computer device, the computer device comprising:
一个或多个处理器;one or more processors;
存储器;以及Memory; and
一个或多个应用程序,其中所述一个或多个应用程序被存储于所述存储器中,并配置为由所述处理器执行以实现所述的图像帧序列处理方法。One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the image frame sequence processing method.
第四方面,本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器进行加载,以执行所述的图像帧序列处理方法中的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the image frame sequence processing method.
上述图像帧序列处理方法、装置、计算机设备以及存储介质,获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧;按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区 块;若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块;其中,第二差分区块为目标图像帧中的除第一差分区块以外的差分区块;在当前差分步的目标差分像素点为最后一个差分像素点时,基于目标差分区块,对图像帧序列进行保存。本方法在计算目标图像帧与参考图像帧间的差分像素点的同时,基于当前差分步的目标差分像素点更新第一差分区块,并同步计算该目标差分像素点所更新第一差分区块与其他第二差分区块间的距离,若第一差分区块与其他第二差分区块间的距离小于预设距离阈值,实时将第一差分区块与该第二差分区块进行合并,以减少目标图像帧中差分区块的耗时,同时有效控制目标图像帧中差分区块的数量,避免目标图像帧中差分区块过多而导致差分区域的解码、渲染对资源以及时间的消耗,提高后续绘制目标图像帧的效率。The above-mentioned image frame sequence processing method, device, computer equipment and storage medium obtain a target image frame in the image frame sequence and a reference image frame corresponding to the target image frame; obtain the differential pixel points between the target image frame and the reference image frame in a differential step order, and update the first differential area in the target image frame based on the target differential pixel point of the current differential step. block; if the distance value between the first differential block and the second differential block is less than the preset distance threshold, a target differential block is generated based on the first differential block and the second differential block; wherein the second differential block is a differential block in the target image frame except the first differential block; when the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block. The method updates the first differential block based on the target differential pixel point of the current differential step while calculating the differential pixel point between the target image frame and the reference image frame, and simultaneously calculates the distance between the first differential block updated by the target differential pixel point and the other second differential blocks. If the distance between the first differential block and the other second differential block is less than the preset distance threshold, the first differential block is merged with the second differential block in real time to reduce the time consumption of the differential block in the target image frame, and effectively control the number of differential blocks in the target image frame, so as to avoid the consumption of resources and time for decoding and rendering of the differential area due to too many differential blocks in the target image frame, and improve the efficiency of subsequent drawing of the target image frame.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1A是现有技术中图像帧中差分区块的示意图;FIG1A is a schematic diagram of a differential block in an image frame in the prior art;
图1B是现有技术中基于差分区块对图像帧进行绘制的示意图;FIG1B is a schematic diagram of drawing an image frame based on differential blocks in the prior art;
图2是本申请实施例中图像帧序列处理方法的流程示意图;FIG2 is a schematic diagram of a flow chart of an image frame sequence processing method in an embodiment of the present application;
图3是本申请实施例中目标图像帧中差分区块的示意图;FIG3 is a schematic diagram of a differential block in a target image frame in an embodiment of the present application;
图4是本申请实施例中图像帧序列处理方法的另一个流程示意图;FIG4 is another schematic flow chart of the method for processing an image frame sequence in an embodiment of the present application;
图5是本申请实施例中图像帧中差分区块的示意图;FIG5 is a schematic diagram of a differential block in an image frame in an embodiment of the present application;
图6是本申请实施例中基于差分区块对图像帧进行绘制的示意图;FIG6 is a schematic diagram of drawing an image frame based on differential blocks in an embodiment of the present application;
图7是本申请实施例中图像帧序列处理装置的结构示意图;FIG7 is a schematic diagram of the structure of an image frame sequence processing device in an embodiment of the present application;
图8是本申请实施例中计算机设备的结构示意图。FIG. 8 is a schematic diagram of the structure of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
在本申请的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
在本申请的描述中,“例如”一词用来表示“用作例子、例证或说明”。本申请中被描述为“例如”的任何实施例不一定被解释为比其它实施例更优选或更具优势。为了使本领域任何技术人员能够实现和使用本申请,给出了以下描述。在以下描述中,为了解释的目的而列出了细节。应当明白的是,本领域普通技术人员可以认识到,在不使用这些特定细节的情况下也可以实现本申请。在其它实例中,不会对公知的结构和过程进行详细阐述,以避免不必要的细节使本申请的描述变得晦涩。因此,本申请并非旨在限于所示的实施例,而是与符合本申请所公开的原理和特征的最广范围相一致。In the description of the present application, the word "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
现有技术中,针对图像帧序列处理的保存技术中,通常是对比前后两帧图像帧找出图像帧间的差分区域,在保存图像帧序列时可以仅保存前一帧图像帧以及后一帧图像帧的差分区域对应图像块,以降低图像帧序列的文件大小。参见图1A所示,图1A中图像帧110 为图像帧序列中的第t帧的图像帧,图像帧120为图像帧序列中的(t+1)帧的图像帧,通过对比前后两帧图像帧找出图像帧间的多个差分区域(图中仅标识出部分的差分区域),从图1A中可以看出,相比于图像帧120,差分得到的差分区域较小,基于差分区域对图像帧序列进行保存时,图像帧序列的文件大小大幅降低。In the prior art, in the storage technology for processing image frame sequences, usually the difference area between the image frames is found by comparing the previous and next image frames. When saving the image frame sequence, only the image blocks corresponding to the difference area between the previous image frame and the next image frame can be saved to reduce the file size of the image frame sequence. is the t-th image frame in the image frame sequence, and image frame 120 is the (t+1)-th image frame in the image frame sequence. By comparing the two preceding and succeeding image frames, a plurality of differential regions between the image frames are found (only some of the differential regions are marked in the figure). It can be seen from FIG1A that, compared with image frame 120, the differential region obtained by differential is smaller. When the image frame sequence is saved based on the differential region, the file size of the image frame sequence is greatly reduced.
但是,假设图像帧序列是类似星光闪烁效果的动画帧序列,此时前后两帧图像帧往往存在大量亮度变化的像素点,相应地构成大量且独立的差分区域,基于差分区域对图像帧序列进行保存时,图像帧序列的文件大小反而会上升。However, assuming that the image frame sequence is an animation frame sequence similar to a starlight twinkling effect, there are often a large number of pixels with varying brightness between the two image frames, which correspondingly constitute a large number of independent differential regions. When the image frame sequence is saved based on the differential regions, the file size of the image frame sequence will increase instead.
此外在渲染图像帧120的过程中,需要对差分区域对应的图像块一一解码,并一一绘制并覆盖到图像帧110上,当差分区域较多时,需要调用大量的解码命令以及绘制命令,如1B所示,导致绘制效率大幅降低。In addition, in the process of rendering image frame 120, the image blocks corresponding to the differential areas need to be decoded one by one, and drawn one by one and overlaid on image frame 110. When there are many differential areas, a large number of decoding commands and drawing commands need to be called, as shown in 1B, resulting in a significant reduction in drawing efficiency.
基于上述问题,本申请实施例提供一种图像帧序列处理方法,在计算目标图像帧与参考图像帧间的差分像素点的同时,基于当前差分步的目标差分像素点更新第一差分区块,并同步计算该目标差分像素点所更新第一差分区块与其他第二差分区块间的距离,若第一差分区块与其他第二差分区块间的距离小于预设距离阈值,实时将第一差分区块与该第二差分区块进行合并,以减少目标图像帧中差分区块的耗时,同时有效控制目标图像帧中差分区块的数量,避免目标图像帧中差分区块过多而导致差分区域的解码、渲染对资源以及时间的消耗,提高后续绘制目标图像帧的效率。Based on the above problems, an embodiment of the present application provides an image frame sequence processing method, which updates a first differential block based on the target differential pixel of the current differential step while calculating the differential pixel between the target differential pixel, and synchronously calculates the distance between the first differential block updated by the target differential pixel and the other second differential blocks. If the distance between the first differential block and the other second differential block is less than a preset distance threshold, the first differential block is merged with the second differential block in real time to reduce the time consumption of the differential block in the target image frame, and effectively control the number of differential blocks in the target image frame to avoid too many differential blocks in the target image frame, which leads to the consumption of resources and time for decoding and rendering of the differential area, thereby improving the efficiency of subsequent drawing of the target image frame.
本申请实施例提供的图像帧序列处理方法,可以运行于终端设备或服务器。其中,终端设备可以为本地终端设备。其中,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。The image frame sequence processing method provided in the embodiment of the present application can be run on a terminal device or a server. The terminal device can be a local terminal device. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
参阅图2,本申请实施例提供了一种图像帧序列处理方法,主要以该方法应用于服务器来举例说明,该方法包括步骤S210至S230,具体如下:Referring to FIG. 2 , an embodiment of the present application provides a method for processing an image frame sequence, which is mainly illustrated by applying the method to a server. The method includes steps S210 to S230, which are specifically as follows:
步骤S210,获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧。Step S210 , obtaining a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame.
其中,图像帧序列具体可以是视频数据、动画数据等,图像帧序列中包括有在时序上连续的多帧图像帧。目标图像帧是指图像帧序列中待处理的一帧图像帧,参考图像帧是目标图像帧时序上的前一帧、且与目标图像帧在时序上相邻的图像帧。例如,目标图像帧是可以是目标帧序列中第t时刻的图像帧,参考图像帧是目标帧序列中第(t-1)时刻的图像帧。The image frame sequence may specifically be video data, animation data, etc., and the image frame sequence includes multiple image frames that are continuous in time sequence. The target image frame refers to an image frame to be processed in the image frame sequence, and the reference image frame is an image frame that is the previous frame in time sequence of the target image frame and is adjacent to the target image frame in time sequence. For example, the target image frame may be an image frame at the t-th moment in the target frame sequence, and the reference image frame is an image frame at the (t-1)th moment in the target frame sequence.
具体地,在确定到待处理的图像帧序列后,按照图像帧序列中图像帧的顺序,依次将每一帧图像帧确定为目标图像帧,并获取该目标图像帧对应的参考图像帧。Specifically, after the image frame sequence to be processed is determined, each image frame is determined as a target image frame in turn according to the order of the image frames in the image frame sequence, and a reference image frame corresponding to the target image frame is obtained.
步骤S220,按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区块。Step S220, obtaining differential pixels between the target image frame and the reference image frame in a differential step order, and updating a first differential block in the target image frame based on the target differential pixel of the current differential step.
其中,在一个差分步中,终端对目标图像帧与参考图像帧上的同一个坐标点上的像素点进行差分处理,以判断该坐标点上的像素点是否为差分像素点;差分步次序可以是按照目标图像帧(或参考图像帧)中像素点的排列顺序决定的。例如,参见图3,图3示出了一帧包括6行6列像素的目标图像帧的示意图,可以以像素点F作为起始坐标点一行一行地进行取点,每一个差分步中取一个坐标点作为当前差分步的目标坐标点,对比目标图像帧与参考图像帧在该目标坐标点上的像素数据,以判断该目标坐标点对应像素点是否差分像素点;如,当前差分步为对该目标图像帧中像素点A与参考图像帧中的第一行第五列的像素点进行差分处理,以判断第一行第五列的像素点上的像素点是否为差分像素点,下一个差分步为对该目标图像帧中第一行第六列的像素点(即像素点B)与参考图像帧中的第 一行第六列的像素点进行差分处理,以判断第一行第六列的像素点上的像素点是否为差分像素点,如此类推。Among them, in a differential step, the terminal performs differential processing on the pixel point at the same coordinate point on the target image frame and the reference image frame to determine whether the pixel point at the coordinate point is a differential pixel point; the differential step order can be determined according to the arrangement order of the pixels in the target image frame (or reference image frame). For example, referring to Figure 3, Figure 3 shows a schematic diagram of a target image frame including 6 rows and 6 columns of pixels. The pixel point F can be used as the starting coordinate point to take points row by row, and a coordinate point is taken as the target coordinate point of the current differential step in each differential step. The pixel data of the target image frame and the reference image frame at the target coordinate point are compared to determine whether the pixel point corresponding to the target coordinate point is a differential pixel point; for example, the current differential step is to perform differential processing on the pixel point A in the target image frame and the pixel point in the first row and fifth column in the reference image frame to determine whether the pixel point on the pixel point in the first row and fifth column is a differential pixel point, and the next differential step is to perform differential processing on the pixel point in the first row and sixth column in the target image frame (i.e., pixel point B) and the pixel point in the first row and sixth column in the reference image frame. The pixel points in the sixth column of a row are subjected to differential processing to determine whether the pixel points in the sixth column of the first row are differential pixels, and so on.
其中,差分区块是指相较于参考图像帧,在目标图像帧中存在差分像素点的矩形区域;继续以图3为例,图3的目标图像帧中像素点A、像素点B以及像素点C以及像素点D为差分像素点,基于像素点A、像素点B以及像素点C在该目标图像帧构成一差分区块310,基于像素点D在该目标图像帧构成一差分区块320。可以理解的是,相较于参考图像帧,目标图像帧存在一个或一个以上的差分区块;其中,第一差分区块是指当前差分步所得到的目标差分像素点待划入的差分区块。The difference block refers to a rectangular area where there are difference pixels in the target image frame compared to the reference image frame; continuing to take Figure 3 as an example, the pixels A, B, C and D in the target image frame of Figure 3 are difference pixels, and a difference block 310 is formed in the target image frame based on the pixels A, B and C, and a difference block 320 is formed in the target image frame based on the pixel D. It can be understood that, compared to the reference image frame, the target image frame has one or more difference blocks; wherein the first difference block refers to the difference block to be included in the target difference pixel obtained by the current difference step.
在确定到当前差分步所处理的坐标点对应像素点为差分像素点后,可以将该坐标点对应的像素点确定为目标差分像素点,并在目标图像帧中现有的历史差分区块中确定该目标差分像素点对应的第一差分区块,也可以基于该差分像素点所在坐标位置生成一个新的差分区块,得到第一差分区块。After determining that the pixel point corresponding to the coordinate point processed by the current differential step is a differential pixel point, the pixel point corresponding to the coordinate point can be determined as the target differential pixel point, and the first differential block corresponding to the target differential pixel point can be determined in the existing historical differential blocks in the target image frame, or a new differential block can be generated based on the coordinate position of the differential pixel point to obtain the first differential block.
进一步地,在确定到目标差分像素点对应的第一差分区块后,可对比差分像素点所在的坐标位置以及第一差分区块的区域位置,判断差分像素点所在的坐标位置是否在第一差分区块的区域范围内;若差分像素点所在的坐标位置在第一差分区块的区域范围内,将差分像素点划入至第一差分区块后,第一差分区块的区域范围不变;若差分像素点所在的坐标位置在第一差分区块的区域范围外,将差分像素点划入至第一差分区块后,第一差分区块的区域范围发生变化,此时,基于目标差分像素点的坐标位置,对第一差分区块的区域范围进行更新。Furthermore, after determining the first differential block corresponding to the target differential pixel point, the coordinate position of the differential pixel point and the area position of the first differential block can be compared to determine whether the coordinate position of the differential pixel point is within the area range of the first differential block; if the coordinate position of the differential pixel point is within the area range of the first differential block, the area range of the first differential block remains unchanged after the differential pixel point is included in the first differential block; if the coordinate position of the differential pixel point is outside the area range of the first differential block, the area range of the first differential block changes after the differential pixel point is included in the first differential block. At this time, the area range of the first differential block is updated based on the coordinate position of the target differential pixel point.
继续参见图3,例如,图3中像素点D为当前差分步得到的目标差分像素点,可基于该像素点D所在坐标位置生成一个新的差分区块320,得到第一差分区块;在下一个差分步中,判断像素点E是否为差分像素点,当像素点E为差分像素点,可基于像素点E确定第一差分区块为差分区域320,并将像素点E划入至差分区域320以更新差分区域320的区域范围,差分区域320的区域范围发生变化,变化后的区域范围如差分区域320’所示。Continuing to refer to FIG. 3 , for example, the pixel point D in FIG. 3 is the target differential pixel point obtained in the current differential step, and a new differential block 320 can be generated based on the coordinate position of the pixel point D to obtain a first differential block; in the next differential step, it is determined whether the pixel point E is a differential pixel point. When the pixel point E is a differential pixel point, the first differential block can be determined as the differential area 320 based on the pixel point E, and the pixel point E is included in the differential area 320 to update the area range of the differential area 320. The area range of the differential area 320 changes, and the changed area range is shown in the differential area 320'.
步骤S230,若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块;其中,第二差分区块为目标图像帧中的除第一差分区块以外的差分区块。Step S230 : if the distance between the first difference block and the second difference block is less than a preset distance threshold, a target difference block is generated based on the first difference block and the second difference block; wherein the second difference block is a difference block in the target image frame except the first difference block.
其中,相较于参考图像帧,目标图像帧存在一个或一个以上的差分区块;在获取到更新后的第一差分区块后,可以计算第一差分区块与目标图像帧中除第一差分区块以外的第二差分区块的距离值。具体地,针对任意一个第二差分区块,可以是获取第一差分区块的中心坐标,以及获取第二差分区块的中心坐标,基于第一差分区块的中心坐标与第二差分区块的中心坐标间的距离,确定为第一差分区块与该第二差分区块间的距离值;也可以是获取第一差分区块的边界与第二差分区块边界间的最短距离值,将该最短距离值确定为第一差分区块与该第二差分区块的距离值。Compared with the reference image frame, the target image frame has one or more difference blocks; after obtaining the updated first difference block, the distance value between the first difference block and the second difference block in the target image frame other than the first difference block can be calculated. Specifically, for any second difference block, the center coordinates of the first difference block and the center coordinates of the second difference block can be obtained, and based on the distance between the center coordinates of the first difference block and the center coordinates of the second difference block, the distance value between the first difference block and the second difference block is determined; or the shortest distance value between the boundary of the first difference block and the boundary of the second difference block is obtained, and the shortest distance value is determined as the distance value between the first difference block and the second difference block.
在获取到第一差分区块与其他差分区块的距离值后,对比距离值与预设距离阈值间的大小,若第一差分区块与某个第二差分区块的距离值小于预设距离阈值,此时可对第一差分区块以及该第二差分区块进行合并,得到目标差分区块。After obtaining the distance values between the first difference block and the other difference blocks, the distance value is compared with the preset distance threshold. If the distance value between the first difference block and a second difference block is less than the preset distance threshold, the first difference block and the second difference block can be merged to obtain the target difference block.
进一步地,在一个实施例中,基于第一差分区块以及第二差分区块生成目标差分区块的步骤之后,还包括:将目标差分区块确定为新的第一差分区块,继续执行若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块的步骤。Furthermore, in one embodiment, after the step of generating a target difference block based on the first difference block and the second difference block, the method further includes: determining the target difference block as a new first difference block, and continuing to execute the step of generating the target difference block based on the first difference block and the second difference block if the distance value between the first difference block and the second difference block is less than a preset distance threshold.
其中,对第一差分区块和第二差分区块进行合并所获得的目标差分区块的区域范围一定发生变化,即目标差分区块的区域范围扩大,此时,将目标差分区块确定为新的第一差 分区块,再次计算第一差分区块与目标图像帧中除第一差分区块以外的第二差分区块的距离值,进而在其他第二差分区块中,确定与第一差分区块间的距离值小于预设距离阈值的第二差分区块,并再次合并第一差分区块与该第二差分区块,以再次更新第一差分区块,直至第一差分区块与目标图像帧中除第一差分区块以外的其他差分区块的距离值均大于或等于预设距离阈值。The area range of the target difference block obtained by merging the first difference block and the second difference block must change, that is, the area range of the target difference block is expanded. At this time, the target difference block is determined as the new first difference block. The method further comprises: calculating a distance value between the first difference block and the second difference blocks other than the first difference block in the target image frame, and then determining, among the other second difference blocks, a second difference block whose distance value with the first difference block is less than a preset distance threshold, and merging the first difference block with the second difference block again to update the first difference block again, until the distance values between the first difference block and the other difference blocks other than the first difference block in the target image frame are all greater than or equal to the preset distance threshold.
可以理解的是,若第一差分区块与目标图像帧中任意第二差分区块的距离值均大于或等于预设距离阈值,此时可以按照差分步次序,获取下一差分步的差分像素,并重复上述步骤,即基于下一差分步的差分像素点再次更新目标图像帧中的差分区块,若下一差分步对应差分像素点所更新的差分区块与目标图像帧中的其他差分区块间的距离值小于预设距离阈值,则将下一差分步对应差分像素点所更新的差分区块与该差分区块生成目标差分区块,直至目标图像帧中任意两个差分区块间的距离值均大于或等于预设距离阈值。It can be understood that if the distance values between the first differential block and any second differential block in the target image frame are greater than or equal to the preset distance threshold, then the differential pixels of the next differential step can be obtained according to the differential step order, and the above steps can be repeated, that is, the differential block in the target image frame is updated again based on the differential pixel points of the next differential step, and if the distance value between the differential block updated by the differential pixel points corresponding to the next differential step and other differential blocks in the target image frame is less than the preset distance threshold, the differential block updated by the differential pixel points corresponding to the next differential step and the differential block are used to generate a target differential block, until the distance values between any two differential blocks in the target image frame are greater than or equal to the preset distance threshold.
步骤S240,在当前差分步的目标差分像素点为最后一个差分像素点时,基于目标差分区块,对图像帧序列进行保存。Step S240, when the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block.
其中,目标差分区块即目标图像帧与参考图像帧间的变化区域,在当前差分步的目标差分像素点为最后一个差分像素点时,通过保存目标差分区块以及参考图像帧,即可实现对图像帧序列进行保存。Among them, the target difference block is the change area between the target image frame and the reference image frame. When the target difference pixel point of the current difference step is the last difference pixel point, the image frame sequence can be saved by saving the target difference block and the reference image frame.
上述图像帧序列处理方法中,获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧;按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区块;若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块;其中,第二差分区块为目标图像帧中的除第一差分区块以外的差分区块;在当前差分步的目标差分像素点为最后一个差分像素点时,基于目标差分区块,对图像帧序列进行保存。在计算目标图像帧与参考图像帧间的差分像素点的同时,基于当前差分步的目标差分像素点更新第一差分区块,并同步计算该目标差分像素点所更新第一差分区块与其他第二差分区块间的距离,若第一差分区块与其他第二差分区块间的距离小于预设距离阈值,实时将第一差分区块与该第二差分区块进行合并,以减少目标图像帧中差分区块的耗时,同时有效控制目标图像帧中差分区块的数量,避免目标图像帧中差分区块过多而导致差分区域的解码、渲染对资源以及时间的消耗,提高后续绘制目标图像帧的效率。In the above-mentioned image frame sequence processing method, a target image frame in the image frame sequence and a reference image frame corresponding to the target image frame are obtained; differential pixel points between the target image frame and the reference image frame are obtained in a differential step order, and a first differential block in the target image frame is updated based on the target differential pixel point of the current differential step; if the distance value between the first differential block and the second differential block is less than a preset distance threshold, a target differential block is generated based on the first differential block and the second differential block; wherein the second differential block is a differential block in the target image frame except the first differential block; when the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block. While calculating the differential pixel points between the target image frame and the reference image frame, the first differential block is updated based on the target differential pixel points of the current differential step, and the distance between the first differential block updated by the target differential pixel points and other second differential blocks is synchronously calculated. If the distance between the first differential block and the other second differential block is less than a preset distance threshold, the first differential block is merged with the second differential block in real time to reduce the time consumption of the differential block in the target image frame, and at the same time effectively control the number of differential blocks in the target image frame, avoid too many differential blocks in the target image frame, which leads to the consumption of resources and time for decoding and rendering of the differential area, and improve the efficiency of subsequent drawing of the target image frame.
在一个实施例中,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区块的步骤,包括:获取目标图像帧中的历史差分区块;若目标差分像素点不在历史差分区块中的任意一个差分区块内,将距离目标差分像素点值小于预设距离阈值的历史差分区块确定为第一差分区块,并基于当前差分步的目标差分像素点更新第一差分区块。In one embodiment, the step of updating the first differential block in the target image frame based on the target differential pixel point of the current differential step includes: obtaining the historical differential blocks in the target image frame; if the target differential pixel point is not in any differential block in the historical differential blocks, determining the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold as the first differential block, and updating the first differential block based on the target differential pixel point of the current differential step.
其中,历史差分区块是指目标图像帧中现有的差分区块。在确定到当前差分步所处理的像素点为差分像素点,可对比当前差分步对应的目标差分像素点所在的坐标位置以及历史差分区块的区域位置,以判断目标差分像素点是否在历史差分区块中的某个差分区块内,若目标差分像素点在历史差分区块中的某个差分区块内,可将该差分区块确定为当前差分步的目标差分像素点对应的第一差分区块;可以理解的是,由于目标差分区块为第一差分区块中的,因此基于目标差分区块对该第一差分区域进行更新,第一差分区块的区域范围不变。继续参见图3,例如,图3中像素点G为当前差分步得到的目标差分像素点,可对比当前差分步对应的像素点G所在的坐标位置以及差分区块310的区域位置,以判断像素点G是否在差分区块310;由于像素点G在差分区块310内,将像素点G划分到差分区块310中,差分区块310不变。The historical differential block refers to the existing differential block in the target image frame. When it is determined that the pixel point processed by the current differential step is a differential pixel point, the coordinate position of the target differential pixel point corresponding to the current differential step and the regional position of the historical differential block can be compared to determine whether the target differential pixel point is in a differential block in the historical differential block. If the target differential pixel point is in a differential block in the historical differential block, the differential block can be determined as the first differential block corresponding to the target differential pixel point of the current differential step; it can be understood that since the target differential block is in the first differential block, the first differential area is updated based on the target differential block, and the regional range of the first differential block remains unchanged. Continuing to refer to FIG. 3 , for example, the pixel point G in FIG. 3 is the target differential pixel point obtained by the current differential step. The coordinate position of the pixel point G corresponding to the current differential step and the regional position of the differential block 310 can be compared to determine whether the pixel point G is in the differential block 310. Since the pixel point G is in the differential block 310, the pixel point G is divided into the differential block 310, and the differential block 310 remains unchanged.
若目标差分像素点不在历史差分区块中的任意一个差分区块内,则可以计算目标差分 像素点与各历史差分区块间的距离值,进而基于目标差分像素点与各历史差分区块间的距离值,确定目标差分像素点对应的差分区块,得到第一差分区块。具体地,在确定到差分像素点到各个历史差分区块间的距离值后,若历史差分区块中存在一个差分区块,该差分区块与目标差分像素点间的距离值小于预设距离阈值,则将该差分区块确定为目标差分像素点对应的第一差分区块,进而基于目标差分像素点对第一差分区块进行更新;可以理解的是,由于目标差分区块为第一差分区块中的,因此基于目标差分区块对该第一差分区域进行更新,第一差分区块的区域范围变大。If the target differential pixel is not in any differential block in the historical differential block, the target differential can be calculated. The distance value between the pixel point and each historical differential block is determined, and then based on the distance value between the target differential pixel point and each historical differential block, the differential block corresponding to the target differential pixel point is determined to obtain the first differential block. Specifically, after determining the distance value between the differential pixel point and each historical differential block, if there is a differential block in the historical differential block, and the distance value between the differential block and the target differential pixel point is less than the preset distance threshold, the differential block is determined as the first differential block corresponding to the target differential pixel point, and then the first differential block is updated based on the target differential pixel point; it can be understood that since the target differential block is in the first differential block, the first differential area is updated based on the target differential block, and the area range of the first differential block becomes larger.
进一步地,在一个实施例中,获取目标图像帧中的历史差分区块的步骤之后,还包括:若目标差分像素点不在历史差分区块中的任意一个差分区块内,且历史差分区块中任意差分区块与目标差分像素点间的距离值均大于或等于预设距离阈值,基于目标差分像素点生成第一差分区块。Furthermore, in one embodiment, after the step of obtaining the historical difference blocks in the target image frame, it also includes: if the target differential pixel point is not in any difference block in the historical difference blocks, and the distance value between any difference block in the historical difference blocks and the target differential pixel point is greater than or equal to a preset distance threshold, a first difference block is generated based on the target differential pixel point.
若历史差分区块中不存在与目标差分像素点间的距离值小于预设距离阈值的差分区块,则获取目标差分像素点所在坐标位置,基于该坐标位置生成一个新的差分区块,该差分区块作为目标差分像素点对应的第一差分区块。If there is no difference block in the historical difference blocks whose distance value to the target difference pixel point is less than the preset distance threshold, the coordinate position of the target difference pixel point is obtained, and a new difference block is generated based on the coordinate position, and the difference block is used as the first difference block corresponding to the target difference pixel point.
通过判断当前解码步所处理的目标差分像素点是否在已有的历史差分区块中,在目标差分像素不在历史差分区块中的任意一个差分区块内时,基于目标差分像素点与各个历史差分区块间的距离值,确定目标差分像素点所更新的差分区块,实现在计算目标图像帧与参考图像帧间的差分像素点的同时,实时基于当前差分步的目标差分像素点更新目标图像帧内的差分区块,便于后续对目标图像帧内的差分区块进行基于距离的合并,以减少目标图像帧中差分区块的耗时。By judging whether the target differential pixel point processed by the current decoding step is in the existing historical differential blocks, when the target differential pixel is not in any differential block in the historical differential blocks, the differential block updated by the target differential pixel point is determined based on the distance value between the target differential pixel point and each historical differential block, so that while calculating the differential pixel point between the target image frame and the reference image frame, the differential block in the target image frame is updated in real time based on the target differential pixel point of the current differential step, so as to facilitate the subsequent distance-based merging of the differential blocks in the target image frame, so as to reduce the time consumption of the differential blocks in the target image frame.
在一个实施例中,按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点的步骤,包括:按照差分步次序获取目标图像帧在当前坐标点上的第一像素数据以及参考图像帧在当前坐标点上的第二像素数据;若第一像素数据与第二像素数据不相同,则将当前坐标点的像素点确定为差分像素点。In one embodiment, the step of acquiring differential pixel points between a target image frame and a reference image frame in a differential step order includes: acquiring first pixel data of the target image frame at a current coordinate point and second pixel data of the reference image frame at the current coordinate point in a differential step order; if the first pixel data is different from the second pixel data, determining the pixel point of the current coordinate point as a differential pixel point.
其中,像素数据可以是指在某个坐标点对应像素点的颜色值;具体地,像素数据可以是指在颜色空间中的取值,例如,可以是在RGB颜色空间对应的取值,即RGB颜色值,也可以是YUV颜色空间中的取值,即YUV颜色值。Among them, pixel data can refer to the color value of a pixel point corresponding to a certain coordinate point; specifically, pixel data can refer to a value in a color space, for example, it can be a value corresponding to an RGB color space, i.e., an RGB color value, or it can be a value in a YUV color space, i.e., a YUV color value.
其中,当前目标坐标点是指在当前差分步所处理的目标坐标点。The current target coordinate point refers to the target coordinate point processed in the current difference step.
由于目标图像帧与参考图像帧为时序上连续的图像帧,因此基于目标图像帧与参考图像帧在相同坐标点上的像素数据,获取目标图像帧相较于参考图像帧的差分像素点。具体地,确定当前差分步所处理的目标坐标点,并从目标图像帧获取在当前坐标点上的第一像素数据,以及从参考图像帧获取在当前坐标点上的第二像素数据;进而,对比目标图像帧与参考图像帧在该目标坐标点上的像素数据,若在该目标坐标点上的第一像素数据与第二像素数据不相等,可以将该目标坐标点对应像素点确定为差分像素。Since the target image frame and the reference image frame are sequential image frames, the differential pixel points of the target image frame compared to the reference image frame are obtained based on the pixel data at the same coordinate point of the target image frame and the reference image frame. Specifically, the target coordinate point processed by the current differential step is determined, and the first pixel data at the current coordinate point is obtained from the target image frame, and the second pixel data at the current coordinate point is obtained from the reference image frame; then, the pixel data at the target coordinate point of the target image frame and the reference image frame are compared, and if the first pixel data and the second pixel data at the target coordinate point are not equal, the pixel point corresponding to the target coordinate point can be determined as a differential pixel.
可以理解的是,若在该目标坐标点上的像素数据相等,则该目标坐标点对应的像素点非差分像素点,此时可以确定下一个差分步所处理的坐标点,并对目标图像帧与参考图像帧在新的坐标点上的像素数据进行比较,以判断下一个坐标点对应像素点是否为差分像素点。It can be understood that if the pixel data at the target coordinate point is equal, the pixel point corresponding to the target coordinate point is a non-differential pixel point. At this time, the coordinate point processed by the next differential step can be determined, and the pixel data of the target image frame and the reference image frame at the new coordinate point can be compared to determine whether the pixel point corresponding to the next coordinate point is a differential pixel point.
通过对比相同坐标点上的像素数据以快速获取目标图像帧与参考图像帧间的差分像素点,有效提高差分区块的生成,提高图像帧序列的保存效率。By comparing the pixel data at the same coordinate points to quickly obtain the differential pixel points between the target image frame and the reference image frame, the generation of differential blocks is effectively improved, and the preservation efficiency of the image frame sequence is improved.
进一步地,像素数据通常包括有透明度参数以及RGB参数,因此,在一个实施例中,按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点的步骤,包括:按照差分步次序获取目标图像帧在当前坐标点上的第一透明度参数以及参考图像帧在当前坐标点上 的第二透明度参数;若第一透明度参数与第二透明度参数中的一个大于预设透明度参数且另一个小于或等于预设透明度参数,将当前坐标点的像素点确定为差分像素点;若第一透明度参数与第二透明度参数均大于预设透明度参数,则获取目标图像帧在当前坐标点上的第一RGB参数以及参考图像帧在当前像素点上的第二RGB参数;若第一RGB参数与第二RGB参数不相同,则将当前坐标点的像素点确定为差分像素点。Furthermore, the pixel data generally includes a transparency parameter and an RGB parameter. Therefore, in one embodiment, the step of obtaining the differential pixel points between the target image frame and the reference image frame in a differential step order includes: obtaining the first transparency parameter of the target image frame at the current coordinate point and the first transparency parameter of the reference image frame at the current coordinate point in the differential step order. a second transparency parameter of the reference image frame; if one of the first transparency parameter and the second transparency parameter is greater than the preset transparency parameter and the other is less than or equal to the preset transparency parameter, the pixel point at the current coordinate point is determined as a differential pixel point; if both the first transparency parameter and the second transparency parameter are greater than the preset transparency parameter, the first RGB parameter of the target image frame at the current coordinate point and the second RGB parameter of the reference image frame at the current pixel point are obtained; if the first RGB parameter is different from the second RGB parameter, the pixel point at the current coordinate point is determined as a differential pixel point.
其中,像素数据可以是指在某个坐标点对应像素点的RGB-A值,即像素数据包括在RGB通道上的RGB参数以及alpha通道上的透明度参数。可以理解的是,当alpha通道的透明度参数为0%时,则该目标坐标点对应像素点为完全透明的像素点,无论RGB通道上的RGB参数的值为多少,一般均显示为白色;当alpha通道的透明度参数为100%时,则该目标坐标点对应像素点为不透明的像素点,目标坐标点对应像素点显示为RGB参数所表示的颜色。The pixel data may refer to the RGB-A value of the pixel corresponding to a certain coordinate point, that is, the pixel data includes the RGB parameters on the RGB channel and the transparency parameters on the alpha channel. It can be understood that when the transparency parameter of the alpha channel is 0%, the pixel corresponding to the target coordinate point is a completely transparent pixel, and generally displays white regardless of the value of the RGB parameter on the RGB channel; when the transparency parameter of the alpha channel is 100%, the pixel corresponding to the target coordinate point is an opaque pixel, and the pixel corresponding to the target coordinate point displays the color represented by the RGB parameter.
具体地,确定当前差分步所处理的目标坐标点,并从目标图像帧获取在当前坐标点上的第一透明度参数,以及从参考图像帧获取在当前坐标点上的第二透明度参数;进而,基于第一透明度参数以及第二透明度参数以判断对应目标坐标点上的透明度,具体可包括以下3种情况:Specifically, the target coordinate point processed by the current difference step is determined, and a first transparency parameter at the current coordinate point is obtained from the target image frame, and a second transparency parameter at the current coordinate point is obtained from the reference image frame; then, based on the first transparency parameter and the second transparency parameter, the transparency at the corresponding target coordinate point is determined, which may specifically include the following three situations:
情况1:当第一透明度参数与第二透明度参数均小于或等于预设透明度参数,此时无论目标图像帧还是参考图像帧在目标坐标点上的像素点都是透明像素点,可认为目标图像帧还是参考图像帧在目标坐标点上的像素点所显示的颜色一致,目标坐标点上的像素点非差分像素点;Case 1: When the first transparency parameter and the second transparency parameter are both less than or equal to the preset transparency parameter, at this time, the pixel points at the target coordinate point in both the target image frame and the reference image frame are transparent pixel points, and it can be considered that the pixel points at the target coordinate point in both the target image frame and the reference image frame display the same color, and the pixel points at the target coordinate point are non-differential pixel points;
情况2:当第一透明度参数与第二透明度参数中的一个大于预设透明度参数且另一个小于或等于预设透明度参数,此时目标图像帧与参考图像帧在目标坐标点上的像素点中,一个为透明像素点,另一个为不透明像素点,此时可将目标坐标点对应的像素点确定为差分像素点;Case 2: When one of the first transparency parameter and the second transparency parameter is greater than the preset transparency parameter and the other is less than or equal to the preset transparency parameter, at this time, among the pixels at the target coordinate point of the target image frame and the reference image frame, one is a transparent pixel point and the other is an opaque pixel point. At this time, the pixel point corresponding to the target coordinate point can be determined as a differential pixel point;
情况3:当第一透明度参数与第二透明度参数均大于预设透明度参数,此时无论目标图像帧还是参考图像帧在目标坐标点上的像素点都不是透明像素点,此时可进一步比较目标坐标点上的RGB参数,若在该目标坐标点上的第一RGB参数与第二RGB参数不相等,可以将该目标坐标点对应像素点确定为差分像素。Case 3: When the first transparency parameter and the second transparency parameter are both greater than the preset transparency parameter, the pixel point at the target coordinate point in either the target image frame or the reference image frame is not a transparent pixel point. At this time, the RGB parameters at the target coordinate point can be further compared. If the first RGB parameter and the second RGB parameter at the target coordinate point are not equal, the pixel point corresponding to the target coordinate point can be determined as a differential pixel.
其中,预设透明度参数用于判断当前坐标点上的像素点是否为透明像素点,当当前坐标点上的像素点的透明度参数小于或等于预设透明度参数,则可认为当前坐标点上的像素点为透明像素点。具体地,预设透明度参数可以取值为0;此外,考虑到噪声的干扰,预设透明度参数也可以设置为一个较小的值,例如5。通过先对比当前坐标点对应像素点的透明度参数,进而基于当前坐标点对应像素点的透明度情况再进行进一步的RGB参数对比,实现将透明像素点对差分像素点判断的影响加入考虑,提高差分像素点判断的准确性,有效排除将透明像素点误识别为差分像素点而导致差分区块变大的情况。Among them, the preset transparency parameter is used to determine whether the pixel at the current coordinate point is a transparent pixel. When the transparency parameter of the pixel at the current coordinate point is less than or equal to the preset transparency parameter, the pixel at the current coordinate point can be considered to be a transparent pixel. Specifically, the preset transparency parameter can take a value of 0; in addition, considering the interference of noise, the preset transparency parameter can also be set to a smaller value, such as 5. By first comparing the transparency parameters of the pixel corresponding to the current coordinate point, and then performing further RGB parameter comparison based on the transparency of the pixel corresponding to the current coordinate point, the influence of transparent pixels on the judgment of differential pixels is taken into consideration, the accuracy of differential pixel judgment is improved, and the situation where transparent pixels are mistakenly identified as differential pixels, resulting in the enlargement of differential blocks, is effectively eliminated.
在一个实施例中,获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧的步骤之前,还包括:获取图像帧序列的图像宽度以及图像高度;确定图像宽度与图像高度中的最大值,基于最大值确定预设距离阈值。In one embodiment, before the step of obtaining the target image frame in the image frame sequence and the reference image frame corresponding to the target image frame, it also includes: obtaining the image width and image height of the image frame sequence; determining the maximum value of the image width and the image height, and determining a preset distance threshold based on the maximum value.
其中,图像宽度以及图像高度用于标识图像帧序列中图像帧的图像尺寸大小。在获取到图像帧序列中的图像宽度以及图像高度后,对比图像宽度与图像高度,取这两个值中的最大值,进而基于最大值计算预设距离阈值。The image width and image height are used to identify the image size of the image frame in the image frame sequence. After obtaining the image width and image height in the image frame sequence, the image width and image height are compared, the maximum value of the two values is taken, and then the preset distance threshold is calculated based on the maximum value.
具体地,预设距离阈值可以取值为图像宽度与图像高度中最大值除以n所得到的值,其中,n为整数,其取值范围为[5,10]。基于图像帧序列的图像宽度以及图像高度设置预设距离阈值,避免预设距离阈值过大导致目标图像帧中的各个差分区块合并为一个差分区块, 也避免预设距离阈值过小而目标图像帧中的各个差分区块无法得到合并,差分区块过多。Specifically, the preset distance threshold can be a value obtained by dividing the maximum value of the image width and the image height by n, where n is an integer whose value range is [5,10]. The preset distance threshold is set based on the image width and image height of the image frame sequence to avoid the preset distance threshold being too large, resulting in the merging of the various difference blocks in the target image frame into one difference block. It also avoids the situation where the preset distance threshold is too small and the difference blocks in the target image frame cannot be merged, or there are too many difference blocks.
在一个实施例中,基于目标差分区块,对图像帧序列进行保存的步骤,包括:根据目标差分区块在目标图像帧的区域位置以及区域大小,生成差分图像信息;基于差分图像信息以及参考图像帧,对图像帧序列进行保存。In one embodiment, the step of saving the image frame sequence based on the target difference block includes: generating difference image information according to the region position and region size of the target difference block in the target image frame; and saving the image frame sequence based on the difference image information and the reference image frame.
具体地,在完成所有像素点的差分处理的同时,也完成目标图像帧中差分区域的获取。此时,可获取目标差分区块在目标图像帧的区域位置以及区域大小,生成差分图像信息;进而基于差分图像信息以及参考图像帧,对图像帧序列进行保存。Specifically, when the differential processing of all pixels is completed, the differential area in the target image frame is also obtained. At this time, the area position and area size of the target differential block in the target image frame can be obtained to generate differential image information; then, based on the differential image information and the reference image frame, the image frame sequence is saved.
可以理解的是,在渲染目标图像帧时,可获取差分区域的图像信息,并基于差分区域的区域位置以及区域大小确定该图像信息的渲染位置,进而在参考图像帧相应的渲染位置上渲染差分区域的图像信息,即可得到目标图像帧。It can be understood that when rendering the target image frame, the image information of the differential area can be obtained, and the rendering position of the image information can be determined based on the area position and area size of the differential area, and then the image information of the differential area can be rendered at the corresponding rendering position of the reference image frame to obtain the target image frame.
以下结合一具体应用场景对上述图像帧序列处理方法进行进一步说明。具体地,参见图4,图像帧序列处理方法包括:The image frame sequence processing method is further described below in conjunction with a specific application scenario. Specifically, referring to FIG4 , the image frame sequence processing method includes:
步骤S401,获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧。Step S401 , obtaining a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame.
步骤S402,按照差分步次序获取目标图像帧以及参考图像帧间的差分像素点。Step S402, obtaining differential pixel points between the target image frame and the reference image frame according to the differential step order.
步骤S403,获取目标图像帧中的历史差分区块。Step S403, obtaining the historical difference block in the target image frame.
步骤S404,判断当前差分步的目标差分像素点是否在在历史差分区块中的某个差分区块内;若是,跳转执行步骤S402;若否,跳转执行步骤S405。Step S404, determine whether the target differential pixel point of the current differential step is in a differential block in the historical differential blocks; if so, jump to step S402; if not, jump to step S405.
步骤S405,获取历史差分区块中任意差分区块与目标差分像素点间的距离值;若历史差分区块中任意差分区块与目标差分像素点间的距离值均大于或等于预设距离阈值,跳转执行步骤406;若历史差分区块中存在差分区块与目标差分像素点间的距离值小于预设距离阈值,跳转执行407。Step S405, obtain the distance value between any differential block in the historical differential block and the target differential pixel point; if the distance value between any differential block in the historical differential block and the target differential pixel point is greater than or equal to the preset distance threshold, jump to step 406; if there is a distance value between the differential block and the target differential pixel point in the historical differential block that is less than the preset distance threshold, jump to 407.
步骤S406,基于目标差分像素点生成新的差分区块,跳转执行步骤S402。Step S406, generating a new differential block based on the target differential pixel point, and jumping to step S402.
步骤S407,将该距离目标差分像素点值小于预设距离阈值的历史差分区块确定为第一差分区块,并基于当前差分步的目标差分像素点更新第一差分区块。Step S407: determine the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold as the first differential block, and update the first differential block based on the target differential pixel point of the current differential step.
步骤S408,判断第一差分区块与第二差分区块间的距离值是否小于预设距离值;若是,跳转执行步骤S409;否则,跳转执行步骤S402。Step S408, determining whether the distance between the first differential block and the second differential block is less than a preset distance value; if so, jumping to step S409; otherwise, jumping to step S402.
其中,第二差分区块为目标图像帧中除第一差分区块以外的差分区块。The second difference block is a difference block in the target image frame except the first difference block.
步骤S409,基于第一差分区块以及第二差分区块生成目标差分区块。Step S409: generating a target differential block based on the first differential block and the second differential block.
步骤S410,将目标差分区块确定为新的第一差分区块,跳转至执行步骤S480。Step S410: determine the target differential block as a new first differential block, and jump to execute step S480.
在当前差分步的目标差分像素点为最后一个差分像素点时,基于目标差分区块,对图像帧序列进行保存。When the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block.
继续以图1所示的图像帧110以及图像帧120为例,基于上述图像帧序列处理方法对图像帧110以及图像帧120进行差分处理,所得的差分区块如图5所示,有效的控制分块数量,如之前提到的星光动画,大量的微小的差分区域可以合并成一个区域。通过图像帧序列处理方法带来的另一个好处是,在绘制图像帧120的时候,由差分区块的数量减小,绘制的时候所调用的解码指令以及绘制指令也大大减少,如图6所示,使得绘制效率大幅提高。Continuing with the image frame 110 and the image frame 120 shown in FIG. 1 as an example, the image frame 110 and the image frame 120 are subjected to differential processing based on the above-mentioned image frame sequence processing method, and the obtained differential blocks are shown in FIG. 5 , which effectively controls the number of blocks. For example, in the previously mentioned starlight animation, a large number of tiny differential areas can be merged into one area. Another benefit brought by the image frame sequence processing method is that when drawing the image frame 120, the number of differential blocks is reduced, and the decoding instructions and drawing instructions called during drawing are also greatly reduced, as shown in FIG. 6 , which greatly improves the drawing efficiency.
为了更好实施本申请实施例提供的图像帧序列处理方法,在本申请实施例所提图像帧序列处理方法的基础之上,本申请实施例中还提供一种图像帧序列处理装置,如图7所示,所述图像帧序列处理装置700包括:In order to better implement the image frame sequence processing method provided in the embodiment of the present application, on the basis of the image frame sequence processing method provided in the embodiment of the present application, an image frame sequence processing device is further provided in the embodiment of the present application. As shown in FIG. 7 , the image frame sequence processing device 700 includes:
图像帧获取模块710,用于获取图像帧序列中的目标图像帧以及目标图像帧对应的参考图像帧;An image frame acquisition module 710 is used to acquire a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame;
差分像素获取模块720,用于按照差分步次序获取目标图像帧以及参考图像帧间的差 分像素点,基于当前差分步的目标差分像素点更新目标图像帧中的第一差分区块;The differential pixel acquisition module 720 is used to acquire the difference between the target image frame and the reference image frame in a differential step order. Sub-pixel point, updating the first differential block in the target image frame based on the target differential pixel point of the current differential step;
差分区块合并模块730,用于在第一差分区块与第二差分区块间的距离值小于预设距离阈值时,基于第一差分区块以及第二差分区块生成目标差分区块;其中,第二差分区块为目标图像帧中的除第一差分区块以外的差分区块;The difference block merging module 730 is used to generate a target difference block based on the first difference block and the second difference block when the distance value between the first difference block and the second difference block is less than a preset distance threshold; wherein the second difference block is a difference block in the target image frame except the first difference block;
帧序列保存模块740,用于在当前差分步的目标差分像素点为最后一个差分像素点时,基于目标差分区块,对图像帧序列进行保存。The frame sequence saving module 740 is used to save the image frame sequence based on the target differential block when the target differential pixel point of the current differential step is the last differential pixel point.
在本申请一些实施例中,差分像素获取模块,具体用于获取目标图像帧中的历史差分区块;若目标差分像素点不在历史差分区块中的任意一个差分区块内,将距离目标差分像素点值小于预设距离阈值的历史差分区块确定为第一差分区块,并基于当前差分步的目标差分像素点更新第一差分区块。In some embodiments of the present application, the differential pixel acquisition module is specifically used to acquire the historical differential blocks in the target image frame; if the target differential pixel point is not in any of the historical differential blocks, the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold is determined as the first differential block, and the first differential block is updated based on the target differential pixel point of the current differential step.
在本申请一些实施例中,差分像素获取模块,具体用于若目标差分像素点不在历史差分区块中的任意一个差分区块内,且历史差分区块中任意差分区块与目标差分像素点间的距离值均大于或等于预设距离阈值,基于目标差分像素点生成第一差分区块。In some embodiments of the present application, the differential pixel acquisition module is specifically used to generate a first differential block based on the target differential pixel point if the target differential pixel point is not in any differential block in the historical differential blocks, and the distance value between any differential block in the historical differential blocks and the target differential pixel point is greater than or equal to a preset distance threshold.
在本申请一些实施例中,差分区块合并模块,具体还用于将目标差分区块确定为新的第一差分区块,继续执行若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块的步骤。In some embodiments of the present application, the difference block merging module is further configured to determine the target difference block as a new first difference block, and continue to execute the step of generating the target difference block based on the first difference block and the second difference block if the distance value between the first difference block and the second difference block is less than a preset distance threshold.
在本申请一些实施例中,差分像素获取模块,用于按照差分步次序获取目标图像帧在当前坐标点上的第一像素数据以及参考图像帧在当前坐标点上的第二像素数据;若第一像素数据与第二像素数据不相同,则将当前坐标点的像素点确定为差分像素点。In some embodiments of the present application, a differential pixel acquisition module is used to acquire first pixel data of a target image frame at a current coordinate point and second pixel data of a reference image frame at the current coordinate point in a differential step order; if the first pixel data is different from the second pixel data, the pixel point of the current coordinate point is determined as a differential pixel point.
在本申请一些实施例中,差分像素获取模块,用于按照差分步次序获取目标图像帧在当前坐标点上的第一透明度参数以及参考图像帧在当前坐标点上的第二透明度参数;若第一透明度参数与第二透明度参数中的一个大于预设透明度参数且另一个小于或等于预设透明度参数,将当前坐标点的像素点确定为差分像素点;若第一透明度参数与第二透明度参数均大于预设透明度参数,则获取目标图像帧在当前坐标点上的第一RGB参数以及参考图像帧在当前像素点上的第二RGB参数;若第一RGB参数与第二RGB参数不相同,则将当前坐标点的像素点确定为差分像素点。In some embodiments of the present application, a differential pixel acquisition module is used to acquire a first transparency parameter of a target image frame at a current coordinate point and a second transparency parameter of a reference image frame at the current coordinate point in a differential step order; if one of the first transparency parameter and the second transparency parameter is greater than a preset transparency parameter and the other is less than or equal to the preset transparency parameter, the pixel point at the current coordinate point is determined as a differential pixel point; if both the first transparency parameter and the second transparency parameter are greater than the preset transparency parameter, the first RGB parameter of the target image frame at the current coordinate point and the second RGB parameter of the reference image frame at the current pixel point are acquired; if the first RGB parameter is different from the second RGB parameter, the pixel point at the current coordinate point is determined as a differential pixel point.
在本申请一些实施例中,图像帧获取模块,具体还用于获取图像帧序列的图像宽度以及图像高度;确定图像宽度与图像高度中的最大值,基于最大值确定预设距离阈值。In some embodiments of the present application, the image frame acquisition module is specifically used to obtain the image width and image height of the image frame sequence; determine the maximum value of the image width and the image height, and determine a preset distance threshold based on the maximum value.
在本申请一些实施例中,帧序列保存模块,用于根据目标差分区块在目标图像帧的区域位置以及区域大小,生成差分图像信息;基于差分图像信息以及参考图像帧,对图像帧序列进行保存。In some embodiments of the present application, a frame sequence saving module is used to generate differential image information according to the regional position and regional size of the target differential block in the target image frame; and save the image frame sequence based on the differential image information and the reference image frame.
关于图像帧序列处理装置的具体限定可以参见上文中对于图像帧序列处理方法的限定,在此不再赘述。上述图像帧序列处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the image frame sequence processing device, please refer to the definition of the image frame sequence processing method above, which will not be repeated here. Each module in the above-mentioned image frame sequence processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在本申请一些实施例中,图像帧序列处理装置700可以实现为一种计算机程序的形式,计算机程序可在如图8所示的计算机设备上运行。计算机设备的存储器中可存储组成该图像帧序列处理装置700的各个程序模块,比如,图7所示的图像帧获取模块710、差分像素获取模块720、差分区块合并730以及帧序列保存模块740。各个程序模块构成的计算机程序使得处理器执行本说明书中描述的本申请各个实施例的图像帧序列处理方法中的步骤。In some embodiments of the present application, the image frame sequence processing device 700 can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in FIG8. The memory of the computer device can store various program modules constituting the image frame sequence processing device 700, such as the image frame acquisition module 710, the differential pixel acquisition module 720, the differential block merging 730, and the frame sequence saving module 740 shown in FIG7. The computer program composed of various program modules enables the processor to execute the steps of the image frame sequence processing method of various embodiments of the present application described in this specification.
例如,图8所示的计算机设备可以通过如图7所示的图像帧序列处理装置700中的图 像帧获取模块710执行步骤S210。计算机设备可通过差分像素获取模块720执行步骤S220。计算机设备可通过差分区块合并730执行步骤S230。计算机设备可通过差分区块合并740执行步骤S240。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的计算机设备通过网络连接通信。该计算机程序被处理器执行时以实现一种图像帧序列处理方法。For example, the computer device shown in FIG8 can be used in the image frame sequence processing device 700 shown in FIG7 The image frame acquisition module 710 performs step S210. The computer device can perform step S220 through the differential pixel acquisition module 720. The computer device can perform step S230 through the differential block merging 730. The computer device can perform step S240 through the differential block merging 740. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external computer device through a network connection. When the computer program is executed by the processor, an image frame sequence processing method is implemented.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 8 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
在本申请一些实施例中,提供了一种计算机设备,包括一个或多个处理器;存储器;以及一个或多个应用程序,其中所述一个或多个应用程序被存储于所述存储器中,并配置为由所述处理器执行上述图像帧序列处理方法的步骤。此处图像帧序列处理方法的步骤可以是上述各个实施例的图像帧序列处理方法中的步骤。In some embodiments of the present application, a computer device is provided, comprising one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor in the steps of the above-mentioned image frame sequence processing method. The steps of the image frame sequence processing method here may be the steps of the image frame sequence processing method in each of the above-mentioned embodiments.
在本申请一些实施例中,提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器进行加载,使得处理器执行上述图像帧序列处理方法的步骤。此处图像帧序列处理方法的步骤可以是上述各个实施例的图像帧序列处理方法中的步骤。In some embodiments of the present application, a computer-readable storage medium is provided, which stores a computer program, and the computer program is loaded by a processor, so that the processor executes the steps of the above-mentioned image frame sequence processing method. The steps of the image frame sequence processing method here can be the steps of the image frame sequence processing method in each of the above-mentioned embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
以上对本申请实施例所提供的一种图像帧序列处理方法、装置、计算机设备以及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The above is a detailed introduction to an image frame sequence processing method, device, computer equipment and storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims (20)

  1. 一种图像帧序列处理方法,其中,所述方法包括:A method for processing an image frame sequence, wherein the method comprises:
    获取图像帧序列中的目标图像帧以及所述目标图像帧对应的参考图像帧;Acquire a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame;
    按照差分步次序获取所述目标图像帧以及所述参考图像帧间的差分像素点,基于当前差分步的目标差分像素点更新所述目标图像帧中的第一差分区块;Acquire differential pixels between the target image frame and the reference image frame in a differential step order, and update a first differential block in the target image frame based on a target differential pixel of a current differential step;
    若所述第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于所述第一差分区块以及所述第二差分区块生成目标差分区块;其中,所述第二差分区块为所述目标图像帧中的除第一差分区块以外的差分区块;If the distance value between the first difference block and the second difference block is less than a preset distance threshold, generating a target difference block based on the first difference block and the second difference block; wherein the second difference block is a difference block in the target image frame except the first difference block;
    在当前差分步的目标差分像素点为最后一个差分像素点时,基于所述目标差分区块,对所述图像帧序列进行保存。When the target differential pixel point of the current differential step is the last differential pixel point, the image frame sequence is saved based on the target differential block.
  2. 根据权利要求1所述的方法,其中,所述基于当前差分步的目标差分像素点更新所述目标图像帧中的第一差分区块的步骤,包括:The method according to claim 1, wherein the step of updating the first differential block in the target image frame based on the target differential pixel point of the current differential step comprises:
    获取所述目标图像帧中的历史差分区块;Acquire a historical difference block in the target image frame;
    若所述目标差分像素点不在所述历史差分区块中的任意一个差分区块内,将距离所述目标差分像素点值小于预设距离阈值的历史差分区块确定为第一差分区块,并基于所述当前差分步的目标差分像素点更新所述第一差分区块。If the target differential pixel point is not in any differential block in the historical differential blocks, the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold is determined as the first differential block, and the first differential block is updated based on the target differential pixel point of the current differential step.
  3. 根据权利要求2所述的方法,其中,所述获取所述目标图像帧中的历史差分区块的步骤之后,还包括:The method according to claim 2, wherein after the step of obtaining the historical difference block in the target image frame, the method further comprises:
    若所述目标差分像素点不在所述历史差分区块中的任意一个差分区块内,且所述历史差分区块中任意差分区块与所述目标差分像素点间的距离值均大于或等于所述预设距离阈值,基于所述目标差分像素点生成第一差分区块。If the target differential pixel point is not in any differential block in the historical differential blocks, and the distance value between any differential block in the historical differential blocks and the target differential pixel point is greater than or equal to the preset distance threshold, a first differential block is generated based on the target differential pixel point.
  4. 根据权利要求1所述的方法,其中,所述基于所述第一差分区块以及所述第二差分区块生成目标差分区块的步骤之后,还包括:The method according to claim 1, wherein after the step of generating a target differential block based on the first differential block and the second differential block, the method further comprises:
    将所述目标差分区块确定为新的第一差分区块,继续执行若所述第一差分区块与第二差分区块间的距离值小于所述预设距离阈值,基于所述第一差分区块以及所述第二差分区块生成目标差分区块的步骤。The target differential block is determined as a new first differential block, and if the distance value between the first differential block and the second differential block is less than the preset distance threshold, the step of generating a target differential block based on the first differential block and the second differential block is continued.
  5. 根据权利要求1所述的方法,其中,所述按照差分步次序获取所述目标图像帧以及所述参考图像帧间的差分像素点的步骤,包括:The method according to claim 1, wherein the step of acquiring the differential pixel points between the target image frame and the reference image frame in a differential step order comprises:
    按照差分步次序获取所述目标图像帧在当前坐标点上的第一像素数据以及所述参考图像帧在所述当前坐标点上的第二像素数据;Acquire the first pixel data of the target image frame at the current coordinate point and the second pixel data of the reference image frame at the current coordinate point in a differential step order;
    若所述第一像素数据与所述第二像素数据不相同,则将所述当前坐标点的像素点确定为差分像素点。If the first pixel data is different from the second pixel data, the pixel point of the current coordinate point is determined as a differential pixel point.
  6. 根据权利要求1所述的方法,其中,所述按照差分步次序获取所述目标图像帧以及所述参考图像帧间的差分像素点的步骤,包括:The method according to claim 1, wherein the step of acquiring the differential pixel points between the target image frame and the reference image frame in a differential step order comprises:
    按照差分步次序获取所述目标图像帧在当前坐标点上的第一透明度参数以及所述参考图像帧在当前坐标点上的第二透明度参数;Acquire a first transparency parameter of the target image frame at the current coordinate point and a second transparency parameter of the reference image frame at the current coordinate point in a differential step order;
    若所述第一透明度参数与所述第二透明度参数中的一个大于预设透明度参数且另一个小于或等于所述预设透明度参数,将所述当前坐标点的像素点确定为差分像素点;If one of the first transparency parameter and the second transparency parameter is greater than a preset transparency parameter and the other is less than or equal to the preset transparency parameter, determining the pixel point of the current coordinate point as a differential pixel point;
    若所述第一透明度参数与所述第二透明度参数均大于预设透明度参数,则获取所述目标图像帧在当前坐标点上的第一RGB参数以及所述参考图像帧在所述当前像素点上的第二RGB参数;If the first transparency parameter and the second transparency parameter are both greater than a preset transparency parameter, obtaining a first RGB parameter of the target image frame at the current coordinate point and a second RGB parameter of the reference image frame at the current pixel point;
    若所述第一RGB参数与所述第二RGB参数不相同,则将所述当前坐标点的像素点确定为差分像素点。If the first RGB parameter is different from the second RGB parameter, the pixel point of the current coordinate point is determined as a differential pixel point.
  7. 根据权利要求1所述的方法,其中,所述获取图像帧序列中的目标图像帧以及所述 目标图像帧对应的参考图像帧的步骤之前,还包括:The method according to claim 1, wherein the target image frame in the acquired image frame sequence and the Before the step of obtaining a reference image frame corresponding to the target image frame, the method further includes:
    获取所述图像帧序列的图像宽度以及图像高度;Obtaining the image width and image height of the image frame sequence;
    确定所述图像宽度与所述图像高度中的最大值,基于所述最大值确定预设距离阈值。A maximum value between the image width and the image height is determined, and a preset distance threshold is determined based on the maximum value.
  8. 根据权利要求1所述的方法,其中,所述基于所述目标差分区块,对所述图像帧序列进行保存的步骤,包括:The method according to claim 1, wherein the step of saving the image frame sequence based on the target difference block comprises:
    根据所述目标差分区块在目标图像帧的区域位置以及区域大小,生成差分图像信息;Generate differential image information according to the area position and area size of the target differential block in the target image frame;
    基于所述差分图像信息以及所述参考图像帧,对所述图像帧序列进行保存。The image frame sequence is saved based on the differential image information and the reference image frame.
  9. 根据权利要求1所述的方法,其中,所述目标图像帧是指所述图像帧序列中待处理的一帧图像帧;所述参考图像帧是所述目标图像帧时序上的前一帧、且与所述目标图像帧在时序上相邻的图像帧。According to the method of claim 1, wherein the target image frame refers to an image frame to be processed in the image frame sequence; the reference image frame is an image frame that is previous to the target image frame in time sequence and is adjacent to the target image frame in time sequence.
  10. 根据权利要求2所述的方法,其中,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    若所述目标差分像素点在所述历史差分区块中的某个差分区块内,将所述某个差分区块确定为当前差分步的目标差分像素点对应的第一差分区块。If the target differential pixel point is within a differential block in the historical differential blocks, the differential block is determined as a first differential block corresponding to the target differential pixel point in the current differential step.
  11. 根据权利要求7所述的方法,其中,所述基于所述最大值确定预设距离阈值,包括:The method according to claim 7, wherein determining a preset distance threshold based on the maximum value comprises:
    将所述最大值除以n所得到的值作为所述预设距离阈值,其中,n为整数,n取值范围为[5,10]。The value obtained by dividing the maximum value by n is used as the preset distance threshold, where n is an integer and the value range of n is [5, 10].
  12. 根据权利要求1所述的方法,其中,所述第一差分区块与所述第二差分区块间的距离值为按照以下方式确定的:The method according to claim 1, wherein the distance value between the first difference block and the second difference block is determined in the following manner:
    获取所述第一差分区块的中心坐标,以及获取所述第二差分区块的中心坐标;Acquire the center coordinates of the first difference block, and acquire the center coordinates of the second difference block;
    基于所述第一差分区块的中心坐标与所述第二差分区块的中心坐标间的距离,确定为所述第一差分区块与所述第二差分区块间的距离值。Based on the distance between the center coordinates of the first differential block and the center coordinates of the second differential block, a distance value between the first differential block and the second differential block is determined.
  13. 根据权利要求1所述的方法,其中,所述第一差分区块与所述第二差分区块间的距离值为按照以下方式确定的:The method according to claim 1, wherein the distance value between the first difference block and the second difference block is determined in the following manner:
    获取所述第一差分区块的边界与所述第二差分区块边界间的最短距离值;Obtaining the shortest distance between the boundary of the first difference block and the boundary of the second difference block;
    将所述最短距离值确定为所述第一差分区块与所述第二差分区块的距离值。The shortest distance value is determined as a distance value between the first difference block and the second difference block.
  14. 一种图像帧序列处理装置,其中,所述装置包括:An image frame sequence processing device, wherein the device comprises:
    图像帧获取模块,用于获取图像帧序列中的目标图像帧以及所述目标图像帧对应的参考图像帧;An image frame acquisition module, used to acquire a target image frame in an image frame sequence and a reference image frame corresponding to the target image frame;
    差分像素获取模块,用于按照差分步次序获取所述目标图像帧以及所述参考图像帧间的差分像素点,基于当前差分步的目标差分像素点更新所述目标图像帧中的第一差分区块;A differential pixel acquisition module, used for acquiring differential pixel points between the target image frame and the reference image frame in a differential step order, and updating a first differential block in the target image frame based on a target differential pixel point of a current differential step;
    差分区块合并模块,用于在所述第一差分区块与第二差分区块间的距离值小于预设距离阈值时,基于所述第一差分区块以及所述第二差分区块生成目标差分区块;其中,所述第二差分区块为所述目标图像帧中的除第一差分区块以外的差分区块;a difference block merging module, configured to generate a target difference block based on the first difference block and the second difference block when the distance value between the first difference block and the second difference block is less than a preset distance threshold; wherein the second difference block is a difference block in the target image frame except the first difference block;
    帧序列保存模块,用于在当前差分步的目标差分像素点为最后一个差分像素点时,基于所述目标差分区块,对所述图像帧序列进行保存。The frame sequence saving module is used to save the image frame sequence based on the target differential block when the target differential pixel point of the current differential step is the last differential pixel point.
  15. 根据权利要求14所述的装置,其中,所述差分像素获取模块,具体用于:获取目标图像帧中的历史差分区块;若目标差分像素点不在历史差分区块中的任意一个差分区块内,将距离目标差分像素点值小于预设距离阈值的历史差分区块确定为第一差分区块,并基于当前差分步的目标差分像素点更新第一差分区块。The device according to claim 14, wherein the differential pixel acquisition module is specifically used to: acquire a historical differential block in the target image frame; if the target differential pixel point is not in any differential block in the historical differential blocks, determine the historical differential block whose distance to the target differential pixel point is less than a preset distance threshold as the first differential block, and update the first differential block based on the target differential pixel point of the current differential step.
  16. 根据权利要求15所述的装置,其中,所述差分像素获取模块,具体用于:若目标差分像素点不在历史差分区块中的任意一个差分区块内,且历史差分区块中任意差分区块与目标差分像素点间的距离值均大于或等于预设距离阈值,基于目标差分像素点生成第一差分区块。 According to the device according to claim 15, the differential pixel acquisition module is specifically used to: if the target differential pixel point is not in any differential block in the historical differential blocks, and the distance value between any differential block in the historical differential blocks and the target differential pixel point is greater than or equal to a preset distance threshold, generate a first differential block based on the target differential pixel point.
  17. 根据权利要求14所述的装置,其中,所述差分区块合并模块,具体还用于:将目标差分区块确定为新的第一差分区块,继续执行若第一差分区块与第二差分区块间的距离值小于预设距离阈值,基于第一差分区块以及第二差分区块生成目标差分区块的步骤。The device according to claim 14, wherein the difference block merging module is further configured to: determine the target difference block as a new first difference block, and continue to execute the step of generating the target difference block based on the first difference block and the second difference block if the distance value between the first difference block and the second difference block is less than a preset distance threshold.
  18. 根据权利要求15所述的装置,其中,所述差分像素获取模块,用于:按照差分步次序获取目标图像帧在当前坐标点上的第一像素数据以及参考图像帧在当前坐标点上的第二像素数据;若第一像素数据与第二像素数据不相同,则将当前坐标点的像素点确定为差分像素点。According to the device according to claim 15, the differential pixel acquisition module is used to: acquire the first pixel data of the target image frame at the current coordinate point and the second pixel data of the reference image frame at the current coordinate point in a differential step order; if the first pixel data is different from the second pixel data, the pixel point of the current coordinate point is determined as the differential pixel point.
  19. 一种计算机设备,其中,所述计算机设备包括:A computer device, wherein the computer device comprises:
    一个或多个处理器;one or more processors;
    存储器;以及Memory; and
    一个或多个应用程序,其中所述一个或多个应用程序被存储于所述存储器中,并配置为由所述处理器执行以实现权利要求1至13中任一项所述的图像帧序列处理方法。One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the image frame sequence processing method according to any one of claims 1 to 13.
  20. 一种计算机可读存储介质,其中,其上存储有计算机程序,所述计算机程序被处理器进行加载,以执行权利要求1至13任一项所述的图像帧序列处理方法中的步骤。 A computer-readable storage medium, wherein a computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the image frame sequence processing method according to any one of claims 1 to 13.
PCT/CN2023/111458 2022-10-10 2023-08-07 Image frame sequence processing method and apparatus, computer device, and storage medium WO2024078106A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211237073.3A CN117132669A (en) 2022-10-10 2022-10-10 Image frame sequence processing method, device, computer equipment and storage medium
CN202211237073.3 2022-10-10

Publications (1)

Publication Number Publication Date
WO2024078106A1 true WO2024078106A1 (en) 2024-04-18

Family

ID=88855212

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/111458 WO2024078106A1 (en) 2022-10-10 2023-08-07 Image frame sequence processing method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN117132669A (en)
WO (1) WO2024078106A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679698A (en) * 2012-09-26 2014-03-26 通用电气公司 System and method for detection and tracking of moving objects
JP2018092547A (en) * 2016-12-07 2018-06-14 キヤノン株式会社 Image processing apparatus, image processing method, and program
CN109076233A (en) * 2016-04-19 2018-12-21 三菱电机株式会社 Image processing apparatus, image processing method and image processing program
CN109379594A (en) * 2018-10-31 2019-02-22 北京佳讯飞鸿电气股份有限公司 Video coding compression method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679698A (en) * 2012-09-26 2014-03-26 通用电气公司 System and method for detection and tracking of moving objects
CN109076233A (en) * 2016-04-19 2018-12-21 三菱电机株式会社 Image processing apparatus, image processing method and image processing program
JP2018092547A (en) * 2016-12-07 2018-06-14 キヤノン株式会社 Image processing apparatus, image processing method, and program
CN109379594A (en) * 2018-10-31 2019-02-22 北京佳讯飞鸿电气股份有限公司 Video coding compression method, device, equipment and medium

Also Published As

Publication number Publication date
CN117132669A (en) 2023-11-28

Similar Documents

Publication Publication Date Title
JP6705912B2 (en) Method and apparatus for recognizing character areas in an image
JP7175197B2 (en) Image processing method and device, storage medium, computer device
US11783522B2 (en) Animation rendering method and apparatus, computer-readable storage medium, and computer device
US8194974B1 (en) Merge and removal in a planar map of an image
WO2021115136A1 (en) Anti-shake method and apparatus for video image, electronic device, and storage medium
CN109977952B (en) Candidate target detection method based on local maximum
US7929755B1 (en) Planar map to process a raster image
CN111681165A (en) Image processing method, image processing device, computer equipment and computer readable storage medium
CN115022679B (en) Video processing method, device, electronic equipment and medium
US10121252B2 (en) Image processing apparatus and image processing method
CN113923474B (en) Video frame processing method, device, electronic equipment and storage medium
CN113657518A (en) Training method, target image detection method, device, electronic device, and medium
US20150242988A1 (en) Methods of eliminating redundant rendering of frames
US20180199019A1 (en) Digital image conversion method and apparatus, storage medium, and device
WO2024078106A1 (en) Image frame sequence processing method and apparatus, computer device, and storage medium
JPWO2019041842A5 (en)
WO2023174137A1 (en) Image processing method and apparatus, and computer device and storage medium
CN111477183A (en) Reader refresh method, computing device, and computer storage medium
CN111445411A (en) Image denoising method and device, computer equipment and storage medium
CN107506119B (en) Picture display method, device, equipment and storage medium
CN113608809B (en) Layout method, device, equipment, storage medium and program product of components
EP3722949A1 (en) Image transmission method, apparatus and storage medium
CN112929562B (en) Video jitter processing method, device, equipment and storage medium
CN109698977B (en) Video image restoration method and device
WO2024087971A1 (en) Method and apparatus for image processing, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23876312

Country of ref document: EP

Kind code of ref document: A1