Image processing method and system, electronic equipment and storage medium

A technology in image processing and image, applied in the field of image processing, can solve the problems of quantization precision loss, quantization sawtooth, quantization ripple, etc., and achieve the effect of reducing delay, saving bandwidth, and reducing power consumption

Active Publication Date: 2020-09-29
BEIJING SPREADTRUM HI TECH COMM TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The above-mentioned map-cutting schemes provided in the prior art either require manual interaction and cannot be completed automatically, or are all floating-point network models, which require a large amount of calculation and serious memory consumption, and can only be run on cloud servers or desktops
For mobile phones, edge devices, etc., these solutions are limited by memory, power consumption, speed, etc. and cannot be used
In addition, different from the classification problem, the matting of portrait background replacement needs to accurately regress an alpha, which is very sensitive to the loss of quantization accuracy. If the existing floating-point model is directly converted to the fixed-point model, there will be a serious loss of quantization accuracy, resulting in Obvious visual artifacts, such as severe quantization aliasing or quantization moiré at the edges of the alpha map

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image processing method and system, electronic equipment and storage medium
  • Image processing method and system, electronic equipment and storage medium
  • Image processing method and system, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] This embodiment provides an image processing method, such as figure 1 shown, including:

[0059] Step S101. Input the RGB values ​​of all pixels in the image to the integer-quantized deep neural network model; wherein, the output and weight of each layer of the deep neural network model are quantized as integers.

[0060] Wherein, the above-mentioned image may be a static picture, or a video frame in a dynamic video. It should be noted that the RGB value of a pixel is an integer type int. In one example, the RGB value of a certain pixel is (220, 54, 255). In the specific implementation of step S101, the RGB values ​​of all pixels in the image are input into the integer-quantized deep neural network model in the form of a matrix.

[0061] In an alternative embodiment, such as figure 2 As shown, the deep neural network model specifically includes a feature extraction module, an ASPP module, a decoding module and a portrait matting module.

[0062] The feature extract...

Embodiment 2

[0094] This embodiment provides an image processing system 300, such as image 3 As shown, an input unit 301 and an inverse quantization unit 302 are included.

[0095] The input unit 301 is used to input the RGB values ​​of all pixels in the image to the integer-quantized deep neural network model; wherein, the output and weight of each layer of the deep neural network model are quantized as integers.

[0096] The dequantization unit 302 is used to dequantize the integer probability array output by the deep neural network model into a floating-point probability array, so as to realize portrait matting, wherein the probability array includes each pixel in the image The point is the probability of the foreground portrait.

[0097] In an optional implementation manner, the image processing system further includes a fusion unit, configured to fuse the foreground portrait separated from the image with the preset background picture according to the floating-point probability array...

Embodiment 3

[0112] Figure 4 A schematic structural diagram of an electronic device provided in this embodiment. The electronic device includes a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the image processing method of Embodiment 1 when executing the program. Figure 4 The electronic device 3 shown is only an example, and should not impose any limitation on the functions and application scope of the embodiments of the present invention.

[0113] The electronic device 3 may be in the form of a general computing device, eg it may be a server device. Components of the electronic device 3 may include but not limited to: the at least one processor 4 mentioned above, the at least one memory 5 mentioned above, and the bus 6 connecting different system components (including the memory 5 and the processor 4 ).

[0114] The bus 6 includes a data bus, an address bus and a control bus.

[0115] The memory 5 may incl...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an image processing method and system, electronic equipment and a storage medium. The image processing method comprises the steps of inputting RGB values of all pixel points inan image into a deep neural network model subjected to integer quantization, wherein the output and the weight of each layer of network in the deep neural network model are quantified into integer; inversely quantizing the integer probability array output by the deep neural network model into a floating point type probability array, wherein the probability array comprises the probability that each pixel point in the image is a foreground portrait. According to the invention, RGB values of all pixel points in an image are inputted to a deep neural network model subjected to integer quantization, the output and the weight of each layer of network in the deep neural network model are quantified into integer, the whole-course integer operation of the deep neural network model in the process of calculating the foreground portrait probability is ensured, and compared with the floating-point operation in the prior art, the bandwidth is saved, the time delay is reduced, and the power consumption is reduced.

Description

technical field [0001] The present invention relates to the field of image processing, in particular to an image processing method and system, electronic equipment and a storage medium. Background technique [0002] The portrait background replacement technology is essentially a portrait matting task plus a portrait background fusion task. Specifically, foreground portraits are accurately estimated from natural images or videos containing portraits, and they are seamlessly blended with preset background images. [0003] Portrait matting belongs to the task of image matting, which is essentially a pixel-level regression task, which can be expressed by the following formula: [0004] I i = α i f i +(1-α i )B i ,α i ∈[0,1] [0005] Among them, the value I of the i-th pixel i by foreground point F i and background point B i Weighted according to the above formula, α i Foreground transparency describes the probability that the pixel belongs to the foreground portrait,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06N3/08G06N3/04G06K9/62G06T5/50G06T7/11G06T7/194G06T7/90
CPCG06N3/08G06T7/194G06T7/90G06T7/11G06T5/50G06T2207/20221G06T2207/20081G06T2207/20084G06N3/045G06F18/214
Inventor 李文国杜建国
Owner BEIJING SPREADTRUM HI TECH COMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products