Search

CN-120725859-B - Image blurring processing method and device, electronic equipment, chip and medium

CN120725859BCN 120725859 BCN120725859 BCN 120725859BCN-120725859-B

Abstract

The disclosure relates to a fuzzy processing method, a fuzzy processing device, electronic equipment, a chip and a medium for an image, and belongs to the technical field of image processing. The method comprises the steps of obtaining an original image, carrying out fuzzy processing on a first pixel point to obtain a pixel value after the fuzzy processing of the first pixel point, updating a pixel value of a second pixel point based on the pixel value after the fuzzy processing of the first pixel point, and obtaining a target image after the fuzzy processing of the original image based on the pixel value after the fuzzy processing of the first pixel point and the pixel value after the updating of the second pixel point. Therefore, only the first pixel point is required to be subjected to fuzzy processing, and the second pixel point is not required to be subjected to fuzzy processing, for example, a logic complex fuzzy algorithm is not required to be adopted to carry out fuzzy processing on the second pixel point, the effect of carrying out fuzzy processing on the second pixel point can be indirectly achieved according to the pixel value of the first pixel point after the fuzzy processing, the calculated amount of the fuzzy processing can be greatly reduced, and the fuzzy processing efficiency is improved.

Inventors

  • HONG ZHU

Assignees

  • 北京玄戒技术有限公司

Dates

Publication Date
20260508
Application Date
20250829

Claims (10)

  1. 1. A blurring processing method of an image, comprising: acquiring an original image, wherein the original image comprises a first pixel point and a second pixel point; performing fuzzy processing on the first pixel point to obtain a pixel value of the first pixel point after the fuzzy processing; Updating the pixel value of the second pixel point based on the difference parameter between the pixel values before and after the blurring process of the first pixel point; obtaining a target image after the original image blurring process based on the pixel value after the first pixel blurring process and the pixel value after the second pixel updating process; Extracting the first pixel points from the original image according to a set interval, and taking each pixel point which is not extracted from the original image as the second pixel point; Wherein determining the set interval comprises at least one of: determining the set interval based on a distribution rule of black areas or white areas in the checkerboard image; Determining the set interval based on a preset constraint condition, wherein the constraint condition comprises that at least one neighborhood pixel point of any pixel point in the original image is extracted; The extracting the first pixel point from the original image according to a set interval includes: And extracting the first pixel points from each row of pixel points or each column of pixel points of the original image according to the set interval.
  2. 2. The method of claim 1, wherein updating the pixel value of the second pixel based on the blurred pixel value of the first pixel comprises: determining a neighborhood pixel point of the second pixel point from each first pixel point as a reference pixel point; and updating the pixel value of the second pixel point based on the pixel value of each reference pixel point after the blurring process.
  3. 3. The method according to claim 2, wherein updating the pixel value of the second pixel based on the pixel value after the blurring process of each reference pixel includes: Determining an ith adjustment parameter based on a pixel value before the ith reference pixel point blurring process and a difference parameter between the pixel values after the ith reference pixel point blurring process, wherein i is a positive integer; And updating the pixel value of the second pixel point based on each adjustment parameter.
  4. 4. A method according to claim 3, wherein updating the pixel value of the second pixel based on each adjustment parameter comprises: acquiring the weight of each reference pixel point; and updating the pixel value of the second pixel point based on each adjustment parameter and the weight of each reference pixel point.
  5. 5. The method according to any one of claims 1-4, further comprising: acquiring an original video to be encoded, and taking each frame image in the original video as the original image; after the target image after the original image blurring process is obtained, the method further comprises the following steps: Generating a target video after the blurring process of the original video based on the target image after the blurring process of each frame of image in the original video; Coding the target video to obtain a coded video; storing the coded video into a local storage space, or sending the coded video to a display device, wherein the coded video is used for visual display of the display device.
  6. 6. The method according to any one of claims 1-4, further comprising: Collecting said original image, or The original image is received.
  7. 7. An image blurring processing device, comprising: The device comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire an original image, and the original image comprises a first pixel point and a second pixel point; The first processing module is configured to perform fuzzy processing on the first pixel point to obtain a pixel value of the first pixel point after the fuzzy processing; The updating module is configured to update the pixel value of the second pixel point based on a difference parameter between the pixel values before and after the blurring process of the first pixel point; the second processing module is configured to obtain a target image after the blurring processing of the original image based on the pixel value after the blurring processing of the first pixel point and the pixel value after the updating of the second pixel point; the first processing module is further configured to: Extracting from each row of pixel points or each column of pixel points of the original image according to the set interval to obtain the first pixel point; the first processing module is further configured to: Extracting the first pixel points from the original image according to a set interval, and taking each pixel point which is not extracted from the original image as the second pixel point; the first processing module is further configured to perform at least one of the following operations: determining the set interval based on a distribution rule of black areas or white areas in the checkerboard image; And determining the set interval based on a preset constraint condition, wherein the constraint condition comprises that at least one neighborhood pixel point of any pixel point in the original image is extracted.
  8. 8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1-6 when the program is executed.
  9. 9. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1-6.
  10. 10. A chip comprising interface circuitry for inputting or outputting signals and processing circuitry coupled to each other, the processing circuitry being configured to implement the steps of the method of any of claims 1-6.

