WO2022095742A1 - Image and video processing methods and systems, and data processing device and medium - Google Patents

Image and video processing methods and systems, and data processing device and medium Download PDF

Info

Publication number
WO2022095742A1
WO2022095742A1 PCT/CN2021/126137 CN2021126137W WO2022095742A1 WO 2022095742 A1 WO2022095742 A1 WO 2022095742A1 CN 2021126137 W CN2021126137 W CN 2021126137W WO 2022095742 A1 WO2022095742 A1 WO 2022095742A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
detail
processing
local area
target pixel
Prior art date
Application number
PCT/CN2021/126137
Other languages
French (fr)
Chinese (zh)
Inventor
梁建华
Original Assignee
晶晨半导体(上海)股份有限公司
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 晶晨半导体(上海)股份有限公司 filed Critical 晶晨半导体(上海)股份有限公司
Publication of WO2022095742A1 publication Critical patent/WO2022095742A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/30Transforming light or analogous information into electric information
    • H04N5/32Transforming X-rays
    • H04N5/321Transforming X-rays with video transmission of fluoroscopic images
    • H04N5/325Image enhancement, e.g. by subtraction techniques using polyenergetic X-rays

Definitions

  • the embodiments of this specification relate to the technical field of data processing, and in particular, to an image and video processing method and system, data processing device, and medium.
  • the imaging quality of multimedia information shot in the past is poor, such as there is more noise, and the pixel resolution is low.
  • the display device has a higher display resolution, and the pixel levels of the two do not match. Therefore, when displaying multimedia information taken in the past on the existing display device, problems such as unclear picture and rough picture quality are prone to occur, affecting users. viewing experience.
  • image enhancement technology can be used to optimize the multimedia information recorded in the past.
  • the image enhancement technology may specifically include a resolution enhancement method, a frame rate enhancement method, a pixel quality enhancement method, and the like.
  • the resolution enhancement method is more commonly used in electronic products such as mobile phones, computers, and televisions.
  • the resolution enhancement method amplifies the multimedia information of low resolution (LR), hoping to achieve an ideal high resolution (High Resolution, HR) state, enhance the resolution of multimedia information, and then increase the resolution of multimedia information at the pixel level. Better viewing experience on taller display devices.
  • the traditional resolution enhancement methods have problems such as blurring and confusion.
  • an improved resolution enhancement method and a deep learning-based resolution enhancement method are proposed.
  • the improved resolution enhancement method optimizes the edge of the image, the algorithm logic is more complex and does not optimize the rest of the image; while the resolution enhancement method based on deep learning can improve the overall image quality, it consumes computing resources huge, and the implementation cost is high.
  • the embodiments of the present specification provide an image and video processing method, system, data processing device, and medium thereof, which can improve both image quality and processing efficiency.
  • An embodiment of this specification provides an image processing method, including: extracting image features of an original image to obtain a first detail image; selecting target pixels and a local area from the first detail image, where the local area includes the target pixel; based on the statistical relationship between other pixels in the local area and the target pixel, calculate the corresponding statistical feature information, and update the statistical feature information to the color of the target pixel in the first detail image information to obtain a second detailed image; and combining the second detailed image and the original image to obtain a composite image.
  • the embodiments of the present specification also provide a video processing method, including: extracting image features of a target video frame in a video stream to obtain a first detail image; selecting target pixels and local areas from the first detail image, the local The target pixel is included in the area; based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated, and the statistical feature information is updated to the first detail image
  • the color information of the target pixel is obtained to obtain a second detail image; the second detail image and the target video frame are combined to obtain a composite video frame.
  • the embodiments of this specification also provide an image processing system, including: a detail extraction module, adapted to extract image features of an original image to obtain a first detail image; a detail generation module, adapted to select a target from the first detail image pixel and local area, the local area includes the target pixel, and based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated, and the statistical feature information is calculated.
  • the color information of the target pixel in the first detailed image is updated to obtain a second detailed image; the image synthesis module is adapted to combine the second detailed image and the original image to obtain a composite image.
  • the embodiments of this specification also provide a video processing system, including: a detail extraction module, adapted to extract image features of a target video frame in a video stream to obtain a first detail image; a detail generation module, adapted to extract the first detail image from the first detail image
  • the target pixel and local area are selected in the image, the local area includes the target pixel, and based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated and obtained.
  • the statistical feature information is updated to the color information of the target pixel in the first detailed image to obtain a second detailed image; a video synthesis module is adapted to combine the second detailed image and the target video frame to obtain a composite video frame.
  • Embodiments of the present specification further provide a data processing device, including a memory and a processor, where the memory stores computer instructions that can be run on the processor, and the processor executes any of the above when running the computer instructions. The steps of the method of an embodiment.
  • the embodiments of the present specification further provide a computer-readable storage medium on which computer instructions are stored, and when the computer instructions are executed, the steps of the method described in any one of the foregoing embodiments are executed.
  • the corresponding statistical feature information can be obtained by calculating the statistical relationship between the target pixel and other pixels in the local area, whereby, the statistical characteristics between the image pixels are used to predict the subtle image features implicit in the local area, and after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains the subtle image features, Then, the second detailed image and the original image are combined to enrich the image features of the original image, reasonably improve the defect of blurred details of the original image, make the image have stronger detail expression ability, and improve the image quality.
  • the logic complexity of the image processing solution of the embodiment is low, and the processing efficiency is improved. Therefore, the image processing solution provided in this specification can improve both the image quality and the processing efficiency.
  • the video processing solution of the embodiment of this specification After the image features of the target video frame in the video stream are extracted to obtain the first detailed image, the corresponding Statistical feature information, so as to use the statistical properties between image pixels to predict the subtle image features implicit in the local area, after updating the statistical feature information to the color information of the corresponding target pixel, the obtained second detail image contains Subtle image features, and then the second detailed image and the target video frame are combined to enrich the image features of the target video frame, reasonably improve the defect of blurred details of the video picture, so that the image has a stronger ability to express details and improve the performance of the target video frame.
  • image quality, and the logic complexity of the video processing solution in the embodiments of this specification is low, which improves processing efficiency, so the video processing solution provided in this specification can improve both image quality and processing efficiency.
  • FIG. 1 is a flowchart of an image processing method in an embodiment of the present specification.
  • FIG. 2 is a schematic diagram of a filtering method in an embodiment of the present specification.
  • Fig. 3a is a schematic diagram of an original image in the embodiment of the present specification.
  • FIG. 3b is a schematic diagram of a first detailed image in an embodiment of the present specification.
  • FIG. 4 is a schematic diagram of selecting a target pixel and a local area in an embodiment of the present specification.
  • FIG. 5 is a schematic diagram of another selection of target pixels and local regions in the embodiment of the present specification.
  • FIG. 6 is a schematic diagram of a partial region in the embodiment of the present specification.
  • FIG. 7 is a schematic diagram of a partial area of a target pixel after the color information of the target pixel is updated according to an embodiment of the present specification.
  • FIG. 8 is a schematic diagram of a composite image in an embodiment of the present specification.
  • FIG. 9 is a structural block diagram of an image processing system in an embodiment of the present specification.
  • FIG. 10 is a flowchart of an image processing system in the embodiment of the present specification.
  • FIG. 11 is a flowchart of a video processing method in an embodiment of the present specification.
  • FIG. 12 is a structural block diagram of a video processing system in an embodiment of this specification.
  • the resolution enhancement method is more commonly used in electronic products such as mobile phones, computers, and televisions.
  • traditional resolution enhancement methods may include: a nearest neighbor interpolation (Nearest interpolation) algorithm, a bilinear interpolation (Bilinear interpolation) algorithm, a bicubic interpolation (Bicubic interpolation) algorithm, and the like.
  • Nearest interpolation Nearest interpolation
  • Bilinear interpolation bilinear interpolation
  • Boicubic interpolation bicubic interpolation
  • the resolution enhancement method based on deep learning can improve the overall quality of the image.
  • neural networks such as GAN (Generative Adversarial Network, Generative Adversarial Network) can be used to implement deep learning to add virtual details to images.
  • GAN Geneative Adversarial Network, Generative Adversarial Network
  • the algorithmic logic of the resolution enhancement method based on deep learning is more complicated, and a large amount of data calculation is required, which consumes a lot of computing resources.
  • the embodiments of this specification provide an image processing solution. After the image features of the original image are extracted, the statistical characteristics between the pixels in the local area can be used to update the image features in the local area. The color information of pixels, thereby increasing subtle image features, improving image quality, reducing the complexity of algorithm logic, and improving processing efficiency.
  • the method may include the following steps:
  • SA1 extract the image features of the original image to obtain the first detail image.
  • the image features may include: color features, texture features, shape features, spatial relationship features, and the like.
  • the original image may be a color image, a grayscale image, or a black and white image.
  • the original image can be obtained by reading the image data recorded on the designated storage address.
  • the original image before extracting the image features of the original image, may be grayscaled to obtain a grayscale original image, which is used as the object of feature extraction processing; or, before extracting the image features of the original image, you can The original image is binarized to obtain a black and white original image, which is used as the object of feature extraction.
  • corresponding feature extraction methods can be used to extract image features such as color features, texture features, shape features, and spatial relationship features of the original image, thereby obtaining detailed information carried by the original image. , to obtain the first detailed image, which is used as the basis for the subsequent acquisition of the second detailed image.
  • an image feature of the original image can be extracted by using a filtering method on the original image.
  • a filtering method on the original image.
  • the filter window Blk is in accordance with the preset moving direction and the preset moving step size, and Based on the preset filter coefficients, filter processing is performed on the pixels in the filter window Blk to extract image features of the original image.
  • the filtering processing may include mean filtering processing, median filtering processing, Gaussian filtering processing, bilateral filtering processing, etc., and the filtering processing may be performed based on a two-dimensional coordinate system.
  • a rectangular frame formed by the dotted line in the original image P1 represents one pixel
  • the moving direction can be set in the order from left to right and from top to bottom
  • the preset moving step can be one pixel .
  • the first detail image is obtained after the filtering process of the filtering window Blk.
  • the original image shown in FIG. 2 does not contain any image features.
  • the original image may contain more pixels and have more abundant image features. This does not limit.
  • Fig. 3a which is a schematic diagram of an original image
  • the first detail image P3 can be obtained after the original image P2 is filtered.
  • the first detail image P3 shown in Fig. 3b A detail image P3 removes the pixel information that changes gently, and retains the pixel information of the area that changes significantly.
  • FIG. 2 is only a schematic illustration of using the filtering method to obtain the first detailed image.
  • the relevant parameters of the filtering method can be adjusted according to the filtering requirements.
  • the filtering window can be adjusted.
  • the embodiments of the present specification do not limit this.
  • LBP local binary pattern
  • SA2 Select a target pixel and a local area from the first detail image, and the local area includes the target pixel.
  • the target pixel and the local area may be selected according to actual settings.
  • the selection method of the target pixel and the local area may include:
  • the target pixel is selected from the first detail image, and a local area including the target pixel is selected based on a preset area geometric parameter.
  • the selection conditions and regional geometric parameters can be set according to actual needs and scenarios, for example, target pixels can be selected according to a preset position, or target pixels can be selected according to a preset order; for example, the regional geometric parameters It can include parameters of regular graphics such as circles, rings, and lines, as well as parameters of irregular graphics. The embodiments of the present specification do not limit this.
  • the selection condition may be: select the pixel in the 3 ⁇ i row and the 3 ⁇ j column as the target pixel
  • the regional geometric parameters may include: a side length of 5 ⁇ 5 (pixels) , where i and j are both positive integers.
  • i and j are both positive integers.
  • the pixel A in the third row and the third column is the target pixel, and a 5 ⁇ 5 (pixel) size is generated. Rectangular local area so that the resulting local area contains pixel A.
  • at least one eligible target pixel and its corresponding local area can be obtained.
  • the selection condition may be: select the pixel in the 3 ⁇ i row and the 3 ⁇ j column as the target pixel, and the area geometric parameter may be a 5 ⁇ 5 (pixel) cross shape . .
  • the area geometric parameter may be a 5 ⁇ 5 (pixel) cross shape . .
  • the pixel A in the third row and the third column is the target pixel, and a 5 ⁇ 5 (pixel) size is generated.
  • a cross-shaped local area, so that the resulting local area contains pixel A.
  • the local area may be generated with the target pixel as the center pixel.
  • a local area Fa of a size of 5 ⁇ 5 (pixels) may be generated with the pixel A as the center.
  • a local area Fb with a size of 5 ⁇ 5 (pixels) may be generated with the pixel A as the center.
  • the first detail images shown in FIG. 4 and FIG. 5 do not contain any image features.
  • the first detail images may contain more pixels and have more abundant images. feature, which is not limited in the embodiments of this specification.
  • SA3 based on the statistical relationship between other pixels in the local area and the target pixel, calculate the corresponding statistical feature information, and update the statistical feature information to the color information of the target pixel in the first detail image , to get the second detail image.
  • the statistical relationship can represent the relationship between other pixels in the local area and the relevant statistics of the target pixel; the statistical feature information can be regarded as a kind of statistics, and the statistical feature information can be used for Characterize the subtle image features implicit in the local area.
  • the selected local area can represent the local native detail in the first detail image, and statistical feature information can be obtained through the statistical characteristics between the pixels in the local area, and then the target pixel can be updated. to obtain a second detailed image containing subtle image features.
  • the local area Fc is a rectangular area with a size of 5 ⁇ 5 (pixels) selected from the first detail image, and the local area Fc is divided by a dotted line and formed
  • the rectangular box represents a pixel
  • the target pixel C is the central pixel of the local area Fc.
  • Fig. 7 only shows the local area Fc' after the color information of the corresponding target pixel in the second detailed image is updated. Compared with Fig. 6, it can be seen that the color information of the target pixel C has changed.
  • a color condition in order to reduce the amount of calculation and ensure the color invariance and rotation invariance of the local area, a color condition can be set. After acquiring the color information of other pixels in the local area, you can For color conditions, the pixels that meet the color conditions are determined from the local area, and the calculation is performed based on other pixels that meet the color conditions in the local area to obtain the corresponding statistical feature information of the target pixels.
  • the color condition is set according to original color information of the target pixel. For example, if the original color information of the target pixel is pixel1, then pixel1 can be used as the color threshold, and when the color information of other pixels is not less than the color threshold pixel1, the other pixels meet the color condition.
  • the calculation based on other pixels that meet the color conditions in the local area to obtain the corresponding statistical feature information of the target pixel may specifically include: obtaining a preset statistical coefficient matrix, the statistical coefficient matrix and the statistical coefficient matrix. There is a corresponding relationship between the pixels in the local area. According to the position information of other pixels in the local area that meet the color conditions, the statistical coefficients of the corresponding positions are obtained from the statistical coefficient matrix, and the statistical features are calculated according to the preset statistical relationship. information.
  • the corresponding target pixels and local areas may be processed according to a preset order, or at least part of the corresponding target pixels may be obtained according to a preset number and local areas are processed.
  • This specification does not limit the processing order of the plurality of corresponding target pixels and local regions.
  • SA4 combine the second detail image and the original image to obtain a composite image.
  • the second detailed image P6 may be superimposed with the original image P2 to obtain a composite image P2'.
  • the corresponding statistical feature information can be calculated through the statistical relationship between the target pixel and other pixels in the local area, so that the statistical features between image pixels can be used to predict.
  • the subtle image features hidden in the local area after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The original images are merged to enrich the image features of the original images, and reasonably improve the defects of blurred details of the original images, so that the images have a stronger ability to express details and improve the image quality.
  • the image processing method provided in this specification can reasonably improve the defect of blurred details of the original image; compared with the resolution enhancement method of deep learning,
  • the image processing method provided in this specification greatly reduces the complexity of algorithm logic and improves processing efficiency while effectively predicting the subtle image features implicit in the local area.
  • the image processing method provided in this specification can improve both image quality and processing efficiency.
  • the image processing method provided in this specification improves processing efficiency, it can meet the needs of real-time image processing, enable existing display devices to display composite images with more details in real time, optimize visual effects, and effectively Improve user viewing experience.
  • the image processing method provided in this specification can improve both image quality and processing efficiency, it has a wider range of application scenarios. It can not only improve the image quality of the images captured in the past, but also can be used when the resolution of the shooting device is insufficient. , the quality of the image data collected by the photographing device is improved by the image processing method provided in this specification, so that the image displayed in real time on the display device has more details.
  • the pixels in the second detailed image may be in a higher frequency band, which is likely to generate noise. Therefore, when combining the second detailed image and the Before the original image, noise reduction processing may be performed on the second detail image, so as to combine the second detail image after noise reduction processing with the original image.
  • the following is a schematic illustration of how to perform noise reduction processing on the second detail image through several embodiments.
  • smoothing before merging the second detail image and the original image, smoothing may be performed on the second detail image, so as to combine the smoothed second detail image and the original image Merge.
  • the smoothing process may select a corresponding filtering method according to the actual situation, such as a Gaussian low-pass filtering method, a bilateral filtering method, and the like. The embodiments of the present specification do not limit this.
  • the filtering method with fixed parameters can remove the noise in the image, but it will lose a lot of image details, making the image blurred. detail.
  • the smoothing processing on the second detail image may include: performing guide filtering processing on the second detail image based on a preset guide image.
  • the original image can be used as the guide image, and based on the original image, The second detail image is subjected to guided filtering processing.
  • image modulation processing may be performed on the second detail image based on a preset modulation image, so that the modulated image The second detail image and the original image are merged.
  • the modulated image may be an image set according to modulated prior data or modulated test data.
  • the image processing method provided in this specification can be combined with the method for realizing image enhancement, and has better compatibility and adaptability.
  • the method may further include: using a resolution boosting method to perform a resolution enlarging process on the original image to extract the image features of the original image after the resolution enlarging process, and The second detailed image and the original image after resolution enlargement processing are combined. Therefore, through the resolution amplification process, the resolution of the original image can be improved, which is beneficial to the processing in the subsequent steps.
  • the present specification also provides an image processing system corresponding to the above-mentioned image processing method, which will be described in detail below through specific embodiments with reference to the accompanying drawings. It should be known that the image processing system described below can be considered as the functional modules required to implement the image processing method provided in this specification; the content of the image processing system described below can be compared with the content of the image processing method described above. refer to each other.
  • the image processing system 90 may include: a detail extraction module 91, adapted to extract image features of the original image, A first detail image is obtained; the detail generation module 92 is adapted to select a target pixel and a local area from the first detail image, the local area includes the target pixel, and based on other pixels in the local area and all According to the statistical relationship between the target pixels, the corresponding statistical feature information is obtained by calculation, and the statistical feature information is updated to the color information of the target pixel in the first detailed image to obtain a second detailed image; the image synthesis module 93, suitable for and combining the second detail image and the original image to obtain a composite image.
  • the corresponding statistical feature information can be calculated, so that the statistical features between image pixels can be used to predict.
  • the subtle image features hidden in the local area after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The original images are merged to enrich the image features of the original images, and reasonably improve the defects of blurred details of the original images, so that the images have a stronger ability to express details and improve the image quality.
  • the image processing system provided in this specification can reasonably improve the defect of blurred details of the original image;
  • the image processing system provided in this specification can effectively predict the subtle image features implicit in the local area, and at the same time, it can also greatly reduce the complexity of the algorithm logic and improve the processing efficiency.
  • the image processing method provided in this specification can improve both image quality and processing efficiency.
  • the image processing method provided in this specification improves processing efficiency, it can meet the needs of real-time image processing, enable existing display devices to display composite images with more details in real time, optimize visual effects, and effectively Improve user viewing experience.
  • the image processing system provided in this specification can take into account the improvement of image quality and processing efficiency, it has a wider range of application scenarios.
  • the quality of the image data collected by the photographing device is improved, so that the image displayed in real time on the display device has more details.
  • the detail extraction module can obtain the original image by reading the image data recorded on the specified storage address, wherein the detail extraction module can adopt the reading method of direct reading, or indirectly through other modules.
  • the reading method of reading is not limited in the embodiment of this specification.
  • the detail extraction module can use the corresponding feature extraction method to extract image features such as color features, texture features, shape features, and spatial relationship features of the original image, thereby obtaining the detail information carried by the original image. , to obtain the first detailed image, which is used as the basis for the subsequent acquisition of the second detailed image.
  • image features such as color features, texture features, shape features, and spatial relationship features of the original image.
  • first detailed image which is used as the basis for the subsequent acquisition of the second detailed image.
  • the detail generation module may select the target pixel and the local area according to actual settings. For example, the detail generation module may select the target pixel and the local area in the following selection manner: select the target pixel from the first detail image based on a preset selection condition, and select the target pixel from the first detail image based on a preset selection condition. Geometry parameters, select the local area containing the target pixel.
  • the detail generation module may use the first detail image as a basis, the selected local area may represent the local native detail in the first detail image, and statistical feature information can be obtained through statistical characteristics between pixels in the local area, and then Update the color information of the target pixel to obtain a second detailed image containing subtle image features.
  • the detail generation module may use the first detail image as a basis, the selected local area may represent the local native detail in the first detail image, and statistical feature information can be obtained through statistical characteristics between pixels in the local area, and then Update the color information of the target pixel to obtain a second detailed image containing subtle image features.
  • the detail generation module may process the corresponding target pixels and local areas in a preset order, or obtain at least Part of the corresponding target pixels and local regions are processed. This specification does not limit the order in which the detail generation module processes the plurality of corresponding target pixels and local regions.
  • the image processing system 90 may further include: a detail processing module 94 .
  • the detail processing module 94 is located between the detail generation module 92 and the image synthesis module 93, and is adapted to perform noise reduction processing on the second detail image obtained by the detail generation module 92, and combine the noise reduction processed image.
  • the second detail image is sent to the image synthesis module 93 .
  • the image synthesis module 93 combines the second detail image after noise reduction processing and the original image to obtain a composite image.
  • the image processing system provided in this specification can process an image that has undergone image enhancement, and has better compatibility and adaptability.
  • the image processing system 90 may further include: a resolution processing module 95 .
  • the resolution processing module 95 is respectively connected with the detail extraction module 91 and the image synthesis module 93, and is adapted to perform resolution enlargement processing on the original image, and send the original image after the resolution enlargement processing to the
  • the detail extraction module 91 and the image synthesis module 93 are described.
  • the detail extraction module 91 extracts the image features of the original image after resolution enlargement processing to obtain a first detail image; the image synthesis module 93 combines the second detail image and the original image after resolution enlargement processing to obtain a synthesis image.
  • the resolution of the original image can be improved, which is beneficial to the processing of subsequent modules.
  • the resolution processing module can obtain the original image by reading the image data recorded on the specified storage address, wherein the resolution processing module can adopt the reading method of direct reading, or can adopt other methods of reading.
  • the reading method of the module indirect reading is not limited in the embodiment of this specification.
  • the image processing system 10 may include a resolution processing module 101, a detail extraction module 102, a detail generation module 103, a detail processing module 104, and an image synthesis module 105.
  • the workflow of the image processing system 10 is as follows.
  • the original image Img0 is input to the resolution processing module 101, and the resolution processing module 101 performs resolution enlargement processing on the original image Img0, and outputs the original image Img0' after the resolution enlargement processing to the details Extraction module 102 and the image synthesis module 105 .
  • the detail extraction module 102 extracts the image features of the original image Img0' after the resolution amplification process, and outputs the first detail image Img1 to the detail generation module 103.
  • the detail generation module 103 selects a target pixel and a local area from the first detail image Img1, the local area includes the target pixel, and based on the relationship between other pixels in the local area and the target pixel The statistical relationship between the two is calculated to obtain the corresponding statistical feature information, the statistical feature information is updated to the color information of the target pixel in the first detail image, and the second detail image Img2 is output to the detail processing module 104.
  • the detail processing module 104 performs noise reduction processing on the second detail image Img2, and outputs the second detail image Img2' after the noise reduction processing to the image synthesis module 105.
  • the image synthesis module 105 merges the second detail image Img2' after the noise reduction processing and the original image Img0' after the corresponding resolution amplification processing, and outputs the synthesized image ImgH.
  • the existing resolution enhancement methods have problems such as ambiguity, confusion, and overly complex algorithm logic, which makes it more difficult to apply to video processing with a larger amount of image data.
  • the embodiments of this specification also provide a video processing solution. After extracting the image features of the target video frame, the color information of the pixels in the local area can be updated by using the statistical characteristics between the pixels in the local area, thereby increasing the target video frame. It can improve the image quality, reduce the complexity of algorithm logic and improve processing efficiency.
  • the method may include the following steps.
  • SB1 extract the image features of the target video frame in the video stream to obtain the first detail image.
  • the video stream may be an encoded and compressed video stream (also referred to as an encoded stream), or may be an unencoded and compressed video stream (also referred to as an original stream). If the video stream has been encoded and compressed, before extracting the image features of the target video frame in the video stream, the video stream may be reversely decoded to obtain the original stream.
  • a video frame included in the video stream can be regarded as an image, and by continuously playing the video frames, a dynamic picture can be displayed on the display device. Therefore, after the target video frame in the video stream is determined through the preset target selection condition, image feature extraction can be performed on the target video frame.
  • the target video frame before extracting the image features of the target video frame, can be subjected to grayscale processing to obtain a grayscale target video frame as the object of feature extraction processing; or, after extracting the image of the target video frame Before the feature, the target video frame can be binarized to obtain a black and white target video frame, which can be used as the object of feature extraction processing.
  • target selection conditions can be set according to actual needs and application scenarios, such as selecting video frames according to time intervals, or selecting video frames with specified serial numbers according to sorting, etc.; and, according to target selection conditions, one or more target video frames, the embodiments of this specification do not limit the specific content of the target selection condition and the number of target video frames.
  • corresponding feature extraction methods can be used to extract image features such as color features, texture features, shape features, and spatial relationship features of the target video frame, thereby obtaining the image features carried by the target video frame.
  • the detail information is obtained, and the first detail image is obtained, which is used as the basis for the subsequent acquisition of the second detail image.
  • filtering processing may be performed on the target video frame based on preset geometric parameters of the filtering window and filter coefficients, and the image features of the target video frame may be extracted.
  • SB2 Select a target pixel and a local area from the first detail image, and the local area includes the target pixel.
  • the target pixel and the local area may be selected according to actual settings.
  • the selection method of the target pixel and the local area may include: selecting the target pixel from the first detail image based on a preset selection condition, and selecting the target pixel including the describe the local area of the target pixel.
  • SB3 based on the statistical relationship between other pixels in the local area and the target pixel, calculate the corresponding statistical feature information, and update the statistical feature information to the color information of the target pixel in the first detail image , to get the second detail image.
  • the selected local area can represent the local native detail in the first detail image, and statistical feature information can be obtained through the statistical characteristics between the pixels in the local area, and then the target pixel can be updated. to obtain a second detailed image containing subtle image features.
  • a color condition can be set. After acquiring the color information of other pixels in the local area, the preset color condition can be used. , determine the pixels that meet the color conditions from the local area, and perform calculations based on other pixels that meet the color conditions in the local area to obtain the corresponding statistical feature information of the target pixel. Wherein, the color condition is set according to the original color information of the target pixel.
  • the second detail image may be directly merged with the corresponding target video frame in the video stream, or the target video frame may be extracted from the video stream, and the second detail image may be combined with the second detail image. Insert into the video stream after merging.
  • the corresponding statistical feature information can be calculated, so that the statistical features between image pixels can be used to predict.
  • the subtle image features hidden in the local area after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The target video frames are merged to enrich the image features of the target video frames, reasonably improve the defect of blurred details of the target video frames, so that the target video frames have a stronger ability to express details and improve the image quality.
  • the video processing method provided in this specification can reasonably improve the defect of blurred details of target video frames; compared with the resolution enhancement method of deep learning , the video processing method provided in this specification greatly reduces the complexity of algorithm logic and improves the processing efficiency while effectively predicting the subtle image features implicit in the local area.
  • the video processing method provided in this specification can improve both image quality and processing efficiency.
  • the video processing method provided in this specification improves processing efficiency, it can meet the needs of real-time video processing, enable existing display devices to display composite video frames with more details in real time, and optimize visual effects. Effectively improve user viewing experience.
  • the video processing method provided in this specification can improve both image quality and processing efficiency, it has a wider range of application scenarios, which can not only improve the imaging quality of videos shot in the past, but also can be used when the resolution of the shooting equipment is insufficient. , the quality of the video frame data collected by the shooting device is improved by the video processing method provided in this specification, so that the video displayed in real time on the display device has more details.
  • the pixels in the second detailed image may be in a higher frequency band, which is likely to generate noise. Therefore, when combining the second detailed image and the target Before the video frame, noise reduction processing may be performed on the second detail image, so as to combine the second detail image after noise reduction processing with the target video frame.
  • the following is a schematic illustration of how to perform noise reduction processing on the second detail image through several embodiments.
  • smoothing may be performed on the second detail image, so as to combine the smoothed second detail image and the target Video frames are merged.
  • the smoothing process may select a corresponding filtering method according to the actual situation, such as a Gaussian low-pass filtering method, a bilateral filtering method, and the like. The embodiments of the present specification do not limit this.
  • the filtering method with fixed parameters can remove the noise in the image, but it will lose a lot of image details, making the image blurred. detail.
  • the smoothing processing on the second detail image may include: performing guide filtering processing on the second detail image based on a preset guide image.
  • the target video frame can be used as a guide image, and based on the target video frame, A guided filtering process is performed on the second detail image.
  • image modulation processing may be performed on the second detail image based on a preset modulation image, so as to The second detail image and the target video frame are merged.
  • the modulated image may be an image set according to modulation prior data or modulation test data, or may be a picture selected from the video stream according to prior experience for distinguishing noise and details.
  • the video processing method provided in this specification can be combined with the method for realizing image enhancement, and has good compatibility and adaptability.
  • the method may further include: using a resolution enhancement method to perform a resolution enlargement process on the target video frame, so as to extract the image features of the target video frame after the resolution enlargement processing. , and combine the second detailed image and the target video frame after resolution enlargement processing. Therefore, through the resolution amplification process, the resolution of the original image can be improved, which is beneficial to the processing in the subsequent steps.
  • This specification also provides a video processing system corresponding to the above-mentioned video processing method, which will be described in detail below through specific embodiments with reference to the accompanying drawings. It should be known that the video processing system described below can be considered as the functional modules required to implement the video processing method provided in this specification; the content of the video processing system described below can be compared with the content of the video processing method described above. refer to each other.
  • the video processing system 120 may include: a detail extraction module 121, adapted to extract target video frames in a video stream The image features of the first detail image are obtained to obtain a first detail image; the detail generation module 122 is adapted to select a target pixel and a local area from the first detail image, the local area includes the target pixel, and based on the local area Calculate the statistical relationship between other pixels and the target pixel, calculate the corresponding statistical feature information, update the statistical feature information to the color information of the target pixel in the first detailed image, and obtain a second detailed image; video synthesis; The module 123 is adapted to combine the second detailed image and the target video frame to obtain a composite video frame.
  • the corresponding statistical feature information can be calculated, so that the statistical features between image pixels can be used to predict.
  • the subtle image features hidden in the local area after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The target video frames are merged to enrich the image features of the target video frames, reasonably improve the defect of blurred details of the target video frames, so that the target video frames have a stronger ability to express details and improve the image quality.
  • the video processing system provided in this specification can reasonably improve the defect of blurred details of target video frames;
  • the system of the resolution enhancement method provided by this specification while effectively predicting the subtle image features implicit in the local area, greatly reduces the algorithm logic and improves the processing efficiency.
  • the video processing system provided in this specification can improve both image quality and processing efficiency.
  • the video processing system provided in this specification improves processing efficiency, it can meet the needs of real-time video processing, enable existing display devices to display synthetic video frames with more details in real time, and optimize visual effects. Effectively improve user viewing experience.
  • the video processing system provided in this specification can improve both image quality and processing efficiency, it has a wider range of application scenarios, which can not only improve the image quality of videos shot in the past, but also can be used when the resolution of the shooting equipment is insufficient. , the quality of the video frame data collected by the shooting device is improved by the video processing system provided in this specification, so that the video displayed in real time on the display device has more details.
  • the detail extraction module can obtain the target video frame by reading the video frame data recorded on the designated storage address, or can read the video stream through the designated communication address and determine the target video frame from the video stream.
  • the detail extraction module may adopt a reading method of direct reading, or may adopt a reading method of indirect reading through other modules, which is not limited in the embodiment of the present specification.
  • the detail generation module may select the target pixel and the local area according to actual settings. For example, the detail generation module may select the target pixel and the local area in the following selection manner: select the target pixel from the first detail image based on a preset selection condition, and select the target pixel from the first detail image based on a preset selection condition. Geometry parameters, select the local area containing the target pixel.
  • the detail generation module may use the first detail image as a basis, the selected local area may represent the local native detail in the first detail image, and statistical feature information can be obtained through statistical characteristics between pixels in the local area, and then Update the color information of the target pixel to obtain a second detailed image containing subtle image features.
  • the detail generation module may use the first detail image as a basis, the selected local area may represent the local native detail in the first detail image, and statistical feature information can be obtained through statistical characteristics between pixels in the local area, and then Update the color information of the target pixel to obtain a second detailed image containing subtle image features.
  • the video processing system 120 may further include: a detail processing module 124.
  • the detail processing module 124 is located between the detail generation module 122 and the video synthesis module 123, and is adapted to perform noise reduction processing on the second detail image obtained by the detail generation module 122, and denoise the second detail image after the noise reduction processing.
  • the second detail image is sent to the video synthesis module 123 .
  • the video synthesis module 123 combines the second detail image after noise reduction processing and the target video frame to obtain a composite video frame.
  • the video processing system provided in this specification can process the image-enhanced video, and has better compatibility and adaptability.
  • the video processing system 120 may further include: a resolution processing module 125 .
  • the resolution processing module 125 is respectively connected with the detail extraction module 121 and the video synthesis module 123, and is adapted to perform resolution amplification processing on the target video frame, and send the target video frame after resolution amplification processing. to the detail extraction module 121 and the video synthesis module 123 .
  • the detail extraction module 121 extracts the image features of the target video frame after resolution enlargement processing to obtain a first detail image; the image synthesis module 123 combines the second detail image and the resolution enlargement processing target video frame, Get the composite video frame.
  • the resolution of the original image can be improved, which is beneficial to the processing of subsequent modules.
  • the resolution processing module can obtain the target video frame by reading the video frame data recorded on the designated storage address, or can read the video stream through the designated communication address and determine the target video frame from the video stream.
  • the resolution processing module may adopt a reading method of direct reading, or may adopt a reading method of indirect reading through other modules, which is not limited in the embodiment of this specification.
  • the embodiment of this specification also provides a data processing module, the data processing module is applied to the laser radar, and is connected to the receiving part of the laser radar,
  • the data processing module may include a memory and a processor, the memory is suitable for storing one or more computer instructions, and the processor executes the image processing method or the video processing method described in any one of the foregoing embodiments when the processor executes the computer instructions.
  • the processor can be implemented by processing chips such as CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processor), FPGA (Field Programmable Gate Array, field programmable logic gate array). , can also be implemented by an ASIC (Application Specific Integrated Circuit, a specific integrated circuit) or one or more integrated circuits configured to implement the embodiments of the present specification.
  • processing chips such as CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processor), FPGA (Field Programmable Gate Array, field programmable logic gate array).
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • FPGA Field Programmable Gate Array
  • field programmable logic gate array field programmable logic gate array
  • the memory may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
  • the data processing device may further include an extension interface, which is suitable for connecting with other devices to realize data interaction.
  • the data processing device as described may be connected to a display device to play a composite image or a video stream containing composite video frames.
  • An embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions, which can execute the steps of the image processing method or the video processing method described in any of the foregoing embodiments of the present invention when the computer instructions are executed.
  • the computer-readable storage medium may be various suitable readable storage mediums such as an optical disc, a mechanical hard disk, and a solid-state hard disk.
  • the instructions stored on the computer-readable storage medium execute the steps of the image processing method or the video processing method described in any of the foregoing embodiments, and the specific reference may be made to the foregoing embodiments, which will not be repeated.
  • the computer-readable storage medium may include, for example, any suitable type of memory unit, storage device, storage item, storage medium, storage device, storage item, storage medium and/or storage unit, eg, memory, removable or non- Removable media, erasable or non-removable media, writable or rewritable media, digital or analog media, hard disks, floppy disks, compact disc read only memory (CD-ROM), compact disc recordable (CD-R), Compact Disc Rewritable (CD-RW), Optical Disc, Magnetic Media, Magneto-Optical Media, Removable Memory Card or Disk, Various Types of Digital Versatile Disc (DVD), Magnetic Tape, Cassette, etc.
  • any suitable type of memory unit e.g, any suitable type of memory unit, storage device, storage item, storage medium, storage device, storage item, storage medium and/or storage unit, eg, memory, removable or non- Removable media, erasable or non-removable media, w
  • Computer instructions may include any suitable type of code implemented using any suitable high-level, low-level, object-oriented, visual, compiled and/or interpreted programming language, eg, source code, compiled code, interpreted code, executable code Execute code, static code, dynamic code, encrypted code, etc.
  • first and second in the embodiments of the present specification are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature. Also, the terms “first,” “second,” etc. are used to distinguish between similar objects and are not necessarily used to describe a particular order or precedence. It is to be understood that the terms so used are interchangeable under appropriate circumstances to enable the embodiments of the specification described herein to be practiced in sequences other than those illustrated or described herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

