CN108259756A - A kind of image capturing method and mobile terminal - Google Patents

A kind of image capturing method and mobile terminal Download PDF

Info

Publication number
CN108259756A
CN108259756A CN201810211029.2A CN201810211029A CN108259756A CN 108259756 A CN108259756 A CN 108259756A CN 201810211029 A CN201810211029 A CN 201810211029A CN 108259756 A CN108259756 A CN 108259756A
Authority
CN
China
Prior art keywords
image
replaced
region
mobile terminal
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810211029.2A
Other languages
Chinese (zh)
Other versions
CN108259756B (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 CN201810211029.2A priority Critical patent/CN108259756B/en
Publication of CN108259756A publication Critical patent/CN108259756A/en
Application granted granted Critical
Publication of CN108259756B publication Critical patent/CN108259756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23229Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor comprising further processing of the captured image without influencing the image pickup process

Abstract

An embodiment of the present invention provides a kind of image capturing method and mobile terminal, method includes:Front camera is controlled to obtain the first image, control rear camera obtains the second image;Determine the region to be replaced in the second image;According to the region to be replaced, from the first extracting target from images region;Region to be replaced in second image is replaced using the target area extracted, generates target image.The target image of generation may include the Whole body images of user, and the image of mobile terminal is not present in target image, can promote the aesthetic feeling of captured image.

Description

A kind of image capturing method and mobile terminal
Technical field
The present invention relates to clapping image to take the photograph technical field, more particularly to a kind of image capturing method and mobile terminal.
Background technology
At present, popularizing with the mobile terminal with camera function, most of mobile terminal has former and later two camera shootings Head, user's self-timer have become a kind of behavior being seen everywhere.
At present, there are two types of modes for self-timer:One kind is to hold self-timer by mobile terminal front camera, due to preposition camera shooting Head portrait element is not as good as rear camera, and due to the pushing limitation of user, therefore is difficult to take perfect whole body to shine.Another kind is to pass through shifting Dynamic terminal rear camera is against mirror article such as mirror self-timer, although this kind of mode can take whole body photograph, due to The reflection of mirror, mobile terminal will appear the aesthetic feeling in the picture, influencing taken image.
Invention content
The embodiment of the present invention provides a kind of image capturing method and mobile terminal, to solve to take the photograph using postposition in the prior art The problem of can not shooting the image of no mobile terminal image as head shooting.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of image capturing method, the method includes:Control preposition camera shooting Head obtains the first image, and control rear camera obtains the second image;Determine the region to be replaced in second image;According to The target area is extracted from described first image in the region to be replaced;Institute is replaced using the target area extracted The region to be replaced in the second image is stated, generates target image.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes:Control module, For front camera to be controlled to obtain the first image, control rear camera obtains the second image;Determining module, for determining State the region to be replaced in the second image;Extraction module, for according to the region to be replaced, being extracted from described first image The target area;Replacement module, for treating described in being replaced in second image using the target area that extracts Region is replaced, generates target image.
The third aspect, an embodiment of the present invention provides a kind of mobile terminals, including processor, memory and are stored in described It is real when the computer program is performed by the processor on memory and the computer program that can run on the processor Now the step of image capturing method.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, the step of the image capturing method is realized when the computer program is executed by processor Suddenly.
In embodiments of the present invention, by the way that front camera is controlled to obtain the first image respectively, control rear camera obtains It takes the second image, and determines the region to be replaced in the second image, and according to region to be replaced from the first extracting target from images Region, the region to be replaced that target area is replaced generate target image, and the target image of generation may include the whole body shadow of user Picture, and the image of mobile terminal is not present in target image, the aesthetic feeling of captured image can be promoted.
Description of the drawings
Fig. 1 is a kind of flow chart of image capturing method of the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of image capturing method of the embodiment of the present invention two;
Fig. 3 is a kind of structure diagram of mobile terminal of the embodiment of the present invention three;
Fig. 4 is a kind of structure diagram of mobile terminal of the embodiment of the present invention four;
Fig. 5 is a kind of hardware architecture diagram of mobile terminal of the embodiment of the present invention five.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
With reference to Fig. 1, a kind of flow chart of image capturing method of the embodiment of the present invention one is shown.
Image capturing method provided in an embodiment of the present invention includes:
Step 101:Front camera is controlled to obtain the first image, control rear camera obtains the second image.
Such as:Subscriber station holds the mobile terminal comprising front camera, rear camera and carries out image before mirror Shooting, controls front camera and rear camera, and rear camera shoots image in mirror and obtains the second image, preposition camera shooting Head shooting user obtains the first image, the problem of in the first image due to shooting angle, does not include in the first image of shooting and moves Dynamic terminal, and the first image shot is non-systemic image, the second image is the figure of user's Whole body images comprising mobile terminal Picture.
Step 102:Determine the region to be replaced in the second image.
Region to be replaced can be the region corresponding to the appearance image of mobile terminal, or user is manually second The region drawn a circle to approve in image.
A kind of mode for determining region to be replaced of feasibility is, when rear camera gets the second image, to pass through Image analysis technology determines the appearance image of the mobile terminal in the second image, which is determined as area to be replaced Domain.Specifically, when detecting edges of regions to be replaced, by technique of image edge detection, first its profile point is examined roughly It surveys, then the profile point detected originally is connected by concatenate rule, while also detect and connect the boundary point omitted And the boundary that removal is false.
Step 103:According to region to be replaced, from the first extracting target from images region.
According to the marginal information in the region to be replaced in the second image, the side with region to be replaced in the second image is identified The consistent region of edge information, the region are the target area in the first image.
Step 104:Region to be replaced in second image is replaced using the target area extracted, generates target image.
When region corresponding to mobile terminal appearance image is in region to be replaced, target area is then mobile terminal appearance The region of the user's body blocked.When carrying out region replacement, can be incited somebody to action by edge matching and existing image processing algorithm Region to be replaced is replaced in target area, so as to the mesh for generating not comprising mobile terminal appearance image but including user's Whole body images Logo image.
In embodiments of the present invention, by the way that front camera is controlled to obtain the first image respectively, control rear camera obtains It takes the second image, and determines the region to be replaced in the second image, and according to region to be replaced from the first extracting target from images Region, the region to be replaced that target area is replaced generate target image, and the target image of generation may include the whole body shadow of user Picture, and the image of mobile terminal is not present in target image, the aesthetic feeling of captured image can be promoted.
Embodiment two
With reference to Fig. 2, a kind of flow chart of image capturing method of the embodiment of the present invention two is shown.
Image capturing method provided in an embodiment of the present invention includes:
Step 201:Front camera is controlled to obtain the first image, control rear camera obtains the second image.
Front camera, rear camera can manually be controlled when shooting by user, can also examined by mobile terminal It surveys when user takes pictures before mirror article and automatically controls.
Step 202:Detect selected operation of the user to region to be replaced in the second image.
Wherein, selected operation can be that user selectes frame by region and region to be replaced is drawn a circle to approve in the second image, also may be used Think user in the second image hand drawn edges of regions to be replaced so as to draw a circle to approve out region to be replaced.
By drawing a circle to approve region to be replaced manually so that region to be replaced is simultaneously not fixed, and region to be replaced can be according to user Demand drawn a circle to approve so that image is more in line with the demand of user.
Step 203:Chosen image-region is determined as region to be replaced in the second image.
It should be noted that step 202 and step 203 are that the mode in region to be replaced is determined according to user's operation, During specific implementation, if user does not draw a circle to approve region to be replaced, mobile terminal makees the imagery zone of the appearance of mobile terminal For region to be replaced.
Step 204:In the first image, the occlusion area in region to be replaced is determined.
Step 205:Occlusion area is determined as target area.
According to the marginal information in the region to be replaced in the second image, the side with region to be replaced in the second image is identified The consistent region of edge information, the region are the target area of regional occlusion to be replaced.
Step 206:Region to be replaced in second image is replaced using the target area extracted, generates target image.
When region corresponding to mobile terminal appearance image is in region to be replaced, target area is then mobile terminal appearance The region of the user's body blocked.When carrying out region replacement, can be incited somebody to action by edge matching and existing image processing algorithm Region to be replaced is replaced in target area, so as to the mesh for generating not comprising mobile terminal appearance image but including user's Whole body images Logo image.
Step 207:The move angle of mobile terminal is detected, execution step is then returned when move angle is more than predetermined angle 201。
When user is dissatisfied to the target image of generation, mobile terminal slightly can be swung or move, when mobile whole When the move angle at end is more than predetermined angle, then demonstrates the need for being adjusted target image, then reacquire front camera The image that image, the rear camera of acquisition obtain, and generate target image.The step by being swung to mobile terminal, It can realize and target image is adjusted in real time.
It should be noted that predetermined angle can be 5 °, 6 °, 7 ° etc., the embodiment of the present invention is not made predetermined angle specifically Limitation.
When user is dissatisfied to the target image of generation, user can also carry out position adjustment to target area manually, Specifically, after mobile terminal preserves target image, when user clicks target image, display target region, is used in the target image Family can carry out manual fine-tuning to target area so that target image is more beautiful.
After generating target image, the target image of generation need to be shown in interface is shot.A kind of preferably display mode is: Show the first image, the second image and target image respectively in each sub-interface in shooting interface.
Specifically, the first image is in second sub-interface at shooting interface, and the second image is on the sub- boundary of third at shooting interface In face, the first sub-interface, the second sub-interface and third sub-interface are existed simultaneously in shooting in interface.User can adjust in real time And check each image, the final target image for realizing generation is customer satisfaction system image.It is of course also possible to only display target figure Picture;Or only display target image and the first image, the mode of being particularly shown can by those skilled in the art according to actual demand into Row is set, this is not specifically limited in the embodiment of the present invention.
It should be noted that showing the first image, the second image and target image simultaneously in interface is shot, work as movement When terminal moves, user can be with the variation of the first image of real time inspection, the second image and target image, so that it is determined that more beautiful The target image of sight
In embodiments of the present invention, by the way that front camera is controlled to obtain the first image respectively, control rear camera obtains The second image is taken, and determines the region to be replaced in the second image, according to region to be replaced in the first extracting target from images area Domain, the region to be replaced that target area is replaced generate target image, and the target image of generation may include the whole body shadow of user Picture, and the image of mobile terminal is not present in target image, the aesthetic feeling of captured image can be promoted.In addition, at shooting interface In show the first image, the second image and target image simultaneously, when mobile terminal moves, user can be with real time inspection first The variation of image, the second image and target image, so that it is determined that more beautiful target image.
Embodiment three
With reference to Fig. 3, a kind of structure diagram of mobile terminal of the embodiment of the present invention three is shown.
Mobile terminal provided in an embodiment of the present invention includes:Control module 301, for front camera to be controlled to obtain first Image, control rear camera obtain the second image;Determining module 302, for determining the area to be replaced in second image Domain;Extraction module 303, for according to the region to be replaced, target area to be extracted from described first image;Replacement module 304, for replacing the region to be replaced in second image using the target area extracted, generate target figure Picture.
In embodiments of the present invention, by the way that front camera is controlled to obtain the first image respectively, control rear camera obtains It takes the second image, and determines the region to be replaced in the second image, and according to region to be replaced from the first extracting target from images Region, the region to be replaced that target area is replaced generate target image, and the target image of generation may include the whole body shadow of user Picture, and the image of mobile terminal is not present in target image, the aesthetic feeling of captured image can be promoted.
Example IV
With reference to Fig. 4, a kind of structure diagram of mobile terminal of the embodiment of the present invention four is shown.
Mobile terminal provided in an embodiment of the present invention includes:Control module 401, for front camera to be controlled to obtain first Image, control rear camera obtain the second image;Determining module 402, for determining the area to be replaced in second image Domain;Extraction module 403, for according to the region to be replaced, target area to be extracted from described first image;Replacement module 404, for replacing the region to be replaced in second image using the target area extracted, generate target figure Picture.
Preferably, the extraction module 403 includes:First determination sub-module 4031, in described first image, really The occlusion area in the fixed region to be replaced;Second determination sub-module 4032, for the occlusion area to be determined as target area Domain.
Preferably, the determining module 402 includes:Detection sub-module 4021, for detecting user to second image In region to be replaced selected operation;Third determination sub-module 4022, for the image-region being selected to be determined as described Region to be replaced in two images.
Preferably, the mobile terminal further includes:Module 405 is returned, is extracted for being used in the replacement module 404 The target area replace the region to be replaced in second image, after generating target image, detect the shifting The move angle of dynamic terminal then returns when the move angle is more than predetermined angle and performs the calling front camera acquisition The step of first image, calling rear camera obtains the second image.
Preferably, the mobile terminal further includes:Display module 406 extracts for being used in the replacement module 404 The target area replace the region to be replaced in second image, after generating target image, at shooting interface In each sub-interface in show described first image, the second image and target image respectively.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2 Each process, repeated to avoid, which is not described herein again.
In embodiments of the present invention, by the way that front camera is controlled to obtain the first image respectively, control rear camera obtains The second image is taken, and determines the target area of regional occlusion to be replaced in region to be replaced and the first image in the second image Domain, the region to be replaced that target area is replaced generate target image, and the target image of generation may include the whole body shadow of user Picture, and the image of mobile terminal is not present in target image, the aesthetic feeling of captured image can be promoted.In addition, at shooting interface In show the first image, the second image and target image simultaneously, when mobile terminal moves, user can be with real time inspection first The variation of image, the second image and target image, so that it is determined that more beautiful target image.
Embodiment five
With reference to the hardware architecture diagram of Fig. 5, to realize the present invention a kind of mobile terminal of each embodiment.
The mobile terminal 500 includes but not limited to:It is radio frequency unit 501, network module 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The components such as 510 and power supply 511.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 is not formed Restriction to mobile terminal, mobile terminal can include than illustrate more or fewer components either combine certain components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 510, for front camera to be controlled to obtain the first image, control rear camera obtains the second image; Determine the region to be replaced in second image;According to region to be replaced, target area is extracted from described first image;It adopts The region to be replaced in second image is replaced with the target area extracted, generates target image.
In embodiments of the present invention, by the way that front camera is controlled to obtain the first image respectively, control rear camera obtains It takes the second image, and determines the region to be replaced in the second image, and according to region to be replaced from the first image zooming-out target area Domain, the region to be replaced that target area is replaced generate target image, and the target image of generation may include the whole body shadow of user Picture, and the image of mobile terminal is not present in target image, the aesthetic feeling of captured image can be promoted.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receive and send messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, handled to processor 510;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 502 and has accessed, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
It is that audio output unit 503 can receive radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports as sound.Moreover, audio output unit 503 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 500 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loud speaker, buzzer and receiver etc..
Input unit 504 is used to receive audio or video signal.Input unit 504 can include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The form output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 506 is used to show by information input by user or be supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Display panel 5061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 507 can be used for receiving the number inputted or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send to processor 510 with determine touch event type, be followed by subsequent processing device 510 according to touch The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, touch panel 5071 and display Panel 5061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 500 can be used in 500 He of mobile terminal Data are transmitted between external device (ED).
Memory 509 can be used for storage software program and various data.Memory 509 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 509 and/or module and call Data in device 509 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, and including processor 510, memory 509 is stored in On memory 509 and the computer program that can be run on the processor 510, the computer program are performed by processor 510 Each process of the above-mentioned image capturing method embodiments of Shi Shixian, and identical technique effect can be reached, it is repeated to avoid, here It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image capturing method embodiment, and energy when being executed by processor Reach identical technique effect, repeated to avoid, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form is belonged within the protection of the present invention.

Claims (10)

1. a kind of image capturing method, applied to mobile terminal, which is characterized in that the method includes:
Front camera is controlled to obtain the first image, control rear camera obtains the second image;
Determine the region to be replaced in second image;
According to the region to be replaced, target area is extracted from described first image;
The region to be replaced in second image is replaced using the target area extracted, generates target image.
2. according to the method described in claim 1, it is characterized in that, described according to the region to be replaced, from first figure Extraction target area includes as in:
In described first image, the occlusion area in the region to be replaced is determined;
The occlusion area is determined as target area.
3. the according to the method described in claim 1, it is characterized in that, region to be replaced determined in second image Step includes:
Detect selected operation of the user to region to be replaced in second image;
Chosen image-region is determined as region to be replaced in second image.
4. according to the method described in claim 1, it is characterized in that, institute is replaced using the target area extracted described After the step of stating the region to be replaced in the second image, generating target image, the method further includes:
The move angle of the mobile terminal is detected, is then returned when the move angle is more than predetermined angle and performs the calling The step of front camera obtains the first image, and calling rear camera obtains the second image.
5. according to the method described in claim 1, it is characterized in that, institute is replaced using the target area extracted described After the step of stating the region to be replaced in the second image, generating target image, the method further includes:
Show described first image, the second image and target image respectively in each sub-interface in shooting interface.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Control module, for front camera to be controlled to obtain the first image, control rear camera obtains the second image;
Determining module, for determining the region to be replaced in second image;
Extraction module, for according to the region to be replaced, target area to be extracted from described first image;
Replacement module, for replacing the region to be replaced in second image using the target area extracted, Generate target image.
7. mobile terminal according to claim 6, which is characterized in that the extraction module includes:
First determination sub-module, in described first image, determining the occlusion area in the region to be replaced;
Second determination sub-module, for the occlusion area to be determined as target area.
8. mobile terminal according to claim 6, which is characterized in that the determining module includes:
Detection sub-module, for detecting selected operation of the user to region to be replaced in second image;
Third determination sub-module, for the image-region being selected to be determined as region to be replaced in second image.
9. mobile terminal according to claim 6, which is characterized in that the mobile terminal further includes:
Module is returned to, for the institute in replacing second image using the target area that extracts in the replacement module Region to be replaced is stated, after generating target image, detects the move angle of the mobile terminal, when the move angle is more than in advance The first image is obtained if then being returned during angle and performing the calling front camera, rear camera is called to obtain the second image Step.
10. mobile terminal according to claim 6, which is characterized in that the mobile terminal further includes:
Display module, for the institute in replacing second image using the target area that extracts in the replacement module It states region to be replaced, after generating target image, shows described first image, the respectively in each sub-interface in shooting interface Two images and target image.
CN201810211029.2A 2018-03-14 2018-03-14 Image shooting method and mobile terminal Active CN108259756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810211029.2A CN108259756B (en) 2018-03-14 2018-03-14 Image shooting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810211029.2A CN108259756B (en) 2018-03-14 2018-03-14 Image shooting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108259756A true CN108259756A (en) 2018-07-06
CN108259756B CN108259756B (en) 2020-07-28

Family

ID=62746954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810211029.2A Active CN108259756B (en) 2018-03-14 2018-03-14 Image shooting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108259756B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109993711A (en) * 2019-03-25 2019-07-09 维沃移动通信有限公司 A kind of image processing method and terminal device
CN110855897A (en) * 2019-12-20 2020-02-28 维沃移动通信有限公司 Image shooting method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005130140A (en) * 2003-10-22 2005-05-19 Pioneer Electronic Corp Photographing device and photographing method
JP2016001889A (en) * 2013-12-20 2016-01-07 パナソニックIpマネジメント株式会社 Imaging apparatus
CN107197094A (en) * 2017-05-23 2017-09-22 努比亚技术有限公司 One kind shooting display methods, terminal and computer-readable recording medium
CN107734255A (en) * 2017-10-16 2018-02-23 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the readable storage medium storing program for executing that shooting is taken pictures certainly

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005130140A (en) * 2003-10-22 2005-05-19 Pioneer Electronic Corp Photographing device and photographing method
JP2016001889A (en) * 2013-12-20 2016-01-07 パナソニックIpマネジメント株式会社 Imaging apparatus
CN107197094A (en) * 2017-05-23 2017-09-22 努比亚技术有限公司 One kind shooting display methods, terminal and computer-readable recording medium
CN107734255A (en) * 2017-10-16 2018-02-23 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the readable storage medium storing program for executing that shooting is taken pictures certainly

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109993711A (en) * 2019-03-25 2019-07-09 维沃移动通信有限公司 A kind of image processing method and terminal device
CN110855897A (en) * 2019-12-20 2020-02-28 维沃移动通信有限公司 Image shooting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108259756B (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN109688322A (en) A kind of method, device and mobile terminal generating high dynamic range images
CN108174081B (en) A kind of image pickup method and mobile terminal
CN108540724A (en) A kind of image pickup method and mobile terminal
CN107635110A (en) A kind of video interception method and terminal
CN107566749A (en) Image pickup method and mobile terminal
CN108259743A (en) Panoramic picture image pickup method and electronic equipment
CN110248254A (en) Display control method and Related product
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN108038825A (en) A kind of image processing method and mobile terminal
CN108989672A (en) A kind of image pickup method and mobile terminal
CN108320263A (en) A kind of method, device and mobile terminal of image procossing
CN109005336A (en) A kind of image capturing method and terminal device
CN108712603B (en) Image processing method and mobile terminal
CN109005355A (en) A kind of image pickup method and mobile terminal
CN108683850A (en) A kind of shooting reminding method and mobile terminal
CN108989678A (en) A kind of image processing method, mobile terminal
CN108259756A (en) A kind of image capturing method and mobile terminal
CN107959755A (en) A kind of photographic method and mobile terminal
CN107864336B (en) A kind of image processing method, mobile terminal
CN109819166A (en) A kind of image processing method and electronic equipment
CN109327668A (en) A kind of method for processing video frequency and device
CN108259739A (en) A kind of method, device and mobile terminal of image taking
CN108174110A (en) A kind of photographic method and flexible screen terminal
CN108965701A (en) A kind of shake antidote and terminal device
CN108632535A (en) A kind of image processing method and mobile terminal

Legal Events

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