[go: up one dir, main page]

CN105976311A - Image processing method and intelligent terminal - Google Patents

Image processing method and intelligent terminal Download PDF

Info

Publication number
CN105976311A
CN105976311A CN201610321345.6A CN201610321345A CN105976311A CN 105976311 A CN105976311 A CN 105976311A CN 201610321345 A CN201610321345 A CN 201610321345A CN 105976311 A CN105976311 A CN 105976311A
Authority
CN
China
Prior art keywords
region
image
described region
image processing
grid
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.)
Pending
Application number
CN201610321345.6A
Other languages
Chinese (zh)
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.)
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Shenzhen Tinno Wireless 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 Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Wireless Technology Co Ltd
Priority to CN201610321345.6A priority Critical patent/CN105976311A/en
Publication of CN105976311A publication Critical patent/CN105976311A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/18Image warping, e.g. rearranging pixels individually

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an image processing method and an intelligent terminal. The method comprises the steps: enabling the intelligent terminal to determine a bulged or recessed region in an image; and enabling the region in the image to be flattened and straightened. The method can carry out the beautifying the bulged or recessed region in the image which cannot make a user satisfied, enables the effect of the image or picture to be better, increases the photographing functions of the intelligent terminal, and improves the user experience.

Description

Image processing method and intelligent terminal
Technical field
The present invention relates to intelligent terminal's technical field, particularly relate to a kind of image processing method and Intelligent terminal.
Background technology
Along with developing rapidly of communication technology and popularizing of smart electronics product, more and more intelligence Terminal or smart machine become a part indispensable in people's life, such as smart mobile phone, intelligence Camera etc..
And followed by the development from media and social networks, intelligent terminal user is more and more liked The photo upload of oneself or friends and family to network is appreciated for other Internet users.In order to make bat More preferable according to effect, the camera of existing intelligent terminal typically has U.S. face function, makes user's Photo more conforms to the aesthetical standard of oneself, but either which kind of intelligent terminal, and U.S. face function is only It is only limitted to the U.S. face to user's face, and other positions of user or other figures can not be carried out Beautify.
Summary of the invention
The technical problem that present invention mainly solves is to provide a kind of image processing method and intelligence is whole End, it is possible in image unsatisfied to user raised or sunken region beautify, make figure Picture or photo are better attractive in appearance, not only enrich intelligent terminal's camera function, also improve user Experience.
For solving above-mentioned technical problem, the technical scheme that the present invention uses is: provide one figure Picture processing method, including:
Intelligent terminal determines the projection in image or recessed area;
Described region in described image is carried out straight process.
Wherein, the described step that described region in described image carries out straight process is specifically wrapped Include:
Described region in described image is carried out curved surface meshing, makes described region fall into setting In grid;
Described region in described grid is stretched.
Wherein, described the step that described region in described grid stretches is specifically included:
By at least one direction vertically and horizontally and in diagonal angle, the described region in described grid Stretch, so that described region shows smooth.
Wherein, described by the described region in described grid vertically and horizontally and in diagonal angle at least One direction stretches, so that described region shows that smooth step specifically includes:
When by the described region in described grid to diagonal stretch, the distance of stretching accounts for described region Corresponding sides boundary line to central point corresponding point distance ratio D=(m-G)/G*100%, wherein, M is that flat site summit is to the distance of central point after stretching, and D is position pair to be tensioned, described region Answer boundary line to arrive the distance of described central point corresponding point, and described boundary line is corresponding with described central point The line of point is parallel to the line of central point with described flat site summit;
When by described region left and right directions forwards, backwards stretching in described grid, stretched vertically away from Ratio from the vertical dimension accounted between the boundary of correspondence both sides, position to be tensioned, described region D1=[(V1+V2)/2-Y]/Y*100%, wherein, v1, v2 are respectively described region vertical direction Maximum normal distance;Y be between the boundary of correspondence both sides, position to be tensioned, described region vertical away from From;The distance of horizontal stretch account for level between the boundary of correspondence both sides, position to be tensioned, described region away from From ratio D2=(H1+H2)/2-X]/X*100%, wherein, H1, H2 are respectively described district The maximum horizontal range of territory horizontal direction;X be correspondence both sides, position to be tensioned, described region boundary it Between horizontal range.
Wherein, the step of the described projection determined in image or recessed area includes:
Using the region of user setup as the projection in described image or recessed area;Or
Described image will meet the region imposed a condition as described projection or recessed area.
Wherein, before the step of the described projection determined in image or recessed area, described method is also Including:
The content obtained by photographic head generates described image.
Wherein, also wrap after the described step that described region in described image is carried out straight process Include:
Described image synthesising picture after processing.
Wherein, described region is the abdominal part of human body.
For solving above-mentioned technical problem, another technical solution used in the present invention is: provide one Intelligent terminal, described intelligent terminal includes area determination module and image processing module,
Described area determination module is for determining the projection in image or recessed area;
Described image processing module is for carrying out straight process by the described region in described image.
Wherein, described image processing module is specifically for by the described region march in described picture Veil is formatted, and makes described region fall in the grid of setting;
Described region in described grid is stretched.
The invention has the beneficial effects as follows: be different from the situation of prior art, the intelligence in the present invention is eventually End first determines the projection in pending image or recessed region, then by image this projection Or recessed region carries out straight process, make this projection or recessed area planarization.By above-mentioned side Formula, intelligent terminal can in image unsatisfied to user raised or sunken region enter Row beautifies, and makes image or photo better attractive in appearance, not only enriches intelligent terminal's camera function, Also improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of image processing method one embodiment of the present invention;
Fig. 2 A is the process schematic diagram of image processing method one detailed description of the invention of the present invention;
Fig. 2 B is the process schematic diagram of Fig. 1 another detailed description of the invention of image processing method;
Fig. 2 C is the effect schematic diagram of the embodiment after Fig. 1 image processing method processes;
Fig. 3 is the structural representation of intelligent terminal one embodiment of the present invention;
Fig. 4 is the structural representation of another embodiment of intelligent terminal of the present invention.
Detailed description of the invention
It is the schematic flow sheet of image processing method one embodiment of the present invention refering to Fig. 1, Fig. 1. As it is shown in figure 1, the image processing method of present embodiment comprises the steps:
101: intelligent terminal determines the projection in image or recessed area.
Specifically, user is when using intelligent terminal take pictures or image, and intelligent terminal first determines that it is clapped According to scope, generally, photographic head the content that obtains generates the image that band is taken pictures.
Above-mentioned image in present embodiment includes projection or recessed area, with human body in the present invention Illustrate as a example by abdominal part, in other embodiments, it is also possible to it is protruding or recessed to be that other have Region, the window of shape deformation occurred during as taken pictures, medicated pillow in irregular shape etc., at this not Limit.
In a particular embodiment, intelligent terminal can be manually set by user, it is possible to automatically obtains Take.When being manually set by user, user setup in the image that photographic head is produced by intelligent terminal Region as the projection in this image or recessed area.When automatically being obtained by intelligent terminal, Intelligent terminal will meet the region imposed a condition as described projection or recessed area in this image.Its In, this imposes a condition can be by self-defined setting, it is also possible to arranged by producer, outside detecting Surrounding edge boundary line or segment boundary line are to be defined as projection or recessed area during curve.
In another embodiment, in intelligent terminal detects this image, an object is had more than Meet this when imposing a condition, preferably qualified all objects are all picked out, for user Confirm, if intelligent terminal does not receives the confirmation instruction of user within the setting time, then will meet The region of condition is all as the projection in image or recessed area.As intelligent terminal detects that two are gathered around There is the abdominal part of the human body of projection, then using abdominal part protruding for the two all as the elevated regions of image.
102: the described region in described image is carried out straight process.
Specifically, intelligent terminal is when determining projection or the recessed area of this image, first by picture In projection or recessed area carry out curved surface meshing, make described region drop in the grid of setting Wherein, grid size, how much can arrange according to the size reasonable in this region, it is also possible to according to setting Fixed rule is set, the grid as shown in Fig. 2 A and Fig. 2 B.
After this projection or recessed area are carried out gridding, intelligent terminal is further by grid In described region stretch, specifically, by this region vertically and horizontally and in diagonal angle at least one Individual direction stretches, so that this region shows smooth.
Specifically, further refering to shown in Fig. 2 A, when by the described region in described grid to During diagonal stretch, the distance of stretching accounts for corresponding sides boundary line, described region to central point corresponding point distance Ratio D=(m-G)/G*100%, wherein, m for stretching after flat site summit to central point Distance, D be corresponding sides boundary line, position to be tensioned, described region to described central point corresponding point away from From, and the line of described boundary line and described central point corresponding point and described flat site summit in The line of heart point is parallel.
When the described region left and right directions forwards, backwards in described grid is stretched, shown in Fig. 2 B, The distance of stretched vertically accounts for the vertical dimension between the boundary of correspondence both sides, position to be tensioned, described region Ratio D1=[(V1+V2)/2-Y]/Y*100%, wherein, v1, v2 are respectively described region The maximum normal distance of vertical direction;Y is between the boundary of correspondence both sides, position to be tensioned, described region Vertical dimension;The distance of horizontal stretch accounts between the boundary of correspondence both sides, position to be tensioned, described region Ratio D2=(the H1+H2)/2-X of horizontal range]/X*100%, wherein, H1, H2 are respectively Maximum horizontal range for described zone level direction;X is position to be tensioned, described region correspondence two Horizontal range between the limit of border.
No matter use above-mentioned which kind of stretch mode, projection or recessed area are stretched to by final result This region shows smooth, as shown in Figure 2 C, grid is stretched to the tetragon of rule.
After by the way the projection in image or recessed area being carried out straight process, intelligence Terminal further will process after image synthesising picture, e.g., shoot into photo, do not limit at this Fixed.
Intelligent terminal in present embodiment includes but not limited to smart mobile phone, smart camera, also wraps Include other intelligent terminal with camera function of taking pictures, do not limit at this.
Being different from prior art, the intelligent terminal in present embodiment first determines in pending image Projection or recessed region, then by image this protruding or recessed region carry out straight place Reason, makes this projection or recessed area planarization.By the way, intelligent terminal can be right In the unsatisfied image of user raised or sunken region beautify, make image or photo effect Fruit is the most attractive in appearance, not only enriches intelligent terminal's camera function, also improves Consumer's Experience.
It is the structural representation of intelligent terminal one embodiment of the present invention refering to Fig. 3, Fig. 3.Such as figure Shown in 3, the intelligent terminal of present embodiment includes area determination module 301 and image procossing mould Block 302,
Area determination module 301 is for determining the projection in image or recessed area.
Specifically, user is when using intelligent terminal take pictures or image, and intelligent terminal first determines that it is clapped According to scope, generally, photographic head the content that obtains generates the image of band shooting.
Above-mentioned image in present embodiment includes projection or recessed area, with human body in the present invention Illustrate as a example by abdominal part, in other embodiments, it is also possible to it is protruding or recessed to be that other have Region, the window of shape deformation occurred during as taken pictures, medicated pillow in irregular shape etc., at this not Limit.
In a particular embodiment, area determination module 301 can be manually set by user, also Can automatically obtain.When being manually set by user, photographic head is produced by area determination module 301 Image in the region of user setup as the projection in this image or recessed area.When by intelligence When terminal obtains automatically, area determination module 301 is made meeting the region imposed a condition in this image For described projection or recessed area.Wherein, this impose a condition can be by self-defined setting, it is also possible to Being arranged by producer, as detected, periphery sides boundary line or segment boundary line are defined as projection when being curve Or recessed area.
In another embodiment, have more than in area determination module 301 detects this image One object meet this when imposing a condition, preferably qualified all objects are all picked out Come, confirm for user, if area determination module 301 does not receives user's within the setting time Confirm instruction, then using qualified region all as the projection in image or recessed area.Such as district Territory determines that module 301 detects the abdominal part of two human bodies having projection, then by the two projection Abdominal part is all as the elevated regions of image.
Image processing module 302 is for carrying out straight process by the described region in described image.
Specifically, intelligent terminal when determining projection or the recessed area of this image, image procossing mould Projection in picture or recessed area are carried out curved surface meshing by block 302, make described region drop into , the size of grid, how much can arrange according to the size reasonable in this region in the grid set wherein, Can also be set according to the rule set, the grid as shown in Fig. 2 A and Fig. 2 B.
Image processing module 302 is after carrying out gridding to this projection or recessed area, further Described region in grid is stretched by ground, specifically, by this region vertically and horizontally and in diagonal angle At least one direction stretch, so that this region shows smooth.
Specifically, further refering to shown in Fig. 2 A, when image processing module 302 is when by described Described region in grid is when diagonal stretch, and the distance of stretching accounts for corresponding sides boundary line, described region and arrives Central point corresponding point distance ratio D=(m-G)/G*100%, wherein, m is for flat after stretching Summit, smooth region is to the distance of central point, and D is that corresponding sides boundary line, position to be tensioned, described region is to institute State the distance of central point corresponding point, and the line of described boundary line and described central point corresponding point and institute State flat site summit parallel to the line of central point.
When image processing module 302 is by the described region stretching of left and right directions forwards, backwards in described grid Time, shown in Fig. 2 B, the distance of stretched vertically accounts for correspondence both sides, position to be tensioned, described region boundary Between ratio D1=[(V1+V2)/2-Y]/Y*100% of vertical dimension, wherein, v1, v2 It is respectively the maximum normal distance of described region vertical direction;Y is position pair to be tensioned, described region Answer the vertical dimension between the boundary of both sides;The distance of horizontal stretch accounts for position pair to be tensioned, described region Answer ratio D2=(the H1+H2)/2-X of horizontal range between the boundary of both sides]/X*100%, wherein, H1, H2 are respectively the maximum horizontal range in described zone level direction;X is that described region waits to draw Stretch the horizontal range between the boundary of correspondence both sides, position.
No matter use above-mentioned which kind of stretch mode, projection or recessed area are stretched to by final result This region shows smooth, as shown in Figure 2 C, grid is stretched to the tetragon of rule.
Further, as shown in Figure 4, intelligent terminal is except including area determination module 401, figure As processing module 402, also including picture synthesis module 403, picture synthesis module 403 is used for will After projection in image or recessed area carry out straight process, the image after processing further closes Become picture, e.g., shoot into photo, do not limit at this.
Intelligent terminal in present embodiment includes but not limited to smart mobile phone, smart camera, also wraps Include other intelligent terminal with camera function of taking pictures, do not limit at this.
Being different from prior art, the area determination module of the intelligent terminal in present embodiment first determines The pending projection in image or recessed region, image processing module again by image should Protruding or recessed region carries out straight process, makes this projection or recessed area planarization.By upper State mode, intelligent terminal can in image unsatisfied to user raised or sunken district Territory is beautified, and makes image or photo better attractive in appearance, not only enriches intelligent terminal and takes pictures merit Can, also improve Consumer's Experience.
The foregoing is only embodiments of the present invention, not thereby limit the patent model of the present invention Enclosing, every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process become Change, or be directly or indirectly used in other relevant technical fields, be the most in like manner included in the present invention's In scope of patent protection.

