CN105224409A - A kind of management method of internal memory and device - Google Patents

A kind of management method of internal memory and device Download PDF

Info

Publication number
CN105224409A
CN105224409A CN201510642447.3A CN201510642447A CN105224409A CN 105224409 A CN105224409 A CN 105224409A CN 201510642447 A CN201510642447 A CN 201510642447A CN 105224409 A CN105224409 A CN 105224409A
Authority
CN
China
Prior art keywords
image
internal memory
similarity
free space
same classification
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
CN201510642447.3A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510642447.3A priority Critical patent/CN105224409A/en
Publication of CN105224409A publication Critical patent/CN105224409A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a kind of method and device of memory management, belong to communication technique field.Method flow comprises: when detecting that the free space of internal memory is less than the first pre-set threshold value, and the similarity according to the image stored in described internal memory is sorted out described image; The picture quality of often opening image in same classification is analyzed; Determine according to analysis result the image that in described same classification, picture quality is the highest, and delete other images in described same classification.Adopt the present invention, can according to the similarity of the image stored in internal memory and sharpness, delete the not much higher remaining image of picture quality in the high image of similarity, can vacate redundant space can not make again user want the information dropout retained, and user is without the need to carrying out manual operation again, save the time of user, avoided manually operated consuming time.

Description

A kind of management method of internal memory and device
Technical field
The present invention relates to communication technique field, particularly relate to a kind of management method and device of internal memory.
Background technology
Along with widely using of mechanics of communication development and intelligent terminal, the increase of the function of intelligent terminal (as mobile phone etc.), the content that user stores also constantly increases.But, the storage space of intelligent terminal is limited really, along with being on the increase and the increase of thing that cache web pages, image, video etc. take up space of mounting software, cause used for mobile terminal to a certain extent time to there will be internal memory full, mounting software can not be continued, take pictures, receive the problems such as file.
Prior art is inadequate at Installed System Memory, and system can be pointed out to be needed to clear up internal memory, now needs user oneself manually to remove uninstall or cleaning internal memory, occupies a lot of unnecessary time, seems special standby loaded down with trivial details.Although, also all kinds of cleaning software (such as cheetah has been there is in prior art, 360, cleaning great master etc.), but these cleaning softwares only have when prompting internal memory too small and can not install other softwares or operation to take pictures etc. function time just understand reminding user, and run according to the operation of user, and also it is shown in the form of a list by after the mounting software in mobile terminal only by scanning whole system during its operation, finally still need manual confirmation deletion information, so still, occupy the time of user, and important information may be deleted in the manual scale removal process of user by mistake, intelligence not.
Summary of the invention
Fundamental purpose of the present invention is the management method and the device that propose a kind of internal memory, is intended to solve prior art when Installed System Memory is inadequate, needs user manually to clear up garbage, the problem wasted time and energy.
For achieving the above object, the method for a kind of memory management provided by the invention, is characterized in that, described method comprises step:
When detecting that the free space of internal memory is less than the first pre-set threshold value, the similarity according to the image stored in described internal memory is sorted out described image;
The picture quality of often opening image in same classification is analyzed;
Determine according to analysis result the image that in described same classification, picture quality is the highest, and delete other images in described same classification.
There is provided a kind of method as above, the similarity of the described image according to storing in described internal memory is sorted out described image, comprising:
Similarity Measure is carried out to unclassified first image in the image of described memory and other images unclassified;
Same classification is classified as more than the image of the second pre-set threshold value by described first image and with the similarity of described first image.
There is provided a kind of method as above, described method also comprises:
In real time or timing detect the size of the free space of described internal memory;
Judge whether the size of described free space is less than the first pre-set threshold value, and when being less than the first pre-set threshold value, determine to need to sort out picture and delete.
There is provided a kind of method as above, after deleting other images in described same classification, described method also comprises:
Scan and the web cache deleted in described internal memory and/or internal memory rubbish.
A kind of as above method is provided, scan and before deleting web cache and/or internal memory rubbish, described method also comprises: the size of the free space of the described internal memory of detection;
When judging that the size of described free space is less than described first threshold values, determine to need to perform described scanning and the step of deleting web cache and/or internal memory rubbish.
In addition, for achieving the above object, the present invention also proposes a kind of device of memory management, and described device comprises:
Taxon, for when detecting that the free space of internal memory is less than the first pre-set threshold value, the similarity according to the image stored in described internal memory is sorted out described image;
Analytic unit, for analyzing the picture quality of often opening image in same classification;
Delete cells, for the image determining that according to analysis result in described same classification, picture quality is the highest, and deletes other images in described same classification.
There is provided a kind of device as above, described analytic unit comprises:
Similarity calculation module, carries out Similarity Measure for unclassified first image in the image to described memory and other images unclassified;
Classifying module, for being classified as same classification by described first image and with the similarity of described first image more than the image of the second pre-set threshold value.
There is provided a kind of device as above, described device also comprises:
Detecting unit, in real time or timing detect the size of the free space of described internal memory;
Judging unit, for judging whether the size of described free space is less than the first pre-set threshold value, and when being less than the first pre-set threshold value, determines to need to sort out picture and delete.
There is provided a kind of device as above, described device also comprises:
Scanning element, for after deleting other images in described same classification, scans the web cache in described internal memory and/or internal memory rubbish;
Described delete cells, also for deleting described web cache and/goods internal memory rubbish.
There is provided a kind of as above device, described detecting unit, also for scan and before deleting web cache and/or internal memory rubbish, the size of the free space of the described internal memory of detection;
Described judging unit, also for judging whether the size of described free space is less than described first threshold values, and determines that when the size in described space is less than described first threshold values needs execution scans and deletes the step of web cache and/or internal memory rubbish.
The method of the memory management that the present invention proposes and device, when detecting that the free space of internal memory is less than the first pre-set threshold value, can according to the similarity of the image stored in internal memory and sharpness, delete the not much higher remaining image of picture quality in the high image of similarity, can vacate redundant space can not make again user want the information dropout retained, add the accuracy of cleaning duplicate message, and can directly clear up the web cache in internal memory and/or internal memory rubbish, user is without the need to carrying out manual operation again, save the time of user, avoid manually operated consuming time.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
The process flow diagram of the method for a kind of memory management that Fig. 3 provides for first embodiment of the invention;
The process flow diagram of the method for the another kind of memory management that Fig. 4 second embodiment of the invention provides;
Fig. 5 is the schematic diagram of middle graphic collection embodiment illustrated in fig. 4 and deletion;
The modular structure schematic diagram of the device of a kind of memory management that Fig. 6 provides for third embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desk-top computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input block 120, user input unit 130, sensing cell 140, output unit 150, storer 160, interface unit 170, controller 180 and power supply unit 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the wireless communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receive digital broadcasting.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in storer 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (GPS).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating position and temporal information uses three satellites and by using the error of the position that goes out of an other satellite correction calculation and temporal information.In addition, GPS module 115 can carry out computing velocity information by Continuous plus current location information in real time.
A/V input block 120 is for audio reception or vision signal.A/V input block 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the still image obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in storer 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of sound signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power supply unit 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other coupling arrangement.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, sound signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input media and output unit.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific embodiment wanted, mobile terminal 100 can comprise two or more display units (or other display device), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in storer 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loudspeaker, hummer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Storer 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, storer 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of sound signal.
Storer 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type storer (such as, SD or DX storer etc.), random access storage device (RAM), static random-access memory (SRAM), ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, so that the handwriting input performed on the touchscreen or Image Rendering input are identified as character or image.
Power supply unit 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various embodiment described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, embodiment described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such embodiment can be implemented in controller 180.For implement software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in storer 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or Physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA) (TDMA), CDMA (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several GPS (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
First embodiment of the invention proposes a kind of method of memory management, and as shown in Figure 3, method flow comprises the steps:
S310, when detecting that the free space of internal memory is less than the first pre-set threshold value, the similarity according to the image stored in this internal memory is sorted out this image;
S320, the picture quality of often opening image in same classification to be analyzed;
S330, determine according to analysis result the image that in this same classification, picture quality is the highest, and delete other images in this same classification.
Concrete, the evaluation criterion of picture quality can comprise: the sharpness, resolution, color saturation of image, contrast, edge sharpness etc. of image, in practical application, in portrait figure, can also carry out eye closing and detect.Above-mentioned image quality evaluation standard can be evaluated separately, also can comprehensive evaluation.
Illustrate as follows:
1, when utilizing contrast evaluation map tablet quality, according to the gray-scale value of the whole pictures of all pixels statisticses of whole image, the difference of maximal value and minimum value can be calculated to obtain the value of contrast, preferably, a rational contrast range can be pre-set.
2, when utilizing edge sharpness evaluation map tablet quality, can process in units of n*n macro block, such as, 3*3 macro block, search in macro block and whether there is fast-changing edge, if do not find edge in first macro block, continue to search next block, until find edge, then calculate the acutance at this edge.
In practical application, above-mentioned each evaluation criterion can be arranged according to current environment or situation voluntarily by user, can also adopt system default value.
In practical application, the first pre-set threshold value can directly be arranged by its production firm, also can be arranged voluntarily by user.Preferably, can arrange this threshold values is 200M.When detecting that the free space of internal memory is less than 200M, now represent low memory to install other softwares and to receive comparatively large files, is the order that then trigger point removes to perform Delete superfluous image automatically with this, to vacate unnecessary storage space.
Can vacate redundant space by the image of the similarity Delete superfluous of detected image can not make again user want the information dropout retained, and has saved the time of user simultaneously, has avoided manually operated consuming time
In a preferred scheme, step S310 comprises:
Similarity Measure is carried out to unclassified first image in the image of this memory and other images unclassified;
Same classification is classified as more than the image of the second pre-set threshold value by this first image and with the similarity of this first image.
Concrete, the Similarity Measure of image refers to: give a mark for the similarity degree of content between two width images, judge the close degree of picture material according to the height of mark.
The Similarity Measure of image may be used for the acquisition of target location in the detecting and tracking in computer vision on the one hand, finds an immediate region with it in the picture according to existing template.Then follow always.More existing algorithms such as BlobTracking, Meanshift, Camshift, particle filter etc. is also all need the theory of this respect to go to support.May be used for the image retrieval of image content-based on the other hand, namely to scheme inspection figure, such as in the image data base of magnanimity, enumerated out some images mated most with it, ability embodiment can be understood as the application of Similarity Measure in the image retrieval of image content-based of image.
In the present embodiment, the Similarity Measure of image can be realized by following several method:
Method one, Histogram Matching algorithm
Such as, there is image A and image B, calculate the histogram (HistA, HistB) of two width images respectively, then calculate two histogrammic normalized correlation coefficients (as Pasteur's distance, histogram intersection distance) etc.
This thought be based on simple mathematical vector between difference carry out the tolerance of image similarity degree, this method is current a kind of many methods, the first, histogram can be good at normalization, such as common 256 bin bars.It is very convenient that the image that so two width resolution are different directly can calculate similarity by compute histograms.And calculated amount is smaller.
Method two, matrix decomposition algorithm
Due to an image inherently matrix, the algorithm of mathematically matrix decomposition (as VD decomposes and NMF decomposition) therefore can be relied on to obtain in matrix some some robust features similarities to image representing this matrix element value and distribution and to calculate.
Method three, the image similarity of distinguished point based calculates
Every piece image has oneself unique point (as Harris angle point and Sift unique point), these unique points can be important in token image some positions, the image angle point of two width images is compared, if similar angle point number is more, then think that the similarity degree of this two width image is higher.
The threshold values (the second pre-set threshold value) of a similarity can be set, when the similarity of two width images exceedes this threshold values, just can think that this two width image is similar, and be grouped into in a classification.
In a preferred scheme, the method also comprises:
In real time or timing detect the size of the free space of this internal memory;
Judge whether the size of this free space is less than the first pre-set threshold value, and when being less than the first pre-set threshold value, determine to need to sort out picture and delete.
Certainly, in practical application, also when installing new software or running existing software, can detect the size of the free space of internal memory, then judge whether current free space is enough to install new software or run existing software.
The EMS memory management process of the present embodiment, when detecting that the free space of internal memory is less than the first pre-set threshold value, can according to the similarity of the image stored in internal memory and picture quality, delete the not much higher remaining image of picture quality in the high image of similarity, can vacate redundant space can not make again user want the information dropout retained, and add the accuracy of cleaning duplicate message, and user is without the need to carrying out manual operation again, save the time of user, avoided manually operated consuming time.
First embodiment of the invention proposes the method for another kind of memory management, and as shown in Figure 4, method flow comprises:
S410, scan the internal memory of intelligent terminal, whether the free space detecting internal memory is less than 200M, if be less than 200M to perform step S420, otherwise etc. pendingly to scan next time;
S420, Similarity Measure is carried out to the image stored in the system of intelligent terminal, and the image of similarity more than 80% is classified as a class.
Concrete grammar is as follows:
When starting to sort out, the first image being carried out Similarity Measure with each pictures thereafter respectively, if the similarity of the similarity of certain pictures and this first image has exceeded 80%, then thinking this certain image and first image similarity.Then all images with the first image similarity and the first image are classified as a class.
After completing first time classification, in unclassified picture, repeat said process, until all images are all classified.
As shown in Figure 5, the similarity of three cups in figure has exceeded 80%, is classified as a class.
S430, the sharpness of often opening image calculated in same class image, and sort to the sharpness of each image, find out the image that sharpness is the highest, to delete in this classification other image simultaneously.
As shown in Figure 5, the sharpness of three images reduces successively, and the sharpness of the image of the leftmost side is the highest, and picture quality is best, therefore retains the image of the leftmost side, and deletes two other image.
Whether the free space of S440, scanning internal memory is less than 200M, if be less than 200M to perform step S450, otherwise etc. pendingly to scan next time.
S450, scanning the web cache deleted in internal memory.
Whether the free space of S460, scanning internal memory is less than 200M, if be less than 200M to perform step S470, otherwise etc. pendingly to scan next time.
S470, scanning the internal memory rubbish deleted in internal memory.
It should be noted that, in practical application, also after performing S430, directly can perform step S450 and/or S470, and without the need to carrying out Multiple-Scan.
The EMS memory management process of the present embodiment, when detecting that the free space of internal memory is less than the first pre-set threshold value, can according to the similarity of the image stored in internal memory and sharpness, delete the not much higher remaining image of image definition in the high image of similarity, can vacate redundant space can not make again user want the information dropout retained, add the accuracy of cleaning duplicate message, and can directly clear up the web cache in internal memory and/or internal memory rubbish, user is without the need to carrying out manual operation again, save the time of user, avoided manually operated consuming time.
On the basis of above-described embodiment, the embodiment of the present invention three provides a kind of device of memory management further.Refer to Fig. 6, device comprises:
Taxon 610, for when detecting that the free space of internal memory is less than the first pre-set threshold value, the similarity according to the image stored in this internal memory is sorted out this image;
Analytic unit 620, for analyzing the picture quality of often opening image in same classification;
Delete cells 630, for the image determining that according to analysis result in this same classification, picture quality is the highest, and deletes other images in this same classification.
Concrete, picture quality can be evaluated by the sharpness of image, respectively rate etc.
In a preferred scheme, this analytic unit 620 comprises:
Similarity calculation module, for carrying out Similarity Measure to unclassified first image in the image of this memory and other images unclassified;
Classifying module, for being classified as same classification by this first image and with the similarity of this first image more than the image of the second pre-set threshold value.
In a preferred scheme, this device also comprises:
Detecting unit 640, for in real time or timing detect the size of the free space of this internal memory, or for when installing new software or running existing software, detect the size of the free space of internal memory, then judge whether current free space is enough to install new software or run existing software;
Judging unit 650, for judging whether the size of this free space is less than the first pre-set threshold value, and when being less than the first pre-set threshold value, determines to need to sort out picture and delete.
In a preferred scheme, this device also comprises:
Scanning element 660, for after deleting other images in this same classification, scans the web cache in this internal memory and/or internal memory rubbish;
This delete cells 630, also for deleting this web cache and/goods internal memory rubbish.
It is preferred at one,
This detecting unit 640, also for scanning and before deleting web cache and/or internal memory rubbish, detecting the size of the free space of this internal memory;
This judging unit 650, for judging whether the size of this free space is less than this first threshold values, and determines that when the size in this space is less than this first threshold values needs execution scans and deletes the step of web cache and/or internal memory rubbish.
The device of the memory management of the present embodiment, when detecting that the free space of internal memory is less than the first pre-set threshold value, can according to the similarity of the image stored in internal memory and sharpness, delete the not much higher remaining image of image definition in the high image of similarity, can vacate redundant space can not make again user want the information dropout retained, add the accuracy of cleaning duplicate message, and can directly clear up the web cache in internal memory and/or internal memory rubbish, user is without the need to carrying out manual operation again, save the time of user, avoided manually operated consuming time.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, air conditioner, or the network equipment etc.) perform the method that each embodiment of the present invention is somebody's turn to do.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method for memory management, is characterized in that, described method comprises step:
When detecting that the free space of internal memory is less than the first pre-set threshold value, the similarity according to the image stored in described internal memory is sorted out described image;
The picture quality of often opening image in same classification is analyzed;
Determine according to analysis result the image that in described same classification, picture quality is the highest, and delete other images in described same classification.
2. method according to claim 1, is characterized in that, the similarity of the described image according to storing in described internal memory is sorted out described image, comprising:
Similarity Measure is carried out to unclassified first image in the image of described memory and other images unclassified;
Same classification is classified as more than the image of the second pre-set threshold value by described first image and with the similarity of described first image.
3. method according to claim 1 and 2, is characterized in that, described method also comprises:
In real time or timing detect the size of the free space of described internal memory;
Judge whether the size of described free space is less than the first pre-set threshold value, and when being less than the first pre-set threshold value, determine to need to sort out picture and delete.
4. method according to claim 3, is characterized in that, after deleting other images in described same classification, described method also comprises:
Scan and the web cache deleted in described internal memory and/or internal memory rubbish.
5. method according to claim 4, is characterized in that, is scanning and before deleting web cache and/or internal memory rubbish, described method also comprises:
Detect the size of the free space of described internal memory;
When judging that the size of described free space is less than described first threshold values, determine to need to perform described scanning and the step of deleting web cache and/or internal memory rubbish.
6. a device for memory management, is characterized in that, described device comprises:
Taxon, for when detecting that the free space of internal memory is less than the first pre-set threshold value, the similarity according to the image stored in described internal memory is sorted out described image;
Analytic unit, for analyzing the picture quality of often opening image in same classification;
Delete cells, for the image determining that according to analysis result in described same classification, picture quality is the highest, and deletes other images in described same classification.
7. device according to claim 2, is characterized in that, described analytic unit comprises:
Similarity calculation module, carries out Similarity Measure for unclassified first image in the image to described memory and other images unclassified;
Classifying module, for being classified as same classification by described first image and with the similarity of described first image more than the image of the second pre-set threshold value.
8. the device according to claim 6 or 7, is characterized in that, described device also comprises:
Detecting unit, in real time or timing detect the size of the free space of described internal memory;
Judging unit, for judging whether the size of described free space is less than the first pre-set threshold value, and when being less than the first pre-set threshold value, determines to need to sort out picture and delete.
9. device according to claim 8, is characterized in that, described device also comprises:
Scanning element, for after deleting other images in described same classification, scans the web cache in described internal memory and/or internal memory rubbish;
Described delete cells, also for deleting described web cache and/goods internal memory rubbish.
10. device according to claim 8, is characterized in that,
Described detecting unit, also for scanning and before deleting web cache and/or internal memory rubbish, detecting the size of the free space of described internal memory;
Described judging unit, also for judging whether the size of described free space is less than described first threshold values, and determines that when the size in described space is less than described first threshold values needs execution scans and deletes the step of web cache and/or internal memory rubbish.
CN201510642447.3A 2015-09-30 2015-09-30 A kind of management method of internal memory and device Pending CN105224409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510642447.3A CN105224409A (en) 2015-09-30 2015-09-30 A kind of management method of internal memory and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510642447.3A CN105224409A (en) 2015-09-30 2015-09-30 A kind of management method of internal memory and device

Publications (1)

Publication Number Publication Date
CN105224409A true CN105224409A (en) 2016-01-06

Family

ID=54993399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510642447.3A Pending CN105224409A (en) 2015-09-30 2015-09-30 A kind of management method of internal memory and device

Country Status (1)

Country Link
CN (1) CN105224409A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808677A (en) * 2016-03-01 2016-07-27 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN105844648A (en) * 2016-04-07 2016-08-10 上海斐讯数据通信技术有限公司 Hair quality detection device, hair quality detection method and mobile terminal
CN105872413A (en) * 2016-05-31 2016-08-17 成都德善能科技有限公司 Intelligent aerial photographing system
CN106528879A (en) * 2016-12-14 2017-03-22 北京小米移动软件有限公司 Picture processing method and device
CN106570110A (en) * 2016-10-25 2017-04-19 北京小米移动软件有限公司 De-overlapping processing method and apparatus of image
CN106657817A (en) * 2016-12-28 2017-05-10 杭州趣维科技有限公司 Processing method applied to mobile phone platform for automatically making album MV
WO2017177559A1 (en) * 2016-04-12 2017-10-19 中兴通讯股份有限公司 Image management method and apparatus
CN107918529A (en) * 2017-11-29 2018-04-17 广东欧珀移动通信有限公司 Image processing method and device, computer equipment, computer-readable recording medium
US9973647B2 (en) 2016-06-17 2018-05-15 Microsoft Technology Licensing, Llc. Suggesting image files for deletion based on image file parameters
CN112217940A (en) * 2020-08-28 2021-01-12 深圳市修远文化创意有限公司 Memory release method and related device
CN112507154A (en) * 2020-12-22 2021-03-16 哈尔滨师范大学 Information processing device
CN112866652A (en) * 2017-06-08 2021-05-28 三菱电机株式会社 Image information storage device
CN113838082A (en) * 2021-10-21 2021-12-24 平安普惠企业管理有限公司 Image processing method, device, equipment and storage medium
WO2022089621A1 (en) * 2020-10-31 2022-05-05 华为技术有限公司 Image frame storage method, photographing method, and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408061A (en) * 2014-10-29 2015-03-11 深圳市中兴移动通信有限公司 Photo album management method and device
CN104767933A (en) * 2015-03-13 2015-07-08 北京畅游天下网络技术有限公司 Portable digital equipment with photographing function and method for screening photos

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408061A (en) * 2014-10-29 2015-03-11 深圳市中兴移动通信有限公司 Photo album management method and device
CN104767933A (en) * 2015-03-13 2015-07-08 北京畅游天下网络技术有限公司 Portable digital equipment with photographing function and method for screening photos

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808677A (en) * 2016-03-01 2016-07-27 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN105844648A (en) * 2016-04-07 2016-08-10 上海斐讯数据通信技术有限公司 Hair quality detection device, hair quality detection method and mobile terminal
WO2017177559A1 (en) * 2016-04-12 2017-10-19 中兴通讯股份有限公司 Image management method and apparatus
CN105872413A (en) * 2016-05-31 2016-08-17 成都德善能科技有限公司 Intelligent aerial photographing system
US9973647B2 (en) 2016-06-17 2018-05-15 Microsoft Technology Licensing, Llc. Suggesting image files for deletion based on image file parameters
CN112770011B (en) * 2016-06-17 2023-06-20 微软技术许可有限责任公司 System, method, and computer-readable medium for suggesting image files for deletion
CN112770011A (en) * 2016-06-17 2021-05-07 微软技术许可有限责任公司 Suggesting image files for deletion based on image file parameters
CN106570110A (en) * 2016-10-25 2017-04-19 北京小米移动软件有限公司 De-overlapping processing method and apparatus of image
CN106528879A (en) * 2016-12-14 2017-03-22 北京小米移动软件有限公司 Picture processing method and device
CN106657817A (en) * 2016-12-28 2017-05-10 杭州趣维科技有限公司 Processing method applied to mobile phone platform for automatically making album MV
CN112866652A (en) * 2017-06-08 2021-05-28 三菱电机株式会社 Image information storage device
CN112866652B (en) * 2017-06-08 2024-05-17 三菱电机株式会社 Image information storage device
CN107918529A (en) * 2017-11-29 2018-04-17 广东欧珀移动通信有限公司 Image processing method and device, computer equipment, computer-readable recording medium
CN112217940A (en) * 2020-08-28 2021-01-12 深圳市修远文化创意有限公司 Memory release method and related device
CN112217940B (en) * 2020-08-28 2021-12-24 波克科技股份有限公司 Memory release method and related device
WO2022089621A1 (en) * 2020-10-31 2022-05-05 华为技术有限公司 Image frame storage method, photographing method, and electronic device
CN112507154A (en) * 2020-12-22 2021-03-16 哈尔滨师范大学 Information processing device
CN113838082A (en) * 2021-10-21 2021-12-24 平安普惠企业管理有限公司 Image processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105224409A (en) A kind of management method of internal memory and device
CN104750420A (en) Screen capturing method and device
CN104915141A (en) Method and device for previewing object information
CN104731453A (en) Method and device for adjusting colors of terminal icon texts
CN104932817A (en) Terminal side frame inductive interaction method and device
CN104935747A (en) Processing method and device for application icon, and terminal
CN105095733A (en) Screen display method and mobile terminal
CN104731480A (en) Image display method and device based on touch screen
CN104731927A (en) Sound recording file classifying method and system
CN104793929A (en) User-defined method and device for application interface display information
CN104951549A (en) Mobile terminal and photo/video sort management method thereof
CN105244954A (en) Double-battery charging method and device for mobile terminal
CN104915111A (en) Method and device for operating and controlling terminal
CN105162960A (en) Photographing device and method of frameless mobile terminal
CN104820555A (en) Transverse and vertical screen modes switching method and device, and terminal
CN104679890A (en) Image pushing method and device
CN104881218A (en) Mobile terminal screen scrolling method and mobile terminal screen scrolling device
CN104881219A (en) Mobile terminal, and frame auxiliary input method and frame auxiliary input device thereof
CN104932894A (en) Method and terminal for managing similar applications
CN104898940A (en) Picture processing method and device
CN105245703A (en) Mobile terminal and method for storing files in classification way
CN104777982A (en) Method and device for switching terminal input method
CN105227829A (en) Preview picture device and its implementation
CN107066604A (en) A kind of cleaning garbage files method and terminal
CN105094543A (en) Method and apparatus for inputting operation instruction of terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160106