The content of the invention
The embodiment of the present invention provides a kind of image processing method, device, electronic equipment and storage medium, can solve the problem that user
The problem of efficiency of making splicing picture is too low.
In a first aspect, the embodiments of the invention provide a kind of image processing method, methods described includes:
At least one classification belonging to identification at least two pictures to be spliced;
Determined to place in splicing layout, the splicing layout according at least one classification grid number of picture with it is described
The picture number of at least two pictures is identical;
According to the weight of each grid in the splicing layout, at least two pictures are placed into the splicing and are laid out
In, obtain splicing picture.
Wherein, at least one classification belonging to the identification at least two pictures to be spliced, including:
Main body in identification at least two pictures to be spliced in every pictures;
Main body in every pictures determines the classification belonging to per pictures.
Wherein, the weight according to each grid in the splicing layout, at least two pictures is placed into described
In splicing layout, obtain before splicing picture, methods described also includes:
Main body in identification every pictures;
Position of the main body in classification, every pictures in every pictures according to belonging to every pictures
With the weight described in ratio-dependent per pictures;
At least two pictures are placed individually into the spelling by the weight according to each grid in the splicing layout
Connect in layout, obtain splicing picture, including:
The power of each grid in weight and splicing layout according at least two pictures per pictures
Weight, at least two pictures are placed individually into the splicing layout, splicing picture is obtained.
Wherein, methods described also includes:
For described per pictures in the splicing picture, main body in the picture lattice where the picture
Position and ratio in son are handled the picture, the picture after being handled, and the picture after processing is put
Put in the position where the picture.
Wherein, methods described also includes:
Show the splicing picture;
The Target Photo selected from the splicing picture is received, the Target Photo is any in the splicing picture
One;
When detecting the drag operation for the Target Photo, the position that the Target Photo is dragged to is obtained;
The position of picture and the Target Photo on the position being dragged to is swapped, after being exchanged
Splice picture.
Wherein, methods described also includes:
Determine and record the position that target classification and the Target Photo belonging to the Target Photo are dragged to
Weight;
The weight for the position being dragged to according to the Target Photo adjusts the weight of the other each picture of target class.
Second aspect, the embodiments of the invention provide a kind of picture processing device, described device includes:
Identification module, at least one classification belonging at least two pictures to be spliced for recognizing;
Determining module, for being determined to place picture in splicing layout, the splicing layout according at least one classification
Grid number it is identical with the picture number of at least two pictures;
Processing module, for the weight according to each grid in the splicing layout, at least two pictures are placed into
In the splicing layout, splicing picture is obtained.
Wherein, the identification module, including:
Main body in recognition unit, at least two pictures to be spliced for recognizing in every pictures;
Determining unit, the classification belonging to every pictures is determined for the main body in every pictures.
Wherein, the identification module, is additionally operable to recognize the main body in every pictures;
The determining module, is additionally operable to the classification according to belonging to every pictures, the main body in every pictures and exists
Weight described in position and ratio-dependent in every pictures per pictures;
The processing module, specifically for according to the every weight of pictures and described at least described in two pictures
The weight of each grid in splicing layout, at least two pictures are placed individually into the splicing layout, spliced map is obtained
Piece.
Wherein, the processing module, is additionally operable to for described per pictures in the splicing picture, according to the picture
In position and ratio of the main body in grid where the picture picture is handled, the figure after being handled
Piece, the picture after processing is placed on the position where the picture.
Wherein, described device also includes:
Display module, for showing the splicing picture;
Receiving module, for receiving the Target Photo selected from the splicing picture, the Target Photo is spelled to be described
Any one in map interlinking piece;
Acquisition module, for when detecting the drag operation for the Target Photo, obtaining the Target Photo quilt
The position dragged to;
Wherein, the processing module, is additionally operable to the picture on the position being dragged to and the Target Photo
Position is swapped, the splicing picture after being exchanged.
Wherein, described device also includes:
Performing module, for determining and recording that target classification and the Target Photo belonging to the Target Photo are dragged
The weight for the position moved;
Wherein, the processing module, described in the weight adjustment for the position for being additionally operable to be dragged to according to the Target Photo
The weight of the other each picture of target class.
The third aspect, the embodiments of the invention provide a kind of electronic equipment, including:Processor, memory, communication interface and
Communication bus, the processor, the memory and the communication interface are connected by the communication bus and completed each other
Communication;The memory storage executable program code;What the processor was stored by reading in the memory holds
Line program code runs program corresponding with the executable program code, for performing a kind of image processing method;Its
In, methods described includes:
At least one classification belonging to identification at least two pictures to be spliced;
Determined to place in splicing layout, the splicing layout according at least one classification grid number of picture with it is described
The picture number of at least two pictures is identical;
According to the weight of each grid in the splicing layout, at least two pictures are placed into the splicing and are laid out
In, obtain splicing picture.
Fourth aspect, the embodiments of the invention provide a kind of computer program product, wherein, when the computer program product
In instruction by computing device when, perform first aspect described in image processing method.
5th aspect, the embodiments of the invention provide a kind of storage medium, wherein, when the instruction in the storage medium is by electricity
During the computing device of sub- equipment so that the electronic equipment is able to carry out the image processing method described in first aspect.
At least one classification belonging at least two pictures to be spliced by recognizing first of the embodiment of the present invention, Ran Hougen
Splicing layout is determined according at least one classification, finally according to the weight of each grid in splicing layout, at least two pictures are placed
Into splicing layout, splicing picture is obtained.It can be seen that, implement the embodiment of the present invention, spelling can be automatically determined according to the classification of picture
Layout is connect, and different classes of picture can be placed into splicing layout in the grid of different weights, is made manually with user
Splicing picture is compared, and can effectively improve the splicing efficiency of picture.
Embodiment
Below in conjunction with the accompanying drawings, embodiments of the invention are described.
Image processing method provided in an embodiment of the present invention can by smart mobile phone (such as Android phone, iOS mobile phones,
Windows Phone mobile phones etc.), tablet personal computer, mobile internet device (Mobile Internet Devices, MID), wear
The intelligent terminal with image processing function such as formula equipment, camera is worn to realize.
It is a kind of schematic flow diagram of image processing method provided in an embodiment of the present invention referring to Fig. 1.As shown in Figure 1
A kind of image processing method includes but is not limited to following steps:
At least one classification belonging to S101, terminal recognition at least two pictures to be spliced.
In the embodiment of the present invention, first, terminal receives at least two pictures that user chooses from picture source, and will receive
To at least two pictures be defined as picture to be spliced.Wherein, the picture source can be the picture database of terminal, for example eventually
Photograph album, the picture library at end;The picture source can also be the picture database of server end, the cloud photograph album of such as server end, cloud disk.
At least two pictures received can be all the picture in the picture database of terminal, can also be all the figure of server end
Picture in sheet data storehouse, can using a part as the image data of terminal in picture, another part be server end figure
Picture in sheet data storehouse, the embodiment of the present invention is not construed as limiting.
Then, terminal is directed to every pictures at least two pictures, is recognized using image recognition technology per pictures
In main body, the main body in picture is major part of the picture to express theme, is the center of picture structure, occupies figure
The notable position of piece, the main body of picture can be an object or a group objects.Finally, terminal is according to recognizing
Main body in per pictures determines the picture classification belonging to per pictures.Wherein, the classification of picture for example can be figure map, food
Thing figure, landscape figure etc..At least two pictures to be spliced can be same category of picture or different classes of figure
Piece, can also be a part of picture is same category of picture, and another part is the picture of other classifications.
In some feasible embodiments, it is determined that at least two pictures to be spliced per pictures belonging to classification
Afterwards, the quantity of the picture of every kind of classification can further be recorded.Optionally, at least two pictures to be spliced can also be recorded
In size and picture shape per pictures, the picture shape includes horizontal figure, perpendicular figure.
S102, the terminal determine to place picture in splicing layout, the splicing layout according at least one classification
Grid number it is identical with the picture number of at least two pictures.
In the embodiment of the present invention, classification of the terminal according to belonging at least two pictures to be spliced per pictures determines to spell
Layout is connect, for example, can be to choose suitable spelling from multiple splicing layout templates of terminal preset according at least one classification
Connect layout or suitable splicing is obtained from server end according at least one classification and be laid out.Wherein, terminal preset
The splicing layout templates of splicing layout templates and server end include multiple grid, and utilize frame by each grid interval
Get up, the specific weight of each grid correspondence, the weight of each grid is in being laid out according to picture mosaic of the grid belonging to it
Position and the ratio-dependent that is occupied.Wherein it is determined that splicing layout in place picture grid number with this at least two
The picture number of picture is identical.
In some feasible embodiments, the class that terminal can be according to belonging in this at least two pictures per pictures
Not, the size and picture in the other picture number of every kind of picture category of record, at least two pictures of record per pictures
Shape automatically generates suitable splicing layout.Similarly, automatically generate splicing layout in place picture grid number with this at least
The picture number of two pictures is identical, and each grid also corresponds to specific weight.
At least two pictures are placed into by S103, the terminal according to the weight of each grid in the splicing layout
In the splicing layout, splicing picture is obtained.
In the embodiment of the present invention, terminal recognizes the main body in every pictures at least two pictures first, determines every
Position and ratio of the main body in every pictures in picture.Then according in per the classification belonging to pictures, per pictures
Position and ratio-dependent at least two pictures in every pictures of main body in weight per pictures.Specifically, terminal
The corresponding relation of various picture classifications and the first weight is preset, multiple bands of position of picture are corresponding with the second weight to close
System, the interval corresponding relation with the 3rd weight of multiple ratios of the main body in picture.Picture classification according to belonging to every pictures
It is determined that the first weighted value per pictures, and position of the main body in every pictures corresponding second in every pictures
The band of position, and obtain the value of corresponding second weight in the second place region;And the main body in determining per pictures is every
Corresponding second ratio of ratio in pictures is interval, and obtains the value with interval corresponding 3rd weight of second ratio.Root
The weight per pictures is determined according to the value of the value of the first weight, the value of the second weight and the 3rd weight, for example, can be by the
The value of the value of one weight, the value of the second weight and the 3rd weight is multiplied or is added etc. processing, obtains the power per pictures
Weight.
Finally, according to the weight of each grid in the weight in this at least two pictures per pictures and splicing layout,
At least two pictures are placed individually into splicing layout, splicing picture is obtained.Specifically, first according to this at least two
The size of weight in picture per pictures is ranked up at least two pictures according to order from big to small;Then should
The picture of sequence n-th is placed into splicing layout in the big grid of weight n-th at least two pictures, obtains spliced map
Piece, wherein, n is positive integer, and less than or equal to the picture number of at least two pictures.
In some feasible embodiments, after splicing picture is obtained, for every pictures in the splicing picture,
Position and ratio of the main body in grid where every pictures in every pictures is handled every pictures, at acquisition
Every pictures after reason, and every pictures after processing are placed on to the position where every pictures.Wherein, every pictures are entered
Row processing includes being amplified every pictures, reducing, cutting, make it that correspondence in splicing layout will be placed into per pictures
When in grid, picture is more attractive in appearance to be coordinated.
In some feasible embodiments, the image procossing mode that can also be selected according to default or user is to this
The every pictures spliced in picture carry out image procossing.Wherein, the image procossing mode for example can be adjust image brightness,
Contrast, colour temperature, saturation degree or to image carry out filter processing, in image human face region carry out whitening, mill skin
Deng processing.It is understood that can also be other image procossing modes.
For example, a figure map, four landscape figures, and the weight ratio wind of figure map are included with least two pictures
The weight of scape figure is big, and figure map is included exemplified by significant face.First, five pictures to be spliced are obtained, pass through image recognition
Technology can identify that the classification belonging to five pictures is figure map and landscape figure, can further distinguish five pictures
There is another classification without face in a class of face, picture for picture.Then the main body in recognizing per pictures is in every pictures
In position and ratio, for example recognize figure map in position and size of the face in picture, and determine per pictures power
Weight, because the weight of the weight ratio landscape figure of figure map is big and figure map includes significant face, the then figure containing notable face
The weight of other pictures of the weight ratio of piece is big.It is figure map and landscape figure selection one then according to the classification belonging to five pictures
The grid number that picture is placed in individual suitable splicing layout, splicing layout is five, and the specific weight of correspondence on each grid,
The weight of each grid is that size in splicing layout of the grid belonging to it and position are determined, the higher lattice of weight
Subrepresentation its splicing layout in position it is more obvious.Then the figure map for having notable face is placed by the size of picture weight
In splicing layout on the larger grid of weight, landscape figure is placed in splicing layout on the less grid of weight, spelled
Map interlinking piece.Finally further according to main body in the position in correspondence picture and size, such as position of the face in correspondence picture
And size, picture is handled, including cut, amplify, reducing etc..Using aforesaid way, the master in picture can be avoided
Body such as face is cut, and the big picture of weight can be placed into the notable position in splicing layout, obtained picture is more
Attractive in appearance, coordination, so as to allow splicing photo to be more prone to, effectively improves picture splicing efficiency, and be effectively improved the splicing of picture
Effect.
In some feasible embodiments, obtain splicing picture after, the splicing picture can be preserved to picture library,
In photograph album, cloud photograph album and/or cloud disk, the splicing picture can also be sent in the social networks such as circle of friends.
At least one classification belonging at least two pictures to be spliced by recognizing first of the embodiment of the present invention, Ran Hougen
Splicing layout is determined according at least one classification, finally according to the weight of each grid in splicing layout, at least two pictures are placed
Into splicing layout, splicing picture is obtained.It can be seen that, implement the embodiment of the present invention, spelling can be automatically determined according to the classification of picture
Layout is connect, and different classes of picture can be placed into splicing layout in the grid of different weights, is made manually with user
Splicing picture is compared, and can effectively improve the splicing efficiency of picture.
It is a kind of schematic flow diagram for image processing method that another embodiment of the present invention is provided referring to Fig. 2.Such as Fig. 2 institutes
A kind of image processing method including but not limited to following steps shown:
At least one classification belonging to S201, terminal recognition at least two pictures to be spliced.
S202, the terminal determine to place picture in splicing layout, the splicing layout according at least one classification
Grid number it is identical with the picture number of at least two pictures.
At least two pictures are placed into by S203, the terminal according to the weight of each grid in the splicing layout
In the splicing layout, splicing picture is obtained.
Wherein, step S201 to step S203 associated description refer in the above method embodiment step S101 to step
S103 associated description, will not be repeated here.
S204, the terminal show the splicing picture.
In the embodiment of the present invention, after splicing picture is obtained, obtained splicing picture can be included the screen in terminal
On curtain, so that user checks the effect of obtained splicing picture.If terminal receives user and is directed to the guarantor that the splicing picture is inputted
Instruction is deposited, then is directly preserved the splicing picture into picture library, photograph album, cloud photograph album and/or cloud disk;If or terminal receives use
Instruction is shared in family for what the splicing picture was inputted, then directly the splicing picture is sent in the social networks such as circle of friends.If
Terminal receives user and is directed to the adjust instruction that the splicing picture is inputted, then performs step S205.
S205, the terminal receive the Target Photo selected from the splicing picture, and the Target Photo is spelled to be described
Any one in map interlinking piece.
In the embodiment of the present invention, terminal may be at editable state when showing the splicing picture or terminal connects
When receiving the adjust instruction that user inputs for the splicing picture, the splicing picture of display is adjusted to editable state.Wherein,
The Target Photo that user chooses is any one in splicing picture, and user can choose Target Photo by way of long-press,
Target Photo can also be chosen by way of double-click, the embodiment of the present invention is not limited.
S206, when the terminal detects the drag operation for the Target Photo, obtain the Target Photo quilt
The position dragged to.
In the embodiment of the present invention, user have selected after Target Photo from the splicing picture shown on terminal screen, can be with
Target Photo is dragged, terminal so as to detect user be directed to Target Photo drag operation.Mesh is dragged in user
Mark on a map during piece, terminal obtains the dragging track of Target Photo, and user terminate to the drag operation of Target Photo it
Afterwards, the position that Target Photo is dragged to is determined according to the dragging track of Target Photo, and then determines that Target Photo is dragged to
Position it is corresponding splicing layout in target grid, and obtain the target grid placement the first picture.
S207, the terminal are handed over the position of picture and the Target Photo on the position being dragged to
Change, the splicing picture after being exchanged.
Specifically, terminal swaps Target Photo with first picture, Target Photo is placed into the target grid
In, the first picture is placed into the dragged grid placed before of Target Photo, the picture after being exchanged.Obtain after exchange
Picture after, the position and ratio of main body that can be in Target Photo in target grid are cut to Target Photo
And/or contracting processing, the Target Photo after being handled;Position in the grid of main body after exchange in the first picture and
Ratio is cut and/or scaling processing to the first picture, the first picture after being handled, and by the first picture after processing
In grid where being placed on it each with Target Photo.Using aforesaid way, user can be caused according to the demand pair of oneself
Splicing picture is adjusted accordingly, and Consumer's Experience is more preferable.
In some feasible embodiments, during user is adjusted to splicing picture, mesh is determined and recorded
The weight for the position that the target classification and Target Photo belonging to piece of marking on a map are dragged to, and be dragged to according to Target Photo
The weight of position adjusts the weight of the other each picture of target class.Optionally, institute is in place before can also recording Target Photo dragging
The weight of position before the weight put, and the weight of position that is dragged to of combining target picture and Target Photo dragging
Adjust the weight of the other each picture of target class.
Specifically, after terminal gets splicing picture, adjustment operates for splicing picture if detecting user, pin
Each adjustment operation to user, during user is adjusted to splicing picture, is determined and recorded belonging to Target Photo
Target classification, before the weight of position that is dragged to of Target Photo and Target Photo dragging position weight, shape
Into once recording.Every time obtain record result after, with reference to when time record result and it is preceding several times record result progress pair
Than analysis, according to the weight of position before and after the classification of the trailing Target Photo recorded every time, Target Photo dragging
Situation of change analyzes habitual placement location of the user for the picture generic with Target Photo, then according to the habituation
The weight of each picture of the weight adjustment Target Photo generic of placement location.In some feasible embodiments, also may be used
To be all results at interval of the set time to record, or all record results in interval time are analyzed, and
The weight of each picture of Target Photo generic is adjusted according to analysis result.The embodiment of the present invention is not construed as limiting.
For example, exemplified by the example in method described above embodiment, notable face can will be included using the above method
Picture be placed into notable position in splicing layout, the weight on the position is maximum, and landscape figure is placed into the low lattice of weight
In son;When analysis is obtained for similar splicing picture, in the picture that user always obtains splicing, by including notable face
Picture is adjusted in the small grid of weight by the big grid of weight, then terminal can be by the picture generic including notable face
The weight of each picture accordingly turn down.Similarly, when analysis is obtained for similar splicing picture, user will always splice in picture
Scenery picture be adjusted to by the small grid of weight in the big grid of weight, then terminal can will belong to each picture of landscape figure
Weight is accordingly heightened.
At least one classification belonging at least two pictures to be spliced by recognizing first of the embodiment of the present invention, Ran Hougen
Splicing layout is determined according at least one classification, finally according to the weight of each grid in splicing layout, at least two pictures are placed
Into splicing layout, splicing picture is obtained, implements the embodiment of the present invention, splicing cloth can be automatically determined according to the classification of picture
Office, and different classes of picture can be placed into splicing layout in the grid of different weights, make splicing manually with user
Picture is compared, and can effectively improve the splicing efficiency of picture.
It is a kind of schematic block diagram of picture processing device provided in an embodiment of the present invention, described device is for example referring to Fig. 3
Smart mobile phone, tablet personal computer, mobile internet device, Wearable, camera etc. can be arranged on image procossing work(
On the intelligent terminal of energy, a kind of picture processing device described in the embodiment of the present invention, including:
Identification module 301, at least one classification belonging at least two pictures to be spliced for recognizing.
Determining module 302, for being determined to place figure in splicing layout, the splicing layout according at least one classification
The grid number of piece is identical with the picture number of at least two pictures.
Processing module 303, for the weight according to each grid in the splicing layout, at least two pictures are placed by described in
Into the splicing layout, splicing picture is obtained.
In the embodiment of the present invention, the identification module 301, including:
Main body in recognition unit 3011, at least two pictures to be spliced for recognizing in every pictures.
Determining unit 3012, the classification belonging to every pictures is determined for the main body in every pictures.
In some feasible embodiments, the identification module 301 is additionally operable to recognize the master in every pictures
Body.
The determining module 302, is additionally operable to the classification according to belonging to every pictures, the main body in every pictures
Weight described in position and ratio-dependent in every pictures per pictures.
The processing module 303, specifically for according to it is described at least described in two pictures often the weight of pictures and
The weight of each grid in the splicing layout, at least two pictures are placed individually into the splicing layout, spelled
Map interlinking piece.
In some feasible embodiments, the processing module 303 is additionally operable to for described in the splicing picture
Per pictures, position and ratio of the main body in grid where the picture in the picture to the picture progress at
The picture after processing is placed on the position where the picture by reason, the picture after being handled.
Display module 304, for showing the splicing picture.
Receiving module 305, for receiving the Target Photo selected from the splicing picture, the Target Photo is described
Splice any one in picture.
Acquisition module 306, for when detecting the drag operation for the Target Photo, obtaining the Target Photo
The position being dragged to.
Wherein, the processing module 303, is additionally operable to the picture on the position being dragged to and the Target Photo
Position swap, the splicing picture after being exchanged.
Performing module 307, for determining and recording target classification and the Target Photo belonging to the Target Photo
The weight for the position being dragged to.
Wherein, the processing module 303, is additionally operable to the weight adjustment institute of position being dragged to according to the Target Photo
State the weight of the other each picture of target class.
It should be noted that each functional module, the function of unit of a kind of picture processing device of the embodiment of the present invention can
First embodiment, the method for second embodiment in above-mentioned image processing method embodiment are implemented, and it is implemented
Process is referred to the associated description of above method embodiment, and here is omitted.
The embodiment of the present invention recognizes at least one belonging at least two pictures to be spliced by identification module 301 first
Classification, then triggers determining module 302 and determines splicing layout according at least one classification, finally trigger the basis of processing module 303
The weight of each grid in splicing layout, at least two pictures are placed into splicing layout, splicing picture is obtained, implements the present invention
Embodiment, can automatically determine splicing layout, and different classes of picture can be placed into splicing cloth according to the classification of picture
In office in the grid of different weights, compared with user makes splicing picture manually, the splicing efficiency of picture can be effectively improved.
It is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention referring to Fig. 4.It is electric as described in Figure 4
Sub- equipment, including:User interface 401, display screen 402, processor 403, communication interface 404, memory 405, above-mentioned user connects
Mouth 401, display screen 402, processor 403, communication interface 404 and memory 405 can be connected by bus, can also be with it
He connects mode.
Processor 403 can be central processing unit (central processing unit, CPU), network processing unit
(network processor, NP) or CPU and NP combination.Processor 403 can also be used in multi-core CPU or multinuclear NP
In the core for realizing communication identifier binding.
Above-mentioned processor 403 can be hardware chip.Above-mentioned hardware chip can be application specific integrated circuit
(application-specific integrated circuit, ASIC), PLD (programmable
Logic device, PLD) or its combination.Above-mentioned PLD can be CPLD (complex
Programmable logic device, CPLD), field programmable gate array (field-programmable gate
Array, FPGA), GAL (generic array logic, GAL) or its any combination.
Communication interface 404 can be used for receive and send messages or signaling interaction, and signal reception and transmission, especially, lead to
Letter interface 404 can launch equipment with network and signal by radio communication and be communicated, and receive the number that signal launches equipment
According to.Above-mentioned radio communication can use any communication standard or agreement, including but not limited to adopting wireless fidelity technology (Wireless
Fidelity, WiFi), GSM (Global System of Mobile communication, global system for mobile communications),
GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division
Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, broadband code
Point multiple access), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging
Service, Short Message Service) etc..
User interface 401 can be used for the numeral or character information for receiving input, and produce the user with the electronic equipment
Set and the relevant key signals of function control are inputted.Specifically, above-mentioned user interface 401 may include contact panel and other
Input equipment.Contact panel, also referred to as touch-screen, collecting touch operation of the user on or near it, (such as user uses
The operation of any suitable object such as finger, stylus or annex on contact panel or near contact panel), and according to advance
The formula of setting drives corresponding attachment means.
Optionally, contact panel may include both touch detecting apparatus and touch controller.Wherein, touch detection is filled
The touch orientation of detection user is put, and detects the signal that touch operation is brought, touch controller is transmitted a signal to;Touch control
Device receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor, and can reception processing
Order that device is sent simultaneously is performed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Type realizes contact panel.Except contact panel, user interface 401 can also include other input equipments.Specifically, other are inputted
Equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse,
One or more in action bars etc..
Display screen 402 can be used for the information that is inputted by user of display or the information for being supplied to user and the electronic equipment
Various menus.Display screen 402 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic
Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure.Further, the touch-control in user interface 401
Panel can cover display screen 402, after contact panel detects the touch operation on or near it, send processor to true
Determine the type of touch event, corresponding visual output is provided on display screen 402 according to the type of touch event with preprocessor.
Although in Fig. 4, contact panel and display screen 402 are the input and output that electronic equipment is realized as two independent parts
Function, but in some embodiments it is possible to by contact panel and the input that is integrated and realizing electronic equipment of display screen 402 and defeated
Go out function.
Above-mentioned memory 405 can mainly include storing program area and storage data field, wherein, storing program area can store behaviour
Make the storage program (such as word store function, position store function etc.) needed for system, at least one function;Storage data field
It can store and created data (such as view data, lteral data) etc. are used according to electronic equipment, it is possible to including network
Communication module, Subscriber Interface Module SIM, application memory program etc..Wherein, the network communication module can be used for storing network service
Program, the communication interface 404 can externally or internally be communicated by calling the network communication program of the network communication module to realize
Function.The Subscriber Interface Module SIM, which can be used for storing, realizes user to man-machine interactive programs such as touch-control, the pressings of electronic equipment,
The user interface 401 can be by calling the man-machine interaction program of the Subscriber Interface Module SIM to realize the input function of subscriber signal.
In addition, memory can include high-speed random access memory, nonvolatile memory, for example, at least one magnetic can also be included
Disk storage device, flush memory device or other volatile solid-state parts.
Above-mentioned memory 405 is additionally operable to storage program instruction.Above-mentioned processor 403 can call above-mentioned memory 405 to deposit
The programmed instruction of storage, realizes the condition detection method of signal transmitting equipment as shown in the embodiment of the invention.
Specifically, above-mentioned processor 403, which is called, is stored in the following step of programmed instruction execution that above-mentioned memory 405 is stored
Suddenly:
At least one classification belonging to identification at least two pictures to be spliced;
Determined to place in splicing layout, the splicing layout according at least one classification grid number of picture with it is described
The picture number of at least two pictures is identical;
According to the weight of each grid in the splicing layout, at least two pictures are placed into the splicing and are laid out
In, obtain splicing picture.
The method that processor 403 is performed in the embodiment of the present invention is described from the angle of processor 403, it is possible to understand that
It is that processor 403, which will perform the above method, in the embodiment of the present invention needs the cooperation of other hardware configurations.The embodiment of the present invention pair
Concrete implementation process is not described in detail and limited.
In some feasible embodiments, above-mentioned processor 403, specifically for recognizing at least two pictures to be spliced
In per the main body in pictures.
Above-mentioned processor 403, is determined belonging to every pictures specifically for the main body in every pictures
Classification.
In some feasible embodiments, above-mentioned processor 403 is additionally operable to recognize the main body in every pictures.
Above-mentioned processor 403, is additionally operable to the classification according to belonging to every pictures, the main body in every pictures and exists
Weight described in position and ratio-dependent in every pictures per pictures.
Above-mentioned processor 403, is additionally operable to according to the every weight of pictures and described at least described in two pictures
The weight of each grid in splicing layout, at least two pictures are placed individually into the splicing layout, spliced map is obtained
Piece.
In some feasible embodiments, above-mentioned processor 403 is additionally operable to for described every in the splicing picture
Pictures, position and ratio of the main body in grid where the picture in the picture to the picture progress at
The picture after processing is placed on the position where the picture by reason, the picture after being handled.
In some feasible embodiments, above-mentioned display screen 402, for showing the splicing picture.
Above-mentioned user interface 401, is additionally operable to receive the Target Photo selected from the splicing picture, the Target Photo
For any one in the splicing picture.
Above-mentioned processor 403, is additionally operable to, when detecting the drag operation for the Target Photo, obtain the target
The position that picture is dragged to.
Above-mentioned processor 403, is additionally operable to the position by the picture on the position being dragged to and the Target Photo
Swap, the splicing picture after being exchanged.
In some feasible embodiments, above-mentioned processor 403 is additionally operable to determine and record belonging to the Target Photo
Target classification and the weight of position that is dragged to of the Target Photo;
Above-mentioned processor 403, is additionally operable to the weight adjustment target of position being dragged to according to the Target Photo
The weight of each picture of classification.
In the specific implementation, the user interface 401 described in the embodiment of the present application, display screen 402, processor 403, communication
Interface 404, and memory 405, can perform the realization side described in a kind of image processing method that the embodiment of the present application is provided
Formula, also can perform the implementation described in a kind of picture processing device that the embodiment of the present application Fig. 3 is provided, no longer goes to live in the household of one's in-laws on getting married herein
State.
At least one classification belonging at least two pictures to be spliced by recognizing first of the embodiment of the present invention, Ran Hougen
Splicing layout is determined according at least one classification, finally according to the weight of each grid in splicing layout, at least two pictures are placed
Into splicing layout, splicing picture is obtained, implements the embodiment of the present invention, splicing cloth can be automatically determined according to the classification of picture
Office, and different classes of picture can be placed into splicing layout in the grid of different weights, make splicing manually with user
Picture is compared, and can effectively improve the splicing efficiency of picture.
The present invention also provides the finger that is stored with a kind of computer-readable recording medium, the computer-readable recording medium
Order, when run on a computer so that computer performs the image processing method described in above method embodiment.
The present invention also provides a kind of computer program product for including instruction, when run on a computer so that meter
Calculation machine performs the image processing method described in above method embodiment.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Module in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The term used in the embodiment of the present application is the purpose only merely for description specific embodiment, and is not intended to be limiting
The application." one kind ", " described " and "the" of singulative used in the embodiment of the present application and appended claims
It is also intended to including most forms, unless context clearly shows that other implications.It is also understood that term used herein
"and/or" refers to and may combined comprising one or more associated any or all of project listed.
It will be appreciated that though may be described in the embodiment of the present application using term " first ", " second ", " the 3rd " etc.
Various connectivity ports and identification information etc., but these connectivity ports and identification information etc. should not necessarily be limited by these terms.These terms
Only it is used for connectivity port and identification information etc. being distinguished from each other out.For example, in the case where not departing from the embodiment of the present application scope,
First connectivity port can also be referred to as the second connectivity port, similarly, and the second connectivity port can also be referred to as the first connection
Port.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description
It is convenient and succinct, can as needed will be upper only with the division progress of above-mentioned each functional module for example, in practical application
State function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete
All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before may be referred to
The corresponding process in embodiment of the method is stated, be will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed electronic equipment, apparatus and method,
It can realize by another way.For example, device embodiment described above is only schematical, for example, the mould
The division of block or unit, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple
Unit or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another
Point, shown or discussed coupling or direct-coupling or communication connection each other can be by some interfaces, device or
The INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, the technical scheme of the application is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the application each
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(Read Only Memory;Hereinafter referred to as:ROM), random access memory (Random Access Memory;Hereinafter referred to as:
RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
It is described above, the only embodiment of the application, but the protection domain of the application is not limited thereto, and it is any
Those familiar with the art can readily occur in change or replacement in the technical scope that the application is disclosed, and should all contain
Cover within the protection domain of the application.Therefore, the protection domain of the application should be based on the protection scope of the described claims.