Claims (10)

1. an image processing method, it is characterised in that described method includes:
Intelligent terminal determines the projection in image or recessed area;
Described region in described image is carried out straight process.
Image processing method the most according to claim 1, it is characterised in that described by described Described region in image carries out the step of straight process and specifically includes:
Described region in described image is carried out curved surface meshing, makes described region fall into setting In grid;
Described region in described grid is stretched.
Image processing method the most according to claim 2, it is characterised in that described by described The step that described region in grid stretches specifically includes:
By at least one direction vertically and horizontally and in diagonal angle, the described region in described grid Stretch, so that described region shows smooth.
Image processing method the most according to claim 3, it is characterised in that described by described At least one direction vertically and horizontally and in diagonal angle, described region in grid stretches, with Smooth step specifically includes to make described region show:
When by the described region in described grid to diagonal stretch, the distance of stretching accounts for described region Corresponding sides boundary line to central point corresponding point distance ratio D=(m-G)/G*100%, wherein, M is that flat site summit is to the distance of central point after stretching, and D is position pair to be tensioned, described region Answer boundary line to arrive the distance of described central point corresponding point, and described boundary line is corresponding with described central point The line of point is parallel to the line of central point with described flat site summit;
When by described region left and right directions forwards, backwards stretching in described grid, stretched vertically away from Ratio from the vertical dimension accounted between the boundary of correspondence both sides, position to be tensioned, described region D1=[(V1+V2)/2-Y]/Y*100%, wherein, v1, v2 are respectively described region vertical direction Maximum normal distance;Y be between the boundary of correspondence both sides, position to be tensioned, described region vertical away from From;The distance of horizontal stretch account for level between the boundary of correspondence both sides, position to be tensioned, described region away from From ratio D2=(H1+H2)/2-X]/X*100%, wherein, H1, H2 are respectively described district The maximum horizontal range of territory horizontal direction;X be correspondence both sides, position to be tensioned, described region boundary it Between horizontal range.
Image processing method the most according to claim 1, it is characterised in that described determine figure Projection or the step of recessed area in Xiang include:
Using the region of user setup as the projection in described image or recessed area;Or
Described image will meet the region imposed a condition as described projection or recessed area.
6. according to the image processing method described in any one of Claims 1 to 4, it is characterised in that institute Before stating the step of projection or the recessed area determining in image, described method also includes:
The content obtained by photographic head generates described image.
7. according to the image processing method described in any one of Claims 1 to 4, it is characterised in that institute Also include after stating the step that the described region in described image is carried out straight process:
Described image synthesising picture after processing.
Image processing method the most according to claim 1, it is characterised in that described region is The abdominal part of human body.
9. an intelligent terminal, it is characterised in that described intelligent terminal include area determination module with And image processing module,
Described area determination module is for determining the projection in image or recessed area;
Described image processing module is for carrying out straight process by the described region in described image.
Intelligent terminal the most according to claim 6, it is characterised in that described image procossing mould Block specifically for
Described region in described image is carried out curved surface meshing, makes described region fall into setting In grid;
Described region in described grid is stretched.
CN201610321345.6A 2016-05-16 2016-05-16 Image processing method and intelligent terminal Pending CN105976311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610321345.6A CN105976311A (en) 2016-05-16 2016-05-16 Image processing method and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610321345.6A CN105976311A (en) 2016-05-16 2016-05-16 Image processing method and intelligent terminal

Publications (1)

Publication Number Publication Date
CN105976311A true CN105976311A (en) 2016-09-28

Family

ID=56955777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610321345.6A Pending CN105976311A (en) 2016-05-16 2016-05-16 Image processing method and intelligent terminal

Country Status (1)

Country Link
CN (1) CN105976311A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109655010A (en) * 2018-10-31 2019-04-19 上海畅联智融通讯科技有限公司 A kind of camera Dynamic Networks are formatted the method for taking the photograph object measurement
CN112330571A (en) * 2020-11-27 2021-02-05 维沃移动通信有限公司 Image processing method, device and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618494B1 (en) * 1998-11-27 2003-09-09 Wuestec Medical, Inc. Optical distortion correction in digital imaging
CN103885706A (en) * 2014-02-10 2014-06-25 广东欧珀移动通信有限公司 Method and device for beautifying human face images
CN104463782A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 Image processing method, device and electronic apparatus
CN105141827A (en) * 2015-06-30 2015-12-09 广东欧珀移动通信有限公司 Distortion correction method and terminal
CN105469357A (en) * 2015-11-27 2016-04-06 努比亚技术有限公司 Image processing method and device, and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618494B1 (en) * 1998-11-27 2003-09-09 Wuestec Medical, Inc. Optical distortion correction in digital imaging
CN104463782A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 Image processing method, device and electronic apparatus
CN103885706A (en) * 2014-02-10 2014-06-25 广东欧珀移动通信有限公司 Method and device for beautifying human face images
CN105141827A (en) * 2015-06-30 2015-12-09 广东欧珀移动通信有限公司 Distortion correction method and terminal
CN105469357A (en) * 2015-11-27 2016-04-06 努比亚技术有限公司 Image processing method and device, and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何涛主编: "《Creo Parametric曲面设计精讲与典型案例》", 31 July 2013, 北京:机械工业出版社 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109655010A (en) * 2018-10-31 2019-04-19 上海畅联智融通讯科技有限公司 A kind of camera Dynamic Networks are formatted the method for taking the photograph object measurement
CN109655010B (en) * 2018-10-31 2020-07-07 上海畅联智融通讯科技有限公司 Camera dynamic gridding shooting object measurement method
CN112330571A (en) * 2020-11-27 2021-02-05 维沃移动通信有限公司 Image processing method, device and electronic device
CN112330571B (en) * 2020-11-27 2024-07-16 维沃移动通信有限公司 Image processing method, device and electronic device

