CN108549648B - Character picture processing method, terminal and computer readable storage medium - Google Patents

Character picture processing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108549648B
CN108549648B CN201810159529.6A CN201810159529A CN108549648B CN 108549648 B CN108549648 B CN 108549648B CN 201810159529 A CN201810159529 A CN 201810159529A CN 108549648 B CN108549648 B CN 108549648B
Authority
CN
China
Prior art keywords
person
user
picture
target
pictures
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
CN201810159529.6A
Other languages
Chinese (zh)
Other versions
CN108549648A (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.)
Zhuhai Dahengqin Technology Development Co Ltd
Original Assignee
Zhuhai Dahengqin Technology Development 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 Zhuhai Dahengqin Technology Development Co Ltd filed Critical Zhuhai Dahengqin Technology Development Co Ltd
Priority to CN201810159529.6A priority Critical patent/CN108549648B/en
Publication of CN108549648A publication Critical patent/CN108549648A/en
Application granted granted Critical
Publication of CN108549648B publication Critical patent/CN108549648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a figure picture processing method, which comprises the following steps: analyzing all pictures stored in the terminal through image recognition, and screening all figure pictures; identifying a target person in all the person pictures; judging whether the target person is an attention object of the user; and if so, carrying out picture arrangement on the figure picture comprising the target figure. The invention further discloses a terminal and a computer readable storage medium, by implementing the scheme, the concerned objects of the user are accurately analyzed, the character photo album related to the user is generated for the user to browse, and the user experience is improved.

Description

