CN108959505A - A kind of method and terminal device of management caching picture - Google Patents
A kind of method and terminal device of management caching picture Download PDFInfo
- Publication number
- CN108959505A CN108959505A CN201810675257.5A CN201810675257A CN108959505A CN 108959505 A CN108959505 A CN 108959505A CN 201810675257 A CN201810675257 A CN 201810675257A CN 108959505 A CN108959505 A CN 108959505A
- Authority
- CN
- China
- Prior art keywords
- picture
- measurement period
- target photo
- default measurement
- significance level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000005259 measurement Methods 0.000 claims abstract description 82
- 230000001815 facial effect Effects 0.000 claims description 73
- 238000004590 computer program Methods 0.000 claims description 14
- 230000006870 function Effects 0.000 description 5
- 238000004140 cleaning Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000010926 purge Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/215—Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
Abstract
The present invention is suitable for field of computer technology, provide the method and terminal device of a kind of management caching picture, this method comprises: obtaining the browsing record of the picture cached in default measurement period when detecting that used spatial cache is greater than or equal to preset threshold;Determine the respective significance level of picture of all cachings in the default measurement period;According to the respective significance level of picture of the caching in the default measurement period and browsing record, the picture for needing to delete is determined, delete the picture for needing to delete from buffer zone.The embodiment of the present invention is due to when deleting the picture of caching, consider the significance level of picture, it can be avoided the case where falling the interested picture of user clearly generation, due to remaining relatively important picture in caching, user does not need to re-download the i.e. browsable picture, can save the resource of download pictures consumption.
Description
Technical field
The invention belongs to field of computer technology more particularly to a kind of methods and terminal device of management caching picture.
Background technique
It is gradually increased with the continuous development of science and technology with people's living standard, intelligent terminal such as smart phone, plate are whole
The application of end equipment etc. is also more and more extensive.User can install all kinds of social softwares on intelligent terminal, and by social soft
Part sends and receives picture.
In the prior art, when image cache file reaches a certain size, intelligent terminal can according to picture download when
Between sequencing picture is cleared up, first delete the picture downloaded earliest.This caching purge mechanism is fairly simple, still
The interested picture of user may be cleaned up, needs to re-download or even can not check when user being caused to check the picture next time
The picture.
Summary of the invention
In view of this, the embodiment of the invention provides the method and terminal device of a kind of management caching picture, it is existing to solve
The interested picture of user may be cleaned up by having the method for skill operative management caching picture, and user is caused to check the picture next time
When need to re-download or even the problem of can not check the picture.
The first aspect of the embodiment of the present invention provides a kind of method of management caching picture, comprising:
When detecting that used spatial cache is greater than or equal to preset threshold, caching in default measurement period is obtained
The browsing of picture records;
Determine the respective significance level of picture of all cachings in the default measurement period;
According to the respective significance level of picture of the caching in the default measurement period and browsing record, determining is needed
The picture to be deleted deletes the picture for needing to delete from buffer zone.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It performs the steps of
When detecting that used spatial cache is greater than or equal to preset threshold, caching in default measurement period is obtained
The browsing of picture records;
Determine the respective significance level of picture of all cachings in the default measurement period;
According to the respective significance level of picture of the caching in the default measurement period and browsing record, determining is needed
The picture to be deleted deletes the picture for needing to delete from buffer zone.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program performs the steps of when being executed by processor
When detecting that used spatial cache is greater than or equal to preset threshold, caching in default measurement period is obtained
The browsing of picture records;
Determine the respective significance level of picture of all cachings in the default measurement period;
According to the respective significance level of picture of the caching in the default measurement period and browsing record, determining is needed
The picture to be deleted deletes the picture for needing to delete from buffer zone.
The method and terminal device for implementing a kind of management caching picture provided in an embodiment of the present invention have below beneficial to effect
Fruit:
The embodiment of the present invention, when used spatial cache is greater than or equal to preset threshold, by the figure for determining caching
The significance level of piece determines the picture for needing to be removed from the cache according to the significance level of the picture of caching and browsing record,
Since terminal device is when deleting the picture of caching, it is contemplated that the significance level of picture, and the significance level of picture can basis
The point of interest of user determines, therefore, can be avoided the case where falling the interested picture of user clearly generation when cleaning caches picture,
Due to remaining relatively important picture in caching, user does not need to re-download the i.e. browsable picture, can save
The resource of download pictures consumption.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart of the method for management caching picture that one embodiment of the invention provides;
Fig. 2 is the implementation flow chart of S1022 in a kind of method for management caching picture that one embodiment of the invention provides;
Fig. 3 is a kind of structural block diagram for terminal device that one embodiment of the invention provides;
Fig. 4 be another embodiment of the present invention provides a kind of terminal device schematic diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Referring to Figure 1, Fig. 1 is a kind of implementation flow chart of the method for management caching picture provided in an embodiment of the present invention.
The executing subject of the method for management caching picture is terminal device in the present embodiment, and terminal device includes but is not limited to intelligent hand
The mobile terminals such as machine, tablet computer.The method of management caching picture as shown in the figure can include:
S101: it when detecting that used spatial cache is greater than or equal to preset threshold, obtains in default measurement period
The browsing of the picture of caching records.
Terminal device can be detected buffer zone currently used spatial cache by preset time interval, and judge to work as
Whether preceding used spatial cache is greater than or equal to preset threshold.It specifically, can be by file institute that buffer zone has cached
Bit (bit) value accounted for determines used spatial cache.Preset time interval can be 24 hours, and preset threshold can be
100M, but it is not limited to this, preset time interval and preset threshold specifically can according to the size of actual spatial cache into
Row setting, herein with no restrictions.
When current used spatial cache is less than preset threshold, determines that spatial cache is also enough, do not need temporarily to clear up
The content of buffer zone storage, at this point, terminal device is detecting that current time reaches the initial time of next time interval
When, obtain the current used spatial cache in buffer zone again, and judge current used spatial cache whether be greater than or
Equal to preset threshold.
Terminal device determines spatial cache not when determining that current used spatial cache is greater than or equal to preset threshold
Foot, needs to clear up picture or the file etc. that buffer zone is stored, and terminal device obtains the picture cached in default measurement period
Browsing record.
The default corresponding duration of measurement period is greater than the corresponding duration of preset time interval, and default measurement period can be
It one week, 15 days or 1 month etc., can specifically be configured according to actual needs, herein with no restrictions.
The picture of caching can be the picture that terminal device receives, and be also possible to the figure that terminal device is downloaded from server
Piece can also be the photograph that user is shot by terminal device, can also be in picture library using the mounted image of terminal device
The picture etc. that processing software handles the picture in picture library.
The browsing record of the picture of caching includes the record that user checks, downloads or forward picture to generate.Terminal device can
A journal file is generated when checking in user, download or forward picture, the browsing for recording every picture records, browsing
Record includes unique identification and the browsing time of the picture of user's browsing.The unique identification of picture and the browsing time of picture close
UNPROFOR is deposited.
It is understood that database can be set in terminal device.
When user uses certain picture, the face characteristic information in picture can be extracted by face recognition technology, and
It searches and whether there is matched face characteristic information in database.
If it does not exist, then determining does not have storage in database include the picture of the face characteristic information, for the people of the picture
Face characteristic information creates identity (such as number 100010), and face characteristic information is associated with preservation with its identity.
If it exists, then it is assumed that the picture comprising the face characteristic information has been stored in database.
For example, identifying picture 1, the personage in picture 1 is the friend A of user, is not found in the database and its people
The picture that face characteristic information matches then saves the face characteristic information of A in the database and creates corresponding identity
100010.Identify picture 2, the personage in picture 2 is the friend B of user, is not found in the database and its face characteristic
The picture that information matches then saves the face characteristic information of B in the database and creates corresponding identity 100011.Know
Other picture 3, the personage in picture 3 are also the friend A of user, are searched in the database, find the face characteristic information in picture 3
Face characteristic information with 100010 matches, then determines that the corresponding identity of picture 3 is 100010.
Wherein, face recognition technology can extract the feature of face, mainly according to the shape description of human face and
The distance between they characteristic facilitates the characteristic of face classification to obtain, and characteristic component generally includes between characteristic point
Euclidean distance, curvature and angle etc..Face is locally made of eyes, nose, mouth, chin etc., between these parts and they
The geometric description of structural relation can be used as the important feature of identification face.
S102: the respective significance level of picture of all cachings in the default measurement period is determined.
Terminal device can determine whether the picture of caching includes facial image using face recognition technology.
When not including facial image in the picture of caching, classify to the picture for not including facial image, such as beauty
Eat class picture, natural views class picture, places of cultural interest class picture, animal class picture etc..Later, terminal device, which obtains, deletes note
Record, and the pictorial information for including according to deletion record counts type belonging to the picture deleted in default measurement period, according to pre-
If the corresponding sum of each type of picture deleted in measurement period determines each type of significance level.Wherein, certain type
The sum of deleted picture is bigger, and the significance level of the picture of the type is lower.
It is understood that can be the figure not comprising facial image when not including facial image in the picture of caching
Significance level is arranged in piece, for example, setting 0.5 for the significance level for the picture for not including facial image.
When in the picture of caching including facial image, terminal device can scheme according to the contact person for including in address list
Picture, from obtained in the picture of caching with the matched picture of facial image in contact image, and according to respectively being contacted in address list
The remark information or grouping information of people determine the significance level of contact person, so that it is determined that the picture of the facial image comprising contact person
Significance level.Address list is the address list of social application, and social application is for example, phone application, (wechat is answered for instant messaging application
With, QQ application etc.), mailbox application etc..
Wherein, do not include contact person in address list facial image picture significance level it is minimum, where contact person
Grouping is higher with the cohesion of the relationship of terminal user, and the significance level of the picture of the facial image comprising the contact person is got over
It is high.
Further, for the significance level for the picture that more accurately determination caches, S102 may include S1021: work as institute
When the picture for stating caching does not include facial image, all institutes in the default measurement period are determined according to the interest point information of user
State the respective significance level of picture of caching.
For example, terminal device can extract interest point information, interest from the hobby information of the personal information of user
Point is for example, cuisines, tourism, photography etc..When point of interest is cuisines, the significance level of the picture comprising food is higher;Work as interest
When point is travels, the significance level of natural views class picture and places of cultural interest class picture is relatively high;When point of interest is photography
When, the significance level of natural views class picture and animal class picture is higher.
It, can be according to default when the significance level of the different types of picture determined according to interest point information is almost the same
The quantity of each type of picture cached in measurement period determines the significance level of each type of picture.Wherein, certain type
Picture quantity it is more, the picture of the type is more important.It is understood that multiple sections can also be arranged in terminal device,
Important level is set for each section, so that the section according to belonging to the quantity of each type of picture, determines each type of
The important level of picture determines significance level according to important level.
Further, for the significance level for the picture that more accurately determination caches, S201 may include S1022: according to
The figure map that each corresponding browsing record of Target Photo and each Target Photo include in the default measurement period
Picture determines the significance level of each Target Photo in the default measurement period;The Target Photo is comprising face figure
The picture of picture.
Terminal device can obtain from the picture of caching and scheme with contact person according to the contact image for including in address list
The matched picture of facial image as in, and contact person is determined according to the remark information or grouping information of contact person each in address list
Significance level, obtain the corresponding significance level of facial image;Later, corresponding heavy according to facial image in each Target Photo
It wants degree, preset the corresponding browsing time browsed in record of each Target Photo in measurement period and browsing time, determine
The significance level of each Target Photo in default measurement period.
In the present embodiment, the significance level of Target Photo by the corresponding significance level of facial image in Target Photo,
Browsing time and browsing time in the browsing record of Target Photo determine jointly.
Wherein, in the significance level for determining Target Photo, it is corresponding important to pay the utmost attention to facial image in Target Photo
The browsing time of degree, Target Photo browsed in record takes second place, when finally considering the browsing in the browsing record of Target Photo
Between.
Further, in another embodiment, Fig. 2 is referred to, Fig. 2 is a kind of management that one embodiment of the invention provides
Cache the implementation flow chart of S1022 in the method for picture.S1022 may include S10221~S10223.It is specific as follows:
S10221: it is recorded, is obtained each according to the corresponding browsing of the Target Photo each in the default measurement period
The corresponding total browsing time of Target Photo and last browsing time.
The corresponding total browsing time of each Target Photo indicates in default measurement period, browsed total time of Target Photo
Number.Wherein, in default measurement period, terminal device can be when detecting that user browses certain Target Photo, by the target figure
The corresponding browsing time of piece adds 1.
The each Target Photo corresponding last browsing time is the specific time of user's the last time browsing objective picture.Tool
The body time can be recorded by the format of " certain year, in such a month, and on such a day some time divided ".
S10222: the number occurred according to the facial image in each Target Photo in the default measurement period,
Determine the corresponding significance level of each facial image.
Terminal device is recorded according to the browsing of each Target Photo in default measurement period, counts every in default measurement period
The number that facial image in a Target Photo occurs.Wherein, picture of the every browsing of user, can be by the face in the picture
The number of the corresponding appearance of image adds 1.
It in some cases, may include multiple personages in a picture, then it is each in picture when user browses the picture
The number of the corresponding appearance of facial image adds 1.
Terminal device can preset multiple frequency of occurrence sections, and important etc. for the setting of each frequency of occurrence section
Grade determines frequency of occurrence belonging to the number of each facial image appearance when getting the number that each facial image occurs
Section, so that it is determined that the corresponding important level of each facial image, and then the facial image for including according to each Target Photo
Important level determines the important level of each Target Photo.Wherein, when in Target Photo including at least two facial images, from
Highest important level is determined in the corresponding important level of at least two facial images, and highest important level is identified
For the important level of the Target Photo.
S10223: according to the corresponding significance level of the facial image each in the default measurement period, each described
The corresponding total browsing time of Target Photo and last browsing time determine each target figure in the default measurement period
The significance level of piece.
In the present embodiment, the significance level of Target Photo by the corresponding significance level of facial image in Target Photo,
Target Photo corresponding last browsing time and browsing time determine jointly.
Terminal device can be set multiple important levels, the significance level of the corresponding mankind's image of each important level,
One does not browse duration section and a browsing time section;Duration is not browsed to be counted by current time and last browsing time
It obtains.
Terminal device is when getting the corresponding browsing time of each Target Photo, it may be determined that clear belonging to the browsing time
Look at time intervals;According to each Target Photo corresponding last browsing time determine its it is corresponding do not browse duration, so that it is determined that
Each Target Photo is corresponding not to browse non-browsing time section belonging to duration;It is corresponding according to the facial image of Target Photo
Browsing time section belonging to significance level, the corresponding browsing time of each Target Photo, each Target Photo be not corresponding clear
It lookes at time interval, determines the important level of target image.
Further, S10223 specifically includes the following steps:
A: obtain the first weight coefficient of the corresponding significance level of facial image, total browsing time the second weight coefficient with
And the third weight coefficient of unused duration.
Wherein, first weight coefficient > the second weight coefficient > third weight coefficient, also, the first weight coefficient+the second
Weight coefficient+third weight coefficient=1.
B: according to the last browsing time corresponding with each Target Photo at current time, each target figure is calculated
The corresponding unused duration of piece.
C: according to each corresponding unused duration of Target Photo and total browsing time, each facial image
Significance level, first weight coefficient, second weight coefficient, the third weight coefficient, calculate each mesh
It marks on a map the score value of piece.
Terminal device can be according to formula C=k1×I+k2×N+k3× T calculates the score value of each Target Photo.Wherein,
C indicates the score value of Target Photo, k1Indicate the first weight coefficient, k2Indicate the second weight coefficient, k3Indicate third weight system
Number, I indicate the significance level of facial image, and N indicates that total browsing time of each Target Photo, T indicate each Target Photo pair
The unused duration answered.
D: according to the score value of each Target Photo, the weight of each Target Photo in the default measurement period is determined
Want degree.
Terminal device can preset multiple score value sections, and the corresponding important level in each score value section, root is arranged
Score value section belonging to score value according to each Target Photo determines the important level of each Target Photo.Higher point of score value
It is higher to be worth the corresponding important level in section.
It optionally, can also include: calculate the first kind picture comprising facial image the after S1021 or S1022
One crash rate, and calculate do not include facial image the second class picture the second crash rate, thus according to the first crash rate with
And second first kind picture of the crash rate adjustment comprising facial image and the second class picture not comprising facial image it is respective
Significance level, so that terminal device can clear up the picture of caching according to significance level adjusted.
The first kind picture comprising facial image for the failure that user checks in first crash rate=default measurement period
The number of the first kind picture comprising facial image received in the number/default measurement period.Wherein, failure refers to user
The picture is removed from caching when checking, is needed to download the picture from server again or can not be checked this again
Picture.
The the second class picture not comprising facial image for the failure that user checks in second crash rate=default measurement period
The number/default measurement period in the number of the second class picture not comprising facial image that receives.
If the first crash rate increases the important journey for not including the second class picture of facial image less than the second crash rate
Degree, the significance level of the first kind picture comprising facial image can remain unchanged at this time, can also reduce;If the first crash rate
Greater than the second crash rate, then increase the significance level of the first kind picture comprising facial image, at this time not comprising facial image
The significance level of second class picture can remain unchanged, and can also reduce.
For example, default measurement period is 1000 that the first kind picture comprising facial image is received in 50 days, 50 days,
Wherein user, which has 10 times, wants to check that the first kind picture comprising facial image, picture all fail, then comprising facial image
First crash rate of first kind picture is 0.01.
100 of the quantity of the second class picture not comprising facial image are received in 50 days, wherein user has 3 times and wants
Check that the second class picture not comprising facial image, picture all fail, then the of the second class picture not comprising facial image
Two crash rates are 0.03.
Since the first crash rate is less than the second crash rate, therefore, it is necessary to increase the second class picture for not including facial image
Significance level, amplification can be the 10% or 20% of its original significance level, to embody user to the picture of caching
Individual demand.
S103: recording according to the respective significance level of picture of the caching in the default measurement period and browsing,
It determines the picture for needing to delete, deletes the picture for needing to delete from buffer zone.
Terminal device can determine that the picture of each caching is not corresponding clear according to the browsing record of the picture of each caching
Look at duration and total browsing time.
When the significance level of the picture of caching does not browse duration and the calculating of total browsing time not according to picture is corresponding
When obtaining, terminal device is according to the corresponding figure for not browsing duration and total browsing time, each caching of picture of each caching
The significance level of piece determines the picture for needing to delete, so that be removed from the cache after the picture for needing to delete, it is used
Spatial cache is less than preset threshold.
Wherein, it preferentially deletes the low picture of significance level and it is lower preferentially to delete total browsing time when significance level is identical
Picture, when significance level is identical and total browsing time is identical, preferential delete does not browse the longest picture of duration, when important journey
When spending that identical, total browsing time is identical, not browse duration also identical, the picture for needing to delete can be arbitrarily selected.
For example, beginning to execute image cache removing strategy: postponing first when used spatial cache is greater than 100M
The minimum picture of middle deletion significance level is deposited, if after deleting, used spatial cache is still greater than or is equal to 100M, and again
Wanting degree to arrange penultimate picture has at least two, then being removed from it the minimum picture of total browsing time;Later, if
The spatial cache used is still greater than or is equal to 100M, and significance level, which arranges penultimate picture, at least two and corresponding
Total browsing time is identical, does not browse the longest picture of duration then being removed from it, if significance level arranges penultimate picture
There are at least two and corresponding total browsing time is identical, it is identical not browse duration yet, then any delete wherein one, directly
Until used spatial cache is less than 100M.
When the picture of caching is Target Photo, and the significance level of Target Photo is not browse duration according to picture is corresponding
And total browsing time is when being calculated, significance level and each picture when not browsing of the terminal device according to each picture
It is long to determine the picture for needing to delete.Wherein, when significance level is identical, preferential delete does not browse the longest picture of duration, when weight
When wanting that degree is identical, not browse duration also identical, the picture for needing to delete can be arbitrarily selected.
When the picture of caching is Target Photo, and terminal device is determining target figure according to the score value of each Target Photo
When the important level of piece, the important etc. of duration and each Target Photo can not be browsed according to each Target Photo is corresponding
Grade determines the picture for needing to delete.Wherein, when important level is identical, preferential delete does not browse the longest picture of duration, when weight
When wanting that grade is identical, not browse duration also identical, the picture for needing to delete can be arbitrarily selected.
It is understood that improving the efficiency for deleting caching picture, terminal to reduce the number for the picture for deleting caching
Equipment can also be according to the respective significance level of picture of the caching in default measurement period and the figure of browsing record, caching
The size of piece determines that one or at least two needs the picture deleted, terminal device can the picture that cleaning once caches it
After allow for used spatial cache less than preset threshold.
Illustratively, it in an application scenarios, when user uses social software (such as wechat), may be connect from server
Various pictures (picture that such as other users issue the user) is received, the picture checked by user saves in the buffer, convenient
User checks next time, saves the time of user.But spatial cache is limited, it, can be right after the picture of caching is more than a certain amount of
Picture is cleared up.The significance level of personage in picture can be considered when cleaning, it is assumed that the last of two pictures uses the time, checks
Number is essentially identical, if the personage A in picture 1 is extremely important, average each picture including A is checked 1.6 times, and picture 2
In personage B it is not too important, the average each picture including B is checked 0.3 time, then two pictures it is last using the time, look into
It is preferential to remove picture 2 in the case where seeing that number is essentially identical.
The embodiment of the present invention, when used spatial cache is greater than or equal to preset threshold, by the figure for determining caching
The significance level of piece determines the picture for needing to be removed from the cache according to the significance level of the picture of caching and browsing record,
Since terminal device is when deleting the picture of caching, it is contemplated that the significance level of picture, and the significance level of picture can basis
The point of interest of user determines, therefore, can be avoided the case where falling the interested picture of user clearly generation when cleaning caches picture,
Due to remaining relatively important picture in caching, user does not need to re-download the i.e. browsable picture, can save
The resource of download pictures consumption.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Referring to Fig. 3, Fig. 3 is a kind of structural block diagram for terminal device that one embodiment of the invention provides, terminal device packet
Include but be not limited to the mobile terminals such as smart phone, tablet computer.The each unit that terminal device includes is for executing FIG. 1 to FIG. 2 pair
Each step in the embodiment answered.Referring specifically to the associated description in the corresponding embodiment of FIG. 1 to FIG. 2.For the ease of
Illustrate, only the parts related to this embodiment are shown.Referring to Fig. 3, terminal device 3 includes:
Acquiring unit 310, it is default for obtaining when detecting that used spatial cache is greater than or equal to preset threshold
The browsing record of the picture cached in measurement period;
Determination unit 320, the respective important journey of picture for determining all cachings in the default measurement period
Degree;
Cache cleaner unit 330, for the respective important journey of picture according to the caching in the default measurement period
Degree and browsing record, determine the picture for needing to delete, and delete the picture for needing to delete from buffer zone.
Further, when the picture of the caching does not include facial image, determination unit 320 is specifically used for: according to
The interest point information at family determines the respective significance level of picture of all cachings in the default measurement period.
Further, when the picture of the caching includes facial image, determination unit 320 is specifically used for: according to described
The character image that each corresponding browsing record of Target Photo and each Target Photo include in default measurement period, really
The significance level of each Target Photo in the fixed default measurement period;The Target Photo is the figure comprising facial image
Piece.
Further, it is determined that unit 320 includes:
First statistic unit, for according to the corresponding browsing note of the Target Photo each in the default measurement period
Record obtains each corresponding total browsing time of Target Photo and last browsing time;
Second statistic unit, for being gone out according to the facial image in each Target Photo in the default measurement period
Existing number determines the corresponding significance level of each facial image;
Picture significance level determination unit, for corresponding according to each facial image in the default measurement period
Significance level, each corresponding total browsing time of Target Photo and last browsing time determine the default statistics week
The significance level of each Target Photo in phase.
Further, picture significance level determination unit is specifically used for:
Obtain the first weight coefficient of the corresponding significance level of facial image, the second weight coefficient of total browsing time and
The third weight coefficient of duration is not used;
According to the last browsing time corresponding with each Target Photo at current time, each Target Photo is calculated
Corresponding unused duration;
According to each corresponding unused duration of Target Photo and total browsing time, each facial image
Significance level, first weight coefficient, second weight coefficient, the third weight coefficient calculate each target
The score value of picture;
According to the score value of each Target Photo, the important of each Target Photo in the default measurement period is determined
Degree.
Fig. 4 be another embodiment of the present invention provides a kind of terminal device schematic diagram.As shown in figure 4, the embodiment
Terminal device 4 includes: processor 40, memory 41 and is stored in the memory 41 and can transport on the processor 40
Capable computer program 42, such as the control program of terminal device.The processor 40 executes real when the computer program 42
Step in the embodiment of the method for the management caching picture of existing above-mentioned each terminal device, such as S101 shown in FIG. 1 to S103.
Alternatively, the processor 40 realizes the function of each unit in above-mentioned each Installation practice, example when executing the computer program 42
310 to 330 function of unit as shown in Figure 3.
Illustratively, the computer program 42 can be divided into one or more units, one or more of
Unit is stored in the memory 41, and is executed by the processor 40, to complete the present invention.One or more of lists
Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey
Implementation procedure of the sequence 42 in the terminal device 4.For example, the computer program 42 can be divided into acquiring unit, really
Order member and cache cleaner unit, each unit concrete function are as described above.
The terminal device may include, but be not limited only to, processor 40, memory 41.Those skilled in the art can manage
Solution, Fig. 4 is only the example of terminal device 4, does not constitute the restriction to terminal device 4, may include more or more than illustrating
Few component perhaps combines certain components or different components, such as the terminal device can also include that input and output are whole
End equipment, network insertion terminal device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the external storage terminal device of the terminal device 4, such as matches on the terminal device 4
Standby plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD)
Card, flash card (Flash Card) etc..Further, the memory 41 can also both include the inside of the terminal device 4
Storage unit also includes external storage terminal device.The memory 41 is for storing the computer program and the terminal
Other programs and data needed for equipment.The memory 41, which can be also used for temporarily storing, have been exported or will export
Data.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of method of management caching picture characterized by comprising
When detecting that used spatial cache is greater than or equal to preset threshold, the picture cached in default measurement period is obtained
Browsing record;
Determine the respective significance level of picture of all cachings in the default measurement period;
According to the respective significance level of picture of the caching in the default measurement period and browsing record, determines and need to delete
The picture removed deletes the picture for needing to delete from buffer zone.
2. the method for management caching picture according to claim 1, which is characterized in that when the picture of the caching does not include
When facial image, the respective significance level of picture of all cachings in the determination default measurement period, comprising:
The respective important journey of picture of all cachings in the default measurement period is determined according to the interest point information of user
Degree.
3. the method for management caching picture according to claim 1, which is characterized in that when the picture of the caching includes people
When face image, the respective significance level of picture of all cachings in the determination default measurement period, comprising:
Include according to each corresponding browsing record of Target Photo and each Target Photo in the default measurement period
Character image, determine the significance level of each Target Photo in the default measurement period;The Target Photo is packet
Picture containing facial image.
4. according to the method described in claim 3, it is characterized in that, described according to each mesh in the default measurement period
The character image that the corresponding browsing record of piece of marking on a map and each Target Photo include determines each in the default measurement period
The significance level of the Target Photo, comprising:
According to the corresponding browsing record of the Target Photo each in the default measurement period, each Target Photo is obtained
Corresponding total browsing time and last browsing time;
According to the number that the facial image in each Target Photo in the default measurement period occurs, determine each described
The corresponding significance level of facial image;
It is corresponding according to the corresponding significance level of the facial image each in the default measurement period, each Target Photo
Total browsing time and the last browsing time, determine the important journey of each Target Photo in the default measurement period
Degree.
5. according to the method described in claim 4, it is characterized in that, described according to each people in the default measurement period
The corresponding significance level of face image, each corresponding total browsing time of Target Photo and last browsing time, determine institute
State the significance level of each Target Photo in default measurement period, comprising:
It obtains the first weight coefficient of the corresponding significance level of facial image, the second weight coefficient of total browsing time and does not make
With the third weight coefficient of duration;
According to the last browsing time corresponding with each Target Photo at current time, it is corresponding to calculate each Target Photo
Unused duration;
According to each corresponding unused duration of Target Photo and total browsing time, each facial image it is important
Degree, first weight coefficient, second weight coefficient, the third weight coefficient calculate each Target Photo
Score value;
According to the score value of each Target Photo, the important journey of each Target Photo in the default measurement period is determined
Degree.
6. a kind of terminal device, which is characterized in that the terminal device includes memory, processor and is stored in the storage
In device and the computer program that can run on the processor, the processor are realized as follows when executing the computer program
Step:
When detecting that used spatial cache is greater than or equal to preset threshold, the picture cached in default measurement period is obtained
Browsing record;
Determine the respective significance level of picture of all cachings in the default measurement period;
According to the respective significance level of picture of the caching in the default measurement period and browsing record, determines and need to delete
The picture removed deletes the picture for needing to delete from buffer zone.
7. terminal device according to claim 6, which is characterized in that when the picture of the caching does not include facial image
When, the respective significance level of picture of all cachings in the determination default measurement period, comprising:
The respective important journey of picture of all cachings in the default measurement period is determined according to the interest point information of user
Degree.
8. terminal device according to claim 6, which is characterized in that when the picture of the caching includes facial image,
The respective significance level of picture of all cachings in the determination default measurement period, comprising:
Include according to each corresponding browsing record of Target Photo and each Target Photo in the default measurement period
Character image, determine the significance level of each Target Photo in the default measurement period;The Target Photo is packet
Picture containing facial image.
9. terminal device according to claim 8, which is characterized in that described according to each institute in the default measurement period
The character image that the corresponding browsing record of Target Photo and each Target Photo include is stated, is determined in the default measurement period
The significance level of each Target Photo, comprising:
According to the corresponding browsing record of the Target Photo each in the default measurement period, each Target Photo is obtained
Corresponding total browsing time and last browsing time;
According to the number that the facial image in each Target Photo in the default measurement period occurs, determine each described
The corresponding significance level of facial image;
It is corresponding according to the corresponding significance level of the facial image each in the default measurement period, each Target Photo
Total browsing time and the last browsing time, determine the important journey of each Target Photo in the default measurement period
Degree.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810675257.5A CN108959505A (en) | 2018-06-27 | 2018-06-27 | A kind of method and terminal device of management caching picture |
PCT/CN2018/104971 WO2020000656A1 (en) | 2018-06-27 | 2018-09-11 | Method for managing buffered pictures, and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810675257.5A CN108959505A (en) | 2018-06-27 | 2018-06-27 | A kind of method and terminal device of management caching picture |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108959505A true CN108959505A (en) | 2018-12-07 |
Family
ID=64487328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810675257.5A Pending CN108959505A (en) | 2018-06-27 | 2018-06-27 | A kind of method and terminal device of management caching picture |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108959505A (en) |
WO (1) | WO2020000656A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109766462A (en) * | 2018-12-27 | 2019-05-17 | 山东信通电子股份有限公司 | Image file read method, apparatus and system in transmission line of electricity monitoring system |
CN110134652A (en) * | 2019-05-10 | 2019-08-16 | Oppo广东移动通信有限公司 | Recovery method, device, electronic equipment and the storage medium of cache file |
CN110400356A (en) * | 2019-06-24 | 2019-11-01 | 武汉联影医疗科技有限公司 | Image texture control method, device, equipment and storage medium |
WO2020147448A1 (en) * | 2019-01-16 | 2020-07-23 | 深圳壹账通智能科技有限公司 | Picture cleaning method and apparatus based on data update, and terminal device |
CN111723783A (en) * | 2020-07-29 | 2020-09-29 | 腾讯科技(深圳)有限公司 | Content identification method and related device |
CN112052110A (en) * | 2020-09-02 | 2020-12-08 | 广州市百果园信息技术有限公司 | Storage method and device |
CN112433993A (en) * | 2020-11-16 | 2021-03-02 | 连邦网络科技服务南通有限公司 | Network data processing and analyzing system based on computer |
CN112749128A (en) * | 2019-10-29 | 2021-05-04 | 深圳富泰宏精密工业有限公司 | Image deleting and sorting method and electronic device |
CN115220663A (en) * | 2022-08-01 | 2022-10-21 | 大拓(山东)物联网科技有限公司 | Single-chip microcomputer picture buffering processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105046640A (en) * | 2015-05-14 | 2015-11-11 | 深圳市美贝壳科技有限公司 | Picture memory managing method and apparatus |
CN105868353A (en) * | 2016-03-29 | 2016-08-17 | 努比亚技术有限公司 | Photograph clearing method and terminal |
CN105893268A (en) * | 2016-03-24 | 2016-08-24 | 北京小米移动软件有限公司 | Cached image processing method and device |
CN107577711A (en) * | 2017-08-01 | 2018-01-12 | 北京奇艺世纪科技有限公司 | A kind of method and apparatus of image cache |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009087330A (en) * | 2007-09-11 | 2009-04-23 | Nikon Corp | Electronic album providing system and file providing system |
CN102033958B (en) * | 2010-12-28 | 2013-04-17 | Tcl商用信息科技(惠州)股份有限公司 | Photo sort management system and method |
CN103412753A (en) * | 2013-08-12 | 2013-11-27 | 宇龙计算机通信科技(深圳)有限公司 | Image deletion method and device |
CN106407872A (en) * | 2015-07-30 | 2017-02-15 | 中兴通讯股份有限公司 | Picture processing apparatus and method thereof |
-
2018
- 2018-06-27 CN CN201810675257.5A patent/CN108959505A/en active Pending
- 2018-09-11 WO PCT/CN2018/104971 patent/WO2020000656A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105046640A (en) * | 2015-05-14 | 2015-11-11 | 深圳市美贝壳科技有限公司 | Picture memory managing method and apparatus |
CN105893268A (en) * | 2016-03-24 | 2016-08-24 | 北京小米移动软件有限公司 | Cached image processing method and device |
CN105868353A (en) * | 2016-03-29 | 2016-08-17 | 努比亚技术有限公司 | Photograph clearing method and terminal |
CN107577711A (en) * | 2017-08-01 | 2018-01-12 | 北京奇艺世纪科技有限公司 | A kind of method and apparatus of image cache |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109766462A (en) * | 2018-12-27 | 2019-05-17 | 山东信通电子股份有限公司 | Image file read method, apparatus and system in transmission line of electricity monitoring system |
CN109766462B (en) * | 2018-12-27 | 2020-12-15 | 山东信通电子股份有限公司 | Image file reading method, device and system in power transmission line monitoring system |
WO2020147448A1 (en) * | 2019-01-16 | 2020-07-23 | 深圳壹账通智能科技有限公司 | Picture cleaning method and apparatus based on data update, and terminal device |
CN110134652A (en) * | 2019-05-10 | 2019-08-16 | Oppo广东移动通信有限公司 | Recovery method, device, electronic equipment and the storage medium of cache file |
CN110400356A (en) * | 2019-06-24 | 2019-11-01 | 武汉联影医疗科技有限公司 | Image texture control method, device, equipment and storage medium |
CN112749128A (en) * | 2019-10-29 | 2021-05-04 | 深圳富泰宏精密工业有限公司 | Image deleting and sorting method and electronic device |
CN111723783A (en) * | 2020-07-29 | 2020-09-29 | 腾讯科技(深圳)有限公司 | Content identification method and related device |
CN111723783B (en) * | 2020-07-29 | 2023-12-08 | 腾讯科技(深圳)有限公司 | Content identification method and related device |
CN112052110A (en) * | 2020-09-02 | 2020-12-08 | 广州市百果园信息技术有限公司 | Storage method and device |
CN112052110B (en) * | 2020-09-02 | 2024-04-05 | 广州市百果园信息技术有限公司 | Storage method and device |
CN112433993A (en) * | 2020-11-16 | 2021-03-02 | 连邦网络科技服务南通有限公司 | Network data processing and analyzing system based on computer |
CN112433993B (en) * | 2020-11-16 | 2021-10-01 | 连邦网络科技服务南通有限公司 | Network data processing and analyzing system based on computer |
CN115220663A (en) * | 2022-08-01 | 2022-10-21 | 大拓(山东)物联网科技有限公司 | Single-chip microcomputer picture buffering processing method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2020000656A1 (en) | 2020-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108959505A (en) | A kind of method and terminal device of management caching picture | |
US9098385B2 (en) | Content managing apparatus, content managing method, content managing program, and integrated circuit | |
US9367757B2 (en) | Content extracting device, content extracting method and program | |
CN101510205B (en) | Method for implementing automatically clustering photographs, apparatus and system | |
CN103119595B (en) | Shared by the automatic media hitting by shutter | |
CN109213882B (en) | Picture ordering method and terminal | |
CN106649349A (en) | Method, device and system for data caching, applicable to game application | |
GB2554515A (en) | Providing relevant video scenes in response to a video search query | |
US10331752B2 (en) | Methods and systems for determining query date ranges | |
JP5524219B2 (en) | Interactive image selection method | |
CN104537000B (en) | A kind of method and apparatus for pushed information | |
CN104834713A (en) | Method and system for storing and transmitting image data of terminal equipment | |
WO2008014408A1 (en) | Method and system for displaying multimedia content | |
EP2225667A2 (en) | Real-time annotator | |
US8836811B2 (en) | Content storage management in cameras | |
CN105830429B (en) | For handling the method and system for the video frame damaged by camera motion | |
WO2015081915A1 (en) | File recommendation method and device | |
CN110418191A (en) | A kind of generation method and device of short-sighted frequency | |
US20150169698A1 (en) | Method and apparatus of determining time for sending information | |
CN105577772A (en) | Material receiving method, material uploading method and device | |
CN113762106A (en) | Face recognition method and device, electronic equipment and storage medium | |
CN110049180A (en) | Shoot posture method for pushing and device, intelligent terminal | |
CN109688217B (en) | Message pushing method and device and electronic equipment | |
CN105407005B (en) | Content distribution method and device | |
CN103561177A (en) | Method and device for setting alarm clock in mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |