Summary of the invention
Technical matters to be solved by this invention provides a kind of method based on action induction preview one group file object, and it can be so that the user need the file at target approach file object place just can trigger the preview function of a group file object through action induction; In the preview process, only show or play the effect of files stored preview in advance, reaching the purpose of preview file, and can reduce resource consumption to client.
In order to solve above technical matters, the invention provides a kind of device of preview file object, comprising: the user action capture unit, it comprises sensor, is used to catch user action; User action recognition unit, its data that get access to according to the user action capture unit be to carrying out user behavior analysis, and convert analysis result into the file object instruction for previewing and send to file object preview display unit subsequently; File object preview display unit, it is according to the file instruction for previewing from the user action recognition unit that receives, display file preview effect.
Beneficial effect of the present invention is: the user need not get into the file at group file object place, by the viewing area of its file ICON icon, triggers the preview function of this group file object through the induction user action.In the preview process, only show or play the effect of files stored preview in advance, to reach the purpose of fast browsing.
The present invention also provides the device that utilizes above-mentioned preview file object to carry out the method for action recognition, it is characterized in that, may further comprise the steps:
At first obtain the user action data that the user action capture unit captures;
If the user action capture unit does not have user's action data, then do not send instruction to the preview display unit, the preview display unit will keep show state;
If user action data that the user action capture unit captures and last user action data take place just to squint, and side-play amount is then sent the instruction of the next file object of preview greater than specific threshold value to the preview display unit;
If user action data that the user action capture unit captures and a last user action data generation negative bias move, and side-play amount is then sent the instruction of a file object in the preview greater than specific threshold value to the preview display unit;
If skew has taken place for user action data that the user action capture unit captures and last user action data, but side-play amount is not then sent instruction to the preview display unit less than specific threshold value, and the preview display unit will keep show state.
Embodiment
The present invention has designed a kind of device based on action induction preview one group file object, and is different with traditional document object preview mode, and the user does not need the target approach file just can move the preview function that triggers a group file object in the file through some.In the preview process, only show the effect of files stored preview in advance, to reach the purpose of fast browsing.
Device based on action induction preview one group file object of the present invention, as shown in Figure 1, comprising: user action capture unit, user action recognition unit and file object preview display unit.
Said user action capture unit is used to catch the corresponding a series of numerical informations that can directly understood and handle by computing machine of user's input action.User's input action includes but not limited to: user's gesture, touch action, mouse move, voice.User's gesture, touch action will convert action into digital signal through vision sensor, pressure transducer and gravity sensor, and mouse moves the two-dimensional coordinate that then directly writes down mouse and gets final product.
Said user action recognition unit then carries out user behavior analysis according to the data that the user action capture unit gets access to, and converts analysis result into the file object instruction for previewing and send to file object preview display unit subsequently.
As shown in Figure 2, the concrete steps that said user action recognition unit carries out action recognition comprise:
1. at first obtain the user action data that the user action capture unit captures;
2. if the user action capture unit does not obtain the user action data, then do not send instruction to the preview display unit, the preview display unit will keep show state;
3. if the user action data that capture of user action capture unit and last user action data take place just to squint, and side-play amount is then sent the next file object instruction of preview to the preview display unit greater than specific threshold value Var;
4. if the user action data and the last user action data generation negative bias that capture of user action capture unit moves, and side-play amount is then sent file object instruction in the preview to the preview display unit greater than specific threshold value Var;
5. if skew has taken place the user action data and the last user action data that capture of user action capture unit, but side-play amount is not then sent instruction to the preview display unit less than specific threshold value Var, and the preview display unit will keep show state;
6. said specific threshold value Var has determined the sensitivity of action recognition: the Var value is more little, and is more responsive to user action; The Var value is big more, and is insensitive more to user action.
Said file object preview unit is responsible for showing different files preview effect according to the file instruction for previewing from the transmission of user action recognition unit that receives.
Said file object preview unit will be by the viewing area of the ICON icon of file under the file object, the preview effect of coming the display file object through the induction user action;
Said file object preview unit; Its file preview effect is meant: the little resolution of visual form use to play low definition, to(for) video file is come the preview video file object, plays the big or small consistent of the affiliated file ICON icon of display size and this group file object; For audio file, use the form of audio plays to come preview audio file object, show the ICON icon of audio file type at file ICON icon place; For the file of other types, use the form of file preview graph to come the preview file object;
The preview graph of said file object is meant: if the file object of preview is the file of picture/mb-type, then be meant through being stored in the little figure in the device in advance after the picture compression processing; If file type is a text, then be meant the little figure of first page of the document that be stored in advance in the device; If the file of other types, then show the ICON icon of this document type;
The size of file preview graph is identical with the ICON icon size that its parent folder shows in device screen.Wherein, The preview display unit can be directed against different terminal equipment; The preview graph of the different sizes of storage is to the preview graph database of local device in advance; And to the specification of local device, corresponding form, size most possibly by user capture to the file preview graph use the intelligent method of reading in advance to be loaded in advance in the Device memory, further improve preview speed;
The method that intelligence is read in advance is meant that file object preview display unit utilizes spatial locality principle and temporal locality principle that the file preview effect that the next action of user most probable can be used is loaded in the Device memory;
The temporal locality principle is meant: a file is after being visited, and so said file is very likely visited in a period of time subsequently once more.Therefore, the preview display unit can be preserved in internal memory within a certain period of time by the file object preview effect of preview;
The spatial locality principle is meant: the user has visited n file constantly at t, has visited n+1 file constantly at t+1 again, when t+2, is carved with very big n+2 the file that may have access to so, and also is like this in the other direction.Therefore, the preview display unit can be in internal memory loads most possibly by the user in the file object preview effect of visit next time in advance;
Use Device memory load document object preview effect in advance, and the situation that Device memory is used up occurs, then use the file object preview effect in the lru algorithm replacement internal memory;
Lru algorithm is promptly replaced out the algorithm of least-recently-used content; The practical implementation method of said algorithm in this device: pre-assigned internal memory is full if the digital photo album pre-viewing device is storage file object preview effect; And have through intelligence and read the new file object preview effect that loads in advance, then replace the least-recently-used file object preview effect that in internal memory, has loaded.
This device based on action induction preview one group file object of the present invention's design, will bring following innovation on user experience:
1. can realize the quick preview to a group file object, file object will be with the form of preview graph, and by the viewing area of the parent folder ICON icon of this group file object, preview shows this group file object;
2. the preview effect of file object is to generate automatically in advance; Need not to load whole file object during preview in internal memory; Only need read the file preview effect that generates in advance gets final product; Therefore can under the situation that consumes minimum device resource, realize the quick preview of big file object, especially being fit to is on browser and hand-held terminal device, to use;
3. a described group file object pre-viewing device can realize that the preview graph of file object switches fast through the induction user action, reaches favorable user experience with this;
4. described file object pre-viewing device adopts intelligent pre-head method judges intention through analysis of user action, in advance the file preview graph is loaded into Device memory, further accelerates preview speed, improves user experience;
5. when groups need the file object of preview more than having,, can help to make the position of the rapid localizing objects file object of user through the method for this quick preview file object.
The present invention is not limited to the embodiment that preceding text are discussed.More than the description of embodiment is intended in order to describe and explain the technical scheme that the present invention relates to.Based on the conspicuous conversion of the present invention enlightenment or substitute and also should be considered to fall into protection scope of the present invention.Above embodiment is used for disclosing best implementation method of the present invention, so that those of ordinary skill in the art can use numerous embodiments of the present invention and multiple alternative reaches the object of the invention.