Image processing method and device

An image processing, image technology, applied in the field of image processing, can solve problems such as difficulty in high-quality photos

Inactive Publication Date: 2015-11-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF10 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the existing image mask technology, if the user uses a certain preset background image in the process of taking pictures, in order to place the captured face in the blank area of ​​the preset background image, the user needs to be patient. Only by adjusting the position, distance and angle between the face and the camera can it be possible to take a high-quality photo
In summary, it is very difficult to take high-quality photos with image masks

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 device
  • Image processing method and device
  • Image processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Embodiments of the present invention provide a method for image processing, such as figure 1 , the method includes:

[0037] 101. Acquire a first instruction for processing an image to be processed and a background image, the image to be processed includes a preset image, the background image includes a blank area, and the first instruction is used to instruct the Blank areas are replaced with the preset image.

[0038] Wherein, the subject of execution of the method is an electronic device capable of processing image information. Such as smartphones, PCs, and PADs.

[0039] The image to be processed is the image currently being collected, or a stored image that has been called.

[0040] For example, when a user takes a photo with an electronic device, a background image is loaded on the display interface of the electronic device, indicating that the blank area of ​​the background image is replaced with a preset image in the photo being taken; A background image is ...

Embodiment 2

[0069] In the following, the preset image is a face image as an example for illustration. In order to better match the face image and the background image, the embodiment of the present invention provides an image processing method, such as figure 2 As shown, the method includes:

[0070] 201. Acquire a first instruction for processing an image to be processed and a background image, the image to be processed includes a human face image, the background image includes a blank area, and the first instruction is used to instruct to process the background image The blank area of ​​is replaced with the face image.

[0071] 202. From the image to be processed, detect and acquire an image of a first area of ​​the image to be processed, where the image of the first area includes at least one face image.

[0072] 203. Determine a scaling factor and a translation parameter of an image in the first area according to the areas of the blank area and the first area and the position inform...

Embodiment 3

[0090] The embodiment of the present invention provides an image processing device 30, such as image 3 As shown, the device 30 includes:

[0091] An acquisition unit 31, a first detection unit 32, a determination unit 33, a processing unit 34 and a display unit 35;

[0092] The obtaining unit 31 is configured to obtain a first instruction for processing the image to be processed and the background image, the image to be processed includes a preset image, the background image includes a blank area, and the first instruction is used to indicate The blank area of ​​the background image is replaced with the preset image.

[0093] The first detection unit 32 is configured to detect and obtain an image of a first area of ​​the image to be processed from the image to be processed, and the image of the first area includes at least one of the preset images .

[0094] The determination unit 33 is configured to determine a scaling factor and a translation parameter of the image of th...

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 embodiment of the invention provides an image processing method and a device, which can automatically replace an empty area of a background image by a preset image in a to-be-processed image, thus acquire a high-quality picture by adopting an image mask mode conveniently, and further reduce image processing operation burden by a user. The method comprises steps: a first instruction for processing the to-be-processed image and the to-be-processed background image is acquired; in the to-be-processed image, an image of a first area in the to-be-processed image is acquired through detection; according to areas of the empty area and the first area and position information displayed on a display interface, a scaling factor and translation parameters of the image of the first area are determined; according to the scaling factor and the translation parameters, scaling and translation are carried out on the image of the first area, and a processed first area image is acquired; and the empty area of the background image is replaced by the processed first area image, and a target image is acquired. The method and the device of the invention are applicable to the technical field of image processing.

Description

technical field [0001] The present invention relates to the technical field of image processing, in particular to an image processing method and device. Background technique [0002] With the popularization of the camera function of electronic equipment and the increasingly powerful processing capability of electronic equipment, numerous image processing softwares have emerged. Among them, many image processing software have the function of image mask. The so-called image mask refers to providing some preset background images to the user, and a blank area is reserved in these preset background images, and the face in the image to be processed can be placed in the blank area. For example, face caricature, face expression show and face stickers. [0003] However, in the existing image mask technology, if the user uses a certain preset background image in the process of taking pictures, in order to place the captured face in the blank area of ​​the preset background image, th...

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): G06T11/00G06T3/40
Inventor 李季檩郭晓威余宗桥
Owner TENCENT TECH (SHENZHEN) 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