A kind of image processing method and device
Technical field
The present invention relates to picture Processing Technique field, more particularly to a kind of image processing method and device.
Background technology
With the fast development of the communication technology, camera function is constantly popularized in a communications device, and user takes pictures and carry out figure
The frequency that piece is shared is stepped up, while user is also continuously increased to the process demand of picture.
Current user is during picture is processed, it usually needs the pending area in picture is processed one by one.
When having multiple regions to need in a width picture to carry out identical picture processing to operate, user needs that same treatment is repeated several times
Operation, is sequentially completed the picture processing to each pending area in picture.For example, when user is needed in chat sectional drawing
A certain people information when carrying out mosaic processing, it is necessary to carry out smearing operation to the people information in picture one by one, with complete
The mosaic processing of the paired people information.This processing mode causes user's complex operation step, takes more long, Consumer's Experience
It is poor.
The content of the invention
The embodiment of the present invention provides a kind of image processing method and device, to solve in the prior art, when having many in picture
When individual region needs to carry out the operation of identical picture processing, user needs that multiple pending areas are repeated in carry out same place
Reason operation, caused process step is cumbersome, take the poor problem of more long, Consumer's Experience.
In a first aspect, the embodiment of the invention provides a kind of image processing method, comprise the following steps:
Picture processing operation according to user carries out picture processing to source picture first area;
Pressing operation of the detection user on picture viewing area, obtains press pressure value;
According to the size of the press pressure value, the secondth area matched with the first area in pending picture is recognized
Domain, and the second area is carried out and the first area identical picture processing.
Second aspect, the embodiment of the invention provides a kind of picture processing device, including:First processing module, pressing inspection
Module and Second processing module are surveyed, wherein:
First processing module, for carrying out picture processing to source picture first area according to the operation of the picture processing of user;
Depression detection module, for detecting pressing operation of the user on picture viewing area, obtains press pressure value;
Second processing module, the size of the press pressure value for being obtained according to the depression detection module, recognizes and waits to locate
The second area matched with the first area in reason picture, and the second area is carried out and the first area identical
Picture processing.
Based on above-mentioned technical proposal, the picture processing operation according to user carries out picture processing to source picture first area,
And according to the press pressure value of user's pressing operation, the second area matched with first area in pending picture is recognized, and it is right
Second area is carried out and first area identical picture processing.User only needs to carry out figure to a certain pending area of source picture
Piece treatment operation, the picture processing to other pending areas can be just controlled by pressing operation, compared with prior art, used
Family is easy to operate, can effectively reduce repeating for user, lifts Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below by institute in the description to the embodiment of the present invention
The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also obtain according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the flow chart of the first embodiment of image processing method of the present invention;
Fig. 2 is the flow chart of the second embodiment of image processing method of the present invention;
Fig. 3 is the schematic diagram for showing press pressure value in image processing method of the present invention by digital form;
Fig. 4 is the schematic diagram for showing press pressure value in image processing method of the present invention by graphics mode;
Fig. 5 is the flow chart of the 3rd embodiment of image processing method of the present invention;
Fig. 6 is the display interface schematic diagram of pending picture thumbnail list in third embodiment of the invention;
Fig. 7 is when the previous display interface schematic diagram of pending picture in image processing method of the present invention;
Fig. 8 a are the first structure block diagrams in picture processing device fourth embodiment of the present invention;
Fig. 8 b are the second structured flowcharts in picture processing device fourth embodiment of the present invention;
Fig. 9 is the picture processing terminal apparatus structure block diagram of the embodiment of the present invention.
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 only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment one
Reference picture 1, is the flow chart of the first embodiment of image processing method of the present invention, there is provided a kind of picture processing side
Method, the image processing method includes:
Step 101:Picture processing operation according to user carries out picture processing to source picture first area.
In the embodiment of the present invention, the picture processing operation of user can be smearing operation, clicking operation of the user to screen
Deng the embodiment of the present invention is not construed as limiting to this.Wherein, source picture is treated for user according to any one width that picture processing demand is chosen
Treatment picture;First area is the region corresponding to the user's operation in the picture pending area of source;Picture processing is included to figure
Piece carries out mosaic processing, addition special-effect, toning, light and shade modification, reparation, stingy figure, editor etc., and the embodiment of the present invention is to this
It is not construed as limiting.
Step 102:Pressing operation of the detection user on picture viewing area, obtains press pressure value.
In this step, user can carry out pressing operation in the optional position of picture viewing area, according to detect by
Press operation, obtains press pressure value.Wherein, the area pressed of pressing operation need to be on picture viewing area;Pressing operation when
Between on can be continuous or interruption, for the pressing operation being interrupted, area pressed can be with the picture viewing area
Difference, the embodiment of the present invention is not construed as limiting to this;Embodiment of the present invention press pressure value represents that user enters to picture viewing area
The pressure size of row pressing.
Step 103:According to the size of the press pressure value, matched with the first area in the pending picture of identification
Second area, and the second area is carried out and the first area identical picture processing.
According to the size of the press pressure value obtained in step 102, when the size of press pressure value meets trigger condition,
Pending picture is identified according to first area, determines the second area matched with the first area in pending picture,
And the second area to pending picture is carried out and source picture first area identical picture processing.Wherein, here pending
Picture can be a width, or several.When pending picture is a width, as source picture;When pending picture is several,
For source picture and an at least width Target Photo, the Target Photo is determined according to source picture.Here second area can be
Subregion or Zone Full in pending picture, can be continuum or discontiguous area.Matching refers to pending
Similarity between the characteristic information of picture second area and the characteristic information of source picture first area reaches default similarity threshold
Value, default similarity threshold here can be by the default fixed value of device, or by user-defined fixed value,
The embodiment of the present invention is not construed as limiting to this.
In this step, the second area of pending picture is carried out by picture processing device identical with source picture first area
Picture processing.For example, in a step 101, the smearing operation according to user to source picture first area is entered to the first area
Mosaic processing is gone, then in this step, picture processing device carries out identical mosaic processing to second area.
The image processing method of the embodiment of the present invention, user only needs to carry out picture processing behaviour in the first area of source picture
Make, and pressing operation is carried out on picture viewing area, when the press pressure value of pressing operation meets trigger condition, picture
Processing unit is carried out and first area identical picture processing to second area in pending picture.Therefore, implement in the present invention
In example, when the multiple regions during user needs to pending picture carry out identical picture processing to be operated, can avoid repeating
Operation, so as to lift Consumer's Experience.
Embodiment two
Reference picture 2, is the flow chart of the second embodiment of image processing method of the present invention, and the present embodiment provides one kind and ought treat
When treatment picture is a width, as source picture when image processing method, the image processing method includes:
Step 201:Picture processing operation according to user carries out picture processing to source picture first area.
According to operation of the user on the picture first area of source, picture processing is carried out to source picture first area.Specifically,
The image processing method of the present embodiment is introduced by taking mosaic as an example, when smearing operation of the user on the picture of source is detected, really
Determine the operating area that user smears operation, i.e. the first area of the present embodiment, the smearing operation according to user, to the of source picture
One region carries out mosaic processing.
Specifically mosaic processing refers to that picture signal is sampled with the sample rate less than initial data, even if picture
In pixel in same rectangular tiles with an internal color filling for point, and picture size keeps constant, so as to image is special
Determine the effect that the color range details in region is deteriorated and causes color lump to upset.
Step 202:Pressing operation of the detection user on picture viewing area, obtains press pressure value.
In the embodiment of the present invention, user can carry out pressing operation, Ke Yitong in the optional position of source picture viewing area
Over-pressed force snesor detects the press pressure value of pressing operation.Specifically, pressure sensor is located at the screen of picture processing device
In the content display region of component.
Alternatively, in embodiments of the present invention, user can show configured information to refer to while pressing operation is carried out
Show whether the press pressure value of the user pressing operation reaches the first preset pressure threshold value.For example, showing pressing in a digital manner
The percentage of the first preset pressure threshold value shared by pressure value, or to show whether press pressure value reaches first to graphically pre-
If pressure threshold.In the embodiment of the present invention, the display location to the configured information is not construed as limiting, it is preferable that instruction letter here
Breath is displayed in the adjacent position of user's area pressed.
Specifically, as shown in figure 3, being the schematic diagram that press pressure value is shown by digital form, exist user is detected
During pressing operation on picture viewing area, press pressure value is obtained, and by calculating display current press pressure value institute in real time
The percentage of the first preset pressure threshold value is accounted for, when detecting press pressure value changes, the percentages synchronously change, and work as pressing
When pressure value is more than the first preset pressure threshold value, the percentages are not further added by, display 100%.
As shown in figure 4, being the schematic diagram that press pressure value is shown by graphics mode, the first preset pressure threshold value is divided
It is multiple pressure ratings, the pressure rating is corresponding with figure, is detecting pressing operation of the user on picture viewing area
When, press pressure value is obtained, according to corresponding relation of the press pressure value in the grade, respective graphical is shown in real time, detect
During press pressure value changes, the figure synchronously changes, and when press pressure value is more than the first preset pressure threshold value, figure no longer becomes
Change, the full lattice of display.For example, the first preset pressure threshold value is divided into 10 grades, respectively grade 1, grade 2, grade 3 ...
Grade 10, the lattice in each grade correspondence figure, Man Ge is represented and is reached the first preset pressure threshold value, as shown in figure 4, expression is pressed
Pressure pressure value corresponds to the class 5 in the first preset pressure threshold value, not up to the first preset pressure threshold value.
Step 203:When the press pressure value is not less than the first preset pressure threshold value, the spy for extracting the first area
Reference ceases.
In this step, press pressure value is used to judge whether to meet the trigger condition for extracting first area characteristic information, when
When meeting trigger condition, i.e., when press pressure value is not less than the first preset pressure threshold value, the spy of extraction source picture first area
Reference ceases.
In the embodiment of the present invention, algorithm and picture feature information to extraction source picture first area characteristic information it is specific
Content is not construed as limiting, for example, the Color Distribution Features information of picture, content characteristic information, spatial distribution characteristics letter can be extracted
Breath, texture feature information etc..The first preset pressure threshold value can be by the default fixed value of device, or by user from
The fixed value of definition.
Step 204:The second area matched with the characteristic information in the source picture is recognized, and to the source picture
Second area is carried out and the first area identical picture processing.
On the basis of step 203, further, when the press pressure value is not less than the first preset pressure threshold value, know
The second area matched with characteristic information in the picture of other source, and the second area is carried out with the identical picture of first area
Reason;When press pressure value is less than the first preset pressure threshold value, stopping carries out picture processing to second area in the picture of source.User
Can be by changing the size of press pressure value, the second area to source picture is carried out and first area identical picture processing, example
Such as, the subregion in the second area that user only needs to source picture is carried out during with first area identical picture processing,
When having completed to need the picture processing of subregion to be processed to user, user can stop pressing operation or reduce pressing
Pressure value realizes the flexible control to picture processing to stop carrying out source picture second area picture processing.
In this step, the second area of source picture is carried out and first area identical picture by picture processing device
Reason.For example, in step 201, the smearing operation according to user to source picture first area has carried out Marseille to the first area
Gram treatment, then in this step, picture processing device carries out identical mosaic processing to second area.
In the embodiment of the present invention, according to the characteristic information of source picture first area, source picture is identified, by comparing
Characteristic information determines the second area with this feature information matches in the picture of source, specifically, such as when extracting first in step 204
It is default similar to determine to reach by comparing first area and the Color Distribution Features of source picture during the Color Distribution Features in region
The second area of threshold value is spent, and second area is carried out and first area identical picture processing.
The image processing method of the embodiment of the present invention, user only needs to carry out picture processing behaviour in the first area of source picture
Make, and pressing operation is carried out on the picture viewing area of source, when the press pressure value of pressing operation reaches the first preset pressure
During threshold value, you can triggering picture processing device second area in the picture of source is carried out with first area identical picture processing, and
And, when the picture processing of pending area during user has completed to source picture, can be by stopping pressing operation or reduction
Press pressure value is stopping carrying out picture processing to source picture second area.Therefore, in embodiments of the present invention, when user needs
When multiple regions in source picture carry out identical picture processing and operate, simple and convenient user operation, it is to avoid repeat, so that
Lifting Consumer's Experience.
Embodiment three
Reference picture 5, is the flow chart of the 3rd embodiment of image processing method of the present invention, and the present embodiment provides one kind to many
The method that width Target Photo carries out picture processing, the image processing method includes:
In the present embodiment, when carrying out picture processing to several Target Photos, in step 301 to step 304 and embodiment two
The step of it is 201 identical to step 204, will not be repeated here.
Step 305:If the press pressure value is not less than the second preset pressure threshold value, determined at least according to the source picture
One width Target Photo.
In this step, press pressure value is used to judge whether to reach the trigger condition for determining Target Photo, is triggered when meeting
During condition, i.e., when press pressure value is not less than the second preset pressure threshold value, an at least width Target Photo is determined according to source picture.
Wherein, the second preset pressure threshold value can, by the default fixed value of device, or by user-defined fixed value, be somebody's turn to do
Second preset pressure threshold value can be that this second by the default fixed value of device, or by user-defined fixed value
Preset pressure threshold value can be identical with the first preset pressure threshold value, it is also possible to different, and the present invention is not limited thereto.
Specifically, source picture and the characteristic value of each stored picture can be generated with the stored picture in acquisition device,
This feature value is used to represent graphic image feature that the characteristic value according to picture to calculate similar between stored picture and source picture
Degree, similarity is met the stored picture of similarity threshold as Target Photo.
Preferably, in the embodiment of the present invention, before the characteristic value of generation stored picture, can be according to the attribute of picture
Information is matched to stored picture, and the attribute information includes at least one in following information:Store path, time, name
Claim.It is specific as follows when matching picture according to above-mentioned attribute information:According to the store path of source picture, match and exist with source picture
When picture under identical store path, such as source picture are sectional drawing, all pictures under sectional drawing path are matched;Or, according to
The time of source picture, the picture in the range of certain hour with source picture is matched, for example, match and deposit in interior device on the same day
All pictures of storage;Or, according to the title of source picture, match the picture close with source picture name, such as A1.jpg,
A1_1.jpg、A1_2.jpg.In the embodiment of the present invention, stored picture is matched first, generation has matched the spy of picture
Value indicative, to determine Target Photo in picture has been matched, can reduce the complexity for determining Target Photo process Program, reduce
Operation time.
Preferably, after basis determines Target Photo step with the similarity of source picture, can be according to similarity to mesh
Piece of marking on a map is ranked up.In the embodiment of the present invention, be according to the press pressure value of user's pressing operation to Target Photo at
Reason, so, Target Photo is ranked up with the similarity of source picture according to Target Photo, can locate successively in processing procedure
Reason similarity Target Photo from high to low, when the similarity of the Target Photo for processing does not meet the demand of user, uses
Family can stop pressing operation terminating the treatment to Target Photo.The above method can the picture high to similarity enter row major
Treatment, improves the reasonability of picture processing, lifts Consumer's Experience.
Step 306:Generate the display interface for showing the pending picture.
Alternatively, in the embodiment of the present invention, after an at least width Target Photo step is determined according to source picture, the side
Method also includes, generates the pending picture that identification and picture processing have been completed for showing, and/or be identified or picture
The pending picture for the treatment of, wherein pending picture includes source picture and an at least width Target Photo.
Specifically, after an at least width Target Photo step is determined according to source picture, one display interface of generation, and
First pending picture is shown in display interface, that is, has completed the source picture of first area picture processing, when completion is to first
In pending picture during the picture processing of second area, picture viewing area of the display interface according to user in display interface
On pressing operation, when the pressing operation press pressure value be not less than the second preset pressure threshold value when, display interface loading under
One pending picture, i.e., next width Target Photo, in the embodiment of the present invention, next pending picture of loading can be loading
Complete picture or the thumbnail of picture, do not limit herein.Preferably, according to the similarity with source picture from high to low
Order load next width Target Photo.
Alternatively, the display interface of the thumbnail list for showing pending picture is generated.Specifically, according to source figure
Piece determines after an at least width Target Photo step that generation one is used for display circle of the thumbnail list for showing pending picture
Face, and first thumbnail of pending picture is shown in display interface, that is, complete the source figure of first area picture processing
The thumbnail of piece, when the picture processing of second area in completing to first pending picture, display interface exists according to user
The pressing operation on picture viewing area in display interface, when the press pressure value of the pressing operation is not less than the second default pressure
During force threshold, display interface loads the next thumbnail of pending picture.
Specifically, as shown in fig. 6, being the display interface schematic diagram of pending picture thumbnail list.Display shown in Fig. 6
Interface is after completing to the 3rd treatment of pending picture, to carry out picture processing to the 4th pending picture, or
Person has been completed to the 4th state of the picture processing of pending picture.In the embodiment of the present invention, pending picture is contracted
The quantity of the size of sketch map and each row and column display thumbnail, load mode are not construed as limiting, and can make tune according to specific device
It is whole.For example, in the display interface shown in Fig. 6, thumbnail is loaded in the way of the width of every row 3, the width of each column 4, it is preferable that according to
The similarity of source picture order from high to low loads the next thumbnail of pending picture.
Or, generate for showing when the previous display interface of pending picture.Specifically, determine according to source picture
After an at least width Target Photo step, a display interface is generated, and first pending picture is shown in display interface,
The source picture of first area picture processing is completed, the picture processing of second area in completing to first pending picture
When, the pressing operation on picture viewing area of the display interface according to user in display interface, when the pressing of the pressing operation
When pressure value is not less than the second preset pressure threshold value, currently pending picture in display interface is to the Slideslip of interface one and hidden
Hide, while loading next pending picture, it is preferable that next according to the order loading from high to low of the similarity with source picture
Pending picture.
Specifically, as shown in fig. 7, being when the previous display interface schematic diagram of pending picture.Display circle shown in Fig. 7
Face is the 3rd pending picture Slideslip to the left after completing to the 3rd picture processing of pending picture, loading the
Four pending pictures, further, hide the 3rd pending picture, complete to the loading of the 4th pending picture and
Display.In the embodiment of the present invention, size and sliding type to pending picture are not construed as limiting, for example, complete the pending for the treatment of
Picture can be slided to the left, it is also possible to upward sliding.
In the embodiment of the present invention, pending picture is shown by display interface, can shown in real time handled by user
Picture, is easy to user to check picture processing progress, starts or stop the treatment to pending picture in time, with preferably interaction
Performance.
Alternatively, in embodiments of the present invention, user can show while pressing operation is carried out in display interface
Whether configured information reaches the second preset pressure threshold value with the press pressure value of instruction user pressing operation.Specifically, letter is indicated
The display methods of breath is identical with step 202, will not be repeated here.
Step 307:Identification is worked as when the second area matched with the characteristic information in previous width Target Photo to described
The second area of previous width Target Photo is carried out and the first area identical picture processing.
In step 305, it is true according to the source picture when the press pressure value is not less than the second preset pressure threshold value
Determined the Target Photo of an at least width, in this step, according to the characteristic information of source picture first area, in identification display interface when
The second area matched with characteristic information in previous width Target Photo, specifically, according to the characteristic information of source picture first area,
Previous width Target Photo will be worked as carries out feature extraction, it is alternatively possible to the image larger to resolution ratio carries out down-sampled, reduction fortune
Feature extraction is carried out after calculation amount again, according to the similarity between Target Photo and source picture first area, Target Photo is matched
In meet the region of similarity threshold as the second area in the Target Photo, second area is carried out identical with first area
Picture processing.
Specifically, in step 303, algorithm to extraction source picture first area characteristic information and picture feature information
Particular content is not construed as limiting, for example, it is special to extract the Color Distribution Features information of picture, content characteristic information, space layout
Reference breath, texture feature information etc..In this step, according to the characteristic information of source picture first area, previous width target will be worked as
Picture carries out feature extraction, and feature here should be corresponding with the characteristic information of first area in step 303.For example, in step
The Color Distribution Features information of extraction source picture first area then in this step, should be extracted and worked as to determine second area in 303
The Color Distribution Features of previous width Target Photo, it is determined that when the Color Distribution Features and the face of first area of previous width Target Photo
Similarity between color distribution characteristics, will meet the region of similarity threshold as the second area in the Target Photo, to
Two regions are carried out and first area identical picture processing.
Specifically, in step 301, the picture processing operation according to user is carried out at picture to source picture first area
Reason, including mosaic processing, addition special-effect, toning, light and shade modification, reparation, stingy figure, editor etc. are carried out to first area.
In this step, second area is carried out with first area identical picture processing, picture processing here should with step 301 in
Specific processing mode is corresponding.For example, in step 301 for special-effect, for example, first are added in source picture first area
Paster is added in region, then in this step, the second area that should be in Target Photo adds same paster;For example, in step
Toning treatment is carried out to source picture first area in 301, then in this step, phase should be carried out to the second area in Target Photo
The toning treatment of same parameter.
Step 308:When the press pressure value is not less than the second preset pressure threshold value, loading is described to work as previous width mesh
Mark on a map next width Target Photo of piece, recognize the second area matched with the characteristic information in next width Target Photo,
And the second area to next width Target Photo is carried out and the first area identical picture processing.
In this step, press pressure value is used to judge whether to reach the next width Target Photo of loading and to next width target figure
The trigger condition that piece is processed, when a triggering condition is met, i.e., when press pressure value is not less than the second preset pressure threshold value,
Display interface loads next width Target Photo, and the second area in the next width Target Photo of identification with this feature information matches is right
The second area is carried out and first area identical picture processing.
Specifically, next width Target Photo is loaded according to the different display interfaces generated in step 306, when generation is for showing
When showing the display interface of thumbnail list of Target Photo, in this step, the thumbnail of next width Target Photo is loaded;Work as generation
For showing when the display interface of previous width Target Photo, in this step, next width Target Photo is loaded.
After completing the loading of next width Target Photo, second with this feature information matches in next width Target Photo is recognized
Region, is carried out and first area identical picture processing to the second area.In this step, identification and picture to Target Photo
Treatment is identical with the method in step 307, refers to the description in step 307, repeats no more here.
After loading, identification and the picture processing of next width Target Photo is completed, according to the size of press pressure value, when pressing
When pressure pressure value is not less than the second preset pressure threshold value, loading and treatment to Target Photo in this step are performed, when pressing is pressed
When force value is less than the second preset pressure threshold value, step 309 is performed.
Step 309:When the press pressure value is less than the second preset pressure threshold value, next width target figure is not loaded with
Piece.
When the loading and treatment of all Target Photos determined according to source picture in having completed step 305, not to target
Picture is loaded and processed;Or, when the press pressure value of the pressing operation for being not detected by pressing operation or detecting is small
When the second preset pressure threshold value, Target Photo is not loaded and is processed.
The image processing method of the embodiment of the present invention, user only needs to carry out picture processing behaviour in the first area of source picture
Make, and pressing operation is carried out on the picture of source, when the press pressure value of pressing operation reaches preset pressure threshold value, you can touch
Hair picture processing device is carried out and first area identical picture processing to second area in several pending pictures.It is of the invention real
Apply in example, user can control picture processing by changing the press pressure value of pressing operation, when press pressure value is less than second
During preset pressure threshold value, stopping carries out picture processing to Target Photo, while picture processing is carried out to Target Photo, can lead to
Cross display interface and show pending picture in real time.Therefore, in embodiments of the present invention, it is many in user needs to several pictures
When individual similar area carries out identical picture processing and operates, simple and convenient user operation, it is to avoid repeat, so as to lift user's body
Test.
Example IV
The embodiment of the present invention additionally provides a kind of device, image processing method and the above method embodiment one of its realization
Cause, it is possible to achieve the institute of above method embodiment is functional.Reference picture 8a, in being picture processing device fourth embodiment of the present invention
First structure block diagram, the picture processing device 800 include first processing module 801, depression detection module 802 and second processing
Module 803, wherein first processing module 801 and depression detection module 802 are connected, depression detection module 802 and second processing mould
Block 803 is connected.
First processing module 801, for being carried out at picture to source picture first area according to the operation of the picture processing of user
Reason.In the embodiment of the present invention, first processing module 801 can be operated according to the picture processing of user, determine pending source figure
Pending area in piece and source picture, and the pending area of source picture, i.e. first area are carried out to include at mosaic
Reason, addition special-effect, toning, light and shade modification, reparation, stingy figure, editor etc. are in interior picture processing.
Depression detection module 802, for detecting pressing behaviour of the user on the picture viewing area of picture processing device 800
Make, obtain the press pressure value of pressing operation, depression detection module 802 can be pressure sensor, and pressure sensor is used to examine
Survey the pressing operation of user.
Second processing module 803, the size of the press pressure value for being obtained according to depression detection module 802, works as pressing
When the size of pressure value meets trigger condition, pending picture is identified according to first area, in determining pending picture
The second area matched with first area, and second area to pending picture carries out and source picture first area identical figure
Piece treatment.
In the present embodiment, the second area of pending picture is carried out and source picture first area phase by Second processing module
Same picture processing.For example, the first processing module 801 of picture processing device 800 according to user to source picture first area
Operation is smeared, mosaic processing has been carried out to first area, then Second processing module 803 carries out identical Marseille to second area
Gram treatment.
The picture processing device 800 of the embodiment of the present invention is by setting first processing module 801, depression detection module 802
With Second processing module 803, can realize that user only needs to carry out picture processing operation in the first area of source picture, and
Pressing operation is carried out on picture viewing area, when the press pressure value of pressing operation meets trigger condition, you can triggering picture
Processing unit is carried out and first area identical picture processing to second area in pending picture.
Preferably, shown in reference picture 8b, picture processing device 800 is on the basis of Fig. 8 a, and Second processing module 803 is specific
Including extraction unit 8031, recognition unit 8032, processing unit 8033, Target Photo determining unit 8034 and loading unit
8035.Wherein in Second processing module 802, recognition unit 8032 is connected with extraction unit 8031, processing unit 8033 with identification
Unit 8032 is connected, and Target Photo determining unit 8034 is connected with processing unit 8033, loading unit 8035 respectively with target figure
Piece determining unit 8034, recognition unit 8032 and processing unit 8033 are connected.
Extraction unit 8031, the press pressure value for being obtained when depression detection module is not less than the first preset pressure threshold value
When, extract the characteristic information of first area.Algorithm to extraction unit 8031 and the picture feature information extracted it is specific in
Appearance is not construed as limiting, for example, can extract the Color Distribution Features information of picture, content characteristic information, spatial distribution characteristics information,
Texture feature information etc..The first preset pressure threshold value in the present apparatus can be by the default fixed value of device, or by
User-defined fixed value.
Recognition unit 8032, for recognizing the second area in pending picture with this feature information matches.Specifically, know
Other unit is used to complete in step 304, step 307, step 308 to source picture, when previous width Target Photo and next width target
The identification of the second area of picture.The characteristic information of the source picture first area extracted according to extraction unit 8031, by target figure
Piece carries out feature extraction, it is alternatively possible to the image larger to resolution ratio carry out it is down-sampled, reduce operand after carry out feature again
Extract, according to the similarity between Target Photo and source picture first area, to match and meet similarity threshold in Target Photo
Region as the second area in the Target Photo.
Processing unit 8033, is carried out and first area identical picture processing for the second area to pending picture.
Specifically, in first processing module 801, the picture processing operation according to user carries out picture processing to source picture first area,
Including carrying out mosaic processing, addition special-effect, toning, light and shade modification, reparation, stingy figure, editor etc. to first area.Second
Processing unit 8033 in processing module 803 carries out being answered with first area identical picture processing, picture processing to second area
It is corresponding with specific processing mode in first processing module 801.For example, first processing module 801 is to source picture first area
Mosaic processing is carried out, then the second area that processing unit 8033 should be in Target Photo carries out same mosaic processing;Example
Such as, first processing module 801 carries out toning treatment to source picture first area, then in the reply of processing unit 8033 Target Photo
Second area carries out the toning treatment of identical parameters.
Target Photo determining module 8034, the press pressure value for being obtained when depression detection module 802 is not less than second
During preset pressure threshold value, an at least width Target Photo is determined according to source picture, wherein, the second preset pressure threshold value can be by filling
Put default fixed value, or by user-defined fixed value, the size of the second preset pressure threshold value can be with first
Preset pressure threshold value is identical, it is also possible to different, is not limited thereto.
Specifically, source picture and the characteristic value of each stored picture can be generated with the stored picture in acquisition device,
This feature value is used to represent graphic image feature that the characteristic value according to picture to calculate similar between stored picture and source picture
Degree, similarity is met the stored picture of similarity threshold as Target Photo.Preferably, in the spy of generation stored picture
Before value indicative, stored picture can be matched according to the attribute information of picture, the attribute information is included in following information
At least one:Store path, time, title.Preferably, basis and the similarity of source picture determine Target Photo step it
Afterwards, Target Photo can be ranked up according to similarity.
Alternatively, Second processing module 803 also include display interface generation unit, for generate display completed identification and
The Target Photo of picture processing, and/or be identified or picture processing Target Photo.
Specifically, display interface generation unit is used for after an at least width Target Photo step is determined according to source picture,
One display interface of generation, and first pending picture is shown in display interface, that is, complete first area picture processing
Source picture, when the picture processing of second area during Second processing module 803 completes to first pending picture, show boundary
Pressing operation on picture viewing area of the face according to user in display interface, when the press pressure value of pressing operation is not less than
During the second preset pressure threshold value, display interface loads next pending picture, it is preferable that according to the similarity with source picture by
High to Low order loads next pending picture.
Loading unit 8035, for completing the picture processing to the second area when previous width Target Photo when processing unit
Afterwards, and press pressure value be not less than the second preset pressure threshold value when, loading when previous width Target Photo next width target figure
Piece, when press pressure value is less than the second preset pressure threshold value, is not loaded with next width Target Photo.
After loading unit 8035 completes the loading of next width Target Photo, recognition unit 8032 recognizes next width target figure
The second area matched with characteristic information in piece, 8033 pairs of second areas of processing unit are carried out and first area identical picture
Treatment.According to the size of press pressure value, loading unit 8035, recognition unit 8032, processing unit 8033 repeat the above steps,
Next width Target Photo is loaded, recognized and processed.It is true according to source picture when Target Photo determining unit 8034 has been completed
When the loading and treatment of fixed all Target Photos, Target Photo is not loaded and is processed;Or, work as depression detection module
When the 802 press pressure values for being not detected by pressing operation or the pressing operation for detecting are less than the second preset pressure threshold value, no
Target Photo is loaded and is processed.
Picture processing device 800 can realize each process realized in above-mentioned each method embodiment, to avoid repeating, this
In repeat no more, specifically may be referred to the introduction in above-described embodiment.
The picture processing device of the present embodiment, by setting first processing module 801, depression detection module 802, extracting single
Unit 8031, recognition unit 8032, processing unit 8033, Target Photo determining unit 8034 and loading unit 8035, you can realize
To the picture processing of single picture and the batch processing of several pictures.User only needs to carry out picture in the first area of source picture
Treatment operation, and carries out reaching the pressing operation of preset pressure threshold value on picture viewing area, you can to single width or several
Pending area in pending picture carries out identical picture processing.Picture processing device of the invention, is being carried out at picture
During reason, simple and convenient user operation, it is to avoid repeat, so as to lift Consumer's Experience.
Embodiment five
As shown in figure 9, be picture processing terminal apparatus structure block diagram provided in an embodiment of the present invention, specifically, in Fig. 9
Terminal 900 can be mobile phone, panel computer, electronic computer, personal digital assistant (Personal Digital
Assistant, PDA) or vehicle-mounted computer etc..
Terminal 900 in Fig. 9 includes radio frequency (Radio Frequency, RF) circuit 901, memory 902, input block
903rd, display unit 904, processor 905, voicefrequency circuit 906, WiFi (Wireless Fidelity) module 907 and power supply
908。
Wherein, input block 903 can be used to receive the numeral or character information of user input, and produce and terminal 900
User set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 903 can be with
Including contact panel 9031.Contact panel 9031, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user uses the operations of any suitable object or annex on contact panel 9031 such as finger, stylus), and according to pre-
The formula for first setting drives corresponding attachment means.Optionally, contact panel 9031 may include touch detecting apparatus and touch to control
Two parts of device processed.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, will
Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact
Coordinate, then give the processor 905, and the order sent of receiving processor 905 and can be performed.Furthermore, it is possible to using electricity
The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 9031.In the embodiment of the present invention, except
Contact panel 9031, input block 903 also includes pressure sensor 9032, for detecting user's pressing on touch panel 9031
Press operation.Input block 903 can also include other input equipments 9033, and other input equipments 9033 can be included but is not limited to
One kind or many in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Kind.
Wherein, display unit 904 can be used for display by the information of user input or be supplied to the information and terminal of user
900 various menu interfaces.Specifically, in the embodiment of the present invention, display unit 904 is used to show source picture, pending picture
And the magnitude relationship of press pressure value and preset pressure threshold value etc..Display unit 904 may include display panel 9041, optionally,
Can be aobvious to configure using the form such as LCD or Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
Show panel 9041.
It should be noted that contact panel 9031 can cover display panel 9041, touch display screen is formed, when the touch display screen
Detect thereon or after neighbouring touch operation, processor 905 is sent to determine the type of touch event, with preprocessor
905 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes software interface viewing area and conventional control viewing area.The software interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The software interface viewing area is displayed for the interface of application software.Each interface can be with
The interface element such as the icon comprising at least one application software and/or widget desktop controls.The software interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application software icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 905 is the control centre of terminal 900, using various interfaces and connection whole mobile phone each
Part, by running or performing software program of the storage in first memory 9021 and/or module, and calls storage the
Data in two memories 9022, perform the various functions and processing data of terminal 900, so as to carry out overall prison to terminal 900
Control.Alternatively, processor 905 may include one or more processing units.In the embodiment of the present invention, second memory 9022 is used for
Store press pressure value, the first preset pressure threshold value, the second preset pressure threshold value, source picture, Target Photo, the feature letter for obtaining
Breath.
In embodiments of the present invention, by call store the first memory 9021 in software program and/or module and/
Or the data in the second memory 9022.Processor 905 is used for the picture processing of the user detected according to input block 903
Operation carries out picture processing to source picture first area;Pressure sensor 9032 in input block 903 is used to detect terminal 900
Pressing operation of the user on picture viewing area, processor 905 be additionally operable to obtain pressure sensor 9032 detects by
The press pressure value of press operation;Processor 905 is additionally operable to the size according to press pressure value, with first in the pending picture of identification
The second area of Region Matching, and second area is carried out and first area identical picture processing.
In the embodiment of the present invention, the press pressure value of pressing operation is detected by pressure sensor 9032, processor 905 exists
Press pressure value be not less than the first preset pressure threshold value when, extract first area characteristic information, and in the picture of source with feature
The region of information matches is identified, and determines the second area in the picture of source, second area is carried out and first area identical
Picture processing.Specifically, the particular content of the algorithm and picture feature information to extracting first area characteristic information is not construed as limiting,
For example, the Color Distribution Features information of picture, content characteristic information, spatial distribution characteristics information, textural characteristics letter can be extracted
Breath etc..Wherein, the first preset pressure threshold value can be the fixed value, or end that user is set by input block 903
The fixed value set in end 900.
An at least width Target Photo is determined according to source picture, specifically, processor 905 can obtain second memory 9022
In stored picture, the characteristic value of generation source picture and each stored picture, this feature value is used to represent that graphic image is special
Levy, the characteristic value according to picture calculates the similarity between stored picture and source picture, and similarity is met into similarity threshold
Stored picture as Target Photo.Preferably, before the characteristic value of generation stored picture, processor 905 can be with root
Stored picture is matched according to the attribute information of picture, the attribute information includes at least one in following information:Storage
Path, time, title.Preferably, after basis determines Target Photo step with the similarity of source picture, can be according to similar
Degree is ranked up to Target Photo.
Alternatively, first pending picture is shown by display unit 905, that is, has completed first area picture processing
Source picture, when the picture processing of second area during processor 905 completes to first pending picture, display unit according to
Pressing operation of the family on the picture viewing area in display panel 9041, when the press pressure value of pressing operation is not less than second
During preset pressure threshold value, display unit loads next pending picture, it is preferable that according to the similarity with source picture by height to
Low order loads next pending picture.
Alternatively, display unit 904 can show configured information with instruction user while user carries out pressing operation
Whether the press pressure value of pressing operation reaches the second preset pressure threshold value.Specifically, configured information during pressing operation shows
Method refers to the description that Fig. 3, Fig. 4 are combined in step 202, repeats no more here.
Processor 905 is current to what is shown in display interface when press pressure value is not less than the second preset pressure threshold value
The region matched with characteristic information in one width Target Photo is identified, it is determined that when the second area in previous width Target Photo,
Second area is carried out and first area identical picture processing.Complete the picture to the second area when previous width Target Photo
After treatment, the press pressure value that pressure sensor 9032 is detected is judged, when press pressure value is not less than the second preset pressure threshold
During value, next width Target Photo of previous width Target Photo is worked as in loading, and in next width Target Photo of load-on module loading
The second area matched with characteristic information is identified, and second area is carried out and first area identical picture processing.When
When completing the loading and treatment according to all Target Photos of source picture determination, Target Photo is not loaded and is processed, or
Person, when pressure sensor 9032 is not detected by pressing operation or the press pressure value of pressing operation that detects is pre- less than second
If during pressure threshold, not loaded to Target Photo and being processed.
Terminal 900 can realize each process that terminal is realized in the embodiment of the method for Fig. 1 to Fig. 7, to avoid repeating, this
In repeat no more.
It can be seen that, the terminal 900 of the embodiment of the present invention, processor 905 is used for the user's detected according to input block 903
Picture processing operation carries out picture processing to source picture first area, and input block 903 indicates pressure sensor 9032 to detect end
Pressing operation of the user at end 900 on picture viewing area, processor 905 obtains the pressing that pressure sensor 9032 is detected
The press pressure value of operation, according to the size of press pressure value, recognizes the secondth area matched with first area in pending picture
Domain, and second area is carried out and first area identical picture processing.Terminal of the invention, user only need to be to pending picture
Regional area carry out picture processing operation, by pressing operation can carry out identical picture processing to other matching areas,
To solve when having many places to need in pending picture to carry out identical picture processing to operate, user needs that same place is repeated several times
Complex steps, time-consuming problem more long caused by reason operation.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each
The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this 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 the mesh of this embodiment scheme
's.
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 can check storage 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.