Similar Documents

Publication Publication Date Title
DE112017002119B4 (en) Real-time eye contact correction using neural network-based machine learning
CN103455984B (en) A kind of Kinect depth image acquisition method and device
CN105278899B (en) A kind of display control method and device
CN104850228B (en) The method of the watching area of locking eyeball based on mobile terminal
CN104143212A (en) Reality augmenting method and system based on wearable device
CN104811684B (en) A kind of three-dimensional U.S. face method and device of image
CN105763829A (en) Image processing method and electronic device
CN104063844A (en) Reduced graph generation method and system
CN101072289A (en) Automatic generating method and device for image special effect
CN105005441B (en) A kind of display methods and electronic equipment of instant video
CN105653032A (en) Display adjustment method and apparatus
CN110136144B (en) An image segmentation method, device and terminal device
US9491263B2 (en) Systems and methods for automatically modifying a picture or a video containing a face
CN102262536A (en) window interface processing method and device
CN104424624A (en) Image synthesis optimization method and device
CN104661012A (en) Individual holographic three-dimensional display method and equipment
CN105447823A (en) Image processing method and electronic device
CN102945144A (en) Window layout method and device
CN105929951A (en) Screen display method and device
CN104599297A (en) Image processing method for automatically blushing human face
CN110418146A (en) Method of changing face, storage medium, electronic equipment and system applied to live scene
CN105976311A (en) Image processing method and intelligent terminal
WO2016155125A1 (en) Image processing method and apparatus
CN103206946B (en) A kind of system revising drift angle, intelligent terminal position
CN112348736B (en) Method, storage medium, device and system for removing black eye

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160928

WD01 Invention patent application deemed withdrawn after publication