CN105959564B - A kind of photographic method and mobile terminal - Google Patents

A kind of photographic method and mobile terminal Download PDF

Info

Publication number
CN105959564B
CN105959564B CN201610423131.XA CN201610423131A CN105959564B CN 105959564 B CN105959564 B CN 105959564B CN 201610423131 A CN201610423131 A CN 201610423131A CN 105959564 B CN105959564 B CN 105959564B
Authority
CN
China
Prior art keywords
image
target
mirror
text
determined
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.)
Active
Application number
CN201610423131.XA
Other languages
Chinese (zh)
Other versions
CN105959564A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610423131.XA priority Critical patent/CN105959564B/en
Publication of CN105959564A publication Critical patent/CN105959564A/en
Application granted granted Critical
Publication of CN105959564B publication Critical patent/CN105959564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Abstract

The present invention provides a kind of photographic methods, applied to the mobile terminal including front camera.Wherein, which includes:Obtain the first image of front camera acquisition;Mirror image processing is carried out to all images region of the first image, obtains the second image;Image-region where determining the target mirror image object and target mirror image object in the second image;Mirror image processing is carried out to image-region where target mirror image object, the second image after obtaining partial mirror;Based on the second image after partial mirror, target image is generated.The present invention also provides a kind of mobile terminals.Photographic method provided by the invention can satisfy user to a variety of different demands of self-timer image, when solving the problems, such as self-timer image because of mirror image processing caused by text it is reversed.

Description

