CN106294663A - A kind of electronic equipment and application image processing method and system - Google Patents
A kind of electronic equipment and application image processing method and system Download PDFInfo
- Publication number
- CN106294663A CN106294663A CN201610634368.2A CN201610634368A CN106294663A CN 106294663 A CN106294663 A CN 106294663A CN 201610634368 A CN201610634368 A CN 201610634368A CN 106294663 A CN106294663 A CN 106294663A
- Authority
- CN
- China
- Prior art keywords
- picture
- downloaded
- control end
- download
- described control
- 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
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/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of electronic equipment and the image processing method of application thereof and system, set up the first caching mapping table with the entitled key assignments of the resource size of picture, partial bytes and suffix downloaded, and cache mapping table by described image cache in this locality according to described first.And follow-up need download pictures time, can be first according to the suffix name of picture to be downloaded, resource size and partial bytes make a look up the picture matched in this locality, if there is the picture matched, the most directly obtain, without the picture matched, just from control end, picture is downloaded, avoid the repeated downloads of picture, improve the efficiency that picture obtains, and with the suffix name of picture, resource size and partial bytes are that key assignments mates, improve the accuracy rate of coupling, can prevent prior art from only producing with picture name for key assignments carries out mating matching result is inaccurate thus picture needs repeated downloads and the problem that reduces treatment effeciency etc..
Description
Technical field
The present invention relates to picture processing and optimize field, particularly relate to a kind of electronic equipment and the picture processing of application thereof
Method and system.
Background technology
Along with intelligent movable equipment rise popularize, Dlna technology based on Upnp agreement occur so that equipment between mutual
Connection intercommunication, the photo of let us, video, music can be shared between mobile device, and then make Digital Media and content service
Unconfined share and growth be possibly realized, such as, the photo in the mobile devices such as mobile phone plane plate computer is projected intelligence
Show on TV giant-screen.The photographic head pixel carried yet with present mobile device is more and more higher so that shooting is out
The resource size of picture increasing, so projection picture and will go to Load Image when toggling picture display, by
Mutual the most smooth and easy between mobile device, can produce the time delay of display so that Consumer's Experience is deteriorated.
The defect that in existing many Dlna implementations, picture display exists:
1. picture shows after needing repeated downloads when toggling display again.
2. limit without space resources size during caching picture and eliminate deletion strategy so that caching increasing, take and deposit
Memory space
3. build when image cache maps more single with name for key assignments, if the picture name of projection is randomly generated
, then do not reach the purpose that picture display is accelerated time with picture name for key assignments.
Summary of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of electronic equipment and application thereof
Image processing method and system, be used for solving that picture match in prior art is inaccurate and picture needs repeated downloads to drop
The problem of reduction process efficiency etc..
For achieving the above object and other relevant purposes, the present invention provides a kind of image processing method, including: from controlling end
Push the mark of the picture extracting download in the url of the picture display request come, and obtained the money of the picture downloaded by url
Source size and the partial bytes of the picture with preset rules acquisition download, wherein, described picture identification includes the name of described picture
Claim and the suffix name of picture;The first caching is set up for key assignments with described resource size, described suffix name and described partial bytes
Mapping table;According to described first caching mapping table by described image cache in this locality.
In the present invention one specific embodiment, also include: ask when receiving to download from a picture controlling end download pictures
When asking, obtain suffix name and the resource size of picture to be downloaded from described control end, and according to described preset rules from described control
End processed obtains the partial bytes of picture to be downloaded;Search whether this locality exists and figure to be downloaded according to described first caching mapping table
The suffix name of sheet, resource size and the picture of partial bytes coupling;If existing, the most directly obtain the most buffered local figure
Sheet;If not existing, then download described picture to be downloaded to the request of described control end.
In the present invention one specific embodiment, also include: obtain the title of the picture downloaded;Entitled with described picture
Key assignments sets up the second caching mapping table;According to described second caching mapping table by described image cache in this locality;When receive from
When request downloaded by one picture controlling end download pictures, search whether this locality exists and treat down according to described second caching mapping table
Carry the picture of the name-matches of picture;If existing, the most directly obtain the most buffered local picture;If not existing, then from url
Extract suffix name, obtain the size of picture resource and according to described preset rules from described control according to url from described control end
End obtains the partial bytes of picture to be downloaded;Search whether this locality exists and picture to be downloaded according to described first caching mapping table
Suffix name, resource size and partial bytes coupling picture;If existing, the most directly obtain the most buffered local picture;
If not existing, then download described picture to be downloaded to the request of described control end.
In the present invention one specific embodiment, the described step bag downloading described picture to be downloaded to the request of described control end
Include: obtain the resource size of picture to be downloaded from described control end;Judge resource size and this locality of described picture to be downloaded
Whether the resource size sum of the picture cached is more than preset capacity threshold value;The most then delete at least recently used figure
Sheet, is not more than preset capacity with the resource size sum in the resource size of described picture to be downloaded with the local picture cached
During threshold value, download described picture to be downloaded from described control end;If it is not, then directly download described figure to be downloaded from described control end
Sheet;Or described to described control end request download described picture to be downloaded step include: from described control end obtain to be downloaded
Picture;Judge whether the cache entry of the local picture cached is more than preset buffer memory with the cache entry sum of described picture to be downloaded
Item threshold value;The most then deleting least recently used picture, the cache entry of the picture to have cached in this locality is to be downloaded with described
When the cache entry sum of picture is not more than preset buffer memory item threshold value, download described picture to be downloaded from described control end;If it is not, then
Directly download described picture to be downloaded from described control end.
In the present invention one specific embodiment, described preset rules includes: from the beginning of the fixed position of described picture, obtains
The byte of certain number.The byte of wherein said certain number be following in one or more: 1) partial words of image content
Joint;2) during shooting photo, the general unique identification that can uniquely indicate described picture that program of taking pictures is added to picture fixed position
Code;3) picture formed after the picture is taken can uniquely indicate institute by what image processing software added in described picture fixed position
State the general unique identifier of picture.
For achieving the above object and other relevant purposes, the present invention also provides for a kind of picture processing system, including: obtain mould
Block, in order to extract the mark of the picture of download from the url controlling the picture display request that end propelling movement comes, and is obtained by url
Take off the resource size of the picture of load and obtain the partial bytes of the picture downloaded with preset rules, wherein, described picture identification
Title and the suffix name of picture including described picture;Build table module, in order to described resource size, described suffix name and portion
Point byte is that key assignments sets up the first caching mapping table;In order to cache mapping table by described image cache in this according to described first
Ground.
In the present invention one specific embodiment, also include download module, control end download pictures in order to receive from one
When request downloaded by picture, obtain suffix name and the resource size of picture to be downloaded from described control end, and according to described default rule
The partial bytes of picture to be downloaded is then obtained from described control end;Search whether this locality exists according to described first caching mapping table
The picture mated with suffix name, resource size and the partial bytes of picture to be downloaded;If existing, the most directly obtain this locality
The picture of caching;If not existing, then download described picture to be downloaded to the request of described control end.
In the present invention one specific embodiment, described acquisition module is also in order to obtain the title of the picture of download;Described build
Table module is also in order to set up the second caching mapping table with the entitled key assignments of described picture;Described cache module is also in order to according to institute
State the second caching mapping table by described image cache in this locality;Described download module is also in order to when receiving from a control end download
When request downloaded by the picture of picture, search whether this locality exists and the title of picture to be downloaded according to described second caching mapping table
The picture of coupling;If existing, the most directly obtain the most buffered local picture;If not existing, then from url extract suffix name,
From the size of described control end acquisition picture resource and obtain to be downloaded according to described preset rules from described control end according to url
The partial bytes of picture;Search whether this locality exists the suffix name with picture to be downloaded, money according to described first caching mapping table
Source size and the picture of partial bytes coupling;If existing, the most directly obtain the most buffered local picture;If not existing, then
Described picture to be downloaded is downloaded to the request of described control end.
In the present invention one specific embodiment, described download module downloads described picture to be downloaded to the request of described control end
Including: the resource size of picture to be downloaded is obtained from described control end;Judge resource size and the basis of described picture to be downloaded
Whether the resource size sum of the picture that ground has cached is more than preset capacity threshold value;The most then delete least recently used figure
Sheet, the resource size sum of the picture to have cached in the resource size of described picture to be downloaded and this locality is not more than to preset and holds
During amount threshold value, download described picture to be downloaded from described control end;If it is not, then directly download described to be downloaded from described control end
Picture;Or described download module downloads described picture to be downloaded to the request of described control end and includes: obtain from described control end and treat
Download pictures;Judge whether the cache entry of the local picture cached is more than with the cache entry sum of described picture to be downloaded to preset
Cache entry threshold value;The most then deleting least recently used picture, the cache entry of the picture to have cached in this locality is treated with described
When the cache entry sum of download pictures is not more than preset buffer memory item threshold value, download described picture to be downloaded from described control end;If
No, then directly download described picture to be downloaded from described control end.
In the present invention one specific embodiment, described preset rules includes: from the beginning of the fixed position of described picture, obtains
The byte of certain number.The byte of wherein said certain number be following in one or more: 1) partial words of image content
Joint;2) during shooting photo, what program of taking pictures was added in described picture fixed position can uniquely indicate described picture general uniquely
Identification code;3) picture formed after the picture is taken can uniquely be marked what described picture fixed position was added by image processing software
Show the general unique identifier of described picture.
For achieving the above object and other relevant purposes, the present invention also provides for a kind of electronic equipment, including as above any one
Described picture processing system.
As it has been described above, the electronic equipment of the present invention and the image processing method of application thereof and system, with the picture downloaded
Resource size, suffix name and partial bytes are that key assignments sets up the first caching mapping table, and according to described first caching mapping table
By described image cache in this locality.And follow-up need download pictures time, can first suffix name, resource according to picture to be downloaded big
Little and partial bytes makes a look up the picture matched in this locality, if there is the picture matched, the most directly obtains, if
The picture not matched, be just downloaded picture from controlling end, it is to avoid the repeated downloads of picture, improves what picture obtained
Efficiency, and mate with suffix name, resource size and the partial bytes of picture for key assignments, improve the accuracy rate of coupling, can
Prevent from prior art only producing with picture name for key assignments carries out mating matching result is inaccurate thus picture needs to repeat
The problem downloaded and reduce treatment effeciency etc..
Accompanying drawing explanation
Fig. 1 is shown as the image processing method of present invention schematic flow sheet in one embodiment.
Fig. 2 is shown as the picture processing system of present invention module diagram in one embodiment.
Fig. 3 is shown as the picture processing system of present invention module diagram in one embodiment.
Element numbers explanation
S11~S13 step
20 picture processing systems
21 acquisition modules
22 build table module
23 cache modules
24 download modules
30 control end
Detailed description of the invention
Below by way of specific instantiation, embodiments of the present invention being described, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also be by the most different concrete realities
The mode of executing is carried out or applies, the every details in this specification can also based on different viewpoints and application, without departing from
Various modification or change is carried out under the spirit of the present invention.It should be noted that, in the case of not conflicting, following example and enforcement
Feature in example can be mutually combined.
It should be noted that the diagram provided in following example illustrates the basic structure of the present invention the most in a schematic way
Think, component count, shape and size when then only showing the assembly relevant with the present invention rather than implement according to reality in diagram
Drawing, during its actual enforcement, the kenel of each assembly, quantity and ratio can be a kind of random change, and its assembly layout kenel is also
It is likely more complexity.
Speed to the acquisition of picture, affects the experience of user to a great extent, the present invention is directed to commonly used
The caching of picture builds so that avoid repeated downloads picture resource when toggling picture so that equipment mutual the most smooth and easy, enters
And more preferable Consumer's Experience is provided.
Refer to Fig. 1, be shown as the image processing method of present invention schematic flow sheet in one embodiment.Described
Image processing method is applied in an electronic equipment (local device), described electronic equipment for example, intelligent television, intelligence projection
The smart machine that picture can be received and process by instrument, computer, server etc..Preferably, described electronic equipment also can dock
The picture received shows.Described image processing method includes:
S11: extract the mark of the picture of download from the url controlling the picture display request that end propelling movement comes, and pass through
Url obtains the resource size of the picture downloaded and obtains the partial bytes of the picture downloaded with preset rules, wherein, and described picture
Mark includes the title of described picture and the suffix name of picture;In the present invention one specific embodiment, described preset rules includes:
From the beginning of the fixed position of described picture, obtain the byte of certain number.For example, obtain 15 started from picture centre position
Individual successive byte.The byte of wherein said certain number be following in one or more: 1) partial bytes of image content;2)
During shooting photo, the general unique identification that can uniquely indicate described picture that program of taking pictures is added in described picture fixed position
Code;3) picture formed after the picture is taken can uniquely indicate institute by what image processing software added in described picture fixed position
State the general unique identifier of picture.The described control end for example, smart machine such as smart mobile phone or computer.
S12: set up the first caching with described resource size, described suffix name and described partial bytes for key assignments and map
Table;In the present invention one specific embodiment, build based on lru algorithm (Least Recently Used, recent minimum use algorithm)
Vertical described first caching mapping table.Further, also described resource size, described suffix name and partial bytes can be formed
Character string sets up the first caching mapping table as described key assignments.
S13: according to described first caching mapping table by described image cache in this locality, i.e. caching and local electronic equipment
In.
In the present invention one specific embodiment, also include: ask when receiving to download from a picture controlling end download pictures
When asking, obtain suffix name and the resource size of picture to be downloaded from described control end, and according to described preset rules from described control
End processed obtains the partial bytes of picture to be downloaded;Search whether this locality exists and figure to be downloaded according to described first caching mapping table
The suffix name of sheet, resource size and the picture of partial bytes coupling;If existing, the most directly obtain the most buffered local figure
Sheet;If not existing, then download described picture to be downloaded to the request of described control end.Described control end for example, smart mobile phone or electricity
The smart machines such as brain.Using suffix name, resource size and partial bytes is that key assignments sets up the first caching mapping table, because existing
In some part electronic equipments, such as Semen setariae mobile phone, for the consideration to the title protection pushing resource, figure propelling movement come
The title stochastic generation of sheet, and use suffix name, resource size and partial bytes as key assignments, then can preferably avoid
During with the entitled key assignments of picture, cause the inaccurate problem of coupling because of the title stochastic generation of picture.
In the present invention one specific embodiment, also include: obtain the title of the picture downloaded;Entitled with described picture
Key assignments sets up the second caching mapping table;According to described second caching mapping table by described image cache in this locality;When receive from
When request downloaded by one picture controlling end download pictures, search whether this locality exists and treat down according to described second caching mapping table
Carry the picture of the name-matches of picture;If existing, the most directly obtain the most buffered local picture;If not existing, then from url
Extract suffix name, obtain the size of picture resource and according to described preset rules from described control according to url from described control end
End obtains the partial bytes of picture to be downloaded;Search whether this locality exists and picture to be downloaded according to described first caching mapping table
Suffix name, resource size and partial bytes coupling picture;If existing, the most directly obtain the most buffered local picture;
If not existing, then download described picture to be downloaded to the request of described control end.I.e. using Double buffer mapping table, it is right to avoid further
Picture repeat caching, and use the entitled key assignments of picture, coupling is more obvious, and the data obtained are the most directly perceived, institute
To carry out mating for scheme more preferably by the title of picture, and when name-matches does not goes up, then use the suffix of picture
Name, resource size and partial bytes are that key assignments mates.When the title preventing picture randomly selects, due to name-matches not
On, and the problem of repeated downloads picture.
In one specifically application, such as, when mobile device (control end), to OTT, (OTT is the contracting of " Over The Top "
Write, refer to provide a user with various application service by the Internet.The communication service that this application and current operator are provided
Difference, it is merely with the network of operator, and services and provided by the third party outside operator.At present, typical OTT business has
Internet television business, Fructus Mali pumilae application shop etc..) box intelligent television (local device) projection image time, first television meeting
Picture resource in CACHE DIRECTORY is built the caching mapping table that picture name is key assignments, and builds the suffix name with picture, money
Source size and the caching mapping table that partial bytes is key assignments.
When television receives projection image instruction, first according to the name lookup mapping table of picture, if the most buffered
There is this picture, then need not deduplication download again, in local cache, directly read display
If picture name does not matches, after the most remotely obtaining the resource size of picture and the picture of partial bytes and extraction
Sew name and constitute unique key assignments lookup content map table, wherein, 15 bytes that partial bytes for example, picture centre position starts
Or the uuid at picture end, if finding, local cache reads display, it is to avoid again download whole pictures resource, decreases figure
The time that sheet shows, enhance Consumer's Experience.
If two above caching mapping table does not matches, the most at this time may determine that this picture the most in the buffer, need
Download to controlling end request.
During lookup, it is the lookup of key assignments in strict accordance with content after first name, at some Dlna (DIGITAL
LIVINGNETWORK ALLIANCE, DLNA) picture name of some projection is fixing in equipment, and have
A little titles are randomly generated, and are easy to caching for the projection image that title is fixing, but for the picture of title stochastic generation,
The purpose of caching is not just reached the most again with entitled key assignments caching, if at this moment with suffix name, the resource size of picture during projection
And a combination of partial bytes makes a look up as key assignments, need repeated downloads because name matching does not go up by effectively reducing
The time of picture resource.Clearly for the when of often toggling display projection image, more preferable Consumer's Experience can be reached.
In one specifically application, the mode searching the mapping table with content as key assignments includes:
1, remotely the most not download pictures and obtain picture resource length:
Method field conventional in Http agreement has three kinds:
GET: the page info that request is specified, and return entity body.
HEAD: simply request the stem of the page.
Document specified by the acceptance of POST: request server is as the new subordinate entity to the URI identified.
Wherein, when Method is HEAD, will not go to download resource but in the Content-Length field of Http head
Return the length of resource, and respective code is 200.
2, continuous 15 bytes or the uuid at picture end that picture centre position starts is obtained:
Range header field in Http agreement can ask successfully service end with one or more subrange of request entity
The content of the position that this territory is specified will be returned, and response code is 206
3, continuous 15 bytes started in the centre position got transfer character string or the picture end of hexadecimal format to
As key assignments lookup content map table in the resource size splicing of the uuid of tail, the suffix name of picture and picture:
Form:
The resource size of Key:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-suffix name-picture
In the present invention one specific embodiment, the described step bag downloading described picture to be downloaded to the request of described control end
Include: obtain the resource size of picture to be downloaded from described control end;Judge resource size and this locality of described picture to be downloaded
Whether the resource size sum of the picture cached is more than preset capacity threshold value;The most then delete least recently used picture,
The resource size sum of the picture to have cached in the resource size of described picture to be downloaded and this locality is not more than preset capacity
During threshold value, download described picture to be downloaded from described control end;If it is not, then directly download described figure to be downloaded from described control end
Sheet;Such as, with in default 1 hour, the descending arrangement carrying out priority of number of times that picture is used, deleting successively ought
The picture that front priority level is minimum, so that spatial cache meets condition.
Or described to described control end request download described picture to be downloaded step include: from described control end obtain treat
Download pictures;Judge that the local image cache item cached is the most slow more than presetting with the cache entry sum of described picture to be downloaded
Credit balance threshold value;The most then delete least recently used picture, with the cache entry of picture that cached in this locality with under described treating
When the cache entry sum of load picture is not more than preset buffer memory item threshold value, download described picture to be downloaded from described control end;If it is not,
Then directly download described picture to be downloaded from described control end.Wherein, least recently used picture is for example, at Preset Time
The interior minimum picture operated, described Preset Time for example, 1 hour.
In a concrete application example, by http request, not download pictures resource, and obtain picture resource from far-end
Size, has exceeded maximum according to the picture resource size calculating spatial cache obtained or whether cache entry has exceeded
Big value, as beyond then least-recently-used picture being deleted release spatial cache, until spatial cache less than maximum or
Cache entry is less than maximum, it is to avoid spatial cache constantly increases, and wastes memory space.
The caching mapping table with name as key assignments is built according to the picture resource downloaded.
The character string of 15 successive bytes composition Hexadecimal form that structure starts with picture centre position or picture literary composition
Picture resource length and the caching mapping table of the entitled key assignments of suffix in uuid splicing at the end of part.
Total size of image cache and total entry are arranged for example:
Private int cacheSize=0;
Private int cacheByteSize=0;
Private final int maxCacheItemSize=64;
Private long maxCacheByteSize=1024*1024*5;//5M
When image cache size is more than 5M, or caching entry more than 64 time, the most untapped picture is deleted
Divided by release spatial cache, it is to avoid because caching causes memory space nervous.Such as, with in default 1 hour, picture is used
The descending arrangement carrying out priority of number of times, delete the minimum picture of current preference rank successively, so that spatial cache is full
Foot condition.
In the present invention one specific embodiment, also include showing the picture downloaded or obtain, and downloading or obtaining
During taking picture, currently displaying picture is gradually backed out with default animation effect, and post-set time and described picture
Download or obtain time correlation, so can alleviate the pause and transition in rhythm or melody sense caused because of the time of loaded and displayed picture, strengthen user's body
Test.
Refer to Fig. 2, be shown as the picture processing system of present invention module diagram in one embodiment.Described
Picture processing system 20, including acquisition module 21, builds table module 22 and cache module 23.Described picture processing system 20 includes
In an electronic equipment (local device), described electronic equipment for example, intelligent television, smart projector, computer, server etc.
The smart machine that picture can be received and process.Preferably, the picture received also can be shown by described electronic equipment.
Described acquisition module 21 is in order to extract the figure of download from the url controlling the picture display request that end 30 propelling movement comes
The mark of sheet, and obtain the resource size of the picture downloaded by url and obtain the partial words of the picture downloaded with preset rules
Joint, wherein, described picture identification includes the title of described picture and the suffix name of picture;Described control end 30 for example, intelligence hands
The smart machine such as machine or computer.
Described table module 22 of building is in order to set up first with described resource size, described suffix name and partial bytes for key assignments
Caching mapping table;
Described cache module 23 is in order to cache mapping table by described image cache in this locality according to described first.
In the present invention one specific embodiment, refering to Fig. 3, the picture processing system being shown as the present invention is embodied as one
Module diagram in example.Described picture processing system 20 also includes download module 24, controls end 30 in order to receive from one
Carry the picture of picture when downloading request, obtain suffix name and the resource size of picture to be downloaded from described control end 30, and according to
Described preset rules obtains the partial bytes of picture to be downloaded from described control end 30;Search according to described first caching mapping table
Whether this locality exists the picture that suffix name, resource size and partial bytes with picture to be downloaded are mated;If existing, the most directly
Obtain the most buffered local picture;If not existing, then download described picture to be downloaded to the request of described control end 30.
In the present invention one specific embodiment, described acquisition module 21 is also in order to obtain the title of the picture of download;Described
Build table module 22 also in order to set up the second caching mapping table with the entitled key assignments of described picture;Described cache module 23 also in order to
According to described second caching mapping table by described image cache in this locality;Described download module 24 is also in order to when receiving from a control
When request downloaded by the picture of end 30 download pictures processed, search whether this locality exists with to be downloaded according to described second caching mapping table
The picture of the name-matches of picture;If existing, the most directly obtain the most buffered local picture;If not existing, then carry from url
Take suffix name, obtain the size of picture resource and according to described preset rules from described control according to url from described control end 30
The partial bytes of end 30 acquisition picture to be downloaded;Search whether this locality exists and figure to be downloaded according to described first caching mapping table
The suffix name of sheet, resource size and the picture of partial bytes coupling;If existing, the most directly obtain the most buffered local figure
Sheet;If not existing, then download described picture to be downloaded to the request of described control end 30.
In the present invention one specific embodiment, described download module 24 is downloaded described to be downloaded to the request of described control end 30
Picture includes: obtain the resource size of picture to be downloaded from described control end 30;Judge the resource size of described picture to be downloaded
And whether the resource size sum of picture that this locality has cached is more than preset capacity threshold value;The most then delete minimum
The picture used, the resource size sum of the picture to have cached in the resource size of described picture to be downloaded and this locality is little
When preset capacity threshold value, download described picture to be downloaded from described control end 30;If it is not, then directly from described control end 30
Carry described picture to be downloaded;Or described download module 24 downloads described picture to be downloaded to the request of described control end 30 and includes: from
Described control end 30 obtains picture to be downloaded;Judge the cache entry of the local picture cached and the caching of described picture to be downloaded
Whether item sum is more than preset buffer memory item threshold value;The most then delete least recently used picture, with the figure cached in this locality
When the cache entry sum of the cache entry of sheet and described picture to be downloaded is not more than preset buffer memory item threshold value, from described control end 30
Carry described picture to be downloaded;If it is not, then directly download described picture to be downloaded from described control end 30.Wherein, minimum make
The minimum picture that such as operated in Preset Time of picture, described Preset Time for example, 1 hour.
In the present invention one specific embodiment, also include display module, in order to the picture downloaded or obtain is shown,
And during described download module 24 is downloaded or obtained picture, by currently displaying picture with default animation effect gradually
Exit, and the download of post-set time and described picture or obtain time correlation.
In the present invention one specific embodiment, described preset rules includes: from the beginning of the fixed position of described picture, obtains
The byte of certain number.The byte of wherein said certain number be following in one or more: 1) partial words of image content
Joint;2) during shooting photo, what program of taking pictures was added in described picture fixed position can uniquely indicate described picture general uniquely
Identification code;3) picture formed after the picture is taken can uniquely be marked what described picture fixed position was added by image processing software
Show the general unique identifier of described picture.
Described picture processing system 20 is the system entries corresponding with image processing method shown in Fig. 1, both technical schemes
One_to_one corresponding, the description of all about described image processing method all can be applicable in the present embodiment, is not added with at this repeating.
In sum, the electronic equipment of the present invention and the image processing method of application thereof and system, with the picture downloaded
Resource size, suffix name and partial bytes are that key assignments sets up the first caching mapping table, and according to described first caching mapping table
By described image cache in this locality.And follow-up need download pictures time, can be first according to resource size, the suffix of picture to be downloaded
Name and partial bytes make a look up the picture matched in this locality, if there is the picture matched, the most directly obtain, if
The picture not matched, be just downloaded picture from controlling end, it is to avoid the repeated downloads of picture, improves what picture obtained
Efficiency, and mate with resource size, suffix name and the partial bytes of picture for key assignments, improve the accuracy rate of coupling, can
Prevent prior art from only producing with picture name for key assignments carries out mating matching result is inaccurate thus under picture needs repeat
The problem carried and reduce treatment effeciency etc..So, the present invention effectively overcomes various shortcoming of the prior art and has height and produce
Industry value.
The principle of above-described embodiment only illustrative present invention and effect thereof, not for limiting the present invention.Any ripe
Above-described embodiment all can be modified under the spirit and the scope of the present invention or change by the personage knowing this technology.Cause
This, have usually intellectual such as complete with institute under technological thought without departing from disclosed spirit in art
All equivalences become are modified or change, and must be contained by the claim of the present invention.
Claims (11)
1. an image processing method, it is characterised in that including:
From the url controlling the picture display request that end propelling movement comes, extract the mark of the picture of download, and obtained down by url
The resource size of the picture carried and the partial bytes of the picture with preset rules acquisition download, wherein, described picture identification includes
The title of described picture and the suffix name of picture;
The first caching mapping table is set up for key assignments with described resource size, described suffix name and described partial bytes;
According to described first caching mapping table by described image cache in this locality.
Image processing method the most according to claim 1, it is characterised in that also include:
When receiving from the picture download request that described control end sends, obtain the suffix of picture to be downloaded from described control end
Name and resource size, and obtain the partial bytes of picture to be downloaded from described control end according to described preset rules;
Search whether this locality exists suffix name, resource size and the portion with picture to be downloaded according to described first caching mapping table
Divide the picture of bytes match;
If existing, the most directly obtain the most buffered local picture;
If not existing, then download described picture to be downloaded to the request of described control end.
Image processing method the most according to claim 1, it is characterised in that also include:
Obtain the title of the picture downloaded;
The second caching mapping table is set up with the entitled key assignments of described picture;
According to described second caching mapping table by described image cache in this locality;
When receiving from the picture download request of described control end download pictures, search this according to described second caching mapping table
Whether ground exists the picture of the name-matches with picture to be downloaded;
If existing, the most directly obtain the most buffered local picture;
If not existing, then from url extract suffix name, according to url from described control end obtain picture resource size and according to
Described preset rules obtains the partial bytes of picture to be downloaded from described control end;This is searched according to described first caching mapping table
Whether ground exists the picture that suffix name, resource size and partial bytes with picture to be downloaded are mated;If existing, the most directly obtain
Take the most buffered local picture;If not existing, then download described picture to be downloaded to the request of described control end.
Image processing method the most according to claim 2, it is characterised in that: described described to the request download of described control end
The step of picture to be downloaded includes:
The resource size of picture to be downloaded is obtained from described control end;
Judge that whether the resource size sum of the picture that the resource size of described picture to be downloaded and this locality cached is more than pre-
If capacity threshold;
The most then delete least recently used picture, with cached in the resource size of described picture to be downloaded and this locality
When the resource size sum of picture is not more than preset capacity threshold value, download described picture to be downloaded from described control end;
If it is not, then directly download described picture to be downloaded from described control end;
Or described to described control end request download described picture to be downloaded step include:
Picture to be downloaded is obtained from described control end;
Judge whether the cache entry of the local picture cached is more than preset buffer memory with the cache entry sum of described picture to be downloaded
Item threshold value;
The most then delete least recently used picture, with the cache entry of picture and the described figure to be downloaded that have cached in this locality
When the cache entry sum of sheet is not more than preset buffer memory item threshold value, download described picture to be downloaded from described control end;
If it is not, then directly download described picture to be downloaded from described control end.
Image processing method the most according to claim 1, it is characterised in that: described preset rules includes:
From the beginning of the fixed position of described picture, obtain the byte of certain number;
The byte of wherein said certain number be following in one or more:
1) partial bytes of image content;
2) during shooting photo, the general unique identification that can uniquely indicate described picture that program of taking pictures is added to picture fixed position
Code;
3) picture formed after the picture is taken can uniquely be indicated what described picture fixed position was added by image processing software
The general unique identifier of described picture.
6. a picture processing system, it is characterised in that including:
Acquisition module, in order to extract the mark of the picture of download from the url controlling the picture display request that end propelling movement comes, and
Obtain the resource size of the picture downloaded by url and obtain the partial bytes of the picture downloaded with preset rules, wherein, described
Picture identification includes the title of described picture and the suffix name of picture;
Build table module, map in order to set up the first caching with described resource size, described suffix name and partial bytes for key assignments
Table;
Cache module, in order to cache mapping table by described image cache in this locality according to described first.
Picture processing system the most according to claim 6, it is characterised in that also include download module, in order to receive from
When request downloaded by the picture of described control end download pictures, big from suffix name and the resource of described control end acquisition picture to be downloaded
Little, and obtain the partial bytes of picture to be downloaded from described control end according to described preset rules;Reflect according to described first caching
Firing table searches whether this locality exists the picture that suffix name, resource size and partial bytes with picture to be downloaded are mated;If depositing
, the most directly obtain the most buffered local picture;If not existing, then download described figure to be downloaded to the request of described control end
Sheet.
Picture processing system the most according to claim 6, it is characterised in that
Described acquisition module is also in order to obtain the title of the picture of download;
Described build table module also in order to set up the second caching mapping table with the entitled key assignments of described picture;
Described cache module is also in order to cache mapping table by described image cache in this locality according to described second;
Described download module also in order to when receive download request from the picture of described control end download pictures time, according to described the
Two caching mapping tables search whether this locality exists the picture of the name-matches with picture to be downloaded;If existing, the most directly obtain this
The picture that ground is the most buffered;If not existing, then from url, extract suffix name, obtain picture resource according to url from described control end
Size and according to described preset rules from described control end obtain picture to be downloaded partial bytes;According to described first caching
Mapping table searches whether this locality exists the picture that suffix name, resource size and partial bytes with picture to be downloaded are mated;If
Exist, the most directly obtain the most buffered local picture;If not existing, then download described figure to be downloaded to the request of described control end
Sheet.
Picture processing system the most according to claim 7, it is characterised in that: described download module is asked to described control end
Download described picture to be downloaded to include:
The resource size of picture to be downloaded is obtained from described control end;
Judge that whether the resource size sum of the picture that the resource size of described picture to be downloaded and this locality cached is more than pre-
If capacity threshold;
The most then delete least recently used picture, to cache in the resource size of described picture to be downloaded and this locality
The resource size sum of picture when being not more than preset capacity threshold value, download described picture to be downloaded from described control end;
If it is not, then directly download described picture to be downloaded from described control end;
Or described download module downloads described picture to be downloaded to the request of described control end and includes:
Picture to be downloaded is obtained from described control end;
Judge whether the cache entry of the local picture cached is more than preset buffer memory with the cache entry sum of described picture to be downloaded
Item threshold value;
The most then delete at recent minimum use picture, with the cache entry of picture and the described figure to be downloaded that have cached in this locality
When the cache entry sum of sheet is not more than preset buffer memory item threshold value, download described picture to be downloaded from described control end;
If it is not, then directly download described picture to be downloaded from described control end.
Picture processing system the most according to claim 6, it is characterised in that: described preset rules includes:
From the beginning of the fixed position of described picture, obtain the byte of certain number;
The byte of wherein said certain number be following in one or more:
1) partial bytes of image content;
2) during shooting photo, what program of taking pictures was added in described picture fixed position can uniquely indicate described picture general uniquely
Identification code;
3) picture formed after the picture is taken can uniquely be indicated what described picture fixed position was added by image processing software
The general unique identifier of described picture.
11. 1 kinds of electronic equipments, it is characterised in that: include the picture processing system as according to any one of claim 6~10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610634368.2A CN106294663A (en) | 2016-08-04 | 2016-08-04 | A kind of electronic equipment and application image processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610634368.2A CN106294663A (en) | 2016-08-04 | 2016-08-04 | A kind of electronic equipment and application image processing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106294663A true CN106294663A (en) | 2017-01-04 |
Family
ID=57665222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610634368.2A Pending CN106294663A (en) | 2016-08-04 | 2016-08-04 | A kind of electronic equipment and application image processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294663A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107135427A (en) * | 2017-03-28 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | A kind of method and system for showing barrage information |
CN109324999A (en) * | 2018-11-30 | 2019-02-12 | 维沃移动通信有限公司 | A kind of method and electronic equipment executing operation based on download instruction |
CN110020320A (en) * | 2017-12-29 | 2019-07-16 | 北京京东尚科信息技术有限公司 | The method and apparatus for caching page pictures |
CN110069649A (en) * | 2017-09-25 | 2019-07-30 | 腾讯科技(深圳)有限公司 | Graphics Document Retrieval Method method, apparatus, equipment and computer readable storage medium |
CN110866201A (en) * | 2019-11-14 | 2020-03-06 | 深圳前海环融联易信息科技服务有限公司 | Cache processing method and device, computer equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6710787B1 (en) * | 1998-09-28 | 2004-03-23 | Koninklijke Philips Electronics N.V. | Web browser graphics management |
CN101465953A (en) * | 2009-01-15 | 2009-06-24 | 深圳市茁壮网络技术有限公司 | Method for displaying picture and system for browsing digital television picture as well as television set-top box |
CN102810060A (en) * | 2011-06-01 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Method and device for configuring Android picture resource |
CN103365865A (en) * | 2012-03-29 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Methods and devices for storing and downloading data |
US20140082058A1 (en) * | 2005-08-02 | 2014-03-20 | Aol Inc. | Generic download and upload functionality in a client/server web application architecture |
CN104965877A (en) * | 2015-06-12 | 2015-10-07 | 郑州悉知信息技术有限公司 | Webpage picture acquisition method, picture cache server, coordination server and system |
CN105589919A (en) * | 2015-09-18 | 2016-05-18 | 广州市动景计算机科技有限公司 | Method and device for processing webpage resource |
CN105630981A (en) * | 2015-12-25 | 2016-06-01 | 小米科技有限责任公司 | Network resource loading and configuration method and device |
CN105786997A (en) * | 2016-02-19 | 2016-07-20 | 四川长虹电器股份有限公司 | IOS-system-based image caching and compression method |
-
2016
- 2016-08-04 CN CN201610634368.2A patent/CN106294663A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6710787B1 (en) * | 1998-09-28 | 2004-03-23 | Koninklijke Philips Electronics N.V. | Web browser graphics management |
US20140082058A1 (en) * | 2005-08-02 | 2014-03-20 | Aol Inc. | Generic download and upload functionality in a client/server web application architecture |
CN101465953A (en) * | 2009-01-15 | 2009-06-24 | 深圳市茁壮网络技术有限公司 | Method for displaying picture and system for browsing digital television picture as well as television set-top box |
CN102810060A (en) * | 2011-06-01 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Method and device for configuring Android picture resource |
CN103365865A (en) * | 2012-03-29 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Methods and devices for storing and downloading data |
CN104965877A (en) * | 2015-06-12 | 2015-10-07 | 郑州悉知信息技术有限公司 | Webpage picture acquisition method, picture cache server, coordination server and system |
CN105589919A (en) * | 2015-09-18 | 2016-05-18 | 广州市动景计算机科技有限公司 | Method and device for processing webpage resource |
CN105630981A (en) * | 2015-12-25 | 2016-06-01 | 小米科技有限责任公司 | Network resource loading and configuration method and device |
CN105786997A (en) * | 2016-02-19 | 2016-07-20 | 四川长虹电器股份有限公司 | IOS-system-based image caching and compression method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107135427A (en) * | 2017-03-28 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | A kind of method and system for showing barrage information |
CN110069649A (en) * | 2017-09-25 | 2019-07-30 | 腾讯科技(深圳)有限公司 | Graphics Document Retrieval Method method, apparatus, equipment and computer readable storage medium |
CN110069649B (en) * | 2017-09-25 | 2023-07-07 | 腾讯科技(深圳)有限公司 | Graphic file retrieval method, graphic file retrieval device, graphic file retrieval equipment and computer readable storage medium |
CN110020320A (en) * | 2017-12-29 | 2019-07-16 | 北京京东尚科信息技术有限公司 | The method and apparatus for caching page pictures |
CN109324999A (en) * | 2018-11-30 | 2019-02-12 | 维沃移动通信有限公司 | A kind of method and electronic equipment executing operation based on download instruction |
CN110866201A (en) * | 2019-11-14 | 2020-03-06 | 深圳前海环融联易信息科技服务有限公司 | Cache processing method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106294663A (en) | A kind of electronic equipment and application image processing method and system | |
KR101330807B1 (en) | Apparatus and method for sharing data using augmented reality | |
CN110096660B (en) | Method and device for loading page pictures and electronic equipment | |
CN101000623A (en) | Method for image identification search by mobile phone photographing and device using the method | |
CN106453572B (en) | Method and system based on Cloud Server synchronous images | |
US20090119388A1 (en) | Content relaying device and content relaying method | |
CN102932523A (en) | Systems and methods for incorporating a control connected media frame | |
CN106940880A (en) | A kind of U.S. face processing method, device and terminal device | |
CN103593442B (en) | The De-weight method and device of daily record data | |
CN108230220B (en) | Watermark adding method and device | |
CN101039372B (en) | Apparatus and system for managing television album | |
CN103368951B (en) | File downloading method and system | |
CN109033393B (en) | Sticker processing method, device, storage medium and electronic equipment | |
CN105608189B (en) | Picture classification method and device and electronic equipment | |
CN103179201B (en) | A kind of method and system of file synchronization | |
CN108134811A (en) | The methods, devices and systems that file destination is distributed or downloaded | |
CN102289479A (en) | Method, device and equipment for determining image showing mode and showing image | |
CN108270807A (en) | A kind of data transmission method and device | |
CN105868399A (en) | Method and device of managing photo album folders | |
CN109213955A (en) | Data processing method and relevant device | |
JP2010129084A (en) | Apparatus for providing digital content for sharing digital content in distributed manner and method thereof | |
KR101803391B1 (en) | Method for providing image management based on user information and device and system using the same | |
US20140104442A1 (en) | Image information processing system | |
KR20100100873A (en) | Pseudo real time indexing of digital media files | |
CN103312777B (en) | A kind of resource search method and client |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20170104 |