CN106934848A - A kind of image processing method and mobile terminal - Google Patents
A kind of image processing method and mobile terminal Download PDFInfo
- Publication number
- CN106934848A CN106934848A CN201710150732.2A CN201710150732A CN106934848A CN 106934848 A CN106934848 A CN 106934848A CN 201710150732 A CN201710150732 A CN 201710150732A CN 106934848 A CN106934848 A CN 106934848A
- Authority
- CN
- China
- Prior art keywords
- background
- pending
- picture
- target photo
- classification
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention provides a kind of image processing method and mobile terminal, and the method includes:If receiving the operational order that puzzle template is added for Target Photo of user input, obtain the Template Information of puzzle template, the puzzle template includes frame and the background in kind in the frame, and the Template Information includes the positional information of the classification in kind of background in kind and background in kind;In determining the background in kind of the puzzle template according to classification in kind, pending background in kind unmatched with the picture/mb-type of the Target Photo;Positional information according to the pending background in kind is purged to the pending background in kind.Due to being judged with whether Target Photo matches background in kind, and unmatched background in kind is defined as pending background in kind, then pending background in kind is purged, so as to improve the harmony of Target Photo and puzzle template, therefore improve the picture display effect after picture addition puzzle template.
Description
Technical field
The present invention relates to picture Processing Technique field, more particularly to a kind of image processing method and mobile terminal.
Background technology
It is well known that picture to be generally placed in the designated area of puzzle template when puzzle template is added for existing picture
Shown.In the puzzle template generally in be provided with background in kind, after to picture addition puzzle template, picture and reality
Thing background can show.But due to different types of picture, the background in kind that correspondence can be matched is different, if the back of the body in kind
Scape is mismatched with picture, it will after causing picture to add puzzle template, display effect is poor.
The content of the invention
The embodiment of the present invention provides a kind of image processing method and mobile terminal, not solve background in kind and picture not
Match somebody with somebody, after causing picture to add puzzle template, the poor problem of display effect.
In a first aspect, a kind of image processing method is the embodiment of the invention provides, including:
If receiving the operational order that puzzle template is added for Target Photo of user input, the template letter of puzzle template is obtained
Breath, the puzzle template includes frame and the background in kind in the frame, and the Template Information includes background in kind
The positional information of classification in kind and background in kind;
In determining the background in kind of the puzzle template according to classification in kind, with the picture/mb-type of the Target Photo not
The background pending in kind matched somebody with somebody;
Positional information according to the pending background in kind is purged to the pending background in kind.
Second aspect, the embodiment of the present invention also provides a kind of mobile terminal, including:
Acquisition module, if the operational order that puzzle template is added for Target Photo for receiving user input, obtains and spell
The Template Information of artwork plate, the puzzle template includes frame and the background in kind in the frame, the Template Information
The positional information of classification in kind and background in kind including background in kind;
Determining module, in the background in kind that the puzzle template is determined according to classification in kind, with the Target Photo
The unmatched pending background in kind of picture/mb-type;
Processing module, is carried out for the positional information according to the pending background in kind to the pending background in kind
Remove.
So, in the embodiment of the present invention, if receiving the operational order that puzzle template is added for Target Photo of user input,
The Template Information of puzzle template is obtained, the puzzle template includes frame and the background in kind in the frame, the mould
Plate information includes the positional information of the classification in kind of background in kind and background in kind;The puzzle template is determined according to classification in kind
Background in kind in, pending background in kind unmatched with the picture/mb-type of the Target Photo;According to the pending reality
The positional information of thing background is purged to the pending background in kind.Due to whether being matched with Target Photo to background in kind
Judged, and unmatched background in kind is defined as pending background in kind, then carried out pending background in kind
Remove, so as to improve the harmony of Target Photo and puzzle template, therefore improve the picture after picture addition puzzle template
Display effect.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to needed for embodiment of the present invention description
The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention,
For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the flow chart of the image processing method that first embodiment of the invention is provided;
Fig. 2 is one of flow chart of image processing method that second embodiment of the invention is provided;
Fig. 3 is the two of the flow chart of the image processing method that second embodiment of the invention is provided;
Fig. 4 is to determine the flow chart of pending background in kind in the image processing method that second embodiment of the invention is provided;
Fig. 5 is the structure chart of the mobile terminal that third embodiment of the invention is provided;
Fig. 6 is the structure chart of processing module in the mobile terminal that third embodiment of the invention is provided;
Fig. 7 is the structure chart of determining module in the mobile terminal that third embodiment of the invention is provided;
Fig. 8 is the structure chart of the mobile terminal that fourth embodiment of the invention is provided;
Fig. 9 is the structure chart of the mobile terminal that fifth embodiment of the invention is provided.
Specific 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 is described, it is clear that described embodiment is a part of embodiment of the 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.
First embodiment
Referring to Fig. 1, Fig. 1 is the flow chart of image processing method provided in an embodiment of the present invention, as shown in figure 1, including with
Lower step:
Step 101, if receiving the operational order that puzzle template is added for Target Photo of user input, obtains puzzle template
Template Information, the puzzle template includes frame and the background in kind in the frame, and the Template Information includes real
The positional information of the classification in kind of thing background and background in kind;
The image processing method that the present embodiment is provided is mainly used in picture processing system, for adding picture mosaic to picture
Template is controlled management.For example, to the puzzle template of picture addition in the picture processing application that mobile terminal is installed, to repair
During decorations beautification picture, the puzzle template for adding can be processed, to improve the matching degree of puzzle template and picture.
In the step, above-mentioned Target Photo is locally stored picture, can be that user takes pictures the picture of acquisition, also may be used
Being picture that other people share.
Above-mentioned puzzle template is the puzzle template that the puzzle template of advance storage, or user download.Specifically, use
Family, can selection target picture first when frame is added to Target Photo;Then during selection addition puzzle template function, output
Corresponding puzzle template is selected for user.In other examples, can also be using other modes to Target Photo and spelling
Artwork plate is selected, for example, provide two operation interfaces, and an operation interface is used for selection target picture, another operation circle
Face is used to select puzzle template etc., will not enumerate herein.
Specifically, above-mentioned puzzle template includes frame and the background in kind in the frame, the number of the background in kind
Amount and type can be configured according to actual needs, for example, include a background in kind or multiple real in a frame
Thing background, meanwhile, can be same type of background in kind, or polytype when there is multiple material object backgrounds
Background in kind.Specifically, the classifying rules of background in kind can be configured according to actual needs, for example can be by background in kind
Classification be divided into the classifications such as portrait, animal, building, landscape, sunrise sunset, sky, cuisines, beverage and fruit.In other implementations
In example, can also be numerous to list herein using other dividing modes.In other embodiments, can also be using others
Dividing mode, it is numerous to list herein.Wherein, it refers to that the pixel coordinate of background in kind is contained in side that background in kind is located in frame
In the pixel coordinate of frame, that is to say, that when picture shows, the viewing area of background in kind is located in the viewing area of frame.
It should be noted that puzzle template is made up of frame and background in kind, background in kind can be placed in frame, from
And forming puzzle template so that background in kind is comprised in frame;Frame can also be covered in the corresponding figure of background in kind
On piece, so as to form puzzle template, now the outward flange of the outward flange of frame picture corresponding with background in kind overlaps so that
Background in kind is comprised in frame.
After user have selected the puzzle template of Target Photo, operation can be identified to puzzle template, be somebody's turn to do with obtaining
The positional information of the classification in kind of the background in kind that To Template includes and background in kind.
Step 102, in determining the background in kind of the puzzle template according to classification in kind, the picture with the Target Photo
The unmatched pending background in kind of type;
In the step, the classifying rules of picture/mb-type can be configured according to actual needs, for example can be with class in kind
It is not consistent, it is divided into the classifications such as portrait, animal, building, landscape, sunrise sunset, sky, cuisines, beverage and fruit.In other implementations
In example, can also be numerous to list herein using other dividing modes.Specifically, the matching of picture/mb-type and classification in kind
Rule can be configured according to actual needs, for example, Target Photo of the picture/mb-type for portrait, the background in kind that can be matched
Including building, landscape, sunrise sunset and sky etc.;Picture/mb-type is the Target Photo of landscape, the background bag in kind that can be matched
Include portrait and animal etc..
Step 103, the positional information according to the pending background in kind is purged to the pending background in kind.
In the step, when pending background removing in kind is carried out, the mode of removing be able to can for example be adopted using various
Substituted with the background pixel of frame, i.e., the background color of frame is presented in the position of the background in kind deleted.Certainly, may be used also
Substituted with using other pixels, such as the partial pixel in default background in kind or above-mentioned picture is replaced.
For example when Target Photo is portrait, background in kind includes landscape, sky, beverage and cuisines, then can be according to default
Rule match and obtain beverage and two kinds of cuisines backgrounds in kind are mismatched with Target Photo, and define the unmatched material object
Background is pending background in kind, beverage and the pending background in kind of two kinds of cuisines can be now deleted, to ensure puzzle template
With the harmony of Target Photo.
In the embodiment of the present invention, above-mentioned mobile terminal can be with any intelligence for possessing display and installing function of application eventually
End, for example:Mobile phone, panel computer (Tablet Personal Computer), kneetop computer (Laptop Computer),
Personal digital assistant (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet
Device, MID) or Wearable device (Wearable Device) etc..
So, in the embodiment of the present invention, if receiving the operational order that puzzle template is added for Target Photo of user input,
The Template Information of puzzle template is obtained, the puzzle template includes frame and the background in kind in the frame, the mould
Plate information includes the positional information of the classification in kind of background in kind and background in kind;The puzzle template is determined according to classification in kind
Background in kind in, pending background in kind unmatched with the picture/mb-type of the Target Photo;According to the pending reality
The positional information of thing background is purged to the pending background in kind.Due to whether being matched with Target Photo to background in kind
Judged, and unmatched background in kind is defined as pending background in kind, then carried out pending background in kind
Remove, so as to improve the harmony of Target Photo and puzzle template, therefore improve the picture after picture addition puzzle template
Display effect.
Second embodiment
Reference picture 2, there is provided the flow chart of image processing method of the present invention, second in image processing method of the present invention is real
Apply in example, the difference with first embodiment of the invention is further to be defined to pending background in kind in the present embodiment
The mode of removing, as shown in Fig. 2 above-mentioned steps 103 include:
According to the positional information of the pending background in kind, the pixel of the pending background in kind is replaced with,
The pixel that frame overlaps with pending background in kind.
In the step, the positional information of above-mentioned pending background in kind includes that the pixel of each pixel in background in kind is sat
Mark.Specifically, when the pixel to each pending background in kind is replaced, the pixel of the pending background in kind can be obtained
The pixel coordinate of point, then searches the pixel value of frame corresponding pixel points, then by pending reality according to the pixel coordinate for obtaining
The pixel value of the pixel of thing background replaces with the pixel value of frame corresponding pixel points.So as in pending background pair in kind
The position display the answered background color of frame, has reached the purpose removed to background in kind.
Further, it is corresponding because the mode being purged to pending background in kind is different, in the present embodiment,
Above-mentioned steps 103 can also be replaced with other reset modes, specifically, reference picture 3, above-mentioned steps 103 could alternatively be:
Step 1031 is to step 1033.
Step 1031, acquisition preset the pre-stored reference background for replacing the pending background in kind;
In the step, above-mentioned pre-stored reference background can manually be downloaded for user, or puzzle template is certainly
Band, do not do the restriction for carrying out herein.For example, each Target Photo is correspondingly provided with the background that prestores that multiple users replace, root
Type output correspondence according to Target Photo can be used for the pre-stored reference background replaced.The type in kind of the pre-stored reference background can be with
Relation that is consistent with the type of Target Photo, or being mutually matched.For example, when Target Photo is portrait, what this prestored
Target picture can be portrait, aerial any one of landscape and day.
Step 1032, output preview interface, show the pre-stored reference background for obtaining;
In the step, the quantity of above-mentioned pre-stored reference background can be multiple, in the present embodiment, can export corresponding
Preview interface, shows pre-stored reference background.Then user can browse to default material object background, it is possible to confirm that selection is needed
The pre-stored reference background to be replaced.
Step 1033, the pixel for being based on the pre-stored reference background that the preview interface is selected according to user are waited to locate to described
The pixel of reason background in kind is replaced operation.
In the step, above-mentioned pre-stored reference background can be shown by the way of nine grids or single sequence of pictures
Show, user can browse dragging is carried out to pre-stored reference background;Then the pre-stored reference background of display can be clicked, so as to select
Need to replace the pre-stored reference background for showing.
In the present embodiment, due to that can be replaced to background in kind using pre-stored reference background, such that it is able to effectively keep away
Exempt from, due to removing the background in kind on puzzle template, to cause the problem that puzzle template is single, therefore improve the spirit that picture shows
Activity.
Further, reference picture 4, above-mentioned steps 102 include:
Step 1021, recognizes the picture/mb-type of the Target Photo;
In the step, above-mentioned Target Photo can be identified according to image recognition algorithm, so as to obtain Target Photo
Type.Picture/mb-type judgment principle to Target Photo can be configured according to actual needs, for example, can be according to identification
The information of the object that image recognition algorithm is identified obtaining to above-mentioned Target Photo determines picture/mb-type.General, at one
Comprising multiple objects (such as portrait, animal and landscape) on picture, can determine that the primary and secondary of each object is closed according to the information of object
System, so that it is determined that the type of Target Photo, it may also be said to be the theme of Target Photo.
Optionally, in the present embodiment, above-mentioned steps 1021 include:Recognize the object of the Target Photo;According to each right
Ratio as shared by relative to the Target Photo, determines the picture/mb-type of the Target Photo.For example, when bag in Target Photo
Can be portrait class according to the Target Photo of the shared ratio-dependent in Target Photo of portrait and animal when including portrait and animal
Type or type of animal.Further, it is also possible to each object in picture sets weighted value, with reference to each object relative to the mesh
The ratio shared by piece of marking on a map and corresponding weighted value are compared, so that it is determined that the type of Target Photo.
Step 1022, obtains the corresponding object matching set of the picture/mb-type, and the object matching set includes described
The classification in kind of picture/mb-type matching;
In the step, corresponding matching set can be set to each picture/mb-type, and be stored.For example, can set
The picture/mb-type of portrait is put, corresponding matching set includes building, landscape, sunrise sunset and sky;The picture category of landscape is set
Type, corresponding matching set includes portrait and animal.The picture category of Target Photo is searched and obtained in the matching set of storage
Object matching set corresponding to type.
Step 1023, the classification in kind of the puzzle template is compared with the classification in kind in the object matching set
It is right;
In the step, the classification in kind that will be identified in puzzle template is compared with object matching set, determines picture mosaic
Which is present in object matching set the classification in kind identified in template, and which is not present in object matching set.
Step 1024, is pending by the background set described in kind that classification in kind is not present in the object matching set
Background in kind.
In the step, the corresponding back of the body in kind of all classifications in kind for being not present in the object matching set that will be counted
Scape is set as pending background in kind.For example, above-mentioned Target Photo is portrait, the corresponding object matching set of portrait includes building
Build, landscape, sunrise sunset and sky, the background in kind in above-mentioned puzzle template includes landscape, sky, beverage and cuisines, then exists
After comparing, it will count beverage and cuisines are not present in object matching set, so as to beverage and cuisines are set as
Pending background in kind.Finally pending background in kind is purged, such that it is able to effectively improving Target Photo and spelling
The harmony of artwork plate.
It is understood that due in the present embodiment, corresponding of picture/mb-type being set by way of setting set
With set, therefore user can be according to the demand of oneself and the corresponding matching set of custom selection adjustment, so as to improve picture mosaic
The flexibility of background in kind is removed in template.Further, when the type of Target Photo or the background in kind of puzzle template without
When method is known, then the background in kind not to puzzle template is purged operation.
3rd embodiment
Referring to Fig. 5, Fig. 5 is the structure chart of the mobile terminal that the present invention implements offer, can realize the first to the second implementation
The details of image processing method in example, and reach identical effect.As shown in figure 5, mobile terminal 500 include acquisition module 501,
Determining module 502 and processing module 503, acquisition module 501 are connected with determining module 502, and determining module 502 is gone back and processing module
503 connections, wherein,
Acquisition module 501, if the operational order that puzzle template is added for Target Photo for receiving user input, obtains
The Template Information of puzzle template, the puzzle template includes frame and the background in kind in the frame, the template letter
Breath includes the positional information of the classification in kind of background in kind and background in kind;
Determining module 502, in the background in kind that the puzzle template is determined according to classification in kind, with the target figure
The unmatched pending background in kind of picture/mb-type of piece;
Processing module 503, for the positional information according to the pending background in kind to the pending background in kind
It is purged.
Optionally, processing module 503 specifically for:According to the positional information of the pending background in kind, treated described
The pixel for the treatment of background in kind is replaced with, the pixel that frame overlaps with pending background in kind.
Further, reference picture 6, above-mentioned processing module 503 includes:
Background acquiring unit 5031, carries on the back for obtaining the pre-stored reference preset for replacing the pending background in kind
Scape;
Display unit 5032, for exporting preview interface, shows the pre-stored reference background for obtaining;
Pixel processing unit 5033, the pixel for being based on the pre-stored reference background that the preview interface is selected according to user
Point is replaced operation to the pixel of the pending background in kind.
Further, reference picture 7, above-mentioned determining module 502 includes:
Recognition unit 5021, the picture/mb-type for recognizing the Target Photo;
Set acquiring unit 5022, obtains the corresponding object matching set of the picture/mb-type, the object matching set
Classification in kind including picture/mb-type matching;
Comparing unit 5023, for by the class in kind in the classification in kind of the puzzle template and the object matching set
Do not compare;
Setup unit 5024, the background set described in kind for classification in kind to be not present in the object matching set
It is pending background in kind.
Further, the recognition unit 5021 specifically for:Recognize the object of the Target Photo;According to each object phase
For the ratio shared by the Target Photo, the picture/mb-type of the Target Photo is determined.
In the embodiment of the present invention, if receiving the operational order that puzzle template is added for Target Photo of user input, obtain
The Template Information of puzzle template, the puzzle template includes frame and the background in kind in the frame, the template letter
Breath includes the positional information of the classification in kind of background in kind and background in kind;The reality of the puzzle template is determined according to classification in kind
In thing background, pending background in kind unmatched with the picture/mb-type of the Target Photo;According to the pending back of the body in kind
The positional information of scape is purged to the pending background in kind.Due to being carried out with whether Target Photo matches to background in kind
Judge, and unmatched background in kind be defined as pending background in kind, be then purged pending background in kind,
So as to improve the harmony of Target Photo and puzzle template, therefore improve the picture display effect after picture addition puzzle template
Really.
Fourth embodiment
Referring to Fig. 8, Fig. 8 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize that the first to the second is real
The details of image processing method in example is applied, and reaches identical effect.As shown in figure 8, mobile terminal 800 includes:At least one
Processor 801, memory 802, at least one network interface 804 and user interface 803.Each component in mobile terminal 800
It is coupled by bus system 805.It is understood that bus system 805 is used to realize the connection communication between these components.Always
Linear system unites 805 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But in order to clear
For the sake of Chu's explanation, various buses are all designated as bus system 805 in fig. 8.
Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball
(track ball), 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 may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 802 of system and method described herein be intended to including but not limited to these and it is any its
It is adapted to the memory of type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or
Person their subset, 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. are used for
Realize various basic businesses and process hardware based task.Application program 8022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 8022.
In embodiments of the present invention, by the program for calling memory 802 to store or instruction, specifically, can be application
The program stored in program 8022 or instruction, processor 801 are used for:If receive user input is Target Photo addition picture mosaic mould
The operational order of plate, obtains the Template Information of puzzle template, and the puzzle template includes frame and the reality in the frame
Thing background, the Template Information includes the positional information of the classification in kind of background in kind and background in kind;It is true according to classification in kind
In the background in kind of the fixed puzzle template, pending background in kind unmatched with the picture/mb-type of the Target Photo;Root
The pending background in kind is purged according to the positional information of the pending background in kind.
The method that the embodiments of the present invention are disclosed can apply in processor 801, or be realized by processor 801.
Processor 801 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 801 or software form.Above-mentioned treatment
Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable GateArray, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 802, processor 801 reads the information in memory 802, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Optionally, processor 801 is additionally operable to:According to the positional information of the pending background in kind, will be described pending
The pixel of background in kind is replaced with, the pixel that frame overlaps with pending background in kind.
Optionally, processor 801 is additionally operable to:The pre-stored reference that acquisition presets for replacing the pending background in kind is carried on the back
Scape;Output preview interface, shows the pre-stored reference background for obtaining;The pre-stored reference that the preview interface is selected is based on according to user
The pixel of background is replaced operation to the pixel of the pending background in kind.
Optionally, processor 801 is additionally operable to:Recognize the picture/mb-type of the Target Photo;Obtain the picture/mb-type pair
The object matching set answered, the object matching set includes the classification in kind of picture/mb-type matching;By the picture mosaic mould
The classification in kind of plate is compared with the classification in kind in the object matching set;Classification in kind is not present in the target
The background set described in kind for matching set is pending background in kind.
Optionally, processor 801 is additionally operable to:Recognize the object of the Target Photo;According to each object relative to the mesh
The ratio marked on a map shared by piece, determines the picture/mb-type of the Target Photo.
In the embodiment of the present invention, if receiving the operational order that puzzle template is added for Target Photo of user input, obtain
The Template Information of puzzle template, the puzzle template includes frame and the background in kind in the frame, the template letter
Breath includes the positional information of the classification in kind of background in kind and background in kind;The reality of the puzzle template is determined according to classification in kind
In thing background, pending background in kind unmatched with the picture/mb-type of the Target Photo;According to the pending back of the body in kind
The positional information of scape is purged to the pending background in kind.Due to being carried out with whether Target Photo matches to background in kind
Judge, and unmatched background in kind be defined as pending background in kind, be then purged pending background in kind,
So as to improve the harmony of Target Photo and puzzle template, therefore improve the picture display effect after picture addition puzzle template
Really.
5th embodiment
Fig. 9 is referred to, Fig. 9 is the structure chart of mobile terminal provided in an embodiment of the present invention, can realize the first to the second
The details of image processing method in embodiment, and reach identical effect.As shown in figure 9, mobile terminal 900 includes radio frequency
(Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940, processor 950, audio
Circuit 960, communication module 970 and power supply 980, also including camera (not shown).
Wherein, input block 930 can be used to receive the numeral or character information of user input, and produce and mobile terminal
900 user is set and the relevant signal input of function control.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, can collect user thereon or neighbouring touch operation
(such as 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, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 950 again, and the order sent of receiving processor 950 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 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 (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that contact panel 931 can cover display panel 941, touch display screen is formed, when touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 950 is sent to determine the type of touch event, with preprocessor
950 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 the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
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 be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 950 is the control centre of mobile terminal 900, using various interfaces and connection whole mobile phone
Various pieces, by running or performing software program and/or module of the storage in first memory 921, and call storage
Data in second memory 922, perform the various functions and processing data of mobile terminal 900, so as to mobile terminal 900
Carry out integral monitoring.Optionally, processor 950 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/
Or the data in the second memory 922, processor 950 is used for:If receive user input is Target Photo addition picture mosaic mould
The operational order of plate, obtains the Template Information of puzzle template, and the puzzle template includes frame and the reality in the frame
Thing background, the Template Information includes the positional information of the classification in kind of background in kind and background in kind;It is true according to classification in kind
In the background in kind of the fixed puzzle template, pending background in kind unmatched with the picture/mb-type of the Target Photo;Root
The pending background in kind is purged according to the positional information of the pending background in kind.
Optionally, processor 950 is additionally operable to:According to the positional information of the pending background in kind, will be described pending
The pixel of background in kind is replaced with, the pixel that frame overlaps with pending background in kind.
Optionally, processor 950 is additionally operable to:The pre-stored reference that acquisition presets for replacing the pending background in kind is carried on the back
Scape;Output preview interface, shows the pre-stored reference background for obtaining;The pre-stored reference that the preview interface is selected is based on according to user
The pixel of background is replaced operation to the pixel of the pending background in kind.
Optionally, processor 950 is additionally operable to:Recognize the picture/mb-type of the Target Photo;Obtain the picture/mb-type pair
The object matching set answered, the object matching set includes the classification in kind of picture/mb-type matching;By the picture mosaic mould
The classification in kind of plate is compared with the classification in kind in the object matching set;Classification in kind is not present in the target
The background set described in kind for matching set is pending background in kind.
Optionally, processor 950 is additionally operable to:Recognize the object of the Target Photo;According to each object relative to the mesh
The ratio marked on a map shared by piece, determines the picture/mb-type of the Target Photo.
In the embodiment of the present invention, if receiving the operational order that puzzle template is added for Target Photo of user input, obtain
The Template Information of puzzle template, the puzzle template includes frame and the background in kind in the frame, the template letter
Breath includes the positional information of the classification in kind of background in kind and background in kind;The reality of the puzzle template is determined according to classification in kind
In thing background, pending background in kind unmatched with the picture/mb-type of the Target Photo;According to the pending back of the body in kind
The positional information of scape is purged to the pending background in kind.Due to being carried out with whether Target Photo matches to background in kind
Judge, and unmatched background in kind be defined as pending background in kind, be then purged pending background in kind,
So as to improve the harmony of Target Photo and puzzle template, therefore improve the picture display effect after picture addition puzzle template
Really.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present 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, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other
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 other dividing mode when actually realizing, such as 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 the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing 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 according to the actual needs selected to realize embodiment of the present invention scheme
Purpose.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part 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 storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
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)
1. a kind of image processing method, it is characterised in that including:
If receiving the operational order that puzzle template is added for Target Photo of user input, the Template Information of puzzle template is obtained,
The puzzle template includes frame and the background in kind in the frame, and the Template Information includes the material object of background in kind
The positional information of classification and background in kind;
Determined according to classification in kind in the background in kind of the puzzle template, the picture/mb-type with the Target Photo is unmatched
Pending background in kind;
Positional information according to the pending background in kind is purged to the pending background in kind.
2. method according to claim 1, it is characterised in that the positional information according to the pending background in kind
The step of being purged to the pending background in kind, including:
According to the positional information of the pending background in kind, the pixel of the pending background in kind is replaced with, frame
The pixel overlapped with pending background in kind.
3. method according to claim 1, it is characterised in that the positional information according to the pending background in kind
The step of being purged to the pending background in kind, including:
The pre-stored reference background for replacing the pending background in kind is preset in acquisition;
Output preview interface, shows the pre-stored reference background for obtaining;
The pixel of the pre-stored reference background that the preview interface is selected is based on to the pending background in kind according to user
Pixel is replaced operation.
4. the method according to any one of claims 1 to 3, it is characterised in that described that the spelling is determined according to classification in kind
In the background in kind of artwork plate, the step of pending background in kind unmatched with the picture/mb-type of the Target Photo, including:
Recognize the picture/mb-type of the Target Photo;
The corresponding object matching set of the picture/mb-type is obtained, the object matching set includes picture/mb-type matching
Classification in kind;
The classification in kind of the puzzle template is compared with the classification in kind in the object matching set;
It is pending background in kind by the background set described in kind that classification in kind is not present in the object matching set.
5. method according to claim 4, it is characterised in that the picture/mb-type of the identification Target Photo includes:
Recognize the object of the Target Photo;
Ratio according to shared by each object relative to the Target Photo, determines the picture/mb-type of the Target Photo.
6. a kind of mobile terminal, it is characterised in that including:
Acquisition module, if the operational order that puzzle template is added for Target Photo for receiving user input, obtains picture mosaic mould
The Template Information of plate, the puzzle template includes frame and the background in kind in the frame, and the Template Information includes
The positional information of the classification in kind of background in kind and background in kind;
Determining module, in the background in kind that the puzzle template is determined according to classification in kind, the figure with the Target Photo
The unmatched pending background in kind of sheet type;
Processing module, is carried out clearly for the positional information according to the pending background in kind to the pending background in kind
Remove.
7. mobile terminal according to claim 6, it is characterised in that the processing module specifically for:Treated according to described
The positional information for the treatment of background in kind, the pixel of the pending background in kind is replaced with, and frame and pending material object are carried on the back
The pixel that scape overlaps.
8. mobile terminal according to claim 6, it is characterised in that the processing module includes:
Background acquiring unit, for obtaining the pre-stored reference background preset for replacing the pending background in kind;
Display unit, for exporting preview interface, shows the pre-stored reference background for obtaining;
Pixel processing unit, for being based on the pixel of the pre-stored reference background that the preview interface is selected according to user to described
The pixel of pending background in kind is replaced operation.
9. the mobile terminal according to any one of claim 6 to 8, it is characterised in that the determining module includes:
Recognition unit, the picture/mb-type for recognizing the Target Photo;
Set acquiring unit, obtains the corresponding object matching set of the picture/mb-type, and the object matching set includes described
The classification in kind of picture/mb-type matching;
Comparing unit, for the classification in kind of the puzzle template to be compared with the classification in kind in the object matching set
It is right;
Setup unit, the background set described in kind for classification in kind to be not present in the object matching set is pending
Background in kind.
10. mobile terminal according to claim 9, it is characterised in that the recognition unit specifically for:Recognize the mesh
Mark on a map the object of piece;Ratio according to shared by each object relative to the Target Photo, determines the picture category of the Target Photo
Type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710150732.2A CN106934848A (en) | 2017-03-14 | 2017-03-14 | A kind of image processing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710150732.2A CN106934848A (en) | 2017-03-14 | 2017-03-14 | A kind of image processing method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106934848A true CN106934848A (en) | 2017-07-07 |
Family
ID=59432289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710150732.2A Pending CN106934848A (en) | 2017-03-14 | 2017-03-14 | A kind of image processing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106934848A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108961302A (en) * | 2018-07-16 | 2018-12-07 | Oppo广东移动通信有限公司 | Image processing method, device, mobile terminal and computer readable storage medium |
CN111212269A (en) * | 2020-01-16 | 2020-05-29 | 深圳慧源创新科技有限公司 | Unmanned aerial vehicle image display method and device, electronic equipment and storage medium |
CN112312189A (en) * | 2019-08-02 | 2021-02-02 | 百度在线网络技术(北京)有限公司 | Video generation method and video generation system |
CN112884867A (en) * | 2021-03-17 | 2021-06-01 | 杭州太火鸟科技有限公司 | Picture-based combined template generation method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541554A (en) * | 2011-12-27 | 2012-07-04 | 重庆新媒农信科技有限公司 | Method for realizing dynamic transparent specially good display effect of input box |
CN103166945A (en) * | 2011-12-14 | 2013-06-19 | 北京千橡网景科技发展有限公司 | Picture processing method and system |
US20160140740A1 (en) * | 2014-11-19 | 2016-05-19 | Seiko Epson Corporation | Information processing device, information processing system, and information processing method |
CN106408628A (en) * | 2016-11-25 | 2017-02-15 | 维沃移动通信有限公司 | Image processing method and image processing device |
-
2017
- 2017-03-14 CN CN201710150732.2A patent/CN106934848A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103166945A (en) * | 2011-12-14 | 2013-06-19 | 北京千橡网景科技发展有限公司 | Picture processing method and system |
CN102541554A (en) * | 2011-12-27 | 2012-07-04 | 重庆新媒农信科技有限公司 | Method for realizing dynamic transparent specially good display effect of input box |
US20160140740A1 (en) * | 2014-11-19 | 2016-05-19 | Seiko Epson Corporation | Information processing device, information processing system, and information processing method |
CN106408628A (en) * | 2016-11-25 | 2017-02-15 | 维沃移动通信有限公司 | Image processing method and image processing device |
Non-Patent Citations (1)
Title |
---|
"《网页配色与实战》" * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108961302A (en) * | 2018-07-16 | 2018-12-07 | Oppo广东移动通信有限公司 | Image processing method, device, mobile terminal and computer readable storage medium |
CN108961302B (en) * | 2018-07-16 | 2021-03-02 | Oppo广东移动通信有限公司 | Image processing method, image processing device, mobile terminal and computer readable storage medium |
CN112312189A (en) * | 2019-08-02 | 2021-02-02 | 百度在线网络技术(北京)有限公司 | Video generation method and video generation system |
CN111212269A (en) * | 2020-01-16 | 2020-05-29 | 深圳慧源创新科技有限公司 | Unmanned aerial vehicle image display method and device, electronic equipment and storage medium |
CN112884867A (en) * | 2021-03-17 | 2021-06-01 | 杭州太火鸟科技有限公司 | Picture-based combined template generation method, device, equipment and storage medium |
CN112884867B (en) * | 2021-03-17 | 2022-03-11 | 杭州太火鸟科技有限公司 | Picture-based combined template generation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107566717A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN106777329B (en) | A kind of processing method and mobile terminal of image information | |
CN106408628B (en) | A kind of image processing method and device | |
CN106485164A (en) | A kind of image processing method and mobile terminal | |
CN106791400A (en) | A kind of method for displaying image and mobile terminal | |
CN106657793A (en) | Image processing method and mobile terminal | |
CN106937055A (en) | A kind of image processing method and mobile terminal | |
CN107172346A (en) | A kind of weakening method and mobile terminal | |
CN107277481A (en) | A kind of image processing method and mobile terminal | |
CN106934848A (en) | A kind of image processing method and mobile terminal | |
CN106101545A (en) | A kind of image processing method and mobile terminal | |
CN107390990A (en) | The method of adjustment and mobile terminal of a kind of image | |
CN107084736A (en) | A kind of air navigation aid and mobile terminal | |
CN106919318A (en) | The method and terminal of a kind of picture processing | |
CN107222675A (en) | The photographic method and mobile terminal of a kind of mobile terminal | |
CN106126108A (en) | A kind of breviary map generalization method and mobile terminal | |
CN106227488A (en) | The display packing of a kind of reminder message and mobile terminal | |
CN106445495A (en) | Application program interface display method and mobile terminal | |
CN107729384A (en) | Image ranking method and mobile terminal | |
CN106527906A (en) | Picture capture method and mobile terminal | |
CN107026982A (en) | The photographic method and mobile terminal of a kind of mobile terminal | |
CN107483821A (en) | A kind of image processing method and mobile terminal | |
CN106502614A (en) | A kind of font control method and mobile terminal | |
CN107463534A (en) | A kind of object marking method, mobile terminal and computer-readable recording medium | |
CN106897069A (en) | A kind of application program image target aligning 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20171107 Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Applicant after: VIVO MOBILE COMMUNICATION CO., LTD. Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue Applicant before: VIVO MOBILE COMMUNICATION CO., LTD. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170707 |