CN104834713A - Method and system for storing and transmitting image data of terminal equipment - Google Patents

Method and system for storing and transmitting image data of terminal equipment Download PDF

Info

Publication number
CN104834713A
CN104834713A CN201510230505.1A CN201510230505A CN104834713A CN 104834713 A CN104834713 A CN 104834713A CN 201510230505 A CN201510230505 A CN 201510230505A CN 104834713 A CN104834713 A CN 104834713A
Authority
CN
China
Prior art keywords
view data
terminal device
storage space
data
thumbnail
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
Application number
CN201510230505.1A
Other languages
Chinese (zh)
Inventor
张宗飞
陈杰
马源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN NET POWER TECHNOLOGY Co Ltd
Original Assignee
WUHAN NET POWER TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by WUHAN NET POWER TECHNOLOGY Co Ltd filed Critical WUHAN NET POWER TECHNOLOGY Co Ltd
Priority to CN201510230505.1A priority Critical patent/CN104834713A/en
Publication of CN104834713A publication Critical patent/CN104834713A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for storing and transmitting image data of terminal equipment. The method comprises the following steps that the terminal equipment acquires images, and the acquired images are uploaded to a cloud storage server; the terminal equipment generates thumbnails of the image data, and the acquired image data and the corresponding thumbnails are stored in a local storage space; the terminal equipment judges whether the local storage space is beyond a space upper limit value or not, if the local storage space is beyond the space upper limit value, a retained value of image data is generated, deletion is performed from the image data with the lowest retained value until the local storage space is smaller than or equal to the space upper limit value. The storage space of terminal equipment can be expanded infinitely under the condition that the storage space of terminal equipment is limited, so that a user can infinitely acquire the image data, automatic storage management of image data acquired by the terminal equipment can be realized, and the processing efficiency is improved.

Description