Image and video processing methods and systems, and a data processing device and a medium. The image processing method comprises: extracting image features of an original image to obtain a first detailed image; selecting a target pixel and a local area from the first detailed image, the local area comprising the target pixel; calculating corresponding statistical feature information on the basis of a statistical relationship between other pixels in the local area and the target pixel, and updating the statistical feature information to color information of the target pixel in the first detailed image to obtain a second detailed image; and synthesizing the second detailed image and the original image to obtain a synthesized image. The scheme can be used to improve both of the image quality and the processing efficiency.

Description

图像和视频处理方法及其系统、数据处理设备、介质Image and video processing method and system, data processing device and medium 技术领域technical field
本说明书实施例涉及数据处理技术领域,尤其涉及一种图像和视频处理方法及其系统、数据处理设备、介质。The embodiments of this specification relate to the technical field of data processing, and in particular, to an image and video processing method and system, data processing device, and medium.
背景技术Background technique
随着消费电子的发展,人们能够随时随地拍摄和发布视频与图像等多媒体信息,加上通过通信渠道能够获取各式各样的多媒体信息,可以说现代人生活在信息大爆炸的时代。With the development of consumer electronics, people can shoot and publish multimedia information such as videos and images anytime and anywhere. In addition, various multimedia information can be obtained through communication channels. It can be said that modern people live in the era of information explosion.
为了提升用户观看体验,多媒体信息在不同设备上的显示需求也随之增长,促使了显示技术的飞速发展,从CRT(Cathode Ray Tube,阴极射线管)技术、LCD(Liquid Crystal Display,液晶显示)技术到OLED(Organic Light-Emitting Diode,有机发光二极管,或者Organic Electroluminescence Display,有机发光半导体)技术,以及Micro LED(一种发光二极管微缩化和矩阵化技术)等还在研究中的技术,显示技术越来越高端,由此,显示分辨率也越来越高,主流分辨率从SD(Standard Definition,标清)、HD(High Definition,高清)、FHD(Full High Definition,全高清)进展到4K(一种超高清显示技术,水平分辨率为达到或者接近4096像素),并且8K(一种超高清显示技术,水平分辨率达到或者接近8192像素)等更高端的显示分辨率也已出现。In order to improve the user's viewing experience, the display demand of multimedia information on different devices has also increased, which has prompted the rapid development of display technology, from CRT (Cathode Ray Tube, cathode ray tube) technology, LCD (Liquid Crystal Display, liquid crystal display) Technology to OLED (Organic Light-Emitting Diode, organic light-emitting diode, or Organic Electroluminescence Display, organic light-emitting semiconductor) technology, and Micro LED (a light-emitting diode miniaturization and matrix technology) and other technologies still under research, display technology More and more high-end, as a result, the display resolution is also getting higher and higher, the mainstream resolution from SD (Standard Definition, standard definition), HD (High Definition, high definition), FHD (Full High Definition, full HD) to 4K ( An ultra-high-definition display technology with a horizontal resolution at or near 4096 pixels), and higher-end display resolutions such as 8K (an ultra-high-definition display technology with a horizontal resolution at or near 8192 pixels) have also emerged.
但是,由于不同时期的拍摄技术不相同,结合环境因素、人为因素等的影响,过去拍摄的多媒体信息的成像质量较差,如存在较多噪声,像素分辨率较低等情况,而现有的显示设备具有更高的显示分辨率,二者的像素级别并不匹配,因此,在现有的显示设备上展示过去拍摄的多媒体信息时,容易出现画面不清晰、画质粗糙等问题,影响用户观看体验。为了解决上述问题,可以采用图像增强技术对过去记录的多媒体信息进行优化处理。However, due to the different shooting techniques in different periods, combined with the influence of environmental factors, human factors, etc., the imaging quality of multimedia information shot in the past is poor, such as there is more noise, and the pixel resolution is low. The display device has a higher display resolution, and the pixel levels of the two do not match. Therefore, when displaying multimedia information taken in the past on the existing display device, problems such as unclear picture and rough picture quality are prone to occur, affecting users. viewing experience. In order to solve the above problems, image enhancement technology can be used to optimize the multimedia information recorded in the past.
图像增强技术具体可以包括分辨率提升方法、帧率提升方法和像素质量提升方法等。其中,分辨率提升方法在手机、电脑、电视机等电子产品中应用更为普遍。分辨率提升方法通过将低分辨率(Low Resolution,LR)的多媒体信息进行放大,希望达到理想的高分辨率(High Resolution,HR)的状态,增强多媒体信息的分辨率,进而能在像素级别更高的显示设备上实现更好的观看感受。The image enhancement technology may specifically include a resolution enhancement method, a frame rate enhancement method, a pixel quality enhancement method, and the like. Among them, the resolution enhancement method is more commonly used in electronic products such as mobile phones, computers, and televisions. The resolution enhancement method amplifies the multimedia information of low resolution (LR), hoping to achieve an ideal high resolution (High Resolution, HR) state, enhance the resolution of multimedia information, and then increase the resolution of multimedia information at the pixel level. Better viewing experience on taller display devices.
传统的分辨率提升方法存在模糊、混淆等问题,为了解决传统的分辨率提升方法存在的问题,提出了改进的分辨率提升方法和基于深度学习的分辨率提升方法。然而,改进的分辨率提升方法虽然优化了图像边缘部分,但是算法逻辑更为复杂,且并没有优化图像其余部分;而基于深度学习的分辨率提升方法虽然能够提升图像整体质量,但是计算资源消耗极大,实施成本较大。The traditional resolution enhancement methods have problems such as blurring and confusion. In order to solve the problems existing in the traditional resolution enhancement methods, an improved resolution enhancement method and a deep learning-based resolution enhancement method are proposed. However, although the improved resolution enhancement method optimizes the edge of the image, the algorithm logic is more complex and does not optimize the rest of the image; while the resolution enhancement method based on deep learning can improve the overall image quality, it consumes computing resources huge, and the implementation cost is high.
综上可知,现有的分辨率提升方法仍然存在很多问题,有待技术人员改善。To sum up, it can be seen that there are still many problems in the existing resolution enhancement methods, which need to be improved by technicians.
技术问题technical problem
有鉴于此,本说明书实施例提供一种图像和视频处理方法及其系统、数据处理设备、介质,能够兼顾提升图像质量和处理效率。In view of this, the embodiments of the present specification provide an image and video processing method, system, data processing device, and medium thereof, which can improve both image quality and processing efficiency.
技术解决方案technical solutions
本说明书实施例提供了一种图像处理方法,包括:提取原始图像的图像特征,得到第一细节图像;从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素;基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计 特征信息,并将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;合并所述第二细节图像和所述原始图像,得到合成图像。An embodiment of this specification provides an image processing method, including: extracting image features of an original image to obtain a first detail image; selecting target pixels and a local area from the first detail image, where the local area includes the target pixel; based on the statistical relationship between other pixels in the local area and the target pixel, calculate the corresponding statistical feature information, and update the statistical feature information to the color of the target pixel in the first detail image information to obtain a second detailed image; and combining the second detailed image and the original image to obtain a composite image.
本说明书实施例还提供了一种视频处理方法,包括:提取视频流中目标视频帧的图像特征,得到第一细节图像;从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素;基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,并将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;将所述第二细节图像和所述目标视频帧进行合并,得到合成视频帧。The embodiments of the present specification also provide a video processing method, including: extracting image features of a target video frame in a video stream to obtain a first detail image; selecting target pixels and local areas from the first detail image, the local The target pixel is included in the area; based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated, and the statistical feature information is updated to the first detail image The color information of the target pixel is obtained to obtain a second detail image; the second detail image and the target video frame are combined to obtain a composite video frame.
本说明书实施例还提供了一种图像处理系统,包括:细节提取模块,适于提取原始图像的图像特征,得到第一细节图像;细节生成模块,适于从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素,并基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;图像合成模块,适于合并所述第二细节图像和所述原始图像,得到合成图像。The embodiments of this specification also provide an image processing system, including: a detail extraction module, adapted to extract image features of an original image to obtain a first detail image; a detail generation module, adapted to select a target from the first detail image pixel and local area, the local area includes the target pixel, and based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated, and the statistical feature information is calculated. The color information of the target pixel in the first detailed image is updated to obtain a second detailed image; the image synthesis module is adapted to combine the second detailed image and the original image to obtain a composite image.
本说明书实施例还提供了一种视频处理系统,包括:细节提取模块,适于提取视频流中目标视频帧的图像特征,得到第一细节图像;细节生成模块,适于从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素,并基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;视频合成模块,适于将所述第二细节图像和所述目标视频帧进行合并,得到合成视频帧。The embodiments of this specification also provide a video processing system, including: a detail extraction module, adapted to extract image features of a target video frame in a video stream to obtain a first detail image; a detail generation module, adapted to extract the first detail image from the first detail image The target pixel and local area are selected in the image, the local area includes the target pixel, and based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated and obtained. The statistical feature information is updated to the color information of the target pixel in the first detailed image to obtain a second detailed image; a video synthesis module is adapted to combine the second detailed image and the target video frame to obtain a composite video frame.
本说明书实施例还提供了一种数据处理设备,包括存储器和处理器,所述存储器上存储有能在所述处理器上运行的计算机指令,所述处理器运行所述计算机指令时执行上述任一项实施例所述方法的步骤。Embodiments of the present specification further provide a data processing device, including a memory and a processor, where the memory stores computer instructions that can be run on the processor, and the processor executes any of the above when running the computer instructions. The steps of the method of an embodiment.
本说明书实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令运行时执行上述任一项实施例所述方法的步骤。The embodiments of the present specification further provide a computer-readable storage medium on which computer instructions are stored, and when the computer instructions are executed, the steps of the method described in any one of the foregoing embodiments are executed.
有益效果beneficial effect
采用本说明书提供的图像处理方案,在提取原始图像的图像特征并得到第一细节图像后,通过目标像素与所述局部区域中其他像素之间的统计关系,能够计算得到相应的统计特征信息,从而利用图像像素之间的统计特性,预测局部区域中隐含的细微图像特征,在将所述统计特征信息更新为相应目标像素的颜色信息后,获得的第二细节图像中包含细微图像特征,进而将所述第二细节图像和所述原始图像进行合并,丰富原始图像的图像特征,合理改善原始图像细节模糊的缺陷,使得图像具有更强的细节表现能力,提升了图像质量,且本说明书实施例的图像处理方案的逻辑复杂度较低,提升了处理效率,故而本说明书提供的图像处理方案能够兼顾提升图像质量和处理效率。Using the image processing solution provided in this specification, after the image features of the original image are extracted and the first detailed image is obtained, the corresponding statistical feature information can be obtained by calculating the statistical relationship between the target pixel and other pixels in the local area, Thereby, the statistical characteristics between the image pixels are used to predict the subtle image features implicit in the local area, and after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains the subtle image features, Then, the second detailed image and the original image are combined to enrich the image features of the original image, reasonably improve the defect of blurred details of the original image, make the image have stronger detail expression ability, and improve the image quality. The logic complexity of the image processing solution of the embodiment is low, and the processing efficiency is improved. Therefore, the image processing solution provided in this specification can improve both the image quality and the processing efficiency.
采用本说明书实施例的视频处理方案,在提取视频流中目标视频帧的图像特征得到第一细节图像之后,通过目标像素与所述局部区域中其他像素之间的统计关系,能够计算得到相应的统计特征信息,从而利用图像像素之间的统计特性,预测局部区域中隐含的细微图像特征,在将所述统计特征信息更新为相应目标像素的颜色信息后,获得的第二细节图像中包含细微图像特征,进而将所述第二细节图像和所述目标视频帧进行合并,丰富目标视频帧的图像特征,合理改善视频画面细节模糊的缺陷,使得图像具有更强的细节表现能力,提升了图像质量,且本说明书实施例的视频处理方案的逻辑复杂度较低,提升了处理效率,故而本说明书提供的视频处理方案能够兼顾提升图像质量和处理效率。Using the video processing solution of the embodiment of this specification, after the image features of the target video frame in the video stream are extracted to obtain the first detailed image, the corresponding Statistical feature information, so as to use the statistical properties between image pixels to predict the subtle image features implicit in the local area, after updating the statistical feature information to the color information of the corresponding target pixel, the obtained second detail image contains Subtle image features, and then the second detailed image and the target video frame are combined to enrich the image features of the target video frame, reasonably improve the defect of blurred details of the video picture, so that the image has a stronger ability to express details and improve the performance of the target video frame. image quality, and the logic complexity of the video processing solution in the embodiments of this specification is low, which improves processing efficiency, so the video processing solution provided in this specification can improve both image quality and processing efficiency.
附图说明Description of drawings
为了更清楚地说明本说明书实施例的技术方案,下面将对本说明书实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本说明书的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present specification more clearly, the following briefly introduces the drawings that are required to be used in the embodiments of the present specification or the description of the prior art. Obviously, the drawings described below are only for the purposes of the present specification. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本说明书实施例中一种图像处理方法的流程图。FIG. 1 is a flowchart of an image processing method in an embodiment of the present specification.
图2是本说明书实施例中一种滤波方法的示意图。FIG. 2 is a schematic diagram of a filtering method in an embodiment of the present specification.
图3a是本说明书实施例中一种原始图像的示意图。Fig. 3a is a schematic diagram of an original image in the embodiment of the present specification.
图3b是本说明书实施例中一种第一细节图像的示意图。FIG. 3b is a schematic diagram of a first detailed image in an embodiment of the present specification.
图4是本说明书实施例中一种选取目标像素和局部区域的示意图。FIG. 4 is a schematic diagram of selecting a target pixel and a local area in an embodiment of the present specification.
图5是本说明书实施例中另一种选取目标像素和局部区域的示意图。FIG. 5 is a schematic diagram of another selection of target pixels and local regions in the embodiment of the present specification.
图6是本说明书实施例中一种局部区域的示意图。FIG. 6 is a schematic diagram of a partial region in the embodiment of the present specification.
图7是本说明书实施例中一种目标像素的颜色信息更新后的局部区域的示意图。FIG. 7 is a schematic diagram of a partial area of a target pixel after the color information of the target pixel is updated according to an embodiment of the present specification.
图8是本说明书实施例中一种合成图像的示意图。FIG. 8 is a schematic diagram of a composite image in an embodiment of the present specification.
图9是本说明书实施例中一种图像处理系统的结构框图。FIG. 9 is a structural block diagram of an image processing system in an embodiment of the present specification.
图10是本说明书实施例中一种图像处理系统的流程图。FIG. 10 is a flowchart of an image processing system in the embodiment of the present specification.
图11是本说明书实施例中一种视频处理方法的流程图。FIG. 11 is a flowchart of a video processing method in an embodiment of the present specification.
图12本说明书实施例中一种视频处理系统的结构框图。FIG. 12 is a structural block diagram of a video processing system in an embodiment of this specification.
本发明的实施方式Embodiments of the present invention
如背景技术所述,分辨率提升方法在手机、电脑、电视机等电子产品中应用更为普遍。在实际应用中,传统的分辨率提升方法可以包括:最近邻插值(Nearest interpolation)算法、双线性插值(Bilinear interpolation)算法以及双立方插值(Bicubic interpolation)算法等。然而,通过上述传统的分辨率提升方法得到的图像容易存在模糊、混淆(Aliasing)的问题。As described in the background art, the resolution enhancement method is more commonly used in electronic products such as mobile phones, computers, and televisions. In practical applications, traditional resolution enhancement methods may include: a nearest neighbor interpolation (Nearest interpolation) algorithm, a bilinear interpolation (Bilinear interpolation) algorithm, a bicubic interpolation (Bicubic interpolation) algorithm, and the like. However, the images obtained by the above-mentioned traditional resolution enhancement methods are prone to blurring and aliasing problems.
经过技术人员的研究,提出了一些改进的分辨率提升方法,如基于方向的插值(Directional interpolation)算法、基于例子的超分辨(Example based super resolution)算法、基于稀疏表示的超分辨率(Sparse representation super resolution)算法等。这些改进的分辨率提升方法相较于传统的分辨率提升方法,可以获得更为优良的结果,但是算法逻辑较为复杂,并且这些改进的分辨率提升方法仅优化了图像的边缘部分,对于图像其余部分并没有进行改进。After the research of technicians, some improved resolution enhancement methods are proposed, such as Directional Interpolation algorithm, Example based super resolution algorithm, Sparse representation based super resolution algorithm. super resolution) algorithm, etc. These improved resolution enhancement methods can obtain better results than the traditional resolution enhancement methods, but the algorithm logic is more complex, and these improved resolution enhancement methods only optimize the edge part of the image, for the rest of the image Parts have not been improved.
此外,由于深度学习的崛起,研究人员还提出了一些基于深度学习的分辨率提升方法,如基于深度学习的超分辨率(Deep learning based super resolution)算法。得益于深度神经网络强大的非线性表达能力,基于深度学习的分辨率提升方法可以提升图像整体质量。例如,可以采用GAN(Generative Adversarial Network,生成式对抗网络)等神经网络实现深度学习,为图像增加虚拟的细节。但是,基于深度学习的分辨率提升方法的算法逻辑更加复杂,需要进行大量的数据计算,计算资源消耗极大。In addition, due to the rise of deep learning, researchers have also proposed some resolution enhancement methods based on deep learning, such as deep learning based super resolution algorithms. Thanks to the powerful nonlinear expression ability of deep neural network, the resolution enhancement method based on deep learning can improve the overall quality of the image. For example, neural networks such as GAN (Generative Adversarial Network, Generative Adversarial Network) can be used to implement deep learning to add virtual details to images. However, the algorithmic logic of the resolution enhancement method based on deep learning is more complicated, and a large amount of data calculation is required, which consumes a lot of computing resources.
综上可知,现有的分辨率提升方法仍然存在很多问题,有待技术人员改善。To sum up, it can be seen that there are still many problems in the existing resolution enhancement methods, which need to be improved by technicians.
为了解决现有分辨率提升方法存在的技术问题,本说明书实施例提供了一种图像处理方案,在提取原始图像的图像特征后,利用局部区域中像素之间的统计特性,可以更新局部区域中像素的颜色信息,由此增加细微的图像特征,提升图像质量,并减少算法逻辑的复杂度,提升处理效率。In order to solve the technical problems existing in the existing resolution enhancement methods, the embodiments of this specification provide an image processing solution. After the image features of the original image are extracted, the statistical characteristics between the pixels in the local area can be used to update the image features in the local area. The color information of pixels, thereby increasing subtle image features, improving image quality, reducing the complexity of algorithm logic, and improving processing efficiency.
为使本领域技术人员更加清楚地了解及实施本说明书实施例的构思、实现方案及优点,以下参照附图,通过具体应用场景进行详细说明。In order for those skilled in the art to more clearly understand and implement the concepts, implementation solutions and advantages of the embodiments of the present specification, the following detailed description is given through specific application scenarios with reference to the accompanying drawings.
参照图1所示的本说明书实施例中一种图像处理方法的流程图,在本说明书实施例中, 所述方法可以包括以下步骤:Referring to the flowchart of an image processing method in the embodiment of the present specification shown in FIG. 1, in the embodiment of the present specification, the method may include the following steps:
SA1,提取原始图像的图像特征,得到第一细节图像。SA1, extract the image features of the original image to obtain the first detail image.
其中,所述图像特征可以包括:颜色特征、纹理特征、形状特征和空间关系特征等。所述原始图像可以为彩色图像、灰度图像或黑白图像。此外,可以通过读取指定存储地址上记录的图像数据获取原始图像。The image features may include: color features, texture features, shape features, spatial relationship features, and the like. The original image may be a color image, a grayscale image, or a black and white image. In addition, the original image can be obtained by reading the image data recorded on the designated storage address.
可选地,在提取原始图像的图像特征之前,可以将原始图像进行灰度化处理,得到灰度的原始图像,以作为特征提取处理的对象;或者,在提取原始图像的图像特征之前,可以将原始图像进行二值化处理,得到黑白的原始图像,以作为特征提取处理的对象。Optionally, before extracting the image features of the original image, the original image may be grayscaled to obtain a grayscale original image, which is used as the object of feature extraction processing; or, before extracting the image features of the original image, you can The original image is binarized to obtain a black and white original image, which is used as the object of feature extraction.
在具体实施中,根据图像需求和实际应用情景,可以采用相应的特征提取方法提取原始图像的颜色特征、纹理特征、形状特征和空间关系特征等图像特征,由此得到原始图像所携带的细节信息,得到第一细节图像,作为后续获取第二细节图像的基础。In specific implementation, according to image requirements and actual application scenarios, corresponding feature extraction methods can be used to extract image features such as color features, texture features, shape features, and spatial relationship features of the original image, thereby obtaining detailed information carried by the original image. , to obtain the first detailed image, which is used as the basis for the subsequent acquisition of the second detailed image.
以下通过具体实施例,对如何获取第一细节图像进行详细说明。The following describes in detail how to acquire the first detailed image through specific embodiments.
在一可选示例中,可以对原始图像采用滤波方法提取原始图像的图像特征。具体而言,如图2所示,基于预设的滤波窗口几何参数,生成相应的滤波窗口Blk,在原始图像P1中,滤波窗口Blk按照预设的移动方向和预设的移动步长,且基于预设的滤波系数,对滤波窗口Blk中的像素进行滤波处理,提取原始图像的图像特征。其中,滤波处理可以包括:均值滤波处理、中值滤波处理、高斯滤波处理或双边滤波处理等,且所述滤波处理可以基于二维坐标系下进行。In an optional example, an image feature of the original image can be extracted by using a filtering method on the original image. Specifically, as shown in FIG. 2 , based on the preset geometric parameters of the filter window, the corresponding filter window Blk is generated. In the original image P1, the filter window Blk is in accordance with the preset moving direction and the preset moving step size, and Based on the preset filter coefficients, filter processing is performed on the pixels in the filter window Blk to extract image features of the original image. The filtering processing may include mean filtering processing, median filtering processing, Gaussian filtering processing, bilateral filtering processing, etc., and the filtering processing may be performed based on a two-dimensional coordinate system.
如图2所示,原始图像P1中虚线划分形成的一个矩形框代表一个像素,所述移动方向可以设定为从左到右且从上到下的顺序,预设移动步长可以为一个像素。经过滤波窗口Blk的滤波处理,得到的第一细节图像。As shown in FIG. 2 , a rectangular frame formed by the dotted line in the original image P1 represents one pixel, the moving direction can be set in the order from left to right and from top to bottom, and the preset moving step can be one pixel . The first detail image is obtained after the filtering process of the filtering window Blk.
可以理解的是,为了便于描述,图2所示的原始图像中未包含任何图像特征,在实际应用时,原始图像可以包含更多的像素,且具有更加丰富的图像特征,本说明书实施例对此不做限制。例如,如图3a所示,为一种原始图像的示意图,原始图像P2经过滤波处理后可以得到第一细节图像图P3,与图3a所示的原始图像P2相比,图3b所示的第一细节图像P3去除了变化平缓的像素信息,而保留了变化明显区域的像素信息。It can be understood that, for the convenience of description, the original image shown in FIG. 2 does not contain any image features. In practical applications, the original image may contain more pixels and have more abundant image features. This does not limit. For example, as shown in Fig. 3a, which is a schematic diagram of an original image, the first detail image P3 can be obtained after the original image P2 is filtered. Compared with the original image P2 shown in Fig. 3a, the first detail image P3 shown in Fig. 3b A detail image P3 removes the pixel information that changes gently, and retains the pixel information of the area that changes significantly.
还可以理解的是,图2仅为采用滤波方法获取第一细节图像的示意说明,在实际实施本说明书的技术方案时,滤波方法的相关参数可以根据滤波需求进行调整,例如,可以调整滤波窗口几何参数和滤波处理的滤波系数中至少一种参数,从而实现所需的滤波效果,得到符合滤波需求的第一细节图像。本说明书实施例对此不做限制。It can also be understood that FIG. 2 is only a schematic illustration of using the filtering method to obtain the first detailed image. When actually implementing the technical solution of this specification, the relevant parameters of the filtering method can be adjusted according to the filtering requirements. For example, the filtering window can be adjusted. At least one parameter among the geometric parameters and the filter coefficients of the filtering process, so as to achieve the required filtering effect and obtain the first detailed image that meets the filtering requirements. The embodiments of the present specification do not limit this.
需要说明的是,上述实施例仅为示例说明,并不限制本说明书实施例通过其他方法提取图像特征。例如,还可以采用局部二值模式(Local binary pattern,LBP)方法提取图像特征。It should be noted that the above embodiments are only illustrative, and do not limit the embodiments of the present specification to extract image features through other methods. For example, the local binary pattern (LBP) method can also be used to extract image features.
SA2,从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素。SA2: Select a target pixel and a local area from the first detail image, and the local area includes the target pixel.
其中,所述目标像素和所述局部区域可以根据实际设定进行选取。例如,所述目标像素和所述局部区域的选取方式可以包括:The target pixel and the local area may be selected according to actual settings. For example, the selection method of the target pixel and the local area may include:
基于预设的选取条件,从所述第一细节图像中选取所述目标像素,并基于预设的区域几何参数,选取包含所述目标像素的局部区域。Based on a preset selection condition, the target pixel is selected from the first detail image, and a local area including the target pixel is selected based on a preset area geometric parameter.
在具体实施中,所述选取条件和区域几何参数可根据实际需求和场景进行设定,例如,可以按照预设位置选取目标像素,也可以按照预设排序选取目标像素;又例如,区域几何参数可以包括圆形、圆环、线形等规则图形的参数,也可以包括不规则图形的参数。本说明书实施例对此不做限制。In specific implementation, the selection conditions and regional geometric parameters can be set according to actual needs and scenarios, for example, target pixels can be selected according to a preset position, or target pixels can be selected according to a preset order; for example, the regional geometric parameters It can include parameters of regular graphics such as circles, rings, and lines, as well as parameters of irregular graphics. The embodiments of the present specification do not limit this.
在本发明一实施例中,所述选取条件可以为:选取第3×i行且第3×j列的像素作为目标像素,所述区域几何参数可以包括:边长为5×5(像素)的矩形,其中,i和j均为正整数。 如图4所示,以i=1且j=1为例,在第一细节图像P4中,处于第3行且第3列的像素A为目标像素,并生成5×5(像素)大小的矩形局部区域,使生成的局部区域包含像素A。以此类推,可以得到至少一个符合条件的目标像素及其相应的局部区域。In an embodiment of the present invention, the selection condition may be: select the pixel in the 3×i row and the 3×j column as the target pixel, and the regional geometric parameters may include: a side length of 5×5 (pixels) , where i and j are both positive integers. As shown in FIG. 4 , taking i=1 and j=1 as an example, in the first detailed image P4, the pixel A in the third row and the third column is the target pixel, and a 5×5 (pixel) size is generated. Rectangular local area so that the resulting local area contains pixel A. By analogy, at least one eligible target pixel and its corresponding local area can be obtained.
在本发明另一实施例中,所述选取条件可以为:选取第3×i行且第3×j列的像素作为目标像素,所述区域几何参数可以为5×5(像素)的十字形。。如图5所示,以i=1且j=1为例,在第一细节图像P5中,处于第3行且第3列的像素A为目标像素,并生成5×5(像素)大小的十字形局部区域,使生成的局部区域包含像素A。以此类推,可以得到至少一个符合条件的目标像素及其相应的局部区域。In another embodiment of the present invention, the selection condition may be: select the pixel in the 3×i row and the 3×j column as the target pixel, and the area geometric parameter may be a 5×5 (pixel) cross shape . . As shown in FIG. 5 , taking i=1 and j=1 as an example, in the first detail image P5, the pixel A in the third row and the third column is the target pixel, and a 5×5 (pixel) size is generated. A cross-shaped local area, so that the resulting local area contains pixel A. By analogy, at least one eligible target pixel and its corresponding local area can be obtained.
在进一步可实现的示例中,为了便于生成局部区域,可以以目标像素为中心像素生成局部区域。例如,继续参考图4,可以以像素A为中心,生成5×5(像素)大小的局部区域Fa。又例如,继续参考图5,可以以像素A为中心,生成5×5(像素)大小的局部区域Fb。In a further achievable example, in order to facilitate the generation of the local area, the local area may be generated with the target pixel as the center pixel. For example, with continued reference to FIG. 4 , a local area Fa of a size of 5×5 (pixels) may be generated with the pixel A as the center. For another example, continuing to refer to FIG. 5 , a local area Fb with a size of 5×5 (pixels) may be generated with the pixel A as the center.
可以理解的是,为了便于描述,图4和图5所示的第一细节图像中未包含任何图像特征,在实际应用时,第一细节图像可以包含更多的像素,且具有更加丰富的图像特征,本说明书实施例对此不做限制。It can be understood that, for the convenience of description, the first detail images shown in FIG. 4 and FIG. 5 do not contain any image features. In practical applications, the first detail images may contain more pixels and have more abundant images. feature, which is not limited in the embodiments of this specification.
SA3,基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,并将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像。SA3, based on the statistical relationship between other pixels in the local area and the target pixel, calculate the corresponding statistical feature information, and update the statistical feature information to the color information of the target pixel in the first detail image , to get the second detail image.
其中,所述统计关系可以表征所述局部区域中其他像素与所述目标像素之间有关统计量的关系;所述统计特征信息可以视为一种统计量,且所述统计特征信息可以用于表征所述局部区域中隐含的细微图像特征。Wherein, the statistical relationship can represent the relationship between other pixels in the local area and the relevant statistics of the target pixel; the statistical feature information can be regarded as a kind of statistics, and the statistical feature information can be used for Characterize the subtle image features implicit in the local area.
在具体实施中,以第一细节图像作为基础,选取的局部区域可表征第一细节图像中的局部原生细节,通过局部区域中像素之间的统计特性,能够获得统计特征信息,进而更新目标像素的颜色信息,获得包含细微图像特征的第二细节图像。In the specific implementation, based on the first detail image, the selected local area can represent the local native detail in the first detail image, and statistical feature information can be obtained through the statistical characteristics between the pixels in the local area, and then the target pixel can be updated. to obtain a second detailed image containing subtle image features.
在本说明书一实施例中,如图6所示,局部区域Fc为从所述第一细节图像中选取得到的一个5×5(像素)大小的矩形区域,局部区域Fc中虚线划分形成的一个矩形框代表一个像素,目标像素C为局部区域Fc的中心像素,基于所述局部区域Fc中其他24个像素与所述目标像素C之间的统计关系,计算得到相应的统计特征信息,并将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像。In an embodiment of the present specification, as shown in FIG. 6 , the local area Fc is a rectangular area with a size of 5×5 (pixels) selected from the first detail image, and the local area Fc is divided by a dotted line and formed The rectangular box represents a pixel, and the target pixel C is the central pixel of the local area Fc. Based on the statistical relationship between the other 24 pixels in the local area Fc and the target pixel C, the corresponding statistical feature information is calculated, and the The statistical feature information is updated to the color information of the target pixel in the first detailed image to obtain a second detailed image.
为了便于理解,图7中仅示出第二细节图像中相应的目标像素的颜色信息更新后的局部区域Fc’,与图6相比,可以看出目标像素C的颜色信息发生了变化。For ease of understanding, Fig. 7 only shows the local area Fc' after the color information of the corresponding target pixel in the second detailed image is updated. Compared with Fig. 6, it can be seen that the color information of the target pixel C has changed.
在实际应用中,根据不同的统计关系,可以得到不同的统计量,如方差值、标准差值、均值、加权值、中值等,但是,在说明书实施例中,若使用中值或者均值作为统计量,即计算所述局部区域中其他像素与所述目标像素之间的中值或均值,高频段像素信息被抑制,得到的统计特征信息永远位于局部区域的像素的颜色信息区间内,且低于部分高频段像素的颜色信息,因此,在统计量为均值或者中值时,产生统计特征信息的过程可以视为一种低通滤波,从而减少局部区域中高频段的图像特征数量,造成图像细节模糊,且无法预测得到新的细节。In practical applications, different statistics can be obtained according to different statistical relationships, such as variance value, standard deviation value, mean value, weighted value, median value, etc. However, in the embodiments of the specification, if the median or mean value is used As a statistic, that is, the median or average value between other pixels in the local area and the target pixel is calculated, the high-frequency band pixel information is suppressed, and the obtained statistical feature information is always located in the color information interval of the pixels in the local area, and is lower than the color information of some high-frequency pixels. Therefore, when the statistic is the mean or median value, the process of generating statistical feature information can be regarded as a low-pass filtering, thereby reducing the number of image features in the high-frequency band in the local area. Causes image details to be blurred and new details unpredictable.
为了避免上述情况,在基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息时,可以采用更加注重高频段像素信息的统计关系,如方差、标准差、加权等。In order to avoid the above situation, when calculating the corresponding statistical feature information based on the statistical relationship between other pixels in the local area and the target pixel, a statistical relationship that pays more attention to high-frequency pixel information, such as variance, standard difference, weight, etc.
在具体实施中,为了减少计算量,并确保所述局部区域的颜色不变性和旋转不变性,可以设定颜色条件,在获取所述局部区域中其他像素的颜色信息后,可以基于预设的颜色条件,从所述局部区域中确定符合颜色条件的像素,并基于所述局部区域中符合颜色条件的其他像素进行计算,得到所述目标像素相应的统计特征信息。In a specific implementation, in order to reduce the amount of calculation and ensure the color invariance and rotation invariance of the local area, a color condition can be set. After acquiring the color information of other pixels in the local area, you can For color conditions, the pixels that meet the color conditions are determined from the local area, and the calculation is performed based on other pixels that meet the color conditions in the local area to obtain the corresponding statistical feature information of the target pixels.
可选地,所述颜色条件根据所述目标像素原始的颜色信息设定。例如,所述目标像素原始的颜色信息为pixel1,则可以将pixel1作为颜色阈值,并其在他像素的颜色信息不小于所述颜色阈值pixel1时,所述其他像素符合颜色条件。Optionally, the color condition is set according to original color information of the target pixel. For example, if the original color information of the target pixel is pixel1, then pixel1 can be used as the color threshold, and when the color information of other pixels is not less than the color threshold pixel1, the other pixels meet the color condition.
进一步地,所述基于所述局部区域中符合颜色条件的其他像素进行计算,得到所述目标像素相应的统计特征信息,具体可以包括:获取预设的统计系数矩阵,所述统计系数矩阵与所述局部区域的像素存在对应关系,根据所述局部区域中符合颜色条件的其他像素的位置信息,从所述统计系数矩阵中获取相应位置的统计系数,并根据预设的统计关系计算得到统计特征信息。Further, the calculation based on other pixels that meet the color conditions in the local area to obtain the corresponding statistical feature information of the target pixel may specifically include: obtaining a preset statistical coefficient matrix, the statistical coefficient matrix and the statistical coefficient matrix. There is a corresponding relationship between the pixels in the local area. According to the position information of other pixels in the local area that meet the color conditions, the statistical coefficients of the corresponding positions are obtained from the statistical coefficient matrix, and the statistical features are calculated according to the preset statistical relationship. information.
在具体实施中,当存在多个相应的目标像素和局部区域时,可以按照预设的顺序对各相应的目标像素和局部区域进行处理,也可以按照预设的数量获取至少部分相应的目标像素和局部区域进行处理。本说明书对于多个相应的目标像素和局部区域的处理顺序不作限制。In a specific implementation, when there are multiple corresponding target pixels and local areas, the corresponding target pixels and local areas may be processed according to a preset order, or at least part of the corresponding target pixels may be obtained according to a preset number and local areas are processed. This specification does not limit the processing order of the plurality of corresponding target pixels and local regions.
SA4,合并所述第二细节图像和所述原始图像,得到合成图像。SA4, combine the second detail image and the original image to obtain a composite image.
在具体实施中,如图8所示,所述第二细节图像P6可以与原始图像P2进行叠加,从而得到合成图像P2’。In a specific implementation, as shown in FIG. 8 , the second detailed image P6 may be superimposed with the original image P2 to obtain a composite image P2'.
由上可知,采用本说明书提供的图像处理方法,通过目标像素与所述局部区域中其他像素之间的统计关系,能够计算得到相应的统计特征信息,从而利用图像像素之间的统计特性,预测局部区域中隐含的细微图像特征,在将所述统计特征信息更新为相应目标像素的颜色信息后,获得的第二细节图像中包含细微图像特征,进而将所述第二细节图像和所述原始图像进行合并,丰富原始图像的图像特征,合理改善原始图像细节模糊的缺陷,使得图像具有更强的细节表现能力,提升图像质量。It can be seen from the above that, by using the image processing method provided in this specification, the corresponding statistical feature information can be calculated through the statistical relationship between the target pixel and other pixels in the local area, so that the statistical features between image pixels can be used to predict. The subtle image features hidden in the local area, after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The original images are merged to enrich the image features of the original images, and reasonably improve the defects of blurred details of the original images, so that the images have a stronger ability to express details and improve the image quality.
相比于上述双立方插值、基于方向的插值等传统和改进的分辨率提升方法,本说明书提供的图像处理方法可以合理改善原始图像细节模糊的缺陷;相比于深度学习的分辨率提升方法,本说明书提供的图像处理方法在有效预测局部区域中隐含的细微图像特征的同时,大幅度降低算法逻辑的复杂度,提升了处理效率。Compared with the above-mentioned traditional and improved resolution enhancement methods such as bicubic interpolation and direction-based interpolation, the image processing method provided in this specification can reasonably improve the defect of blurred details of the original image; compared with the resolution enhancement method of deep learning, The image processing method provided in this specification greatly reduces the complexity of algorithm logic and improves processing efficiency while effectively predicting the subtle image features implicit in the local area.
综上,本说明书提供的图像处理方法能够兼顾提升图像质量和处理效率。In conclusion, the image processing method provided in this specification can improve both image quality and processing efficiency.
在实际应用中,由于本说明书提供的图像处理方法提升了处理效率,因此,可以满足实时图像处理的需求,使现有的显示设备能够实时展现具有更多细节的合成图像,优化视觉效果,有效提高用户观看体验。In practical applications, since the image processing method provided in this specification improves processing efficiency, it can meet the needs of real-time image processing, enable existing display devices to display composite images with more details in real time, optimize visual effects, and effectively Improve user viewing experience.
并且,由于本说明书提供的图像处理方法能够兼顾提升图像质量和处理效率,因此具有更广泛的应用场景,不但可以改善过去拍摄的图像的成像质量,还可以在拍摄设备的分辨率不足的情况下,通过本说明书提供的图像处理方法改善拍摄设备采集的图像数据的质量,使得在显示设备上实时展现的图像具有更多的细节。In addition, since the image processing method provided in this specification can improve both image quality and processing efficiency, it has a wider range of application scenarios. It can not only improve the image quality of the images captured in the past, but also can be used when the resolution of the shooting device is insufficient. , the quality of the image data collected by the photographing device is improved by the image processing method provided in this specification, so that the image displayed in real time on the display device has more details.
在具体实施中,由于在获取统计特征信息时更加注重了高频段像素信息,第二细节图像中的像素可能处于较高频段,容易产生噪声,因此,在合并所述第二细节图像和所述原始图像之前,可以对所述第二细节图像进行降噪处理,以将降噪处理后的第二细节图像和所述原始图像进行合并。In a specific implementation, since more attention is paid to the high-frequency band pixel information when acquiring statistical feature information, the pixels in the second detailed image may be in a higher frequency band, which is likely to generate noise. Therefore, when combining the second detailed image and the Before the original image, noise reduction processing may be performed on the second detail image, so as to combine the second detail image after noise reduction processing with the original image.
以下通过几个实施例示意说明如何对所述第二细节图像进行降噪处理。The following is a schematic illustration of how to perform noise reduction processing on the second detail image through several embodiments.
在本说明书一实施例中,在合并所述第二细节图像和所述原始图像之前,可以对所述第二细节图像进行平滑处理,以将平滑处理后的第二细节图像和所述原始图像进行合并。其中,所述平滑处理可以根据实际情景选择相应的滤波方法,如高斯低通滤波方法、双边滤波方法等。本说明书实施例对此不做限制。In an embodiment of the present specification, before merging the second detail image and the original image, smoothing may be performed on the second detail image, so as to combine the smoothed second detail image and the original image Merge. Wherein, the smoothing process may select a corresponding filtering method according to the actual situation, such as a Gaussian low-pass filtering method, a bilateral filtering method, and the like. The embodiments of the present specification do not limit this.
进一步地,参数固定的滤波方法可以去除图像中噪声,但是会丢失很多图像细节,使得图像模糊,为了避免图像丢失过多细节,可以采用自适应滤波方法进行平滑处理,使得图像可以保留更多的细节。例如,所述对所述第二细节图像进行平滑处理可以包括:基于预设的 导引图像,对所述第二细节图像进行导引滤波处理。Further, the filtering method with fixed parameters can remove the noise in the image, but it will lose a lot of image details, making the image blurred. detail. For example, the smoothing processing on the second detail image may include: performing guide filtering processing on the second detail image based on a preset guide image.
更进一步地,为了使导引滤波处理的强度(即颜色信息的取值范围)能够根据不同的第二细节图像进行自适应,可以将原始图像作为导引图像,基于所述原始图像,对所述第二细节图像进行导引滤波处理。Furthermore, in order to make the intensity of the guided filtering process (ie, the value range of the color information) adaptive according to different second detail images, the original image can be used as the guide image, and based on the original image, The second detail image is subjected to guided filtering processing.
在本说明书另一实施例中,在合并所述第二细节图像和所述原始图像之前,可以基于预设的调制图像,对所述第二细节图像进行图像调制处理,以将调制处理后的第二细节图像和所述原始图像进行合并。其中,所述调制图像可以是根据调制先验数据或调制测试数据设置的图像。In another embodiment of the present specification, before merging the second detail image and the original image, image modulation processing may be performed on the second detail image based on a preset modulation image, so that the modulated image The second detail image and the original image are merged. Wherein, the modulated image may be an image set according to modulated prior data or modulated test data.
在具体实施中,本说明书提供的图像处理方法可以与实现图像增强的方法结合,具有较好的兼容性和适应性。In specific implementation, the image processing method provided in this specification can be combined with the method for realizing image enhancement, and has better compatibility and adaptability.
例如,在所述提取原始图像的图像特征之前,还可以包括:采用分辨率提升方法,对所述原始图像进行分辨率放大处理,以提取分辨率放大处理后的原始图像的图像特征,并将所述第二细节图像和分辨率放大处理后的原始图像进行合并。由此,通过分辨率放大处理,可以提升原始图像的分辨率,有利于后续步骤的处理。For example, before extracting the image features of the original image, the method may further include: using a resolution boosting method to perform a resolution enlarging process on the original image to extract the image features of the original image after the resolution enlarging process, and The second detailed image and the original image after resolution enlargement processing are combined. Therefore, through the resolution amplification process, the resolution of the original image can be improved, which is beneficial to the processing in the subsequent steps.
可以理解的是,上文描述了本说明书实施例提供的多个实施例方案,各实施例方案介绍的各可选方式可在不冲突的情况下相互结合、交叉引用,从而延伸出多种可能的实施例方案,这些均可认为是本说明书披露、公开的实施例方案。It can be understood that the above describes the multiple embodiments provided by the embodiments of this specification, and the optional modes introduced by the embodiments can be combined and cross-referenced with each other without conflict, thereby extending a variety of possibilities. These can be considered as the embodiments disclosed and disclosed in this specification.
本说明书还提供了与上述图像处理方法对应的图像处理系统,以下参照附图,通过具体实施例进行详细介绍。需要知道的是,下文描述的图像处理系统可以认为是为实现本说明书提供的图像处理方法所需设置的功能模块;下文描述的图像处理系统的内容,可与上文描述的图像处理方法的内容相互对应参照。The present specification also provides an image processing system corresponding to the above-mentioned image processing method, which will be described in detail below through specific embodiments with reference to the accompanying drawings. It should be known that the image processing system described below can be considered as the functional modules required to implement the image processing method provided in this specification; the content of the image processing system described below can be compared with the content of the image processing method described above. refer to each other.
参照图9所示的本说明书实施例中一种图像处理系统的结构框图,在本说明书实施例中,所述图像处理系统90可以包括:细节提取模块91,适于提取原始图像的图像特征,得到第一细节图像;细节生成模块92,适于从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素,并基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;图像合成模块93,适于合并所述第二细节图像和所述原始图像,得到合成图像。Referring to the structural block diagram of an image processing system in the embodiment of the present specification shown in FIG. 9, in the embodiment of the present specification, the image processing system 90 may include: a detail extraction module 91, adapted to extract image features of the original image, A first detail image is obtained; the detail generation module 92 is adapted to select a target pixel and a local area from the first detail image, the local area includes the target pixel, and based on other pixels in the local area and all According to the statistical relationship between the target pixels, the corresponding statistical feature information is obtained by calculation, and the statistical feature information is updated to the color information of the target pixel in the first detailed image to obtain a second detailed image; the image synthesis module 93, suitable for and combining the second detail image and the original image to obtain a composite image.
由上可知,采用本说明书提供的图像处理系统,通过目标像素与所述局部区域中其他像素之间的统计关系,能够计算得到相应的统计特征信息,从而利用图像像素之间的统计特性,预测局部区域中隐含的细微图像特征,在将所述统计特征信息更新为相应目标像素的颜色信息后,获得的第二细节图像中包含细微图像特征,进而将所述第二细节图像和所述原始图像进行合并,丰富原始图像的图像特征,合理改善原始图像细节模糊的缺陷,使得图像具有更强的细节表现能力,提升图像质量。It can be seen from the above that using the image processing system provided in this specification, through the statistical relationship between the target pixel and other pixels in the local area, the corresponding statistical feature information can be calculated, so that the statistical features between image pixels can be used to predict. The subtle image features hidden in the local area, after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The original images are merged to enrich the image features of the original images, and reasonably improve the defects of blurred details of the original images, so that the images have a stronger ability to express details and improve the image quality.
相比于采用上述双立方插值、基于方向的插值等传统和改进分辨率提升方法的系统,本说明书提供的图像处理系统可以合理改善原始图像细节模糊的缺陷;相比于采用上述深度学习的分辨率提升方法的系统,本说明书提供的图像处理系统在有效预测局部区域中隐含的细微图像特征的同时,还能大幅度降低算法逻辑的复杂度,提升了处理效率。Compared with the above-mentioned systems using traditional and improved resolution enhancement methods such as bicubic interpolation and direction-based interpolation, the image processing system provided in this specification can reasonably improve the defect of blurred details of the original image; The image processing system provided in this specification can effectively predict the subtle image features implicit in the local area, and at the same time, it can also greatly reduce the complexity of the algorithm logic and improve the processing efficiency.
综上,本说明书提供的图像处理方法能够兼顾提升图像质量和处理效率。In conclusion, the image processing method provided in this specification can improve both image quality and processing efficiency.
在实际应用中,由于本说明书提供的图像处理方法提升了处理效率,因此,可以满足实时图像处理的需求,使现有的显示设备能够实时展现具有更多细节的合成图像,优化视觉效果,有效提高用户观看体验。In practical applications, since the image processing method provided in this specification improves processing efficiency, it can meet the needs of real-time image processing, enable existing display devices to display composite images with more details in real time, optimize visual effects, and effectively Improve user viewing experience.
并且,由于本说明书提供的图像处理系统能够兼顾提升图像质量和处理效率,因此具有更广泛的应用场景,不但可以改善过去拍摄的图像的成像质量,还可以在拍摄设备的分辨率 不足的情况下,通过本说明书提供的图像处理系统改善拍摄设备采集的图像数据的质量,使得在显示设备上实时展现的图像具有更多的细节。In addition, since the image processing system provided in this specification can take into account the improvement of image quality and processing efficiency, it has a wider range of application scenarios. , through the image processing system provided in this specification, the quality of the image data collected by the photographing device is improved, so that the image displayed in real time on the display device has more details.
在具体实施中,所述细节提取模块可以通过读取指定存储地址上记录的图像数据获取原始图像,其中,所述细节提取模块可以采用直接读取的读取方式,也可以采用通过其他模块间接读取的读取方式,本说明书实施例对此不作限制。In a specific implementation, the detail extraction module can obtain the original image by reading the image data recorded on the specified storage address, wherein the detail extraction module can adopt the reading method of direct reading, or indirectly through other modules. The reading method of reading is not limited in the embodiment of this specification.
并且,根据图像需求和实际应用情景,细节提取模块可以采用相应的特征提取方法提取原始图像的颜色特征、纹理特征、形状特征和空间关系特征等图像特征,由此得到原始图像所携带的细节信息,得到第一细节图像,作为后续获取第二细节图像的基础。所述细节提取模块具体实施过程可参考图像处理方法相关部分的内容描述,在此不再赘述。Moreover, according to the image requirements and actual application scenarios, the detail extraction module can use the corresponding feature extraction method to extract image features such as color features, texture features, shape features, and spatial relationship features of the original image, thereby obtaining the detail information carried by the original image. , to obtain the first detailed image, which is used as the basis for the subsequent acquisition of the second detailed image. For the specific implementation process of the detail extraction module, reference may be made to the content description of the relevant part of the image processing method, which will not be repeated here.
在具体实施中,所述细节生成模块可以根据实际设定选取目标像素和所述局部区域。例如,所述细节生成模块可以采取以下选取方式选取所述目标像素和所述局部区域:基于预设的选取条件,从所述第一细节图像中选取所述目标像素,并基于预设的区域几何参数,选取包含所述目标像素的局部区域。In a specific implementation, the detail generation module may select the target pixel and the local area according to actual settings. For example, the detail generation module may select the target pixel and the local area in the following selection manner: select the target pixel from the first detail image based on a preset selection condition, and select the target pixel from the first detail image based on a preset selection condition. Geometry parameters, select the local area containing the target pixel.
然后,所述细节生成模块可以以第一细节图像作为基础,选取的局部区域可表征第一细节图像中的局部原生细节,通过局部区域中像素之间的统计特性,能够获得统计特征信息,进而更新目标像素的颜色信息,获得包含细微图像特征的第二细节图像。所述细节生成模块的具体实施过程可参考图像处理方法相关部分的内容描述,在此不再赘述。Then, the detail generation module may use the first detail image as a basis, the selected local area may represent the local native detail in the first detail image, and statistical feature information can be obtained through statistical characteristics between pixels in the local area, and then Update the color information of the target pixel to obtain a second detailed image containing subtle image features. For the specific implementation process of the detail generation module, reference may be made to the content description of the relevant part of the image processing method, which will not be repeated here.
在具体实施中,当存在多个相应的目标像素和局部区域时,所述细节生成模块可以按照预设的顺序对各相应的目标像素和局部区域进行处理,也可以按照预设的数量获取至少部分相应的目标像素和局部区域进行处理。本说明书对于所述细节生成模块处理多个相应的目标像素和局部区域的顺序不作限制。In a specific implementation, when there are multiple corresponding target pixels and local areas, the detail generation module may process the corresponding target pixels and local areas in a preset order, or obtain at least Part of the corresponding target pixels and local regions are processed. This specification does not limit the order in which the detail generation module processes the plurality of corresponding target pixels and local regions.
在具体实施中,由于在获取统计特征信息时更加注重了高频段像素信息,第二细节图像中的像素可能处于较高频段,容易产生噪声,为了降低所述第二细节图像的噪声,如图9所示,所述图像处理系统90还可以包括:细节处理模块94。In the specific implementation, since more attention is paid to the high-frequency band pixel information when acquiring statistical feature information, the pixels in the second detailed image may be in a higher frequency band, which is prone to generate noise. In order to reduce the noise of the second detailed image, as shown in Fig. As shown in FIG. 9 , the image processing system 90 may further include: a detail processing module 94 .
所述细节处理模块94位于所述细节生成模块92和所述图像合成模块93之间,适于对所述细节生成模块92得到的第二细节图像进行降噪处理,并将降噪处理后的第二细节图像发送至所述图像合成模块93。所述图像合成模块93合并降噪处理后的第二细节图像和所述原始图像,得到合成图像。The detail processing module 94 is located between the detail generation module 92 and the image synthesis module 93, and is adapted to perform noise reduction processing on the second detail image obtained by the detail generation module 92, and combine the noise reduction processed image. The second detail image is sent to the image synthesis module 93 . The image synthesis module 93 combines the second detail image after noise reduction processing and the original image to obtain a composite image.
可以理解的是,所述细节处理模块的具体实施过程可参考图像处理方法相关部分的内容描述,在此不再赘述。It can be understood that, for the specific implementation process of the detail processing module, reference may be made to the content description of the relevant part of the image processing method, which will not be repeated here.
在具体实施中,本说明书提供的图像处理系统可以处理经过图像增强的图像,具有较好的兼容性和适应性。In a specific implementation, the image processing system provided in this specification can process an image that has undergone image enhancement, and has better compatibility and adaptability.
例如,参照图9所示,所述图像处理系统90还可以包括:分辨率处理模块95。所述分辨率处理模块95分别与所述细节提取模块91和所述图像合成模块93连接,适于对所述原始图像进行分辨率放大处理,并将分辨率放大处理后的原始图像发送至所述细节提取模块91和所述图像合成模块93。所述细节提取模块91提取分辨率放大处理后的原始图像的图像特征,得到第一细节图像;所述图像合成模块93合并所述第二细节图像和分辨率放大处理后的原始图像,得到合成图像。For example, as shown in FIG. 9 , the image processing system 90 may further include: a resolution processing module 95 . The resolution processing module 95 is respectively connected with the detail extraction module 91 and the image synthesis module 93, and is adapted to perform resolution enlargement processing on the original image, and send the original image after the resolution enlargement processing to the The detail extraction module 91 and the image synthesis module 93 are described. The detail extraction module 91 extracts the image features of the original image after resolution enlargement processing to obtain a first detail image; the image synthesis module 93 combines the second detail image and the original image after resolution enlargement processing to obtain a synthesis image.
由此,通过分辨率放大处理,可以提升原始图像的分辨率,有利于后续模块的处理。Therefore, through the resolution amplification process, the resolution of the original image can be improved, which is beneficial to the processing of subsequent modules.
在具体实施中,所述分辨率处理模块可以通过读取指定存储地址上记录的图像数据获取原始图像,其中,所述分辨率处理模块可以采用直接读取的读取方式,也可以采用通过其他模块间接读取的读取方式,本说明书实施例对此不作限制。In a specific implementation, the resolution processing module can obtain the original image by reading the image data recorded on the specified storage address, wherein the resolution processing module can adopt the reading method of direct reading, or can adopt other methods of reading. The reading method of the module indirect reading is not limited in the embodiment of this specification.
为了便于本领域的技术人员理解本说明书提供的图像处理系统的工作流程,以下结合图像处理系统的流程图进行示意说明。In order to facilitate those skilled in the art to understand the workflow of the image processing system provided in this specification, a schematic description is given below with reference to the flowchart of the image processing system.
如图10所示,为一种图像处理系统的流程图,所述图像处理系统10可以包括分辨率处理模块101、细节提取模块102、细节生成模块103、细节处理模块104和图像合成模块105,所述图像处理系统10的工作流程如下。As shown in FIG. 10, which is a flowchart of an image processing system, the image processing system 10 may include a resolution processing module 101, a detail extraction module 102, a detail generation module 103, a detail processing module 104, and an image synthesis module 105. The workflow of the image processing system 10 is as follows.
1)原始图像Img0输入所述分辨率处理模块101,所述分辨率处理模块101对所述原始图像Img0进行分辨率放大处理,并将分辨率放大处理后的原始图像Img0’输出至所述细节提取模块102和所述图像合成模块105。1) The original image Img0 is input to the resolution processing module 101, and the resolution processing module 101 performs resolution enlargement processing on the original image Img0, and outputs the original image Img0' after the resolution enlargement processing to the details Extraction module 102 and the image synthesis module 105 .
2)所述细节提取模块102提取分辨率放大处理后的原始图像Img0’的图像特征,将第一细节图像Img1输出至细节生成模块103。2) The detail extraction module 102 extracts the image features of the original image Img0' after the resolution amplification process, and outputs the first detail image Img1 to the detail generation module 103.
3)所述细节生成模块103从所述第一细节图像Img1中选取目标像素和局部区域,所述局部区域中包括所述目标像素,并基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,将第二细节图像Img2输出至细节处理模块104。3) The detail generation module 103 selects a target pixel and a local area from the first detail image Img1, the local area includes the target pixel, and based on the relationship between other pixels in the local area and the target pixel The statistical relationship between the two is calculated to obtain the corresponding statistical feature information, the statistical feature information is updated to the color information of the target pixel in the first detail image, and the second detail image Img2 is output to the detail processing module 104.
4)所述细节处理模块104对第二细节图像Img2进行降噪处理,并将降噪处理后的第二细节图像Img2’输出至所述图像合成模块105。4) The detail processing module 104 performs noise reduction processing on the second detail image Img2, and outputs the second detail image Img2' after the noise reduction processing to the image synthesis module 105.
5)所述图像合成模块105将降噪处理后的第二细节图像Img2’和相应的分辨率放大处理后的原始图像Img0’合并,输出合成图像ImgH。5) The image synthesis module 105 merges the second detail image Img2' after the noise reduction processing and the original image Img0' after the corresponding resolution amplification processing, and outputs the synthesized image ImgH.
可以理解的是,上文描述了本发明实施例提供的多个实施例方案,各实施例方案介绍的各可选方式可在不冲突的情况下相互结合、交叉引用,从而延伸出多种可能的实施例方案,这些均可认为是本发明披露、公开的实施例方案。It can be understood that the above describes the multiple embodiments provided by the embodiments of the present invention, and the optional modes introduced by the embodiments can be combined and cross-referenced with each other without conflict, thereby extending a variety of possibilities. These can be considered as the embodiments disclosed and disclosed in the present invention.
根据上述内容可知,现有分辨率提升方法存在模糊、混淆、算法逻辑过于复杂等问题,更加难以应用到图像数据量更大的视频处理中,为了解决现有分辨率提升方法存在的技术问题,本说明书实施例还提供了一种视频处理方案,在提取目标视频帧的图像特征后,利用局部区域中像素之间的统计特性,可以更新局部区域中像素的颜色信息,由此增加目标视频帧的细微图像特征,提升图像质量,并减少算法逻辑的复杂度,提升处理效率。According to the above content, the existing resolution enhancement methods have problems such as ambiguity, confusion, and overly complex algorithm logic, which makes it more difficult to apply to video processing with a larger amount of image data. In order to solve the technical problems existing in the existing resolution enhancement methods, The embodiments of this specification also provide a video processing solution. After extracting the image features of the target video frame, the color information of the pixels in the local area can be updated by using the statistical characteristics between the pixels in the local area, thereby increasing the target video frame. It can improve the image quality, reduce the complexity of algorithm logic and improve processing efficiency.
为使本领域技术人员更加清楚地了解及实施本说明书实施例的构思、实现方案及优点,以下参照附图,通过具体应用场景进行详细说明。In order for those skilled in the art to more clearly understand and implement the concepts, implementation solutions and advantages of the embodiments of the present specification, the following detailed description is given through specific application scenarios with reference to the accompanying drawings.
参照图11所示的本说明书实施例中一种视频处理方法的流程图,在本说明书实施例中,所述方法可以包括以下步骤。Referring to the flowchart of a video processing method in the embodiment of the present specification shown in FIG. 11 , in the embodiment of the present specification, the method may include the following steps.
SB1,提取视频流中目标视频帧的图像特征,得到第一细节图像。SB1, extract the image features of the target video frame in the video stream to obtain the first detail image.
在具体实施中,所述视频流可以是经过编码压缩的视频流(又可以称为编码流),也可以是未经过编码压缩的视频流(又可以称为原始流)。若所述视频流进行过编码压缩,则在提取视频流中目标视频帧的图像特征之前,可以先对所述视频流进行反向解码,得到原始流。In a specific implementation, the video stream may be an encoded and compressed video stream (also referred to as an encoded stream), or may be an unencoded and compressed video stream (also referred to as an original stream). If the video stream has been encoded and compressed, before extracting the image features of the target video frame in the video stream, the video stream may be reversely decoded to obtain the original stream.
所述视频流包含的一个视频帧可以视为一幅图像,通过连续播放视频帧,可以在显示设备上展示动态画面。由此,通过预设的目标选取条件,确定视频流中的目标视频帧之后,可以对目标视频帧进行图像特征提取。A video frame included in the video stream can be regarded as an image, and by continuously playing the video frames, a dynamic picture can be displayed on the display device. Therefore, after the target video frame in the video stream is determined through the preset target selection condition, image feature extraction can be performed on the target video frame.
可选地,在提取目标视频帧的图像特征之前,可以将目标视频帧进行灰度化处理,得到灰度的目标视频帧,以作为特征提取处理的对象;或者,在提取目标视频帧的图像特征之前,可以将目标视频帧进行二值化处理,得到黑白的目标视频帧,以作为特征提取处理的对象。Optionally, before extracting the image features of the target video frame, the target video frame can be subjected to grayscale processing to obtain a grayscale target video frame as the object of feature extraction processing; or, after extracting the image of the target video frame Before the feature, the target video frame can be binarized to obtain a black and white target video frame, which can be used as the object of feature extraction processing.
可以理解的是,根据实际需求和应用场景,可以设定不同目标选取条件,如按照时间间隔选取视频帧,或者按照排序选取指定序号的视频帧等;并且,根据目标选取条件可以获取一个或多个目标视频帧,本说明书实施例对于目标选取条件的具体内容和目标视频帧的数量不做限制。It can be understood that different target selection conditions can be set according to actual needs and application scenarios, such as selecting video frames according to time intervals, or selecting video frames with specified serial numbers according to sorting, etc.; and, according to target selection conditions, one or more target video frames, the embodiments of this specification do not limit the specific content of the target selection condition and the number of target video frames.
在具体实施中,根据图像需求和实际应用情景,可以采用相应的特征提取方法提取目标视频帧的颜色特征、纹理特征、形状特征和空间关系特征等图像特征,由此得到目标视频帧 所携带的细节信息,得到第一细节图像,作为后续获取第二细节图像的基础。例如,可以基于预设的滤波窗口几何参数和滤波系数,对所述目标视频帧进行滤波处理,提取所述目标视频帧的图像特征。In specific implementation, according to image requirements and actual application scenarios, corresponding feature extraction methods can be used to extract image features such as color features, texture features, shape features, and spatial relationship features of the target video frame, thereby obtaining the image features carried by the target video frame. The detail information is obtained, and the first detail image is obtained, which is used as the basis for the subsequent acquisition of the second detail image. For example, filtering processing may be performed on the target video frame based on preset geometric parameters of the filtering window and filter coefficients, and the image features of the target video frame may be extracted.
可以理解的是,目标视频帧进行图像特征提取的具体实施过程可以参考上述图像处理方法相关部分的内容描述,在此不再赘述。It can be understood that, for the specific implementation process of performing image feature extraction on the target video frame, reference may be made to the content description of the relevant part of the above-mentioned image processing method, which will not be repeated here.
SB2,从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素。SB2: Select a target pixel and a local area from the first detail image, and the local area includes the target pixel.
在具体实施中,所述目标像素和所述局部区域可以根据实际设定进行选取。例如,所述目标像素和所述局部区域的选取方式可以包括:基于预设的选取条件,从所述第一细节图像中选取所述目标像素,并基于预设的区域几何参数,选取包含所述目标像素的局部区域。In a specific implementation, the target pixel and the local area may be selected according to actual settings. For example, the selection method of the target pixel and the local area may include: selecting the target pixel from the first detail image based on a preset selection condition, and selecting the target pixel including the describe the local area of the target pixel.
其中,选取所述目标像素和所述局部区域的具体实施过程可以参考上述图像处理方法相关部分的内容描述,在此不再赘述。For the specific implementation process of selecting the target pixel and the local area, reference may be made to the content description of the relevant part of the above-mentioned image processing method, which will not be repeated here.
SB3,基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,并将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像。SB3, based on the statistical relationship between other pixels in the local area and the target pixel, calculate the corresponding statistical feature information, and update the statistical feature information to the color information of the target pixel in the first detail image , to get the second detail image.
在具体实施中,以第一细节图像作为基础,选取的局部区域可表征第一细节图像中的局部原生细节,通过局部区域中像素之间的统计特性,能够获得统计特征信息,进而更新目标像素的颜色信息,获得包含细微图像特征的第二细节图像。In the specific implementation, based on the first detail image, the selected local area can represent the local native detail in the first detail image, and statistical feature information can be obtained through the statistical characteristics between the pixels in the local area, and then the target pixel can be updated. to obtain a second detailed image containing subtle image features.
进一步地,为了减少计算量,并确保所述局部区域的颜色不变性和旋转不变性,可以设定颜色条件,在获取所述局部区域中其他像素的颜色信息后,可以基于预设的颜色条件,从所述局部区域中确定符合颜色条件的像素,并基于所述局部区域中符合颜色条件的其他像素进行计算,得到所述目标像素相应的统计特征信息。其中,所述颜色条件根据所述目标像素原始的颜色信息设定。Further, in order to reduce the amount of calculation and ensure the color invariance and rotation invariance of the local area, a color condition can be set. After acquiring the color information of other pixels in the local area, the preset color condition can be used. , determine the pixels that meet the color conditions from the local area, and perform calculations based on other pixels that meet the color conditions in the local area to obtain the corresponding statistical feature information of the target pixel. Wherein, the color condition is set according to the original color information of the target pixel.
可以理解的是,获得第二细节图像的具体实施过程可以参考上述图像处理方法相关部分的内容描述,在此不再赘述。It can be understood that, for the specific implementation process of obtaining the second detailed image, reference may be made to the content description of the relevant part of the above-mentioned image processing method, which will not be repeated here.
SB4,将所述第二细节图像和所述目标视频帧进行合并,得到合成视频帧。SB4: Combine the second detailed image and the target video frame to obtain a composite video frame.
在具体实施中,可以将第二细节图像直接与所述视频流中相应的目标视频帧进行合并,也可以将所述目标视频帧从所述视频流中提取出来,在与第二细节图像进行合并后插入所述视频流中。In specific implementation, the second detail image may be directly merged with the corresponding target video frame in the video stream, or the target video frame may be extracted from the video stream, and the second detail image may be combined with the second detail image. Insert into the video stream after merging.
由上可知,采用本说明书提供的视频处理方法,通过目标像素与所述局部区域中其他像素之间的统计关系,能够计算得到相应的统计特征信息,从而利用图像像素之间的统计特性,预测局部区域中隐含的细微图像特征,在将所述统计特征信息更新为相应目标像素的颜色信息后,获得的第二细节图像中包含细微图像特征,进而将所述第二细节图像和所述目标视频帧进行合并,丰富目标视频帧的图像特征,合理改善目标视频帧细节模糊的缺陷,使得目标视频帧具有更强的细节表现能力,提升图像质量。It can be seen from the above that by using the video processing method provided in this specification, through the statistical relationship between the target pixel and other pixels in the local area, the corresponding statistical feature information can be calculated, so that the statistical features between image pixels can be used to predict. The subtle image features hidden in the local area, after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The target video frames are merged to enrich the image features of the target video frames, reasonably improve the defect of blurred details of the target video frames, so that the target video frames have a stronger ability to express details and improve the image quality.
相比于上述双立方插值、基于方向的插值等传统和改进的分辨率提升方法,本说明书提供的视频处理方法可以合理改善目标视频帧细节模糊的缺陷;相比于深度学习的分辨率提升方法,本说明书提供的视频处理方法在有效预测局部区域中隐含的细微图像特征的同时,大幅度降低算法逻辑的复杂度,提升了处理效率。Compared with the above-mentioned traditional and improved resolution enhancement methods such as bicubic interpolation and direction-based interpolation, the video processing method provided in this specification can reasonably improve the defect of blurred details of target video frames; compared with the resolution enhancement method of deep learning , the video processing method provided in this specification greatly reduces the complexity of algorithm logic and improves the processing efficiency while effectively predicting the subtle image features implicit in the local area.
综上,本说明书提供的视频处理方法能够兼顾提升图像质量和处理效率。In conclusion, the video processing method provided in this specification can improve both image quality and processing efficiency.
在实际应用中,由于本说明书提供的视频处理方法提升了处理效率,因此,可以满足实时视频处理的需求,使现有的显示设备能够实时展现具有更多细节的合成视频帧,优化视觉效果,有效提高用户观看体验。In practical applications, since the video processing method provided in this specification improves processing efficiency, it can meet the needs of real-time video processing, enable existing display devices to display composite video frames with more details in real time, and optimize visual effects. Effectively improve user viewing experience.
并且,由于本说明书提供的视频处理方法能够兼顾提升图像质量和处理效率,因此具有 更广泛的应用场景,不但可以改善过去拍摄的视频的成像质量,还可以在拍摄设备的分辨率不足的情况下,通过本说明书提供的视频处理方法改善拍摄设备采集的视频帧数据的质量,使得在显示设备上实时展现的视频具有更多的细节。In addition, since the video processing method provided in this specification can improve both image quality and processing efficiency, it has a wider range of application scenarios, which can not only improve the imaging quality of videos shot in the past, but also can be used when the resolution of the shooting equipment is insufficient. , the quality of the video frame data collected by the shooting device is improved by the video processing method provided in this specification, so that the video displayed in real time on the display device has more details.
在具体实施中,若在获取统计特征信息时更加注重高频段像素信息,第二细节图像中的像素可能处于较高频段,容易产生噪声,因此,在合并所述第二细节图像和所述目标视频帧之前,可以对所述第二细节图像进行降噪处理,以将降噪处理后的第二细节图像和所述目标视频帧进行合并。In a specific implementation, if more attention is paid to high-frequency pixel information when acquiring statistical feature information, the pixels in the second detailed image may be in a higher frequency band, which is likely to generate noise. Therefore, when combining the second detailed image and the target Before the video frame, noise reduction processing may be performed on the second detail image, so as to combine the second detail image after noise reduction processing with the target video frame.
以下通过几个实施例示意说明如何对所述第二细节图像进行降噪处理。The following is a schematic illustration of how to perform noise reduction processing on the second detail image through several embodiments.
在本说明书一实施例中,在合并所述第二细节图像和所述目标视频帧之前,可以对所述第二细节图像进行平滑处理,以将平滑处理后的第二细节图像和所述目标视频帧进行合并。其中,所述平滑处理可以根据实际情景选择相应的滤波方法,如高斯低通滤波方法、双边滤波方法等。本说明书实施例对此不做限制。In an embodiment of this specification, before merging the second detail image and the target video frame, smoothing may be performed on the second detail image, so as to combine the smoothed second detail image and the target Video frames are merged. Wherein, the smoothing process may select a corresponding filtering method according to the actual situation, such as a Gaussian low-pass filtering method, a bilateral filtering method, and the like. The embodiments of the present specification do not limit this.
进一步地,参数固定的滤波方法可以去除图像中噪声,但是会丢失很多图像细节,使得图像模糊,为了避免图像丢失过多细节,可以采用自适应滤波方法进行平滑处理,使得图像可以保留更多的细节。例如,所述对所述第二细节图像进行平滑处理可以包括:基于预设的导引图像,对所述第二细节图像进行导引滤波处理。Further, the filtering method with fixed parameters can remove the noise in the image, but it will lose a lot of image details, making the image blurred. detail. For example, the smoothing processing on the second detail image may include: performing guide filtering processing on the second detail image based on a preset guide image.
更进一步地,为了使导引滤波处理的强度(即颜色信息的取值范围)能够根据不同的第二细节图像进行自适应,可以将目标视频帧作为导引图像,基于所述目标视频帧,对所述第二细节图像进行导引滤波处理。Further, in order to enable the intensity of the guided filtering process (that is, the value range of the color information) to be adaptive according to different second detail images, the target video frame can be used as a guide image, and based on the target video frame, A guided filtering process is performed on the second detail image.
在本说明书另一实施例中,在合并所述第二细节图像和所述目标视频帧之前,可以基于预设的调制图像,对所述第二细节图像进行图像调制处理,以将调制处理后的第二细节图像和所述目标视频帧进行合并。其中,所述调制图像可以是根据调制先验数据或调制测试数据设置的图像,也可以是根据先验经验在所述视频流中选取的用于区分噪声和细节的图片。In another embodiment of the present specification, before merging the second detail image and the target video frame, image modulation processing may be performed on the second detail image based on a preset modulation image, so as to The second detail image and the target video frame are merged. The modulated image may be an image set according to modulation prior data or modulation test data, or may be a picture selected from the video stream according to prior experience for distinguishing noise and details.
在具体实施中,本说明书提供的视频处理方法可以与实现图像增强的方法结合,具有较好的兼容性和适应性。In specific implementation, the video processing method provided in this specification can be combined with the method for realizing image enhancement, and has good compatibility and adaptability.
例如,在所述提取目标视频帧的图像特征之前,还可以包括:采用分辨率提升方法,对所述目标视频帧进行分辨率放大处理,以提取分辨率放大处理后的目标视频帧的图像特征,并将所述第二细节图像和分辨率放大处理后的目标视频帧进行合并。由此,通过分辨率放大处理,可以提升原始图像的分辨率,有利于后续步骤的处理。For example, before extracting the image features of the target video frame, the method may further include: using a resolution enhancement method to perform a resolution enlargement process on the target video frame, so as to extract the image features of the target video frame after the resolution enlargement processing. , and combine the second detailed image and the target video frame after resolution enlargement processing. Therefore, through the resolution amplification process, the resolution of the original image can be improved, which is beneficial to the processing in the subsequent steps.
可以理解的是,上文描述了本说明书实施例提供的多个实施例方案,各实施例方案介绍的各可选方式可在不冲突的情况下相互结合、交叉引用,从而延伸出多种可能的实施例方案,这些均可认为是本说明书披露、公开的实施例方案。It can be understood that the above describes the multiple embodiments provided by the embodiments of this specification, and the optional modes introduced by the embodiments can be combined and cross-referenced with each other without conflict, thereby extending a variety of possibilities. These can be considered as the embodiments disclosed and disclosed in this specification.
本说明书还提供了与上述视频处理方法对应的视频处理系统,以下参照附图,通过具体实施例进行详细介绍。需要知道的是,下文描述的视频处理系统可以认为是为实现本说明书提供的视频处理方法所需设置的功能模块;下文描述的视频处理系统的内容,可与上文描述的视频处理方法的内容相互对应参照。This specification also provides a video processing system corresponding to the above-mentioned video processing method, which will be described in detail below through specific embodiments with reference to the accompanying drawings. It should be known that the video processing system described below can be considered as the functional modules required to implement the video processing method provided in this specification; the content of the video processing system described below can be compared with the content of the video processing method described above. refer to each other.
参照图12所示的本说明书实施例中一种视频处理系统的结构框图,在本说明书实施例中,所述视频处理系统120可以包括:细节提取模块121,适于提取视频流中目标视频帧的图像特征,得到第一细节图像;细节生成模块122,适于从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素,并基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;视频合成模块123,适于将所述第二细节图像和所述目标视频帧进行合并,得到合成视频帧。Referring to the structural block diagram of a video processing system in the embodiment of the present specification shown in FIG. 12, in the embodiment of the present specification, the video processing system 120 may include: a detail extraction module 121, adapted to extract target video frames in a video stream The image features of the first detail image are obtained to obtain a first detail image; the detail generation module 122 is adapted to select a target pixel and a local area from the first detail image, the local area includes the target pixel, and based on the local area Calculate the statistical relationship between other pixels and the target pixel, calculate the corresponding statistical feature information, update the statistical feature information to the color information of the target pixel in the first detailed image, and obtain a second detailed image; video synthesis; The module 123 is adapted to combine the second detailed image and the target video frame to obtain a composite video frame.
由上可知,采用本说明书提供的视频处理系统,通过目标像素与所述局部区域中其他像 素之间的统计关系,能够计算得到相应的统计特征信息,从而利用图像像素之间的统计特性,预测局部区域中隐含的细微图像特征,在将所述统计特征信息更新为相应目标像素的颜色信息后,获得的第二细节图像中包含细微图像特征,进而将所述第二细节图像和所述目标视频帧进行合并,丰富目标视频帧的图像特征,合理改善目标视频帧细节模糊的缺陷,使得目标视频帧具有更强的细节表现能力,提升图像质量。It can be seen from the above that using the video processing system provided in this specification, through the statistical relationship between the target pixel and other pixels in the local area, the corresponding statistical feature information can be calculated, so that the statistical features between image pixels can be used to predict. The subtle image features hidden in the local area, after the statistical feature information is updated to the color information of the corresponding target pixel, the obtained second detailed image contains subtle image features, and then the second detailed image and the The target video frames are merged to enrich the image features of the target video frames, reasonably improve the defect of blurred details of the target video frames, so that the target video frames have a stronger ability to express details and improve the image quality.
相比于采用上述双立方插值、基于方向的插值等传统和改进的分辨率提升方法的系统,本说明书提供的视频处理系统可以合理改善目标视频帧细节模糊的缺陷;相比于采用上述深度学习的分辨率提升方法的系统,本说明书提供的视频处理系统在有效预测局部区域中隐含的细微图像特征的同时,大幅度降低算法逻辑,提升了处理效率。Compared with the above-mentioned systems using traditional and improved resolution enhancement methods such as bicubic interpolation and direction-based interpolation, the video processing system provided in this specification can reasonably improve the defect of blurred details of target video frames; The system of the resolution enhancement method provided by this specification, while effectively predicting the subtle image features implicit in the local area, greatly reduces the algorithm logic and improves the processing efficiency.
综上,本说明书提供的视频处理系统能够兼顾提升图像质量和处理效率。In conclusion, the video processing system provided in this specification can improve both image quality and processing efficiency.
在实际应用中,由于本说明书提供的视频处理系统提升了处理效率,因此,可以满足实时视频处理的需求,使现有的显示设备能够实时展现具有更多细节的合成视频帧,优化视觉效果,有效提高用户观看体验。In practical applications, since the video processing system provided in this specification improves processing efficiency, it can meet the needs of real-time video processing, enable existing display devices to display synthetic video frames with more details in real time, and optimize visual effects. Effectively improve user viewing experience.
并且,由于本说明书提供的视频处理系统能够兼顾提升图像质量和处理效率,因此具有更广泛的应用场景,不但可以改善过去拍摄的视频的成像质量,还可以在拍摄设备的分辨率不足的情况下,通过本说明书提供的视频处理系统改善拍摄设备采集的视频帧数据的质量,使得在显示设备上实时展现的视频具有更多的细节。In addition, since the video processing system provided in this specification can improve both image quality and processing efficiency, it has a wider range of application scenarios, which can not only improve the image quality of videos shot in the past, but also can be used when the resolution of the shooting equipment is insufficient. , the quality of the video frame data collected by the shooting device is improved by the video processing system provided in this specification, so that the video displayed in real time on the display device has more details.
在具体实施中,所述细节提取模块可以通过读取指定存储地址上记录的视频帧数据获取目标视频帧,也可以通过指定的通信地址读取视频流并从视频流中确定目标视频帧。其中,所述细节提取模块可以采用直接读取的读取方式,也可以采用通过其他模块间接读取的读取方式,本说明书实施例对此不作限制。此外,所述细节提取模块具体实施过程可参考图像处理方法及视频处理方法相关部分的内容描述,在此不再赘述。In a specific implementation, the detail extraction module can obtain the target video frame by reading the video frame data recorded on the designated storage address, or can read the video stream through the designated communication address and determine the target video frame from the video stream. Wherein, the detail extraction module may adopt a reading method of direct reading, or may adopt a reading method of indirect reading through other modules, which is not limited in the embodiment of the present specification. In addition, for the specific implementation process of the detail extraction module, reference may be made to the content description of the relevant parts of the image processing method and the video processing method, which will not be repeated here.
在具体实施中,所述细节生成模块可以根据实际设定选取目标像素和所述局部区域。例如,所述细节生成模块可以采取以下选取方式选取所述目标像素和所述局部区域:基于预设的选取条件,从所述第一细节图像中选取所述目标像素,并基于预设的区域几何参数,选取包含所述目标像素的局部区域。In a specific implementation, the detail generation module may select the target pixel and the local area according to actual settings. For example, the detail generation module may select the target pixel and the local area in the following selection manner: select the target pixel from the first detail image based on a preset selection condition, and select the target pixel from the first detail image based on a preset selection condition. Geometry parameters, select the local area containing the target pixel.
然后,所述细节生成模块可以以第一细节图像作为基础,选取的局部区域可表征第一细节图像中的局部原生细节,通过局部区域中像素之间的统计特性,能够获得统计特征信息,进而更新目标像素的颜色信息,获得包含细微图像特征的第二细节图像。所述细节生成模块的具体实施过程可参考图像处理方法和视频处理方法相关部分的内容描述,在此不再赘述。Then, the detail generation module may use the first detail image as a basis, the selected local area may represent the local native detail in the first detail image, and statistical feature information can be obtained through statistical characteristics between pixels in the local area, and then Update the color information of the target pixel to obtain a second detailed image containing subtle image features. For the specific implementation process of the detail generation module, reference may be made to the content descriptions of the relevant parts of the image processing method and the video processing method, which will not be repeated here.
在具体实施中,由于在获取统计特征信息时更加注重了高频段像素信息,第二细节图像中的像素可能处于较高频段,容易产生噪声,为了降低所述第二细节图像的噪声,如图12所示,所述视频处理系统120还可以包括:细节处理模块124。In the specific implementation, since more attention is paid to the high-frequency band pixel information when acquiring statistical feature information, the pixels in the second detailed image may be in a higher frequency band, which is prone to generate noise. In order to reduce the noise of the second detailed image, as shown in Fig. As shown in 12, the video processing system 120 may further include: a detail processing module 124.
所述细节处理模块124位于所述细节生成模块122和所述视频合成模块123之间,适于对所述细节生成模块122得到的第二细节图像进行降噪处理,并将降噪处理后的第二细节图像发送至所述视频合成模块123。所述视频合成模块123合并降噪处理后的第二细节图像和所述目标视频帧,得到合成视频帧。The detail processing module 124 is located between the detail generation module 122 and the video synthesis module 123, and is adapted to perform noise reduction processing on the second detail image obtained by the detail generation module 122, and denoise the second detail image after the noise reduction processing. The second detail image is sent to the video synthesis module 123 . The video synthesis module 123 combines the second detail image after noise reduction processing and the target video frame to obtain a composite video frame.
可以理解的是,所述细节处理模块的具体实施过程可参考图像处理方法相关部分的内容描述,在此不再赘述。It can be understood that, for the specific implementation process of the detail processing module, reference may be made to the content description of the relevant part of the image processing method, which will not be repeated here.
在具体实施中,本说明书提供的视频处理系统可以处理经过图像增强的视频,具有较好的兼容性和适应性。In a specific implementation, the video processing system provided in this specification can process the image-enhanced video, and has better compatibility and adaptability.
例如,参照图12所示,所述视频处理系统120还可以包括:分辨率处理模块125。所述分辨率处理模块125分别与所述细节提取模块121和所述视频合成模块123连接,适于对所述目标视频帧进行分辨率放大处理,并将分辨率放大处理后的目标视频帧发送至所述细 节提取模块121和所述视频合成模块123。所述细节提取模块121提取分辨率放大处理后的目标视频帧的图像特征,得到第一细节图像;所述图像合成模块123合并所述第二细节图像和分辨率放大处理后的目标视频帧,得到合成视频帧。For example, as shown in FIG. 12 , the video processing system 120 may further include: a resolution processing module 125 . The resolution processing module 125 is respectively connected with the detail extraction module 121 and the video synthesis module 123, and is adapted to perform resolution amplification processing on the target video frame, and send the target video frame after resolution amplification processing. to the detail extraction module 121 and the video synthesis module 123 . The detail extraction module 121 extracts the image features of the target video frame after resolution enlargement processing to obtain a first detail image; the image synthesis module 123 combines the second detail image and the resolution enlargement processing target video frame, Get the composite video frame.
由此,通过分辨率放大处理,可以提升原始图像的分辨率,有利于后续模块的处理。Therefore, through the resolution amplification process, the resolution of the original image can be improved, which is beneficial to the processing of subsequent modules.
在具体实施中,所述分辨率处理模块可以通过读取指定存储地址上记录的视频帧数据获取目标视频帧,也可以通过指定的通信地址读取视频流并从视频流中确定目标视频帧。其中,所述分辨率处理模块可以采用直接读取的读取方式,也可以采用通过其他模块间接读取的读取方式,本说明书实施例对此不作限制。In a specific implementation, the resolution processing module can obtain the target video frame by reading the video frame data recorded on the designated storage address, or can read the video stream through the designated communication address and determine the target video frame from the video stream. The resolution processing module may adopt a reading method of direct reading, or may adopt a reading method of indirect reading through other modules, which is not limited in the embodiment of this specification.
在实际实施时,所述视频处理系统的工作流程可以参照图像处理系统工作流程的相关描述及图10,在此不再赘述。In actual implementation, for the workflow of the video processing system, reference may be made to the related description of the workflow of the image processing system and FIG. 10 , which will not be repeated here.
可以理解的是,上文描述了本发明实施例提供的多个实施例方案,各实施例方案介绍的各可选方式可在不冲突的情况下相互结合、交叉引用,从而延伸出多种可能的实施例方案,这些均可认为是本发明披露、公开的实施例方案。It can be understood that the above describes the multiple embodiments provided by the embodiments of the present invention, and the optional modes introduced by the embodiments can be combined and cross-referenced with each other without conflict, thereby extending a variety of possibilities. These can be considered as the embodiments disclosed and disclosed in the present invention.
本说明书实施例还提供了一种数据处理模块,所述数据处理模块应用于激光雷达,并与所述激光雷达的接收部连接,The embodiment of this specification also provides a data processing module, the data processing module is applied to the laser radar, and is connected to the receiving part of the laser radar,
所述数据处理模块可以包括存储器和处理器,所述存储器适于存储一条或多条计算机指令,所述处理器运行所述计算机指令时执行前述任一实施例所述图像处理方法或视频处理方法的步骤。具体步骤可以参照前述实施例,此处不再赘述。The data processing module may include a memory and a processor, the memory is suitable for storing one or more computer instructions, and the processor executes the image processing method or the video processing method described in any one of the foregoing embodiments when the processor executes the computer instructions. A step of. For specific steps, reference may be made to the foregoing embodiments, which will not be repeated here.
可选地,所述处理器可以通过CPU(Central Processing Unit,中央处理器)、GPU(Graphics Processing Unit,图形处理器)、FPGA(Field Programmable Gate Array,现场可编程逻辑门阵列)等处理芯片实现,也可以通过ASIC(Application Specific Integrated Circuit,特定集成电路)或者是被配置成实施本说明书实施例的一个或多个集成电路实现。Optionally, the processor can be implemented by processing chips such as CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processor), FPGA (Field Programmable Gate Array, field programmable logic gate array). , can also be implemented by an ASIC (Application Specific Integrated Circuit, a specific integrated circuit) or one or more integrated circuits configured to implement the embodiments of the present specification.
可选地,所述存储器可以包含高速RAM存储器,也可以还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。Optionally, the memory may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
在具体实施中,所述数据处理设备还可以包括扩展接口,适于与其他设备进行连接,实现数据交互。如所述数据处理设备可以和显示设备连接,以播放合成图像或包含合成视频帧的视频流。In a specific implementation, the data processing device may further include an extension interface, which is suitable for connecting with other devices to realize data interaction. The data processing device as described may be connected to a display device to play a composite image or a video stream containing composite video frames.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令运行时可以执行本发明上述任一实施例所述图像处理方法或视频处理方法的的步骤。其中,所述计算机可读存储介质可以是光盘、机械硬盘、固态硬盘等各种适当的可读存储介质。所述计算机可读存储介质上存储的指令执行上述任一实施例所述的图像处理方法或视频处理方法的步骤,具体可参照上述实施例,不再赘述。An embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions, which can execute the steps of the image processing method or the video processing method described in any of the foregoing embodiments of the present invention when the computer instructions are executed. Wherein, the computer-readable storage medium may be various suitable readable storage mediums such as an optical disc, a mechanical hard disk, and a solid-state hard disk. The instructions stored on the computer-readable storage medium execute the steps of the image processing method or the video processing method described in any of the foregoing embodiments, and the specific reference may be made to the foregoing embodiments, which will not be repeated.
所述计算机可读存储介质可以包括例如任何合适类型的存储器单元、存储器设备、存储器物品、存储器介质、存储设备、存储物品、存储介质和/或存储单元,例如,存储器、可移除的或不可移除的介质、可擦除或不可擦除介质、可写或可重写介质、数字或模拟介质、硬盘、软盘、光盘只读存储器(CD-ROM)、可刻录光盘(CD-R)、可重写光盘(CD-RW)、光盘、磁介质、磁光介质、可移动存储卡或磁盘、各种类型的数字通用光盘(DVD)、磁带、盒式磁带等。The computer-readable storage medium may include, for example, any suitable type of memory unit, storage device, storage item, storage medium, storage device, storage item, storage medium and/or storage unit, eg, memory, removable or non- Removable media, erasable or non-removable media, writable or rewritable media, digital or analog media, hard disks, floppy disks, compact disc read only memory (CD-ROM), compact disc recordable (CD-R), Compact Disc Rewritable (CD-RW), Optical Disc, Magnetic Media, Magneto-Optical Media, Removable Memory Card or Disk, Various Types of Digital Versatile Disc (DVD), Magnetic Tape, Cassette, etc.
计算机指令可以包括通过使用任何合适的高级、低级、面向对象的、可视化的、编译的和/或解释的编程语言来实现的任何合适类型的代码,例如,源代码、编译代码、解释代码、可执行代码、静态代码、动态代码、加密代码等。Computer instructions may include any suitable type of code implemented using any suitable high-level, low-level, object-oriented, visual, compiled and/or interpreted programming language, eg, source code, compiled code, interpreted code, executable code Execute code, static code, dynamic code, encrypted code, etc.
需要说明的是,本说明书实施例中的术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含的包括一个或者更多个该特征。而且,术语“第一”、“第 二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以使这里描述的本说明书的实施例能够以除了在这里图示或描述的那些以外的顺序实施。It should be noted that the terms "first" and "second" in the embodiments of the present specification are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. Also, the terms "first," "second," etc. are used to distinguish between similar objects and are not necessarily used to describe a particular order or precedence. It is to be understood that the terms so used are interchangeable under appropriate circumstances to enable the embodiments of the specification described herein to be practiced in sequences other than those illustrated or described herein.
虽然本公开实施例披露如上,但本公开实施例并非限定于此。任何本领域技术人员,在不脱离本公开实施例的精神和范围内,均可作各种更动与修改,因此本公开实施例的保护范围应当以权利要求所限定的范围为准。Although the embodiments of the present disclosure are disclosed above, the embodiments of the present disclosure are not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present disclosure. Therefore, the protection scope of the embodiments of the present disclosure should be based on the scope defined by the claims.

