Specific embodiment
The method that the embodiment of the present invention provides a kind of filing of picture, can automatically according to the shooting time of picture andCoverage is filed for picture, so as to meet user's request, improves the efficiency of picture filing.ThisInventive embodiments additionally provide corresponding device.It is described in detail individually below.
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 clearlyChu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather thanWhole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creative laborThe every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
Refering to Fig. 1, the system of image filing provided in an embodiment of the present invention can include:User interface (UserInterface, UI) display subsystem 10, picture encoding and decoding subsystem 20 and automatically generate photograph album subsystem 30.UI display subsystems 10 are used for picture and operation interface display;Picture encoding and decoding subsystem 20 is used for figurePiece carries out coding-decoding operation;Photograph album subsystem 30 is automatically generated for automatically generating album system, is responsible for figurePiece is arranged, and automatically generates photograph album.
UI display subsystems 10 can be understood as including picture display interface module and reader action bar module,
Picture display interface module is responsible for showing decoded image that reader action bar module is responsible forDisplay reader forms certain operations button, including automatically generate photograph album.
Picture encoding and decoding subsystem can be understood as including picture decoder module and coding of graphics module, picture solutionCode module is used for parsing the coding of picture, becomes original image information flow, three-primary colours (Red, Green,Blue, RGB) form view data.Original image information flow is encoded to JPEG by coding of graphics moduleDeng picture format.
Automatically generate photograph album subsystem function can refer to Fig. 2 shown in image archiving process understood,Image archiving process shown in Fig. 2 includes following several steps:
301st, to picture library in picture of not filing be ranked up according to the shooting time of every pictures.
Shooting time refers to specific time point, be can be as accurate as point or the second.
302nd, the positional information for not filing picture after sequence is determined, according to the picture of not filingPositional information, is described not file picture and determine at least one coverage.
Positional information can be the latitude and longitude information in picture shooting location.The size of coverage can not be consolidatedIt is fixed, for example:East Chinese Overseas Town, great Mei sand, Hill Park, can determine according to spot for photography.
Coverage in the embodiment of the present invention can also pre-set geographic range, for example:Certain picturesGeographical position have an area of ten kilometers in scope.
303rd, for not filing picture described in after sequence, will be within preset time period, and same shootingIn the range of shoot picture be divided into same photograph album, obtain at least one filing photograph album;
For example:By in one day in the picture filing captured by Hill Park in a photograph album, by one dayIn the picture filing that great Mei sand is taken the photograph a to photograph album.Preset time period can be one day, or severalIndividual hour, the specific time does not limit.
304th, when the picture of some photograph albums is less, can be by two or more photograph albums continuous in timeMerge into one and merge filing photograph album.
305th, it is each filing photograph album name, and each the filing photograph album after name is showed into user.
Each filing photograph album can include merging filing photograph album, it is also possible to including each the filing phase before mergingVolume.
The process of picture filing provided in an embodiment of the present invention, can be automatically according to the shooting time of picture and batScope is taken the photograph for picture is filed, so as to meet user's request, the efficiency of picture filing is improve.
In fact, the flow of the process of picture automatic archiving provided in an embodiment of the present invention can also be described such asUnder:
Step one, obtain just list P according to time order and function sequence to not filing pictures all, initialize phaseVolume set A is sky, and initialization is sky with photograph album set S is clapped.
Step 2, the latitude and longitude information for not filing picture shooting according to every, every is obtained by map applicationThe spot for photography of picture.
Spot for photography and coverage are identicals, refer to certain geographic range, for example:Sight name,Zone name etc..
Step 3, by preset time period before and after list P, and spot for photography identical picture filing is to oneIndividual photograph album AiIn.
If the sequence of pictures for obtaining is P1={ p1,p2,…,A1,pi,…,pj,Al..., after wherein Ai represents filingPhotograph album, pi, pjExpression fails remaining individual the picture of suitable filing.
Step 4:Calculate AjInterior two earth surfaces of the longitude and latitude for shooting farthest picture are apart from dj。
Step 5:With AjThe single picture p for closing oniIf, piWithout shooting longitude and latitude or and AjShootDate is different then by single picture piIt is put into photograph album S is clapped, if piThere are shooting longitude and latitude and and AjShootDate is the same, then calculate piThe longitude and latitude and A of shootingjThe average surface distance d of all pictures, if d is less thandj, then by piIntegrate with AjIf d is more than djThen set up new photograph album set Ai.Repeat above procedureIn all of single picture has been added to filing photograph album A or add with clapping photograph album S.Obtain photograph albumSequence P2={ A1,Ai,Aj,…}。
Indeed, it is possible to calculate d by step 4j, then with d in djCompare, it is also possible to do not calculate dj,And a preset value is directly set, certain this preset value can also be the result of calculation dynamic according to step 4Set.
Step 6, to P2In former and later two filings photograph album AiAnd Aj, such as AiAnd AjShooting be on the same day,And picture number total quantity is less than 10, then by AiAnd AjIt is merged into a photograph album.
Certainly, two filing photograph albums herein merge and are merely illustrative, and can essentially be continuous multiplesPhotograph album is merged, and the capacity of the only picture number in photograph album, that is, photograph album can less than preset threshold valueTo merge.Being also merely illustrative with 10 on the same day here, should not be construed as to time span andThe restriction of picture number.
Step 7, each the filing photograph album to finally giving are named.
Name can be random name, preferably be ordered according to shooting date and spot for photography certainlyName, for example:If picture shooting place in statistics Ai, choose the place B of shooting earliest and shoot the latestPlace E, if B is identical with E with date+place to photograph album name.If difference with the date+fromB to E is named photograph album.
Step 8, by all photograph album A and with clap photograph album S show client.
The method of the picture filing that the present invention is provided, stroke and spot for photography information according to user help useFamily automatically generates photograph album, the photo automatic arranging that can be shot the multiple equipment of same travelling, generates phaseVolume, facilitates that user is follow-up to be browsed.
Time and position are considered during filing, the photographic intelligence of each photograph album is closed on by the timeSolving Part of photos taken does not have geographical location information.And this programme considers single photograph album to shoot photo fewProblem, it is to avoid the photograph album of generation is excessively scrappy.
Refering to Fig. 3, an embodiment of the method for picture filing provided in an embodiment of the present invention includes:
401st, to picture library in picture of not filing be ranked up according to the shooting time of every pictures.
The filing cycle can be set, and one day, two days or other filing duration automatic archivings are once, it is also possible toIt is filing manually, user triggers filing manually, then performs archive operation.
To after filing cycle or user's triggering archive operation, automatically to not filing picture according to every picturesShooting time is ranked up.
402nd, for not filing picture described in after sequence, will be within preset time period, and same shootingIn the range of shoot picture be divided into same photograph album, obtain at least one filing photograph album.
The definition of preset time period and coverage can refer to description above, and it is no longer repeated at this place.
403rd, be described at least one filing photograph album in each filing photograph album name, and show name afterDescribed each filing photograph album.
Picture of not filing during the embodiment of the present invention is used to picture library enters according to the shooting time of every picturesRow sequence;For not filing picture described in after sequence, will be within preset time period, and same shooting modelThe picture for enclosing interior shooting is divided into same photograph album, obtains at least one filing photograph album;It is described at least oneEach filing photograph album name in individual filing photograph album, and show described each the filing photograph album after name.With it is existingHaving in technology needs manual sorting photograph album, and picture filing inefficiency is compared, figure provided in an embodiment of the present inventionThe method of piece filing, can automatically according to the shooting time of picture and coverage for picture is filed, fromAnd user's request is met, improve the efficiency of picture filing.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 3, picture provided in an embodiment of the present invention is returnedIn first alternative embodiment of the method for shelves, it is described will be within preset time period, and same coverageThe picture of interior shooting is divided into same photograph album, is obtained after at least one filing photograph album, and methods described is alsoCan include:
Residue is not filed and the picture of distance constraints and time constraint condition is met in picture is divided into phaseIn the filing photograph album answered;The picture that distance constraints and time constraint condition will be unsatisfactory for is divided into one newlyBuild filing photograph album in, the distance constraints refer to the residue do not file the camera site of picture with it is describedThe average distance of all picture shooting positions is less than preset value, the time-constrain bar in corresponding filing photograph albumPart is in the preset time period;
Described each filing photograph album name in described at least one filing photograph album, and show the institute after nameWhen stating each filing photograph album, methods described can also include:
It is the newly-built filing photograph album name, and shows the described newly-built filing photograph album after name.
In the embodiment of the present invention, the not remaining single picture do not filed can be filed again, or according toShooting time and the position with other photograph albums, are included into position and the photograph album all closed on the time, or filing is arrivedRandom photograph album, it is to avoid some photos do not have photograph album.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 3 or first alternative embodiment, the present inventionIn second alternative embodiment of the method for the picture filing that embodiment is provided, when the filing photograph album has multipleWhen, methods described can also include:
When the capacity of time upper continuous at least two filings photograph album is both less than preset threshold value, by described at leastTwo filing photograph albums merge into one and merge filing photograph album;
Merge filing photograph album name for described, and show that photograph album is filed in the merging after the name.
In the embodiment of the present invention, can be merged for the less photograph album of picture amount, it is to avoid single photograph albumShooting photo is few, and the photograph album of generation is excessively scrappy.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 3 or first alternative embodiment, the present inventionIt is described for described in after sequence in 3rd alternative embodiment of the method for the picture filing that embodiment is providedPicture is not filed, the picture that will be shot within preset time period, and in same coverage is divided into sameIn individual photograph album, before obtaining at least one filing photograph album, methods described can also include:
It is determined that the positional information for not filing picture after sequence;
It is described not file picture and determine at least one shooting model according to the positional information for not filing pictureEnclose.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 3 or first alternative embodiment, the present inventionIt is described for described at least one returns in 4th alternative embodiment of the method for the picture filing that embodiment is providedShelves photograph album name, including:
It is described according to the geographic name of the shooting date of picture and correspondence coverage in each filing photograph albumEach filing photograph album is named.
Refering to Fig. 4, an embodiment of the device 50 of picture filing provided in an embodiment of the present invention includes:
Sequencing unit 501, enters for the picture of not filing in picture library according to the shooting time of every picturesRow sequence;
Profiling unit 502, for being sorted for the sequencing unit 501 after described in do not file picture, will beIn preset time period, and same coverage in shoot picture be divided into same photograph album, obtain toFew filing photograph album;
Name unit 503, for filing at least one filing photograph album for obtaining for the profiling unit 502In each filing photograph album name;
Display unit 504, for show it is described name unit 503 name after described in each filing photograph album.
In the embodiment of the present invention, sequencing unit 501 to picture library in do not file picture according to every picturesShooting time is ranked up;Profiling unit 502 sorted for the sequencing unit 501 after described do not file figurePiece, the picture that will be shot within preset time period, and in same coverage is divided into same photograph album,Obtain at least one filing photograph album;Name unit 503 be the profiling unit 502 file obtain it is described at leastEach filing photograph album name in one filing photograph album;Display unit 504 shows that the name unit 503 is namedDescribed each filing photograph album afterwards.File inefficiency with manual sorting photograph album, picture is needed in the prior artCompare, the device of picture provided in an embodiment of the present invention filing, can automatically according to the shooting time of picture andCoverage is filed for picture, so as to meet user's request, improves the efficiency of picture filing.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 4, picture provided in an embodiment of the present invention is returnedIn first alternative embodiment of the device 50 of shelves,
The profiling unit 502, is additionally operable to meet distance constraints and time during residue is not filed into pictureThe picture of constraints is divided into corresponding filing photograph album;Distance constraints and time-constrain will be unsatisfactory forThe picture of condition is divided into a newly-built filing photograph album, and the distance constraints refer to that the residue is not returnedThe camera site of shelves picture is small with the average distance of all picture shooting positions in corresponding filing photograph albumIn preset value, the time constraint condition is in the preset time period;
The name unit 503, it is the newly-built filing photograph album life of the newly filing of the profiling unit 502 to be additionally operable toName;
The display unit 504, is additionally operable to show the described newly-built filing phase after name unit 503 nameVolume.
Alternatively, on the basis of first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 4 or device 50,Refering to Fig. 5, in second alternative embodiment of the device 50 of picture filing provided in an embodiment of the present invention, instituteStating device also includes:Combining unit 505,
The combining unit 505, for when the filing photograph album has multiple, being gone up continuously at least when the timeWhen the capacity of two filing photograph albums is both less than preset threshold value, described at least two filing photograph albums are merged into oneMerge filing photograph album;
The name unit 503, is additionally operable to file phase for the combining unit 505 merges the merging for obtainingVolume name;
The display unit 504, is additionally operable to show the merging filing phase after name unit 504 nameVolume.
Alternatively, on the basis of first alternative embodiment of the corresponding embodiments of above-mentioned Fig. 4 or device 50,Refering to Fig. 6, in the 3rd alternative embodiment of the device 50 of picture filing provided in an embodiment of the present invention, instituteStating device 50 also includes:
Determining unit 506, for determine the sequencing unit 501 sort after described in do not file the position of pictureInformation;It is described not file picture and determine at least one shooting according to the positional information for not filing pictureScope.
Alternatively, in the 4th alternative embodiment of the device 50 of picture filing provided in an embodiment of the present invention
The name unit 503, for scheming in each filing photograph album according in described at least one filing photograph albumThe shooting date of piece and the geographic name of correspondence coverage, are that described each filing photograph album is named.
The embodiment of the present invention additionally provides the device of another picture filing, and the device of picture filing can beMobile phone.As shown in fig. 7, for convenience of description, illustrate only the part related to the embodiment of the present invention, haveBody technique details is not disclosed, and refer to present invention method part.
Fig. 7 is illustrated that the block diagram with the part-structure of device provided in an embodiment of the present invention 800.With reference to figure7, device includes:Camera 810, memory 820, input block 830, display unit 840, sensingThe parts such as device 850, voicefrequency circuit 860, WiFi module 870, processor 880 and power supply 890.It will be understood by those skilled in the art that the restriction of the apparatus structure shown in Fig. 7 not structure twin installation, canWith including than illustrating more or less part, or some parts are combined, or different part arrangements.
Each component parts of device is specifically introduced with reference to Fig. 7:
Camera 810 can be used to take pictures;
Memory 820 can be used to store picture, storage software program and module, and processor 880 is by fortuneRow storage memory 820 software program and module so that the various function application of performs device andData processing.Memory 820 can mainly include storing program area and storage data field, wherein, storage programArea can be needed for storage program area, at least one function application program (such as sound-playing function, imagePlaying function etc.) etc.;Storage data field can be stored and use created data (such as audio according to deviceData, phone directory etc.) etc..Additionally, memory 820 can include high-speed random access memory, may be used alsoWith including nonvolatile memory, for example, at least one disk memory, flush memory device or other are volatileProperty solid-state memory.
Input block 830 can be used to receive the operational order of user, (for example:Picture filing instruction) andThe key signals relevant with user's setting of device 800 and function control are produced to be input into.Specifically, it is input into singleUnit 830 may include contact panel 831 and other input equipments 832.Contact panel 831, also referred to as touchesTouch screen, user can be collected thereon or neighbouring touch operation (such as user uses finger, stylus etc. anyOperation of the suitable object or annex on contact panel 831 or near contact panel 831), and according toFormula set in advance drives corresponding attachment means.Optionally, contact panel 831 may include touch detectionTwo parts of device and touch controller.Wherein, touch detecting apparatus detect the touch orientation of user, and examineThe signal that touch operation brings is surveyed, touch controller is transmitted a signal to;Touch controller is filled from touch detectionReception touch information is put, and is converted into contact coordinate, then give processor 880, and can receiving areaThe order sent of reason device 880 is simultaneously performed.Furthermore, it is possible to use resistance-type, condenser type, infrared ray withAnd the polytype such as surface acoustic wave realizes contact panel 831.Except contact panel 831, input block 830Other input equipments 832 can also be included.Specifically, other input equipments 832 can be included but is not limited toPhysical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operationOne or more in bar etc..
Display unit 840 can be used to show the photograph album after filing.Display unit 840 may include indicator lamp 841,Optionally, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be usedForms such as (Organic Light-Emitting Diode, OLED) is managed to configure indicator lamp 841.Further,Contact panel 831 can cover indicator lamp 841, when contact panel 831 is detected thereon or neighbouring touchAfter operation, processor 880 is sent to determine the type of touch event, with preprocessor 880 according to touchThe type of event provides corresponding visual output on indicator lamp 841.Although in the figure 7, contact panel831 is input and the input function that device is realized as two independent parts with indicator lamp 841, butIn some embodiments it is possible to by contact panel 831 and indicator lamp 841 be integrated input that realize device andOutput function.
Device 800 may also include at least one sensor 850.
Voicefrequency circuit 860, loudspeaker 861, the audio that microphone 862 can be provided between user and device connectMouthful.Electric signal after the voice data conversion that voicefrequency circuit 860 will can be received, is transferred to loudspeaker 861,Voice signal is converted to by loudspeaker 861 to export;On the other hand, the voice signal that microphone 862 will be collectedElectric signal is converted to, voice data is converted to after being received by voicefrequency circuit 860, then by voice data outputAfter reason device 880 is processed, through camera 810 being sent to such as another device, or voice data is exportedTo memory 820 so as to further treatment.
Processor 880 is the control centre of device, using various interfaces and connection whole device eachPart, by running or performing software program and/or module of the storage in memory 820, and callsStore the data in memory 820, the various functions and processing data of performs device, so as to enter to deviceRow integral monitoring.Optionally, processor 880 may include one or more processing units;Preferably, processDevice 880 can integrated application processor and modem processor, wherein, application processor mainly processes operationSystem, user interface and application program etc., modem processor mainly processes radio communication.It is appreciated that, above-mentioned modem processor can not also be integrated into processor 880.
Device 800 also includes the power supply 890 (such as battery) powered to all parts, it is preferred that power supplyCan be logically contiguous with processor 880 by power-supply management system, so as to realize managing by power-supply management systemThe functions such as reason charging, electric discharge and power managed.
Although not shown, device 800 can also include radio frequency (Radio Frequency, RF) circuit, indigo plantTooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 880 included by the device also has following functions:
Picture of not filing in picture library is ranked up according to the shooting time of every pictures;
For not filing picture described in after sequence, will be within preset time period, and in same coverageThe picture of shooting is divided into same photograph album, obtains at least one filing photograph album;
It is each the filing photograph album name in described at least one filing photograph album, and shows described every after nameIndividual filing photograph album.
Alternatively, the picture that will be shot within preset time period, and in same coverage is divided intoIn same photograph album, obtain after at least one filing photograph album, methods described also includes:
Residue is not filed and the picture of distance constraints and time constraint condition is met in picture is divided into phaseIn the filing photograph album answered;The picture that distance constraints and time constraint condition will be unsatisfactory for is divided into one newlyBuild filing photograph album in, the distance constraints refer to the residue do not file the camera site of picture with it is describedThe average distance of all picture shooting positions is less than preset value, the time-constrain bar in corresponding filing photograph albumPart is in the preset time period;
Described each filing photograph album name in described at least one filing photograph album, and show the institute after nameWhen stating each filing photograph album, methods described also includes:
It is the newly-built filing photograph album name, and shows the described newly-built filing photograph album after name.
Alternatively, when the filing photograph album has multiple, methods described also includes:
When the capacity of time upper continuous at least two filings photograph album is both less than preset threshold value, by described at leastTwo filing photograph albums merge into one and merge filing photograph album;
Merge filing photograph album name for described, and show that photograph album is filed in the merging after the name.
Alternatively, it is described for picture is not filed described in after sequence, will be within preset time period and sameThe picture shot in individual coverage is divided into same photograph album, before obtaining at least one filing photograph album,Methods described also includes:
It is determined that the positional information for not filing picture after sequence;
It is described not file picture and determine at least one shooting model according to the positional information for not filing pictureEnclose.
Alternatively, described is described at least one filing photograph album name, including:
It is described according to the geographic name of the shooting date of picture and correspondence coverage in each filing photograph albumEach filing photograph album is named.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodimentRapid to can be by program to instruct the hardware of correlation to complete, the program can be stored in a computer-readableIn storage medium, storage medium can include:ROM, RAM, disk or CD etc..
The method and device of the picture filing for being provided the embodiment of the present invention above are described in detail,Specific case used herein is set forth to principle of the invention and implementation method, above exampleIllustrate that being only intended to help understands the method for the present invention and its core concept;Simultaneously for the general of this areaTechnical staff, according to thought of the invention, will change in specific embodiments and applications,In sum, this specification content should not be construed as limiting the invention.