CN107707823A - A kind of image pickup method and mobile terminal - Google Patents
A kind of image pickup method and mobile terminal Download PDFInfo
- Publication number
- CN107707823A CN107707823A CN201710973244.1A CN201710973244A CN107707823A CN 107707823 A CN107707823 A CN 107707823A CN 201710973244 A CN201710973244 A CN 201710973244A CN 107707823 A CN107707823 A CN 107707823A
- Authority
- CN
- China
- Prior art keywords
- background
- background picture
- area
- reserved area
- preview image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The embodiments of the invention provide a kind of image pickup method and mobile terminal, it is related to communication technical field.Wherein, the image pickup method includes:Under shooting preview state, background open command is changed if receiving, obtains current positional information;Based on acquired positional information, at least one background picture is shown;If receiving background picture chooses instruction, it is determined that the background picture of selection is target background picture;If reserved area is received in preview image chooses instruction, the background area in preview image is replaced by the target background picture;Wherein, the background area is:Region in the preview image in addition to the reserved area.In embodiments of the present invention, background picture may be selected to change the background area in preview image in user, and to replace unsatisfied background area, and background picture is related to current positional information, so that background area becomes true, abundant, shooting effect is improved.
Description
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of image pickup method and mobile terminal.
Background technology
With the continuous renewal and development of the communication technology, the shoot function of mobile terminal is also gradually perfect.For example, clapping
When taking the photograph, if user is not felt quite pleased the background area in preview image, people's object area in preview image can be retained, by background
Region carries out virtualization processing, to reach the effect for covering original background area.
However, above-mentioned, in the prior art although the background area after virtualization may replace original background area, but no matter from
Aesthetically, or from the effect of entirety, all it can seem that image is not perfect because background area picture is single, so as to influence to clap
Take the photograph effect.
The content of the invention
The embodiment of the present invention provides a kind of image pickup method, to solve user in shooting process, because background area is single
The problem of influenceing shooting effect.
In a first aspect, the embodiments of the invention provide a kind of image pickup method, applied to mobile terminal, including:It is pre- in shooting
Look under state, change background open command if receiving, obtain current positional information;Based on acquired positional information,
Show at least one background picture;If receiving background picture chooses instruction, it is determined that the background picture of selection is target background
Picture;If reserved area is received in preview image chooses instruction, the background area in preview image is replaced by described
Target background picture;Wherein, the background area is:Region in the preview image in addition to the reserved area.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:Background opening module is changed, is used for
Under shooting preview state, background open command is changed if receiving, obtains current positional information;Background picture shows mould
Block, for based on acquired positional information, showing at least one background picture;Background picture chooses module, if for receiving
Choose and instruct to background picture, it is determined that the background picture of selection is target background picture;Background picture changes module, if for
Reserved area is received in preview image and chooses instruction, then the background area in preview image is replaced by the target background
Picture;Wherein, the background area is:Region in the preview image in addition to the reserved area.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, memory, are stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is by the computing device
The step of realizing image pickup method as described in relation to the first aspect.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, described computer-readable to deposit
Computer program is stored with storage media, shooting as described in relation to the first aspect is realized when the computer program is executed by processor
The step of method.
In embodiments of the present invention, for mobile terminal in shooting, mobile terminal enters shooting preview state, shooting preview circle
Face shows preview image, meanwhile, background functions are changed in shooting preview interface display, and user may be selected to open the function, so as to move
Dynamic terminal can receive the replacing background open command of user's input, after changing background functions unlatching, obtain current mobile terminal
Location information, according to positional information, show one or more background picture, background picture be based on positional information and
Display, therefore, shown by background picture can be the environment related to positional information, building etc.;Next step user
One of background picture can be chosen, the background picture that mobile terminal can receive user's input chooses instruction, so that will
Background picture selected by user is as target background picture.When shooting preview interface shows preview image, user can be in preview
Reserved area is chosen in image, mobile terminal can also choose reserved area in preview image automatically, and reserved area is namely more
, it is necessary to which the region retained, the usual region can be the region where personage when changing background, mobile terminal receives reserved area choosing
After instruction fetch, selected reserved area is also just identified, so as to which the background area beyond reserved area is replaced by into the target back of the body
Scape picture, and then user may be selected output and change the image after background.It can be seen that in embodiments of the present invention, the back of the body may be selected in user
Scape picture changes the background area in preview image, to replace unsatisfied background area, and background picture with it is current
Positional information is related so that background area becomes true, abundant, and compared to prior art, shooting effect greatly improves.
Brief description of the drawings
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
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is one of flow chart of image pickup method of the embodiment of the present invention;
Fig. 2 is the two of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 3 is the three of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 4 is the four of the flow chart of the image pickup method of the embodiment of the present invention;
Fig. 5 is one of block diagram of mobile terminal of the embodiment of the present invention;
Fig. 6 is the two of the block diagram of the mobile terminal of the embodiment of the present invention;
Fig. 7 is the three of the block diagram of the mobile terminal of the embodiment of the present invention;
Fig. 8 is the four of the block diagram of the mobile terminal of the embodiment of the present invention;
Fig. 9 is the five of the block diagram of the mobile terminal of the embodiment of the present invention;
Figure 10 is the structural representation of the mobile terminal of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme 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, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Embodiment one
Reference picture 1, the flow chart of the image pickup method of one embodiment of the invention is shown, the image pickup method is applied to movement
Terminal, including:
Step 101:Under shooting preview state, background open command is changed if receiving, obtains current position letter
Breath.
In this step, mobile terminal can be from the application programs such as camera, into shooting preview state, in shooting preview shape
Under state, shooting preview interface shows preview image, while shooting preview interface may also display replacing background functions, and user can clap
Take the photograph selection in preview interface and change background functions, background open command is changed with input, so as to which mobile terminal can be in this step
Receive and change background open command, correspondingly, change background functions and open, meanwhile, mobile terminal obtains current position in real time
Confidence ceases.
Ground is referred to, can obtain positional information using the alignment system of mobile terminal here.
Step 102:Based on acquired positional information, at least one background picture is shown.
In this step, background functions are changed to open, one or more background picture are shown in shooting preview interface,
Background picture is shown based on acquired positional information, thus background picture is associated with positional information, for example, can base
In the geographical environment that positional information includes, such as seashore, then the background picture related to seashore can be shown.Shown Background
Piece can be one, and in order to improve the usage experience of user, so that user has more selections, shown background picture may be used also
To be multiple.Meanwhile as the continuous change of positional information, shown background picture can also real-time updates.
Step 103:If receiving background picture chooses instruction, it is determined that the background picture of selection is target background picture.
In this step, chosen in the background picture that user can be shown in shooting preview interface, to input the back of the body
Scape picture chooses instruction, of courses, and mobile terminal can also intelligently be chosen, and chooses instruction to input background picture, works as shifting
After dynamic terminal receives background picture selection instruction, correspondingly determine that selected background picture is the target background figure to be changed
Piece.
Step 104:If reserved area is received in preview image chooses instruction, by the background area in preview image
It is replaced by target background picture.
Wherein, background area is:Region in preview image in addition to reserved area.
In this step, user can select to need the image-region retained in shooting preview interface, referred to herein as reserved
Region, instruction is chosen to input reserved area, mobile terminal also can intelligently choose reserved area, refer to input reserved area and choose
Order, after mobile terminal, which receives reserved area, chooses instruction, mobile terminal may recognize that reserved area, so as to by preview image
In the background area in addition to reserved area, the target background picture being replaced by step 103.
Generally, reserved area can be personage region, and mobile terminal can use face recognition technology automatic identification people
Thing region, to be used as reserved area.
Receive reserved area herein or first and choose instruction, so as to which mobile terminal identifies reserved area, and
The reserved area is shown in preview image, then chooses background picture, the target background picture chosen directly replaces currently
Background area, it is seen then that do not limit the sequencing of step 103 and step 104 here.
In the present embodiment, the shooting process of mobile terminal adds replacing background functions, in shooting, can open the work(
Can, so as under shooting preview state, can be showed Background Picture according to current positional information, using choose it is one of as
Target background picture, then reserved area is chosen in preview image, after reserved area determines, directly background area is replaced by
Target background picture.It can be seen that compared to prior art, when user is dissatisfied to current background area, without again to background
Region carries out virtualization processing, but the background area of script is directly replaced using other background pictures, and background picture and position
Confidence manner of breathing closes so that the background area picture after replacing is true, abundant, and shooting effect increases.
On the basis of Fig. 1, Fig. 2 shows the flow chart of the image pickup method of another embodiment of the present invention, the flow chart
In, step 102 includes:
Step 1021:Based on acquired positional information, send request to the server that connection is established with mobile terminal and refer to
Order;Wherein, request instruction is used to indicate that server sends at least one background picture associated with positional information.
Present embodiments provide it is a kind of from server terminal download pictures to obtain the method for background picture, in the step
In, first have to determine to establish a connection between mobile terminal and server, then send a request instruction to server again,
To pass through the instruction so that server sends the background picture related to positional information to mobile terminal based on positional information.
Step 1022:At least one background picture that the server received is sent is shown.
In this step, after server receives request instruction, the background picture related to positional information is sent to shifting
Dynamic terminal, the background picture that mobile terminal the reception server is sent, and be downloaded, the background downloaded so as to mobile terminal display
Picture.
In the present embodiment, substantial amounts of picture is stored with server, these pictures may be related to a variety of positional informations,
, can be based on current positional information so as to after the current positional information of acquisition for mobile terminal, the related figure in download server
Piece is as background picture.
On the basis of Fig. 1, Fig. 3 shows the flow chart of the image pickup method of another embodiment of the present invention, the flow chart
In, step 104 includes:
Step 1041:If in preview image, the input operation of the boundary line of reserved area is detected, then reads and is inputted
Boundary line.
In this step, user can input the boundary line of reserved area by way of touch at the interface of mobile terminal,
When reserved area is personage region, the general outline of personage can be marked by way of touch, it is achieved thereby that moving
The input operation of the boundary line of the reserved area carried out in dynamic terminal, and then mobile terminal can detect the operational order, and read
Take the boundary line that family is marked.
Step 1042:Based on boundary line, the selection range of reserved area is determined.
From previous step as can be seen that boundary line delimited to be artificial, a simply general range limit, thus in the step
In rapid, according to general boundary line, mobile terminal carries out rim detection correction automatically, further determines that the accurate side of reserved area
Boundary line, to determine the selection range of reserved area, i.e., foreground area is plucked out in preview image again, foreground area here is namely
Reserved area.
Step 1043:Background area in preview image is replaced by target background picture.
In this step, the selection range of reserved area will be determined, it is believed that it is that have received reserved area to choose instruction,
So as to after the instruction, directly target background picture be changed and arrive background area.
In this step, the selection model of reserved area is further determined that by artificially delimiting the boundary line of reserved area
Enclose, there is provided a kind of mode for inputting reserved area and choosing instruction.
On the basis of Fig. 3, Fig. 4 shows the flow chart of the image pickup method of another embodiment of the present invention, the flow chart
In, step 1042 includes:
Step 10421:Gray processing processing is carried out to preview image.
In this step, gray processing processing is carried out to preview image first, to carry out rim detection.
Step 10422:The difference of the gray value at the gray value at the edge based on reserved area and the edge of background area, and
With reference to boundary line, the selection range of reserved area is determined.
Preview image gray processing processing after, reserved area by taking personage region as an example, the edge of personage region
The gray value at gray value and the edge of background area has very big difference, so as to which intersection has the feature of a transition again,
And then the position with reference to where the boundary line delimited in advance, the particular location at the edge of reserved area is accurately determined, to determine
The selection range of reserved area.
In the present embodiment, the selection range of reserved area is determined using edge detection algorithm.Before in preview image
After scape (i.e. reserved area) and background (i.e. background area) are distinguished by edge algorithms, you can to retain reserved area, that is,
Personage region, so as to which background area is arranged into target background picture.
Common edge detection algorithm has Canny edge detection algorithms, and specific process includes:
Gray processing processing is carried out to preview image first, carries out gaussian filtering to preview image afterwards, it is then inclined with single order
The finite difference led calculates the amplitude of gradient and direction, carries out non-maxima suppression to gradient magnitude afterwards, finally uses dual threashold
Value-based algorithm carries out detection image border.The rim detection of image is realized, is sought to discretization gradient approximating function according to two dimension
Gray matrix gradient vector finds the gray scale transition position of gradation of image matrix, then in the picture connects the point of these positions
Getting up just to constitute so-called image border, (image border is a general designation herein, includes edge, the angle on two dimensional image
The primitive such as point, texture figure).
It is noted that the image pickup method in above example is shot available for front camera, it may also be used for rearmounted
Camera is shot;Shot available for single camera, it may also be used for dual camera is shot;Do not limit herein.
Embodiment two
Reference picture 5, show the block diagram of the mobile terminal of one embodiment of the invention.Mobile terminal shown in Fig. 5 includes:
Background opening module 10 is changed, under shooting preview state, changing background open command if receiving, obtaining
Take current positional information;
Background picture display module 20, for based on acquired positional information, showing at least one background picture;
Background picture chooses module 30, if choosing instruction for receiving background picture, it is determined that the background picture of selection
For target background picture;
Background picture changes module 40, if instruction is chosen for receiving reserved area in preview image, by preview
Background area in image is replaced by target background picture;
Wherein, background area is:Region in preview image in addition to reserved area.
In the present embodiment, the shooting process of mobile terminal adds replacing background functions, in shooting, can open the work(
Can, so as under shooting preview state, can be showed Background Picture according to current positional information, using choose it is one of as
Target background picture, then reserved area is chosen in preview image, after reserved area determines, directly background area is replaced by
Target background picture.It can be seen that compared to prior art, when user is dissatisfied to current background area, without again to background
Region carries out virtualization processing, but the background area of script is directly replaced using other background pictures, and background picture and position
Confidence manner of breathing closes so that the background area picture after replacing is true, abundant, and shooting effect increases.
Mobile terminal in the present embodiment can realize each process that mobile terminal is realized in Fig. 1 embodiment of the method,
To avoid repeating, repeat no more here.
On the basis of Fig. 5, Fig. 6 shows the block diagram of the mobile terminal of another embodiment of the present invention, and background picture shows
Show that module 20 includes:
Request instruction transmitting element 21, for based on acquired positional information, the clothes connected to be established to mobile terminal
Business device sends request instruction;Wherein, request instruction is used to indicate that server sends at least one back of the body associated with positional information
Scape picture;
Display unit 22, at least one background picture for the server received to be sent are shown.
Mobile terminal in the present embodiment can realize each process that mobile terminal is realized in Fig. 2 embodiment of the method,
To avoid repeating, repeat no more here.
On the basis of Fig. 5, Fig. 7 shows the block diagram of the mobile terminal of another embodiment of the present invention, and background picture is more
Mold changing block 40 includes:
Boundary line reading unit 41, if the input operation of the boundary line in preview image, detecting reserved area,
Then read inputted boundary line;
Reserved area determining unit 42, for based on boundary line, determining the selection range of reserved area;
Unit 43 is changed, for the background area in preview image to be replaced by into target background picture.
Mobile terminal in the present embodiment can realize each process that mobile terminal is realized in Fig. 3 embodiment of the method,
To avoid repeating, repeat no more here.
On the basis of Fig. 7, Fig. 8 shows the block diagram of the mobile terminal of another embodiment of the present invention, and reserved area is true
Order member 42 includes:
Gray processing handles subelement 421, for carrying out gray processing processing to preview image;
Gray value recognizes subelement 422, for the gray value at edge based on reserved area and the edge of background area
The difference of gray value, and boundary line is combined, determine the selection range of reserved area.
Mobile terminal in the present embodiment can realize each process that mobile terminal is realized in Fig. 4 embodiment of the method,
To avoid repeating, repeat no more here.
Another embodiment of the present invention additionally provides a kind of mobile terminal, including processor, and memory, storage is on a memory
And the computer program that can be run on a processor, any image pickup method as described above is realized when computer program is executed by processor
Embodiment each process, and identical technique effect can be reached, to avoid repeating, repeated no more here.
Another embodiment of the present invention additionally provides a kind of computer-readable recording medium, is deposited on computer-readable recording medium
Computer program is contained, each mistake of the embodiment of any image pickup method as described above is realized in shooting processing when being executed by processor
Journey, and identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable storage medium
Matter, as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (RandomAccess Memory,
Abbreviation RAM), magnetic disc or CD etc..
Fig. 9 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 800 shown in Fig. 9 includes:At least
One processor 801, memory 802, at least one network interface 804 and other users interface 803.In mobile terminal 800
Each component is coupled by bus system 805.It is understood that bus system 805 is used to realize the company between these components
Connect letter.Bus system 805 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But
It is for the sake of clear explanation, various buses is all designated as bus system 805 in fig.9.
Wherein, user interface 803 can 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,
Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge
Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as outside slow at a high speed
Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 802 of the system and method for description of the embodiment of the present invention is intended to include but unlimited
In these memories with any other suitable type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for
Realize various basic businesses and the hardware based task of processing.Application program 8022, include various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 8022.
In embodiments of the present invention, mobile terminal 800 also includes:Storage on a memory 802 and can be on processor 801
The shooting control program of operation, can be the shooting control program in application program 8022 specifically, shooting control program is located
Reason device 801 realizes following steps when performing:Under shooting preview state, background open command is changed if receiving, obtains and works as
Preceding positional information;Based on acquired positional information, at least one background picture is shown;Refer to if receiving background picture and choosing
Order, it is determined that the background picture of selection is target background picture;If reserved area is received in preview image chooses instruction,
Background area in preview image is replaced by the target background picture;Wherein, the background area is:The preview image
In region in addition to the reserved area.
The method that the embodiments of the present invention disclose can apply in processor 801, or be realized by processor 801.
Processor 801 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, 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 (DigitalSignalProcessor, DSP), application specific integrated circuit
(ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array
(FieldProgrammableGateArray, FPGA) either other PLDs, discrete gate or transistor logic
Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention
Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion, or use decoding processor
In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only storage can
The ripe computer-readable recording medium in this area such as program read-only memory or electrically erasable programmable memory, register
In.The computer-readable recording medium is located at memory 702, and processor 801 reads the information in memory 802, hard with reference to its
Part completes the step of above method.Specifically, computer program, computer program are stored with the computer-readable recording medium
The step of embodiment of any image pickup method as described above is realized when being performed by processor 801.
It is understood that the embodiment of the present invention description these embodiments can use hardware, software, firmware, middleware,
Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits
(ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor
(DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device
(ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray,
FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for performing herein described function
In member or its combination.
For software realize, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come
Realize the technology described in the embodiment of the present invention.Software code is storable in memory and passes through computing device.Memory can
To realize within a processor or outside processor.
Alternatively, following steps can be also realized when computer program is performed by processor 801:Believed based on acquired position
Breath, request instruction is sent to the server that connection is established with the mobile terminal;Wherein, the request instruction is described for indicating
Server sends at least one background picture associated with the positional information;The server received is sent extremely
A few background picture is shown.
Alternatively, following steps can be also realized when computer program is performed by processor 801:If in preview image, inspection
The input operation of the boundary line of reserved area is measured, then reads inputted boundary line;Based on the boundary line, trough is determined
The selection range in domain;Background area in preview image is replaced by the target background picture.
Alternatively, as another embodiment, following steps can be also realized when computer program is performed by processor 801:
Gray processing processing is carried out to preview image;The gray value at the gray value at the edge based on reserved area and the edge of background area
Difference, and with reference to the boundary line, determine the selection range of reserved area.
Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
Repeat no more.
In the present embodiment, the shooting process of mobile terminal adds replacing background functions, in shooting, can open the work(
Can, so as under shooting preview state, can be showed Background Picture according to current positional information, using choose it is one of as
Target background picture, then reserved area is chosen in preview image, after reserved area determines, directly background area is replaced by
Target background picture.It can be seen that compared to prior art, when user is dissatisfied to current background area, without again to background
Region carries out virtualization processing, but the background area of script is directly replaced using other background pictures, and background picture and position
Confidence manner of breathing closes so that the background area picture after replacing is true, abundant, and shooting effect increases.
Figure 10 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile end in Figure 10
End 900 can be mobile phone, tablet personal computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 900 in Figure 10 includes radio frequency (RadioFrequency, RF) circuit 910, memory 920, input
Unit 930, display unit 940, processor 960, voicefrequency circuit 970, WiFi (WirelessFidelity) module 980, power supply
990。
Wherein, input block 930 can be used for the numeral or character information for receiving user's input, and generation and mobile terminal
The signal input that 900 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 930 can
With including contact panel 931.Contact panel 931, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses the operations of any suitable object or annex on contact panel 931 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 931 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 960 again, and the order sent of reception processing device 960 and can be performed.Furthermore, it is possible to using resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block
930 can also include other input equipments 932, and other input equipments 932 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 940 can be used for display by the information of user's input or be supplied to information and the movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hairs
The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined
After measuring the touch operation on or near it, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device
960 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 conventional control viewing area.The Application Program Interface viewing area
And arrangement mode of the conventional 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 element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or performing the software program and/or module that are stored in first memory 921, and call storage
Data in second memory 922, the various functions and processing data of mobile terminal 900 are performed, so as to mobile terminal 900
Carry out integral monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, mobile terminal 900 also includes:It is stored in memory 920 and can be transported on processor 960
Capable shooting control program, can be the shooting control program in application program specifically, shooting control program is by processor
960 realize following steps when performing:Under shooting preview state, background open command is changed if receiving, is obtained currently
Positional information;Based on acquired positional information, at least one background picture is shown;If receiving background picture chooses instruction,
The background picture for then determining to choose is target background picture;, will if reserved area is received in preview image chooses instruction
Background area in preview image is replaced by the target background picture;Wherein, the background area is:In the preview image
Region in addition to the reserved area.
Alternatively, following steps can be also realized when computer program is performed by processor 960:Believed based on acquired position
Breath, request instruction is sent to the server that connection is established with the mobile terminal;Wherein, the request instruction is described for indicating
Server sends at least one background picture associated with the positional information;The server received is sent extremely
A few background picture is shown.
Alternatively, following steps can be also realized when computer program is performed by processor 960:If in preview image, inspection
The input operation of the boundary line of reserved area is measured, then reads inputted boundary line;Based on the boundary line, trough is determined
The selection range in domain;Background area in preview image is replaced by the target background picture.
Alternatively, following steps can be also realized when computer program is performed by processor 960:Gray scale is carried out to preview image
Change is handled;The difference of the gray value at the gray value at the edge based on reserved area and the edge of background area, and with reference to the side
Boundary line, determine the selection range of reserved area.
In the present embodiment, the shooting process of mobile terminal adds replacing background functions, in shooting, can open the work(
Can, so as under shooting preview state, can be showed Background Picture according to current positional information, using choose it is one of as
Target background picture, then reserved area is chosen in preview image, after reserved area determines, directly background area is replaced by
Target background picture.It can be seen that compared to prior art, when user is dissatisfied to current background area, without again to background
Region carries out virtualization processing, but the background area of script is directly replaced using other background pictures, and background picture and position
Confidence manner of breathing closes so that the background area picture after replacing is true, abundant, and shooting effect increases.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each
The unit and algorithm steps of example, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty
Technical staff can realize described function using distinct methods to each specific application, but this realization should not
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, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a computer-readable recording medium, including some instructions are causing a computer equipment
(can be personal computer, server, or network equipment etc.) perform each embodiment methods described of the present invention whole or
Part steps.And foregoing computer-readable recording medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are each
Kind can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (10)
- A kind of 1. image pickup method, applied to mobile terminal, it is characterised in that including:Under shooting preview state, background open command is changed if receiving, obtains current positional information;Based on acquired positional information, at least one background picture is shown;If receiving background picture chooses instruction, it is determined that the background picture of selection is target background picture;If reserved area is received in preview image chooses instruction, the background area in preview image is replaced by the mesh Mark background picture;Wherein, the background area is:Region in the preview image in addition to the reserved area.
- 2. image pickup method according to claim 1, it is characterised in that described based on acquired positional information, display is extremely The step of few background picture, including:Based on acquired positional information, request instruction is sent to the server that connection is established with the mobile terminal;Wherein, institute Request instruction is stated to be used to indicate that the server sends at least one background picture associated with the positional information;At least one background picture that the server received is sent is shown.
- 3. image pickup method according to claim 1, it is characterised in that if described receive reserved area in preview image Choose instruction, then the step of background area in preview image being replaced by the target background picture, including:If in preview image, the input operation of the boundary line of reserved area is detected, then reads inputted boundary line;Based on the boundary line, the selection range of reserved area is determined;Background area in preview image is replaced by the target background picture.
- 4. image pickup method according to claim 3, it is characterised in that it is described to be based on the boundary line, determine reserved area Selection range the step of include:Gray processing processing is carried out to preview image;The difference of the gray value at the gray value at the edge based on reserved area and the edge of background area, and with reference to the border Line, determine the selection range of reserved area.
- A kind of 5. mobile terminal, it is characterised in that including:Background opening module is changed, under shooting preview state, background open command to be changed if receiving, is obtained current Positional information;Background picture display module, for based on acquired positional information, showing at least one background picture;Background picture chooses module, if choosing instruction for receiving background picture, it is determined that the background picture of selection is target Background picture;Background picture changes module, if instruction is chosen for receiving reserved area in preview image, by preview image Background area be replaced by the target background picture;Wherein, the background area is:Region in the preview image in addition to the reserved area.
- 6. mobile terminal according to claim 5, it is characterised in that the background picture display module includes:Request instruction transmitting element, for based on acquired positional information, the service connected to be established to the mobile terminal Device sends request instruction;Wherein, the request instruction is used to indicate that the server transmission is associated with the positional information At least one background picture;Display unit, at least one background picture for the server received to be sent are shown.
- 7. mobile terminal according to claim 5, it is characterised in that the background picture, which changes module, to be included:Boundary line reading unit, if the input operation of the boundary line in preview image, detecting reserved area, then read The boundary line inputted;Reserved area determining unit, for based on the boundary line, determining the selection range of reserved area;Unit is changed, for the background area in preview image to be replaced by into the target background picture.
- 8. mobile terminal according to claim 7, it is characterised in that the reserved area determining unit includes:Gray processing handles subelement, for carrying out gray processing processing to preview image;Gray value recognizes subelement, for edge based on reserved area gray value and background area edge gray value Difference, and with reference to the boundary line, determine the selection range of reserved area.
- 9. a kind of mobile terminal, it is characterised in that including processor, memory is stored on the memory and can be described The computer program run on processor, the computer program are realized during the computing device as in Claims 1-4 The step of image pickup method described in any one.
- 10. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the step of the image pickup method as any one of Claims 1-4 is realized when the computer program is executed by processor Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710973244.1A CN107707823A (en) | 2017-10-18 | 2017-10-18 | A kind of image pickup method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710973244.1A CN107707823A (en) | 2017-10-18 | 2017-10-18 | A kind of image pickup method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107707823A true CN107707823A (en) | 2018-02-16 |
Family
ID=61181660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710973244.1A Pending CN107707823A (en) | 2017-10-18 | 2017-10-18 | A kind of image pickup method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107707823A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108174109A (en) * | 2018-03-15 | 2018-06-15 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
CN108600635A (en) * | 2018-05-22 | 2018-09-28 | Oppo(重庆)智能科技有限公司 | Image pickup method, device and the electronic equipment of image |
CN109102555A (en) * | 2018-06-29 | 2018-12-28 | 维沃移动通信有限公司 | A kind of image edit method and terminal |
CN109377502A (en) * | 2018-10-15 | 2019-02-22 | 深圳市中科明望通信软件有限公司 | A kind of image processing method, image processing apparatus and terminal device |
CN110866138A (en) * | 2018-08-17 | 2020-03-06 | 京东数字科技控股有限公司 | Background generation method and system, computer system, and computer-readable storage medium |
CN111447389A (en) * | 2020-04-22 | 2020-07-24 | 广州酷狗计算机科技有限公司 | Video generation method, device, terminal and storage medium |
CN111782100A (en) * | 2020-07-06 | 2020-10-16 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for previewing background picture |
CN112422825A (en) * | 2020-11-16 | 2021-02-26 | 珠海格力电器股份有限公司 | Intelligent photographing method, device, equipment and computer readable medium |
CN112468868A (en) * | 2020-11-27 | 2021-03-09 | 广州富港生活智能科技有限公司 | Shooting background replacing method and device of automatic shooting equipment |
CN112954210A (en) * | 2021-02-08 | 2021-06-11 | 维沃移动通信(杭州)有限公司 | Photographing method and device, electronic equipment and medium |
EP4109879A4 (en) * | 2020-03-13 | 2023-10-04 | Huawei Technologies Co., Ltd. | Image color retention method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104902189A (en) * | 2015-06-24 | 2015-09-09 | 小米科技有限责任公司 | Picture processing method and picture processing device |
CN105338242A (en) * | 2015-10-29 | 2016-02-17 | 努比亚技术有限公司 | Image synthesis method and device |
CN105450926A (en) * | 2015-11-12 | 2016-03-30 | 广东欧珀移动通信有限公司 | Photo taking method, photo taking device and mobile terminal |
CN105791661A (en) * | 2014-12-22 | 2016-07-20 | 深圳富泰宏精密工业有限公司 | Shooting system and method |
CN105869198A (en) * | 2015-12-14 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Multimedia photograph generating method, apparatus and device, and mobile phone |
CN106447741A (en) * | 2016-11-30 | 2017-02-22 | 努比亚技术有限公司 | Picture automatic synthesis method and system |
-
2017
- 2017-10-18 CN CN201710973244.1A patent/CN107707823A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791661A (en) * | 2014-12-22 | 2016-07-20 | 深圳富泰宏精密工业有限公司 | Shooting system and method |
CN104902189A (en) * | 2015-06-24 | 2015-09-09 | 小米科技有限责任公司 | Picture processing method and picture processing device |
CN105338242A (en) * | 2015-10-29 | 2016-02-17 | 努比亚技术有限公司 | Image synthesis method and device |
CN105450926A (en) * | 2015-11-12 | 2016-03-30 | 广东欧珀移动通信有限公司 | Photo taking method, photo taking device and mobile terminal |
CN105869198A (en) * | 2015-12-14 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Multimedia photograph generating method, apparatus and device, and mobile phone |
CN106447741A (en) * | 2016-11-30 | 2017-02-22 | 努比亚技术有限公司 | Picture automatic synthesis method and system |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108174109A (en) * | 2018-03-15 | 2018-06-15 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
CN108600635A (en) * | 2018-05-22 | 2018-09-28 | Oppo(重庆)智能科技有限公司 | Image pickup method, device and the electronic equipment of image |
CN109102555B (en) * | 2018-06-29 | 2021-04-23 | 维沃移动通信有限公司 | Image editing method and terminal |
CN109102555A (en) * | 2018-06-29 | 2018-12-28 | 维沃移动通信有限公司 | A kind of image edit method and terminal |
CN110866138A (en) * | 2018-08-17 | 2020-03-06 | 京东数字科技控股有限公司 | Background generation method and system, computer system, and computer-readable storage medium |
CN109377502A (en) * | 2018-10-15 | 2019-02-22 | 深圳市中科明望通信软件有限公司 | A kind of image processing method, image processing apparatus and terminal device |
EP4109879A4 (en) * | 2020-03-13 | 2023-10-04 | Huawei Technologies Co., Ltd. | Image color retention method and device |
CN111447389A (en) * | 2020-04-22 | 2020-07-24 | 广州酷狗计算机科技有限公司 | Video generation method, device, terminal and storage medium |
CN111447389B (en) * | 2020-04-22 | 2022-11-04 | 广州酷狗计算机科技有限公司 | Video generation method, device, terminal and storage medium |
CN111782100A (en) * | 2020-07-06 | 2020-10-16 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for previewing background picture |
CN112422825A (en) * | 2020-11-16 | 2021-02-26 | 珠海格力电器股份有限公司 | Intelligent photographing method, device, equipment and computer readable medium |
CN112468868A (en) * | 2020-11-27 | 2021-03-09 | 广州富港生活智能科技有限公司 | Shooting background replacing method and device of automatic shooting equipment |
CN112954210A (en) * | 2021-02-08 | 2021-06-11 | 维沃移动通信(杭州)有限公司 | Photographing method and device, electronic equipment and medium |
CN112954210B (en) * | 2021-02-08 | 2023-04-18 | 维沃移动通信(杭州)有限公司 | Photographing method and device, electronic equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107707823A (en) | A kind of image pickup method and mobile terminal | |
CN107172346A (en) | A kind of weakening method and mobile terminal | |
CN105847674A (en) | Preview image processing method based on mobile terminal, and mobile terminal therein | |
CN107181913B (en) | A kind of photographic method and mobile terminal | |
CN107368150A (en) | A kind of photographic method and mobile terminal | |
CN106713780A (en) | Control method for flash lamp and mobile terminal | |
CN107302655B (en) | It is a kind of to shoot the adjusting method and mobile terminal found a view | |
CN107404577B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN107105160A (en) | A kind of method, system and mobile terminal for starting camera | |
CN107464206A (en) | A kind of watermark adding method and mobile terminal | |
CN106126108B (en) | A kind of generation method and mobile terminal of thumbnail | |
CN106506962A (en) | A kind of image processing method and mobile terminal | |
CN107147852A (en) | Image capturing method, mobile terminal and computer-readable recording medium | |
CN107657591A (en) | A kind of image processing method and mobile terminal | |
CN107084736A (en) | A kind of air navigation aid and mobile terminal | |
CN106208206B (en) | A kind of wireless charging method and mobile terminal | |
CN107155064A (en) | A kind of image pickup method and mobile terminal | |
CN104391646A (en) | Method and device for adjusting object attribute information | |
CN106506942A (en) | A kind of photographic method and mobile terminal | |
CN106681603A (en) | Method for adjusting video playing progress and mobile terminal | |
CN106445235A (en) | Touch starting position identification method and mobile terminal | |
CN107483821A (en) | A kind of image processing method and mobile terminal | |
CN107590469A (en) | A kind of method for detecting human face and mobile terminal | |
CN106210512A (en) | A kind of photographic head changing method and mobile terminal | |
CN107360375A (en) | A kind of image pickup 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180216 |
|
RJ01 | Rejection of invention patent application after publication |