Description

Image blurring processing method and device, electronic equipment, chip and medium Technical Field The disclosure relates to the technical field of image processing, and in particular relates to a fuzzy processing method and device for an image, electronic equipment, a chip and a storage medium. Background At present, the image blurring process is widely applied to driving, live broadcasting, intelligent home, film and television making and other scenes, and visual experience can be optimized. However, the conventional image blurring processing method has the problems of large calculation amount and low processing efficiency. Disclosure of Invention The disclosure provides a fuzzy processing method, a device, an electronic device, a chip and a storage medium for an image, so as to at least solve the problems of large calculation amount and low processing efficiency of the fuzzy processing method for the image in the related technology. The technical scheme of the present disclosure is as follows: According to a first aspect of the disclosed embodiments, a blurring processing method for an image is provided, which includes obtaining an original image, wherein the original image includes a first pixel point and a second pixel point, blurring processing is performed on the first pixel point to obtain a pixel value after blurring processing of the first pixel point, updating is performed on the pixel value of the second pixel point based on the pixel value after blurring processing of the first pixel point, and obtaining a target image after blurring processing of the original image based on the pixel value after blurring processing of the first pixel point and the pixel value after updating of the second pixel point. According to a second aspect of the embodiment of the present disclosure, there is provided an image blurring processing device, including an acquisition module configured to acquire an original image, where the original image includes a first pixel and a second pixel, a first processing module configured to perform blurring processing on the first pixel to obtain a pixel value after blurring processing of the first pixel, an update module configured to update a pixel value of the second pixel based on the pixel value after blurring processing of the first pixel, and a second processing module configured to obtain a target image after blurring processing of the original image based on the pixel value after blurring processing of the first pixel and the pixel value after updating of the second pixel. According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device including a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the image blurring processing method according to the first aspect of the embodiments of the present disclosure when the program is executed by the processor. According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the blurring processing method of an image according to the first aspect of embodiments of the present disclosure. According to a fifth aspect of embodiments of the present disclosure, there is provided a chip comprising an interface circuit for inputting or outputting a signal and a processing circuit coupled to each other, the processing circuit being configured to implement the steps of the blurring processing method of an image according to the first aspect of embodiments of the present disclosure. According to a sixth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of the blurring processing method of an image according to the first aspect of embodiments of the present disclosure. The technical scheme provided by the embodiment of the disclosure has the advantages that an original image is obtained, the original image comprises a first pixel point and a second pixel point, the first pixel point is subjected to fuzzy processing to obtain a pixel value after the first pixel point is subjected to fuzzy processing, the pixel value of the second pixel point is updated based on the pixel value after the first pixel point is subjected to fuzzy processing, and a target image after the original image is obtained based on the pixel value after the first pixel point is subjected to fuzzy processing and the pixel value after the second pixel point is updated. Therefore, only the first pixel point is required to be subjected to the blurring processing, and the pixel value of the second pixel point is updated according to the pixel value after the blurring processing of the first pixel point, namely the blurring processing of the secon