Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with of the invention specific real
Apply example and technical solution of the present invention is clearly and completely described corresponding accompanying drawing.Obviously, it is described
Embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the implementation in the present invention
Example, 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.
Fig. 1 is the first image processing process provided in an embodiment of the present invention, and the process specifically includes following step
Suddenly:
S101:Terminal gathers pending image.
In the embodiment of the present application, when user is wanted images share to oneself friend, terminal can be first passed through
Image is gathered, the original image that terminal is collected is referred to as pending image by the application, as shown in Figure 2.
Fig. 2 gathers the schematic diagram of pending image for the terminal that the embodiment of the present application is provided.In fig. 2, use
Family can first pass through the application (Application, APP) for being used to share image installed in terminal, start the end
The image collecting function at end, terminal then shows IMAQ interface as shown in Figure 1, and user clicks the figure
During as shooting push button in acquisition interface, terminal then gathers pending image.Wherein, for sharing image
APP can be instant messaging APP or other APP.
It should be noted that pending image described herein can be a static map of terminal collection
Each two field picture in picture or a video.
For example, user watches a football match just in a football pitch, it is intended to share some matches to friend
The photo at scene, then can be gathered the image of in-situ match by terminal, be used as pending image.
S102:It is determined that the current terminal geographical position of itself.
Terminal is acquired after pending image, can pass through global positioning system (Global Positioning
System, GPS), the method such as mobile communication base station, determine itself current geographical position.Terminal is specifically adopted
Which kind of method to determine itself current geographical position not within the protection domain of the application with.
Continue to use the example above, can be by certainly after terminal acquires the live image of ball match as pending image
The GPS of body determines itself current geographical position.
S103:According to the geographical position, the additional image corresponding with the geographical position pre-saved is obtained.
In the embodiment of the present application, multiple additional images can be pre-saved, and set up these additional images and each
The corresponding relation in individual geographical position, wherein, an additional image can correspond to multiple geographical position, a geography
Position can also correspond to multiple additional images.Terminal determines itself current ground by above-mentioned step S102
Manage behind position, then can be obtained and terminal according to the additional image and the corresponding relation in geographical position pre-saved
The corresponding additional image in current geographical position.
Additional image described herein includes but is not limited to watermarking images.The size of the additional image, point
Resolution is equal-specification the application do not limit.
Specifically, in actual applications, geographical position range can be divided in advance, and preserve multiple additional images
With the corresponding relation of multiple geographical position ranges, the corresponding relation can be stored in terminal local, can also preserve
In the server.
If being stored in terminal local, in the above-mentioned steps S102, terminal specifically can be according to dividing in advance
Geographical position range, it is determined that the geographical position range where the current terminal geographical position of itself, and in step
In rapid S103, according to the corresponding relation of preservation, the geographical position where the current geographical position of itself is obtained
Put the corresponding additional image of scope.
If preserving in the server, terminal determines itself current geographical position by above-mentioned steps S102
Postpone, the geographical position can be reported server, determined by server corresponding with the geographical position attached
Plus image and return to terminal.Wherein, the geographical position that server can be reported according to terminal, determines the geography
Geographical position range where position, and the corresponding additional image of the geographical position range is returned into terminal.
Continue to use the example above, terminal is determined behind its current geographical position, the geographical position can be reported
Server, server is according to the geographical position and the geographical position range divided in advance, it may be determined that terminal
Geographical position range where geographical position is football pitch scope, therefore, by the football pitch model pre-saved
Enclose corresponding additional image and return to terminal.
S104:By additional image synthesis on pending image.
Terminal is got after additional image, then the additional image can be synthesized to the specific bit in the pending image
Put, follow-up, the pending image after synthesis can be also sent to server by terminal, issue server
Pending image after the synthesis, as shown in Fig. 3 A~Fig. 3 B.
Additional image is synthesized showing on pending image by Fig. 3 A, Fig. 3 B for what the embodiment of the present application was provided
It is intended to.In figure 3 a, when the additional image that terminal is got in step s 103 is multiple additional images,
Can first display image editing interface, and on the picture editting interface, show each additional image got,
Now, user then can select to synthesize additional on the pending image in each additional image of display
Image, terminal then determines the additional image of user's selection, and the additional image synthesis that user is selected is treated at this
Handle on image.
In addition, in figure 3 a, above-mentioned picture editting interface may also display pending image, but terminal is aobvious
When showing each additional image, each additional image needs to be shown in the upper strata of the pending image.
In figure 3b, user will be synthesized after the additional image on the pending image have selected, and may be used also
The position of the additional image of selection is moved by the way of dragging, terminal can then be added according to user to selection
The drag operation of image, determines synthesising position of the additional image of user's selection on the pending image, most
The additional image for afterwards again selecting user is synthesized on the synthesising position of the pending image.
Continue to use the example above, it is assumed that the additional image that terminal is got in step s 103 there are two, one
It is the watermarking images of football-shaped, the watermarking images of another exceeded knowledge in being, then terminal display image editor
Interface, the pending image collected in the picture editting interface in step display S101, and treated at this
The upper strata of image is handled, the watermarking images of watermarking images exceeded knowledge with of football-shaped are shown.Assuming that user
The watermarking images of exceeded knowledge in have selected, and be dragged to the position in the pending image upper left corner, then eventually
The position in the upper left corner is defined as synthesising position by end, and the watermarking images synthesis of exceeded knowledge in this is being waited to locate
At the position for managing the image upper left corner.Follow-up, terminal then can will synthesize the pending image for having exceeded knowledge in this
Server is sent to, server issue synthesis is had the pending image of exceeded knowledge in this, to by the image
It is shared with the friend of user.
If it should be noted that the pending image that terminal is collected in step S101 is a video
In each two field picture, then terminal can use the method similar with above-mentioned synthesis in step S104, will be additional
Image is synthesized at the synthesising position of each two field picture of the video.
Visible by the above method, user is after original image (pending image) is collected, without starting
Another image procossing application, voluntarily changes and edits image without user, and terminal can obtain phase automatically
The additional image answered, and synthesized on the image collected, user grasps when effectively increasing processing image
The convenience of work.
The first image processing process based on geographical position provided above for the embodiment of the present application, below after
Another image processing process based on functional entrance that bright the application is provided is continued, as shown in Figure 4.
Second of image processing process that Fig. 4 provides for the embodiment of the present application, specifically includes following steps:
S401:Terminal gathers pending image.
Similar with the first image processing process, user needs to start image collecting function, gathers pending
Image.The pending image equally can be each frame figure in static an image or video
Picture.
S402:It is determined that the function where gathering the image collecting function being based on during the pending image enters
Mouthful.
In actual applications, user can start the image collecting function of terminal by different modes, e.g.,
Directly initiate the image collecting function of terminal by the operating system of terminal, or by being installed in terminal
APP, into some thematic function in APP, image collecting function is started in the thematic function.Also
It is to say, although be equally to start image collecting function, but start the work(where the image collecting function every time
Energy entrance may not be identical, therefore, and terminal can determine that the image for gathering and being based on during pending image
Functional entrance where acquisition function.Specifically, the function where terminal can determine that the image collecting function enters
The corresponding mark of mouth, e.g., functional entrance identification code (Identity, ID).
For example, it is assumed that user is current to start the APP in terminal just at certain star's concert scene, should
APP has two thematic functions at present, one be star's concert seminar function, one be in surpass
The seminar function of match, therefore, in step S101, user enters the special topic of star's concert
Function is discussed, and starts image collecting function, the image at concert scene is acquired, is used as pending figure
Picture, wants to be shared with friend.Then terminal is after the pending image is acquired, it may be determined that gathers this and waits to locate
Functional entrance during reason image where the image collecting function that is based on is:The seminar of star's concert
Functional entrance.
S403:According to the functional entrance, pre-save corresponding with the functional entrance additional is obtained
Image.
In the embodiment of the present application, each functional entrance can be directed to, is pre-saved corresponding with the functional entrance
Additional image, each functional entrance can correspond to multiple additional images, and each additional image can also correspond to multiple work(
Can entrance.The additional image includes but is not limited to watermarking images.
Similarly, the corresponding relation can be stored in terminal local, it can also preserve in the server.
If being stored in terminal local, terminal can be directly according to the functional entrance determined in step S102
Mark, obtains additional image corresponding with the mark of the functional entrance.
If preserving in the server, the mark of the functional entrance of determination can be reported server by terminal, clothes
Business device is then 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 the ID of the seminar functional entrance of star's concert
For 123, then the ID123 can be reported to server, it is corresponding additional that server can then search the ID123
Image, and return to terminal.
S404:By additional image synthesis on the pending image.
In the embodiment of the present application, step S404 and step S104 shown in Fig. 1 is essentially identical, i.e. when
When the additional image that terminal is got in step S103 is multiple, in step S104, terminal can show figure
As editing interface, on the picture editting interface, each additional image got is shown, and determine that user exists
The additional image selected in each additional image, the additional image for finally selecting user is synthesized in pending image
On.Specifically, terminal can also determine that user selects according to drag operation of the user to the additional image of selection
Synthesising position of the additional image on pending image, the additional image that user is selected synthesized pending
On the synthesising position of image.Here just no longer repeat one by one.
Follow-up, the pending image after terminal also can be synthesized just is sent to server, issues server
Pending image after synthesis.
In the actual effect figure of pending image after the synthesis that Fig. 5 provides for the embodiment of the present application, Fig. 5,
It is exactly the additional image being synthesized on pending image positioned at the fish shape image of the superiors.
Certainly, the embodiment of the present application can also combine two kinds of image processing methods as shown in Figure 1 and Figure 4, e.g.,
Terminal is collected after pending image, and the functional entrance where can preferentially obtaining image collecting function is corresponding attached
Plus image, if not getting and (not getting explanation and do not preserve the corresponding additional image of the functional entrance in advance),
The corresponding additional image of self geographical position can be then obtained, then is synthesized.Also functional entrance can be obtained simultaneously
The corresponding additional image of corresponding additional image and geographical position, so that user selects, and user is selected
Additional image is synthesized on pending image, is just no longer repeated one by one here.
The image processing method provided above for the embodiment of the present application, based on same thinking, the application is also carried
Corresponding image processing apparatus is supplied, as shown in Figure 6, Figure 7.
The first image processing apparatus structural representation that Fig. 6 provides for the embodiment of the present application, is specifically included:
Acquisition module 601, for gathering pending image;
Geolocation determination module 602, for determining the presently described device geographical position of itself;
Acquisition module 603 is pre-saving with the geographical position for according to the geographical position, obtaining
Corresponding additional image;
Synthesis module 604, for the additional image to be synthesized in the pending image.
The geolocation determination module 602 is specifically for according to the geographical position range divided in advance, really
Geographical position range where the fixed presently described terminal geographical position of itself.
The acquisition module 603 by the geographical position specifically for reporting server, the reception server
The additional image corresponding with the geographical position returned.
The additional image is multiple additional images;
The synthesis module 604 is specifically for, display image editing interface, on described image editing interface,
Each additional image got is shown, the additional image that user selects in each additional image is determined, will be described
The additional image of user's selection is synthesized on the pending image.
The synthesis module 604 specifically for, according to drag operation of the user to the additional image of selection,
Synthesising position of the additional image of user's selection on the pending image is determined, the user is selected
The additional image selected is synthesized on the synthesising position of the pending image.
Described device also includes:
Release module 605, for the pending image after synthesis to be sent into server, makes the server
Issue the pending image after the synthesis.
The additional image includes:Watermarking images.
Specifically, above-mentioned device as shown in Figure 6 can be located in terminal.
Second of image processing apparatus structural representation that Fig. 7 provides for the embodiment of the present application, is specifically included:
Acquisition module 701, for gathering pending image;
Functional entrance determining module 702, the image being based on during for determining and gather the pending image is adopted
Collect the functional entrance where function;
Acquisition module 703 is pre-saving with the functional entrance for according to the functional entrance, obtaining
Corresponding additional image;
Synthesis module 704, for the additional image to be synthesized in the pending image.
The functional entrance determining module 702 is specifically for determining the function where described image acquisition function
The corresponding mark of entrance;
The acquisition module 703 by the mark specifically for reporting server, the reception server is returned
The additional image corresponding with the mark.
The additional image is multiple additional images;
The synthesis module 704 is specifically for, display image editing interface, on described image editing interface,
Each additional image got is shown, the additional image that user selects in each additional image is determined, will be described
The additional image of user's selection is synthesized on the pending image.
The synthesis module 704 specifically for, according to drag operation of the user to the additional image of selection,
Synthesising position of the additional image of user's selection on the pending image is determined, the user is selected
The additional image selected is synthesized on the synthesising position of the pending image.
Described device also includes:
Release module 705, for the pending image after synthesis to be sent into server, makes the server
Issue the pending image after the 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 can also be such as personal computer (Personal
Computer, PC), other computing devices such as panel computer, the computing device may include:Processor, take the photograph
As head, internal memory, input/output interface.Wherein, camera is used to gather pending image, and processor is used for
The computer program in internal memory is handled, to determine the current geographical position of the computing device or gather pending
Functional entrance where the image collecting function being based on during image, and pass through input/output interface, base area
Manage position or functional entrance obtains corresponding additional image, finally by additional image synthesis in pending image
On.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read-only storage (ROM), electrically erasable are read-only
Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be calculated available for storage
The information that equipment is accessed.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker
The data-signal and carrier wave of body (transitory media), such as modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, commodity or equipment including a series of key elements not only include
Those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, system or computer journey
Sequence product.Therefore, the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the present invention can be used wherein includes calculating one or more
Machine usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on the form of computer program product implemented.
Embodiments of the invention are the foregoing is only, are not intended to limit the invention.For this area skill
For art personnel, the present invention can have various modifications and variations.All institutes within spirit and principles of the present invention
Any modifications, equivalent substitutions and improvements of work etc., should be included within scope of the presently claimed invention.