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.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of picture joining method provided in an embodiment of the present invention, such as Fig. 1 institutes
Show, comprise the following steps:
The map picture of step 101, acquisition based on map selection, the map picture includes multiple geographic areas.
In the embodiment of the present invention, mobile terminal, can be by operation when the picture concatenation of user input is got
The map application of installation opens map, and obtains map picture from the map.Wherein, above-mentioned picture mosaic operation can be out
Open picture mosaic application program, select to need to generate any one mode in puzzle template etc. for the picture of splicing and confirmation.
In addition, above-mentioned map can be world map, country map, provinces and cities' map, traffic map and travel folder etc.
Any one in existing map style, above-mentioned map picture is the picture comprising the region in target zone in the map, and
The map picture includes multiple geographic areas divided by Geographic line or region contour line, for example:Map picture is bag
The picture of Gulou District, Xuanwu District and Qinhuai District in map containing Nanjing.
It should be noted that above-mentioned target zone can be the scope that pre-sets in mobile terminal, or according to
For the scope that the quantity spliced in the picture materials of puzzle template determines.Certainly, the target area that above-mentioned map picture is included
Can also be user according to the region for oneself needing to be selected in map manually.
Step 102, the profile for extracting at least one of map picture geographic area, generate puzzle template.
In the embodiment of the present invention, when map picture is extracted, mobile terminal can according to the map in Geographic line
Or region contour line, at least one geographic area is determined from above-mentioned map picture as target geographical area, and will extract
The profile of target geographical area splice plate as picture, generation is by the picture splicing puzzle template that constitutes of plate.
For example:Map picture is extracted by Hunan Province's map, and Changsha, Xiang Tan including being divided by Geographic line
Part or Zone Full in city, Zhuzhou, Yueyang, Loudi City and Yiyang City, mobile terminal can be by Changsha, Zhuzhou
And Xiangtan City is given birth to as target geographical area with the profile that the Geographic line of Changsha, Zhuzhou and Xiangtan City is formed
Into puzzle template.
Wherein, above-mentioned target geographical area can be by mobile terminal according to the geographical position carried in picture mosaic material to be spliced
Confidence breath determines.For example:When picture materials are respectively the photo shot in the Forbidden City and the Summer Palace, and carry it is each self-correspondingly
During reason positional information, mobile terminal can be extracted by region contour line in including at least the map picture of the Forbidden City and the Summer Palace
The Forbidden City of division and the Summer Palace are used as target geographical area, and the profile generation that the region contour line in the Forbidden City and the Summer Palace is formed
Puzzle template.
Certainly, above-mentioned target geographical area can also be according to the need for oneself, on the ground that mobile terminal shows by user
Figure picture manually selects one or more geographic areas and is determined as target geographical area, is not defined herein.
Step 103, based on the corresponding relation between puzzle template, and each geographic area and each picture materials, to each figure
Piece material is spliced.
In the embodiment of the present invention, above-mentioned steps 102 generation puzzle template when, mobile terminal can by picture materials splice to
The puzzle template, and each picture materials splice plate positioned at the picture of the contours extract by each self-corresponding target geographical area
In.
For example:Above-mentioned puzzle template includes being carried by the profile of Scenic Spot of Mount Tai, Heng Shan scenic spot and scenic area in the Huashan Mountain
The picture splicing plate for taking, and two pictures materials are respectively the picture A and photograph shot in Scenic Spot of Mount Tai and Heng Shan scenic spot
Piece B, mobile terminal can by picture A splice in the contours extract by Scenic Spot of Mount Tai picture splice plate, photo B splice in
Plate is spliced by the picture of the contours extract of Heng Shan scenic spot.
It should be noted that the corresponding relation of above-mentioned each geographic area and each picture materials, can be each geographic region
Domain and an at least pictures material exist in corresponding relation, or multiple geographic areas at least one geographic area each with
At least there is corresponding relation in a pictures material, for example:In three geographic areas, only one of which geographic area is plain with three pictures
There is corresponding relation in material, such that it is able to three pictures materials are spliced in the picture extracted by same corresponding geographic area simultaneously
In splicing plate.
In addition, above-mentioned corresponding relation can be the geographical position by being carried in the geographical position of geographic area and picture materials
Information determines, or user is arranged as required to, for example:One pictures material is dragged to a geographic area by user
In, then it is assumed that the picture materials and the corresponding relation that the geographic area is that user is set.
In the embodiment of the present invention, above-mentioned mobile terminal can be any mobile terminal that can carry out picture splicing, for example:
Mobile phone, panel computer (Tablet Personal Computer), kneetop computer (Laptop Computer), individual digital
Assistant (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device,
) or Wearable device (Wearable Device) etc. MID.
So, in the embodiment of the present invention, the map picture based on map selection is obtained, the map picture includes multiple ground
Reason region;The profile of at least one of map picture geographic area is extracted, puzzle template is generated;Based on puzzle template,
And the corresponding relation between each geographic area and each picture materials, each picture materials are spliced.So, mobile terminal exists
In picture splicing, the profile generation puzzle template of geographic area in map can be based on, make picture mosaic mode various, and picture
Concatenation is convenient, time saving..
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of another picture joining method provided in an embodiment of the present invention, is applied to
Mobile terminal, as shown in Fig. 2 comprising the following steps:
The map picture of step 201, acquisition based on map selection, the map picture includes multiple geographic areas.
In the embodiment of the present invention, mobile terminal, can be by operation when the picture concatenation of user input is got
The map application of installation opens map, and obtains map picture from the map.Wherein, the map picture include it is multiple by
The geographic area that Geographic line or region contour line are divided.
In addition, above-mentioned map picture can be the region in the target zone determined based on target location.Wherein, the target
Position can be the position, or picture materials to be spliced where the user of the real-time positioning of positioning component of mobile terminal
Geographical position in the geographical location information of middle carrying;Above-mentioned target zone can be the model pre-set in mobile terminal
The scope enclosed, or determined according to the quantity of picture materials to be spliced.
Optionally, above-mentioned steps 201 can include:Geographical position where obtaining user;With the use in extraction map
The region in preset range centered on the geographic location of family is used as map picture.So, mobile terminal can be based on user
The geographical position at place and preset range extract map picture, make operation more convenient, time saving.
For example:The positioning component positioning user of mobile terminal is located at Hefei City, and preset range is the geography where user
The scope of 100KM around position, mobile terminal extracts the 100KM centered on user geographic location in Anhui Province's map
In the range of region as map picture, Hefei City, Lu'an City, Xuzhou City and Huainan City can be included in the map picture
Part or all of region.
Certainly, optionally, above-mentioned steps 201 can also include:In the geographical location information that any picture material is carried
Geographical position be set as target location;The region in the preset range described in map where target location is extracted as map
Picture.So, mobile terminal can be based on the geographical location information and preset range extraction map picture that material is carried, and enter one
Step makes operation more convenient, time saving.
For example:The geographical location information carried respectively in two pictures materials is the Forbidden City and the Summer Palace, can by the Forbidden City or
The position in the Summer Palace is set as target location, and extracts in the preset range such as 20KM in Beijing's map where the target location
Region as map picture.
It should be noted that above-mentioned preset range can also preset to include at least one based on Geographic line or region
Contour line divides to form closed area, for example:Preset range includes city and adjacent city where target location, and each city is by geography
The line of demarcation painting style forms closed area.
Step 202, the profile for extracting all of geographic area in the map picture, generate puzzle template.
In the embodiment of the present invention, when above-mentioned steps 201 extract map picture, mobile terminal can extract above-mentioned map
The profile of all of geographic area in picture, and splice plate using the profile of each geographic area as picture, generate by each figure
The puzzle template of piece splicing plate composition.
For example:For example:As shown in figure 3, Fig. 3 (a) is the map opened, dashed region is made during mobile terminal extracts Fig. 4 (a)
Be map picture, i.e., the picture shown in Fig. 3 (b), because the line of demarcation between various countries can draw the map picture shown in 3 (b)
It is divided into multiple geographic areas, and extracts the profile of all geographic areas in the map picture and splice plate as picture, generation is such as
Puzzle template shown in Fig. 3 (c).
It should be noted that above-mentioned steps 202 can also be the profile for extracting the part geographic area in map picture making
For picture splices plate, puzzle template is generated.Optionally, above-mentioned steps 202 can also include:Extract in the map picture extremely
The profile of a few landmark region for indicating in advance, generates puzzle template.Wherein, above-mentioned landmark region be advance sign and by
Region contour line divides the region to be formed.
For example:When above-mentioned map picture includes Nanjing subregion, can extract pre- from the subregion of Nanjing
The profile of the landmark region for first indicating and being divided by region contour line, such as landmark region can be Nanjing figure as shown in Figure 4
Book shop, the presidential palace and Drum Tower Square region, generate puzzle template.
Step 203, based on the corresponding relation between puzzle template, and each geographic area and each picture materials, to each figure
Piece material is spliced.
In the embodiment of the present invention, above-mentioned steps 202 generation puzzle template when, mobile terminal can by picture materials splice to
The puzzle template, and each picture materials splice plate positioned at the picture of the contours extract by each self-corresponding target geographical area
In.
Optionally, above-mentioned steps 203 can include:Obtain the geographical position of Target Photo splicing plate in the puzzle template
Confidence ceases;It is determined that the picture materials matched with the geographical location information of Target Photo splicing plate, by the figure of the matching
Piece material splices in Target Photo splicing plate.So, mobile terminal can be based on picture materials and picture splice plate
The geographical location information of block, automatically splices in the picture splicing plate of matching picture materials, makes picture concatenation more just
It is prompt, time saving.
So, in the embodiment of the present invention, the map picture based on map selection is obtained;Extract in the map picture and own
Geographic area profile, generate puzzle template;Based on right between puzzle template, and each geographic area and each picture materials
Should be related to, each picture materials are spliced.So, mobile terminal can be based on the profile of all geographic areas in map picture
Generation puzzle template, makes picture mosaic mode various, and simple operation, time saving.
Referring to Fig. 5, Fig. 5 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention, as shown in figure 5, should
Mobile terminal 500 includes map picture acquisition module 501, template generation module 502 and picture concatenation module 503:
Map picture acquisition module, for obtaining the map picture based on map selection, the map picture includes multiple
Geographic area;
Template generation module, the profile for extracting at least one of map picture geographic area generates picture mosaic
Template;
Picture concatenation module, for based on the corresponding pass between puzzle template, and each geographic area and each picture materials
Each picture materials are spliced by system.
Optionally, the template generation module 502 can be also used for extracting all of geographic area in the map picture
Profile, generate puzzle template;Or, the profile of at least one landmark region for indicating in advance in the map picture is extracted,
Generation puzzle template.
Optionally, as shown in fig. 6, the map picture acquisition module 501 can include:
Customer location acquiring unit 5011, the geographical position where for obtaining user;
First map picture extraction unit 5012, for extracting in map centered on the user geographic location
Region in preset range is used as map picture.
Optionally, as shown in fig. 7, the map picture acquisition module 501 can include:
Target location setup unit 5013, for the geographical position in the geographical location information that carries any picture material
It is set as target location;
Second map picture extraction unit 5014, for extracting in the preset range described in map where target location
Region is used as map picture.
Optionally, as shown in figure 8, the picture concatenation module 503 can include:
Plate information acquisition unit 5031, the geographical position for obtaining Target Photo splicing plate in the puzzle template
Information;
Picture concatenation unit 5032, for the figure for determining to be matched with the geographical location information of Target Photo splicing plate
Piece material, the picture materials of the matching are spliced in Target Photo splicing plate.
The mobile terminal 500 of the embodiment of the present invention can realize that mobile terminal in the embodiment of the method for Fig. 1 to Fig. 4 is realized
Each process, to avoid repeating, repeats no more here.
The mobile terminal 500 of the embodiment of the present invention, obtains the map picture based on map selection, and the map picture includes
Multiple geographic areas;The profile of at least one of map picture geographic area is extracted, puzzle template is generated;Based on picture mosaic
The multiple picture materials are spliced by the corresponding relation between template, and each geographic area and each picture materials.This
Sample, mobile terminal can be based on the profile generation puzzle template of geographic area in map in picture splicing, make picture mosaic side
Formula is various, and picture concatenation is convenient, time saving.
Referring to Fig. 9, Fig. 9 is the structural representation of another mobile terminal provided in an embodiment of the present invention, as shown in figure 9,
Mobile terminal 900 includes:At least one processor 910, memory 920, at least one network interface 940 and user interface 930.
Each component in mobile terminal 900 is coupled by bus system 950.It is understood that bus system 950 is used to realize this
Connection communication between a little components.Bus system 950 in addition to including data/address bus, also including power bus, controlling bus and
Status signal bus in addition.But for the sake of for clear explanation, various buses are all designated as bus system 950 in fig .9.Mobile terminal
Also include positioning component 960.In addition, positioning component 960 is connected by bus system 950 with each component of mobile terminal.
Wherein, user interface 930 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 920 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 (Synch Link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 920 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 920 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 921 and application program 922.
Wherein, operating system 921, comprising various system programs, such as ccf layer, core library layer, driving layer etc., for reality
Existing various basic businesses and the hardware based task for the treatment of.Application program 922, comprising various application programs, such as media are broadcast
Device (Media Player), browser (Browser) etc. are put, for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 922.
In embodiments of the present invention, by the program for calling memory 920 to store or instruction, specifically, can be application
The program stored in program 922 or instruction, processor 910 are used for:Obtain the map picture based on map selection, the Map
Piece includes multiple geographic areas;The profile of at least one of map picture geographic area is extracted, puzzle template is generated;Base
Each picture materials are spliced by the corresponding relation between puzzle template, and each geographic area and each picture materials..
The method that the embodiments of the present invention are disclosed can apply in processor 910, or be realized by processor 910.
Processor 910 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 910 or software form.Above-mentioned treatment
Device 910 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 Gate Array, 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 920, processor 910 reads the parameter in memory 920, 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 910 performs the profile for extracting at least one geographic area in the map picture, generation
Puzzle template, including:
The profile of all of geographic area in the map picture is extracted, puzzle template is generated;Or,
The profile of at least one landmark region for indicating in advance in the map picture is extracted, puzzle template is generated.
Optionally, processor 910 performs the map picture for obtaining and being selected based on map, including:
Geographical position where obtaining user;
Extract region in map in preset range using centered on the user geographic location as map picture.
Optionally, processor 910 performs the map picture for obtaining and being selected based on map, including:
Geographical position in the geographical location information that any picture material is carried is set as target location;
The region in the preset range described in map where target location is extracted as map picture.
Optionally, processor 910 performs described being based between puzzle template, and each geographic area and each picture materials
Each picture materials are spliced by corresponding relation, including:
Obtain the geographical location information of Target Photo splicing plate in the puzzle template;
It is determined that the picture materials matched with the geographical location information of Target Photo splicing plate, by the figure of the matching
Piece material splices in Target Photo splicing plate.
Mobile terminal 900 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here
Repeat no more.
The mobile terminal 900 of the embodiment of the present invention, obtains the map picture based on map selection, and the map picture includes
Multiple geographic areas;The profile of at least one of map picture geographic area is extracted, puzzle template is generated;Based on picture mosaic
Each picture materials are spliced by the corresponding relation between template, and each geographic area and each picture materials.So, it is mobile
Terminal can be based on the profile generation puzzle template of geographic area in map in picture splicing, make picture mosaic mode various,
And picture concatenation is convenient, time saving.
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.