CN109120855A - A kind of comparison photographic method, terminal and readable storage medium storing program for executing - Google Patents
A kind of comparison photographic method, terminal and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109120855A CN109120855A CN201811242909.2A CN201811242909A CN109120855A CN 109120855 A CN109120855 A CN 109120855A CN 201811242909 A CN201811242909 A CN 201811242909A CN 109120855 A CN109120855 A CN 109120855A
- Authority
- CN
- China
- Prior art keywords
- marker
- region
- data
- terminal
- contour layer
- 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
Abstract
The embodiment of the invention discloses a kind of comparison photographic methods, are applied to terminal, which comprises selection target picture simultaneously copies as first object picture and the second Target Photo;Processing is sharpened to generate contour layer to the first object picture;Second Target Photo is handled using the contour layer;Treated second Target Photo and the contour layer are overlapped to generate marker of taking pictures;It is taken pictures based on the marker of taking pictures.The present invention also provides a kind of terminal readable storage medium storing program for executing, can be shot again based on part is satisfied in any photo of selection, to obtain the whole photo for being all satisfied user's regard, to promote user experience.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of comparison photographic methods, terminal and computer-readable storage
Medium.
Background technique
When taking pictures, user generally can shoot many, then select one that oneself is most satisfied.However it is very much
When user one reference object is filmed, each has a part that oneself is liked in possible multiple pictures, and
There are some places that you is not allowed to be satisfied with again.So so that in multiple pictures all without one be most allow oneself be satisfied with, all delete
Except again unfortunately, wanting to re-shoot can may not clap oneself wherein a certain place oneself liked, and so cause user experience again
It is very poor.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of comparison photographic method, terminal and computer readable storage medium, solution
It takes pictures in prior art of having determined the not high problem of user experience.
To solve the above problems, being applied to terminal the present invention provides a kind of comparison photographic method, which comprises
Selection target picture simultaneously copies as first object picture and the second Target Photo;Processing is sharpened to the first object picture
To generate contour layer;Second Target Photo is handled using the contour layer;It will treated second target
Picture and the contour layer are overlapped to generate marker of taking pictures;It is taken pictures based on the marker of taking pictures.
Optionally, described the step of being handled using the contour layer second Target Photo, is specifically included: will
The contour layer is superimposed on second Target Photo;Data are selected on second Target Photo according to the contour layer
Wipe region.
Optionally, described to be had the step of selecting data erasing region on second Target Photo according to the contour layer
Body includes: the enclosed region clicked and be made of on second Target Photo the contour line in the contour layer;The institute that will click on
It states enclosed region and is set as data reservation region;By region is set in addition to the data retain region on second Target Photo
It is set to data erasing region.
Optionally, described the step of being handled using the contour layer second Target Photo, is specific further include:
It controls the data and retains region color burn to preset value.
Optionally, described the step of being handled using the contour layer second Target Photo, is specifically included: needle
Data erasing processing is carried out to the data erasing region on second Target Photo.
Optionally, described the step of being handled using the contour layer second Target Photo, is specific further include:
Control carries out data erasing treated data and wipes the transparent display in region.
Optionally, described to be specifically included based on the step of marker is taken pictures of taking pictures: to be obtained by camera pre-
Look at image;The marker of taking pictures is covered on the preview image;When the contour line taken pictures on marker with it is described
When the part scenery of preview image is overlapped, present image is shot by camera.
Optionally, described the step of being taken pictures based on the marker of taking pictures, is specific further include: will work as described in shooting
Preceding image is placed under the marker of taking pictures, and wipes data on marker of taking pictures according to the contour line on marker of taking pictures
Retain region corresponding region on the present image of shooting;By the contour layer removal taken pictures on marker;
By remove the contour layer take pictures marker with treated shooting the present image carry out image co-registration;Storage carries out
Image after image co-registration.
Further, the present invention also provides a kind of terminals, including processor, memory and communication bus;The storage
Device, for storing comparison camera program;The communication bus is for realizing the connection communication between processor and memory;It is described
The step of processor is for executing comparison photographic method as described above.
Further, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing be stored with one or
The multiple programs of person, one or more of programs can be executed by one or more processor, to realize as above any one institute
The step of comparison photographic method stated.
By implementing above scheme, can be shot again, based on part is satisfied in any photo of selection to obtain
It is rounded the photo that body is all satisfied user's regard, to promote user experience.
Detailed description of the invention
In attached drawing (it is not necessarily drawn to scale), similar appended drawing reference can describe phase in different views
As component.Similar reference numerals with different letter suffix can indicate the different examples of similar component.Attached drawing with example and
Unrestricted mode generally shows each embodiment discussed herein.
A kind of hardware structural diagram of Fig. 1 terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram for comparing photographic method provided in an embodiment of the present invention;
Fig. 4 is map overlay schematic diagram in a kind of comparison photographic method provided in an embodiment of the present invention;
Fig. 5 is a kind of module diagram of terminal of the present invention;
Fig. 6 is that a kind of terminal of the present invention forms structural schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
1 describe to realize the terminal of each embodiment of the present invention with reference to the drawings.In subsequent description, use is used
In indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself is simultaneously
There is no specific meaning.Therefore, " module " can be used mixedly with " component ".
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone,
Smart phone, laptop, digit broadcasting receiver, personal digital assistant (PDA), tablet computer (PAD), portable more matchmakers
The fixed terminal of the mobile terminal of body player (PMP), navigation device etc. and such as number TV, desktop computer etc..
Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for mobile purpose
Except element, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the terminal of each embodiment hardware configuration signal.
Referring to Fig. 1, a kind of hardware structural diagram of its terminal of embodiment to realize the present invention, which can
To include: RF (RadioFrequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/view
Frequently input unit 104, sensor 105, display unit 106, user input unit 107, terminal unit 108, memory 109, place)
Manage the components such as device 110 and power supply 111.It will be understood by those skilled in the art that terminal structure shown in Figure 2 is not constituted
Restriction to mobile terminal, terminal may include perhaps combining certain components or difference than illustrating more or fewer components
Component layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access2000, CDMA 2000), WCDMA (Wide band Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 2 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display panel 1061, and proximity sensor can close display panel when terminal 100 is moved in one's ear
1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone
Configurable fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, temperature
The other sensors such as meter, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 2, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not limited herein specifically
It is fixed.
Terminal unit 108 be used as at least one external device (ED) connect with terminal 100 can by terminal.For example, external
Device may include wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless number
According to port, memory card port, port, the port audio input/output (I/O), view for connecting the device with identification module
The port frequency I/O, ear port etc..Terminal unit 108 can be used for receiving the input from external device (ED) (for example, data are believed
Breath, electric power etc.) and by one or more elements that the input received is transferred in terminal 100 or can be used at end
Data are transmitted between end 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it 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 110 is the control centre of terminal, using the various pieces of various terminals and the entire terminal of connection, is led to
It crosses operation or executes the software program and/or module being stored in memory 109, and call and be stored in memory 109
Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 110 may include one
Or multiple processing units;Preferably, processor 110 can integrate application processor and modem processor, wherein application processing
The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage
Solution, above-mentioned modem processor can not also be integrated into processor 110.
Terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be with
It is logically contiguous by power-supply management system and processor 110, thus by power-supply management system realize management charging, electric discharge, with
And the functions such as power managed.
Terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send the such as wired of data and
Wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned terminal hardware structure and communication system, each embodiment of the present invention is proposed.
The embodiment of the present invention provides a kind of comparison photographic method, is applied to terminal.Referring to shown in Fig. 3, this method includes
Following steps:
Step S301, selection target picture and first object picture and the second Target Photo are copied as.
Specifically, the terminal preferably can be mobile terminal, thus it is possible to vary variform, such as can be to have and touch
Control the terminals such as the mobile phone (mobile phone), iPad, notebook of function.
Terminal is also referred to as terminal device, is the equipment for being in network outermost in computer network, is mainly used for user information
Input and the output of processing result etc..In early stage computer system, due to main frame valuableness, a host
Multiple terminals can be generally configured, these terminals itself do not have computing capability, only undertake the work of information input output, operation
It is completed with processing by host.In the personal computer epoch, personal computer can run the program of referred to as terminal emulator
To imitate the work of a terminal.With the development of mobile network, mobile terminal (such as mobile phone, PAD) has obtained widely answering
With.At this point, terminal can not only undertake the work of input and output, while also can be carried out certain operation and processing, realize that part is
System function.
Mobile terminal refers to the equipment that can be used on the move, broad sense say including mobile phone, notebook, tablet computer,
POS machine, or even including vehicle-mounted computer.But refer to mobile phone or the intelligent hand with a variety of application functions in most cases
Machine and tablet computer.As network and technology are towards the development in more and more broadband direction, Mobile Communication Industry will trend
The real mobile message epoch.On the other hand, with the rapid development of integrated circuit technique, the processing capacity of mobile terminal is
Have powerful processing capacity, mobile terminal becomes an integrated information processing platform from simple call tool.This
Also more wide development space is increased to mobile terminal.Mobile terminal is as simple communication equipment with Mobile Communication Development
The history of existing decades.Mobile intelligent terminal is almost changed into the crucial entrance of Internet service between a flash and mainly creates
New platform, new media, e-commerce and information service platform, Internet resources, mobile network resource and environmental interaction resource
Most important hinge, operating system and processor chips even become the strategy system of current entire information and communication technology (ICT) industry
High point.Mobile intelligent terminal can be referred to as intelligent terminal, and mobile intelligent terminal possesses access the Internet capability, usually carry each
Kind operating system can customize various functions according to user demand.In life common intelligent terminal include mobile intelligent terminal,
Vehicle intelligent terminal, smart television, wearable device etc..
In the present embodiment, Target Photo is preferably that terminal shoots and is stored in the photo in photograph album.Therefore selection target
The step of picture is specially the selection target picture from terminal photograph album, while the Target Photo of selection being replicated, to generate
First object picture and the second Target Photo.
Step S302, processing is sharpened to generate contour layer to the first object picture.
In the present embodiment, processing is sharpened for first object picture and extract specific contour line.Its step
It specifically includes: by image sharpening, keeping the edge in image obvious;By image black albefaction, so that image is based on two kinds of black and white
Color treatments;The lines of single pixel are processed the image into, i.e., a thick lines are refined as to the hachure of a single pixel;It is right again
Lines figure is extracted to generate contour layer.
Step S303, second Target Photo is handled using the contour layer.
In the present embodiment, described the step of being handled using the contour layer second Target Photo, is specific
It include: that the contour layer is superimposed on second Target Photo;According to the contour layer on second Target Photo
Data are selected to wipe region.Wherein, described that data is selected to wipe region on second Target Photo according to the contour layer
The step of specifically include: click the enclosed region being made of on second Target Photo the contour line in the contour layer;It will
The enclosed region clicked is set as data and retains region;Will on second Target Photo except the data retain region it
Exterior domain is set as data erasing region.Wherein after clicking the data reserved area, control data retain the color in region
Deepen to a preset value.Specifically, since the second Target Photo is the not no picture Jing Guo any processing, the target figure with selection
Piece is completely the same, after covering above-mentioned contour layer above the second Target Photo, then shows the contour line by contour layer
A variety of different regions of segmentation, the region retained by the operation selection data of click, i.e., will not carry out data processing to it
Region, and on entire second Target Photo in addition to data retain region other than be then set as data scratching area, wherein the number
It can be wiped by data according to scratching area, so that the region shows pellucidity.In addition, selecting data reserved area above
During domain, retains region to identify the data of selection, retain region for data and carry out the mark of color, for example control
The background color that the data of selection retain region is deepened.The background color of certain above-mentioned intensification can pass through preset trigger command
It is cancelled.
Step S304, treated second Target Photo and the contour layer are overlapped to generate instruction of taking pictures
Layer.
In the present embodiment, treated, and the second Target Photo includes the portion of the data portion retained and erasing data
Point, by treated, the second Target Photo is superimposed contour layer one marker of taking pictures of composition again, and the marker of taking pictures can be shown
The profile in the region after showing data erasing.Specifically, above-mentioned marker of taking pictures can also further protect contour layer in data
It stays the contour line left at region to be wiped, only retains the contour line in data scratching area domain.
Step S305, it is taken pictures based on the marker of taking pictures.
In the present embodiment, described to be specifically included based on the step of marker is taken pictures of taking pictures: to pass through camera shooting
Head obtains preview image;The marker of taking pictures is covered on the preview image;When the profile taken pictures on marker
When line is overlapped with the part scenery of the preview image, present image is shot by camera.Further, above-mentioned steps are also
It include: that the present image of shooting is placed under the marker of taking pictures, and according to the contour line on marker of taking pictures
It wipes data on marker of taking pictures and retains region corresponding region on the present image of shooting;By the marker of taking pictures
On the contour layer removal;By remove the contour layer take pictures marker with treated shooting the present image into
Row image co-registration;Storage carries out the image after image co-registration.During above-mentioned processing method, the superposition schematic diagram of each layer picture
As shown in Figure 4.
Photographic method is compared provided by the embodiment of the present invention, be can choose the most satisfied part of picture and is finally obtained one
The photo that whole picture meets user's regard is opened, the user experience is improved.
Fig. 5 is a kind of module diagram of terminal of the present invention, and the terminal includes selecting module 501, first processing module
502, Second processing module 503, laminating module 504, photo module 505, memory 506 and processor 507, above-mentioned functional module
Memory 506 is stored in actually with program code, and is executed by processor 507, to realize in above-described embodiment
Step or method.
Selecting module 501 is for selection target picture and copies as first object picture and the second Target Photo.
Specifically, the terminal preferably can be mobile terminal, thus it is possible to vary variform, such as can be to have and touch
Control the terminals such as the mobile phone (mobile phone), iPad, notebook of function.
Terminal is also referred to as terminal device, is the equipment for being in network outermost in computer network, is mainly used for user information
Input and the output of processing result etc..In early stage computer system, due to main frame valuableness, a host
Multiple terminals can be generally configured, these terminals itself do not have computing capability, only undertake the work of information input output, operation
It is completed with processing by host.In the personal computer epoch, personal computer can run the program of referred to as terminal emulator
To imitate the work of a terminal.With the development of mobile network, mobile terminal (such as mobile phone, PAD) has obtained widely answering
With.At this point, terminal can not only undertake the work of input and output, while also can be carried out certain operation and processing, realize that part is
System function.
Mobile terminal refers to the equipment that can be used on the move, broad sense say including mobile phone, notebook, tablet computer,
POS machine, or even including vehicle-mounted computer.But refer to mobile phone or the intelligent hand with a variety of application functions in most cases
Machine and tablet computer.As network and technology are towards the development in more and more broadband direction, Mobile Communication Industry will trend
The real mobile message epoch.On the other hand, with the rapid development of integrated circuit technique, the processing capacity of mobile terminal is
Have powerful processing capacity, mobile terminal becomes an integrated information processing platform from simple call tool.This
Also more wide development space is increased to mobile terminal.Mobile terminal is as simple communication equipment with Mobile Communication Development
The history of existing decades.Mobile intelligent terminal is almost changed into the crucial entrance of Internet service between a flash and mainly creates
New platform, new media, e-commerce and information service platform, Internet resources, mobile network resource and environmental interaction resource
Most important hinge, operating system and processor chips even become the strategy system of current entire information and communication technology (ICT) industry
High point.Mobile intelligent terminal can be referred to as intelligent terminal, and mobile intelligent terminal possesses access the Internet capability, usually carry each
Kind operating system can customize various functions according to user demand.In life common intelligent terminal include mobile intelligent terminal,
Vehicle intelligent terminal, smart television, wearable device etc..
In the present embodiment, Target Photo is preferably that terminal shoots and is stored in the photo in photograph album.Therefore selection target
The step of picture is specially the selection target picture from terminal photograph album, while the Target Photo of selection being replicated, to generate
First object picture and the second Target Photo.
First processing module 502 is used to be sharpened the first object picture processing to generate contour layer.
In the present embodiment, processing is sharpened for first object picture and extract specific contour line.Its step
It specifically includes: by image sharpening, keeping the edge in image obvious;By image black albefaction, so that image is based on two kinds of black and white
Color treatments;The lines of single pixel are processed the image into, i.e., a thick lines are refined as to the hachure of a single pixel;It is right again
Lines figure is extracted to generate contour layer.
Second processing module 503 is for handling second Target Photo using the contour layer.
In the present embodiment, described the step of being handled using the contour layer second Target Photo, is specific
It include: that the contour layer is superimposed on second Target Photo;According to the contour layer on second Target Photo
Data are selected to wipe region.Wherein, described that data is selected to wipe region on second Target Photo according to the contour layer
The step of specifically include: click the enclosed region being made of on second Target Photo the contour line in the contour layer;It will
The enclosed region clicked is set as data and retains region;Will on second Target Photo except the data retain region it
Exterior domain is set as data erasing region.Wherein after clicking the data reserved area, control data retain the color in region
Deepen to a preset value.Specifically, since the second Target Photo is the not no picture Jing Guo any processing, the target figure with selection
Piece is completely the same, after covering above-mentioned contour layer above the second Target Photo, then shows the contour line by contour layer
A variety of different regions of segmentation, the region retained by the operation selection data of click, i.e., will not carry out data processing to it
Region, and on entire second Target Photo in addition to data retain region other than be then set as data scratching area, wherein the number
It can be wiped by data according to scratching area, so that the region shows pellucidity.In addition, selecting data reserved area above
During domain, retains region to identify the data of selection, retain region for data and carry out the mark of color, for example control
The background color that the data of selection retain region is deepened.The background color of certain above-mentioned intensification can pass through preset trigger command
It is cancelled.
Laminating module 504 is used to for treated second Target Photo and the contour layer being overlapped to generate and clap
According to marker.
In the present embodiment, treated, and the second Target Photo includes the portion of the data portion retained and erasing data
Point, by treated, the second Target Photo is superimposed contour layer one marker of taking pictures of composition again, and the marker of taking pictures can be shown
The profile in the region after showing data erasing.Specifically, above-mentioned marker of taking pictures can also further protect contour layer in data
It stays the contour line left at region to be wiped, only retains the contour line in data scratching area domain.
Photo module 505 is used to take pictures based on the marker of taking pictures.
In the present embodiment, described to be specifically included based on the step of marker is taken pictures of taking pictures: to pass through camera shooting
Head obtains preview image;The marker of taking pictures is covered on the preview image;When the profile taken pictures on marker
When line is overlapped with the part scenery of the preview image, present image is shot by camera.Further, above-mentioned steps are also
It include: that the present image of shooting is placed under the marker of taking pictures, and according to the contour line on marker of taking pictures
It wipes data on marker of taking pictures and retains region corresponding region on the present image of shooting;By the marker of taking pictures
On the contour layer removal;By remove the contour layer take pictures marker with treated shooting the present image into
Row image co-registration;Storage carries out the image after image co-registration.During above-mentioned processing method, the superposition schematic diagram of each layer picture
As shown in Figure 4.
The there is provided comparison photographic method of the embodiment of the present invention can choose the most satisfied part of picture and finally obtain one
Whole picture meets the photo of user's regard, and the user experience is improved.
Fig. 6 is the composed structure schematic diagram of terminal of the present invention, as shown in fig. 6, the terminal includes at least: memory 601,
Communication bus 602 and processor 603, in which:
The memory 601, for storing comparison camera program;
The communication bus 602, for realizing the connection communication between processor and memory;
The processor 603, for executing the comparison camera program stored in memory, to realize as described in above-mentioned Fig. 3
Step.
The present invention also provides a kind of computer readable storage mediums.Comparison is stored on the computer readable storage medium
Camera program, the comparison camera program realize step as described above when being executed by processor.
It should be noted that the description of the above terminal embodiment, be with the description of above method embodiment it is similar, have
The similar beneficial effect with embodiment of the method.For undisclosed technical detail in terminal embodiment of the present invention, this hair is please referred to
The description of bright embodiment of the method and understand.
It should be noted that in the embodiment of the present invention, if realizing that above-mentioned comparison is clapped in the form of software function module
According to method, and when sold or used as an independent product, also can store in a computer readable storage medium.Base
In such understanding, substantially the part that contributes to existing technology can be in other words for the technical solution of the embodiment of the present invention
The form of software product embodies, which is stored in a storage medium, including some instructions to
So that a calculating equipment (can be personal computer, server or network equipment etc.) executes each embodiment of the present invention
The all or part of the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read Only
Memory, ROM), the various media that can store program code such as magnetic or disk.In this way, the embodiment of the present invention does not limit
It is combined in any specific hardware and software.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of comparison photographic method is applied to terminal, which is characterized in that the described method includes:
Selection target picture simultaneously copies as first object picture and the second Target Photo;
Processing is sharpened to generate contour layer to the first object picture;
Second Target Photo is handled using the contour layer;
Treated second Target Photo and the contour layer are overlapped to generate marker of taking pictures;And
It is taken pictures based on the marker of taking pictures.
2. comparison photographic method as described in claim 1, which is characterized in that described to utilize the contour layer to second mesh
The step of piece is handled of marking on a map specifically includes:
The contour layer is superimposed on second Target Photo;
Data are selected to wipe region on second Target Photo according to the contour layer.
3. as claimed in claim 2 comparison photographic method, which is characterized in that it is described according to the contour layer in second mesh
The step of on piece of marking on a map selection data erasing region, specifically includes:
Click the enclosed region being made of on second Target Photo the contour line in the contour layer;
The enclosed region that will click on is set as data and retains region;
By region is set as data erasing region in addition to the data retain region on second Target Photo.
4. comparison photographic method as claimed in claim 3, which is characterized in that described to utilize the contour layer to second mesh
The step of piece of marking on a map is handled is specific further include:
It controls the data and retains region color burn to preset value.
5. comparison photographic method as claimed in claim 2, which is characterized in that described to utilize the contour layer to second mesh
The step of piece is handled of marking on a map specifically includes:
Data erasing processing is carried out for the data erasing region on second Target Photo.
6. comparison photographic method as claimed in claim 5, which is characterized in that described to utilize the contour layer to second mesh
The step of piece of marking on a map is handled is specific further include:
Control carries out data erasing treated data and wipes the transparent display in region.
7. comparison photographic method as described in claim 1, which is characterized in that described to be taken pictures based on the marker of taking pictures
The step of specifically include:
Preview image is obtained by camera;
The marker of taking pictures is covered on the preview image;
When the contour line taken pictures on marker is overlapped with the part scenery of the preview image, worked as by camera shooting
Preceding image.
8. comparison photographic method as claimed in claim 7, which is characterized in that described to be taken pictures based on the marker of taking pictures
The step of it is specific further include:
The present image of shooting is placed under the marker of taking pictures, and is wiped according to the contour line on marker of taking pictures
Except data retain region corresponding region on the present image of shooting on marker of taking pictures;
By the contour layer removal taken pictures on marker;
By remove the contour layer take pictures marker with treated shooting the present image carry out image co-registration;
Storage carries out the image after image co-registration.
9. a kind of terminal, which is characterized in that the terminal includes at least: memory, communication bus and processor, in which:
The memory, for storing comparison camera program;
The communication bus, for realizing the connection communication between processor and memory;
The processor, for executing the comparison camera program stored in memory, to realize as described in claim 1 to 8
The step of comparing photographic method.
10. a kind of readable storage medium storing program for executing, comparison camera program, the comparison camera program are stored on the readable storage medium storing program for executing
The step of comparison photographic method as described in claim 1 to 8 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811242909.2A CN109120855A (en) | 2018-10-24 | 2018-10-24 | A kind of comparison photographic method, terminal and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811242909.2A CN109120855A (en) | 2018-10-24 | 2018-10-24 | A kind of comparison photographic method, terminal and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109120855A true CN109120855A (en) | 2019-01-01 |
Family
ID=64855175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811242909.2A Pending CN109120855A (en) | 2018-10-24 | 2018-10-24 | A kind of comparison photographic method, terminal and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120855A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130088614A1 (en) * | 2011-10-07 | 2013-04-11 | Jinsool LEE | Mobile terminal and method for generating an out-of-focus image |
CN103312981A (en) * | 2013-03-22 | 2013-09-18 | 中科创达软件股份有限公司 | Synthetic multi-picture taking method and shooting device |
CN104967790A (en) * | 2014-08-06 | 2015-10-07 | 腾讯科技(北京)有限公司 | Photo shooting method, photo shooting apparatus and mobile terminal |
CN105184787A (en) * | 2015-08-31 | 2015-12-23 | 广州市幸福网络技术有限公司 | Identification camera capable of automatically carrying out portrait cutout and method thereof |
CN105657272A (en) * | 2016-02-04 | 2016-06-08 | 上海卓易科技股份有限公司 | Terminal equipment and photographing method thereof |
CN107395982A (en) * | 2017-08-22 | 2017-11-24 | 北京小米移动软件有限公司 | Photographic method and device |
CN107592451A (en) * | 2017-08-31 | 2018-01-16 | 努比亚技术有限公司 | A kind of multi-mode auxiliary photo-taking method, apparatus and computer-readable recording medium |
CN108184050A (en) * | 2017-12-15 | 2018-06-19 | 维沃移动通信有限公司 | A kind of photographic method, mobile terminal |
-
2018
- 2018-10-24 CN CN201811242909.2A patent/CN109120855A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130088614A1 (en) * | 2011-10-07 | 2013-04-11 | Jinsool LEE | Mobile terminal and method for generating an out-of-focus image |
CN103312981A (en) * | 2013-03-22 | 2013-09-18 | 中科创达软件股份有限公司 | Synthetic multi-picture taking method and shooting device |
CN104967790A (en) * | 2014-08-06 | 2015-10-07 | 腾讯科技(北京)有限公司 | Photo shooting method, photo shooting apparatus and mobile terminal |
CN105184787A (en) * | 2015-08-31 | 2015-12-23 | 广州市幸福网络技术有限公司 | Identification camera capable of automatically carrying out portrait cutout and method thereof |
CN105657272A (en) * | 2016-02-04 | 2016-06-08 | 上海卓易科技股份有限公司 | Terminal equipment and photographing method thereof |
CN107395982A (en) * | 2017-08-22 | 2017-11-24 | 北京小米移动软件有限公司 | Photographic method and device |
CN107592451A (en) * | 2017-08-31 | 2018-01-16 | 努比亚技术有限公司 | A kind of multi-mode auxiliary photo-taking method, apparatus and computer-readable recording medium |
CN108184050A (en) * | 2017-12-15 | 2018-06-19 | 维沃移动通信有限公司 | A kind of photographic method, mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107748856A (en) | Two-dimensional code identification method, terminal and computer-readable recording medium | |
CN108322612A (en) | Icon display method, mobile terminal and computer readable storage medium | |
CN107317963A (en) | A kind of double-camera mobile terminal control method, mobile terminal and storage medium | |
CN108459799B (en) | Picture processing method, mobile terminal and computer readable storage medium | |
CN107943390A (en) | A kind of word clone method and mobile terminal | |
CN106203254A (en) | A kind of adjustment is taken pictures the method and device in direction | |
CN108280136A (en) | A kind of multimedia object method for previewing, equipment and computer readable storage medium | |
CN108900780A (en) | A kind of screen light compensation method, mobile terminal and storage medium | |
CN108241752A (en) | Photo display methods, mobile terminal and computer readable storage medium | |
CN108198146A (en) | A kind of noise-reduction method, equipment and computer readable storage medium | |
CN109213407A (en) | A kind of screenshot method and terminal device | |
CN109947248A (en) | Vibration control method, mobile terminal and computer readable storage medium | |
CN109697008A (en) | A kind of content share method, terminal and computer readable storage medium | |
CN110187943A (en) | A kind of record screen method, terminal and computer readable storage medium | |
CN109992183A (en) | Preview picture and the method for selection, terminal and storage medium | |
CN108255368A (en) | Using methods of exhibiting, device and computer readable storage medium | |
CN108958936A (en) | Application programe switch-over method, mobile terminal and computer readable storage medium | |
CN107566608A (en) | A kind of system air navigation aid, equipment and computer-readable recording medium | |
CN109544140A (en) | A kind of identification code scan method, terminal and readable storage medium storing program for executing | |
CN108320265A (en) | A kind of image processing method, terminal and computer readable storage medium | |
CN108680166A (en) | Navigation information is compatible with display methods, terminal and computer readable storage medium | |
CN108229389A (en) | Facial image processing method, apparatus and computer readable storage medium | |
CN108322595A (en) | A kind of control method, terminal and computer readable storage medium | |
CN108771870A (en) | Voice transmission method, terminal based on game and computer readable storage medium | |
CN108566515A (en) | It takes pictures processing method, mobile terminal and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190101 |