The view data of terminal device is stored and the method and system of transmission process
Technical field
The present invention relates to data storage processing and transmission technology, particularly relate to and the view data of terminal device stored and the method and system of transmission process.
Background technology
Along with popularizing of intelligent electronic device, Taking Photographic becomes people's daily life inalienable part; Photograph video gets more and more, and the storage space of terminal device self is more and more not enough.
The terminal devices such as current use digital camera, mobile phone, panel computer are taken pictures or video, carry out image acquisition, generally the view data of collection are directly stored in the machine.Such storage mode exist storage space limited, do not support the problem that multi-platform, multiple devices cannot be shared.Even if be the external storage medium of terminal device, memory capacity is still limited.Solve the problem that storage space is limited, have following several method at present:
(1) manually mode is deleted.The photo needing user initiatively to select to delete or video, waste time and energy; And the view data of deleting forever is lost.
(2) manual unloading mode.Photo or video first dump on other-end equipment by user, and the photo then on deletion local terminal or video are with vacating space.
(3) cloud storage class application backup+manually delete mode.When needing, user uses existing cloud storage class to apply to carry out manual operation, by photo or video backup to high in the clouds, then manually delete the view data of terminal device.Which user initiatively need open that view data backup is carried out in the application of cloud storage class, without cannot check photo during network, image acquisition is separated with backup functionality, and user's need switch back and forth voluntarily between several application.
To sum up, existing scheme all exists needs user manually to participate in, complex operation inconvenient, time-consuming defect.
Summary of the invention
The invention provides a kind of view data to terminal device to store and the method for transmission process, the method can make when terminal device limited storage space can the storage space of endless terminal extension equipment, allow user can endless acquisition of image data, and can realize automatically carrying out storage administration to the view data of terminal device collection, and improve treatment effeciency.
The invention provides a kind of view data to terminal device to store and the system of transmission process, this system can make when terminal device limited storage space can the storage space of endless terminal extension equipment, allow user can endless acquisition of image data, and can realize automatically carrying out storage administration to the view data of terminal device collection, and improve treatment effeciency.
Store the view data of terminal device and the method for transmission process, the method comprises:
Terminal device carries out image acquisition, and the view data of collection is uploaded to cloud storage server;
The thumbnail of terminal device image data generating, preserves the view data and corresponding thumbnail that gather at local storage space;
Terminal device judges whether local storage space exceedes spatially limit value, if so, then generates the retention value of each view data, deletes from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value.
Store the view data of terminal device and the system of transmission process, this system comprises terminal device and cloud storage server; Described terminal device comprises data acquisition module, local data storage module and memory scheduling module, and described cloud storage server comprises high in the clouds memory module;
Described data acquisition module, carries out image acquisition, and view data is sent to described local data storage module;
Described local data storage module, the thumbnail of image data generating, preserves the view data and corresponding thumbnail that gather at local storage space; Discrimination instruction is sent to described memory scheduling module;
Described memory scheduling module, receive the discrimination instruction from described local data memory space, judge whether local storage space exceedes spatially limit value, if, then generate the retention value of each view data, delete from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value;
Described high in the clouds memory module, receives the view data from described terminal device, stores.
As can be seen from such scheme, in the present invention, terminal device carries out image acquisition, and the view data of collection is uploaded to cloud storage server; The thumbnail of terminal device also image data generating, the view data and corresponding thumbnail that gather is preserved at local storage space, judge whether local storage space exceedes spatially limit value, if, then generate the retention value of each view data, delete from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value.Adopt the present invention program, after terminal device carries out image acquisition, automatically will carry out uploading of view data, and preserve the thumbnail of view data and generation in this locality; Further, if local storage space exceedes spatially limit value, the deletion of view data is also carried out based on retention value; Usually, in order to retain the information of deleted view data in this locality, corresponding thumbnail is also retained.Like this, achieve and automatically storage administration is carried out to the view data of terminal device collection, and ensure that the viewing experience of view data.
Accompanying drawing explanation
Fig. 1 is that the view data of the present invention to terminal device stores and the method indicative flowchart of transmission process;
Fig. 2 is the method flow diagram example that the view data of the present invention to terminal device stores;
Fig. 3 is the method flow diagram example that the view data of the present invention to terminal device is checked;
Fig. 4 is that the present invention carries out the network application environment schematic diagram example of endless expansion to the storage space of terminal device;
Fig. 5 is that the view data of the present invention to terminal device stores and the network application environment schematic diagram example of transmission process;
Fig. 6 is that the view data of the present invention to terminal device stores and the system architecture schematic diagram of transmission process.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
The existing view data to terminal device store and transmission process scheme in, all need user manually to participate in, and complex operation inconvenient, expend time in.In order to solve this technical problem, the invention provides the scheme of automatically view data of terminal device collection being carried out to storage administration, and improve treatment effeciency.
See Fig. 1, for the view data of the present invention to terminal device stores and the method indicative flowchart of transmission process, it comprises the following steps:
Step 101, terminal device carries out image acquisition, and the view data of collection is uploaded to cloud storage server.
Carry out image acquisition comprise take pictures, recorded video etc.
After carrying out image acquisition, image real time transfer scheme provided by the invention can be performed immediately, namely carry out immediately high in the clouds upload and perform step 102 carry out this locality store; All right, according to the time cycle of setting, periodically carry out high in the clouds and upload and local storage.After the view data that cloud storage server receiving terminal apparatus is uploaded, store, view data all identifies with view data.
Carry out view data when uploading, if network is unobstructed, then upload; If network is obstructed, then detect in real time, upload immediately after unobstructed.
Step 102, the thumbnail of terminal device image data generating, preserves the view data and corresponding thumbnail that gather at local storage space.
After terminal device carries out image acquisition, the step of carrying out data upload and generation thumbnail and storage can unorderedly perform.
Step 103, terminal device judges whether local storage space exceedes spatially limit value, if so, then generates the retention value of each view data, deletes from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value.
Spatially limit value can be arranged as required.
Retention value reflects respective image data in the recent period by the probability checked, retention value shows more greatly larger by the probability checked recently, otherwise less.Retention value is less, and deleted probability is larger.Retention value define various ways, such as:
Retention value is determined by least one characteristic index, obtains the index parameter of each characteristic index corresponding to view data; The retention value of view data is calculated according to the index parameter of each characteristic index obtained.
Described each index parameter according to obtaining calculates the retention value of view data, has multiple method.Such as each index parameter obtained is sued for peace, the summing value obtained is worth as retention.For another example: for each characteristic index arranges weighted value, the desired value of each characteristic index is multiplied with respective weight value, all products obtained are sued for peace, the summing value obtained is defined as retention value.
Characteristic index includes but not limited to: 1. image capturing time, and the nearlyer then corresponding index parameter of shooting time is larger; 2. photo is accumulative checks number of times, and number of times more corresponding index parameter is larger; 3. photo finally check the time, the time of finally checking, nearlyer then corresponding index parameter was larger.
Adopt the present invention program, after terminal device carries out image acquisition, automatically will carry out uploading of view data, and preserve the thumbnail of view data and generation in this locality; Further, if local storage space exceedes spatially limit value, the deletion of view data is also carried out based on retention value; Usually, in order to retain the information of deleted view data in this locality, corresponding thumbnail is also retained.Like this, achieve and automatically storage administration is carried out to the view data of terminal device collection, and ensure that the viewing experience of view data; Further, thumbnail is more much smaller than view data, while reservation image information, also save storage space.
Then, user just can check the view data of carrying out preserving terminal device this locality as required, particularly:
Terminal device receiving package, containing the local search query of view data mark, searches the view data whether local storage space stores correspondence image Data Identification:
If so, then obtain the view data found, show;
Otherwise, display thumbnail, and the view data of correspondence image Data Identification is obtained from cloud storage server, the thumbnail of display is replaced by the view data obtained.
Obtain the view data of correspondence image Data Identification from cloud storage server after, local storage space can be kept at; Then, perform step 103, the judgement of retention value is carried out to all photos preserved in local storage space, and performs photo deletion action.
Further, in Fig. 1 process step 101, terminal device also comprises after carrying out image acquisition:
Terminal device generates the descriptor about view data, and descriptor is synchronized to application server, and described descriptor comprises user ID and view data mark.
Like this, after the synchronized upload of the view data that user uses a certain terminal device to carry out and descriptor, if this user wishes by another terminal device access images data, then can realize in the following way:
Terminal device sends the high in the clouds inquiry request comprising user ID to application server;
Terminal device receives all view data marks of the respective user mark of application server feedback, shows;
The view data mark that terminal device is selected according to user, obtains corresponding view data from cloud storage server, the view data that display obtains.
After obtaining corresponding view data from cloud storage server, local storage space can be kept at; Then, perform step 103, the judgement of retention value is carried out to all photos preserved in local storage space, and performs photo deletion action.Further, same user is used to the situation of multiple different terminal equipment, also can carry out synchronous to the data between each terminal device and the data between terminal device with server, particularly:
Terminal device, when synchronization point arrives, sends the synchronization request comprising user ID to application server;
Terminal device receives all view data marks of the respective user mark of application server feedback;
The all view data marks received identify with the view data of all view data of local storage space and compare by terminal device, determine the view data mark of local view data of not preserving;
Terminal device, according to the view data mark determined, obtains corresponding view data from cloud storage server;
Terminal device generates institute and obtains the thumbnail of view data, at view data and the corresponding thumbnail of local storage space preservation acquisition;
Terminal device judges whether local storage space exceedes spatially limit value, if so, then generates the retention value of each view data, deletes from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value.
Above-mentioned synchronization point can be the periodicity time pre-set, and also can be the Startup time of terminal device, or other forms of synchronous trigger timing.
Further, in step 103, terminal device judge local storage space exceed spatially limit value time, the method also comprises:
Judge whether local storage space stores view data, if so, then perform the step of the retention value of each view data of described generation; Otherwise, generate the retention value of each thumbnail, delete from retention is worth minimum thumbnail, until local storage space is less than or equal to spatially limit value.
The retention value of thumbnail and the retention value of view data, both computing method are similar.Particularly, such as, to a certain view data, the retention value of its thumbnail is worth into multiple proportion with the retention of its view data, and usually, thumbnail is higher than the retention value of view data.
Be specially photo with the view data gathered below, composition graphs is 2,3 couples of the present invention program be illustrated.
See Fig. 2, be the method flow diagram that the view data of the present invention to terminal device stores, it comprises the following steps:
Step 201, terminal device is taken pictures, and carries out the collection of view data.
Step 202, the thumbnail of terminal device image data generating, preserves the view data and corresponding thumbnail that gather at local storage space.
Step 203, terminal device also generates the standby descriptor about view data, and described descriptor comprises user ID and view data mark.
Step 202 and 203 can unorderedly perform.
Step 204, terminal device carries out server log, if logined successfully, then performs step 205, otherwise, continue to perform register.
In this example, specifically comprise the login to cloud storage server and application server.
Step 205, the view data of collection is uploaded to cloud storage server by terminal device, and descriptor is synchronized to application server.
Step 206, the local storage space of terminal device scans takies situation, judges whether local storage space exceedes spatially limit value, if so, then performs step 207, otherwise process ends.
Step 207, terminal device generates the retention value of each view data, and the retention value of more all photos, deletes from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value.
See Fig. 3, be the process flow diagram that the view data of the present invention to terminal device is checked, it comprises the following steps:
Step 301, checks photo.
Terminal device also saves the descriptor about photo, and user can check a certain photo as required.When checking, select, comprise the local search query of view data mark to terminal device input.
Step 302, the view data whether local storage space stores correspondence image Data Identification searched by terminal device, if so, then obtains the view data found, shows; Otherwise perform step 303.
Step 303, terminal device display thumbnail.
Step 304, terminal device obtains the view data of correspondence image Data Identification from cloud storage server, is saved in local storage space, replaces the thumbnail of display by the view data obtained.
Step 305, terminal device carries out the judgement of retention value to all photos preserved in local storage space, and performs photo deletion action.
This step idiographic flow is see step 206-207.
In the present invention, the object of process comprises: photo and video.Photo comprises: 1. the former figure of photo, 2. according to the thumbnail of the former figure compression of photo, can also comprise 3. picture data records.Video comprises: 1. original video, the sectional drawing 2. obtained from original video, 3. according to the thumbnail of sectional drawing compression, can also comprise 4. video data recordings; Usually, video thumbnails is the thumbnail according to generating after video interception compression.
Adopt image real time transfer scheme of the present invention, there is following effect:
(1) take pictures and automatically upload to high in the clouds and store, persistence, effectively saves the device space, allows hundreds of thousands of times of the photo storage capability improving of equipment; Meanwhile, the problem losing photo because of equipment replacement is solved.For iPhone5 mobile phone, the former figure of photo of shooting on average often opens the device space taking 2MB, and the thumbnail of generation is generally no more than 40KB, so just for terminal device saves the space of about 98%.
(2) support that many equipment photo is shared, only need an account (i.e. user ID) that arbitrary mobile phone, flat board, computer or other equipment can be logged in and check photo.Arbitrary equipment is uploaded, and other equipment moments are synchronous.Equipment is made a general reference all bands and to be taken pictures/camera head, has the hardware device of network communication module.Even if the multiple platform in equipment office, also support to share.
(3) support that multi-platform photo is shared.Data transmission based on user is passage with internet, and user (can include but not limited to iOS, Android, WEB, MAC, windows platform) and check and use oneself all photos in kinds of platform.
(4) cloud stores service safety and stability, reliably protecting data.Photo, photograph album all can be encrypted or hide, and allow the personal information data permanent secure of user preserve.
(5) cost of customer upgrade equipment and storage space is significantly reduced.
See Fig. 4, for the present invention to carry out the network application environment schematic diagram example of endless expansion to the storage space of terminal device.Comprising storage space 402 and the cloud storage server 403 of terminal device 401, terminal device.
In this example, terminal device is specially mobile phone, when user uses terminal device to take pictures and makes a video recording, the raw image data of photo or video first stores on storage space on the terminal device (this locality), and when network is unobstructed, (as under WiFi environment) automatic synchronization is to cloud storage server.When user checks photo or video, as this view data is stored in this locality then directly display or broadcasting, as not being stored in this locality, then obtaining this view data from cloud storage server end and carry out showing or playing, and can this locality be stored in.User can arrange the local maximal value (as 250M) storing permission voluntarily, when terminal device store view data take up room exceed this maximal value time, the present invention can remove the lower view data of retention value, farthest to ensure viewing experience while vacateing device memory.
As shown in Figure 5, give the view data of the present invention to terminal device to store and the network application environment example of transmission process.This example comprises: the terminal device+cloud camera applications+application server+cloud storage server with camera head and network communication function.
There is the terminal device of camera head and network communication function, such as smart mobile phone, panel computer etc.
Cloud camera applications is the integrated application that can realize the present invention program on the terminal device.Such as, be integrated with camera function, local datastore function in the present invention, based on retention value, view data carried out to the software application of memory scheduling function, application service and cloud stores service can be called, to take pictures, store, dispatch the application be integrated, also referred to as client.
Application server, the information that provides a description is for the hardware device of client and software application.
Cloud storage server, for terminal device provides data storage service, can be the aggregate be made up of multiple memory device and server.See Fig. 6, for the view data of the present invention to terminal device stores and the system architecture schematic diagram of transmission process, this system comprises terminal device and cloud storage server; Described terminal device comprises data acquisition module, local data storage module and memory scheduling module, and described cloud storage server comprises high in the clouds memory module;
Described data acquisition module, carries out image acquisition, and the view data of collection is uploaded to cloud storage server, and view data is sent to described local data storage module;
Described local data storage module, the thumbnail of image data generating, preserves the view data and corresponding thumbnail that gather at local storage space; Discrimination instruction is sent to described memory scheduling module;
Described memory scheduling module, receive the discrimination instruction from described local data memory space, judge whether local storage space exceedes spatially limit value, if, then generate the retention value of each view data, delete from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value;
Described high in the clouds memory module, receives the view data from described terminal device, stores.
Preferably, described memory scheduling module comprises retention value calculating sub module, retention value is determined by least one characteristic index, obtains the index parameter of each characteristic index corresponding to view data, calculates the retention value of view data according to the index parameter of each characteristic index obtained.
Memory scheduling module is that the view data (photo as shooting) gathered generates retention value, is used as the decision index whether being retained in terminal device.The behavior affecting retention value has: 1. the photograph taking time; 2. photo is labeled as by user and likes; 3. photo is accumulative checks number of times; 4. photo finally check the time.Other behaviors can be set in addition.These behaviors have different weighted values, by calculating the retention value of this photo.The retention value of often opening photo dynamically updates according to the operation of user.When memory scheduling, the photo that retention value is lower is larger by the possibility removing former figure from terminal device, the photo that can user be allowed to greatest extent to want to see like this is retained in terminal device, user can check fast and use photo, especially solves the problem that user checks when not having network to connect and uses photo.
Preferably, this system also comprises application server, and described application server comprises business module and database module;
Described data acquisition module, after carrying out image acquisition, also generates the descriptor about view data, descriptor is synchronized to application server, and described descriptor comprises user ID and view data mark;
Described business module, receives the descriptor from described data acquisition module, is stored into database module.
Preferably, described memory scheduling module comprises high in the clouds inquiry submodule, sends the high in the clouds inquiry request comprising user ID to application server; Receive all view data marks of the respective user mark of application server feedback, show; According to the view data mark that user selects, obtain corresponding view data from cloud storage server, the view data that display obtains;
Described business module, receives the high in the clouds inquiry request from described high in the clouds inquiry submodule, obtains all view data marks corresponding with user ID, feed back to high in the clouds inquiry submodule from database module.
After inquiry submodule in high in the clouds obtains corresponding view data from cloud storage server, local storage space can be kept at, send discrimination instruction to described memory scheduling module.
Preferably, described memory scheduling module comprises data syn-chronization submodule, when synchronization point arrives, sends the synchronization request comprising user ID to application server; Receive all view data marks of the respective user mark of application server feedback; The all view data marks received are identified with the view data of all view data of local storage space and compares, determine the view data mark of local view data of not preserving; According to the view data mark determined, obtain corresponding view data from cloud storage server; Generate institute and obtains the thumbnail of view data, at view data and the corresponding thumbnail of local storage space preservation acquisition; Discrimination instruction is sent to described memory scheduling module.
Preferably, described memory scheduling module comprises local search submodule, and receiving package, containing the local search query of view data mark, searches the view data whether local storage space stores correspondence image Data Identification: if, then obtain the view data found, show; Otherwise, display thumbnail, and the view data of correspondence image Data Identification is obtained from cloud storage server, the thumbnail of display is replaced by the view data obtained.
Local search submodule can be kept at local storage space after obtaining the view data of correspondence image Data Identification from cloud storage server, sends discrimination instruction to described memory scheduling module.
Preferably, described memory scheduling module, judge local storage space exceed spatially limit value time, also judge whether local storage space stores view data, if so, then perform the retention value of each view data of described generation; Otherwise, generate the retention value of each thumbnail, delete from retention is worth minimum thumbnail, until local storage space is less than or equal to spatially limit value.Below ingredient each in Fig. 6 system is described further:
Cloud storage server, function is to provide enough large storage space, is used for storing the view data of all users.
Application server, function provides miscellaneous service process to serve for client and preserves the service of view data descriptor.Business processing service includes but not limited to that user registers, logs in, obtains the descriptor etc. of all view data.
Terminal device, function carries client, takes pictures or recorded video, check photo or video, or comparison film or video carry out any operation that can carry out, and are that user directly uses direct access point of the present invention.Such as: iPhone, iPad, notebook computer, millet mobile phone etc.
High in the clouds memory module, function, for providing endless on-line storage space, stores the file data of all users, as photo, video.This module can be that Ali's cloud OSS serves, Amazon cloud S3 serves.
Database module, function is store the non-file data of all users, as the password after user name, encryption, the file data mark in corresponding memory module beyond the clouds, as be stored in Ali's cloud OSS serve in photo, storage Key that video is corresponding.
Business module, function is every service logic of process whole system, as login, the view data mark etc. registering, give password for change, return all view data of user of user.
Memory scheduling module, function is memory scheduling, is responsible for client and cloud storage server, the flowing of data and exchange between client and application server.Client and cloud storage server: photo client newly taken or video upload to cloud storage server, or read photo or video from cloud storage server.Client and application server: between client and application server, ensure the synchronous of description information of image and the various operations (deleting photo, editing photo etc.) to data.
Local data storage module, function, for storing local view data, comprises terminal device internal storage space and extending space, the internal memory of such as mobile phone, embedded memory card.
Also comprise photo module (data generation module) in terminal device, function, for generating photo/video, comprises the taking pictures of terminal device/camera head and application of taking pictures ,/the camera function of taking pictures that the camera of such as mobile phone and " cloud camera " are applied.
Data syn-chronization submodule, function is ensure that the multiple client of user is consistent with user data corresponding on application server.Such as, before just subsynchronous, a user uses two customer end A and B, A to have 3 photos (a, b, c), and B has 4 photos (d, e, f, g), and the photo of this user that server records is 0; When A and B is after data syn-chronization submodule is synchronous, A just has 7 photos (a, b, c, d, e, f, g), and B also has 7 photos (a, b, c, d, e, f, g), and the photo of this user that server records is (a, b, c, d, e, f, g).Afterwards, further, also carry out deleting, the operation such as increase is synchronous; Such as: when A deletes 2 photos (a, b), newly-increased 1 photo (h), B deletes 1 photo (c), newly-increased 2 photos (i, j, k), when A and B is again after data syn-chronization submodule is synchronous, photo (d, e, f, the g of A, h, i, j, k), the photo (d of B, e, f, g, h, i, j, k), the photo of this user that server records is (d, e, f, g, h, i, j, k).
Further, terminal device also can comprise caching management module, and in order to make view data, the occupancy stored in this locality and the speed that user checks ensure a relative good balance to function.On the one hand, what the photo produced after taking pictures or video can be the least possible takies device memory, on the other hand, wishes again photo or the video that can check shooting fast.In order to not take device memory, delete from this locality after photo or video are saved in cloud storage server, and like this, when user checks photo or video, because this locality does not have, can read from cloud storage server, this reading speed can be slow a lot of compared to reading from this locality, and therefore user can be very slow when checking photo or video.This module is exactly that the photo check nearest for user most probable or video are retained in this locality in the local storage space allowed, and ensures to check speed; This module is by realizing management to arranging of idle higher limit.
Retention value calculating sub module, function is calculate often to open the retention value of photo or video, and retention value reflects this photo or video in the recent period by the size of probability of checking, the larger expression of retention value is larger by the probability checked recently, otherwise less.Retention value is less, and the probability be removed when cache management is larger.
In the present invention, when user uses the client application of terminal device to take pictures, first the former figure (original photo and video file) of photo and video is stored in this locality (on terminal device), client application generates a record for this photo or video file, (be convenient to the summary record preserved, comprise the unique identifier of this photo or video, the storing path of this photo or video), generate thumbnail according to former figure and be saved in this locality.Application subsequently judges whether user logs in, and as do not logged in, points out login, and as logged in then, upload pictures or the former figure of video are to cloud storage server, and then this photo synchronous or videograph are to application server.What scan local storage space again takies situation, and what judge local storage space takies the maximal value whether exceeding permission, as do not exceeded, applying and not processing, and operation terminates; As exceeded maximal value, applying the retention value by calculating local all photos or video, then the retention value of more local all photos or video, deleting retention from this locality and being worth minimum former figure, only retaining thumbnail; Then, scanning this locality stores and takies situation again, judges whether that exceeding this locality stores the maximal value allowed, until the local storage space that the photo of terminal device storage or video take is in allowed band.
When user uses the client application of terminal device to check photo or video, the effect seen is all photos of display or video (wherein a part is former figure+thumbnail, and a part is only thumbnail).First application judges whether the photo that user checks or the former figure of video are stored in this locality, and as former figure is stored in this locality, then directly show former figure, operation terminates; If former figure is not stored in this locality, then show thumbnail, obtain former figure from cloud storage server and be kept at local terminal device, replacing thumbnail display on the terminal device, for user with former figure.The local storage of scanning subsequently takies situation, and judge whether that exceeding this locality stores the maximal value allowed, as do not exceeded, applying and not processing, operation terminates; As exceeded maximal value, the retention value of application by calculating local all photos or video, then the retention value of more local all photos or video, delete retention from this locality and be worth minimum former figure, only retain thumbnail, scanning this locality stores and takies situation again, judges whether that exceeding this locality stores the maximal value allowed, until the photo of terminal device storage or video take local storage space in allowed band.
The generation of view data and cloud storage, by access cloud stores service, for user provides magnanimity space, are integrated in a system application by the present invention simultaneously; Design the memory scheduling scheme of intelligence in the application, user is wanted the view data (as photo, video) seen retains on the terminal device, and only take little space, allow user browse the view data of oneself needs whenever and wherever possible.
Principle of the present invention adopts computing machine " internal memory-hard disk " model.Hard-disk capacity is large, but read or write speed is slow, and memory size is little, but read or write speed is exceedingly fast.Based on this feature; the present invention is saved in hard disk view data all for user; only retain in internal memory a small amount of user often can view data; when the view data of user is in internal memory; directly take from internal memory; when user's view data used is not in internal memory, just read from hard disk.The present invention adopts the cloud of infinite space to be stored as the realization of " hard disk ", and the various terminal devices (as iPhone, iPad, millet mobile phone, all kinds of computer and other mobile platforms etc.) of user are as " internal memory ", and internet is as data channel.
User uses application of the present invention and equipment can obtain the storage space of magnanimity.First the view data (photo, video as shooting) that user generates can preserve on the terminal device, and when network is unobstructed, (as under WiFi environment) automatic synchronization is to cloud storage server.Then by certain algorithm, memory scheduling module judges whether user frequently uses view data, if judge that user does not frequently use this view data, then the former figure of this view data is removed from terminal device, only retain thumbnail, when really will use this view data Deng user, then from cloud storage server, former figure is got back to terminal device for user by network.Thumbnail is more much smaller than former figure, for iPhone5 mobile phone, the former figure of photo of shooting on average often opens the space of occupied terminal equipment 2MB (1MB=1024KB), and the thumbnail of generation is generally no more than 40KB, so just for terminal device saves the space of more than 98%.Find according to statistics, the usual limited amount of the photo that user often checks (within 100), that is, terminal device only need reserve little space (as 250MB), just can meet the normal user demand of user's comparison film.Therefore, photo occupied terminal device memory reduces greatly, and this local maximal value allowed that stores can be set to default value (as 250MB), also can be arranged voluntarily in the application by user.
Adopt the present invention program, solve the problem of the photo of shooting, the video occupied terminal device space, overcome the drawback of existing manual settling mode; Set up the system of a kind of terminal camera+cloud dish+memory scheduling, realizing takes pictures uploads to the function that high in the clouds stores automatically, is convenient to user and follows one's bent shooting image, and can check image by cross-platform many equipment.The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (15)

