Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and
Technical solution of the present invention is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Fig. 1 be the first image processing process provided in an embodiment of the present invention, the process specifically includes the following steps:
S101: terminal acquires image to be processed.
In the embodiment of the present application, when user is wanted images share to oneself friend, terminal acquisition figure can be first passed through
The collected original image of terminal is known as image to be processed by picture, the application, as shown in Figure 2.
Fig. 2 is the schematic diagram that terminal provided by the embodiments of the present application acquires image to be processed.In Fig. 2, user can first lead to
The application (Application, APP) for being used to share image installed in terminal is crossed, the image collecting function of the terminal is started, eventually
End then shows Image Acquisition interface as shown in Figure 1, and when user clicks the shooting button in the Image Acquisition interface, terminal is then
Acquire image to be processed.Wherein, it can be instant messaging APP for sharing the APP of image, be also possible to other APP.
It should be noted that image to be processed described herein can be a still image of terminal acquisition,
It can be each frame image in a video.
For example, user watches a football match just in a football pitch, it is intended to share some in-situ match to friend
Photo can then acquire the image of in-situ match, as image to be processed by terminal.
S102: the geographical location of current terminal itself is determined.
After terminal acquires image to be processed, can by global positioning system (Global Positioning System,
GPS), the methods of mobile communication base station determines itself current geographical location.Which kind of method is terminal specifically use determine that itself works as
Preceding geographical location is not within the scope of protection of this application.
Continue to use the example above, it, can be by itself GPS after terminal acquires the image at ball match scene as image to be processed
Determine itself current geographical location.
S103: according to the geographical location, the additional image corresponding with the geographical location pre-saved is obtained.
In the embodiment of the present application, multiple additional images can be pre-saved, and establish these additional images and each geography
The corresponding relationship of position a, wherein additional image can correspond to multiple geographical locations, and a geographical location can also correspond to multiple attached
Add image.Terminal, then can be attached according to what is pre-saved after S102 has determined itself current geographical location through the above steps
Add the corresponding relationship in image and geographical location, obtains additional image corresponding with the current geographical location of terminal.
Additional image described herein includes but is not limited to watermarking images.Size, resolution ratio of the additional image etc.
Specification the application does not limit.
Specifically, in practical applications, geographical position range can be divided in advance, and save multiple additional images with multiple
The corresponding relationship of position range is managed, which can be stored in terminal local, also can be reserved in the server.
If being stored in terminal local, in above-mentioned steps S102, terminal specifically can be according to the geographical location divided in advance
Range determines the geographical position range where the geographical location of current terminal itself, and in step s 103, according to preservation
The corresponding relationship obtains the corresponding additional image of geographical position range currently where the geographical location of itself.
If saving in the server, terminal, can after S102 has determined itself current geographical location through the above steps
The geographical location is reported to server, additional image corresponding with the geographical location is determined by server and returns to end
End.Wherein, the geographical location that server can be reported according to terminal determines the geographical position range where the geographical location, and will
The corresponding additional image of the geographical position range returns to terminal.
Continue to use the example above, after terminal has determined its current geographical location, which can be reported to server,
The geographical position range that server is divided according to the geographical location and in advance, it may be determined that the geography where the geographical location of terminal
Position range is therefore the corresponding additional image of football pitch range pre-saved is returned to terminal by football pitch range.
S104: by additional image synthesis on image to be processed.
After terminal gets additional image, then the additional image can be synthesized on the designated position of the image to be processed,
Subsequent, the image to be processed after synthesis can be also sent to server by terminal, to be processed after so that server is issued the synthesis
Image, as shown in Fig. 3 A~Fig. 3 B.
Fig. 3 A, Fig. 3 B are the schematic diagram provided by the embodiments of the present application by additional image synthesis on image to be processed.?
In Fig. 3 A, when the additional image that terminal is got in step s 103 is multiple additional images, picture editting circle can be first shown
Face, and on the picture editting interface, each additional image got is shown, at this point, user then can be in each appended drawings of display
As in, selection will synthesize the additional image on the image to be processed, and terminal then determines the additional image of user's selection, and will use
The additional image of family selection synthesizes on the image to be processed.
In addition, in figure 3 a, above-mentioned picture editting interface may also display image to be processed, but terminal is showing each appended drawings
When picture, each additional image needs to be shown in the upper layer of the image to be processed.
In figure 3b, user is selecting to synthesize after the additional image on the image to be processed, and dragging also can be used
The mobile selection of mode additional image position, terminal then can be according to user to the drag operation of the additional image of selection, really
Determine synthesising position of the additional image of user's selection on the image to be processed, finally the additional image again by user's selection synthesizes
On the synthesising position of the image to be processed.
Continue to use the example above, it is assumed that there are two the additional images that terminal is got in step s 103, and one is football
The watermarking images of shape, the other is in exceeded knowledge watermarking images, then terminal show picture editting interface, in picture editting circle
Collected image to be processed in step S101 is shown in face, and on the upper layer of the image to be processed, shows the water of football-shaped
The watermarking images of watermark image exceeded knowledge in.Assuming that user selected in exceeded knowledge watermarking images, and be dragged to
The position in the image upper left corner is handled, then the position in the upper left corner is determined as synthesising position by terminal, and by the water of knowledge exceeded in this
Watermark image synthesizes at the position in the image upper left corner to be processed.It is subsequent, terminal synthesis can then be had exceeded knowledge in this wait locate
Reason image is sent to server, and server publication synthesis is made to have the image to be processed of exceeded knowledge in this, to by the images share
To the friend of user.
It should be noted that if terminal collected image to be processed is each in a video in step s101
Frame image, then the method similar with above-mentioned synthesis can be used in terminal in step S104, and additional image is synthesized to the every of the video
At the synthesising position of one frame image.
By the above method as it can be seen that user is after collecting original image (image to be processed), without starting another figure
As processing application, voluntarily modify and edit image without user, terminal can obtain corresponding additional image automatically, and by its
Synthesis is in acquired image, the convenience of user's operation when effectively increasing processing image.
The above are provided by the embodiments of the present application the first image processing process based on geographical location, continues with explanation
Image processing process of the another kind based on functional entrance provided by the present application, as shown in Figure 4.
Fig. 4 is second of image processing process provided by the embodiments of the present application, specifically includes the following steps:
S401: terminal acquires image to be processed.
Similar with the first image processing process, user needs to start image collecting function, acquires image to be processed.It should
Image to be processed equally can be a static image, each frame image being also possible in video.
S402: the functional entrance where the image collecting function being based on when acquiring the image to be processed is determined.
In practical applications, the image collecting function that user can start terminal by different modes e.g. passes through terminal
Operating system directly initiate the image collecting function of terminal, or the APP by installing in terminal, into some in APP
Thematic function starts image collecting function in the special topic function.Although that is, being equally to start Image Acquisition function
Can, but the functional entrance where starting the image collecting function every time may not be it is identical, therefore, terminal can determine acquisition
Functional entrance where the image collecting function being based on when image to be processed.Specifically, terminal can determine the Image Acquisition function
The corresponding mark of functional entrance where energy, e.g., functional entrance identification code (Identity, ID).
For example, it is assumed that user starts the APP in terminal, which has two at present currently just at certain star's concert scene
A special topic function, one be star's concert seminar function, one be the match of middle hypergeometric seminar function, because
This, in step s101, user enters the seminar function of star's concert, and starts image collecting function, acquires
The image at concert scene as image to be processed is wanted to be shared with friend.Then terminal is acquiring the image to be processed
Afterwards, it may be determined that the functional entrance where the image collecting function being based on when acquiring the image to be processed are as follows: star's concert
Seminar functional entrance.
S403: according to the functional entrance, the additional image corresponding with the functional entrance pre-saved is obtained.
In the embodiment of the present application, it can be directed to each functional entrance, pre-save appended drawings corresponding with the functional entrance
Picture, each functional entrance can correspond to multiple additional images, and each additional image can also correspond to multiple functional entrances.The additional image
Including but not limited to watermarking images.
Likewise, the corresponding relationship can be reserved in terminal local, also can be reserved in the server.
If being stored in terminal local, terminal can obtain directly according to the mark for the functional entrance determined in step S102
Take additional image corresponding with the mark of the functional entrance.
If saving in the server, the mark of determining functional entrance can be reported to server by terminal, and server is then
It is determined at the corresponding additional image of the mark, and returns to terminal.
Continue to use the example above, it is assumed that terminal determines that the ID of the seminar functional entrance of star's concert is 123, then
The ID123 can be reported to server, server can then search the corresponding additional image of the ID123, and return to terminal.
S404: by additional image synthesis on the image to be processed.
In the embodiment of the present application, step S404 and step S104 shown in FIG. 1 are essentially identical, that is, when in step S103
When the additional image that terminal is got is multiple, in step S104, terminal displayable image editing interface, in the picture editting
On interface, each additional image got is shown, and determine the additional image that user selects in each additional image, will finally use
The additional image of family selection synthesizes on image to be processed.Specifically, terminal can also be according to user to the additional image of selection
Drag operation determines synthesising position of the additional image of user's selection on image to be processed, the additional image that user is selected
Synthesis is on the synthesising position of image to be processed.Here it just no longer repeats one by one.
Subsequent, the image to be processed after synthesis can also will be sent to server by terminal, after making server publication synthesis
Image to be processed.
Fig. 5 is the actual effect figure of the image to be processed after synthesis provided by the embodiments of the present application, in Fig. 5, is located at most upper
The fish shape image of layer is exactly the additional image being synthesized on image to be processed.
Certainly, the embodiment of the present application is also in combination with two kinds of image processing methods as shown in Figure 1 and Figure 4, e.g., terminal acquisition
To after image to be processed, the corresponding additional image of functional entrance where image collecting function can be preferentially obtained, if having not been obtained
(explanation has not been obtained and does not save the corresponding additional image of the functional entrance in advance), then it is corresponding attached can to obtain self geographical position
Add image, then is synthesized.The corresponding additional image of the corresponding additional image of functional entrance and geographical location can also be obtained simultaneously,
For selection by the user, and by the additional image that user selects it is synthesized on image to be processed, just no longer repeats one by one here.
The above are image processing methods provided by the embodiments of the present application, are based on same thinking, present invention also provides phases
The image processing apparatus answered, as shown in Figure 6, Figure 7.
Fig. 6 is the first image processing apparatus structural schematic diagram provided by the embodiments of the present application, is specifically included:
Acquisition module 601, for acquiring image to be processed;
Geolocation determination module 602, for determining the geographical location of presently described device itself;
Obtain module 603, for according to the geographical location, obtain pre-save it is corresponding with the geographical location
Additional image;
Synthesis module 604, for synthesizing the additional image in the image to be processed.
The geolocation determination module 602 is specifically used for, and according to the geographical position range divided in advance, determines current institute
State the geographical position range where the geographical location of terminal itself.
The acquisition module 603 is specifically used for, and the geographical location is reported to server, receive that server returns with
The corresponding additional image in the geographical location.
The additional image is multiple additional images;
The synthesis module 604 is specifically used for, and shows picture editting interface, on described image editing interface, display is obtained
Each additional image got determines the additional image that user selects in each additional image, the appended drawings that the user is selected
As synthesis is on the image to be processed.
The synthesis module 604 is specifically used for, and according to the user to the drag operation of the additional image of selection, determines institute
Synthesising position of the additional image of user's selection on the image to be processed is stated, the additional image that the user is selected synthesizes
On the synthesising position of the image to be processed.
Described device further include:
Release module 605 makes described in the server publication for the image to be processed after synthesis to be sent to server
Image to be processed after synthesis.
The additional image includes: watermarking images.
Specifically, above-mentioned device as shown in FIG. 6 can be located in terminal.
Fig. 7 is second of image processing apparatus structural schematic diagram provided by the embodiments of the present application, is specifically included:
Acquisition module 701, for acquiring image to be processed;
Functional entrance determining module 702, the image collecting function being based on when acquiring the image to be processed for determining
The functional entrance at place;
Obtain module 703, for according to the functional entrance, obtain pre-save it is corresponding with the functional entrance
Additional image;
Synthesis module 704, for synthesizing the additional image in the image to be processed.
The functional entrance determining module 702 is specifically used for, and determines the functional entrance pair where described image acquisition function
The mark answered;
The acquisition module 703 is specifically used for, and the mark is reported to server, receive that server returns with it is described
Identify corresponding additional image.
The additional image is multiple additional images;
The synthesis module 704 is specifically used for, and shows picture editting interface, on described image editing interface, display is obtained
Each additional image got determines the additional image that user selects in each additional image, the appended drawings that the user is selected
As synthesis is on the image to be processed.
The synthesis module 704 is specifically used for, and according to the user to the drag operation of the additional image of selection, determines institute
Synthesising position of the additional image of user's selection on the image to be processed is stated, the additional image that the user is selected synthesizes
On the synthesising position of the image to be processed.
Described device further include:
Release module 705 makes described in the server publication for the image to be processed after synthesis to be sent to server
Image to be processed after synthesis.
The additional image includes: watermarking images.
Specifically, above-mentioned device as shown in Figure 7 can be located in terminal.
In addition, device as shown in Figure 6 and Figure 7 be also possible to such as personal computer (Personal Computer,
PC), other calculating equipment such as tablet computer, the calculating equipment can include: processor, camera, memory, input/output interface.
Wherein, camera is for acquiring image to be processed, and processor is used to handle the computer program in memory, to determine the calculating
Functional entrance where the image collecting function being based on when the current geographical location of equipment or acquisition image to be processed, and pass through
Input/output interface obtains corresponding additional image according to geographical location or functional entrance, finally by additional image synthesize to
It handles on image.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention
Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above description is only an embodiment of the present invention, is not intended to restrict the invention.For those skilled in the art
For, the invention may be variously modified and varied.All any modifications made within the spirit and principles of the present invention are equal
Replacement, improvement etc., should be included within scope of the presently claimed invention.