CN107357527B - Photo processing method and device, storage medium and electronic equipment - Google Patents

Photo processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107357527B
CN107357527B CN201710535725.4A CN201710535725A CN107357527B CN 107357527 B CN107357527 B CN 107357527B CN 201710535725 A CN201710535725 A CN 201710535725A CN 107357527 B CN107357527 B CN 107357527B
Authority
CN
China
Prior art keywords
photo
instant messaging
photos
messaging tool
stored
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.)
Active
Application number
CN201710535725.4A
Other languages
Chinese (zh)
Other versions
CN107357527A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710535725.4A priority Critical patent/CN107357527B/en
Publication of CN107357527A publication Critical patent/CN107357527A/en
Application granted granted Critical
Publication of CN107357527B publication Critical patent/CN107357527B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation

Abstract

The invention provides a photo processing method, a photo processing device, a storage medium and electronic equipment, which are used for acquiring a photo received in an instant messaging tool; storing the photo in a cache; calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model; and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage. The electronic equipment can self-learn the photo types which are usually downloaded and stored by the user, so that whether the photo currently received by the instant messaging tool is the type which needs to be downloaded and stored or not is intelligently analyzed, and if the photo is the type which needs to be downloaded and stored, the photo is automatically downloaded and stored. The whole process does not need manual operation of a user, is operated in a full-intelligent mode, and is humanized.

Description

Photo processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for processing a photo, a storage medium, and an electronic device.
Background
In recent years, with the rapid development and increasingly widespread use of computer technology, there has naturally been raised a problem that human intellectual activities cannot be realized by a computer. For decades, computers have been regarded as machines that can only compute numbers very quickly, skillfully, and accurately. However, the problems to be solved in the world today are not all numerical calculations, such as language understanding and translation, graphic and sound recognition, decision management, etc. This requires that the computer be able to extend from "data processing" to the category of also being able to "knowledge processing". The transformation of the computer power category is an important factor leading to the rapid development of "artificial intelligence".
That is, Artificial Intelligence (AI) is a rule for studying human intelligence activities, and an artificial system with certain intelligence is constructed to study how to let a computer complete the work which needs human intelligence to be sufficient in the past, that is, to study how to use software and hardware of the computer to simulate the basic theory, method and technology of human intelligence behaviors.
Disclosure of Invention
The embodiment of the invention provides a photo processing method and device, a storage medium and electronic equipment, which can automatically analyze whether a photo received by an instant messaging tool is a photo needing to be stored or not, automatically download and store the photo if the photo needs to be stored, do not need manual operation of a user in the whole process, operate in a full-intelligent mode and are humanized.
In a first aspect, an embodiment of the present invention provides a photo processing method, including:
acquiring a photo received in an instant messaging tool;
storing the photo in a cache;
calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model;
and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage.
In a second aspect, an embodiment of the present invention further provides a photo processing apparatus, including:
the photo acquisition module is used for acquiring photos received in the instant messaging tool;
the temporary storage module is used for storing the photos in a cache;
the analysis module is used for calling a preset database model and carrying out character analysis on the photo by utilizing the characteristic information of the target character image in the preset database model;
and the transfer module is used for transferring the photo from the cache to a memory for storage if the photo is analyzed to be the photo needing to be stored.
In a third aspect, an embodiment of the present invention further provides a storage medium storing a computer program for photo processing, where the computer program causes a computer to execute the photo processing method as described above.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, where the processor and the memory are connected through a bus; the memory is used for storing a group of program codes, and the processor is used for calling the program codes stored in the memory and executing the following operations:
acquiring a photo received in an instant messaging tool;
storing the photo in a cache;
calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model;
and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage.
According to the photo processing method and device, the storage medium and the electronic device, the photo received in the instant messaging tool is obtained; storing the photo in a cache; calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model; and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage. The electronic equipment can self-learn the photo types which are usually downloaded and stored by the user, so that whether the photo currently received by the instant messaging tool is the type which needs to be downloaded and stored or not is intelligently analyzed, and if the photo is the type which needs to be downloaded and stored, the photo is automatically downloaded and stored. The whole process does not need manual operation of a user, is operated in a full-intelligent mode, and is humanized.
Drawings
Fig. 1 is a scene schematic diagram of a photo processing method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of an implementation of the photo processing method according to the embodiment of the present invention.
Fig. 3 is a schematic diagram of an implementation process for building a database model according to an embodiment of the present invention.
Fig. 4 is a schematic flow chart of another implementation of the photo processing method according to the embodiment of the present invention.
Fig. 5 is a schematic diagram of a receiving interface of the instant messaging tool according to the embodiment of the present invention.
FIG. 6 is a block diagram of a photo processing apparatus according to an embodiment of the present invention.
Fig. 7 is a detailed block diagram of a photo processing apparatus according to an embodiment of the present invention.
Fig. 8 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements throughout, the principles of the present invention are illustrated in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
While the principles of the invention have been described in the foregoing context, which is not intended to be limiting, those of ordinary skill in the art will appreciate that various of the steps and operations described below may also be implemented in hardware. The principles of the present invention are operational with numerous other general purpose or special purpose computing, communication environments or configurations.
At present, when other users send photos to an owner user communication group through an instant messaging tool, the owner user needs to check which sent photos need to be saved, and for the photos needing to be saved, the owner user needs to manually click to download the photos so as to save the photos into corresponding folders, so that the current operation is not intelligent. Accordingly, embodiments of the present invention may be overcome by the following implementations.
Referring to fig. 1, an embodiment of the invention provides a photo processing method, including: the electronic equipment self-learns the photo types which are normally downloaded and stored by a user so as to establish a database model; when the instant messaging tool receives the photo; storing the photo in a cache; calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model; and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage. Therefore, the embodiment of the invention can intelligently analyze whether the photo currently received by the instant messaging tool is of the type needing to be downloaded and saved, and if so, the photo is automatically downloaded and saved. The whole process does not need manual operation of a user, is operated in a full-intelligent mode, and is humanized.
Wherein, the electronic equipment, such as: mobile terminals (cell phones), computers, Personal Digital Assistants (PDAs), and the like.
The photo processing method provided by the embodiment of the present invention will be described in detail below.
Referring to fig. 2, a photo processing method according to an embodiment of the present invention is shown, which mainly includes the following steps:
in step S101, a photograph received in the instant messenger is acquired.
In the embodiment of the invention, a user installs an artificial intelligence application program in an electronic device, wherein the artificial intelligence application program mainly comprises two functions, one is a self-learning function, and the other is an intelligent analysis function, so that when the intelligent analysis function in the artificial intelligence application program is started, whether an instant messaging tool receives a photo or not is automatically monitored, if the instant messaging tool receives the photo, the photo received in the instant messaging tool is obtained, the received photo is intelligently analyzed by utilizing a pre-established database model, whether the received photo is a photo required to be stored or not is judged, and if the photo is required to be stored, the photo is automatically stored in a memory.
In some embodiments, after the self-learning function in the artificial intelligence application is started, the electronic device (e.g., the mobile terminal) self-learns the types of photos that the user normally downloads to store, so as to build the database model, see fig. 3, which is implemented as follows:
in step S201, all the photos downloaded and saved from the instant messaging tool within a preset time are obtained.
For example, when the self-learning function in the artificial intelligence application is enabled, the electronic device (e.g., the mobile terminal) records all the photos saved by the user from the instant messaging tool downloaded for a period of time, and then analyzes the photos to summarize the common characteristics among the photos, and uses the common characteristics as a reference standard for the subsequent analysis of the photos received from the instant messaging tool.
However, it is understood that the instant messaging tool may be a QQ, WeChat, MSN, or the like.
In step S202, the character image feature information corresponding to each photo is extracted from all the photos downloaded and saved.
In some embodiments, the person image feature information corresponding to each photo is extracted based on a face analysis algorithm, and if no face image is analyzed in the photos according to the face analysis algorithm, the photos without the face image are marked as empty.
For the case that a plurality of face images exist in a photo, the extracted character image feature information is labeled according to the difference, such as:
the relationship of the character image feature information corresponding to the photo 1 is as follows:
photo 1-face A, face B, face C;
the relationship of the character image feature information corresponding to the photo 2 is as follows:
photograph 2-face A;
the relationship of the character image feature information corresponding to the photo 3 is as follows:
photograph 3-face A, face D, face F;
the relationship of the character image feature information corresponding to the photo 4 is as follows:
photograph 4-face A, face C, face D, face G; and so on.
In step S203, the personal image feature information present in each photograph is determined from the extracted personal image feature information.
For example, photograph 1 — face a, face B, face C;
photograph 2-face A;
photograph 3-face A, face D, face F;
photograph 4-face A, face C, face D, face G;
and determining the human face A as the character image characteristic information existing in each photo according to the set operation. That is, based on the user's preference, the user downloads and stores the photo containing the face a. Therefore, the person image feature information of the face a is determined as the target person image feature information. Then the person image feature information of face a is used as a reference criterion in the subsequent analysis of the photo received from the instant messaging tool. That is, the subsequent photo received through the instant messaging tool will use the character image feature information of the human face a as the judgment condition, and if the image of the human face a exists in the photo, the photo will be automatically downloaded and stored in the local memory.
In step S204, the personal image feature information present in each photograph is determined as the target personal image feature information.
In step S205, the database model is created based on the characteristic information of the target person image.
In the embodiment of the invention, after the database model is established, the database model can be used for intelligently analyzing whether the current received photo by the instant messaging tool is of the type needing to be downloaded and stored, and if so, the photo is automatically downloaded and stored. The whole process does not need manual operation of a user, is operated in a full-intelligent mode, is humanized and brings great convenience to user operation.
In step S102, the photo is stored in a cache.
In step S103, a preset database model is called, and the character analysis is performed on the photo by using the feature information of the target character image in the preset database model.
In this embodiment of the present invention, step S103 includes:
1. and extracting corresponding image characteristic information from the photo.
For example, in the case of analyzing only a human face, a human face analysis algorithm may be used to extract human face image feature information from the photograph. If no face image is analyzed according to the face analysis algorithm, the photo without the face image is marked to be empty, namely, the photo without the face image is not compared with the feature information of the target character image in the preset database model. But directly delete the photo without the face image from the buffer to make room. If the human face image exists in the photo according to the analysis of the human face analysis algorithm, extracting the image characteristic information of the human face image so as to further analyze whether the extracted image characteristic information of the human face image is matched with the target character image characteristic information in the preset database model.
However, it is understood that extracting the corresponding image feature information from the photograph mainly includes: and extracting parameters such as the position, the face shape, the angle and the like of the five sense organs of the face.
2. Judging whether the extracted image characteristic information comprises the target character image characteristic information in the preset database model or not;
however, it is understood that if the image feature information of the extracted face image matches the target person image feature information in the preset database model, that is, the image feature information of the extracted face image includes the target person image feature information in the preset database model, it indicates that the photo is a photo to be saved.
For example, it is determined whether the facial position and facial shape parameters of the five sense organs of the face extracted from the photograph match the facial position and facial shape parameters of the target person in the preset database model, and if so, it is determined that the target person in the preset database model exists in the photograph, indicating that the photograph needs to be saved.
If the image characteristic information of the extracted face image does not include the image characteristic information of the target person in the preset database model, the photo is a photo which does not need to be stored, and therefore the photo is directly deleted from the cache to make room.
3. And if so, determining the picture corresponding to the image characteristic information as the picture needing to be stored.
In step S104, if it is analyzed that the photo is a photo that needs to be saved, the photo is transferred from the cache to a memory for storage.
However, it is understood that after the photos are transferred from the cache to the memory for storage, the corresponding photos in the cache are automatically cleared to make room.
In some embodiments, in order to facilitate the user to distinguish the photos of the current batch from the photos already stored in the memory, step S104 includes:
acquiring a character name corresponding to the characteristic information of the target character image;
establishing a folder in the memory, and naming the folder according to the character name;
acquiring a storage path corresponding to the folder;
and transferring the photo from the cache to the folder corresponding to the storage path.
In some embodiments, in order to facilitate the user to view which photos are saved without automatic downloading in a centralized manner, the photo processing method, namely after step S103, further includes:
if the photo is analyzed to be a photo which does not need to be stored, generating a corresponding thumbnail from the photo which does not need to be stored;
when an opening instruction of the instant messaging tool is detected, generating a display window;
and loading the thumbnail to the display window for displaying.
In some embodiments, in order to facilitate a user to clearly know which photos have been automatically downloaded and saved in the local memory in browsing photos received by the instant messaging tool, the photo processing method further includes:
and acquiring the picture identification corresponding to the picture which is currently transferred and stored in the memory. It will be appreciated that the picture identification may be a name for the photograph.
Positioning the picture in a corresponding photo according to the picture identification in a receiving interface corresponding to the instant messaging tool; for example, the instant messaging tool can be positioned in the corresponding photo in the corresponding receiving interface according to the name of the photo.
The positioned photo is marked to indicate that the positioned photo is a saved photo.
For example, a check could be placed on the upper right corner of the photograph icon to indicate that the photograph is a saved photograph. However, a "save" label may also be applied to the top right corner of the photo icon to indicate that the photo is a saved photo. However, it is to be understood that the marking is not limited to the above-described manner, and may be performed in other manners.
As can be seen from the above, the photo processing method provided in the embodiment of the present invention obtains the photo received in the instant messaging tool; storing the photo in a cache; calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model; and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage. The electronic equipment can self-learn the photo types which are usually downloaded and stored by the user, so that whether the photo currently received by the instant messaging tool is the type which needs to be downloaded and stored or not is intelligently analyzed, and if the photo is the type which needs to be downloaded and stored, the photo is automatically downloaded and stored. The whole process does not need manual operation of a user, is operated in a full-intelligent mode, is humanized and brings great convenience to user operation.
Referring to fig. 4, an implementation flow of the photo processing method provided by the embodiment of the present invention is described in detail below by taking an example in which a mobile terminal invokes a preset database model to analyze a photo.
In step S300, the mobile terminal learns the photo types that the user normally downloads and stores, thereby establishing a database model.
For example, after the mobile terminal self-learns for a period of time, it is analyzed that the photos downloaded and saved by the user from the WeChat are basically photos with the A person in the photos, and therefore, the image characteristic information of the A person is used as a reference standard when the photos received from the WeChat tool are analyzed subsequently. It will be appreciated that the invention is not limited to WeChat but may also be applied to QQ or other instant messaging tools.
In step S301, it is monitored whether the WeChat tool has received a photograph.
In step S302, if it is detected that the wechat tool has received a photo, the photo received in the wechat tool is acquired.
In step S303, the photo is stored in the cache;
in step S304, the database model is called to analyze the photo received by the WeChat;
for example, firstly, based on a face analysis algorithm, extracting character image feature information in the photo, and if no face image is analyzed according to the face analysis algorithm, marking the photo without the face image as empty, that is, comparing the photo without the face image with the a-character image feature information in the database model, but directly deleting the photo without the face image from the cache to make room. If the face image exists in the photo according to the analysis of the face analysis algorithm, extracting the image characteristic information of the face image to further analyze whether the extracted image characteristic information of the face image comprises the A person image characteristic information in the database model, if so, indicating that the photo is the photo needing to be stored, and transferring the photo from the cache to a memory for storage; if not, the photo is deleted from the cache.
In step S305, if it is analyzed that the photo is a photo that needs to be saved, the photo is transferred from the cache to a memory for storage.
In step S306, a photo name corresponding to the photo currently saved in the memory is obtained;
in step S307, in the receiving interface corresponding to the WeChat tool, positioning the corresponding photo according to the photo name;
in step S308, the positioned photo is marked to indicate that the positioned photo is a saved photo.
For example, a check could be placed on the upper right corner of the photograph icon to indicate that the photograph is a saved photograph. However, it is also possible to cover the upper right corner of the photo icon with a "save" label to indicate that the photo is a saved photo, as shown in fig. 5. However, it is to be understood that the marking is not limited to the above-described manner, and may be performed in other manners.
In step S309, if it is analyzed that the photo does not need to be saved, generating a corresponding thumbnail from the photo that does not need to be saved;
in step S310, when a start instruction of the WeChat tool is detected, a display window is generated;
in step S311, the thumbnail is loaded into the display window for displaying, so that the user can view the thumbnail.
For example, the handset uses self-learning to analyze which type of photo the user will save. The concrete implementation is as follows: the software analyzes the photos received before, extracts image characteristic information from the photos, and establishes a database model according to the image characteristic information after learning for a period of time. When the instant messaging tool receives the photos, the database model is called to analyze whether the received photos need to be stored or not, if so, the folders are automatically established, and the corresponding photos are stored. Further, the user is prompted to view the currently saved photos.
Please refer to fig. 6 and fig. 7, which are schematic block diagrams of a photo processing apparatus according to an embodiment of the present invention; for convenience of explanation, only portions related to the embodiments of the present invention are shown. The photo processing apparatus 100 includes: the system comprises a photo acquisition module 101, a temporary storage module 102, an analysis module 103 and a transfer module 104. The photo processing means may be a software unit, a hardware unit or a combination of software and hardware built into the electronic device.
A photo obtaining module 101, configured to obtain a photo received in an instant messaging tool;
the temporary storage module 102 is configured to store the photo in a cache;
the analysis module 103 is configured to invoke a preset database model, and perform character analysis on the photo by using the target character image feature information in the preset database model;
and the unloading module 104 is configured to, if it is analyzed that the photo is a photo that needs to be stored, transfer the photo from the cache to a memory for storage.
In some embodiments, the analysis module 103 comprises:
a feature extraction module 1031, configured to extract corresponding image feature information from the photograph;
a feature judgment module 1032, configured to judge whether the extracted image feature information includes the target person image feature information in the preset database model;
the photo determining module 1033 is configured to determine, if the image feature information of the target person is included, a photo corresponding to the image feature information as a photo that needs to be stored.
In some embodiments, the dump module 104 includes:
a name obtaining module 1041, configured to obtain a person name corresponding to the feature information of the target person image;
the folder establishing module 1042 is configured to establish a folder in the memory, and name the folder according to the name of the person;
a path obtaining module 1043, configured to obtain a storage path corresponding to the folder;
and the storage module 1044 is configured to transfer the photo from the cache to the folder corresponding to the storage path.
In some embodiments, the photo processing apparatus further includes:
the picture identifier acquiring module 105 is configured to acquire a picture identifier corresponding to a picture currently stored in the memory;
the photo positioning module 106 is configured to position a corresponding photo in a receiving interface corresponding to the instant messaging tool according to the picture identifier;
and the marking module 107 is configured to mark the located photo to indicate that the located photo is a saved photo.
In some embodiments, the photo processing apparatus further includes:
the thumbnail generation module 108 is configured to generate a corresponding thumbnail from the photo not needing to be stored if the photo is analyzed as the photo not needing to be stored;
a window generating module 109, configured to generate a display window when a start instruction of the instant messaging tool is detected;
and a loading display module 110, configured to load the thumbnail into the display window for display.
In some embodiments, the photo processing apparatus further includes:
the obtaining module 111 is configured to obtain all photos downloaded and stored from the instant messaging tool within a preset time;
a personal information extraction module 112, configured to extract personal image feature information corresponding to each photo from all the downloaded and stored photos;
a personal information determination module 113 for determining personal image characteristic information existing in each photograph from the extracted personal image characteristic information;
a target person determination module 114 for determining the personal image feature information present in each photograph as target personal image feature information;
a model establishing module 115, configured to establish the database model according to the characteristic information of the target person image.
As can be seen from the above, the photo processing apparatus provided in the embodiment of the present invention obtains the photo received in the instant messaging tool; storing the photo in a cache; calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model; and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage. The electronic equipment can self-learn the photo types which are usually downloaded and stored by the user, so that whether the photo currently received by the instant messaging tool is the type which needs to be downloaded and stored or not is intelligently analyzed, and if the photo is the type which needs to be downloaded and stored, the photo is automatically downloaded and stored. The whole process does not need manual operation of a user, is operated in a full-intelligent mode, is humanized and brings great convenience to user operation.
The photo processing method and the photo processing device provided by the embodiment of the invention belong to the same concept, and the specific implementation process is described in the specification in detail and is not described herein again.
Fig. 8 is a block diagram illustrating a specific structure of an electronic device according to an embodiment of the present invention, where the electronic device 1200 may be used to implement the photo processing method/apparatus provided in the foregoing embodiment.
As shown in fig. 8, the electronic device may include components such as a memory 801 including one or more computer-readable storage media (only one shown), an audio circuit 802, a transmission module 803, a processor 804 including one or more processing cores (only one shown), and a power supply 805. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the memory 801 may be used to store software programs and modules, such as program instructions/modules corresponding to the photo processing method/apparatus in the foregoing embodiments, and the processor 804 executes various functional applications and data processing, i.e., functions of photo processing, by running the software programs and modules stored in the memory 801. The memory 801 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 801 may further include memory located remotely from the processor 804, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device accesses streaming media or the like through a transport module 803 (e.g., a Wi-Fi module), which provides wireless broadband internet access for the user. Although fig. 8 shows the transmission module 803, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 804 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 801 and calling data stored in the memory 801. Optionally, processor 804 may include one or more processing cores; preferably, the processor 804 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 804.
The electronic device also includes a power supply 805 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 804 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 805 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any other components.
Although not shown, the electronic device may also be a bluetooth module or the like. And will not be described in detail herein. Additionally, the electronic device also includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors the one or more programs including instructions for:
acquiring a photo received in an instant messaging tool;
storing the photo in a cache;
calling a preset database model, and performing figure analysis on the photo by using the characteristic information of the target figure image in the preset database model;
and if the photo is analyzed to be the photo needing to be stored, transferring the photo from the cache to a memory for storage.
In some embodiments, when the preset database model is called, and the character analysis is performed on the photo by using the target character image feature information in the preset database model, the processor is further configured to perform the following steps:
extracting corresponding image characteristic information from the photo;
judging whether the extracted image characteristic information comprises the target character image characteristic information in the preset database model or not;
and if so, determining the picture corresponding to the image characteristic information as the picture needing to be stored.
In some embodiments, when transferring the photo from the cache to the memory for storage, the processor is further configured to:
acquiring a character name corresponding to the characteristic information of the target character image;
establishing a folder in the memory, and naming the folder according to the character name;
acquiring a storage path corresponding to the folder;
and transferring the photo from the cache to the folder corresponding to the storage path.
In some embodiments, after the step of transferring the photo from the cache to the storage in the memory, the processor is further configured to perform the steps of:
acquiring a picture identifier corresponding to a picture which is currently stored in a memory in a transferring way;
positioning the picture in a corresponding photo according to the picture identification in a receiving interface corresponding to the instant messaging tool;
the positioned photo is marked to indicate that the positioned photo is a saved photo.
In some embodiments, after the step of invoking a preset database model and performing the character analysis on the photo by using the feature information of the target character image in the preset database model, the processor is further configured to perform the following steps:
if the photo is analyzed to be a photo which does not need to be stored, generating a corresponding thumbnail from the photo which does not need to be stored;
when an opening instruction of the instant messaging tool is detected, generating a display window;
and loading the thumbnail to the display window for displaying.
In some embodiments, before the step of obtaining the photograph received in the instant messaging tool, the processor is further configured to perform the steps of:
acquiring all photos downloaded and stored from the instant messaging tool within preset time;
extracting the character image characteristic information corresponding to each photo from all the downloaded and stored photos;
determining the character image characteristic information existing in each photo from the extracted character image characteristic information;
determining the character image characteristic information existing in each photo as target character image characteristic information;
and establishing the database model according to the characteristic information of the target person image.
An embodiment of the present invention further provides a storage medium storing a computer program for photo processing, where the computer program causes a computer to execute the photo processing method as described above.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (10)

1. A method of processing a photograph, comprising the steps of:
the electronic equipment self-learns all the photos downloaded and stored from the instant messaging tool by a user within a preset time, analyzes the photos to summarize common characteristics among the photos, and uses the common characteristics as a reference standard for subsequently analyzing the photos received from the instant messaging tool to establish a preset database model;
acquiring a photo received in an instant messaging tool;
storing the photos received in the instant messaging tool in a cache;
calling a preset database model, and carrying out character analysis on the photos received in the instant messaging tool by utilizing the characteristic information of the target character images in the preset database model;
if the photo received in the instant messaging tool is analyzed to be a photo needing to be stored, transferring the photo received in the instant messaging tool from a cache to a memory for storage;
if the photo received in the instant messaging tool is analyzed to be a photo which does not need to be stored, generating a corresponding thumbnail from the photo which does not need to be stored;
when an opening instruction of the instant messaging tool is detected, generating a display window;
and loading the thumbnail to the display window for displaying.
2. The method of claim 1, wherein the step of invoking a predetermined database model and performing a character analysis on the photo received in the instant messaging tool using the target character image feature information in the predetermined database model comprises:
extracting corresponding image characteristic information from the photos received in the instant messaging tool;
judging whether the extracted image characteristic information comprises the target character image characteristic information in the preset database model or not;
and if so, determining the picture corresponding to the image characteristic information as the picture needing to be stored.
3. The method of claim 2, wherein transferring the photo received in the instant messaging tool from the cache to a memory for storage comprises:
acquiring a character name corresponding to the characteristic information of the target character image;
establishing a folder in the memory, and naming the folder according to the character name;
acquiring a storage path corresponding to the folder;
and transferring the photos received in the instant messaging tool from the cache to the folder corresponding to the storage path.
4. The method for processing photos of claim 1, wherein after the step of transferring the photos received in the instant messaging tool from the cache to the memory for storage, the method comprises:
acquiring a picture identifier corresponding to a picture which is currently stored in a memory in a transferring way;
positioning the picture in a corresponding photo according to the picture identification in a receiving interface corresponding to the instant messaging tool;
the positioned photo is marked to indicate that the positioned photo is a saved photo.
5. The method for processing photos as claimed in claim 1, wherein the step of the electronic device learning all the photos saved by the user from the instant messaging tool within a preset time period, analyzing the photos to summarize the characteristics shared between the photos, and using the shared characteristics as a reference standard for the subsequent analysis of the photos received from the instant messaging tool to establish the preset database model specifically comprises:
acquiring all photos downloaded and stored from the instant messaging tool within preset time;
extracting the character image characteristic information corresponding to each photo from all the downloaded and stored photos;
determining the character image characteristic information existing in each photo from the extracted character image characteristic information;
determining the character image characteristic information existing in each photo as target character image characteristic information;
and establishing the preset database model according to the characteristic information of the target person image.
6. A photograph processing apparatus, characterized by comprising:
the learning analysis module is used for self-learning all the photos downloaded and stored from the instant messaging tool by the user within the preset time, analyzing the photos to summarize the common characteristics among the photos, and using the common characteristics as a reference standard for subsequently analyzing the photos received from the instant messaging tool to establish a preset database model;
the photo acquisition module is used for acquiring photos received in the instant messaging tool;
the temporary storage module is used for storing the photos received in the instant communication tool into a cache;
the analysis module is used for calling a preset database model and carrying out character analysis on the photo received in the instant messaging tool by utilizing the characteristic information of the target character image in the preset database model;
the memory transferring module is used for transferring the photos received in the instant messaging tool from the cache to the memory for storage if the photos received in the instant messaging tool are analyzed to be the photos needing to be stored;
the thumbnail generation module is used for generating a corresponding thumbnail from the photo which is not required to be stored if the photo received in the instant messaging tool is analyzed to be the photo which is not required to be stored;
the window generation module is used for generating a display window when the opening instruction of the instant messaging tool is detected;
and the loading display module is used for loading the thumbnail into the display window for display.
7. The photo processing apparatus of claim 6, wherein the analysis module comprises:
the characteristic extraction module is used for extracting corresponding image characteristic information from the pictures received in the instant communication tool;
the characteristic judgment module is used for judging whether the extracted image characteristic information comprises the target character image characteristic information in the preset database model or not;
and the photo determining module is used for determining the photo corresponding to the image characteristic information as the photo needing to be stored if the photo determining module judges that the image characteristic information of the target person is included.
8. A photograph processing apparatus as claimed in claim 6, characterized by further comprising:
the picture identification acquisition module is used for acquiring the picture identification corresponding to the picture which is currently stored in the memory;
the photo positioning module is used for positioning the photo in the corresponding receiving interface corresponding to the instant messaging tool according to the picture identifier;
and the marking module is used for marking the positioned photos so as to mark the positioned photos as stored photos.
9. A storage medium storing a computer program for photo processing, wherein the computer program causes a computer to execute the photo processing method according to any one of claims 1 to 5.
10. An electronic device comprising a memory and a processor, the processor and the memory being connected by a bus; the memory is used for storing a group of program codes, and the processor is used for calling the program codes stored in the memory and executing the following operations:
the electronic equipment self-learns all the photos downloaded and stored from the instant messaging tool by a user within a preset time, analyzes the photos to summarize common characteristics among the photos, and uses the common characteristics as a reference standard for subsequently analyzing the photos received from the instant messaging tool to establish a preset database model;
acquiring a photo received in an instant messaging tool;
storing the photos received in the instant messaging tool in a cache;
calling a preset database model, and carrying out character analysis on the photos received in the instant messaging tool by utilizing the characteristic information of the target character images in the preset database model;
if the photo received in the instant messaging tool is analyzed to be a photo needing to be stored, transferring the photo received in the instant messaging tool from a cache to a memory for storage;
if the photo received in the instant messaging tool is analyzed to be a photo which does not need to be stored, generating a corresponding thumbnail from the photo which does not need to be stored;
when an opening instruction of the instant messaging tool is detected, generating a display window;
and loading the thumbnail to the display window for displaying.
CN201710535725.4A 2017-06-30 2017-06-30 Photo processing method and device, storage medium and electronic equipment Active CN107357527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710535725.4A CN107357527B (en) 2017-06-30 2017-06-30 Photo processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710535725.4A CN107357527B (en) 2017-06-30 2017-06-30 Photo processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107357527A CN107357527A (en) 2017-11-17
CN107357527B true CN107357527B (en) 2020-09-08

Family

ID=60293052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710535725.4A Active CN107357527B (en) 2017-06-30 2017-06-30 Photo processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107357527B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168378A (en) * 2014-08-19 2014-11-26 上海天奕达电子科技有限公司 Picture grouping method and device based on face recognition
CN105260487A (en) * 2015-11-24 2016-01-20 上海斐讯数据通信技术有限公司 Picture managing method and device
CN106776871A (en) * 2016-11-29 2017-05-31 维沃移动通信有限公司 The storage method and mobile terminal of a kind of multimedia file
CN106777334A (en) * 2017-01-12 2017-05-31 珠海格力电器股份有限公司 A kind of photo classification storage method, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168378A (en) * 2014-08-19 2014-11-26 上海天奕达电子科技有限公司 Picture grouping method and device based on face recognition
CN105260487A (en) * 2015-11-24 2016-01-20 上海斐讯数据通信技术有限公司 Picture managing method and device
CN106776871A (en) * 2016-11-29 2017-05-31 维沃移动通信有限公司 The storage method and mobile terminal of a kind of multimedia file
CN106777334A (en) * 2017-01-12 2017-05-31 珠海格力电器股份有限公司 A kind of photo classification storage method, device and mobile terminal

Also Published As

Publication number Publication date
CN107357527A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN109637040A (en) A kind of express delivery cabinet pickup method, apparatus, express delivery cabinet and storage medium
CN103941871B (en) The method and apparatus for controlling the hardware running status of intelligent terminal
CN106778117B (en) Permission open method, apparatus and system
CN108875328B (en) Identity verification method, device and storage medium
CN107357718A (en) One kind structure method of testing and device
CN107765853A (en) Using method for closing, device, storage medium and electronic equipment
CN108881781B (en) Method and device for determining resolution in video call process
CN109086680A (en) Image processing method, device, storage medium and electronic equipment
CN103460790A (en) Automatically enabling wireless communication
CN106250916B (en) Method and device for screening pictures and terminal equipment
CN109743532B (en) Doorbell control method, electronic equipment, doorbell system and storage medium
CN112135325A (en) Network switching method, device, storage medium and terminal
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN104966086A (en) Living body identification method and apparatus
CN109947650A (en) Script step process methods, devices and systems
CN108829430A (en) Java Web project update method and relevant apparatus based on Eclipse and Tomcat
CN102970653A (en) User terminal photographing method and user terminal
CN111538608A (en) Method for preventing terminal equipment from being down, terminal equipment and storage medium
CN107257383B (en) A kind of information-pushing method, device and storage medium, electronic equipment
CN107391121A (en) A kind of photograph sharing method, device and storage medium, computer equipment
CN108234758B (en) Application display method and device, storage medium and electronic equipment
CN114205447A (en) Rapid setting method and device of electronic equipment, storage medium and electronic equipment
CN107357527B (en) Photo processing method and device, storage medium and electronic equipment
CN106302011A (en) Method of testings based on multiterminal and terminal
CN104281657A (en) Information processing method and electronic device

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant