CN108389155A - Image processing method, device and electronic equipment - Google Patents

Image processing method, device and electronic equipment Download PDF

Info

Publication number
CN108389155A
CN108389155A CN201810229530.1A CN201810229530A CN108389155A CN 108389155 A CN108389155 A CN 108389155A CN 201810229530 A CN201810229530 A CN 201810229530A CN 108389155 A CN108389155 A CN 108389155A
Authority
CN
China
Prior art keywords
pixel
target
oval
center
circle
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201810229530.1A
Other languages
Chinese (zh)
Other versions
CN108389155B (en
Inventor
李艳杰
眭帆
眭一帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810229530.1A priority Critical patent/CN108389155B/en
Publication of CN108389155A publication Critical patent/CN108389155A/en
Application granted granted Critical
Publication of CN108389155B publication Critical patent/CN108389155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4023Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of image processing method, device and electronic equipments, wherein method includes:Multiple key points corresponding to process object in detection image determine pending area corresponding with process object according to multiple key points;For each pixel in image, judge whether the pixel belongs to pending area;According to the pixel and the determining translation distance information corresponding with the pixel of the distance between the regional center of pending area, which is moved to by target location according to translation distance information.It can thus be appreciated that, which carries out translation processing only for the pixel in pending area, can reduce operand without handling all pixels point in image, the speed of image procossing is promoted, and can reach and panning effect is carried out to the process object in image.

Description

Image processing method, device and electronic equipment
Technical field
The present invention relates to technical field of image processing, and in particular to a kind of image processing method, device and electronic equipment.
Background technology
With the development of computer image processing technology, image beautification become it is increasingly easier with it is universal, image is beautified Technology is applied in the scenes such as image post-processing, net cast, recorded video, such as micro-shaping special effect processing, and micro-shaping is special Effect processing is to be handled only for the pixel in the subregion in image, is such as carrying out micro-shaping spy to facial image In the application scenarios for imitating processing, including thin face, amplify eyes, draw high the bridge of the nose, reduce the wing of nose etc. technological means, interest can be promoted The aesthetic feeling of taste and image, therefore, the micro-shaping special effect processing technology in image beautification are even more to have obtained people widely to close Note and favor.
But inventor is in the implementation of the present invention, it is found that it is as follows aforesaid way in the prior art at least exists Problem:Micro-shaping special effect processing is often handled all pixels point in image, without considering actual deformed region, Pixel to be handled some is also handled, and is increased many additional operands, is reduced micro- The real-time of shaping special effect processing, also, in the prior art translation processing is carried out without a kind of process object in image Method.In conclusion in the prior art still without a kind of technical solution that can well solve the above problem.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State the image processing method, device and electronic equipment of problem.
According to an aspect of the invention, there is provided a kind of image processing method, including:Process object in detection image Corresponding multiple key points determine pending area corresponding with the process object according to the multiple key point;Needle To each pixel in described image, judge whether the pixel belongs to the pending area;If so, according to the pixel The distance between regional center of the pending area determines translation distance information corresponding with the pixel, according to institute It states translation distance information and the pixel is moved into target location.
Optionally, the pending area is oval pending area, and the oval pending area pass through it is ellipse The round heart, oval horizontal axis and the oval longitudinal axis determine.
Optionally, each pixel in described image, judges whether the pixel belongs to described pending The step of region, specifically includes:
For each pixel in described image, the original abscissa value and initial ordinate of the pixel are determined Value;
According to the transverse and longitudinal ratio between the length and the length of the oval longitudinal axis of the oval horizontal axis to the original of the pixel Abscissa value obtains the scaling abscissa value of the pixel after zooming in and out processing;
The pixel and the oval center of circle are calculated using the initial ordinate value and scaling abscissa value of the pixel Between equivalent circumferential distance;
Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the oval longitudinal axis Degree;If it is not, determining that the pixel belongs to the pending area.
Optionally, each pixel in described image, determine the pixel original abscissa value and The step of initial ordinate value, specifically includes:
The oval center of circle is determined as to the coordinates of targets origin of target-based coordinate system in advance, is determined according to the oval horizontal axis The target lateral reference axis of target-based coordinate system determines the target longitudinal coordinate axle of target-based coordinate system according to the oval longitudinal axis;
The original abscissa value and initial ordinate value of the pixel are calculated according to the target-based coordinate system.
Optionally, the pending area further comprises:Target treatment and environmental treatment region;Then described It determines according to the multiple key point and is specifically included with the step of process object corresponding pending area:
According to the profile and/or shape of the process object, determine including in described image with the process object phase Corresponding target treatment;
According to the target treatment, determine positioned at the environmental treatment region of target treatment periphery;
Also, it is described to be determined and the pixel according to the distance between regional center of the pixel and the pending area The step of point corresponding translation distance information, specifically includes:
When the distance between the regional center according to the pixel and the pending area determines that the pixel belongs to institute When stating target treatment, handles rule according to preset target and determine translation distance information corresponding with the pixel;
When the distance between the regional center according to the pixel and the pending area determines that the pixel belongs to institute When stating environmental treatment region, translation distance information corresponding with the pixel is determined according to preset environmental treatment rule.
Optionally, the target treatment is elliptical object processing region, and the environmental treatment region is positioned at institute State the oval ring-type environmental treatment region of elliptical object processing region periphery;
The then profile and/or shape according to the process object determines including in described image with the processing The step of target area shape and target area range of the corresponding target treatment of object, specifically includes:
The target center of circle is determined according to the multiple key point and by the target horizontal axis and/or target in the target center of circle The longitudinal axis determines the ellipse according to the target center of circle and by the target horizontal axis and/or the target longitudinal axis in the target center of circle The target area shape and target area range of shape target treatment;
The target area shape and target area range according to the target treatment determines and is located at the mesh The step of environmental area shape and environmental area range in the environmental treatment region of mark processing region periphery, specifically includes:
The target center of circle is determined as the oval center of circle, institute is determined according to the target horizontal axis and/or the target longitudinal axis Oval horizontal axis and/or the oval longitudinal axis are stated, determines that the ellipse waits for according to the oval center of circle, oval horizontal axis and the oval longitudinal axis Processing region;It is determined according to the oval pending area and the elliptical object processing region and is located at the ellipse The oval ring-type environmental treatment region of target treatment periphery.
Optionally, described that the pixel is determined according to the distance between regional center of the pixel and the pending area The step of point belongs to the target treatment specifically includes:
Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the target longitudinal axis Degree;If it is not, determining that the pixel belongs to the target treatment.
Optionally, the length of the oval horizontal axis is the first preset multiple of the length of the target horizontal axis and/or described The length of the oval longitudinal axis is the second preset multiple of the length of the target longitudinal axis;Wherein, first preset multiple and/or Two preset multiples are not less than 1.
Optionally, the method further includes:
It predefines when the equivalent circumferential distance in pixel to the oval center of circle is not more than the length of the target longitudinal axis, pixel Corresponding translation distance information and the pixel is to the first mapping relations between the equivalent circumferential distance in the oval center of circle, and institute Target processing rule is stated to be determined according to first mapping relations;
It predefines when the equivalent circumferential distance in pixel to the oval center of circle is more than the length of the target longitudinal axis and less than ellipse When the length of the longitudinal axis, the translation distance information and the pixel corresponding to pixel are between the equivalent circumferential distance in the oval center of circle The second mapping relations, and the environmental treatment rule according to second mapping relations determine.
Optionally, the described the step of pixel is moved to target location according to the translation distance information, specifically wraps It includes:
According to the translation distance information and the original coordinates value of the pixel, the coordinates of targets of the pixel is calculated Value;
The target location is determined according to the coordinates of targets value, which is moved into the target location.
Optionally, described that the target location is determined according to the coordinates of targets value, which is moved into the mesh The step of cursor position, specifically includes:
It is pre-created blank image corresponding with described image, according to the coordinates of targets value in the blank image Determine the target location.
Optionally, described to be determined and the picture according to the distance between regional center of the pixel and the pending area After the step of vegetarian refreshments corresponding translation distance information, further comprise:
According to default translation modification rule, modifying factor corresponding with the pixel is determined, according to the modifying factor The corresponding translation distance information of the pixel is modified, translation update information is obtained;
Then the described the step of pixel is moved to target location according to the translation distance information, specifically includes:According to The pixel is moved to target location by the translation update information.
Optionally, the modifying factor further comprises:Lateral modifying factor and longitudinal modifying factor.
Optionally, the method is realized by graphics processor.
According to another aspect of the present invention, a kind of image processing apparatus is provided, including:Critical point detection module, is suitable for Multiple key points corresponding to process object in detection image;Pending area determining module is suitable for according to the multiple pass Key point determines pending area corresponding with the process object;Judgment module is suitable for for each picture in described image Vegetarian refreshments, judges whether the pixel belongs to the pending area;Translation distance information determination module is suitable for if so, according to this Pixel and the determining translation distance information corresponding with the pixel of the distance between the regional center of the pending area; Translation module, suitable for the pixel is moved to target location according to the translation distance information.
Optionally, the pending area is oval pending area, and the oval pending area pass through it is ellipse The round heart, oval horizontal axis and the oval longitudinal axis determine.
Optionally, described device further comprises:
Coordinate value determining module is suitable for, for each pixel in described image, determining the original horizontal seat of the pixel Scale value and initial ordinate value;
Zoom module is suitable for the transverse and longitudinal ratio between the length and the length of the oval longitudinal axis according to the oval horizontal axis to this The original abscissa value of pixel obtains the scaling abscissa value of the pixel after zooming in and out processing;
Equivalent circumference distance calculation module is suitable for initial ordinate value and scaling abscissa value meter using the pixel Calculate the equivalent circumferential distance between the pixel and the oval center of circle;
Then the judgment module is further adapted for:Judge the equivalent circumferential distance between the pixel and the oval center of circle Whether the length of the oval longitudinal axis is more than;If it is not, determining that the pixel belongs to the pending area.
Optionally, the coordinate value determining module is further adapted for:
The oval center of circle is determined as to the coordinates of targets origin of target-based coordinate system in advance, is determined according to the oval horizontal axis The target lateral reference axis of target-based coordinate system determines the target longitudinal coordinate axle of target-based coordinate system according to the oval longitudinal axis;
The original abscissa value and initial ordinate value of the pixel are calculated according to the target-based coordinate system.
Optionally, the pending area further comprises:Target treatment and environmental treatment region;It is then described to wait for Processing region determining module is further adapted for:
According to the profile and/or shape of the process object, determine including in described image with the process object phase Corresponding target treatment;
According to the target treatment, determine positioned at the environmental treatment region of target treatment periphery;
Also, the translation distance information determination module is further adapted for:
When the distance between the regional center according to the pixel and the pending area determines that the pixel belongs to institute When stating target treatment, handles rule according to preset target and determine translation distance information corresponding with the pixel;
When the distance between the regional center according to the pixel and the pending area determines that the pixel belongs to institute When stating environmental treatment region, translation distance information corresponding with the pixel is determined according to preset environmental treatment rule.
Optionally, the target treatment is elliptical object processing region, and the environmental treatment region is positioned at institute State the oval ring-type environmental treatment region of elliptical object processing region periphery;
Then the pending area determining module is further adapted for:
The target center of circle is determined according to the multiple key point and by the target horizontal axis and/or target in the target center of circle The longitudinal axis determines the ellipse according to the target center of circle and by the target horizontal axis and/or the target longitudinal axis in the target center of circle The target area shape and target area range of shape target treatment;
Then the pending area determining module is further adapted for:
The target center of circle is determined as the oval center of circle, institute is determined according to the target horizontal axis and/or the target longitudinal axis Oval horizontal axis and/or the oval longitudinal axis are stated, determines that the ellipse waits for according to the oval center of circle, oval horizontal axis and the oval longitudinal axis Processing region;It is determined according to the oval pending area and the elliptical object processing region and is located at the ellipse The oval ring-type environmental treatment region of target treatment periphery.
Optionally, the judgment module is further adapted for:
Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the target longitudinal axis Degree;If it is not, determining that the pixel belongs to the target treatment.
Optionally, the length of the oval horizontal axis is the first preset multiple of the length of the target horizontal axis and/or described The length of the oval longitudinal axis is the second preset multiple of the length of the target longitudinal axis;Wherein, first preset multiple and/or Two preset multiples are not less than 1.
Optionally, described device further comprises:
Mapping relations determining module is suitable for predefining when the equivalent circumferential distance in pixel to the oval center of circle is not more than mesh When marking the length of the longitudinal axis, the equivalent circumferential distance of translation distance information corresponding to pixel and the pixel to the ellipse center of circle it Between the first mapping relations, and the target processing rule according to first mapping relations determine;
The mapping relations determining module is further adapted for:Predefine when pixel to ellipse the center of circle equivalent circumference away from When from the length more than the target longitudinal axis and less than the length of the oval longitudinal axis, translation distance information and the pixel corresponding to pixel Point is to the second mapping relations between the equivalent circumferential distance in the oval center of circle, and the environmental treatment rule is according to second mapping Relationship determines.
Optionally, the translation module is further adapted for:
According to the translation distance information and the original coordinates value of the pixel, the coordinates of targets of the pixel is calculated Value;
The target location is determined according to the coordinates of targets value, which is moved into the target location.
Optionally, the translation module is further adapted for:
It is pre-created blank image corresponding with described image, according to the coordinates of targets value in the blank image Determine the target location.
Optionally, described device further comprises:
Correcting module is suitable for translating modification rule according to default, determines modifying factor corresponding with the pixel, according to The modifying factor is modified the corresponding translation distance information of the pixel, obtains translation update information;
Then the translation module is further adapted for:The pixel is moved into target position according to the translation update information It sets.
Optionally, the modifying factor further comprises:Lateral modifying factor and longitudinal modifying factor.
According to another aspect of the invention, a kind of electronic equipment is provided, including:Processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is above-mentioned that the executable instruction makes the processor execute The corresponding operation of image processing method.
In accordance with a further aspect of the present invention, provide a kind of computer storage media, be stored in the storage medium to A few executable instruction, the executable instruction make processor execute such as the corresponding operation of above-mentioned image processing method.
In image processing method provided by the invention, device and electronic equipment, first, the process object in detection image Corresponding multiple key points determine pending area corresponding with process object according to multiple key points;Secondly, for figure Each pixel as in, judges whether the pixel belongs to pending area;Finally, according to the pixel and pending area The distance between regional center determine translation distance information corresponding with the pixel, according to translation distance information by the picture Vegetarian refreshments moves to target location.It follows which is not necessarily to handle all pixels point in image, only for pending Pixel in region carries out translation processing, can reduce operand, promotes the speed of image procossing, and can reach to figure The effect that process object as in is translated.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of image processing method according to an embodiment of the invention;
Fig. 2 shows the flow diagrams of image processing method in accordance with another embodiment of the present invention;
Fig. 3 shows the structural schematic diagram of the image processing apparatus according to another embodiment of the invention;
Fig. 4 shows the structural schematic diagram of electronic equipment according to the ... of the embodiment of the present invention;
Fig. 5 shows the schematic diagram of a form of translation distance look-up table.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows the flow diagram of image processing method according to an embodiment of the invention.As shown in Figure 1, should Method includes the following steps:
Step S110, multiple key points corresponding to process object in detection image, according to multiple key points determine with Deal with objects corresponding pending area.
Wherein, image can be video camera shooting photo, can also be shooting video flowing in picture frame, processing pair As that can be facial area in image, face etc., this is not limited by the present invention.For the process object in image, inspection The multiple key points for surveying process object in practical application, can fix the process object in image in advance, i.e., only needle in processing procedure Fixed multiple process objects are handled or process object that user also can voluntarily in selected digital image, the present invention is to this It is not construed as limiting.
In the application scenarios handled facial image, process object can be face or face position, then close Key point can be characteristic point corresponding with facial face and/or face contour, and it is right can specifically to refer to institute on face contour position Characteristic point corresponding on corresponding characteristic point and the other positions of face in the characteristic point answered, facial face position.It needs Illustrate, the present invention is not construed as limiting the mode for detecting key point.
Multiple key points corresponding to the process object detected determine corresponding with process object in image wait for Processing region, region shape, region contour and regional extent of pending area etc. can be according to each passes of process object Key point is determined.Such as, however, it is determined that it deals with objects as the eyes in image, then according to the more of the eyes detected A key point determines pending area corresponding with eyes.
Step S120 judges whether the pixel belongs to pending area for each pixel in image, if so, Then follow the steps S130;If it is not, this method terminates.
It is determined that pending area corresponding with process object, the pixel in pending area are according to step S120 It is the pixel handled, in concrete application, coordinate system can be established in the picture, calculates each pixel in image and exist Coordinate value in the coordinate system judges whether the pixel belongs to pending area according to the coordinate value of pixel, or according to The distance between the center of pixel and pending area judges whether the pixel belongs to pending area.This method is to judging Whether pixel belongs to the mode of pending area without limiting, and those skilled in the art can set according to actual needs It sets.
Step S130 is determined and the pixel phase according to the distance between the pixel and the regional center of pending area The pixel is moved to target location by corresponding translation distance information according to translation distance information.
In practical application, micro-shaping special effect processing is carried out to image and often only needs to handle the partial pixel point in image, Without traversing pixel all in image, the pixel handled is determined with specific reference to obtained pending area is divided Point, therefore, if judging in this step, the pixel belongs to pending area, according to the area of the pixel and pending area The distance between domain center carries out translation processing to the pixel.
Wherein, the regional center of pending area can be according to the region shape of pending area, regional extent and detection To process object corresponding to multiple key points be determined, for example, multiple key points corresponding to eyes are true The region shape for determining pending area is ellipse, and the center key point of eyes is determined as the ellipse pending area Regional center.
The distance between regional center of pixel and pending area can be calculated according to the coordinate value of the pixel, Specifically, image coordinate system is established in the picture, calculates separately the coordinate value of the pixel and area under the image coordinate system The coordinate value at domain center is further calculated according to pixel and the coordinate value of regional center between pixel and regional center Distance.
According to pixel and the determining translation distance information corresponding with the pixel of the distance between regional center, specifically Can be according to the mapping relations between the distance between pixel and regional center and translation distance information, determination is opposite with pixel The translation distance information answered, translation distance information may include:Translation distance, translation direction.Further believed according to translation distance The pixel is moved to target location by breath, can specifically determine that target is sat according to the coordinate value of translation distance information and pixel Scale value determines the corresponding target location of coordinates of targets value, the pixel value of the pixel is assigned to positioned at the mesh in the picture Pixel at cursor position, this completes carry out translation processing to pixel.
The image processing method provided according to the present embodiment, multiple keys corresponding to process object in detection image Point determines pending area corresponding with process object according to multiple key points;For each pixel in image, judge Whether the pixel belongs to pending area;According to the distance between regional center of the pixel and pending area determine with The pixel is moved to target location by the corresponding translation distance information of the pixel according to translation distance information.Thus may be used Know, which is carried out only for the pixel in pending area at translation without handling all pixels point in image Reason, can reduce operand, promote the speed of image procossing, and can reach and be translated to the process object in image Effect.
Fig. 2 shows the flow diagrams of image processing method in accordance with another embodiment of the present invention, wherein this implementation The method of example can realize that, it is, of course, also possible to realize by other means, this is not limited by the present invention by graphics processor. As shown in Fig. 2, this approach includes the following steps:
Step S210, multiple key points corresponding to process object in detection image, according to multiple key points determine with Deal with objects corresponding pending area, wherein pending area is oval pending area, and oval pending district Domain is determined by the oval center of circle, oval horizontal axis and the oval longitudinal axis.
Wherein, image can be video camera shooting photo, can also be shooting video flowing in picture frame, the present invention This is not construed as limiting.For the process object in image, multiple key points of detection process object, in practical application, system can Process object in preselect image, i.e., only for it is fixed some handled, also can be according to actual needs The voluntarily process object in selected digital image, you can according to the quantity and type of user demand adjustment process object, the present invention is to this It is not construed as limiting.
In the application scenarios handled facial image, process object includes:Facial area, face contour and/or Face position;Wherein, face position includes at least one of the following:Eyes, nose, eyebrow, face and ear, then locate Multiple key points corresponding to reason object include facial area, the corresponding characteristic point of face contour and/or face position, specifically Corresponding characteristic point and the other portions of face in characteristic point, facial face position corresponding to can referring on face contour position Corresponding characteristic point on position.In addition, number, distributing position and the detection of the present invention key point corresponding to process object Mode is not restricted, and every mode that can detect key point should be all included within the scope of the present invention.
In existing micro-shaping special effect processing technology, generally require to handle all pixels point in image, for figure Each pixel as in is handled, and micro-shaping special effect processing technology is at subregion in image Reason, for example, carrying out micro-shaping special effect processing for an image comprising face, it is thus only necessary to the pixel in human face region It is handled, the pixel outside human face region need not then carry out handling or only doing the adjustment of adaptability, therefore, in order to reduce Operand improves the speed of graphics process, and the method for the present embodiment determines pending area according to the key point of process object, only Translation processing is carried out for the pixel in pending area.
In a kind of application scenarios handled facial image, pending area is oval pending area, then The oval center of circle, oval horizontal axis and the oval longitudinal axis are determined according to the key point of process object, further according to the oval center of circle, ellipse Horizontal axis and the oval longitudinal axis determine the ellipse processing region.Since the profile of face and face position is similar to ellipse Shape, setting pending area to oval processing region can make pending area more be bonded face or face position Profile, and can make in pending area to include the pixel that need not be handled as few as possible, to reduce operation Amount, promotes the speed of processing.Wherein, oval horizontal axis is orthogonal with the oval longitudinal axis, but the present invention to oval horizontal axis with And the specific orientation of the oval longitudinal axis is not construed as limiting, those skilled in the art can be adjusted according to actual needs.
It should be noted that oval pending area in the present embodiment and not merely refer to the length of oval horizontal axis with it is ellipse The unequal oval pending area of length of the circle longitudinal axis, since circle is also a kind of special ellipse, ellipse Pending area can also refer to the round pending area of the length and the equal length of the oval longitudinal axis of oval horizontal axis, specific to need Determines according to actual conditions.
Optionally, pending area further comprises:Target treatment and environmental treatment region;Then according to multiple passes Key point is determined to be specifically included with the step of dealing with objects corresponding pending area:
According to the profile and/or shape of process object, determine at the target corresponding with process object for including in image Manage region;According to target treatment, determine positioned at the environmental treatment region of target treatment periphery.
In practical application, the pixel in some region in image is handled and to the pixel except the region In the case that point keeps reset condition, the image that may result in after treatment seems unnatural, and variation trace is apparent, therefore It is also required to do corresponding processing to the partial pixel point except the region.
Pending area is further divided into target treatment and environmental treatment region by the method for the present embodiment, by In target treatment determined according to the profile and/or shape of process object, therefore, target treatment is to fit well on place The region for managing object, will be determined as environmental treatment region positioned at the subregion of target treatment periphery, then is directed at target Pixel in reason region and the pixel in environmental treatment region can take different processing rules to be handled, and be cut with this Weak variation trace.For generically, environmental treatment region can be interpreted as to a buffer area, in target treatment Pixel needs to carry out the relatively large processing of change degree, and then can only be fitted to the pixel in environmental treatment region The adjustment of answering property.
Optionally, target treatment is elliptical object processing region, and environmental treatment region is positioned at elliptical object The oval ring-type environmental treatment region of processing region periphery.It follows that pending area includes elliptical object processing region With oval ring-type environmental treatment region.
Then according to the profile of process object and/or shape, the target corresponding with process object for including in image is determined The step of target area shape and target area range of processing region, specifically includes:
The target center of circle is determined according to multiple key points and passes through the target horizontal axis and/or the target longitudinal axis in the target center of circle, root The target of elliptical object processing region is determined according to the target center of circle and by the target horizontal axis and/or the target longitudinal axis in the target center of circle Region shape and target area range;
According to the target area shape and target area range of target treatment, determines and be located at outside target treatment The step of environmental area shape and environmental area range in the environmental treatment region enclosed, specifically includes:
The target center of circle is determined as the oval center of circle, oval horizontal axis and/or ellipse is determined according to target horizontal axis and/or the target longitudinal axis The circle longitudinal axis determines oval pending area according to the oval center of circle, oval horizontal axis and the oval longitudinal axis;It is pending according to ellipse Region and elliptical object processing region are determined positioned at the oval ring-type environmental treatment area of elliptical object processing region periphery Domain.Wherein, the length of oval horizontal axis is the first preset multiple of the length of target horizontal axis, and/or the length of the oval longitudinal axis is mesh Mark the second preset multiple of the length of the longitudinal axis;Wherein, the first preset multiple and/or the second preset multiple are not less than 1.
The target center of circle is determined according to multiple key points with process object, it specifically can be by the corresponding center of process object Key point is determined as the target center of circle, then, according to the position relationship and distance between the target center of circle and each key point, determines The locality and length of target horizontal axis and the locality and length of the target longitudinal axis, further according to the target center of circle, target Horizontal axis and the target longitudinal axis determine the regional extent of target treatment.For example, when process object is eyes, it is determined that Eye center key point is the target center of circle, determines the canthus key point for connecting eye center key point to the eyes either side Line segment be target horizontal axis, determine connection eye center key point and the upside of the eyes or the line segment of downside boundary key point For the target longitudinal axis.Finally, elliptical object processing region is determined according to the center of circle, target horizontal axis and the target longitudinal axis.
Then, oval pending area, as shown in the above, ellipse are determined according to elliptical object processing region Target treatment is concentration ellipse shape region with oval pending area, can specifically make target horizontal axis and oval horizontal axis phase Overlap and the target longitudinal axis coincide with the ellipse longitudinal axis, and set the length of oval horizontal axis to target horizontal axis length the One preset multiple, and the oval longitudinal axis length be set as the target longitudinal axis length the second preset multiple, wherein first is default Multiple can be identical with the second preset multiple, then in the case, target horizontal axis and the transverse and longitudinal ratio and ellipse of the target longitudinal axis are horizontal Axis is equal with the oval transverse and longitudinal ratio of the longitudinal axis, and the first preset multiple can also be different with the second preset multiple, but the numerical value of the two In at least one cannot be less than 1, that is, the regional extent of oval pending area is more than the region model of target treatment It encloses.It is further determined according to oval pending area and elliptical object processing region and is located at elliptical object processing region The oval ring-type environmental treatment region of periphery, that is to say, that elliptical annular environmental area is to be located at elliptical object treatment region Oval ring region between domain and oval pending area.
Step S220 determines the original abscissa value of the pixel and original vertical for each pixel in image Coordinate value.
In concrete application, coordinate system can be established in the picture, for each pixel in image, calculate pixel at this Original abscissa value under coordinate system and initial ordinate value specifically establish region in the picture according to pending area Coordinate system calculates original abscissa value and original of the pixel under the Regional coordinate system for each pixel in image Beginning coordinate value.Optionally, when pending area is oval pending area, the oval center of circle is determined as coordinate system in advance Coordinate origin determines the transverse coordinate axis of coordinate system according to oval horizontal axis, and the longitudinal coordinate of coordinate system is determined according to the oval longitudinal axis Axis calculates the original abscissa value and initial ordinate value of the pixel according to coordinate system.That is, the above-mentioned target center of circle is made For coordinate origin, the transverse coordinate axis of coordinate system is determined according to target horizontal axis, determines that the longitudinal of coordinate system sits according to the target longitudinal axis Parameter calculates the original abscissa value and initial ordinate value of the pixel according to coordinate system.
Step S230, according to the transverse and longitudinal ratio between the length of oval horizontal axis and the length of the oval longitudinal axis to the pixel Original abscissa value obtains the scaling abscissa value of the pixel after zooming in and out processing.
The method of the present embodiment by calculate pixel to ellipse the center of circle between equivalent circumferential distance, further according to etc. Effect circumferential distance judges whether the pixel belongs to the ellipse pending area.Specifically, the length of oval horizontal axis is calculated first The transverse and longitudinal ratio of degree and the length of the oval longitudinal axis, place is zoomed in and out using the transverse and longitudinal ratio to the original abscissa value of the pixel Ratio between original abscissa value and transverse and longitudinal ratio, is determined as the scaling abscissa value of the pixel by reason.Wherein, first In the case that preset multiple is equal with the second preset multiple, scaling transverse and longitudinal coordinate value also can be according to the length and target of target horizontal axis The transverse and longitudinal ratio of the length of the longitudinal axis and the original abscissa value of pixel are determined, similar with aforesaid way, no longer superfluous herein It states.
In addition, when the length of oval horizontal axis and the equal length of the oval longitudinal axis, i.e., pending area is round pending Region, the transverse and longitudinal ratio between the length of oval horizontal axis and the length of the oval longitudinal axis are 1.
Step S240 calculates the pixel and ellipse using the initial ordinate value and scaling abscissa value of the pixel Equivalent circumferential distance between the center of circle.
The method of the present embodiment, can be oval horizontal by calculating the equivalent circumferential distance between pixel and the oval center of circle The oval pending area that the length of axis is different from the length of the oval longitudinal axis is equivalent to round pending area, for each picture Vegetarian refreshments, judges whether the pixel belongs to pending area.In practical applications, the equivalent circular between pixel and the oval center of circle All distances can be calculated by the following formula:
D=[(x/ratio)2+y2]1/2
Wherein, D is the equivalent circumferential distance between pixel and the oval center of circle, and x is the original abscissa value of pixel, y For the original coordinates value of pixel, ratio is the transverse and longitudinal ratio between the length of oval horizontal axis and the length of the oval longitudinal axis, then x/ Ratio is the scaling abscissa value of the pixel.
Step S250, judges whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the oval longitudinal axis Degree, if it is not, thening follow the steps S260;If so, this method terminates.
Judge whether the equivalent circumferential distance between pixel and the oval center of circle is more than the length of the oval longitudinal axis, which is It is to judge whether the pixel belongs to pending area.It should be noted that object of the equivalent circumferential distance compared with have pair It should be related to.Specifically, if equivalent circumferential distance is according to the transverse and longitudinal ratio between the length of oval horizontal axis and the length of the oval longitudinal axis Value zooms in and out the scaling abscissa value of the pixel obtained after processing and original to the original abscissa value of the pixel What ordinate value was calculated, then it is ellipse to judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than for this step The length of the circle longitudinal axis;If equivalent circumferential distance is the aspect ratio between length and the length of oval horizontal axis according to the oval longitudinal axis The scaling ordinate value of the pixel obtained after processing and original cross are zoomed in and out to the initial ordinate value of the pixel What coordinate value was calculated, then this step judges whether the equivalent circumferential distance between the pixel and the oval center of circle is more than ellipse The length of horizontal axis, those skilled in the art can be adjusted according to actual conditions.In other words, in the present embodiment horizontally and vertically It can be interchanged, correspondingly, transverse and longitudinal ratio is changed into aspect ratio, and the present invention does not limit concrete implementation mode.
Step S260 determines that the pixel belongs to pending area, according to the ellipse circle of the pixel and pending area Equivalent circumferential distance between the heart determines translation distance information corresponding with the pixel, according to translation distance information by the picture Vegetarian refreshments moves to target location.
If judging, the equivalent circumferential distance between the pixel and the oval center of circle is not more than the length of the oval longitudinal axis, determines The pixel belongs to pending area, then is handled the pixel according to preset translation rule.
Specifically illustrate the method for the present invention, ability in the present embodiment by taking pending area is oval pending area as an example Field technique personnel are not it is understood that the present invention limits the region shape or profile of pending area, then accordingly Ground, judges whether pixel belongs to the mode of pending area and determine the mode of the corresponding translation distance information of pixel It is different due to the difference of the region shape of pending area.For example, for the application that pending area is round pending area Scene, judges whether pixel belongs to pending area and be specially:Judge the region of the pixel and the circle pending area Whether the distance between center of circle is more than the length of the zone radius of the circle pending area, if not, it is determined that the pixel category In pending area.Further according to the pixel and the determining corresponding translation distance information in the distance between the region center of circle, root Translation processing is carried out to pixel according to translation distance information.
Described in the above, the mode of translation distance information corresponding with pixel is determined in the present embodiment Further comprise:It is determining corresponding with the pixel with the distance between the regional center of pending area according to the pixel Translation distance information.
Specially:When the distance between the regional center according to the pixel and pending area determines that the pixel belongs to When target treatment, handles rule according to preset target and determine translation distance information corresponding with the pixel;Work as root When determining that the pixel belongs to environmental treatment region according to the distance between regional center of the pixel and pending area, according to Preset environmental treatment rule determines translation distance information corresponding with the pixel.
If that is, judging the length of the distance between the pixel and the oval center of circle no more than the oval longitudinal axis, i.e., The pixel belongs to pending area, further judges whether the pixel belongs to target treatment, specifically judges the pixel Whether the distance between point and the target center of circle are not more than the length of the target longitudinal axis or target horizontal axis, if it is not, determining the pixel Belong to target treatment, then handling rule according to preset target handles the pixel;If so, determining the pixel Point belongs to environmental treatment region, then is handled the pixel according to preset environmental treatment rule.
Correspondingly, when pending area is oval pending area, according to the area of the pixel and pending area The distance between domain center determines that the step of whether pixel belongs to target treatment specifically includes:
Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the target longitudinal axis;If it is not, Determine that the pixel belongs to target treatment;If so, determining that the pixel belongs to environmental treatment region.
Further, if judging, pixel belongs to target treatment, according to preset target handle rule determine with The corresponding translation distance information of the pixel;If judging, pixel belongs to environmental treatment region, at preset environment Reason rule determines translation distance information corresponding with the pixel.
Wherein, target processing rule and environmental treatment rule can determine in the following manner:
It predefines when the equivalent circumferential distance in pixel to the oval center of circle is not more than the length of the target longitudinal axis, pixel Corresponding translation distance information and the pixel is to the first mapping relations between the equivalent circumferential distance in the oval center of circle, and mesh Mark processing rule is determined according to first mapping relations;It predefines when the equivalent circumferential distance in pixel to the oval center of circle is more than The length of the target longitudinal axis and when less than the length of the oval longitudinal axis, translation distance information corresponding to pixel and the pixel are to ellipse The second mapping relations between the equivalent circumferential distance of the round heart, and environmental treatment rule is determined according to second mapping relations.
Wherein, the first mapping relations can be determined according to the first translation distance look-up table, the first translation distance look-up table Horizontal axis represent pixel to the equivalent circumferential distance between the target center of circle, the longitudinal axis represents the translation distance of pixel, and first is flat Move apart from look-up table may indicate that the different corresponding translation distance of multiple pixels of the equivalent circumferential distance in the oval center of circle it Between difference, and the mapping principle of the first mapping relations is as follows:When the equivalent circumferential distance of pixel to the target center of circle is little When the length of the target longitudinal axis, during the equivalent circumferential distance between pixel and the target center of circle changes from small to big, pixel The translation distance of point is first maintained at a fixed value, is then gradually reduced from the fixed value, it is possible thereby to ensure untreated Region and treated region between transition be smooth.
Second mapping relations can be determined according to the second translation distance look-up table, the horizontal axis of the second translation distance look-up table Pixel is represented to the equivalent circumferential distance between the target center of circle, the longitudinal axis represents the translation distance of pixel, the second translation distance Look-up table may indicate that the difference between the different corresponding translation distance of multiple pixels of the equivalent circumferential distance in the oval center of circle It is different, and the mapping principle of the second mapping relations is as follows:When the equivalent circumferential distance of pixel to the oval center of circle is vertical more than target The length of axis and when less than the length of the oval longitudinal axis, during changing from small to big at a distance from pixel is between the target center of circle, The translation distance of pixel is gradually reduced from a fixed value, can ensure untreated region and warp through the above way It crosses between the region of processing with smooth transition.In addition, the method for the present embodiment is corresponding by the way that different disposal region is arranged Object handles rule can promote the aesthetic feeling of image to the change trace of weakening image.In order to make it easy to understand, Fig. 5 shows one The schematic diagram of the translation distance look-up table of kind of form, as shown in figure 5, for the pixel in pending area, pixel with During equivalent circumferential distance between the target center of circle changes from small to big, the rotation angle of pixel is first maintained at a fixation Value, then be gradually decreased as zero by the fixed value, wherein R can specifically refer to the oval longitudinal axis or horizontal axis of oval pending area Length.In addition, it will be appreciated to those of skill in the art that target, which is arranged, in the present invention handles regular and environmental treatment rule Purpose is:Target treatment and environmental treatment region are distinguished and treated, so as to which smooth transition is better achieved, Therefore, the present invention does not limit particular content (i.e. the first mapping relations and the of target processing rule and environmental treatment rule The concrete form of two mapping relations can be adjusted flexibly).Then, which is moved to by target position according to translation distance information It sets, specifically, according to translation distance information and the original coordinates value of the pixel, calculates the coordinates of targets value of the pixel; Target location is determined according to coordinates of targets value, which is moved into target location.
Wherein, it carries out translation processing to pixel to carry out in original image, that is, is directed to each in pending area A pixel determines that the corresponding translation distance of pixel is believed according to the equivalent circumferential distance between the pixel and the oval center of circle Breath, determines target location, and pixel is moved to mesh according to the original coordinates value of translation distance information and the pixel The coordinate value of the pixel can be by being assigned to the pixel realization positioned at the target location by cursor position.In addition, to pixel Point carries out the blank image that translation processing can also be created according to original image and newly and realizes, specifically, according to coordinates of targets value The step of determining target location, which is moved to target location specifically includes:It is pre-created corresponding with original image Blank image, target location is determined according to coordinates of targets value in blank image.
Which is establishment blank image corresponding with original image, is clicked through to pixel included in blank image The operation of row pixel value assignment, since the coordinates of targets value of pixel is calculated according to the original coordinates value of the pixel , therefore, the coordinate system in the blank image is consistent with the coordinate system needs in the image, ensures determining target with this The accuracy of position.It follows that according to which, for the pixel for being not belonging to pending area in image, target is sat Scale value is consistent with original coordinates value, and the pixel value of the pixel is directly assigned to target position corresponding positioned at the coordinates of targets value Set the pixel at place;For the pixel for belonging to pending area in image, then need according to corresponding with pixel Translation distance information determines target location, and the pixel value of the pixel is assigned to the pixel positioned at the target location.
Further, in order to adapt to the application scenarios of a variety of different image procossings, for example, when deal with objects for first with And when the second eyes, in order to reduce a spacing, need to move first eye position and the second eyes to centre It is dynamic, therefore, after the translation distance of pixel is determined, it is also necessary to the translation direction of pixel is determined, in addition, due to first Translation distance look-up table and the second translation distance look-up table define the corresponding pass between equivalent circumferential distance and translation distance System, and be fixed, and in practical applications, it generally requires to be modified translation distance information according to actual conditions, move The translation distance information for adjusting to state pixel reaches better treatment effect with this.It is further sharp in the present embodiment based on this The corresponding translation distance information of pixel is modified with modifying factor.
Specifically, between the regional center according to the pixel with pending area at a distance from determine with the pixel phase After the step of corresponding translation distance information, further comprise:
According to default translation modification rule, modifying factor corresponding with the pixel is determined, according to modifying factor to this The corresponding translation distance information of pixel is modified, and obtains translation update information;Then according to translation distance information by the picture Vegetarian refreshments moves to the step of target location and specifically includes:The pixel is moved into target location according to translation update information.Its In, modifying factor further comprises:Lateral modifying factor and longitudinal modifying factor.
Wherein, modifying factor is used to determine the translation direction of pixel and/or the translation amplitude of pixel, and modifying factor Son can be dynamically adjusted according to actual conditions, then in concrete application, can calculate pixel according to following formula Coordinates of targets value:
X=x '+x_scale*L
Y=y '+y_scale*L
Above-mentioned formula, which is shown, is modified translation distance information using lateral modifying factor and longitudinal modifying factor, The mode of coordinates of targets value is calculated according to revised translation distance information, wherein L is to be put down according to what equivalent circumferential distance determined Move distance;X_scale is lateral modifying factor, and y_scale is longitudinal modifying factor, indicate respectively pixel horizontal direction with And the translation amplitude on longitudinal direction, and absolute value is bigger, then and translation amplitude is bigger, if x_scale is positive value, table in addition Direction translation of the bright pixel on horizontal direction shows pixel on horizontal direction if x_scale is positive value Negative sense direction translates, and y_scale is similarly;X ' is the original abscissa value of pixel, and y ' is the initial ordinate value of pixel;x For the target lateral coordinates value of pixel, y is the target ordinate value of pixel.
The coordinates of targets value that pixel is determined according to above-mentioned formula then further determines that the corresponding target of coordinates of targets value The pixel value of the pixel is assigned to the pixel positioned at the target location, until to every in pending area by position One pixel has all carried out translation processing, then completes the operation translated to the process object in image.
It follows which can achieve the effect that a kind of process object in image translates;Next, according to Process object in image determines corresponding pending area so that pending area can be with the profile or shape of process object Shape is more bonded, and in face image processing scene, setting the region shape of pending area to ellipse can make to wait locating Reason region is more matched with face or face position;Secondly, which is without handling all pixels point in image, only It is handled for the pixel in pending area, operand can be reduced, promote the speed of image procossing;In addition, will wait for Processing region is divided into target treatment and environmental treatment region, and different pairs is taken for the pixel in different disposal region As processing rule, is conducive to the variation trace for weakening image, promotes the aesthetic feeling of image;It finally, can dynamic using modifying factor Ground adjusts the corresponding translation distance information of pixel, can obtain better treatment effect, be used in a variety of different applied fields Scape.
In addition, inventor has found in the implementation of the present invention:The deformation coefficient of pixel in target treatment There is the first mapping relations, and the pixel in environmental treatment region between the equivalent circumferential distance of the pixel to the target center of circle The deformation coefficient (i.e. translation distance information) and the pixel of point are reflected between the equivalent circumferential distance in the target center of circle with second Penetrate relationship.Also, the first mapping relations are different from the second mapping relations, are based on this, by pending area into one in the present embodiment Step is divided into target treatment and environmental treatment region, and target processing rule and environmental treatment rule is respectively set, Thus, it is possible to execute different processing respectively for the neighboring area of actual process object and process object, to further Promote treatment effect.
In addition, in actual conditions, corresponding to the first look-up table and the second mapping relations corresponding to the first mapping relations Second look-up table be used to define pixel deformation coefficient at a distance from the pixel to the center of circle between mapping relations, I.e.:Under normal conditions, the deformation coefficient of pixel and the pixel have fixed mapping between the position in the center of circle Relationship.However, in the present embodiment, since pending area is oval (and non-circular), in order to more convenient The first look-up table and second look-up table are accurately utilized, meanwhile, also for can be more convenient and accurately determine pixel Position relationship relative to the center of circle, it is proposed that equivalent circumference determination of distance mode.By equivalent circumferential distance, can quickly and Accurately determine the deformation coefficient of each pixel in oval processing region.In addition, the method in the present embodiment passes through When GPU is realized, since GPU has the advantage of parallel processing, treatment effeciency can be substantially improved.
Fig. 3 shows the structural schematic diagram of the image processing apparatus according to another embodiment of the invention, as shown in figure 3, The device includes:
Critical point detection module 31 is adapted to detect for multiple key points corresponding to the process object in image;
Pending area determining module 32 is suitable for determining pending district corresponding with process object according to multiple key points Domain;
Judgment module 33 is suitable for, for each pixel in image, judging whether the pixel belongs to pending area;
Translation distance information determination module 34, be suitable for if so, according to the regional center of the pixel and pending area it Between distance determine corresponding with pixel translation distance information,;
Translation module 35, suitable for the pixel is moved to target location according to translation distance information.
Optionally, pending area is oval pending area, and oval pending area passes through the oval center of circle, ellipse Circle horizontal axis and the oval longitudinal axis determine.
Optionally, above-mentioned apparatus further comprises:
Coordinate value determining module is suitable for, for each pixel in image, determining the original abscissa value of the pixel And initial ordinate value;
Zoom module is suitable for the transverse and longitudinal ratio between the length and the length of the oval longitudinal axis according to oval horizontal axis to the pixel The original abscissa value of point obtains the scaling abscissa value of the pixel after zooming in and out processing;
Equivalent circumference distance calculation module is suitable for initial ordinate value and scaling abscissa value meter using the pixel Calculate the equivalent circumferential distance between the pixel and the oval center of circle;
Then judgment module 33 is further adapted for:Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is big In the length of the oval longitudinal axis;If it is not, determining that the pixel belongs to pending area.
Optionally, coordinate value determining module is further adapted for:
The oval center of circle is determined as to the coordinates of targets origin of target-based coordinate system in advance, coordinates of targets is determined according to oval horizontal axis The target lateral reference axis of system determines the target longitudinal coordinate axle of target-based coordinate system according to the oval longitudinal axis;
The original abscissa value and initial ordinate value of the pixel are calculated according to target-based coordinate system.
Optionally, pending area further comprises:Target treatment and environmental treatment region;Then pending area Determining module 32 is further adapted for:
According to the profile and/or shape of process object, determine at the target corresponding with process object for including in image Manage region;
According to target treatment, determine positioned at the environmental treatment region of target treatment periphery;
Also, translation distance information determination module 34 is further adapted for:
When the distance between the regional center according to the pixel and pending area determines that the pixel belongs at target When managing region, handles rule according to preset target and determine translation distance information corresponding with the pixel;
When the distance between the regional center according to the pixel and pending area determines that the pixel belongs at environment When managing region, translation distance information corresponding with the pixel is determined according to preset environmental treatment rule.
Optionally, target treatment is elliptical object processing region, and environmental treatment region is positioned at elliptical object The oval ring-type environmental treatment region of processing region periphery;
Then pending area determining module 32 is further adapted for:
The target center of circle is determined according to multiple key points and passes through the target horizontal axis and/or the target longitudinal axis in the target center of circle, root The target of elliptical object processing region is determined according to the target center of circle and by the target horizontal axis and/or the target longitudinal axis in the target center of circle Region shape and target area range;
Then pending area determining module 32 is further adapted for:
The target center of circle is determined as the oval center of circle, oval horizontal axis and/or ellipse is determined according to target horizontal axis and/or the target longitudinal axis The circle longitudinal axis determines oval pending area according to the oval center of circle, oval horizontal axis and the oval longitudinal axis;It is pending according to ellipse Region and elliptical object processing region are determined positioned at the oval ring-type environmental treatment area of elliptical object processing region periphery Domain.
Optionally, judgment module 33 is further adapted for:
Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the target longitudinal axis;If it is not, Determine that the pixel belongs to target treatment.
Optionally, the length of oval horizontal axis is the first preset multiple of the length of target horizontal axis, and/or the length of the oval longitudinal axis Degree is the second preset multiple of the length of the target longitudinal axis;Wherein, the first preset multiple and/or the second preset multiple are not less than 1.
Optionally, above-mentioned apparatus further comprises:
Mapping relations determining module is suitable for predefining when the equivalent circumferential distance in pixel to the oval center of circle is not more than mesh When marking the length of the longitudinal axis, the equivalent circumferential distance of translation distance information corresponding to pixel and the pixel to the ellipse center of circle it Between the first mapping relations, and target processing rule according to first mapping relations determine;
Mapping relations determining module is further adapted for:It predefines when the equivalent circumferential distance in pixel to the oval center of circle is big In the target longitudinal axis length and when less than the length of the oval longitudinal axis, the translation distance information corresponding to pixel is arrived with the pixel The second mapping relations between the equivalent circumferential distance in the oval center of circle, and environmental treatment rule is true according to second mapping relations It is fixed.
Optionally, translation module 35 is further adapted for:
According to translation distance information and the original coordinates value of the pixel, the coordinates of targets value of the pixel is calculated;
Target location is determined according to coordinates of targets value, which is moved into target location.
Optionally, translation module 35 is further adapted for:
It is pre-created blank image corresponding with image, target position is determined according to coordinates of targets value in blank image It sets.
Optionally, above-mentioned apparatus further comprises:
Correcting module is suitable for translating modification rule according to default, determines modifying factor corresponding with the pixel, according to Modifying factor is modified the corresponding translation distance information of the pixel, obtains translation update information;
Then translation module 35 is further adapted for:The pixel is moved into target location according to translation update information.
Optionally, modifying factor further comprises:Lateral modifying factor and longitudinal modifying factor.
The concrete structure and operation principle of above-mentioned modules can refer to the description of corresponding steps in embodiment of the method, herein It repeats no more.
The another embodiment of the application provides a kind of nonvolatile computer storage media, and the computer storage media is deposited An at least executable instruction is contained, which can perform the image processing method in above-mentioned any means embodiment Method.
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment according to the ... of the embodiment of the present invention, the specific embodiment of the invention The specific implementation of electronic equipment is not limited.
As shown in figure 4, the electronic equipment may include:Processor (processor) 402, communication interface (Communications Interface) 404, memory (memory) 406 and communication bus 408.
Wherein:
Processor 402, communication interface 404 and memory 406 complete mutual communication by communication bus 408.
Communication interface 404, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..
Processor 402 can specifically execute the correlation in above-mentioned image processing method embodiment for executing program 410 Step.
Specifically, program 410 may include program code, which includes computer-managed instruction.
Processor 402 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 406, for storing program 410.Memory 406 may include high-speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 410 specifically can be used for so that processor 402 executes following operation:Process object institute in detection image is right The multiple key points answered determine pending area corresponding with process object according to multiple key points;For every in image A pixel, judges whether the pixel belongs to pending area;If so, according in the region of the pixel and pending area The distance between heart determines translation distance information corresponding with the pixel, is translated the pixel according to translation distance information To target location.
In a kind of optional mode, pending area is oval pending area, and oval pending area is logical The oval center of circle, oval horizontal axis and the oval longitudinal axis is crossed to determine.
In a kind of optional mode, program 410 specifically can be also used for so that processor 402 executes following operation:Needle To each pixel in image, the original abscissa value and initial ordinate value of the pixel are determined;According to oval horizontal axis Length and the length of the oval longitudinal axis between transverse and longitudinal ratio the original abscissa value of the pixel is zoomed in and out after processing To the scaling abscissa value of the pixel;The pixel is calculated using the initial ordinate value and scaling abscissa value of the pixel Equivalent circumferential distance between point and the oval center of circle;Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is big In the length of the oval longitudinal axis;If it is not, determining that the pixel belongs to pending area.
In a kind of optional mode, program 410 specifically can be also used for so that processor 402 executes following operation:In advance The oval center of circle is first determined as to the coordinates of targets origin of target-based coordinate system, determines that the target of target-based coordinate system is horizontal according to oval horizontal axis To reference axis, the target longitudinal coordinate axle of target-based coordinate system is determined according to the oval longitudinal axis;The pixel is calculated according to target-based coordinate system The original abscissa value and initial ordinate value of point.
In a kind of optional mode, target treatment and environmental treatment region, then program 410 can also specifically use Following operation is executed in making processor 402:According to the profile and/or shape of process object, determine include in image with place Manage the corresponding target treatment of object;According to target treatment, determine at the environment of target treatment periphery Manage region;
Program 410 specifically can be also used for so that processor 402 executes following operation:When according to the pixel with it is pending When the distance between the regional center in region determines that the pixel belongs to target treatment, rule is handled according to preset target Determine translation distance information corresponding with the pixel;When according between the pixel and the regional center of pending area When distance determines that the pixel belongs to environmental treatment region, determined according to preset environmental treatment rule corresponding with the pixel Translation distance information.
In a kind of optional mode, target treatment is elliptical object processing region, and environmental treatment region is position Oval ring-type environmental treatment region in elliptical object processing region periphery;
Then program 410 specifically can be also used for so that processor 402 executes following operation:Mesh is determined according to multiple key points The center of circle and target horizontal axis and/or the target longitudinal axis by the target center of circle are marked, according to the target center of circle and by the target center of circle Target horizontal axis and/or the target longitudinal axis determine the target area shape and target area range of elliptical object processing region;
Then program 410 specifically can be also used for so that processor 402 executes following operation:The target center of circle is determined as ellipse The center of circle determines oval horizontal axis and/or the oval longitudinal axis, according to the oval center of circle, oval horizontal axis according to target horizontal axis and/or the target longitudinal axis And the oval longitudinal axis determines oval pending area;It is true according to oval pending area and elliptical object processing region It is positioned at the oval ring-type environmental treatment region of elliptical object processing region periphery.
In a kind of optional mode, then program 410 specifically can be also used for so that processor 402 executes following operation: Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the target longitudinal axis;If it is not, determining the picture Vegetarian refreshments belongs to target treatment.
In a kind of optional mode, wherein the length of oval horizontal axis is the first preset multiple of the length of target horizontal axis, And/or the second preset multiple of the length that the length of the oval longitudinal axis is the target longitudinal axis;Wherein, the first preset multiple and/or second Preset multiple is not less than 1.
In a kind of optional mode, then program 410 specifically can be also used for so that processor 402 executes following operation: It predefines when the equivalent circumferential distance in pixel to the oval center of circle is not more than the length of the target longitudinal axis, corresponding to pixel Translation distance information and the pixel are to the first mapping relations between the equivalent circumferential distance in the oval center of circle, and target processing is advised Then determined according to first mapping relations;
It predefines when the equivalent circumferential distance in pixel to the oval center of circle is more than the length of the target longitudinal axis and less than ellipse When the length of the longitudinal axis, the translation distance information and the pixel corresponding to pixel are between the equivalent circumferential distance in the oval center of circle The second mapping relations, and environmental treatment rule according to second mapping relations determine.
In a kind of optional mode, then program 410 specifically can be also used for so that processor 402 executes following operation: According to translation distance information and the original coordinates value of the pixel, the coordinates of targets value of the pixel is calculated;It is sat according to target Scale value determines target location, which is moved to target location.
In a kind of optional mode, then program 410 specifically can be also used for so that processor 402 executes following operation: It is pre-created blank image corresponding with image, target location is determined according to coordinates of targets value in blank image.
In a kind of optional mode, then program 410 specifically can be also used for so that processor 402 executes following operation:
According to default translation modification rule, modifying factor corresponding with the pixel is determined, according to modifying factor to this The corresponding translation distance information of pixel is modified, and obtains translation update information;
The step of pixel is then moved to target location according to translation distance information specifically includes:It is corrected according to translation The pixel is moved to target location by information.
In a kind of optional mode, modifying factor further comprises:Lateral modifying factor and longitudinal modifying factor.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) come realize in image processing apparatus according to the ... of the embodiment of the present invention some or The some or all functions of person's whole component.The present invention is also implemented as one for executing method as described herein Divide either whole equipment or program of device (for example, computer program and computer program product).Such this hair of realization Bright program can may be stored on the computer-readable medium, or can be with the form of one or more signal.It is such Signal can be downloaded from internet website and be obtained, and either provided on carrier signal or provided in any other forms.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of image processing method, including:
Multiple key points corresponding to process object in detection image determine and the processing pair according to the multiple key point As corresponding pending area;
For each pixel in described image, judge whether the pixel belongs to the pending area;
If so, determining corresponding with the pixel with the distance between the regional center of the pending area according to the pixel Translation distance information, which is moved to by target location according to the translation distance information.
2. according to the method described in claim 1, wherein, the pending area is oval pending area, and described ellipse Round pending area is determined by the oval center of circle, oval horizontal axis and the oval longitudinal axis.
3. according to the method described in claim 2, wherein, each pixel in described image judges the pixel The step of whether point belongs to the pending area specifically includes:
For each pixel in described image, the original abscissa value and initial ordinate value of the pixel are determined;
According to the transverse and longitudinal ratio between the length and the length of the oval longitudinal axis of the oval horizontal axis to the original horizontal seat of the pixel Scale value obtains the scaling abscissa value of the pixel after zooming in and out processing;
It is calculated between the pixel and the oval center of circle using the initial ordinate value and scaling abscissa value of the pixel Equivalent circumferential distance;
Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the oval longitudinal axis;If It is no, determine that the pixel belongs to the pending area.
4. according to the method described in claim 3, wherein, each pixel in described image determines the pixel The step of original abscissa value and initial ordinate value of point, specifically includes:
The oval center of circle is determined as to the coordinates of targets origin of target-based coordinate system in advance, target is determined according to the oval horizontal axis The target lateral reference axis of coordinate system determines the target longitudinal coordinate axle of target-based coordinate system according to the oval longitudinal axis;
The original abscissa value and initial ordinate value of the pixel are calculated according to the target-based coordinate system.
5. according to any methods of claim 2-4, wherein the pending area further comprises:Target treatment region Domain and environmental treatment region;It is then described that pending district corresponding with the process object is determined according to the multiple key point The step of domain, specifically includes:
According to the profile and/or shape of the process object, include in described image corresponding with the process object is determined Target treatment;
According to the target treatment, determine positioned at the environmental treatment region of target treatment periphery;
Also, it is described to be determined and the pixel phase according to the distance between the pixel and the regional center of the pending area The step of corresponding translation distance information, specifically includes:
When the distance between the regional center according to the pixel and the pending area determines that the pixel belongs to the mesh When marking processing region, handles rule according to preset target and determine translation distance information corresponding with the pixel;
When the distance between the regional center according to the pixel and the pending area determines that the pixel belongs to the ring When the processing region of border, translation distance information corresponding with the pixel is determined according to preset environmental treatment rule.
6. according to the method described in claim 5, wherein, the target treatment is elliptical object processing region, described Environmental treatment region is positioned at the oval ring-type environmental treatment region of the elliptical object processing region periphery;
The then profile and/or shape according to the process object determines including in described image with the process object The step of target area shape and target area range of corresponding target treatment, specifically includes:
The target center of circle is determined according to the multiple key point and is indulged by the target horizontal axis and/or target in the target center of circle Axis determines the ellipse according to the target center of circle and by the target horizontal axis and/or the target longitudinal axis in the target center of circle The target area shape and target area range of target treatment;
The target area shape and target area range according to the target treatment determines and is located at the target The step of environmental area shape and environmental area range for managing the environmental treatment region of area periphery, specifically includes:
The target center of circle is determined as the oval center of circle, is determined according to the target horizontal axis and/or the target longitudinal axis described ellipse Circle horizontal axis and/or the oval longitudinal axis determine that the ellipse is pending according to the oval center of circle, oval horizontal axis and the oval longitudinal axis Region;It is determined according to the oval pending area and the elliptical object processing region and is located at the elliptical object The oval ring-type environmental treatment region of processing region periphery.
7. according to the method described in claim 6, wherein, the regional center according to the pixel and the pending area The distance between determine that pixel the step of belonging to the target treatment specifically includes:
Judge whether the equivalent circumferential distance between the pixel and the oval center of circle is more than the length of the target longitudinal axis;If It is no, determine that the pixel belongs to the target treatment.
8. a kind of image processing apparatus, including:
Critical point detection module is adapted to detect for multiple key points corresponding to the process object in image;
Pending area determining module is suitable for being determined according to the multiple key point corresponding pending with the process object Region;
Judgment module is suitable for, for each pixel in described image, judging whether the pixel belongs to the pending district Domain;
Translation distance information determination module is suitable for if so, according between the pixel and the regional center of the pending area Distance determine corresponding with pixel translation distance information;
Translation module, suitable for the pixel is moved to target location according to the translation distance information.
9. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of the image processing method described in any one of 1-7.
10. a kind of computer storage media, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute the corresponding operation of image processing method as described in any one of claim 1-7.
CN201810229530.1A 2018-03-20 2018-03-20 Image processing method and device and electronic equipment Active CN108389155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810229530.1A CN108389155B (en) 2018-03-20 2018-03-20 Image processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810229530.1A CN108389155B (en) 2018-03-20 2018-03-20 Image processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108389155A true CN108389155A (en) 2018-08-10
CN108389155B CN108389155B (en) 2021-10-01