1. store the view data of terminal device and the method for transmission process, it is characterized in that, the method comprises:
Terminal device carries out image acquisition, and the view data of collection is uploaded to cloud storage server;
The thumbnail of terminal device image data generating, preserves the view data and corresponding thumbnail that gather at local storage space;
Terminal device judges whether local storage space exceedes spatially limit value, if so, then generates the retention value of each view data, deletes from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value.
2. the method for claim 1, is characterized in that, the retention value of each view data of described generation comprises:
Retention value is determined by least one characteristic index, obtains the index parameter of each characteristic index corresponding to view data;
The retention value of view data is calculated according to the index parameter of each characteristic index obtained.
3. method as claimed in claim 2, is characterized in that, the retention value that described each index parameter according to obtaining calculates view data comprises:
For each characteristic index arranges weighted value, the desired value of each characteristic index is multiplied with respective weight value, all products obtained is sued for peace, the summing value obtained is defined as retention value.
4. the method for claim 1, is characterized in that, after terminal device carries out image acquisition, the method also comprises:
Terminal device generates the descriptor about view data, and descriptor is synchronized to application server, and described descriptor comprises user ID and view data mark.
5. method as claimed in claim 4, it is characterized in that, the method also comprises:
Terminal device sends the high in the clouds inquiry request comprising user ID to application server;
Terminal device receives all view data marks of the respective user mark of application server feedback, shows;
The view data mark that terminal device is selected according to user, obtains corresponding view data from cloud storage server, the view data that display obtains.
6. method as claimed in claim 4, it is characterized in that, the method also comprises:
Terminal device, when synchronization point arrives, sends the synchronization request comprising user ID to application server;
Terminal device receives all view data marks of the respective user mark of application server feedback;
The all view data marks received identify with the view data of all view data of local storage space and compare by terminal device, determine the view data mark of local view data of not preserving;
Terminal device, according to the view data mark determined, obtains corresponding view data from cloud storage server;
Terminal device generates institute and obtains the thumbnail of view data, at view data and the corresponding thumbnail of local storage space preservation acquisition;
Terminal device judges whether local storage space exceedes spatially limit value, if so, then generates the retention value of each view data, deletes from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value.
7. the method for claim 1, is characterized in that, the method also comprises:
Terminal device receiving package, containing the local search query of view data mark, searches the view data whether local storage space stores correspondence image Data Identification:
If so, then obtain the view data found, show;
Otherwise, display thumbnail, and the view data of correspondence image Data Identification is obtained from cloud storage server, the thumbnail of display is replaced by the view data obtained.
8. the method for claim 1, is characterized in that, terminal device judge local storage space exceed spatially limit value time, the method also comprises:
Judge whether local storage space stores view data, if so, then perform the step of the retention value of each view data of described generation; Otherwise, generate the retention value of each thumbnail, delete from retention is worth minimum thumbnail, until local storage space is less than or equal to spatially limit value.
9. store the view data of terminal device and the system of transmission process, it is characterized in that, this system comprises terminal device and cloud storage server; Described terminal device comprises data acquisition module, local data storage module and memory scheduling module, and described cloud storage server comprises high in the clouds memory module;
Described data acquisition module, carries out image acquisition, and view data is sent to described local data storage module;
Described local data storage module, the thumbnail of image data generating, preserves the view data and corresponding thumbnail that gather at local storage space; Discrimination instruction is sent to described memory scheduling module;
Described memory scheduling module, receive the discrimination instruction from described local data memory space, judge whether local storage space exceedes spatially limit value, if, then generate the retention value of each view data, delete from retention is worth minimum view data, until local storage space is less than or equal to spatially limit value;
Described high in the clouds memory module, receives the view data from described terminal device, stores.
10. system as claimed in claim 9, it is characterized in that, described memory scheduling module comprises retention value calculating sub module, retention value is determined by least one characteristic index, obtain the index parameter of each characteristic index corresponding to view data, calculate the retention value of view data according to the index parameter of each characteristic index obtained.
11. systems as claimed in claim 9, it is characterized in that, this system also comprises application server, and described application server comprises business module and database module;
Described data acquisition module, after carrying out image acquisition, also generates the descriptor about view data, descriptor is synchronized to application server, and described descriptor comprises user ID and view data mark;
Described business module, receives the descriptor from described data acquisition module, is stored into database module.
12. systems as claimed in claim 11, is characterized in that, described memory scheduling module comprises high in the clouds inquiry submodule, sends the high in the clouds inquiry request comprising user ID to application server; Receive all view data marks of the respective user mark of application server feedback, show; According to the view data mark that user selects, obtain corresponding view data from cloud storage server, the view data that display obtains;
Described business module, receives the high in the clouds inquiry request from described high in the clouds inquiry submodule, obtains all view data marks corresponding with user ID, feed back to high in the clouds inquiry submodule from database module.
13. systems as claimed in claim 11, it is characterized in that, described memory scheduling module comprises data syn-chronization submodule, when synchronization point arrives, sends the synchronization request comprising user ID to application server; Receive all view data marks of the respective user mark of application server feedback; The all view data marks received are identified with the view data of all view data of local storage space and compares, determine the view data mark of local view data of not preserving; According to the view data mark determined, obtain corresponding view data from cloud storage server; Generate institute and obtains the thumbnail of view data, at view data and the corresponding thumbnail of local storage space preservation acquisition; Discrimination instruction is sent to described memory scheduling module.
14. systems as claimed in claim 9, it is characterized in that, described memory scheduling module comprises local search submodule, receiving package is containing the local search query of view data mark, search the view data whether local storage space stores correspondence image Data Identification: if, then obtain the view data found, show; Otherwise, display thumbnail, and the view data of correspondence image Data Identification is obtained from cloud storage server, the thumbnail of display is replaced by the view data obtained.
15. systems as claimed in claim 9, is characterized in that, described memory scheduling module, judge local storage space exceed spatially limit value time, also judge whether local storage space stores view data, if so, then perform the retention value of each view data of described generation; Otherwise, generate the retention value of each thumbnail, delete from retention is worth minimum thumbnail, until local storage space is less than or equal to spatially limit value.
CN201510230505.1A 2015-05-08 2015-05-08 Method and system for storing and transmitting image data of terminal equipment Pending CN104834713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510230505.1A CN104834713A (en) 2015-05-08 2015-05-08 Method and system for storing and transmitting image data of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510230505.1A CN104834713A (en) 2015-05-08 2015-05-08 Method and system for storing and transmitting image data of terminal equipment