A kind of photographic method and mobile terminal
Technical field
The present invention relates to technical field of image processing more particularly to a kind of photographic methods and mobile terminal.
Background technique
In the prior art, mobile terminal is for self-timer image, and some is by the way of mirror image, and some is not using mirror image Mode, but no matter which kind of uses have its defect.
When not carrying out self-timer using mirror-image fashion, due to not carrying out mirror image processing, image when preview and obtain after taking pictures Image left and right side on the contrary, the image that therefore preview is seen is different from the image that actually obtains of taking pictures, cause bad to use body It tests;When carrying out self-timer using mirror method, take pictures extract picture during, the image clapped can be carried out at mirror image Reason, makes that user takes pictures the image of acquisition and image that preview is seen is consistent, however the mode of such complete mirror image, works as self-timer Image is there are when text, since mirror image processing can not finally reach the ideal of user so that text can not identify after being mirrored It is required that.
It is therefore desirable to the processing methods of the self-timer image to the prior art to improve, to meet a variety of differences of user Demand.
Summary of the invention
The embodiment of the present invention provides a kind of photographic method and mobile terminal, to solve self-timer processing method in the prior art Not the problem of not being able to satisfy a variety of use demands of user.
In a first aspect, photographic method is provided, and applied to the mobile terminal including front camera, the processing method packet It includes:
Obtain the first image of the front camera acquisition;
Mirror image processing is carried out to all images region of the first image, obtains the second image;
Image-region where determining the target mirror image object and the target mirror image object in second image;
Mirror image processing is carried out to image-region where the target mirror image object, second figure after obtaining partial mirror Picture;
Based on second image after partial mirror, target image is generated.
Second aspect, provides a kind of mobile terminal, including front camera, and the mobile terminal further includes:
First image zooming-out module, for obtaining the first image of the front camera acquisition;
First processing module, all images area of the first image for being obtained to the first image extraction module Domain carries out mirror image processing, obtains the second image;
Second image zooming-out module, for determining the target mirror in second image that the first processing module obtains The image-region as where object and the target mirror image object;
Second processing module, for scheming to where target mirror image object determined by the second image zooming-out module As region carries out mirror image processing, second image after obtaining partial mirror;
Third processing module, second image after the partial mirror for being obtained based on the Second processing module, Generate target image.
The embodiment of the present invention solves a mirror image by carrying out secondary partial mirror to the image after a mirror image processing There is a problem of that topography's (such as text reversely shown) is uncoordinated in treated image, both ensure that user took pictures acquisition Image be consistent with the image that preview is seen, and meet user during self-timer to shooting image a variety of demands.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 shows the flow charts for the photographic method that first embodiment of the invention provides;
Fig. 2 indicates the flow chart for the photographic method that second embodiment of the invention provides;
Fig. 3 indicates the flow chart for the photographic method that third embodiment of the invention provides;
Fig. 4 indicates the flow chart for the photographic method that fourth embodiment of the invention provides;
Fig. 5 indicates the flow chart for the photographic method that fifth embodiment of the invention provides;
Fig. 6 indicates the block diagram for the mobile terminal that sixth embodiment of the invention provides;
Fig. 7 indicates another block diagram for the mobile terminal that sixth embodiment of the invention provides;
Fig. 8 shows the part-structure block diagrams for the mobile terminal that sixth embodiment of the invention provides;
Fig. 9 indicates the block diagram for the mobile terminal that seventh embodiment of the invention provides;
Figure 10 indicates the block diagram for the mobile terminal that eighth embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
First embodiment
The embodiment of the invention provides a kind of photographic methods, applied to the mobile terminal including front camera.Referring to figure 1, which includes:
Step 101, the first image for obtaining front camera acquisition.
Wherein, the first image is the image for not carrying out mirror image processing.First image can be the image obtained when taking pictures, Be also possible to take pictures preview when the image that obtains, concrete condition can design according to actual needs.
Step 102 carries out mirror image processing to all images region of the first image, obtains the second image.
Wherein, the mirror image processing of image can be understood as:Straight line is vertically drawn in the geometric center of image, is made For symmetry axis, then determine pixel at left and right sides of symmetry axis respectively about the symmetry axis other side symmetric position, most Pixel is moved on into corresponding symmetric position afterwards, to complete the mirror image processing of image.
Step 103 determines image-region where target mirror image object in the second image and target mirror image object.
Wherein, " target mirror image object " described here can be what mobile terminal automatically determined, be also possible to according to The region of family selection and determination.Image-region where target mirror image object can be can frame the target mirror image object completely Rectangular area, be also possible to the specific profile according to target mirror image object, identified irregular area, concrete condition can root According to Demand Design, it is not limited by the embodiments of the present invention.
Step 104 carries out mirror image processing to image-region where target mirror image object, the second figure after obtaining partial mirror Picture.
It is, carrying out secondary image processing to image-region where entire target mirror image object.For example, if target mirror image Object is the text reversely shown, then the text of positive display can be obtained after carrying out a mirror image processing again, thus whole picture Image seems more to coordinate.
Step 105, based on the second image after partial mirror, generate target image.
It is, producing target image after completing mirror image processing twice.Wherein, target image, which can be, takes pictures When image of taking pictures, be also possible to take pictures preview when preview image, concrete condition can design according to actual needs.
Specifically, when image-region where to target mirror image object carries out mirror image processing, target mirror image pair can be first determined Claim axis, be then based on the target mirror axis, mirror image processing is carried out to image-region where target mirror image object, obtains part The second image after mirror image.
In conclusion the embodiment of the present invention is solved by carrying out secondary partial mirror to the image after a mirror image processing There is a problem of that topography's (such as text reversely shown) is uncoordinated in image after mirror image processing, both ensure that use The image of acquisition is taken pictures at family and image that preview is seen is consistent, and meets user during self-timer to shooting image A variety of demands.
Second embodiment
The embodiment of the invention provides a kind of photographic methods, applied to the mobile terminal including front camera.Referring to figure 2, which includes:
Step 201 opens front camera, image preview is carried out, subsequently into step 202.
Step 202 receives the photographing instruction taken pictures by front camera.
Step 203, the first image for obtaining front camera acquisition, subsequently into step 204.
Wherein, the first image is the image without mirror image processing.
Step 204 carries out mirror image processing to all images region of the first image, the second image is obtained, subsequently into step Rapid 205.
Wherein, the mirror image processing of image can be understood as:Prolong vertical direction in the geometric center of image and draw straight line, makees For symmetry axis, then determine pixel at left and right sides of symmetry axis respectively about the symmetry axis other side symmetric position, most Pixel is moved on into corresponding symmetric position afterwards, to complete the mirror image processing of image.Due to the mirror image processing mistake about image Journey is the prior art, thus the embodiment of the present invention to this just without excessively describing.
Step 205 carries out text detection to the first image, first object text is obtained, subsequently into step 206.
In the self-timer image for generally carrying out a mirror image processing, the text that often will normally show originally is changed into anti- It to the text of display, appears not to be self-timer image and coordinates very much, in order to improve this defect, movement is whole in the embodiment of the present invention End can be detected in the first image automatically with the presence or absence of text, and if it exists, then determine that it is first object text.
Step 206, the area size information and coordinate information for obtaining first object text, subsequently into step 207.
After determining first object text, area size and region where determining first object text in the first image Coordinate.
Step 207 is based on area size information and coordinate information, determines in the second image, and first object text institute is right Image-region where the second target text answered, subsequently into step 208.
According to the coordinate information of area size information and region in the first image where first object text, determine the In two images, the place image-region of the second target text corresponding with first object text.
Wherein, image-region where the second target text can be the rectangle region that can frame second target text completely Domain, is also possible to the specific profile according to the second target text, identified irregular area, and concrete condition can be set according to demand Meter, it is not limited by the embodiments of the present invention.
Wherein, the second target text described here is the target mirror image object mentioned in first embodiment, and first Target text and the second target text are mirror.Under normal circumstances, first object text be positive display text, second Target text is the text reversely shown.
Step 208 is based on the second target text place image-region, the first mirror axis is determined, subsequently into step 209。
When image-region where to the second target text carries out secondary image processing, it is first determined the second target text institute In the symmetry axis of image-region, i.e. the first mirror axis.Wherein, the method for determination of the first mirror axis can be:It counts first The geometric center of image-region where calculating the second target text, is then based on geometric center, determines the vertical line Jing Guo geometric center, And the vertical line Jing Guo geometric center is determined as the first mirror axis.
Step 209 carries out mirror image processing to image-region where the second target text with the first mirror axis, obtains office The second image after portion's mirror image, subsequently into step 210.
After the symmetry axis of image-region where determining the second target text, the second mesh is completed further according to determining symmetry axis The partial mirror processing of image-region where marking text.
Step 210, based on the second image after partial mirror, generation is taken pictures image.
In conclusion the embodiment of the present invention passes through the shooting figure that during taking pictures, automatic detection front camera is obtained It whether there is text in picture (i.e. the first image), if it exists text, it is determined that the shooting figure after carrying out a mirror image processing In picture (i.e. the second image), the image of mirror image text (and second target text) corresponding with text (i.e. the first object text) Region, and secondary partial mirror is carried out to the image-region, it is reversed to solve to exist in the shooting image after a mirror image processing The problem of showing text not only ensure that user took pictures the image of acquisition and image that preview is seen is consistent, but also solve instead The problem uncoordinated to image caused by display text, to meet user during self-timer to a variety of of shooting image Demand.
3rd embodiment
The embodiment of the invention provides a kind of photographic methods, applied to the mobile terminal including front camera.Referring to figure 3, which includes:
Step 301 opens front camera, image preview is carried out, subsequently into step 302.
Wherein, specifically the instruction for previewing of image preview can be carried out by the front camera by judging whether to receive, When receiving instruction for previewing, then start to carry out image preview.
Step 302, the first image for obtaining front camera acquisition, subsequently into step 303.
After starting to carry out image preview, each frame image data of preview can be cached in real time, obtain the first figure Picture.Wherein, the first image is the image for not carrying out mirror image processing.
Step 303 carries out mirror image processing to all images region of the first image, the second image is obtained, subsequently into step Rapid 304.
Wherein, the mirror image processing of image can be understood as:Prolong vertical direction in the geometric center of image and draw straight line, makees For symmetry axis, then determine pixel at left and right sides of symmetry axis respectively about the symmetry axis other side symmetric position, most Pixel is moved on into corresponding symmetric position afterwards, to complete the mirror image processing of image.
Step 304 carries out text detection to the first image, first object text is obtained, subsequently into step 305.
In the self-timer image for generally carrying out a mirror image processing, the text that often will normally show originally is changed into anti- It to the text of display, appears not to be self-timer image and coordinates very much, in order to improve this defect, movement is whole in the embodiment of the present invention End can be detected in the first image automatically with the presence or absence of text, and if it exists, then determine that it is first object text.
Step 305, the area size information and coordinate information for obtaining first object text, subsequently into step 306.
After determining first object text, area size and region where determining first object text in the first image Coordinate.
Step 306 is based on area size information and coordinate information, determines in the second image, and first object text institute is right Image-region where the second target text answered, subsequently into step 307.
According to the coordinate information of area size information and region in the first image where first object text, determine the In two images, the place image-region of the second target text corresponding with first object text.
Wherein, image-region where the second target text can be the rectangle region that can frame second target text completely Domain, is also possible to the specific profile according to the second target text, identified irregular area, and concrete condition can be set according to demand Meter, it is not limited by the embodiments of the present invention.
Wherein, the second target text described here is the target mirror image object mentioned in first embodiment, and first Target text and the second target text are mirror.Under normal circumstances, first object text be positive display text, second Target text is the text reversely shown.
Step 307 is based on the second target text place image-region, the first mirror axis is determined, subsequently into step 308。
When image-region where to the second target text carries out secondary image processing, it is first determined the second target text institute In the symmetry axis of image-region, i.e. the first mirror axis.Wherein, the method for determination of the first mirror axis can be:It counts first The geometric center of image-region where calculating the second target text, is then based on geometric center, determines the vertical line Jing Guo geometric center, And the vertical line Jing Guo geometric center is determined as the first mirror axis.
Step 308 carries out mirror image processing to image-region where the second target text with the first mirror axis, obtains office The second image after portion's mirror image, subsequently into step 309.
After the symmetry axis of image-region where determining the second target text, the second mesh is completed further according to determining symmetry axis The partial mirror processing of image-region where marking text.
Step 309, based on the second image after partial mirror, generate a preview image.
The image after mirror image processing twice will be namely completed, is shown in current preview display interface, when detecting Captured image, as shooting previous moment image shown by preview display interface after user's triggering photographing instruction.
In conclusion the embodiment of the present invention passes through the preview graph that in image preview, automatic detection front camera is obtained It whether there is text in picture (and first image), if it exists text, it is determined that the preview graph after carrying out a mirror image processing In picture (i.e. the second image), the image of mirror image text (and second target text) corresponding with text (i.e. the first object text) Region, and secondary partial mirror is carried out to the image-region, and secondary image will be completed treated image and show boundary in preview Face is shown, for user's view result, and the image shot is the image for shooting the preview of previous moment.So both It ensure that user takes pictures the image of acquisition and image that preview is seen is consistent, and solve caused by reversed display text The uncoordinated problem of image, to meet user during self-timer to a variety of demands of shooting image.
Fourth embodiment
The embodiment of the invention provides a kind of photographic methods, applied to the mobile terminal including front camera.Referring to figure 4, which includes:
Step 401 opens front camera, image preview is carried out, subsequently into step 402.
Wherein, specifically the instruction for previewing of image preview can be carried out by the front camera by judging whether to receive, When receiving instruction for previewing, then start to carry out image preview.
Step 402, the first image for obtaining front camera acquisition, subsequently into step 403.
After starting to carry out image preview, each frame image data of preview can be cached in real time, obtain the first figure Picture.Wherein, the first image is the image for not carrying out mirror image processing.
Step 403 carries out mirror image processing to all images region of the first image, the second image is obtained, subsequently into step Rapid 404.
Wherein, the mirror image processing of image can be understood as:Prolong vertical direction in the geometric center of image and draw straight line, makees For symmetry axis, then determine pixel at left and right sides of symmetry axis respectively about the symmetry axis other side symmetric position, most Pixel is moved on into corresponding symmetric position afterwards, to complete the mirror image processing of image.
Step 404, the object for obtaining mobile terminal user's selection, subsequently into step 405.
After obtaining the second image, the object of mobile terminal user's selection is determined.Wherein, pair of mobile terminal user's selection As be user when taking pictures preview preview image on selected object.
The object that mobile terminal user selects is determined as target mirror image object by step 405, subsequently into step 406.
On the second image, target mirror image pair corresponding with the object that mobile terminal user selects on preview image is determined As.
Step 406 extracts image-region where target mirror image object, subsequently into step 407.
After determining target mirror image, in the second image, the determining place image-region with the target mirror image object.
Wherein, image-region where target mirror image object can be the rectangle region that can frame the target mirror image object completely Domain, is also possible to the specific profile according to target mirror image object, identified irregular area, and concrete condition can be set according to demand Meter, it is not limited by the embodiments of the present invention.
Step 407 determines target mirror axis, subsequently into step 408.
When image-region where target mirror image object carries out secondary image processing, it is first determined where target mirror image object The symmetry axis of image-region, i.e. target mirror axis.Wherein, the method for determination of target mirror axis include but is not limited to Lower three kinds of modes:
Mode one:The sliding trace information of user is obtained, sliding trace information is based on, determines the second mirror axis, and Second mirror axis is determined as the target mirror axis.
It is, determining image where corresponding target mirror image object in the sliding trace information of preview image according to user Family oneself design mirror effect can be used in this way, promote user experience for the symmetry axis in region.
Wherein, which is user in image preview, the sliding trace information on preview image, user It can be slided according to actual needs.
Mode two:The clicking operation for receiving mobile terminal user, obtains the corresponding click on area coordinate of the clicking operation, counts The geometric center of target mirror image object is calculated, the click on area coordinate and geometric center is based on, determines target segment, is based on the target Line segment determines the perpendicular bisector of target segment, and the perpendicular bisector of target segment is determined as target mirror axis.
It is, according to user to the clicking operation of preview image, a coordinate points are determined in image preview, by the seat The perpendicular bisector of punctuate and the line (i.e. target segment) of geometric center, as target mirror axis.Family can be used so certainly Oneself designs mirror effect, promotes user experience.
Mode three:The geometric center for calculating target mirror image object is determined based on the geometric center of the target mirror image object By the straight line of the geometric center, the straight line by the geometric center is determined as the target mirror axis.
It is, user makees according to self-demand, selection by the straight line at image geometry center in image preview For symmetry axis.Family oneself design mirror effect can be used in this way, promote user experience.
Wherein, all or any two kinds in above-mentioned three kinds of modes can be deployed in simultaneously in same mobile terminal, user It is selected, can also be individually deployed on a mobile terminal, concrete condition can design according to actual needs according to demand.
Step 408 is based on target mirror axis, carries out mirror image processing to image-region where target mirror image object, obtains The second image after to partial mirror, subsequently into step 409.
It is, carrying out secondary image processing to image-region where entire target mirror image object.For example, if target mirror image Object is the text reversely shown, then the text of positive display can be obtained after carrying out a mirror image processing again, thus whole picture Image seems more to coordinate.
Step 409, based on the second image after partial mirror, generate a preview image.
The image after mirror image processing twice will be namely completed, is shown in current preview display interface, when detecting Captured image, as shooting previous moment image shown by preview display interface after user's triggering photographing instruction.
In conclusion the embodiment of the present invention is by the way that in image preview, user oneself selection needs to carry out at partial mirror Then the region of reason carries out mirror image processing twice to the image of preview, and by the image after completion twice mirror image processing in preview Display interface is shown, for user's view result, and the image shot is the image for shooting the preview of previous moment. It can have better flexibility and interest in this way, both ensure that user takes pictures the image of acquisition and image that preview is seen is protected It holds unanimously, and can solve the uncoordinated problem of topography's (such as text reversely shown), to meet user certainly To a variety of demands of shooting image during bat.
5th embodiment
Step 501 opens front camera, image preview is carried out, subsequently into step 502.
Step 502 receives the photographing instruction taken pictures by front camera.
Step 503, the first image for obtaining front camera acquisition, subsequently into step 504.
After starting to carry out image preview, each frame image data of preview can be cached in real time, obtain the first figure Picture.Wherein, the first image is the image for not carrying out mirror image processing.
Step 504 carries out mirror image processing to all images region of the first image, the second image is obtained, subsequently into step Rapid 505.
Wherein, the mirror image processing of image can be understood as:Prolong vertical direction in the geometric center of image and draw straight line, makees For symmetry axis, then determine pixel at left and right sides of symmetry axis respectively about the symmetry axis other side symmetric position, most Pixel is moved on into corresponding symmetric position afterwards, to complete the mirror image processing of image.
Step 505, the object for obtaining mobile terminal user's selection, subsequently into step 506.
After obtaining the second image, the object of mobile terminal user's selection is determined.Wherein, pair of mobile terminal user's selection As be user when taking pictures preview preview image on selected object.
The object that mobile terminal user selects is determined as target mirror image object by step 506, subsequently into step 507.
On the second image, target mirror image pair corresponding with the object that mobile terminal user selects on preview image is determined As.
Step 507 extracts image-region where target mirror image object, subsequently into step 508.
After determining target mirror image, in the second image, the determining place image-region with the target mirror image object.
Wherein, image-region where target mirror image object can be the rectangle region that can frame the target mirror image object completely Domain, is also possible to the specific profile according to target mirror image object, identified irregular area, and concrete condition can be set according to demand Meter, it is not limited by the embodiments of the present invention.
Step 508 determines target mirror axis, subsequently into step 509.
When image-region where target mirror image object carries out secondary image processing, it is first determined where target mirror image object The symmetry axis of image-region, i.e. target mirror axis.Wherein, the method for determination of target mirror axis include but is not limited to Lower three kinds of modes:
Mode two:The clicking operation for receiving mobile terminal user, obtains the corresponding click on area coordinate of the clicking operation, counts The geometric center of target mirror image object is calculated, the click on area coordinate and geometric center is based on, determines target segment, is based on the target Line segment determines the perpendicular bisector of target segment, and the perpendicular bisector of target segment is determined as target mirror axis.
It is, according to user to the clicking operation of preview image, a coordinate points are determined in image preview, by the seat The perpendicular bisector of punctuate and the line (i.e. target segment) of geometric center, as target mirror axis.Family can be used so certainly Oneself designs mirror effect, promotes user experience.
Mode three:The geometric center for calculating target mirror image object is determined based on the geometric center of the target mirror image object By the straight line of the geometric center, the straight line by the geometric center is determined as the target mirror axis.
It is, user makees according to self-demand, selection by the straight line at image geometry center in image preview For symmetry axis.Family oneself design mirror effect can be used in this way, promote user experience.
Wherein, all or any two kinds in above-mentioned three kinds of modes can be deployed in simultaneously in same mobile terminal, user It is selected, can also be individually deployed on a mobile terminal, concrete condition can design according to actual needs according to demand.
Step 509 is based on target mirror axis, carries out mirror image processing to image-region where target mirror image object, obtains The second image after to partial mirror, subsequently into step 510.
It is, carrying out secondary image processing to image-region where entire target mirror image object.For example, if target mirror image Object is the text reversely shown, then the text of positive display can be obtained after carrying out a mirror image processing again, thus whole picture Image seems more to coordinate.
Step 510, based on the second image after partial mirror, generation is taken pictures image.
The image after mirror image processing twice will be namely completed, is shown in current preview display interface, when detecting Captured image, as shooting previous moment image shown by preview display interface after user's triggering photographing instruction.
In conclusion the embodiment of the present invention is by the way that in image preview, user oneself selection needs to carry out at partial mirror The region of reason, then when taking pictures, according to the region that user selects, to taking pictures, image carries out mirror image processing twice, in this way can be with With better flexibility and interest, it both ensure that user took pictures the image of acquisition and image that preview is seen is consistent, The uncoordinated problem of topography's (such as text reversely shown) is can solve again, to meet user during self-timer To a variety of demands of shooting image.
Sixth embodiment
The embodiment of the invention provides a kind of mobile terminals 600, including front camera.Referring to Fig. 6, the mobile terminal 600 further include:
First image zooming-out module 601, for obtaining the first image of front camera acquisition.
Wherein, the first image that the first image zooming-out module 601 obtains is the image for not carrying out mirror image processing.First figure As can be the image that the first image zooming-out module 601 is obtained when taking pictures, being also possible to the first image zooming-out module 601 and clapping The image obtained when according to preview, concrete condition can design according to actual needs.
First processing module 602, all images region of the first image for being obtained to the first image zooming-out module 601 Mirror image processing is carried out, the second image is obtained.
Wherein, the mirror image processing of image can be understood as:Prolong vertical direction in the geometric center of image and draw straight line, makees For symmetry axis, then determine pixel at left and right sides of symmetry axis respectively about the symmetry axis other side symmetric position, most Pixel is moved on into corresponding symmetric position afterwards, to complete the mirror image processing of image.Due to the mirror image processing mistake about image Journey is the prior art, thus the embodiment of the present invention to this just without excessively describing.
Second image zooming-out module 603, for determining the target mirror image in the second image that first processing module 602 obtains Image-region where object and target mirror image object.
Wherein, " target mirror image object " described here can be what the second image zooming-out module 603 automatically determined, can also To be the determination according to the region that user selects of the second image zooming-out module 603.Image-region where target mirror image object can To be the rectangular area that can frame the target mirror image object completely, it is also possible to the specific profile according to target mirror image object, Identified irregular area, concrete condition can design according to demand, and it is not limited by the embodiments of the present invention.
Second processing module 604, for image where target mirror image object determined by the second image zooming-out module 603 Region carries out mirror image processing, the second image after obtaining partial mirror.
It is, Second processing module 604 carries out secondary image processing to image-region where entire target mirror image object. For example, if target mirror image object is the text reversely shown, then positive display can be obtained after carrying out a mirror image processing again Text, so that entire image seems more to coordinate.
Third processing module 605, the second image after partial mirror for being obtained based on Second processing module 604 are raw At target image.
It is, generating target image by third processing module 605 after completing mirror image processing twice.Wherein, target figure As can be image of taking pictures when taking pictures, be also possible to take pictures preview when preview image, concrete condition can be according to actual needs Design.
Specifically, referring to Fig. 7, the second image zooming-out module 603 is specifically included:
Detection unit 6031, the first image for obtaining to the first image zooming-out module carry out text detection, obtain the One target text.
In the self-timer image for generally carrying out a mirror image processing, the text that often will normally show originally is changed into anti- It to the text of display, appears not to be self-timer image and coordinates very much, in order to improve this defect, shifting provided in an embodiment of the present invention Dynamic terminal 600 can be by whether there is text in detection unit 6031 automatically the first image of detection, and if it exists, then determine that it is the One target text.
Acquiring unit 6032, for obtaining the area size information and seat of the first object text that detection unit 6031 obtains Mark information.
After detection unit 6031 detects first object text, acquiring unit 6032 is obtained the where first object text The coordinate of area size and region in one image.
Analytical unit 6033, area size information and coordinate information for being obtained based on acquiring unit 6032 are determined In second image, image-region where the second target text corresponding to first object text.
Analytical unit 6033 is according to the coordinate of area size information and region in the first image where first object text Information determines the place image-region of the second target text corresponding with first object text in the second image.
Wherein, image-region where the second target text can be the rectangle region that can frame second target text completely Domain, is also possible to the specific profile according to the second target text, identified irregular area, and concrete condition can be set according to demand Meter, it is not limited by the embodiments of the present invention.
Wherein, the second target text described here is the target mirror image object mentioned in first embodiment, and first Target text and the second target text are mirror.Under normal circumstances, first object text be positive display text, second Target text is the text reversely shown.
Specifically, referring to Fig. 8, Second processing module 604 is specifically included:
First symmetry axis determination unit 6041, for figure where second target text based on determined by analytical unit 6033 As region, the first mirror axis is determined.
When image-region where to the second target text carries out secondary image processing, determined first by the first symmetry axis The symmetry axis of image-region, i.e. the first mirror axis where unit 6041 determines the second target text.
First processing units 6042, for the first mirror axis pair determined by the first symmetry axis determination unit 6041 Image-region carries out mirror image processing, the second image after obtaining partial mirror where second target text.
After the first symmetry axis determination unit 6041 determines the symmetry axis of image-region where the second target text, then pass through The partial mirror of image-region is handled where first processing units 6042 complete the second target text according to determining symmetry axis.
Specifically, referring to Fig. 8, the first symmetry axis determination unit 6041 includes:
First computation subunit 60411, for image where calculating the second target text determined by analytical unit 6033 The geometric center in region.
Second computation subunit 60412, for calculating the geometric center obtained based on the first computation subunit 60411, really Surely the vertical line Jing Guo geometric center.
Third computation subunit 60413, for hanging down for geometric center will to be passed through determined by the second computation subunit 60413 Line is determined as the first mirror axis.
Specifically, referring to Fig. 7, the second image zooming-out module 603 is specifically included:
Instruction receiving unit 6034, for obtaining the object of mobile terminal user's selection.
After obtaining the second image, the object of mobile terminal user's selection is determined by instruction receiving unit 6034.Wherein, Selected object on the preview image that the object that mobile terminal user selects is user when taking pictures preview.
Setup unit 6035, the object for that will be selected by the mobile terminal user that instruction receiving unit 6034 obtains are true It is set to target mirror image object.
On the second image, the determination of setup unit 6035 is corresponding with the object that mobile terminal user selects on preview image Target mirror image object.
Area extracting unit 6036, for image-region where extracting the target mirror image object determined by setup unit.
Setup unit 6035 determine target mirror image after, in the second image, area extracting unit 6036 determine with The place image-region of the target mirror image object.
Specifically, referring to Fig. 8, Second processing module 604 includes:
Second symmetry axis determination unit 6043 is used for the target mirror image object institute according to determined by area extracting unit 6036 In image-region, the target mirror axis of target mirror image object is determined.
When image-region where target mirror image object carries out secondary image processing, determined first by the second symmetry axis single The symmetry axis of image-region, i.e. target mirror axis where member 6043 determines target mirror image object.
The second processing unit 6044 is used for the target mirror axis based on determined by the second symmetry axis determination unit, right Image-region carries out mirror image processing where target mirror image object, carries out mirror image processing to target mirror image object.
It is, the second processing unit 6044 carries out at secondary image image-region where entire target mirror image object Reason.For example, if target mirror image object is the text reversely shown, then forward direction can be obtained after carrying out a mirror image processing again The text of display, so that entire image seems more to coordinate.
Specifically, referring to Fig. 8, the second symmetry axis determination unit 6043 includes:
First operation receiving subelement 60431, for obtaining the sliding trace information of user.
Symmetry axis analyzes subelement 60432, for operating sliding trace information acquired in receiving subelement based on first, Determine the second mirror axis.
First setting subelement 60433, determines for symmetry axis to be analyzed the second mirror axis determined by subelement For target mirror axis.
It is, determining image where corresponding target mirror image object in the sliding trace information of preview image according to user Family oneself design mirror effect can be used in this way, promote user experience for the symmetry axis in region.
Wherein, which is user in image preview, the sliding trace information on preview image, user It can be slided according to actual needs.
Specifically, referring to Fig. 8, the second symmetry axis determination unit 6043 includes:
Second operation receiving subelement 60434, for receiving the clicking operation of mobile terminal user.
Coordinate obtains subelement 60435, corresponding for obtaining the second received clicking operation of operation receiving subelement institute Click on area coordinate.
4th computation subunit 60436, in the geometry of target mirror image object determined by the extraction unit of zoning The heart.
5th computation subunit 60437, for obtaining click on area coordinate and the 4th acquired in subelement based on coordinate Computation subunit geometric center calculated, determines target segment.
6th computation subunit 60438 is used for the target segment based on determined by the 5th computation subunit, determines score The perpendicular bisector of section.
Second setting subelement 60439, for determining the perpendicular bisector of target segment determined by the 6th computation subunit For target mirror axis.
It is, according to user to the clicking operation of preview image, a coordinate points are determined in image preview, by the seat The perpendicular bisector of punctuate and the line (i.e. target segment) of geometric center, as target mirror axis.Family can be used so certainly Oneself designs mirror effect, promotes user experience.
Specifically, referring to Fig. 8, the second symmetry axis determination unit 6043 includes:
7th computation subunit 604310, in the geometry of target mirror image object determined by the extraction unit of zoning The heart.
8th computation subunit 604311, for the geometry based on the 7th computation subunit target mirror image object calculated Center determines the straight line Jing Guo geometric center.
Third sets subelement 604312, for the straight line determined by the 8th computation subunit Jing Guo geometric center is true It is set to target mirror axis.
It is, user makees according to self-demand, selection by the straight line at image geometry center in image preview For symmetry axis.Family oneself design mirror effect can be used in this way, promote user experience.
In conclusion mobile terminal provided in an embodiment of the present invention, by carrying out two to the image after a mirror image processing Secondary partial mirror, there are topography's (such as text reversely shown) is uncoordinated in the image after solving a mirror image processing Problem not only ensure that user took pictures the image of acquisition and image that preview is seen is consistent, but also meet user in self-timer mistake To a variety of demands of shooting image in journey.
7th embodiment
The embodiment of the invention provides a kind of mobile terminals 800, including front camera.Specifically, referring to Fig. 9, Fig. 9 institute The mobile terminal 800 shown includes:At least one processor 801, memory 802, at least one network interface 804 and user interface 803.Various components in mobile terminal 800 are coupled by bus system 805.It is understood that bus system 805 is for real Connection communication between these existing components.Bus system 805 further includes power bus, controls always in addition to including data/address bus Line and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system 805 in Fig. 9.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein is intended to include but is not limited to these and arbitrarily its It is suitble to the memory of type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 8022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In embodiments of the present invention, by the program or instruction of calling memory 802 to store, specifically, can be application The program or instruction stored in program 8022, processor 801 are used to obtain the first image of front camera acquisition;To the first figure The all images region of picture carries out mirror image processing, obtains the second image;Determine target mirror image object and the target in the second image Image-region where mirror image object;Mirror image processing is carried out to image-region where target mirror image object, after obtaining partial mirror Second image;Based on the second image after partial mirror, target image is generated.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801. Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, processor 801 is also used to carry out text detection to the first image, obtains first object text;Obtain the The area size information and coordinate information of one target text;Based on area size information and coordinate information, determine in the second image In, image-region where the second target text corresponding to first object text;Wherein, target mirror image object is the second target text Word, first object text and the second target text are mirror.
Optionally, processor 801 is also used to determine the first mirror symmetry based on image-region where the second target text Axis, and mirror image processing is carried out to image-region where the second target text with the first mirror axis, after obtaining partial mirror Second image.
Optionally, processor 801 is also used to:The geometric center of image-region where calculating the second target text;Based on several What center determines the vertical line Jing Guo geometric center;Vertical line Jing Guo geometric center is determined as the first mirror axis.
Optionally, processor 801 is also used to:Obtain the object of mobile terminal user's selection;Mobile terminal user is selected Object be determined as target mirror image object;Image-region where extracting target mirror image object.
Optionally, processor 801 is also used to:Determine target mirror axis;Based on target mirror axis, to target mirror Image-region carries out mirror image processing, the second image after obtaining partial mirror as where object.
Optionally, processor 801 is also used to obtain the sliding trace information of user;Based on sliding trace information, is determined Two mirror axis;Second mirror axis is determined as target mirror axis.
Optionally, processor 801 is also used to:Receive the clicking operation of mobile terminal user;It is corresponding to obtain clicking operation Click on area coordinate;Calculate the geometric center of target mirror image object;Based on click on area coordinate and geometric center, score is determined Section;Based on target segment, the perpendicular bisector of target segment is determined;The perpendicular bisector of target segment is determined as target mirror axis.
Optionally, processor 801 is also used to:Calculate the geometric center of target mirror image object;Based on target mirror image object Geometric center determines the straight line Jing Guo geometric center;Straight line Jing Guo geometric center is determined as target mirror axis.
Mobile terminal 800 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
In conclusion mobile terminal 800 provided in an embodiment of the present invention, by being carried out to the image after a mirror image processing Secondary partial mirror, there are topography's (such as text reversely shown) is uncoordinated in the image after solving a mirror image processing The problem of, it not only ensure that user took pictures the image of acquisition and image that preview is seen is consistent, but also meet user in self-timer In the process to a variety of demands of shooting image.
8th embodiment
The embodiment of the invention provides a kind of mobile terminals 900, including front camera.Specifically, referring to Figure 10, Figure 10 In mobile terminal 900 can for mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, ) or vehicle-mounted computer etc. PDA.
Mobile terminal 900 in Figure 10 includes radio frequency (Radio Frequency, RF) circuit 901, memory 902, input Unit 903, display unit 904, component 905 of taking pictures, processor 906, voicefrequency circuit 907, WiFi (Wireless Fidelity) Module 908 and power supply 909.
Wherein, input unit 903 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 9031.Touch panel 9031, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 9031 such as finger, stylus), and according to pre- The formula first set drives corresponding attachment device.Optionally, touch panel 9031 may include touch detecting apparatus and touch control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, it will Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact Coordinate, then give the processor 906, and order that processor 906 is sent can be received and executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 9031.It is defeated in addition to touch panel 9031 Enter unit 903 can also include other input equipments 9032, other input equipments 9032 can include but is not limited to physical keyboard, One of function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 904 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 900.Display unit 904 may include display panel 9041, optionally, can use LCD or organic The forms such as light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 9041.
It should be noted that touch panel 9031 can cover display panel 9041, touch display screen is formed, when the touch display screen After detecting touch operation on it or nearby, processor 906 is sent to determine the type of touch event, is followed by subsequent processing device 906 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 906 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 9021, and calling storage Data in second memory 9022 execute the various functions and processing data of mobile terminal 900, thus to mobile terminal 900 carry out integral monitoring.Optionally, processor 906 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 9021 in software program and/or module and/ Or the data in the second memory 9022, processor 901 are used to obtain the first image of front camera acquisition;To the first figure The all images region of picture carries out mirror image processing, obtains the second image;Determine target mirror image object and the target in the second image Image-region where mirror image object;Mirror image processing is carried out to image-region where target mirror image object, after obtaining partial mirror Second image;Based on the second image after partial mirror, target image is generated.
Optionally, processor 906 is also used to:Text detection is carried out to the first image, obtains first object text;Obtain the The area size information and coordinate information of one target text;Based on area size information and coordinate information, determine in the second image In, image-region where the second target text corresponding to first object text;Wherein, target mirror image object is the second target text Word, first object text and the second target text are mirror.
Optionally, image-region where processor 906 is based on the second target text, determines the first mirror axis, and with First mirror axis carries out mirror image processing to image-region where the second target text, the second figure after obtaining partial mirror Picture.
Optionally, the geometric center of image-region where processor 906 is also used to calculate the second target text;Based on geometry Center determines the vertical line Jing Guo geometric center;Vertical line Jing Guo geometric center is determined as the first mirror axis.
Optionally, processor 906 is also used to:Obtain the object of mobile terminal user's selection;Mobile terminal user is selected Object be determined as target mirror image object;Image-region where extracting target mirror image object.
Optionally, processor 906 is also used to:Determine target mirror axis;Based on target mirror axis, to target mirror Image-region carries out mirror image processing, the second image after obtaining partial mirror as where object.
Optionally, processor 906 is also used to:Obtain the sliding trace information of user;Based on sliding trace information, is determined Two mirror axis;Second mirror axis is determined as target mirror axis.
Optionally, processor 906 is also used to:Receive the clicking operation of mobile terminal user;It is corresponding to obtain clicking operation Click on area coordinate;Calculate the geometric center of target mirror image object;Based on click on area coordinate and geometric center, score is determined Section;Based on target segment, the perpendicular bisector of target segment is determined;The perpendicular bisector of target segment is determined as target mirror axis.
Optionally, processor 906 is also used to:Calculate the geometric center of target mirror image object;Based on target mirror image object Geometric center determines the straight line Jing Guo geometric center;Straight line Jing Guo geometric center is determined as target mirror axis.
As it can be seen that mobile terminal 900 provided in an embodiment of the present invention, secondary by carrying out to the image after a mirror image processing Partial mirror is asked there are topography's (such as text reversely shown) is uncoordinated in the image after solving a mirror image processing Topic not only ensure that user took pictures the image of acquisition and image that preview is seen is consistent, but also meet user in self-timer process In to shooting image a variety of demands.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various to can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (18)

