A kind of picture inspection method and deviceTechnical field
The invention belongs to computer software fields, more particularly to a kind of picture inspection method and device.
Background technology
Now, with the popularization of computer, digital camera etc., check that picture, picture have become people's life on computersA part living.In the prior art, picture is checked and managed and mainly has following two modes:
First, pictures management is carried out with the locus of disk where picture, picture is checked in the form of file;
Second, picture is classified with the time that picture creates, picture is checked with the time.
The process that user produces picture is to follow the process that the time adds up naturally, however, creating year with file or pictureThe format management of part checks that picture has all run counter to this process, is unfavorable for user and goes to recall, manage and check picture naturally.When user needs to remove to check picture according to time, date, check that process is excessively complicated.
Such as:User needs to check the picture that oneself was created on March 1st, 2010, now, if in the form of fileTo check picture, and file is named with image content, then user can only check the lower picture of All Files folder one by oneDate created searches the picture that oneself was clapped on March 1st, 2010.It is to check picture with the time to add, then user needsAll pictures in the time are checked to search the picture that oneself was created on March 1st, 2010, check that process is excessively complicated.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of picture inspection method, it is intended to solves existing picture and checks modeThe problem of complicated.
The embodiment of the present invention is achieved in that a kind of picture inspection method, and methods described includes:
Scanned picture, obtain the creation time of picture;
In date corresponding to picture is mapped to according to date created according to picture creation time;
The list of figure date has been obtained according to the creation time of all pictures;
The picture browsing instruction display that user according to receiving sends has the picture of mapping relations with the calendar;
Wherein, the picture browsing instruction includes the picture time, then generates the calendar watch in the time, and reading has figure days columnThe thumbnail of picture in table corresponding to the date in time, and be illustrated on the calendar watch corresponding date;
The picture browsing instruction includes the date, then reads all pictures corresponding to the date and show.
The another object of the embodiment of the present invention is to provide a kind of picture checking device, and described device includes:
Time acquisition unit, for scanned picture, obtain the creation time of picture;
Picture arrangement unit, picture is mapped to according to date created according to picture creation time corresponding in the date andThe list of figure date has been obtained according to the creation time of all pictures;
Picture browsing unit, the picture browsing instruction for being sent according to user show picture;
Wherein, the picture browsing instruction includes the picture time, then generates the calendar watch in the time, and reading has figure days columnThe thumbnail of picture in table corresponding to the date in time, and be illustrated on the calendar watch corresponding date;
The picture browsing instruction includes the date, then reads all pictures corresponding to the date and show.
In embodiments of the present invention, by by the process checked of calendar introducing picture, establishing reflecting for picture and date createdPenetrate relation, and the thumbnail for thering is in calendar watch the date corresponding to picture show picture corresponding to the date, be easy to user according toThe date of calendar checks picture, checks that the picture on corresponding date is more easy.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existingThere is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only thisSome embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be withOther accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is picture inspection method flow chart provided in an embodiment of the present invention;
Fig. 2 is picture checking device schematic diagram provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and ExamplesThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.
The embodiment of the present invention obtains the creation time of picture by scanned picture, and according to the creation time of the picture,Picture is arranged according to calendar after being ranked up according to the time to picture, is easy to user to check picture according to calendar.
The invention provides a kind of picture inspection method and device:
Methods described includes:
Scanned picture, obtain the creation time of picture;
According to the creation time of the picture, picture is arranged according to calendar after being ranked up according to the time to pictureRow;
The picture browsing instruction that user according to receiving sends shows picture.
Described device includes:
Time acquisition unit, for scanned picture, obtain the creation time of picture;
Picture arrangement unit, will figure after being ranked up according to the time to picture for the creation time according to the picturePiece is arranged according to calendar;
Picture browsing unit, the picture browsing instruction for being sent according to user show picture.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
It is the flow chart of picture inspection method provided by the invention as shown in Figure 1, for convenience of description, illustrate only and thisThe related part of inventive embodiments.
In step S101, scanned picture, the date created of picture is obtained.
In embodiments of the present invention, all pictures in disk are scanned, obtain the set vecImages of all pictures, andThe information such as path, the creation time of all pictures are obtained, the creation time includes but is not limited to the establishment time of picture, creates the moonPart and date created.Finally, all pictorial informations are stored into memory cell.The memory cell includes but is not limited to dataStorehouse.
In step s 102, according to the creation time of the picture, after being ranked up according to the time to picture by picture byArranged according to calendar.
In embodiments of the present invention, will figure after being ranked up according to the time to picture according to the creation time of the pictureThe specific implementation that piece is arranged according to calendar can be divided into following three step:
A, in the date corresponding to picture is mapped to according to date created according to picture creation time, and date and figure are storedThe mapping relations of piece file path.
In embodiments of the present invention, according to the date created of picture, the mapping relations on picture and date is established, picture is createdBuilding the date corresponding with picture path stores into memory cell.Wherein, because the quantity of picture may be more, date can be withOne or more picture establishes mapping relations.
Its implementation is as follows:
1st, memory cell table is created:
Create table img_date_relation(
Img_date Date,
img_path,Varchar);
2nd, the pictorial information scanned is stored in memory cell
foreach(pic in vecImages)
{
INSERT INTO img_date_relation(img_path,img_date)
VALUES (pic.Path, pic.CreateTime)
}
Herein, picture date created and picture path are stored into memory cell.
B, the list of figure date has been obtained according to the creation time of all pictures, and has generated respectively and be stored with the list of figure dateEach date corresponding to picture thumbnail..
In embodiments of the present invention, the picture set vecImages scanned is analyzed, obtained corresponding to pictureDate list vecDate.And after traversal has picture corresponding to all dates of figure date list successively, generate and store respectivelyThese have the thumbnail of picture corresponding to each date of figure date list.Then, breviary chart is established in the memory unit, is depositedStore up thumbnail.
It is implemented as follows:
1st, breviary chart is created
In step s 103, the picture browsing instruction sent according to the user received shows picture.
In embodiments of the present invention, the difference that the picture browsing sent according to the user received instructs, its picture showThe mode of showing would also vary from.It is described in detail below:
In embodiments of the present invention, if receiving the picture browsing instruction that user sends, the picture browsing instruction includes figureThe piece time, then the calendar watch in the time is generated, reads the thumbnail for having the picture in the list of figure date corresponding to the date in time,And it is illustrated on the calendar watch corresponding date.Wherein, if a date is corresponding with multiple thumbnails, show corresponding to the dateThe thumbnail of first pictures.
Meanwhile user can have date of thumbnail to check all pictures corresponding to the date by clicking on calendar.ThisWhen, user click on calendar on one have the date of thumbnail after, system receives the picture that user sends and checks instruction, the instructionSpecifying has a date of thumbnail on calendar watch.
In embodiments of the present invention, if receiving the picture browsing instruction that user sends, the picture browsing instruction includes dayPhase, then read all pictures corresponding to the date and show.Specially:By inquiring about memory cell, read picture and check instructionAll pictures corresponding to designated date, the set of all pictures corresponding to the date is obtained, and these pictures are shown.Wherein it is possible to the mode such as list shows picture.Specifically, with list shape after being sorted by picture creation time, picture name etc.Formula is shown.Here, the display mode of picture is not limited.
In embodiments of the present invention, by by the process checked of calendar introducing picture, according to the creation time of the picture,Picture is arranged according to calendar after being ranked up according to the time to picture, is easy to user to check figure according to the date of calendarPiece, check that the picture on corresponding date is more easy.
Embodiment two:
Fig. 2 shows the structure of picture checking device provided in an embodiment of the present invention, for convenience of description, illustrate only withThe related part of the embodiment of the present invention.The device can be built in information processing system software unit, hardware cell orThe unit that person's software and hardware is combined, or it is integrated into as independent suspension member the application of information processing system or information processing systemIn system.Wherein:
Time acquisition unit 21, for scanned picture, obtain the creation time of picture.
In embodiments of the present invention, creation time includes but is not limited to the establishment time of picture, creates month and creates dayPhase
Picture arrangement unit 22, will after being ranked up according to the time to picture for the creation time according to the picturePicture is arranged according to calendar.
In embodiments of the present invention, picture arrangement unit 22 includes:
Module 221 is established in mapping, for picture to be mapped into corresponding day according to date created according to picture creation timeIt is interim, and store the mapping relations in date and picture file path;
There is figure date list block 222, for having obtained the list of figure date according to the creation time of all pictures;
Thumbnail generation module 223, for generating and being stored with the figure corresponding to each date of figure date list respectivelyThe thumbnail of piece.
Picture browsing unit 23, the picture browsing instruction for being sent according to user show picture.
In embodiments of the present invention, picture browsing unit 23 includes:
Time browsing module 231, the picture browsing instruction sent for receiving user, the picture browsing instruction include figureIn the piece time, the calendar watch in the time is generated, read the thumbnail for having the picture in the list of figure date corresponding to the date in time, andIt is illustrated on the calendar watch corresponding date;
Date browsing module 232, the picture browsing instruction sent for receiving user, the picture browsing instruction include dayPhase, read all pictures corresponding to the date and show.
In embodiments of the present invention, by inquiring about memory cell, read picture and check institute corresponding to the instruction designated dateThere is picture, obtain the set of all pictures corresponding to the date, and these pictures are shown.Wherein it is possible to the side such as listFormula shows picture.
In embodiments of the present invention, by by the process checked of calendar introducing picture, according to the creation time of the picture,Picture is arranged according to calendar after being ranked up according to the time to picture, is easy to user to check figure according to the date of calendarPiece, check that the picture on corresponding date is more easy.
Can be with it will appreciated by the skilled person that realizing that all or part of step in above-described embodiment method isThe hardware of correlation is instructed to complete by program, described program can be stored in a computer read/write memory mediumIn, described storage medium, such as ROM/RAM, disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present inventionAll any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.