Claims (22)

  1. 一种图像处理方法,其特征在于,包括:An image processing method, comprising:
    提取原始图像的图像特征,得到第一细节图像;extracting image features of the original image to obtain a first detail image;
    从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素;Select target pixels and a local area from the first detail image, and the local area includes the target pixels;
    基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,并将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;Based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated and obtained, and the statistical feature information is updated to the color information of the target pixel in the first detail image to obtain second detail image;
    合并所述第二细节图像和所述原始图像,得到合成图像。The second detail image and the original image are merged to obtain a composite image.
  2. 根据权利要求1所述的图像处理方法,其特征在于,在所述合并所述第二细节图像和所述原始图像之前,还包括:The image processing method according to claim 1, wherein before the combining the second detail image and the original image, the method further comprises:
    对所述第二细节图像进行降噪处理,以将降噪处理后的第二细节图像和所述原始图像进行合并。A noise reduction process is performed on the second detail image, so as to combine the noise reduction processed second detail image and the original image.
  3. 根据权利要求2所述的图像处理方法,其特征在于,所述对所述第二细节图像进行降噪处理,包括:The image processing method according to claim 2, wherein the performing noise reduction processing on the second detail image comprises:
    基于所述原始图像,对所述第二细节图像进行导引滤波处理;performing guided filtering processing on the second detail image based on the original image;
    基于预设的调制图像,对所述第二细节图像进行图像调制处理,并将调制处理后的第二细节图像和所述原始图像进行合并,得到合成图像。Based on the preset modulated image, image modulation processing is performed on the second detail image, and the modulated second detail image and the original image are combined to obtain a composite image.
  4. 根据权利要求1所述的图像处理方法,其特征在于,所述从所述第一细节图像中选取目标像素和局部区域,包括:The image processing method according to claim 1, wherein the selecting the target pixel and the local area from the first detail image comprises:
    基于预设的选取条件,从所述第一细节图像中选取所述目标像素,并基于预设的区域几何参数,选取包含所述目标像素的局部区域。Based on a preset selection condition, the target pixel is selected from the first detail image, and a local area including the target pixel is selected based on a preset area geometric parameter.
  5. 根据权利要求1所述的图像处理方法,其特征在于,所述基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,包括:The image processing method according to claim 1, wherein, calculating and obtaining corresponding statistical feature information based on the statistical relationship between other pixels in the local area and the target pixel, comprising:
    获取所述局部区域中其他像素的颜色信息,并基于预设的颜色条件,从所述局部区域中确定符合颜色条件的像素,并基于所述局部区域中符合颜色条件的其他像素,得到所述目标像素相应的统计特征信息;Acquire the color information of other pixels in the local area, and based on preset color conditions, determine the pixels that meet the color conditions from the local area, and obtain the Statistical feature information corresponding to the target pixel;
    其中,所述颜色条件根据所述目标像素原始的颜色信息设定。Wherein, the color condition is set according to the original color information of the target pixel.
  6. 根据权利要求1所述的图像处理方法,其特征在于,在所述提取原始图像的图像特征之前,还包括:The image processing method according to claim 1, wherein before the extracting the image features of the original image, the method further comprises:
    对所述原始图像进行分辨率放大处理,以提取分辨率放大处理后的原始图像的图像特征,并将所述第二细节图像和分辨率放大处理后的原始图像进行合并。Perform resolution enlargement processing on the original image to extract image features of the original image after resolution enlargement processing, and combine the second detail image and the original image after resolution enlargement processing.
  7. 根据权利要求1所述的图像处理方法,其特征在于,所述提取原始图像的图像特征,包括:The image processing method according to claim 1, wherein the extracting the image features of the original image comprises:
    基于预设的滤波窗口几何参数和滤波系数,对所述原始图像进行滤波处理,提取原始图像的图像特征。Based on the preset filter window geometric parameters and filter coefficients, the original image is filtered to extract the image features of the original image.
  8. 一种视频处理方法,其特征在于,包括:A video processing method, comprising:
    提取视频流中目标视频帧的图像特征,得到第一细节图像;Extracting the image features of the target video frame in the video stream to obtain the first detail image;
    从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素;Select target pixels and a local area from the first detail image, and the local area includes the target pixels;
    基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,并将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;Based on the statistical relationship between other pixels in the local area and the target pixel, the corresponding statistical feature information is calculated and obtained, and the statistical feature information is updated to the color information of the target pixel in the first detail image to obtain second detail image;
    将所述第二细节图像和所述目标视频帧进行合并,得到合成视频帧。The second detailed image and the target video frame are combined to obtain a composite video frame.
  9. 根据权利要求8所述的视频处理方法,其特征在于,在所述将所述第二细节图像和所述 目标视频帧进行合并之前,还包括:video processing method according to claim 8, is characterized in that, before described merging described second detail image and described target video frame, also comprises:
    对所述第二细节图像进行降噪处理,以将降噪处理后的第二细节图像和所述目标视频帧进行合并。Perform noise reduction processing on the second detail image, so as to combine the second detail image after noise reduction processing with the target video frame.
  10. 根据权利要求9所述的视频处理方法,其特征在于,所述对所述第二细节图像进行降噪处理,包括以下至少一种:The video processing method according to claim 9, wherein the performing noise reduction processing on the second detail image comprises at least one of the following:
    基于所述目标视频帧,对所述第二细节图像进行导引滤波处理;performing guided filtering processing on the second detail image based on the target video frame;
    基于预设的调制图像,对所述第二细节图像进行图像调制处理,并将调制处理后的第二细节图像和所述目标视频帧进行合并,得到合成视频帧。Based on the preset modulated image, image modulation processing is performed on the second detailed image, and the modulated second detailed image and the target video frame are combined to obtain a composite video frame.
  11. 根据权利要求8所述的视频处理方法,其特征在于,所述从所述第一细节图像中选取目标像素和局部区域,包括:The video processing method according to claim 8, wherein the selecting a target pixel and a local area from the first detail image comprises:
    基于预设的选取条件,从所述第一细节图像中选取所述目标像素,并基于预设的区域几何参数,生成包含所述目标像素的局部区域。Based on a preset selection condition, the target pixel is selected from the first detail image, and a local area including the target pixel is generated based on a preset geometric parameter of the area.
  12. 根据权利要求8所述的视频处理方法,其特征在于,所述基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,包括:The video processing method according to claim 8, wherein, calculating and obtaining corresponding statistical feature information based on the statistical relationship between other pixels in the local area and the target pixel, comprising:
    获取所述局部区域中其他像素的颜色信息,并基于预设的颜色条件,从所述局部区域中确定符合颜色条件的像素,并基于所述局部区域中符合颜色条件的其他像素,得到所述目标像素相应的统计特征信息;Acquire the color information of other pixels in the local area, and based on preset color conditions, determine the pixels that meet the color conditions from the local area, and obtain the Statistical feature information corresponding to the target pixel;
    其中,所述颜色条件根据所述目标像素原始的颜色信息设定。Wherein, the color condition is set according to the original color information of the target pixel.
  13. 根据权利要求8所述的视频处理方法,其特征在于,在所述提取视频流中目标视频帧的图像特征之前,还包括:The video processing method according to claim 8, wherein before extracting the image feature of the target video frame in the video stream, the method further comprises:
    对所述目标视频帧进行分辨率放大处理,以提取分辨率放大处理后的目标视频帧的图像特征,并将所述第二细节图像和分辨率放大处理后的目标视频帧进行合并。A resolution amplification process is performed on the target video frame to extract image features of the target video frame after the resolution amplification process, and the second detail image and the resolution amplification process target video frame are combined.
  14. 根据权利要求8所述的视频处理方法,其特征在于,所述提取视频流中目标视频帧的图像特征,包括:The video processing method according to claim 8, wherein the extracting the image features of the target video frame in the video stream comprises:
    基于预设的滤波窗口几何参数和滤波系数,对所述目标视频帧进行滤波处理,提取所述目标视频帧的图像特征。Based on the preset filter window geometric parameters and filter coefficients, filtering is performed on the target video frame to extract image features of the target video frame.
  15. 一种图像处理系统,其特征在于,包括:An image processing system, comprising:
    细节提取模块,适于提取原始图像的图像特征,得到第一细节图像;a detail extraction module, suitable for extracting image features of the original image to obtain a first detail image;
    细节生成模块,适于从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括所述目标像素,并基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;A detail generation module, adapted to select a target pixel and a local area from the first detail image, the local area includes the target pixel, and based on statistics between other pixels in the local area and the target pixel relationship, calculate to obtain the corresponding statistical feature information, update the statistical feature information to the color information of the target pixel in the first detailed image, and obtain a second detailed image;
    图像合成模块,适于合并所述第二细节图像和所述原始图像,得到合成图像。The image synthesis module is adapted to combine the second detailed image and the original image to obtain a composite image.
  16. 根据权利要求15所述的图像处理系统,其特征在于,还包括:The image processing system according to claim 15, further comprising:
    细节处理模块,位于所述细节生成模块和所述图像合成模块之间,适于对所述细节生成模块得到的第二细节图像进行降噪处理,并将降噪处理后的第二细节图像发送至所述图像合成模块。A detail processing module, located between the detail generation module and the image synthesis module, is adapted to perform noise reduction processing on the second detail image obtained by the detail generation module, and send the second detail image after noise reduction processing to the image synthesis module.
  17. 根据权利要求15所述的图像处理系统,其特征在于,还包括:The image processing system according to claim 15, further comprising:
    分辨率处理模块,分别与所述细节提取模块和所述图像合成模块连接,适于对所述原始图像进行分辨率放大处理,并将分辨率放大处理后的原始图像发送至所述细节提取模块和所述图像合成模块。A resolution processing module, connected to the detail extraction module and the image synthesis module respectively, is adapted to perform resolution amplification processing on the original image, and send the original image after resolution amplification processing to the detail extraction module and the image synthesis module.
  18. 一种视频处理系统,其特征在于,包括:A video processing system, comprising:
    细节提取模块,适于提取视频流中目标视频帧的图像特征,得到第一细节图像;a detail extraction module, adapted to extract the image features of the target video frame in the video stream to obtain the first detail image;
    细节生成模块,适于从所述第一细节图像中选取目标像素和局部区域,所述局部区域中包括 所述目标像素,并基于所述局部区域中其他像素与所述目标像素之间的统计关系,计算得到相应的统计特征信息,将所述统计特征信息更新为所述第一细节图像中目标像素的颜色信息,得到第二细节图像;A detail generation module, adapted to select a target pixel and a local area from the first detail image, the local area includes the target pixel, and based on statistics between other pixels in the local area and the target pixel relationship, calculate to obtain the corresponding statistical feature information, update the statistical feature information to the color information of the target pixel in the first detailed image, and obtain a second detailed image;
    视频合成模块,适于将所述第二细节图像和所述目标视频帧进行合并,得到合成视频帧。The video synthesis module is adapted to combine the second detailed image and the target video frame to obtain a composite video frame.
  19. 根据权利要求18所述的视频处理系统,其特征在于,还包括:The video processing system of claim 18, further comprising:
    细节处理模块,位于所述细节生成模块和所述视频合成模块之间,适于对所述细节生成模块得到的第二细节图像进行降噪处理,并将降噪处理后的第二细节图像发送至所述视频合成模块。A detail processing module, located between the detail generation module and the video synthesis module, is adapted to perform noise reduction processing on the second detail image obtained by the detail generation module, and send the second detail image after noise reduction processing to the video synthesis module.
  20. 根据权利要求18所述的视频处理系统,其特征在于,还包括:The video processing system of claim 18, further comprising:
    分辨率处理模块,分别与所述细节提取模块和所述视频合成模块连接,适于对所述目标视频帧进行分辨率放大处理,并将分辨率放大处理后的目标视频帧发送至所述细节提取模块和所述视频合成模块。A resolution processing module, connected to the detail extraction module and the video synthesis module respectively, is adapted to perform resolution amplification processing on the target video frame, and send the target video frame after resolution amplification processing to the details an extraction module and the video synthesis module.
  21. 一种数据处理设备,包括存储器和处理器,所述存储器上存储有能在所述处理器上运行的计算机指令,其特征在于,所述处理器运行所述计算机指令时执行权利要求1至7任一项或权利要求8至14任一项所述方法的步骤。A data processing device, comprising a memory and a processor, wherein the memory stores computer instructions that can run on the processor, wherein the processor executes claims 1 to 7 when running the computer instructions The steps of any one of or the methods of any one of claims 8 to 14.
  22. 一种计算机可读存储介质,其上存储有计算机指令,其特征在于,所述计算机指令运行时执行权利要求1至7任一项或权利要求8至14任一项所述方法的步骤。A computer-readable storage medium on which computer instructions are stored, characterized in that, when the computer instructions are executed, the steps of the method described in any one of claims 1 to 7 or any one of claims 8 to 14 are executed.