Family

ID=63067813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810229530.1A Active CN108389155B (en) 2018-03-20 2018-03-20 Image processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108389155B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109285126A (en) * 2018-08-17 2019-01-29 上海商汤智能科技有限公司 Image processing method and device, electronic equipment and storage medium
CN110611767A (en) * 2019-09-25 2019-12-24 北京迈格威科技有限公司 Image processing method and device and electronic equipment
CN110910393A (en) * 2018-09-18 2020-03-24 北京市商汤科技开发有限公司 Data processing method and device, electronic equipment and storage medium
CN111507896A (en) * 2020-04-27 2020-08-07 北京字节跳动网络技术有限公司 Image liquefaction processing method, device, equipment and storage medium
CN111861868A (en) * 2020-07-15 2020-10-30 广州光锥元信息科技有限公司 Image processing method and device for beautifying portrait in video
CN112396553A (en) * 2019-07-30 2021-02-23 北京嗨动视觉科技有限公司 Image moving method, device and system and computer readable medium
CN113596314A (en) * 2020-04-30 2021-11-02 北京达佳互联信息技术有限公司 Image processing method and device and electronic equipment
CN113781295A (en) * 2021-09-14 2021-12-10 网易(杭州)网络有限公司 Image processing method, device, equipment and storage medium
CN114995738A (en) * 2022-05-31 2022-09-02 重庆长安汽车股份有限公司 Transformation method, device, electronic equipment, storage medium and program product
CN116579934A (en) * 2023-04-06 2023-08-11 湖南师范大学 Embroidery plate making processing method and system based on edge detection

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150279073A1 (en) * 2014-03-26 2015-10-01 Sony Corporation Image processing device, image processing method, and storage medium
CN105282513A (en) * 2015-10-23 2016-01-27 国网山西省电力公司大同供电公司 Device and method for detecting operation state of ultra-high-voltage transformer in transformer substation based on 3D infrared panoramic image
US20170076174A1 (en) * 2014-05-06 2017-03-16 Nant Holdings Ip, Llc Image-based feature detection using edge vectors
CN106846255A (en) * 2017-02-23 2017-06-13 北京普及芯科技有限公司 Image rotation implementation method and device
CN107395958A (en) * 2017-06-30 2017-11-24 北京金山安全软件有限公司 Image processing method and device, electronic equipment and storage medium
CN107578380A (en) * 2017-08-07 2018-01-12 北京金山安全软件有限公司 Image processing method and device, electronic equipment and storage medium
CN107730465A (en) * 2017-10-09 2018-02-23 武汉斗鱼网络科技有限公司 Face U.S. face method and device in a kind of image

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150279073A1 (en) * 2014-03-26 2015-10-01 Sony Corporation Image processing device, image processing method, and storage medium
US20170076174A1 (en) * 2014-05-06 2017-03-16 Nant Holdings Ip, Llc Image-based feature detection using edge vectors
CN105282513A (en) * 2015-10-23 2016-01-27 国网山西省电力公司大同供电公司 Device and method for detecting operation state of ultra-high-voltage transformer in transformer substation based on 3D infrared panoramic image
CN106846255A (en) * 2017-02-23 2017-06-13 北京普及芯科技有限公司 Image rotation implementation method and device
CN107395958A (en) * 2017-06-30 2017-11-24 北京金山安全软件有限公司 Image processing method and device, electronic equipment and storage medium
CN107578380A (en) * 2017-08-07 2018-01-12 北京金山安全软件有限公司 Image processing method and device, electronic equipment and storage medium
CN107730465A (en) * 2017-10-09 2018-02-23 武汉斗鱼网络科技有限公司 Face U.S. face method and device in a kind of image

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109285126A (en) * 2018-08-17 2019-01-29 上海商汤智能科技有限公司 Image processing method and device, electronic equipment and storage medium
CN110910393B (en) * 2018-09-18 2023-03-24 北京市商汤科技开发有限公司 Data processing method and device, electronic equipment and storage medium
CN110910393A (en) * 2018-09-18 2020-03-24 北京市商汤科技开发有限公司 Data processing method and device, electronic equipment and storage medium
CN112396553B (en) * 2019-07-30 2024-06-07 北京嗨动视觉科技有限公司 Image moving method, device and system and computer readable medium
CN112396553A (en) * 2019-07-30 2021-02-23 北京嗨动视觉科技有限公司 Image moving method, device and system and computer readable medium
CN110611767A (en) * 2019-09-25 2019-12-24 北京迈格威科技有限公司 Image processing method and device and electronic equipment
CN110611767B (en) * 2019-09-25 2021-08-10 北京迈格威科技有限公司 Image processing method and device and electronic equipment
CN111507896A (en) * 2020-04-27 2020-08-07 北京字节跳动网络技术有限公司 Image liquefaction processing method, device, equipment and storage medium
CN111507896B (en) * 2020-04-27 2023-09-05 抖音视界有限公司 Image liquefaction processing method, device, equipment and storage medium
WO2021218118A1 (en) * 2020-04-30 2021-11-04 北京达佳互联信息技术有限公司 Image processing method and apparatus
CN113596314B (en) * 2020-04-30 2022-11-11 北京达佳互联信息技术有限公司 Image processing method and device and electronic equipment
CN113596314A (en) * 2020-04-30 2021-11-02 北京达佳互联信息技术有限公司 Image processing method and device and electronic equipment
CN111861868B (en) * 2020-07-15 2023-10-27 广州光锥元信息科技有限公司 Image processing method and device for beautifying human images in video
CN111861868A (en) * 2020-07-15 2020-10-30 广州光锥元信息科技有限公司 Image processing method and device for beautifying portrait in video
CN113781295A (en) * 2021-09-14 2021-12-10 网易(杭州)网络有限公司 Image processing method, device, equipment and storage medium
CN113781295B (en) * 2021-09-14 2024-02-27 网易(杭州)网络有限公司 Image processing method, device, equipment and storage medium
CN114995738A (en) * 2022-05-31 2022-09-02 重庆长安汽车股份有限公司 Transformation method, device, electronic equipment, storage medium and program product
CN116579934A (en) * 2023-04-06 2023-08-11 湖南师范大学 Embroidery plate making processing method and system based on edge detection
CN116579934B (en) * 2023-04-06 2024-04-16 湖南师范大学 Embroidery plate making processing method and system based on edge detection