1. a kind of photographic method, applied to the mobile terminal including front camera, which is characterized in that the photographic method packet It includes:
Obtain the first image of the front camera acquisition;
Mirror image processing is carried out to all images region of the first image, obtains the second image;
Image-region where determining the target mirror image object and the target mirror image object in second image;Wherein, described Target mirror image object includes text in second image or the region that user selects on second image;
Mirror image processing is carried out to image-region where the target mirror image object, second image after obtaining partial mirror;
Based on second image after partial mirror, target image is generated.
2. photographic method according to claim 1, which is characterized in that the target mirror image in determination second image Where object and the target mirror image object the step of image-region, including:
Text detection is carried out to the first image, obtains first object text;
Obtain the area size information and coordinate information of the first object text;
It based on the area size information and coordinate information, determines in second image, the first object text institute is right Image-region where the second target text answered;
Wherein, the target mirror image object is second target text, the first object text and second target text Word is mirror.
3. photographic method according to claim 2, which is characterized in that described to image district where the target mirror image object The step of domain carries out mirror image processing, second image after obtaining partial mirror, including:
Based on image-region where second target text, the first mirror axis is determined;
Mirror image processing is carried out to image-region where second target text with first mirror axis, obtains local mirror Second image as after.
4. photographic method according to claim 3, which is characterized in that described based on image where second target text Region, the step of determining the first mirror axis, including:
The geometric center of image-region where calculating second target text;
Based on the geometric center, the vertical line Jing Guo the geometric center is determined;
The vertical line by the geometric center is determined as first mirror axis.
5. photographic method according to claim 1, which is characterized in that the target mirror image in determination second image Where object and the target mirror image object the step of image-region, including:
Obtain the object of mobile terminal user's selection;
The object that the mobile terminal user selects is determined as the target mirror image object;
Image-region where extracting the target mirror image object.
6. photographic method according to claim 5, which is characterized in that described to image district where the target mirror image object The step of domain carries out mirror image processing, second image after obtaining partial mirror, including:
Determine target mirror axis;
Based on the target mirror axis, mirror image processing is carried out to image-region where the target mirror image object, obtains office Second image after portion's mirror image.
7. photographic method according to claim 6, which is characterized in that the step of the determining target mirror axis, packet It includes:
Obtain the sliding trace information of user;
Based on the sliding trace information, the second mirror axis is determined;
Second mirror axis is determined as the target mirror axis.
8. photographic method according to claim 6, which is characterized in that the step of the determining target mirror axis, packet It includes:
Receive the clicking operation of mobile terminal user;
Obtain the corresponding click on area coordinate of the clicking operation;
Calculate the geometric center of the target mirror image object;
Based on the click on area coordinate and geometric center, target segment is determined;
Based on the target segment, the perpendicular bisector of the target segment is determined;
The perpendicular bisector of the target segment is determined as the target mirror axis.
9. photographic method according to claim 6, which is characterized in that the step of the determining target mirror axis, packet It includes:
Calculate the geometric center of the target mirror image object;
Based on the geometric center of the target mirror image object, the straight line Jing Guo the geometric center is determined;
The straight line by the geometric center is determined as the target mirror axis.
10. a kind of mobile terminal, including front camera, which is characterized in that the mobile terminal further includes:
First image zooming-out module, for obtaining the first image of the front camera acquisition;
First processing module, all images region of the first image for being obtained to the first image extraction module into Row mirror image processing obtains the second image;
Second image zooming-out module, for determining the target mirror image pair in second image that the first processing module obtains The image-region as where with the target mirror image object;Wherein, the target mirror image object includes the text in second image The region that word or user select on second image;
Second processing module, for image district where target mirror image object determined by the second image zooming-out module Domain carries out mirror image processing, second image after obtaining partial mirror;
Third processing module, second image after the partial mirror for being obtained based on the Second processing module are generated Target image.
11. mobile terminal according to claim 10, which is characterized in that the second image zooming-out module specifically includes:
Detection unit, the first image for obtaining to the first image extraction module carry out text detection, obtain the One target text;
Acquiring unit, for obtaining the area size information and coordinate letter of the first object text that the detection unit obtains Breath;
Analytical unit, the area size information and coordinate information for being obtained based on the acquiring unit are determined described In second image, image-region where the second target text corresponding to the first object text;
Wherein, the target mirror image object is second target text, the first object text and second target text Word is mirror.
12. mobile terminal according to claim 11, which is characterized in that the Second processing module specifically includes:
First symmetry axis determination unit, for image district where second target text based on determined by the analytical unit Domain determines the first mirror axis;
First processing units are used for first mirror axis determined by the first symmetry axis determination unit to described Image-region carries out mirror image processing, second image after obtaining partial mirror where second target text.
13. mobile terminal according to claim 12, which is characterized in that the first symmetry axis determination unit includes:
First computation subunit, for image-region where calculating second target text determined by the analytical unit Geometric center;
Second computation subunit determines and passes through for calculating the geometric center obtained based on first computation subunit The vertical line of the geometric center;
Third computation subunit, for by the vertical line by the geometric center determined by second computation subunit It is determined as first mirror axis.
14. mobile terminal according to claim 10, which is characterized in that the second image zooming-out module specifically includes:
Instruction receiving unit, for obtaining the object of mobile terminal user's selection;
Setup unit, the object for selecting the mobile terminal user obtained by described instruction receiving unit are determined as The target mirror image object;
Area extracting unit, for image-region where extracting the target mirror image object determined by the setup unit.
15. mobile terminal according to claim 14, which is characterized in that the Second processing module includes:
Second symmetry axis determination unit, for figure where the target mirror image object according to determined by the area extracting unit As region, the target mirror axis of target mirror image object is determined;
The second processing unit is used for the target mirror axis based on determined by the second symmetry axis determination unit, to described Image-region carries out mirror image processing where target mirror image object, carries out mirror image processing to target mirror image object.
16. mobile terminal according to claim 15, which is characterized in that the second symmetry axis determination unit includes:
First operation receiving subelement, for obtaining the sliding trace information of user;
Symmetry axis analyzes subelement, for determining based on sliding trace information acquired in the first operation receiving subelement Second mirror axis;
First setting subelement, is determined as the symmetry axis to be analyzed second mirror axis determined by subelement The target mirror axis.
17. mobile terminal according to claim 15, which is characterized in that the second symmetry axis determination unit includes:
Second operation receiving subelement, for receiving the clicking operation of mobile terminal user;
Coordinate obtains subelement, for obtaining the corresponding point of the received clicking operation of the second operation receiving subelement institute Hit area coordinate;
4th computation subunit, for calculating in the geometry of the target mirror image object determined by the area extracting unit The heart;
5th computation subunit, for obtaining the click on area coordinate acquired in subelement and described the based on the coordinate Four computation subunits geometric center calculated, determines target segment;
6th computation subunit is used for the target segment based on determined by the 5th computation subunit, determines the mesh The perpendicular bisector of graticule section;
Second setting subelement, for the perpendicular bisector of the target segment determined by the 6th computation subunit to be determined as The target mirror axis.
18. mobile terminal according to claim 15, which is characterized in that the second symmetry axis determination unit includes:
7th computation subunit, for calculating in the geometry of the target mirror image object determined by the area extracting unit The heart;
8th computation subunit, in the geometry based on the 7th computation subunit target mirror image object calculated The heart determines the straight line Jing Guo the geometric center;
Third sets subelement, for by the straight line by the geometric center determined by the 8th computation subunit It is determined as the target mirror axis.
CN201610423131.XA 2016-06-15 2016-06-15 A kind of photographic method and mobile terminal Active CN105959564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610423131.XA CN105959564B (en) 2016-06-15 2016-06-15 A kind of photographic method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610423131.XA CN105959564B (en) 2016-06-15 2016-06-15 A kind of photographic method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105959564A CN105959564A (en) 2016-09-21
CN105959564B true CN105959564B (en) 2018-11-30