PCT/CN2021/126137 2020-11-05 2021-10-25 Image and video processing methods and systems, and data processing device and medium WO2022095742A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011221470.2A CN114449181B (en) 2020-11-05 2020-11-05 Image and video processing method and system, data processing device and medium
CN202011221470.2 2020-11-05

Publications (1)

Publication Number Publication Date
WO2022095742A1 true WO2022095742A1 (en) 2022-05-12

Family

ID=81361063

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/126137 WO2022095742A1 (en) 2020-11-05 2021-10-25 Image and video processing methods and systems, and data processing device and medium

Country Status (2)

Country Link
CN (1) CN114449181B (en)
WO (1) WO2022095742A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116681703A (en) * 2023-08-03 2023-09-01 杭州鸿世电器股份有限公司 Intelligent switch quality rapid detection method
WO2024066090A1 (en) * 2022-09-26 2024-04-04 上海闻泰电子科技有限公司 Corner detection method and system based on texture features, electronic device, and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9202267B1 (en) * 2013-03-14 2015-12-01 Marseille Networks, Inc. System and method to enhance and process a digital image
CN105809638A (en) * 2016-03-01 2016-07-27 深圳Tcl数字技术有限公司 Image processing method and apparatus
CN109886906A (en) * 2019-01-25 2019-06-14 武汉大学 A kind of real-time dim light video enhancement method and system of details sensitivity

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248107A (en) * 2019-06-13 2019-09-17 Oppo广东移动通信有限公司 Image processing method and device
CN111784609B (en) * 2020-07-02 2023-11-07 烟台艾睿光电科技有限公司 Image dynamic range compression method, device and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9202267B1 (en) * 2013-03-14 2015-12-01 Marseille Networks, Inc. System and method to enhance and process a digital image
CN105809638A (en) * 2016-03-01 2016-07-27 深圳Tcl数字技术有限公司 Image processing method and apparatus
CN109886906A (en) * 2019-01-25 2019-06-14 武汉大学 A kind of real-time dim light video enhancement method and system of details sensitivity

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024066090A1 (en) * 2022-09-26 2024-04-04 上海闻泰电子科技有限公司 Corner detection method and system based on texture features, electronic device, and medium
CN116681703A (en) * 2023-08-03 2023-09-01 杭州鸿世电器股份有限公司 Intelligent switch quality rapid detection method
CN116681703B (en) * 2023-08-03 2023-10-10 杭州鸿世电器股份有限公司 Intelligent switch quality rapid detection method