Publications (1)

Publication Number Publication Date
CN104834713A true CN104834713A (en) 2015-08-12

Family

ID=53812599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510230505.1A Pending CN104834713A (en) 2015-05-08 2015-05-08 Method and system for storing and transmitting image data of terminal equipment

Country Status (1)

Country Link
CN (1) CN104834713A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302899A (en) * 2015-10-23 2016-02-03 努比亚技术有限公司 Mobile terminal and picture processing method
CN105430106A (en) * 2016-01-06 2016-03-23 中山大学 Secure storage method in image or video public cloud
CN105760490A (en) * 2016-02-17 2016-07-13 北京金山安全软件有限公司 Resource storage method and device and electronic equipment
CN105931187A (en) * 2016-04-29 2016-09-07 北京小米移动软件有限公司 Image processing method and apparatus
CN106155595A (en) * 2016-08-01 2016-11-23 乐视控股(北京)有限公司 The storage optimization method of memory and system
CN106649510A (en) * 2016-10-12 2017-05-10 珠海市魅族科技有限公司 Method for editing cloud photo album and mobile terminal
CN107332758A (en) * 2017-06-30 2017-11-07 罗颖莉 A kind of the Internet chat processing system with malicious information filtering component
CN107507475A (en) * 2017-07-27 2017-12-22 北京华文众合科技有限公司 Central control system, interactive teaching system and method
CN107566861A (en) * 2016-06-30 2018-01-09 深圳市九洲电器有限公司 A kind of digital television devices picture storage method and system
CN107608823A (en) * 2017-08-25 2018-01-19 维沃移动通信有限公司 A kind of photo processing method and mobile terminal
CN107977463A (en) * 2017-12-21 2018-05-01 广东欧珀移动通信有限公司 image processing method, device, storage medium and terminal
CN108024079A (en) * 2017-11-29 2018-05-11 广东欧珀移动通信有限公司 Record screen method, apparatus, terminal and storage medium
CN108521861A (en) * 2017-09-25 2018-09-11 深圳市大疆创新科技有限公司 Image synchronization storage method, image processing equipment
CN109033311A (en) * 2018-07-17 2018-12-18 北京东软医疗设备有限公司 Image acquiring method and device, equipment and machine readable storage medium
CN111966642A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Picture management method and device and electronic equipment
WO2021037227A1 (en) * 2019-08-30 2021-03-04 华为技术有限公司 Image processing method, electronic device and cloud server
CN113407118A (en) * 2021-06-24 2021-09-17 九江职业技术学院 Data storage device
CN113420171A (en) * 2021-08-23 2021-09-21 深圳市城市交通规划设计研究中心股份有限公司 Image management method, device and storage medium
CN113535644A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Device memory management method and device, terminal device and storage medium
CN114363657A (en) * 2021-12-10 2022-04-15 南通亿荣网络科技有限公司 Audio and video interaction management system based on cloud technology
CN114501176A (en) * 2021-12-29 2022-05-13 深圳市海浦蒙特科技有限公司 Data acquisition method and device, data acquisition terminal and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761612A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Method and system for photographing and automatic uploading based on wireless communication equipment
CN103237054A (en) * 2013-03-28 2013-08-07 东莞宇龙通信科技有限公司 Photo/video storage method and system, and mobile terminal
CN103327189A (en) * 2013-06-28 2013-09-25 北京小米科技有限责任公司 Method and device for uploading, browsing and deleting pictures
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device
US20140032850A1 (en) * 2012-07-25 2014-01-30 Vmware, Inc. Transparent Virtualization of Cloud Storage
CN104317534A (en) * 2014-10-29 2015-01-28 小米科技有限责任公司 Method and device for cleaning data storage space
CN104572922A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Image processing method and device based on mobile equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761612A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Method and system for photographing and automatic uploading based on wireless communication equipment
US20140032850A1 (en) * 2012-07-25 2014-01-30 Vmware, Inc. Transparent Virtualization of Cloud Storage
CN103237054A (en) * 2013-03-28 2013-08-07 东莞宇龙通信科技有限公司 Photo/video storage method and system, and mobile terminal
CN103327189A (en) * 2013-06-28 2013-09-25 北京小米科技有限责任公司 Method and device for uploading, browsing and deleting pictures
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device
CN104317534A (en) * 2014-10-29 2015-01-28 小米科技有限责任公司 Method and device for cleaning data storage space
CN104572922A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Image processing method and device based on mobile equipment

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302899A (en) * 2015-10-23 2016-02-03 努比亚技术有限公司 Mobile terminal and picture processing method
CN105430106A (en) * 2016-01-06 2016-03-23 中山大学 Secure storage method in image or video public cloud
WO2017140165A1 (en) * 2016-02-17 2017-08-24 北京金山安全软件有限公司 Method and apparatus for resource storage and electronic device
CN105760490A (en) * 2016-02-17 2016-07-13 北京金山安全软件有限公司 Resource storage method and device and electronic equipment
CN105760490B (en) * 2016-02-17 2019-07-23 北京金山安全软件有限公司 Resource storage method and device and electronic equipment
CN105931187A (en) * 2016-04-29 2016-09-07 北京小米移动软件有限公司 Image processing method and apparatus
CN107566861A (en) * 2016-06-30 2018-01-09 深圳市九洲电器有限公司 A kind of digital television devices picture storage method and system
CN106155595A (en) * 2016-08-01 2016-11-23 乐视控股(北京)有限公司 The storage optimization method of memory and system
CN106649510A (en) * 2016-10-12 2017-05-10 珠海市魅族科技有限公司 Method for editing cloud photo album and mobile terminal
CN107332758A (en) * 2017-06-30 2017-11-07 罗颖莉 A kind of the Internet chat processing system with malicious information filtering component
CN107507475A (en) * 2017-07-27 2017-12-22 北京华文众合科技有限公司 Central control system, interactive teaching system and method
CN107507475B (en) * 2017-07-27 2020-06-16 北京华文众合科技有限公司 Central control system, interactive teaching system and method
CN107608823A (en) * 2017-08-25 2018-01-19 维沃移动通信有限公司 A kind of photo processing method and mobile terminal
CN108521861A (en) * 2017-09-25 2018-09-11 深圳市大疆创新科技有限公司 Image synchronization storage method, image processing equipment
CN108024079A (en) * 2017-11-29 2018-05-11 广东欧珀移动通信有限公司 Record screen method, apparatus, terminal and storage medium
CN107977463A (en) * 2017-12-21 2018-05-01 广东欧珀移动通信有限公司 image processing method, device, storage medium and terminal
CN109033311A (en) * 2018-07-17 2018-12-18 北京东软医疗设备有限公司 Image acquiring method and device, equipment and machine readable storage medium
WO2021037227A1 (en) * 2019-08-30 2021-03-04 华为技术有限公司 Image processing method, electronic device and cloud server
CN112449099A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Image processing method, electronic equipment and cloud server
CN112449099B (en) * 2019-08-30 2022-08-19 华为技术有限公司 Image processing method, electronic equipment and cloud server
CN113535644A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Device memory management method and device, terminal device and storage medium
CN111966642A (en) * 2020-08-28 2020-11-20 维沃移动通信有限公司 Picture management method and device and electronic equipment
CN113407118A (en) * 2021-06-24 2021-09-17 九江职业技术学院 Data storage device
CN113420171A (en) * 2021-08-23 2021-09-21 深圳市城市交通规划设计研究中心股份有限公司 Image management method, device and storage medium
CN114363657A (en) * 2021-12-10 2022-04-15 南通亿荣网络科技有限公司 Audio and video interaction management system based on cloud technology
CN114501176A (en) * 2021-12-29 2022-05-13 深圳市海浦蒙特科技有限公司 Data acquisition method and device, data acquisition terminal and readable storage medium

Similar Documents

Publication Publication Date Title
CN104834713A (en) Method and system for storing and transmitting image data of terminal equipment
US10235444B2 (en) Systems and methods for providing a user with a set of interactivity features locally on a user device
US10504001B2 (en) Duplicate/near duplicate detection and image registration
CN102576350B (en) System and method of caching information
CN102768662B (en) A kind of method and apparatus Loaded Image
US20030187868A1 (en) Data acquisition system
CN106453572B (en) Method and system based on Cloud Server synchronous images
CN106599292B (en) Method and system for storing real-time video data and image data
CN110399348A (en) File deletes method, apparatus, system and computer readable storage medium again
CN105979363A (en) Identity identification method and device
CN107911461A (en) Object processing method, storage server and cloud storage system in cloud storage system
CN110188216B (en) Photo live broadcasting system with character recognition and method thereof
CN107580032B (en) Data processing method, device and equipment
CN104216956A (en) Method and device for searching picture information
CN103109273A (en) Method and apparatus for managing data
CN104778172B (en) Webpage information prefetches processing method, device and corresponding web page browsing device
US20120307078A1 (en) Automatic sharing and replacement of content based on network connectivity
CN110166790B (en) Live photo broadcasting system with face recognition function and method thereof
US8635270B2 (en) Thread mechanism for media and metadata upload
CN104349169B (en) A kind of image processing method and electronic equipment
CN110515908B (en) Photo live broadcasting system and method thereof
US10049110B2 (en) Content ranking based on person-to-person sharing
CN112286457A (en) Object deduplication method and device, electronic equipment and machine-readable storage medium
CN104113509B (en) Pushing method for media files and server
CN102055743A (en) Digital content transferring system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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: 20150812