Summary of the invention
This application provides a kind of portable digital equipment for having camera function and the methods for screening photo, and family can be usedUnwanted photo is easily deleted after the completion of shooting, and useless photo is avoided to occupy memory space.
A kind of method for screening photo provided by the embodiments of the present application, comprising:
A, when operation is exited in the software execution of taking pictures of portable digital equipment, judge in this operational process of software of taking picturesWhether carry out continuously taking pictures, if so, executing step B, has otherwise terminated this process;
B, the photo continuously taken pictures is screened, retains the wherein preferable photo of quality.
Preferably, the portable digital equipment uses multiple task operating system, described exit takes pictures software to terminate operationIt takes pictures and software or the software of taking pictures of front stage operation is called in into running background.
Preferably, described judge that whether having carried out continuously taking pictures in this operational process of software of taking pictures includes: to pass through ratioCompared with the photo opporunity of each photo saved in this shooting process, if there have the interval of the photo opporunity of two photos to be less than to be pre-The first threshold first set, then it is assumed that be the photo continuously taken pictures;The photo continuously taken pictures if it exists determines this shooting processIn continuously take pictures;If there is three or more photos, adjacent two photo opporunities are respectively less than first threshold, then willThese photos are as one group of photo of continuously taking pictures.
Preferably, the first threshold is user's setting value, system default value, the time interval continuously taken pictures for the first timeThe sliding average of the mean value for the time interval that mean value or nearest n times are continuously taken pictures.
Preferably, further comprising after step B: whether photo deletion has been carried out in judgment step B, if so, the first thresholdValue remains unchanged;Otherwise, if first threshold is not up to minimum value, first threshold is reduced, the minimum value is continuous for the first timeIt takes pictures or the minimum value of n times are continuously taken pictures recently the mean value of time interval.
Preferably, described the step of being considered the photo continuously taken pictures, further comprises: for time interval less than firstThe photo of threshold value further calculates the distance between the coordinate of the photo, if distance is less than second threshold, then it is assumed that is to connectThe continuous photo taken pictures, is otherwise not considered as the photo continuously taken pictures.
Preferably, being judged as in one group of photo of continuously taking pictures, the differential seat angle of the Space Angle of its optical axis direction is calculated, such asFruit has the differential seat angle of two or two or more photos to be greater than third threshold value, then these photos is further divided into smaller group,Wherein the differential seat angle of the Space Angle of the optical axis direction of any two photos in each group is respectively less than third threshold value.
Preferably, the value range of the third threshold value is 5 degree to 30 degree.
Preferably, described judge that whether having carried out continuously taking pictures in this operational process of software of taking pictures includes: to pass through figureAs recognizer calculates the picture similarity for the photo obtained in this operational process of software of taking pictures, if similarity is more than the 4thThreshold value is then considered the photo continuously taken pictures;The photo continuously taken pictures if it exists determines to have carried out in this shooting process continuousIt takes pictures;If there is three or more photos, adjacent two similarities are respectively less than the 4th threshold value, then using these photos as oneThe continuous photo of taking pictures of group.
Preferably, step B includes: to show the photograph continuously taken pictures in a manner of several on the screen of the portable digital equipmentPiece, user choose the photo for needing to retain or delete by touching screen, then press " determination " button shown on screen, thenAccording to the user's choice, corresponding photo is deleted.
Preferably, once one group of photo of continuously taking pictures of display, the photo of continuously taking pictures of difference group are divided into multiple display.
Preferably, step B includes: to calculate the clarity of photo picture first for one group of photo of continuously taking pictures, it will be clearPoor photo is spent to delete;Then, the similarity that photograph image is calculated according to image recognition algorithm, from the higher photo of similarityThe middle selection highest photo of 1 to 3 quality, remaining photo is deleted.
The embodiment of the present application also provides a kind of portable digital equipments for having camera function, comprising:
Judgment module, for judging the software sheet of taking pictures when operation is exited in the software execution of taking pictures of portable digital equipmentWhether carry out continuously taking pictures in secondary operational process, if so, notice screening module;
Screening module retains wherein for being screened after receiving the notice of judgment module to the photo continuously taken picturesThe preferable photo of quality.
Preferably, the portable digital equipment uses multiple task operating system, described exit takes pictures software to terminate operationIt takes pictures and software or the software of taking pictures of front stage operation is called in into running background.
Preferably, the judgment module includes:
First judging unit, for the photo opporunity by comparing each photo saved in this shooting process, ifThere is the interval of the photo opporunity of two photos to be less than preset first threshold, then it is assumed that be the photo continuously taken pictures;If depositingIn the photo continuously taken pictures, determine to have carried out continuously taking pictures in this shooting process;It is adjacent if there is three or more photosTwo photo opporunities are respectively less than first threshold, then using these photos as one group of photo of continuously taking pictures.
Preferably, the first threshold is user's setting value, system default value, the time interval continuously taken pictures for the first timeThe sliding average of the mean value for the time interval that mean value or nearest n times are continuously taken pictures.
Preferably, the judgment module further comprises:
First threshold adjustment unit, for after continuously taking pictures each time, judging screening module after this is continuously taken picturesWhether photo deletion has been carried out, if so, first threshold remains unchanged;Otherwise, if first threshold is not up to minimum value, is reducedOne threshold value;The minimum value is the minimum value for the time interval that first time continuously takes pictures or n times are continuously taken pictures recently.
Preferably, the judgment module further comprises:
Second judgment unit further calculates institute for being considered the photo continuously taken pictures to first judging unitThe distance between the coordinate of photo is stated, if distance is less than second threshold, then it is assumed that be the photo continuously taken pictures, be otherwise not considered asIt is the photo continuously taken pictures.
Preferably, the judgment module further comprises:
Grouped element, for calculating the angle of the Space Angle of its optical axis direction to one group of photo of continuously taking pictures has been judged asIt is poor to spend, and if there is the differential seat angle of two or two or more photos is greater than third threshold value, is then further divided into these photos moreSmall group, wherein the differential seat angle of the Space Angle of the optical axis direction of any two photos in each group is respectively less than third threshold value.
Preferably, the value range of the third threshold value is 5 degree to 30 degree.
Preferably, the judgment module includes:
Third judging unit, for calculating the photo obtained in this operational process of software of taking pictures by image recognition algorithmPicture similarity, be considered the photo continuously taken pictures if similarity is more than the 4th threshold value;The photograph continuously taken pictures if it existsPiece determines to have carried out continuously taking pictures in this shooting process;If there is three or more photos, adjacent two similarities are equalLess than the 4th threshold value, then using these photos as one group of photo of continuously taking pictures.
Preferably, the screening module includes:
Manual screening unit, for showing the photograph continuously taken pictures in a manner of several on the screen of the portable digital equipmentPiece, and according to the user's choice, delete corresponding photo.
Preferably, the manual screening unit once shows one group of photo of continuously taking pictures, the photo of continuously taking pictures of difference groupIt is divided into multiple display.
Preferably, the screening module includes:
Automatic screening unit will be clear for calculating the clarity of photo picture first for one group of photo of continuously taking picturesPoor photo is spent to delete;Then, the similarity that photograph image is calculated according to image recognition algorithm, from the higher photo of similarityThe middle selection highest photo of 1 to 3 quality, remaining photo is deleted.
As can be seen from the above technical solutions, judge immediately after the completion of taking pictures be in this operational process of software of taking picturesIt is no continuously take pictures, and the photo continuously taken pictures is screened, retain the wherein preferable photo of quality, so as to realityAfter present user is continuously shot multiple pictures, easily photo is screened, retains the wherein preferable photo of quality, to saveMemory space.
Specific embodiment
This application provides a kind of methods for screening photo, and basic handling process is as shown in Figure 1, include the following steps:
Step 101: when user using portable digital equipment completion take pictures exit take pictures software when (for multi-job operation systemFor system, software of taking pictures becomes running background), judge whether carried out continuously taking pictures in this operational process of software of taking pictures,If so, executing step 102, otherwise terminate this process.
Step 102: the photo continuously taken pictures being screened, the wherein preferable photo of quality is retained.Wherein, the screeningIt can be the photo for showing in the form of several continuously take pictures on the screen, manually selected by user;Be also possible to according toFamily setting and filtering algorithm, are automatically deleted poor quality or the duplicate photo of content from the photo continuously taken pictures.
The portable digital equipment includes but is not limited to mobile phone, tablet computer, and no fuselage lens module is formed with mobile phoneSystem,
To keep the technical principle, feature and technical effect of technical scheme clearer, below in conjunction with specific realityExample is applied technical scheme is described in detail.
The process of screening photo provided by the embodiments of the present application is as shown in Fig. 2, include the following steps:
Step 201: according to the setting of user, enabling serial-gram screening function.
For example, user clicks the set interface for software of taking pictures, " serial-gram screening " this option is chosen, thus the company of enablingContinuous photo screening function.The step is optional step.
Step 202: user, which opens, to take pictures software and carries out photographing operation, each photo of storage user's shooting.
If portable digital equipment use single task operating system, opening take pictures software be meant that bring into operation take pictures it is softPart;If portable digital equipment uses multiple task operating system, opening takes pictures software in addition to the software of taking pictures that brings into operation, it is also possible toThe software of taking pictures of running background is called in into front stage operation.
Step 203: user exit the operation for software of taking pictures, and software of taking pictures at this time judges that user takes pictures software in openingWhether carry out continuously taking pictures into the process (hereinafter referred to as this shooting process) for exiting software of taking pictures, if executing step204, otherwise, terminate this process.
If portable digital equipment use single task operating system, exit software of taking pictures be meant that end operation take pictures it is softPart;If portable digital equipment uses multiple task operating system, software of taking pictures is exited in addition to terminating to run software of taking pictures, it is also possible toThe software of taking pictures of front stage operation is called in into running background.
Having judged whether to continuously take pictures can be illustrated individually below there are many judgment mode:
Mode one: judged by shooting time.The relevant information that photo would generally be saved when saving photo, includingPhoto opporunity, that is, system time when taking pictures.By comparing when the taking pictures of each photo saved in this shooting processBetween, if there is the interval of the photo opporunity of two photos to be less than preset first threshold, then it is assumed that be the photo continuously taken pictures;The photo continuously taken pictures if it exists determines to have carried out continuously taking pictures in this shooting process.
If there is three or more photos, adjacent two photo opporunities are respectively less than first threshold, then by these photosAs one group of photo of continuously taking pictures.There may be the photo of continuously taking pictures of two or more groups in a shooting process.
Since the response time that different portable digital equipments is taken pictures is different, the habit that everyone takes pictures is also different,The mean value at the interval when first threshold can be user's setting value, system default value or continuously take pictures for the first time, e.g., theFor user altogether by 5 shutters, interval is respectively 5 seconds, 5 seconds, 1 second, 1 second when one-time continuous is taken pictures, and the mean value at interval is calculatedIt is 3 seconds, then sets first threshold to 3 seconds.For nearest use habit of being more close to the users, which is also possible toThe sliding average of the continuous photo opporunity interval mean value of nearest n times.
It, can be to carry out dynamic tune to first threshold according to whether having carried out photo and having deleted according to another embodiment of the applicationSection.For example, deleting photo in photo screening process, it was demonstrated that current judgement is continuously taken pictures effectively, and first threshold is constant, if nothingIt deletes, first threshold (such as reducing by 1 second) is reduced if first threshold is not up to minimum value, is not adjusted if having reached minimum valueIt is whole.Minimum value is the minimum value for the time interval mean value that first time continuously takes pictures or n times are continuously taken pictures recently (for example, for the first timeUser is altogether by 5 shutters when continuously taking pictures, and interval is respectively 5 seconds, 5 seconds, 1 second, 1 second, then minimum value is 1 second;Alternatively, recentlyThe time interval mean value continuously taken pictures three times is respectively 2 seconds, 2.5 seconds, 3 seconds, then minimum value is 2 seconds).
Mode two: judged by shooting time combination shooting location.
Only by time interval to determine whether continuously take pictures, but if portable digital equipment is in mode oneIn movement, even if then shooting interval is very short twice, photo picture may also be very different, therefore also need to combine shooting groundPoint is judged.
When taking pictures, changing coordinates are obtained by location-based service, and coordinate information is stored in photo relevant information.It is rightIt is less than the photo of first threshold in time interval, further calculates the distance between its coordinate, if distance is less than second threshold,Then it is considered the photo continuously taken pictures, is otherwise not considered as the photo continuously taken pictures.
In some cases, user may stand and take pictures in same place to different directions in a relatively short period of time.If clappedIrradiation angle difference is larger, and the photo content obtained in this way has very big difference, is not belonging to the photo that should be screened, it is therefore desirable to willSuch case excludes.
When taking pictures, believed by the optical axis direction of gravity sensor and GPS acquisition camera built in portable digital equipmentBreath, and by direction information preservation in photo relevant information.For being judged as in one group of photo of continuously taking pictures, it is calculatedThe differential seat angle of the Space Angle of optical axis direction, if there is the differential seat angle of two or two or more photos is greater than third threshold value, then by thisA little photos are further divided into smaller group, wherein the differential seat angle of the optical axis direction of any two photos in each group is respectively less thanThird threshold value.
In the embodiment of the present application, the value range of the third threshold value is 5 degree to 30 degree.
Mode three is judged by photo picture content.
The picture similarity of the photo obtained in this operational process of software of taking pictures can be calculated by image recognition algorithm,The photo continuously taken pictures is considered if similarity is more than the 4th threshold value;The photo continuously taken pictures if it exists determines this batContinuously take pictures during taking the photograph;If there is three or more photos, adjacent two similarities are respectively less than the 4th threshold value,Then using these photos as one group of photo of continuously taking pictures.The similarity can be whole pictures based on photo, be also possible toBased on part of content, for example, picture beginning and end 10% content.The value range of 4th threshold value can be50% to 90%.
Mode three can also be combined with mode one to two.To avoid erroneous judgement.
Step 204: the photo continuously taken pictures being screened, the wherein preferable photo of quality is retained.
The screening can be divided into manual screening mode and automatic screening mode.Taking pictures software can setting according to userIt sets, one of mode is selected to be operated.
Under manual screening mode, the photo continuously taken pictures is shown in a manner of several on the screen, user passes through touch screenCurtain chooses the photo for needing to retain (or deletion), then presses " determination " button shown on screen, then according to the user's choice,Delete corresponding photo.Preferably, one group of photo of continuously taking pictures can once be shown, the photo of continuously taking pictures of difference group is divided into moreSecondary display, to facilitate user to select.
Under automatic screening mode, for one group of photo of continuously taking pictures, the clarity of photo picture is calculated first, it will be clearPoor photo is spent to delete;Then, the similarity that photograph image is calculated according to image recognition algorithm, from the higher photo of similarityThe middle selection 1-3 highest photos of quality, remaining photo is deleted.
The embodiment of the present application also provides a kind of portable digital equipments for having camera function, as shown in figure 3, including as followsFunctional module:
Judgment module 301, for when user using portable digital equipment completion take pictures exit take pictures software when, judge the batAccording to whether having carried out continuously taking pictures in this operational process of software, if so, notice screening module 302;
Screening module 302 is protected for being screened after the notice for receiving judgment module 301 to the photo continuously taken picturesStay the wherein preferable photo of quality.
The portable digital equipment part directly related with the application is only shown in Fig. 3, other module or components (including realizeTake pictures necessary camera, memory module etc.) it is not shown.
According to another embodiment of the application, the portable digital equipment uses multiple task operating system, and described exit is taken picturesSoftware is to terminate to run to take pictures software or the software of taking pictures of front stage operation is called in running background.
According to another embodiment of the application, the judgment module includes:
First judging unit, for the photo opporunity by comparing each photo saved in this shooting process, ifThere is the interval of the photo opporunity of two photos to be less than preset first threshold, then it is assumed that be the photo continuously taken pictures;If depositingIn the photo continuously taken pictures, determine to have carried out continuously taking pictures in this shooting process;It is adjacent if there is three or more photosTwo photo opporunities are respectively less than first threshold, then using these photos as one group of photo of continuously taking pictures.
According to another embodiment of the application, the first threshold is user's setting value, system default value, for the first time continuous batAccording to when time interval mean value or the sliding average of the mean value of time interval continuously taken pictures of nearest n times.
According to another embodiment of the application, the judgment module further comprises:
First threshold adjustment unit, for after continuously taking pictures each time, judging screening module after this is continuously taken picturesWhether photo deletion has been carried out, if so, first threshold remains unchanged;Otherwise, if first threshold is not up to minimum value, is reducedOne threshold value;The minimum value is the minimum value for the time interval that first time continuously takes pictures or n times are continuously taken pictures recently.
According to another embodiment of the application, the judgment module further comprises:
Second judgment unit further calculates institute for being considered the photo continuously taken pictures to first judging unitThe distance between the coordinate of photo is stated, if distance is less than second threshold, then it is assumed that be the photo continuously taken pictures, be otherwise not considered asIt is the photo continuously taken pictures.
According to another embodiment of the application, the judgment module further comprises:
Grouped element, for calculating the angle of the Space Angle of its optical axis direction to one group of photo of continuously taking pictures has been judged asIt is poor to spend, and if there is the differential seat angle of two or two or more photos is greater than third threshold value, is then further divided into these photos moreSmall group, wherein the differential seat angle of the Space Angle of the optical axis direction of any two photos in each group is respectively less than third threshold value.Compared withGoodly, the value range of the third threshold value is 5 degree to 30 degree.
According to another embodiment of the application, the judgment module includes:
Third judging unit, for calculating the photo obtained in this operational process of software of taking pictures by image recognition algorithmPicture similarity, be considered the photo continuously taken pictures if similarity is more than the 4th threshold value;The photograph continuously taken pictures if it existsPiece determines to have carried out continuously taking pictures in this shooting process;If there is three or more photos, adjacent two similarities are equalLess than the 4th threshold value, then using these photos as one group of photo of continuously taking pictures.
According to another embodiment of the application, the screening module includes:
Manual screening unit, for showing the photograph continuously taken pictures in a manner of several on the screen of the portable digital equipmentPiece, and according to the user's choice, delete corresponding photo.
According to another embodiment of the application, the manual screening unit once shows one group of photo of continuously taking pictures, different groupsContinuously photo of taking pictures be divided into multiple display.
According to another embodiment of the application, the screening module includes:
Automatic screening unit will be clear for calculating the clarity of photo picture first for one group of photo of continuously taking picturesPoor photo is spent to delete;Then, the similarity that photograph image is calculated according to image recognition algorithm, from the higher photo of similarityThe middle selection highest photo of 1 to 3 quality, remaining photo is deleted.
The portable digital equipment can be smart phone, tablet computer.
By applying technical scheme, may be implemented after user is continuously shot multiple pictures, easily to photoIt is screened, retains the wherein preferable photo of quality, to save memory space.
Through the above description of the embodiments, those skilled in the art can be understood that the application can be bySoftware adds the mode of required hardware platform to realize, naturally it is also possible to all implemented by hardware, but in many cases beforePerson is more preferably embodiment.Based on this understanding, the technical solution of the application contributes to background technique whole orPerson part can be embodied in the form of software products, which can store in storage medium, such asROM/RAM, magnetic disk, CD etc., including some instructions are with so that a portable digital equipment executes each embodiment of the applicationOr method described in certain parts of embodiment.
The foregoing is merely the preferred embodiments of the application, not to limit the protection scope of the application, it is allWithin the spirit and principle of technical scheme, any modification, equivalent substitution, improvement and etc. done should be included in this ShenWithin the scope of please protecting.