Character picture processing method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method for processing a character picture, a terminal, and a computer-readable storage medium.
Background
With the rapid development of the intelligent terminal, the image acquisition and processing capabilities of the intelligent terminal are stronger and stronger, and more pictures are stored. At present, the terminal stores the acquired pictures in a terminal gallery, whether the pictures are taken by a camera, downloaded through a network or captured through a screenshot function. However, in the existing method for generating a character album, a character album is established for each character appearing in a gallery mainly by face recognition, and in this case, some character albums which do not have any relationship with the user, such as passers-by who have taken a picture when taking a picture, may appear, which is not favorable for user experience.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the existing processing mode of the figure picture of the terminal cannot accurately and effectively generate a figure photo album closely related to the user. In order to solve the technical problem, a character picture processing method, a terminal and a computer readable storage medium are provided.
In order to solve the technical problem, the invention provides a character image processing method, which is applied to a terminal and comprises the following steps: analyzing all pictures stored in the terminal through image recognition, and screening all figure pictures; identifying a target person in all the person pictures; judging whether the target person is an attention object of the user; and if so, carrying out picture arrangement on the figure picture comprising the target figure.
Optionally, the step of identifying the target person in the all-person pictures further includes: and respectively identifying the identified target characters.
Optionally, the step of determining whether the target person is an attention object of the user specifically includes: judging whether a single photo of the target figure exists in all the screened figure pictures; and if so, judging that the target person is the attention object of the user.
Optionally, the step of collating the picture of the person including the target person includes: storing the single photo of the target person to generate a single photo album; and naming the single photo album by using the identification of the target person.
Optionally, the step of collating the picture of the person including the target person includes: and storing the multiple photos including the target character in the character picture to generate a photo album.
Optionally, the step of determining whether the target person is an attention object of the user specifically includes: judging whether the number of pictures including the target person exceeds a preset value or not; and if so, judging that the target person is the attention object of the user.
Optionally, the step of collating the picture of the person including the target person includes: establishing a character album for the target character which becomes the attention object of the user; storing all the figure pictures including the target figure in the figure album; naming the character album by using the identification of the target character which becomes the attention object of the user.
Optionally, the method further includes: selecting the picture with the most characters in the photo album; and setting the picture with the most selected characters as the cover of the photo album.
Furthermore, the invention also provides that the terminal comprises a processor, a memory and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory; the processor is used for executing the steps of the human figure picture processing method.
Further, the present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the person picture processing method as described in any one of the above.
Advantageous effects
The invention provides a character picture processing method, a terminal and a computer readable storage medium, aiming at the defect that a character photo album closely related to a user cannot be accurately and effectively generated by the existing character picture processing mode. Analyzing all pictures stored in the terminal through image recognition, and screening all figure pictures; identifying a target person in all the person pictures; judging whether the target person is an attention object of the user; and if so, carrying out picture arrangement on the figure picture comprising the target figure. And then the attention object of the user is accurately analyzed, a character photo album related to the user is generated for the user to browse, and the user experience is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the terminal shown in FIG. 1;
FIG. 3 is a flowchart illustrating a method for processing a character picture according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a person image processing method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for processing a character picture according to a third embodiment of the present invention;
fig. 6 is a schematic diagram of a terminal module according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal module according to a fifth embodiment of the present invention;
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include terminals such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
While the terminal will be described as an example in the following description, those skilled in the art will appreciate that the configuration according to the embodiment of the present invention can be applied to a terminal of a fixed type, in addition to elements particularly used for moving purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, the terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal configuration shown in fig. 1 is not intended to be limiting, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the various components of the terminal in detail with reference to fig. 1:
the Radio Frequency unit 101 may be configured to receive and transmit signals during a message transmission or call, specifically, receive downlink information of a base station and then process the received downlink information to the processor 110, and transmit uplink data to the base station, in General, the Radio Frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like, and in addition, the Radio Frequency unit 101 may further communicate with a network and other devices through wireless communication, and the wireless communication may use any communication standard or protocol, including, but not limited to, GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Synchronous Time Division Multiple Access, Code Division Multiple Access, Time Division Multiple Access, etc., TDD — Time Division Multiple Access, L Time Division Multiple Access, etc.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
Although not shown in fig. 1, the terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, the communication Network system is L TE system of universal mobile telecommunications technology, and the L TE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although L TE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to L TE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
In order to solve the problem that a character album generated in the existing character image processing method may not be related to a user and cannot meet the actual requirements of the user, the embodiment provides a character image processing method, so that a terminal can quickly and accurately provide a character album which is related to the user and is required by the user for the stored images, and further user experience is improved. Referring to fig. 3, fig. 3 is a schematic flow chart of a person image processing method according to a first embodiment of the present invention, where the person image processing method includes the following steps:
s301: and analyzing all pictures stored in the terminal through image recognition, and screening all the figure pictures.
In the present embodiment, the image recognition technology for analyzing the picture stored in the terminal is the existing person recognition technology, i.e. whether a person exists in the analyzed picture can be easily recognized based on the most basic person outline model or face outline model. After the analysis is completed, all the figure pictures are stored uniformly for subsequent processing.
S302: and identifying a target person in the all-person pictures.
In the present embodiment, each person picture is traversed, the face information of each person in each person picture is identified through the existing face identification technology, and then each target person in the person pictures is identified. In the present embodiment, the face information of each target person is unique, and if the same face information is recognized in other person pictures after the face information of one target person is recognized, it is described that the corresponding target person exists in the corresponding other person pictures. In addition, whether the corresponding character picture is a single picture or a group picture of multiple people can be judged according to the type of the face information in the character picture.
In this embodiment, after the target persons in all the person pictures are identified, the identified target persons may be identified, for example, the identified target persons may be the users themselves and may be identified by the names of the users; for example, the identified target person is the family of the user, and can be identified by the name of the family, such as dad and mom. Through identifying the identified target figures, the target figures in the figure picture can be well classified, and then subsequent processing is facilitated.
S303: and judging whether the target person is the attention object of the user.
In this embodiment, the attention object of the user refers to the degree of closeness with the user, such as the user himself, the family of the user, the close friends of the user, and the star of attention of the user, but it is obvious that unknown strangers may go into the mirror in many photos, and in this case, the person is certainly not the attention object of the user.
S304: and if the target person is the attention object of the user, carrying out picture arrangement on the person picture comprising the target person.
In the embodiment, if the person pictures stored in the terminal comprise attention objects of a plurality of users, the terminal can automatically arrange the person pictures according to the attention objects of the users so as to generate various person albums according with the needs of the users.
Second embodiment
Fig. 4 is a flowchart illustrating a person image processing method according to a second embodiment of the present invention. Fig. 4 is a specific method for determining whether the target person is the attention object of the user in the present embodiment based on the method provided in step S303 in the first embodiment.
S401: and judging whether the single photo of the target character exists in all the screened character pictures.
In this embodiment, when the target person is identified by using the person identification technology, it may be determined whether other face information exists in the currently analyzed person picture, and if not, it may be determined that a single person of the target person exists in the person picture stored in the terminal.
S402: and if the person picture contains the single person of the target person, judging that the target person is the attention object of the user.
In this embodiment, if a single photo of a target person is stored in the terminal of the user, it indicates that the target person has a certain relationship with the user, or else the user stores a single photo of the target person separately. Therefore, once a single person of a certain target person is found in the person pictures stored in the terminal, the target person is judged to be the attention object of the user.
Furthermore, when a target person is identified to have a single photo in the stored person picture, all the single photos of the target person in the photo album stored in the terminal are selected and then are uniformly stored to generate a single photo album. After the single photo album of the target person is generated, the single photo album can be further named by using the identification of the target person. In addition, after the single photo album of the target person is generated, a single photo with the highest definition can be selected from the single photo album as a cover of the single photo album.
Furthermore, through the person identification, all the person pictures including the target person can be screened out, if the single person picture of the target person is removed, the left person pictures are the multiple person pictures including the target person, and the multiple person pictures are stored to generate the photo album. After the photo album is generated, the picture with the most people in the photo album can be selected, and the picture with the most people can be set as the cover of the photo album.
By implementing the scheme, the person photo album closely related to the user can be easily and accurately generated for the user, such as the person photo album of the user, the person photo album of a father, the person photo album of a mother and the photo album of my photo, so that the person photo album irrelevant to the user is prevented from being generated.
Third embodiment
Fig. 5 is a flowchart illustrating a character image processing method according to a third embodiment of the present invention. Fig. 5 is a specific method for determining whether the target person is the attention object of the user based on the method provided in step S303 in the first embodiment.
S501: and judging whether the number of the pictures including the target person exceeds a preset value.
In this embodiment, a person picture including a target person is selected by a person recognition technique, the number of person pictures including the target person is counted, and whether the number of person pictures including the target person exceeds a preset value, such as 5.
S502: and if the number of the pictures including the target person exceeds a preset value, judging that the target person is the concerned object of the user.
In this embodiment, when the number of pictures including a target person in the pictures or pictures stored on the user terminal exceeds a certain number, it may be determined that the user has a certain relationship with the target person, and at least that the user is paying attention to the target user. Therefore, if the number of the pictures including the target person exceeds a preset value, the target person is judged to be the attention object of the user.
Further, the step of collating the picture of the person including the target person includes: establishing a character album for the target character which becomes the attention object of the user; storing all the figure pictures including the target figure in the figure album; and naming the character album by using the identification of the target character which becomes the attention object of the user, and selecting the picture with the most characters in the character album as the cover of the character album after establishing the character album.
Similarly, after determining that the target person is the attention object of the user, a single photo of the target person may be selected based on the person recognition technology in the second embodiment to generate a single photo album, and the generated single photo album may be identified by the identification of the target person and the clearest picture thereof may be used as the cover of the single photo album.
By implementing the scheme, the person photo album closely related to the user can be easily and accurately generated for the user, such as the person photo album of the user, the person photo album of a father, the person photo album of a mother and the photo album of my photo, so that the person photo album irrelevant to the user is prevented from being generated.
Fourth embodiment
Fig. 6 is a schematic diagram of a terminal module according to a fourth embodiment of the present invention, where the terminal includes an identification module 601, a determination module 602, a picture sorting module 603, a memory 604 and a processor 605, and all the functional modules are stored in the memory 604 as hard program codes and executed by the processor 605 to implement the steps or methods in the embodiments.
The recognition module 601 analyzes all pictures stored in the terminal through image recognition, and screens out all the people pictures.
In the present embodiment, the image recognition technology for analyzing the picture stored in the terminal is the existing person recognition technology, i.e. whether a person exists in the analyzed picture can be easily recognized based on the most basic person outline model or face outline model. After the analysis is completed, all the figure pictures are stored uniformly for subsequent processing.
In addition, the identification module 601 is further configured to identify a target person in the all-person pictures.
In the present embodiment, each person picture is traversed, the face information of each person in each person picture is identified through the existing face identification technology, and then each target person in the person pictures is identified. In the present embodiment, the face information of each target person is unique, and if the same face information is recognized in other person pictures after the face information of one target person is recognized, it is described that the corresponding target person exists in the corresponding other person pictures. In addition, whether the corresponding character picture is a single picture or a group picture of multiple people can be judged according to the type of the face information in the character picture.
In this embodiment, after the target persons in all the person pictures are identified, the identified target persons may be identified, for example, the identified target persons may be the users themselves and may be identified by the names of the users; for example, the identified target person is the family of the user, and can be identified by the name of the family, such as dad and mom. Through identifying the identified target figures, the target figures in the figure picture can be well classified, and then subsequent processing is facilitated.
The determination module 602 determines whether the target person is an object of interest of the user.
In this embodiment, the attention object of the user refers to the degree of closeness with the user, such as the user himself, the family of the user, the close friends of the user, and the star of attention of the user, but it is obvious that unknown strangers may go into the mirror in many photos, and in this case, the person is certainly not the attention object of the user.
The image arrangement module 603 arranges the images of the persons including the target person when the target person is the attention object of the user.
Preferably, the judging module 602 is further configured to judge whether a single photo of the target person exists in all the screened character pictures.
In this embodiment, when the target person is identified by using the person identification technology, it may be determined whether other face information exists in the currently analyzed person picture, and if not, it may be determined that a single person of the target person exists in the person picture stored in the terminal.
Preferably, the determining module 602 determines that the target person is the attention object of the user if the person picture includes a single person of the target person.
In this embodiment, if a single photo of a target person is stored in the terminal of the user, it indicates that the target person has a certain relationship with the user, or else the user stores a single photo of the target person separately. Therefore, once a single person of a certain target person is found in the person pictures stored in the terminal, the target person is judged to be the attention object of the user.
Furthermore, when it is recognized that a single photo of a target person exists in the stored person photos, the photo sorting module 603 selects all single photos of the target person in the photo album stored in the terminal, and then stores the single photos in a unified manner to generate the single photo album. After the single photo album of the target person is generated, the picture sorting module 603 further names the single photo album by using the identifier of the target person. In addition, after the single photo album of the target person is generated, the picture sorting module 603 selects a single photo with the highest definition from the single photo album as a cover of the single photo album.
Further, by the person identification, all the person pictures including the target person can be selected, and if the single person picture of the target person is removed, the remaining person pictures are the multiple person pictures including the target person, so that the picture sorting module 603 can store the multiple person pictures to generate the photo album. And after a photo album is generated, further selecting the picture with the most people in the photo album, and setting the picture with the most people as a cover of the photo album.
Preferably, the determining module 602 is further configured to determine whether the number of pictures including the target person exceeds a preset value.
In this embodiment, a person picture including a target person is selected by a person recognition technique, the number of person pictures including the target person is counted, and whether the number of person pictures including the target person exceeds a preset value, such as 5.
Preferably, if the number of pictures including the target person exceeds a preset value, the determining module 602 determines that the target person is an attention object of the user.
In this embodiment, when the number of pictures including a target person in the pictures or pictures stored on the user terminal exceeds a certain number, it may be determined that the user has a certain relationship with the target person, and at least that the user is paying attention to the target user. Therefore, if the number of pictures including the target person exceeds a predetermined value, the determining module 602 determines that the target person is the attention object of the user.
Further, the picture arrangement module 603 is further configured to: establishing a character album for the target character which becomes the attention object of the user; storing all the figure pictures including the target figure in the figure album; and naming the character album by using the identification of the target character which becomes the attention object of the user, and selecting the picture with the most characters in the character album as the cover of the character album after establishing the character album.
Similarly, after determining that the target person is the attention object of the user, the image sorting module 603 may also select a single photo of the target person based on the person recognition technology in the second embodiment to generate a single photo album, identify the generated single photo album by using the identification of the target person, and use the clearest image thereof as a cover of the single photo album.
By implementing the scheme, the person photo album closely related to the user can be easily and accurately generated for the user, such as the person photo album of the user, the person photo album of a father, the person photo album of a mother and the photo album of my photo, so that the person photo album irrelevant to the user is prevented from being generated.
Fifth embodiment
Fig. 7 is a schematic diagram of a terminal module according to a fifth embodiment of the present invention, as shown in fig. 7, which includes a processor 71, a memory 72 and a communication bus 73, wherein:
the communication bus 73 is used for realizing connection communication between the processor 71 and the memory 72;
the processor 71 is configured to perform the following steps:
and analyzing all pictures stored in the terminal through image recognition, and screening all the figure pictures.
In the present embodiment, the image recognition technology for analyzing the picture stored in the terminal is the existing person recognition technology, i.e. whether a person exists in the analyzed picture can be easily recognized based on the most basic person outline model or face outline model. After the analysis is completed, all the figure pictures are stored uniformly for subsequent processing.
And identifying a target person in the all-person pictures.
In the present embodiment, each person picture is traversed, the face information of each person in each person picture is identified through the existing face identification technology, and then each target person in the person pictures is identified. In the present embodiment, the face information of each target person is unique, and if the same face information is recognized in other person pictures after the face information of one target person is recognized, it is described that the corresponding target person exists in the corresponding other person pictures. In addition, whether the corresponding character picture is a single picture or a group picture of multiple people can be judged according to the type of the face information in the character picture.
In this embodiment, after the target persons in all the person pictures are identified, the identified target persons may be identified, for example, the identified target persons may be the users themselves and may be identified by the names of the users; for example, the identified target person is the family of the user, and can be identified by the name of the family, such as dad and mom. Through identifying the identified target figures, the target figures in the figure picture can be well classified, and then subsequent processing is facilitated.
And judging whether the target person is the attention object of the user.
In this embodiment, the attention object of the user refers to the degree of closeness with the user, such as the user himself, the family of the user, the close friends of the user, and the star of attention of the user, but it is obvious that unknown strangers may go into the mirror in many photos, and in this case, the person is certainly not the attention object of the user.
And if the target person is the attention object of the user, carrying out picture arrangement on the person picture comprising the target person.
Preferably, the processor is further configured to identify the identified target persons respectively. In this embodiment, after the target persons in all the person pictures are identified, the identified target persons may be identified, for example, the identified target persons may be the users themselves and may be identified by the names of the users; for example, the identified target person is the family of the user, and can be identified by the name of the family, such as dad and mom. Through identifying the identified target figures, the target figures in the figure picture can be well classified, and then subsequent processing is facilitated.
Preferably, the processor is further configured to: judging whether a single photo of the target figure exists in all the screened figure pictures; and if so, judging that the target person is the attention object of the user.
Preferably, the processor is further configured to: storing the single photo of the target person to generate a single photo album; and naming the single photo album by using the identification of the target person.
Preferably, the processor is further configured to: storing the multiple photos including the target character in the character picture to generate a photo album;
preferably, the processor is further configured to: judging whether the number of pictures including the target person exceeds a preset value or not; and if so, judging that the target person is the attention object of the user.
Preferably, the processor is further configured to: establishing a character album for the target character which becomes the attention object of the user; storing all the figure pictures including the target figure in the figure album; naming the character album by using the identification of the target character which becomes the attention object of the user.
Preferably, the processor is further configured to: selecting the picture with the most characters in the photo album;
and setting the picture with the most selected characters as the cover of the photo album or the character album.
Note that the processor 71 and the memory 72 in the present embodiment are the same as the memory 604 and the processor 605 in the fourth embodiment, and are different only in reference numerals, and do not limit the present invention at all.
By implementing the scheme, the person photo album closely related to the user can be easily and accurately generated for the user, such as the person photo album of the user, the person photo album of a father, the person photo album of a mother and the photo album of my photo, so that the person photo album irrelevant to the user is prevented from being generated.
An embodiment of the present invention provides a computer-readable storage medium, which stores one or more programs that can be executed by one or more processors to implement the steps of the character image processing method in the above-described embodiment. For details, please refer to the description of the above embodiments, which is not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A character picture processing method is applied to a terminal, and is characterized by comprising the following steps:
analyzing all pictures stored in the terminal through image recognition, and screening all figure pictures;
identifying a target person in all the person pictures;
respectively identifying the identified target characters;
judging whether the target person is an attention object of the user;
if so, carrying out picture arrangement on the figure picture comprising the target figure;
wherein the attention object of the user is the intimacy degree with the user;
the step of judging whether the target person is the attention object of the user specifically includes:
judging whether a single photo of the target figure exists in all the screened figure pictures;
if so, judging that the target person is the attention object of the user; and/or
Judging whether the number of pictures including the target person exceeds a preset value or not;
if yes, judging that the target person is the attention object of the user;
the step of arranging the figure picture including the target figure comprises the following steps:
establishing a character album for the target character which becomes the attention object of the user;
storing all the figure pictures including the target figure in the figure album;
naming the character album by using the identification of the target character which becomes the attention object of the user.
2. The person picture processing method according to claim 1, wherein the step of performing picture finishing on the person picture including the target person includes:
storing the single photo of the target person to generate a single photo album;
and naming the single photo album by using the identification of the target person.
3. The person picture processing method according to claim 1, wherein the step of performing picture finishing on the person picture including the target person includes:
and storing the multiple photos including the target character in the character picture to generate a photo album.
4. The method of processing a picture of a person as claimed in claim 3, wherein the method further comprises:
selecting the picture with the most characters in the photo album;
and setting the picture with the most selected characters as the cover of the photo album.
5. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the steps of the character picture processing method according to any one of claims 1 to 4.
6. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the person picture processing method according to any one of claims 1 to 4.
CN201810159529.6A 2018-02-26 2018-02-26 Character picture processing method, terminal and computer readable storage medium Active CN108549648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810159529.6A CN108549648B (en) 2018-02-26 2018-02-26 Character picture processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810159529.6A CN108549648B (en) 2018-02-26 2018-02-26 Character picture processing method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108549648A CN108549648A (en) 2018-09-18
CN108549648B true CN108549648B (en) 2020-07-21

Family

ID=63515989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810159529.6A Active CN108549648B (en) 2018-02-26 2018-02-26 Character picture processing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108549648B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815298B (en) * 2019-01-28 2021-01-08 腾讯科技(深圳)有限公司 Method and device for determining character relationship network and storage medium

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
KR101497671B1 (en) * 2014-07-10 2015-03-04 (주)삼미디어텍 Apparatus and method for closed web album service
CN105760461A (en) * 2016-02-04 2016-07-13 上海卓易科技股份有限公司 Automatic album establishing method and device
CN106250439A (en) * 2016-07-26 2016-12-21 四川长虹电器股份有限公司 Cohesion display systems and method between photo personage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6018029B2 (en) * 2013-09-26 2016-11-02 富士フイルム株式会社 Apparatus for determining main face image of captured image, control method thereof and control program thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101497671B1 (en) * 2014-07-10 2015-03-04 (주)삼미디어텍 Apparatus and method for closed web album service
CN104168378A (en) * 2014-08-19 2014-11-26 上海天奕达电子科技有限公司 Picture grouping method and device based on face recognition
CN105760461A (en) * 2016-02-04 2016-07-13 上海卓易科技股份有限公司 Automatic album establishing method and device
CN106250439A (en) * 2016-07-26 2016-12-21 四川长虹电器股份有限公司 Cohesion display systems and method between photo personage

Also Published As

Publication number Publication date
CN108549648A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN108241752B (en) Photo display method, mobile terminal and computer readable storage medium
CN110180181B (en) Method and device for capturing wonderful moment video and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN111708503A (en) Screen projection control method and device and computer readable storage medium
CN109375846B (en) Method and device for displaying breathing icon, mobile terminal and readable storage medium
CN107241504B (en) Image processing method, mobile terminal and computer readable storage medium
CN112188058A (en) Video shooting method, mobile terminal and computer storage medium
CN109495376B (en) Group message screening method, mobile terminal and computer readable storage medium
CN109522276B (en) Application icon management method, terminal and computer-readable storage medium
CN108536383B (en) Game control method, game control equipment and computer readable storage medium
CN112866685A (en) Screen projection delay measuring method, mobile terminal and computer readable storage medium
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN108667714B (en) Information transmitting method, information receiving method, mobile terminal and storage medium
CN108543306B (en) Game brightness control method and device and computer readable storage medium
CN108549648B (en) Character picture processing method, terminal and computer readable storage medium
CN107678622B (en) Application icon display method, terminal and storage medium
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium
CN107580106B (en) Call control method, mobile terminal and computer readable storage medium
CN107222933B (en) Communication method, terminal and computer readable storage medium
CN114328451A (en) Sensitive information base construction method and device based on machine learning and computer readable storage medium
CN110069161B (en) Screen recognition method, mobile terminal and computer-readable storage medium
CN110275667B (en) Content display method, mobile terminal, 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200616

Address after: Room 105-67309, No. 6, Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: ZHUHAI DAHENGQIN TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant