Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for detecting distance between pixel point to edge

A technology for detecting pixel and edge distances, applied in the field of image processing, which can solve the problems of real-time deformation of faces, huge calculation amount, replacement delay, etc., and achieve the effect of small calculation amount, simple operation, and improved replacement speed

Active Publication Date: 2016-09-28
SHENZHEN SENSETIME TECH CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of face deformation or replacement, when there are more feature points in the face contour, the amount of calculation will be very large, and it will easily cause real-time deformation or replacement delays, freezes, etc.

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
  • Method and system for detecting distance between pixel point to edge
  • Method and system for detecting distance between pixel point to edge
  • Method and system for detecting distance between pixel point to edge

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In one embodiment, a method for detecting the distance from a pixel point to an edge, the method includes the steps of:

[0035] A method for detecting distance from a pixel point to an edge, said method comprising the steps of:

[0036] S100. For any pixel in the gradient region, for the found facial contour feature point closest to the pixel, obtain the face contour edge where the human face contour feature point is located; wherein, the gradient region is performing face replacement or local deformation, need to set transparency area;

[0037] S200. Calculate the distance from the pixel point to the acquired face contour edge; wherein: the face contour edge is a line segment connecting two adjacent face contour feature points.

[0038] For this embodiment, when the face contour edge of the face area to be replaced or partially deformed is an open curve, there may be one or two face contour edges where the feature points of the face contour are located. . When the ...

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 relates to a method and a system for detecting the distance between a pixel point and an edge. The method comprises steps: as for any pixel point in a gradient region, a face outline feature point nearest to the pixel point is found out, and the face outline edge where the nearest face outline feature point is is acquired; and the distance between the pixel point and the face outline edge where the nearest face outline feature point is is calculated. Thus, as for any pixel point in the gradient region, distances between the pixel points and all face outline edges do not need to be calculated, and thus, the method and the system of the invention have the advantages that the amount of calculation is small, the operation is simple, the calculation speed is quick, and the gradient region pixel point replacement speed can be quickly improved.

Description

technical field [0001] The present disclosure relates to image processing, and in particular, to a method and system for detecting distances from pixels to edges. Background technique [0002] There is a need for face deformation or replacement in image or video processing. When performing face deformation or replacement, the more facial contour feature points are obtained, the more natural the image fusion effect after deformation or replacement will be. [0003] In the process of face deformation or replacement, when there are more feature points in the face contour, the amount of calculation will be very large, and it will easily cause real-time deformation or replacement delays, freezes and other phenomena. Therefore, how to find a fast solution to reduce the amount of calculation and improve the fluency of real-time processing has become a realistic need. Contents of the invention [0004] In view of the above problems, the present disclosure provides a method and sy...

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): G06T7/00
CPCG06T2207/30196
Inventor 郭玉京马堃
Owner SHENZHEN SENSETIME TECH CO LTD