Family

ID=56905700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610423131.XA Active CN105959564B (en) 2016-06-15 2016-06-15 A kind of photographic method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105959564B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375663A (en) * 2016-09-22 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Terminal photographing method and terminal photographing device
CN106506938A (en) * 2016-10-11 2017-03-15 乐视控股(北京)有限公司 Image processing method and device and electric terminal
CN108702446B (en) * 2017-03-10 2020-08-07 华为技术有限公司 Photographing method and terminal
CN107203964A (en) * 2017-05-24 2017-09-26 北京小米移动软件有限公司 Image processing method and device
CN107105311B (en) * 2017-05-25 2020-06-19 北京小米移动软件有限公司 Live broadcasting method and device
CN108683851B (en) * 2018-05-15 2019-11-19 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108632413B (en) * 2018-05-15 2019-12-03 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108848405B (en) * 2018-06-29 2020-10-09 广州酷狗计算机科技有限公司 Image processing method and device
CN112929561B (en) * 2021-01-19 2023-04-28 北京达佳互联信息技术有限公司 Multimedia data processing method and device, electronic equipment and storage medium
CN115358919A (en) * 2022-08-17 2022-11-18 北京字跳网络技术有限公司 Image processing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152489A (en) * 2013-03-25 2013-06-12 锤子科技(北京)有限公司 Showing method and device for self-shooting image
CN104243831A (en) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 Method and device for shooting through mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10198622B2 (en) * 2013-03-29 2019-02-05 Panasonic Intellectual Property Management Co., Ltd. Electronic mirror device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152489A (en) * 2013-03-25 2013-06-12 锤子科技(北京)有限公司 Showing method and device for self-shooting image
CN104243831A (en) * 2014-09-30 2014-12-24 北京金山安全软件有限公司 Method and device for shooting through mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN105959564A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105959564B (en) A kind of photographic method and mobile terminal
CN105847674B (en) A kind of preview image processing method and mobile terminal based on mobile terminal
CN107181913B (en) A kind of photographic method and mobile terminal
CN106791393B (en) A kind of image pickup method and mobile terminal
CN107343149B (en) A kind of photographic method and mobile terminal
CN106101553B (en) A kind of photographic method and mobile terminal
US20200204738A1 (en) Photographing method and mobile terminal
CN105959544B (en) A kind of image processing method and mobile terminal of mobile terminal
CN106227488B (en) A kind of display methods and mobile terminal of reminder message
CN106126108B (en) A kind of generation method and mobile terminal of thumbnail
CN106648382B (en) A kind of picture browsing method and mobile terminal
CN106603928B (en) A kind of image pickup method and mobile terminal
CN106454199B (en) A kind of video communication method and mobile terminal
CN107643912A (en) A kind of information sharing method and mobile terminal
CN107678644A (en) A kind of image processing method and mobile terminal
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107613203A (en) A kind of image processing method and mobile terminal
CN106713659B (en) A kind of panorama shooting method and mobile terminal
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN106959797B (en) A kind of setting method and mobile terminal notifying footmark
CN106973237B (en) A kind of image pickup method and mobile terminal
CN106161933B (en) A kind of image processing method and mobile terminal
CN106855744B (en) A kind of screen display method and mobile terminal
CN106791182A (en) A kind of chat method and mobile terminal based on image

Legal Events

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