Also Published As

Publication number Publication date
CN114449181A (en) 2022-05-06
CN114449181B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN111292337B (en) Image background replacement method, device, equipment and storage medium
WO2022095742A1 (en) Image and video processing methods and systems, and data processing device and medium
Lee et al. Temporally coherent video matting
Meyer et al. Deep video color propagation
JP5555706B2 (en) High resolution video acquisition apparatus and method
KR101028628B1 (en) Image texture filtering method, storage medium of storing program for executing the same and apparatus performing the same
CN112866803B (en) Electronic device and control method thereof
Zheng et al. Ultra-high-definition image hdr reconstruction via collaborative bilateral learning
Ling et al. Single image dehazing using saturation line prior
Hu et al. Hybrid shift map for video retargeting
CN115100334B (en) Image edge tracing and image animation method, device and storage medium
Diniz et al. Point cloud quality assessment based on geometry-aware texture descriptors
Arulkumar et al. Super resolution and demosaicing based self learning adaptive dictionary image denoising framework
Wang et al. Joint framework for single image reconstruction and super-resolution with an event camera
CN111429371A (en) Image processing method and device and terminal equipment
Zhang et al. Multi-scale-based joint super-resolution and inverse tone-mapping with data synthesis for UHD HDR video
Tang et al. Curvature-based real-time brightness adjustment for ultra hd video
Luzardo et al. Real-time false-contours removal for inverse tone mapped HDR content
CN114612312A (en) Video noise reduction method, intelligent terminal and computer readable storage medium
Gödrich et al. Joint tone mapping and denoising of thermal infrared images via multi-scale Retinex and multi-task learning
Yang et al. Hierarchical joint bilateral filtering for depth post-processing
Yu et al. Animation line art colorization based on the optical flow method
US20150116457A1 (en) Method and apparatus for converting 2d-images and videos to 3d for consumer, commercial and professional applications
Agarwal Bit planes histogram equalization for tone mapping of high contrast images
Chiu et al. Voting-based depth map refinement and propagation for 2D to 3D conversion

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: 21888439

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21888439

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28-09-2023)