Also Published As

Publication number Publication date
CN108389155B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN108389155A (en) Image processing method, device and electronic equipment
CN108346130A (en) Image processing method, device and electronic equipment
CN108447023A (en) Image processing method, device and electronic equipment
CN108364254A (en) Image processing method, device and electronic equipment
CN107395958B (en) Image processing method and device, electronic equipment and storage medium
CN104200454B (en) Fisheye image distortion correction method and device
CN109712189B (en) A kind of method and apparatus of sensor combined calibrating
CN108399599A (en) Image processing method, device and electronic equipment
CN109064390A (en) A kind of image processing method, image processing apparatus and mobile terminal
CN110175980A (en) Image definition recognition methods, image definition identification device and terminal device
CN109859126A (en) A kind of vedio noise reduction method, apparatus, electronic equipment and storage medium
CN102662476A (en) Gaze estimation method
CN110288614A (en) Image processing method, device, equipment and storage medium
CN109377467A (en) Generation method, object detection method and the device of training sample
CN111105452B (en) Binocular vision-based high-low resolution fusion stereo matching method
CN108177146A (en) Control method, device and the computing device of robot head
WO2020093566A1 (en) Cerebral hemorrhage image processing method and device, computer device and storage medium
US10762681B2 (en) Map generation system and method for generating an accurate building shadow
WO2020082830A1 (en) Method and apparatus for processing images
CN107481280A (en) The antidote and computing device of a kind of skeleton point
CN116051631A (en) Light spot labeling method and system
CN108734712B (en) Background segmentation method and device and computer storage medium
CN110349096A (en) Bearing calibration, device, equipment and the storage medium of palm image
CN113989831A (en) Myopia prevention and control method, device, terminal equipment and storage medium
CN110473281A (en) Threedimensional model retouches side processing method, device, processor and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant