CN108121762A - A kind of image processing method, mobile terminal and computer storage media - Google Patents

A kind of image processing method, mobile terminal and computer storage media Download PDF

Info

Publication number
CN108121762A
CN108121762A CN201711194960.6A CN201711194960A CN108121762A CN 108121762 A CN108121762 A CN 108121762A CN 201711194960 A CN201711194960 A CN 201711194960A CN 108121762 A CN108121762 A CN 108121762A
Authority
CN
China
Prior art keywords
picture
target photo
finger print
mobile terminal
information
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
CN201711194960.6A
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 CN201711194960.6A priority Critical patent/CN108121762A/en
Publication of CN108121762A publication Critical patent/CN108121762A/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/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour

Abstract

The embodiment of the invention discloses a kind of image processing method, mobile terminal and computer storage media, the image processing method includes:Obtain Target Photo to be saved;The Target Photo is handled using default mode, generates the finger print information of the Target Photo;When finding picture classification matched with the finger print information according to the finger print information, the Target Photo is referred in the picture classification.The embodiment of the present invention can realize the Fast Classification to picture, consequently facilitating subsequently carrying out cleaning operation to picture, not only save the time, and improve picture treatment effeciency, improve user experience.

Description

A kind of image processing method, mobile terminal and computer storage media
Technical field
The present invention relates to a kind of electronic technology field more particularly to image processing method, mobile terminal and computers to deposit Storage media.
Background technology
With the continuous development of mobile terminal, taken pictures increasingly convenient by mobile terminal and popularized.
Since the memory capacity of mobile terminal is limited, people usually require to clear up the picture inside mobile terminal, Particularly with similar or identical picture.In current techniques, the form of generally use whole scan, by scanning all figures Piece, judges whether same or similar, is provided to user and makes choice.The mode of this whole scan, not only consumes It is time-consuming, while also bring along the increase of mobile terminal power consumption so that it is less efficient.
The content of the invention
The embodiment of the present invention provides a kind of image processing method, mobile terminal and computer storage media, can be quick It realizes the classification processing of picture, is convenient for picture cleaning, improves treatment effeciency.
First aspect of the embodiment of the present invention provides a kind of image processing method, applied to mobile terminal, including:
Obtain Target Photo to be saved;
The Target Photo is handled using default mode, generates the finger print information of the Target Photo;
When finding picture classification matched with the finger print information according to the finger print information, by the Target Photo It is referred in the picture classification.
Optionally, it is described to obtain Target Photo to be saved, including:
Obtain the picture of the camera shooting of the mobile terminal;
Or the picture of other equipment transmission is obtained by default connection mode;
Or from default application program download pictures.
Optionally, it is described that the Target Photo is handled using default mode, generate the finger of the Target Photo Line information, including:
Generate the thumbnail of the Target Photo;
Gray proces are carried out to the thumbnail, obtain gray scale picture;
The cryptographic Hash of the gray scale picture is calculated, using the cryptographic Hash as the finger print information of the Target Photo.
Optionally, the thumbnail of the generation Target Photo, including:
Obtain the performance information of the mobile terminal;
The attribute information of thumbnail is determined according to the performance information, the attribute information includes size and compression ratio;
The step of thumbnail for generating the Target Photo is performed according to the attribute information.
Optionally, it is described that gray proces are carried out to the thumbnail, gray scale picture is obtained, including:
Obtain the color component information of each pixel on the thumbnail;
The color component information is handled using default formula, the default formula includes:
Y=0.3R+0.59G+0.11B, wherein, the Y be the gray scale picture gray component information, described R, G, B For the color component information of the thumbnail.
Optionally, it is described when finding pictures matched with the finger print information according to the finger print information, by institute Target Photo is stated to be referred in the pictures, including:
If the difference of the finger print information of the other finger print information of picture category and the Target Photo in predetermined threshold value, Determine that the picture classification is matched with the finger print information of the Target Photo;
Obtain the other label information of the picture category;
The label information is added to the Target Photo;
The Target Photo with the finger print information is associated, and is stored in the mobile terminal.
Optionally, the method further includes:
Picture with the Target Photo identical category is obtained according to the label information of the Target Photo;
Parse the characteristic value of the picture;
The picture according to characteristic value is ranked up and exports ranking results.
Optionally, the method further includes:
When the memory space of the mobile terminal is more than default size, deleted according to the ranking results described mutually similar Picture in other picture;
Or
Synthesis processing is carried out to the picture of the identical category, generate synthesising picture and deletes the figure of the identical category Piece.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, and the mobile terminal includes processor and storage Device;
The memory is used to store executable program;
The processor is used to perform the executable program to realize image processing method described above.
The third aspect of the embodiment of the present invention provides a kind of computer storage media, which is characterized in that the computer is deposited Executable program is stored on storage media, to realize picture processing side as described above when the executable program is performed Method.
Implement the embodiment of the present invention, have the advantages that:
Image processing method, mobile terminal and computer storage media in the embodiment of the present invention, by to be stored Picture handled, obtain the finger print information of picture, can realize the Fast Classification to picture, consequently facilitating subsequently to picture Cleaning operation is carried out, not only saves the time, and improves picture treatment effeciency, improves user experience.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is the structure diagram of the wireless communication system of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of image processing method first embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of method flow diagram of image processing method second embodiment provided in an embodiment of the present invention.
Fig. 5 is a kind of method flow diagram of image processing method 3rd embodiment provided in an embodiment of the present invention.
Fig. 6 is a kind of method flow diagram of image processing method fourth embodiment provided in an embodiment of the present invention.
Fig. 7 is a kind of structure diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention. In subsequent description, using for representing the suffix of such as " module ", " component " or " unit " of element only for being conducive to The explanation of the present invention, itself does not have specific meaning.Therefore, " module ", " component " or " unit " can be used mixedly.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.It will be said in subsequent descriptions by taking mobile terminal as an example It is bright, it will be appreciated by those skilled in the art that in addition to being used in particular for the element of mobile purpose, embodiment party according to the present invention The construction of formula can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components, Either combine some components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates Frequency unit 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication Standard or agreement include but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can be according to need It to be omitted in the scope of essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotypes, by radio frequency unit 101 or WiFi module 102 it is receiving or The voice data stored in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio that treated (voice) data can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be employed Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for the number for receiving input or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can To realize touch panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc. One or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) be connected with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also be included to the power supply 111 (such as battery) of all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system It unites as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 is with can providing the IP of UE201 Location is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making Point, it selects and provides available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Fig. 3 show a kind of method flow diagram of image processing method first embodiment provided in an embodiment of the present invention.It should Image processing method is applied to mobile terminal, and the mobile terminal can be Fig. 1 or mobile terminal shown in Fig. 2.This implementation In example, which comprises the following steps S301-S303.
In step S301, Target Photo to be saved is obtained.
Specifically, the Target Photo for needing to preserve is obtained first.The Target Photo may come from taking the photograph for mobile terminal As head shoots to obtain, for example, opening the camera function of mobile terminal, after taken pictures, then Target Photo is obtained automatically; The Target Photo can also obtain the picture that other equipment is sent by default connection mode, for example pass through wifi or indigo plant The modes such as tooth receive;The Target Photo can also originate from mobile terminal and is downloaded by default application program, such as It is downloaded in the application programs such as wechat, microblogging.
In step s 302, the Target Photo is handled using default mode, generates the Target Photo Finger print information.
Specifically, after Target Photo is got, Target Photo is handled accordingly, generates Target Photo Finger print information.Wherein, the finger print information is used to characterize the individual features of the Target Photo.
In step S303, when finding picture classification matched with the finger print information according to the finger print information, The Target Photo is referred in the picture classification.
Specifically, according to the finger print information of generation, search in the memory of mobile terminal and whether there is and the finger print information Matched picture when there is picture classification matched with the finger print information, picture is sorted out, so as to complete the fast of picture Speed classification.
Above-mentioned to understand, the image processing method in the embodiment of the present invention by handling picture to be stored, obtains The finger print information of picture can realize the Fast Classification to picture, consequently facilitating subsequently carrying out cleaning operation to picture, not only save The time has been saved, and has improved picture treatment effeciency, has improved user experience.
Fig. 4 show a kind of method flow diagram of image processing method second embodiment provided in an embodiment of the present invention.It is right Than first embodiment shown in Fig. 3, in the present embodiment, how which generates finger print information if further comprising The step of, which comprises the following steps S401-S405.
In step S401, Target Photo to be saved is obtained.
In step S402, the thumbnail of the Target Photo is generated.
Specifically, when handling picture, the thumbnail of picture is firstly generated.Wherein, thumbnail refers to picture The picture obtained afterwards is compressed using certain compression ratio.In the present embodiment, default compression ratio may be employed and pressed Contracting, the default compression ratio can be set previously according to the memory space of mobile terminal.
In other embodiments, before the thumbnail of the generation Target Photo, can further include:
Obtain the performance information of the mobile terminal;The attribute information of thumbnail is determined according to the performance information, it is described Attribute information includes size and compression ratio.Wherein, performance information refers to the processor of mobile terminal and the phase of running memory Information is closed, processing time of the mobile terminal in picture processing procedure is determined, when performance is higher, higher pressure can be set Contracting ratio, so as to improve treatment effeciency.The attribute information of thumbnail is being determined and then institute is generated according to the attribute information State the thumbnail of Target Photo.
In step S403, gray proces are carried out to the thumbnail, obtain gray scale picture.
Specifically, after thumbnail is generated, gray proces are carried out to thumbnail, obtain corresponding gray scale picture.This In step, various ways may be employed in the mode of generation gray scale picture, and the embodiment of the present invention is not limited.
In the present embodiment, such a way can be taken to carry out:
Obtain the color component information of each pixel on the thumbnail;
The color component information is handled using default formula, the default formula includes:
Y=0.3R+0.59G+0.11B, wherein, the Y be the gray scale picture gray component information, described R, G, B For the color component information of the thumbnail.
In step s 404, the cryptographic Hash of the gray scale picture is calculated, using the cryptographic Hash as the Target Photo Finger print information.
Specifically, after gray scale picture is obtained, the cryptographic Hash of gray scale picture is calculated.Those skilled in the art can manage Solution, calculate cryptographic Hash method can there are many, the present embodiment is not limited thereto.
In step S405, when finding picture classification matched with the finger print information according to the finger print information, The Target Photo is referred in the picture classification.
Above-mentioned to understand, the image processing method in the embodiment of the present invention by handling picture to be stored, obtains The finger print information of picture can realize the Fast Classification to picture, consequently facilitating subsequently carrying out cleaning operation to picture, not only save The time has been saved, and has improved picture treatment effeciency, has improved user experience.
Fig. 5 show a kind of method flow diagram of image processing method 3rd embodiment provided in an embodiment of the present invention.It is right Than Fig. 3 or shown in Fig. 4 embodiments, in present embodiment, the step of how sorting out to picture is further comprised, the figure Piece processing method comprises the following steps S501-S507.It is understood that the step of how being sorted out in the present embodiment also may be used To apply in embodiment shown in Fig. 3.
In step S501, Target Photo to be saved is obtained.
In step S502, the Target Photo is handled using default mode, generates the Target Photo Finger print information.
In step S503, picture classification is searched according to the finger print information.
Specifically, after finger print information is generated, picture saved in mobile terminal is searched according to finger print information Classification.
In step S504, if the other finger print information of the picture category and the difference of the finger print information of the Target Photo exist In predetermined threshold value, it is determined that the picture classification is matched with the finger print information of the Target Photo.
Specifically, when the finger print information difference of the other finger print information of picture category and Target Photo is in predetermined threshold value, it can To think Target Photo at this time and the picture categorical match.Wherein, the predetermined threshold value can be pre-set, and predetermined threshold value is got over Small, matching is more accurate.When Target Photo and picture categorical match, Target Photo is approximate with picture classification at this time on surface, fingerprint Information gap is smaller, and surface degree of approximation is higher.
In step S505, the other label information of the picture category is obtained.
Specifically, it obtains and the other label information of the matched picture category of Target Photo.
In step S506, the label information is added to the Target Photo.
Specifically, according to the label information, label information is added to the Target Photo, in order to subsequently to the place of picture Reason.
In step s 507, the Target Photo with the finger print information is associated, and be stored in the mobile terminal.
Above-mentioned to understand, the image processing method in the embodiment of the present invention by handling picture to be stored, obtains The finger print information of picture finds the Fast Classification that can be realized to picture with Target Photo according to finger print information, so as to just In subsequently carrying out cleaning operation to picture, the time is not only saved, and improves picture treatment effeciency, improves user's body It tests.
Fig. 6 show a kind of method flow diagram of image processing method fourth embodiment provided in an embodiment of the present invention.It is right Than the embodiment shown in Fig. 3-Fig. 5, in present embodiment, the step of how handling picture further comprised.Picture processing Method comprises the following steps S601-S606.It is understood that equally may be used the step of being further processed picture in the present embodiment To apply in the embodiment shown in Fig. 3-Fig. 5.
In step s 601, Target Photo to be saved is obtained.
In step S602, the Target Photo is handled using default mode, generates the Target Photo Finger print information.
In step S603, when finding picture classification matched with the finger print information according to the finger print information, The Target Photo is referred in the picture classification.
In step s 604, the figure with the Target Photo identical category is obtained according to the label information of the Target Photo Piece.
Specifically, after Target Photo is referred to picture classification, Target Photo can be added according to the picture classification Add corresponding label.When needing to clear up the picture in mobile terminal, according to the label information of the Target Photo, obtain with it is described The picture of Target Photo identical category.At this point, according to label information, can find and the same category of figure of the Target Photo Piece is found and the approximate picture of the Target Photo.It is understood that the quantity of the picture can be multiple.For example, When user is using continuous shooting shooting photo, all it is mutually approximate between the multiple pictures of continuous shooting, one kind can be classified as;When user adopts When being preserved picture with wechat or sent picture, picture may all be preserved in multiple files, and resolution sizes It is different, at this point, this multiple picture is also approximate mutually, one kind can be classified as.In the present embodiment, by according to Target Photo Label information, can realize the quick picture found with Target Photo identical category, improve search efficiency.
In step s 605, the characteristic value of the picture is parsed.
Specifically, after all pictures with Target Photo identical category are got, all pictures are parsed, Obtain the characteristic value of picture.Wherein, the characteristic value refers to the relevant parameter of picture, and it is big that the parameter includes clarity, picture Small, user preference etc..The characteristic value can be preset, and can also be analyzed automatically.
In step S606, the picture according to characteristic value is ranked up and exports ranking results.
Specifically, according to characteristic value from big to small, all close pictures are ranked up and export ranking results.Institute Stating ordering structure can be illustrated on the display interface of the mobile terminal, be checked for user, and user can be according to ranking results It is screened, deletes the picture that characteristic value is relatively low or user does not like, save corresponding memory space.
In other embodiments, the step of clearing up photo can also be by mobile terminal automated execution.When mobile terminal When memory space is more than default size, the picture in the picture of the identical category can be deleted according to the ranking results.Its In, it is preferential to delete the relatively low picture of characteristic value when carrying out delete operation.
In other embodiments, in order to retain the correlation properties of every pictures, mobile terminal can be to described mutually similar Other picture carries out synthesis processing, generates synthesising picture and deletes the picture of the identical category, so that on different pictures Subtle can almost be retained on the synthesising picture of generation.
Above-mentioned to understand, the image processing method in the embodiment of the present invention by handling picture to be stored, obtains The finger print information of picture finds the Fast Classification that can be realized to picture with Target Photo, follow-up according to finger print information Cleaning operation can be carried out to picture, not only save time, Er Qieti with the approximate photo of Target Photo, convenience in order to search High picture treatment effeciency, improves user experience.
Fig. 7 show a kind of structure diagram of mobile terminal provided in an embodiment of the present invention.It is as shown in fig. 7, mobile whole End include processor 701 (quantity of the processor 701 in terminal can one or more, Fig. 7 is by taking a processor as an example) with And memory 702.In an embodiment of the present invention, processor 701, memory 702 can by bus or other means connection, In, in Fig. 7 exemplified by being connected by bus.
Wherein, executable program is stored in memory 702, processor 701 performs the executable program to realize such as Lower step:
Obtain Target Photo to be saved;
The Target Photo is handled using default mode, generates the finger print information of the Target Photo;
When finding picture classification matched with the finger print information according to the finger print information, by the Target Photo It is referred in the picture classification.
Optionally, the processor 701 obtains Target Photo to be saved, including:
Obtain the picture of the camera shooting of the mobile terminal;
Or the picture of other equipment transmission is obtained by default connection mode;
Or from default application program download pictures.
Optionally, the processor 701 is handled the Target Photo using default mode, generates the target The finger print information of picture, including:
Generate the thumbnail of the Target Photo;
Gray proces are carried out to the thumbnail, obtain gray scale picture;
The cryptographic Hash of the gray scale picture is calculated, using the cryptographic Hash as the finger print information of the Target Photo.
Optionally, the processor 701 generates the thumbnail of the Target Photo, including:
Obtain the performance information of the mobile terminal;
The attribute information of thumbnail is determined according to the performance information, the attribute information includes size and compression ratio;
The step of thumbnail for generating the Target Photo is performed according to the attribute information.
Optionally, the processor 701 carries out gray proces to the thumbnail, obtains gray scale picture, including:
Obtain the color component information of each pixel on the thumbnail;
The color component information is handled using default formula, the default formula includes:
Y=0.3R+0.59G+0.11B, wherein, the Y be the gray scale picture gray component information, described R, G, B For the color component information of the thumbnail.
Optionally, the processor 701 is worked as and is found and the matched picture of the finger print information according to the finger print information During collection, the Target Photo is referred in the pictures, including:
If the difference of the finger print information of the other finger print information of picture category and the Target Photo in predetermined threshold value, Determine that the picture classification is matched with the finger print information of the Target Photo;
Obtain the other label information of the picture category;
The label information is added to the Target Photo;
The Target Photo with the finger print information is associated, and is stored in the mobile terminal.
Optionally, the processor 701 is additionally operable to:
Picture with the Target Photo identical category is obtained according to the label information of the Target Photo;
Parse the characteristic value of the picture;
The picture according to characteristic value is ranked up and exports ranking results.
Optionally, the processor 701 is additionally operable to:
When the memory space of the mobile terminal is more than default size, deleted according to the ranking results described mutually similar Picture in other picture;
Or
Synthesis processing is carried out to the picture of the identical category, generate synthesising picture and deletes the figure of the identical category Piece.
Above-mentioned to understand, the mobile terminal in the embodiment of the present invention by handling picture to be stored, obtains picture Finger print information, can realize the Fast Classification to picture, consequently facilitating subsequently to picture carry out cleaning operation, not only save Time, and picture treatment effeciency is improved, improve user experience.
The embodiment of the present invention additionally provides a kind of computer storage media, and the computer storage media is stored with executable Program, the executable program realize following steps when being performed:
Obtain Target Photo to be saved;
The Target Photo is handled using default mode, generates the finger print information of the Target Photo;
When finding picture classification matched with the finger print information according to the finger print information, by the Target Photo It is referred in the picture classification.
Optionally, the executable program can also be used to perform to realize image processing method as shown in figures 3 to 6, This is not repeated.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of image processing method, applied to mobile terminal, which is characterized in that including:
Obtain Target Photo to be saved;
The Target Photo is handled using default mode, generates the finger print information of the Target Photo;
When finding picture classification matched with the finger print information according to the finger print information, the Target Photo is sorted out Into the picture classification.
2. image processing method as described in claim 1, which is characterized in that it is described to obtain Target Photo to be saved, including:
Obtain the picture of the camera shooting of the mobile terminal;
Or the picture of other equipment transmission is obtained by default connection mode;
Or from default application program download pictures.
3. image processing method as described in claim 1, which is characterized in that described to use default mode to the target figure Piece is handled, and generates the finger print information of the Target Photo, including:
Generate the thumbnail of the Target Photo;
Gray proces are carried out to the thumbnail, obtain gray scale picture;
The cryptographic Hash of the gray scale picture is calculated, using the cryptographic Hash as the finger print information of the Target Photo.
4. image processing method as claimed in claim 3, which is characterized in that the thumbnail of the generation Target Photo, Including:
Obtain the performance information of the mobile terminal;
The attribute information of thumbnail is determined according to the performance information, the attribute information includes size and compression ratio;
The step of thumbnail for generating the Target Photo is performed according to the attribute information.
5. image processing method as claimed in claim 3, which is characterized in that it is described that gray proces are carried out to the thumbnail, Gray scale picture is obtained, including:
Obtain the color component information of each pixel on the thumbnail;
The color component information is handled using default formula, the default formula includes:
Y=0.3R+0.59G+0.11B, wherein, the Y is the gray component information of the gray scale picture, and described R, G, B are institute State the color component information of thumbnail.
6. such as claim 1-5 any one of them image processing methods, which is characterized in that described when according to the finger print information When finding pictures matched with the finger print information, the Target Photo is referred in the pictures, including:
If the difference of the finger print information of the other finger print information of picture category and the Target Photo is in predetermined threshold value, it is determined that The picture classification is matched with the finger print information of the Target Photo;
Obtain the other label information of the picture category;
The label information is added to the Target Photo;
The Target Photo with the finger print information is associated, and is stored in the mobile terminal.
7. image processing method as claimed in claim 6, which is characterized in that the method further includes:
Picture with the Target Photo identical category is obtained according to the label information of the Target Photo;
Parse the characteristic value of the picture;
The picture according to characteristic value is ranked up and exports ranking results.
8. image processing method as claimed in claim 7, which is characterized in that the method further includes:
When the memory space of the mobile terminal is more than default size, the identical category is deleted according to the ranking results Picture in picture;
Or
Synthesis processing is carried out to the picture of the identical category, generate synthesising picture and deletes the picture of the identical category.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor and memory;
The memory is used to store executable program;
The processor is used to perform the executable program to realize such as claim 1-8 any one of them pictures processing side Method.
10. a kind of computer storage media, which is characterized in that executable program, institute are stored on the computer storage media It states when executable program is performed to realize such as claim 1-8 any one of them image processing methods.
CN201711194960.6A 2017-11-24 2017-11-24 A kind of image processing method, mobile terminal and computer storage media Pending CN108121762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711194960.6A CN108121762A (en) 2017-11-24 2017-11-24 A kind of image processing method, mobile terminal and computer storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711194960.6A CN108121762A (en) 2017-11-24 2017-11-24 A kind of image processing method, mobile terminal and computer storage media

Publications (1)

Publication Number Publication Date
CN108121762A true CN108121762A (en) 2018-06-05

Family

ID=62227882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711194960.6A Pending CN108121762A (en) 2017-11-24 2017-11-24 A kind of image processing method, mobile terminal and computer storage media

Country Status (1)

Country Link
CN (1) CN108121762A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408184A (en) * 2018-10-29 2019-03-01 努比亚技术有限公司 A kind of icon processing method, mobile terminal and computer storage medium
CN110188215A (en) * 2019-05-24 2019-08-30 无线生活(杭州)信息科技有限公司 A kind of processing method and processing device of application build
CN110377772A (en) * 2019-06-26 2019-10-25 华为技术有限公司 A kind of content search method, relevant device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290634A (en) * 2008-06-03 2008-10-22 北京搜狗科技发展有限公司 Method for recognizing repeated miniature, device and its uses in search engine
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
CN104809198A (en) * 2015-04-23 2015-07-29 北京奇虎科技有限公司 Picture cleanup method, picture cleanup device and terminal device
CN105912643A (en) * 2016-04-08 2016-08-31 浙江理工大学 Image retrieval method based on content improved Average Hash
CN106326908A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Picture management method and apparatus, and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290634A (en) * 2008-06-03 2008-10-22 北京搜狗科技发展有限公司 Method for recognizing repeated miniature, device and its uses in search engine
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, server, device and system for photo sort management
CN104809198A (en) * 2015-04-23 2015-07-29 北京奇虎科技有限公司 Picture cleanup method, picture cleanup device and terminal device
CN106326908A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Picture management method and apparatus, and terminal equipment
CN105912643A (en) * 2016-04-08 2016-08-31 浙江理工大学 Image retrieval method based on content improved Average Hash

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚永明 等: ""关于对图像哈希算法的研究与应用"", 《西安文理学院学报(自然科学版)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408184A (en) * 2018-10-29 2019-03-01 努比亚技术有限公司 A kind of icon processing method, mobile terminal and computer storage medium
CN110188215A (en) * 2019-05-24 2019-08-30 无线生活(杭州)信息科技有限公司 A kind of processing method and processing device of application build
CN110377772A (en) * 2019-06-26 2019-10-25 华为技术有限公司 A kind of content search method, relevant device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108234295A (en) Display control method, terminal and the computer readable storage medium of group's functionality controls
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN107707450A (en) A kind of method, apparatus and computer-readable recording medium for transmitting file
CN107229390A (en) A kind of desktop icons aligning method, mobile terminal and computer-readable recording medium
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN108241752A (en) Photo display methods, mobile terminal and computer readable storage medium
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN108172161A (en) Display methods, mobile terminal and computer readable storage medium based on flexible screen
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN108170348A (en) A kind of thumbnail method for previewing, equipment and computer readable storage medium
CN107678625A (en) Information Sharing menu display method, mobile terminal and computer-readable recording medium
CN108121762A (en) A kind of image processing method, mobile terminal and computer storage media
CN108062241A (en) A kind of switching method of display interface, terminal and storage medium
CN107563316A (en) A kind of image pickup method, terminal and computer-readable recording medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN107360376A (en) A kind of image pickup method and terminal
CN107391593A (en) A kind of document handling method, mobile terminal and computer-readable recording medium
CN107368253A (en) Picture Zoom display method, mobile terminal and storage medium
CN107241394A (en) A kind of log transmission method, device and computer-readable recording medium
CN109947523A (en) Replicate method of attaching, terminal and computer readable storage medium
CN109194712A (en) Photo method for pushing, mobile terminal and computer readable storage medium
CN108495033A (en) One kind is taken pictures regulation and control method, equipment and computer readable storage medium
CN107340909A (en) A kind of image processing method, equipment and computer-readable recording medium
CN108183833A (en) A kind of response processing method, device and computer readable storage medium

Legal Events

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

Application publication date: 20180605