CN109508398B - Photo classification method and terminal equipment thereof - Google Patents

Photo classification method and terminal equipment thereof Download PDF

Info

Publication number
CN109508398B
CN109508398B CN201811451742.0A CN201811451742A CN109508398B CN 109508398 B CN109508398 B CN 109508398B CN 201811451742 A CN201811451742 A CN 201811451742A CN 109508398 B CN109508398 B CN 109508398B
Authority
CN
China
Prior art keywords
photo
album
classified
photos
directory
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
CN201811451742.0A
Other languages
Chinese (zh)
Other versions
CN109508398A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811451742.0A priority Critical patent/CN109508398B/en
Publication of CN109508398A publication Critical patent/CN109508398A/en
Application granted granted Critical
Publication of CN109508398B publication Critical patent/CN109508398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a photo classification method and terminal equipment thereof, which are used for solving the problem that in the prior art, when the number of photos in the same time or the same place in an album is too large, a user still consumes a large amount of time to sort or search the photos. The method comprises the following steps: acquiring the characteristic attribute of a photo to be classified in terminal equipment; if at least one album directory of the terminal equipment comprises a target album directory corresponding to the characteristic attribute of the photo to be classified, storing the photo to be classified in the target album directory, wherein each album directory in the at least one album directory is used for storing the photo with the characteristic attribute similarity larger than or equal to a preset threshold value.

Description

Photo classification method and terminal equipment thereof
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a photo classification method and terminal equipment thereof.
Background
At present, with the increasingly powerful photographing function of smart mobile terminals such as mobile phones, users can photograph through the smart mobile terminals such as mobile phones anytime and anywhere. And as the number of photos taken by the user increases, the number of photos in the photo album also increases.
In the prior art, photos taken by a user are often simply displayed in a classified manner only according to the shooting time and/or shooting location of the photos, for example, photos in the same city or county at the shooting location can be classified into one folder, and photos in the same day, month, year at the shooting time can also be classified into one folder.
However, if the number of photos taken by the user at the same time or the same place is too large, according to the above classification method, it still takes a lot of time when the user searches or sorts the photos.
Disclosure of Invention
The embodiment of the invention provides a photo classification method and terminal equipment thereof, which are used for solving the problem that in the prior art, when the number of photos in the same time or the same place in an album is too large, a great amount of time is still consumed for a user to sort or search the photos.
In order to solve the technical problem, the invention is realized as follows: in a first aspect, an embodiment of the present invention provides a method for classifying photos, including:
acquiring the characteristic attribute of a photo to be classified in terminal equipment;
if at least one album directory of the terminal equipment comprises a target album directory corresponding to the characteristic attribute of the photo to be classified, storing the photo to be classified in the target album directory, wherein each album directory in the at least one album directory is used for storing the photo with the characteristic attribute similarity larger than or equal to a preset threshold value.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
the acquiring unit is used for acquiring the characteristic attribute of the photo to be classified in the terminal equipment;
and the storage unit is used for storing the photos to be classified in the target album directory if the at least one album directory of the terminal equipment comprises the target album directory corresponding to the characteristic attribute of the photos to be classified, wherein each album directory in the at least one album directory is used for storing the photos with the characteristic attribute similarity larger than or equal to a preset threshold value.
In a third aspect, an embodiment of the present invention provides a terminal device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of classifying photographs according to the first aspect.
In a fourth aspect, the present invention further provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the photo classification method according to the first aspect.
In the embodiment of the invention, the characteristic attribute of the photo to be classified in the terminal equipment can be obtained, and the photo to be classified is stored in the target album directory when the condition that the at least one album directory of the terminal equipment comprises the target album directory corresponding to the characteristic attribute of the photo to be classified is determined, wherein each album directory in the at least one album directory is used for storing the photo with the similarity of the characteristic attribute being greater than or equal to the preset threshold value. Therefore, even when the number of the photos stored in the terminal equipment is large, the photo album directories corresponding to the photos to be classified can be determined based on the characteristic attributes of the photos, and the characteristic attributes of the photos stored in each photo album directory are similar, the photos can be quickly found based on the characteristic attributes of the photos, and a great amount of time is saved for the user to arrange the photos in the later period.
Drawings
Fig. 1 is a schematic flowchart illustrating an embodiment of a photo classification method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a photo classification method applied in an actual scene according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a photo classification method applied to an actual scene according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
In order to solve the problem that in the photo classification method in the prior art, when the number of photos in the same time or the same place in an album is too large, a large amount of time is still consumed by a user to sort or search the photos, the invention provides a photo classification method.
For convenience of description, the following description will be made of an embodiment of the method taking as an example that an execution subject of the method is a terminal device capable of executing the method. It is understood that the implementation of the method by the terminal device is only an exemplary illustration, and should not be construed as a limitation of the method.
Specifically, the photo classification method provided by the invention comprises the following steps: firstly, acquiring the characteristic attribute of a photo to be classified in terminal equipment; and then, if at least one album directory of the terminal equipment comprises a target album directory corresponding to the characteristic attribute of the photo to be classified, storing the photo to be classified in the target album directory, wherein each album directory of the at least one album directory is used for storing the photo with the characteristic attribute similarity larger than or equal to a preset threshold value.
In the embodiment of the invention, the characteristic attribute of the photo to be classified in the terminal equipment can be obtained, and the photo to be classified is stored in the target album directory when the condition that the at least one album directory of the terminal equipment comprises the target album directory corresponding to the characteristic attribute of the photo to be classified is determined, wherein each album directory in the at least one album directory is used for storing the photo with the similarity of the characteristic attribute being greater than or equal to the preset threshold value. Therefore, even when the number of the photos stored in the terminal equipment is large, the photo album directories corresponding to the photos to be classified can be determined based on the characteristic attributes of the photos, and the characteristic attributes of the photos stored in each photo album directory are similar, the photos can be quickly found based on the characteristic attributes of the photos, and a great amount of time is saved for the user to arrange the photos in the later period.
In the prior art, photos shot through terminal devices are often stored in an album directory only according to the sequence of the shooting time, so that a user can conveniently search for the photos, and some terminal devices can be classified according to the shooting time and the shooting place of the photos, for example, all the photos in 11 months in 2018 can be selected, and all the photos shot in a certain place can also be selected. However, as the storage space of the terminal device gradually increases, when the user can take enough photos, and when the number of photos taken by the user in a certain time period or a certain place is too large, the user can only manually set a plurality of folders according to the self-defined categories and move the photos in the folders corresponding to the categories into the folders corresponding to the categories. Obviously, this will take the user a lot of time to sort through the pictures taken.
In order to solve the problem, the embodiment of the invention may determine the characteristic attribute of the photo to be classified based on the shooting time, the shooting location, the shot photo content and other factors in which the terminal device is currently located, search a target album directory corresponding to the characteristic attribute of the photo to be classified from at least one album directory created in the terminal device based on the characteristic attribute, and store the photo to be classified in the target album directory. Each album directory in at least one album directory created in the terminal equipment can be created based on the characteristic attributes of the stored photos, that is, the album in the terminal equipment can classify the characteristic attributes of the stored photos, divide the photos with similar characteristic attributes into a category, and create a corresponding album, so that the user can conveniently find the photos in the later period, the user can conveniently sort the photos, and a large amount of time is saved for the user.
The following describes in detail an implementation process of the method with reference to a schematic flow chart of a specific implementation of the photo classification method shown in fig. 1, including:
step 101, acquiring characteristic attributes of photos to be classified in terminal equipment;
the photo to be classified is a photo which is currently acquired by the terminal device and is not classified, for example, the photo may be a photo taken by a current user through the terminal device, or may also be a photo received by the current user through an instant messaging application in the terminal device.
Optionally, the characteristic attributes of the photo to be classified are used for characterizing the shooting scene and the photo content of the photo to be classified. The shooting scene of the photo to be classified can be determined based on the current time information, the current position information and the scheduling information acquired from the third party of the terminal device. For example, the schedule of the user may be acquired based on the airline ticket reservation information and the accommodation reservation information in the travel application, and the travel is scheduled to travel to a certain destination, and if it is determined that the user takes a picture at the destination at the moment based on the current time information and the current location information of the terminal device, it may be determined that a shooting scene of the picture to be classified, which is shot by the user, is a travel scene at the certain destination. The photo content may be obtained based on image recognition technology, for example, the photo content obtained from the photo to be classified currently taken by the user may be a certain category of photo content in landscape, food, people, and the like.
For another example, the schedule of the user may be acquired to participate in a certain meeting based on meeting schedule information in third-party applications such as a mail application and a chat application, and if it is determined that the user takes photos in the meeting time period and the meeting place in the meeting schedule information based on the current time information and the current position information of the terminal device, it may be determined that the shooting scene of the photos to be classified taken by the user is a meeting scene of a certain meeting topic. In the conference scene, the photo content of the photo to be classified currently taken by the user, such as the PPT reported by a certain conference speaker, can be acquired through an image recognition technology.
Then, the obtaining of the characteristic attribute of the photo to be classified in the terminal device may specifically include the following steps:
acquiring current time information, current position information, scheduling information and photo content of the photos to be classified of the terminal equipment;
determining the current shooting scene of the photo to be classified based on the current time information, the current position information and the scheduling information;
and determining the characteristic attribute of the photo to be classified based on the current shooting scene and the photo content of the photo to be classified.
Step 102, if at least one album directory of the terminal equipment comprises a target album directory corresponding to the characteristic attribute of the photo to be classified, storing the photo to be classified in the target album directory, wherein each album directory in the at least one album directory is used for storing the photo with the characteristic attribute similarity larger than or equal to a preset threshold value.
Optionally, at least one album directory of the terminal device may not include a target album directory corresponding to the characteristic attribute of the photo to be classified, for example, the shooting location, the shooting time, and the photo content of the photo to be classified are all different from those of photos stored in an existing album directory of the terminal device, that is, the photo to be classified is the first photo taken by the user in the current shooting scene. In this case, in order to facilitate subsequent photo sorting, the embodiment of the present invention may adopt the following steps to create an album directory corresponding to the characteristic attribute of the photo to be sorted, and store the photo to be sorted into the album directory corresponding to the album directory. Specifically, the method comprises the following steps:
if at least one album catalog of the terminal equipment does not comprise a target album catalog corresponding to the characteristic attribute of the photo to be classified, creating an album catalog corresponding to the characteristic attribute of the photo to be classified;
and storing the photos to be classified into the album catalog corresponding to the characteristic attributes of the photos to be classified.
Optionally, in order to facilitate a user to search and sort photos stored in an album, the embodiment of the present invention may classify the photos based on the shooting scenes and the photo contents of the photos to be classified, and in order to make the classification more hierarchical, the user may sort the photos conveniently, specifically, an album main directory may be created based on each shooting scene, and a corresponding album sub-directory may be created based on different photo contents in one shooting scene.
Then, creating an album catalog corresponding to the characteristic attribute of the photo to be classified may specifically include the following steps:
if the shooting scene of the photo to be classified is different from the shooting scene of the photos stored in at least one album directory, creating an album master directory corresponding to the shooting scene;
and creating an album subdirectory corresponding to the photo content of the photos to be classified under the album main directory based on the photo content of the photos to be classified.
Optionally, in order to avoid too many photos belonging to the same shooting scene, in the embodiment of the present invention, photos whose photo contents belong to different categories in the same shooting scene may be classified, and taking a travel scene as an example, the photos may be classified according to shooting subjects: people, scenery, food and the like are classified, namely subdirectories belonging to the people, the scenery and the food can be respectively created under the main directory of the photo album corresponding to the same travel scene to store photos corresponding to the photo content.
In this case, creating the album catalog corresponding to the characteristic attribute of the photo to be classified may specifically include the following steps:
if the photos stored in at least one album directory include target photos with the same shooting scene as the photos to be classified, and the similarity between the target photos and the photo contents of the photos to be classified is smaller than the content similarity threshold, creating album subdirectories corresponding to the photo contents of the photos to be classified under the album directory where the target photos are located. The same shooting scene may specifically be that a difference between the shooting time of the photo to be classified and the shooting time of the photo stored in the at least one album directory is less than a preset time period, and a difference between shooting locations is less than a preset distance.
Optionally, in order to facilitate the user to view and search for photos in the album, the embodiment of the present invention may generate a corresponding album cover for each album directory based on the characteristic attribute of the photos stored in each album directory in at least one album directory. Taking a shooting scene as a travel scene as an example, if photos of a plurality of travel places shot by a user in the travel are acquired, a travel route map can be generated based on the geographical position information of the photos and the sequence of the shooting time of the photos to be used as a cover of the album main catalog. Taking the shooting scene as the conference scene as an example, the corresponding album cover can be generated based on the conference subject corresponding to the conference scene.
Fig. 3 is a schematic diagram of an album preview according to an embodiment of the present invention, and in fig. 3, the diagram includes a preview interface 31 of photos in an album main directory, a cover 32 of a certain album main directory, and a cover 33 of a sub-directory of the album. The photos in the album main directory are displayed in the preview interface 31 of the photos in the album main directory, and the user can view the photos in the album main directory by sliding left and right. The upper left corner of 31 is a cover 32 of the album main directory to which the photo belongs in the preview interface 31, the cover of the album main directory is generated based on different shooting places of the photo in the album main directory, as shown in fig. 3, the 32 includes 3 shooting places, and if the user previews the photo at one of the three shooting places, the corresponding shooting place in the 32 is lighted. The cover 33 of the album subdirectory may be generated based on the contents of the photos stored in the album subdirectory, for example, a photo stored therein may be selected as the cover. The user can click on the front cover 33 of the album subdirectory to enter the management operation of viewing, deleting and the like of the photos stored in the album subdirectory.
It should be noted that before creating the album main directory and the album sub-directory, the user may be prompted whether to create the album main directory or the album sub-directory, and when the user confirms the creation, the user starts to create the album main directory or the album sub-directory.
The method for classifying photos according to the embodiment of the present invention will be described in detail with reference to fig. 2. As shown in fig. 2, the storage process of the photos taken by the user in one trip is performed, that is, the taken scene is a trip scene, and a plurality of trip locations are involved in the trip. Specifically, the method comprises the following main steps:
step 201, acquiring a current shooting scene of the terminal device based on a current shooting place and shooting time of the terminal device and scheduling information in a third-party application;
step 202, acquiring a 1 st photo to be classified;
step 203, creating a main directory A based on the current shooting scene and the photo content of the 1 st photo to be classified;
step 204, acquiring an N +1 th photo to be classified, wherein N is greater than 0 and is a positive integer;
step 205, determining whether to create a new directory based on the photo content of the (N + 1) th photo to be classified;
step 206, if the similarity between the photo content stored in at least one directory in the album and the photo content of the (N + 1) th photo to be classified is smaller than a preset content similarity threshold, creating a subdirectory under the main directory A;
step 207, if the similarity between the photo content stored in at least one directory in the photo album and the photo content of the (N + 1) th photo to be classified is greater than or equal to a preset content similarity threshold, determining the photo album directory corresponding to the photo content of the (N + 1) th photo to be classified, and storing the (N + 1) th photo to be classified into the corresponding photo album directory;
step 208, generating a route map based on the shooting places of the photos stored in at least one directory in the album;
step 209, lighting the current shooting place in the circuit diagram;
step 210, judging whether the travel is finished;
if the journey is not finished, the step 204 is continued, and if the journey is finished, the step 211 is executed.
Step 211, arranging photos;
step 212, determining whether to reclassify and sort;
step 213, if the photos are reclassified and sorted, acquiring the sorting priority specified by the user, and reclassifying the photos according to the specified sorting priority;
and step 214, after finishing the photo finishing, using the circuit diagram as an album cover of the main catalog A.
In the embodiment of the invention, the characteristic attribute of the photo to be classified in the terminal equipment can be obtained, and the photo to be classified is stored in the target album directory when the condition that the at least one album directory of the terminal equipment comprises the target album directory corresponding to the characteristic attribute of the photo to be classified is determined, wherein each album directory in the at least one album directory is used for storing the photo with the similarity of the characteristic attribute being greater than or equal to the preset threshold value. Therefore, even when the number of the photos stored in the terminal equipment is large, the photo album directories corresponding to the photos to be classified can be determined based on the characteristic attributes of the photos, and the characteristic attributes of the photos stored in each photo album directory are similar, the photos can be quickly found based on the characteristic attributes of the photos, and a great amount of time is saved for the user to arrange the photos in the later period.
Referring to fig. 4, a schematic structural diagram of a terminal device 400 according to an embodiment of the present invention is shown in fig. 4, which includes an obtaining unit 401 and a storing unit 402, where:
an obtaining unit 401, configured to obtain a feature attribute of a photo to be classified in a terminal device;
a storage unit 402, configured to store the photos to be classified in a target album directory if the target album directory corresponding to the feature attribute of the photos to be classified is included in at least one album directory of the terminal device, where each album directory in the at least one album directory is used for storing photos with a feature attribute similarity greater than or equal to a preset threshold.
Optionally, in an implementation manner, the terminal device further includes:
a creating unit 402, configured to create an album directory corresponding to the feature attribute of the photo to be classified if at least one album directory of the terminal device does not include a target album directory corresponding to the feature attribute of the photo to be classified;
a first storage unit 403, configured to store the photo to be classified into an album directory corresponding to the characteristic attribute of the photo to be classified.
Optionally, in an embodiment, the creating unit 402 is configured to:
if the shooting scene of the photo to be classified is different from the shooting scene of the photos stored in the at least one album directory, creating an album master directory corresponding to the shooting scene;
and creating an album subdirectory corresponding to the photo content of the photo to be classified under the album main directory based on the photo content of the photo to be classified.
Optionally, in an embodiment, the creating unit 402 is configured to:
if the photos stored in the at least one album directory include the target photos with the same shooting scene as the photos to be classified, and the similarity between the target photos and the photo contents of the photos to be classified is smaller than a content similarity threshold value, creating album subdirectories corresponding to the photo contents of the photos to be classified under the album directory where the target photos are located.
Optionally, in an embodiment, the obtaining unit 401 is configured to:
acquiring current time information, current position information, scheduling information and photo content of the photo to be classified of the terminal equipment;
determining the current shooting scene of the photo to be classified based on the current time information, the current position information and the scheduling information;
and determining the characteristic attribute of the photo to be classified based on the current shooting scene and the photo content of the photo to be classified.
Optionally, in an embodiment, the apparatus further includes:
a generating unit 404, configured to generate a corresponding album cover for each album directory based on the characteristic attribute of the photo stored in each album directory of the at least one album directory.
The terminal device 400 provided in the embodiment of the present invention can implement each process of implementing the photo classification method by the terminal device in the method embodiments of fig. 1 to fig. 3, and for avoiding repetition, details are not described here again.
Figure 5 is a schematic diagram of a hardware configuration of a terminal device 500 implementing various embodiments of the present invention,
the terminal device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 5 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to obtain a feature attribute of a photo to be classified in the terminal device; if at least one album directory of the terminal equipment comprises a target album directory corresponding to the characteristic attribute of the photo to be classified, storing the photo to be classified in the target album directory, wherein each album directory in the at least one album directory is used for storing the photo with the characteristic attribute similarity larger than or equal to a preset threshold value.
In the embodiment of the invention, the characteristic attribute of the photo to be classified in the terminal equipment can be obtained, and the photo to be classified is stored in the target album directory when the condition that the at least one album directory of the terminal equipment comprises the target album directory corresponding to the characteristic attribute of the photo to be classified is determined, wherein each album directory in the at least one album directory is used for storing the photo with the similarity of the characteristic attribute being greater than or equal to the preset threshold value. Therefore, even when the number of the photos stored in the terminal equipment is large, the photo album directories corresponding to the photos to be classified can be determined based on the characteristic attributes of the photos, and the characteristic attributes of the photos stored in each photo album directory are similar, the photos can be quickly found based on the characteristic attributes of the photos, and a great amount of time is saved for the user to arrange the photos in the later period.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the terminal apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture 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 503. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The terminal device 500 further comprises at least one sensor 505, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the terminal device 500 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), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 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 device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 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 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display 5061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 5071 and the display 5061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the terminal apparatus 500. 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 508 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 apparatus 500 or may be used to transmit data between the terminal apparatus 500 and the external device.
The memory 509 may be used to store software programs as well as various data. The memory 509 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 509 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 510 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the terminal device. Processor 510 may include one or more processing units; preferably, the processor 510 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 processor 510.
The terminal device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the above-mentioned embodiment of the photo classification method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned photo classification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 (12)

1. A method of classifying a photograph, comprising:
acquiring the characteristic attribute of a photo to be classified in terminal equipment;
if at least one album directory of the terminal equipment comprises a target album directory corresponding to the characteristic attribute of the photo to be classified, storing the photo to be classified in the target album directory, wherein each album directory in the at least one album directory is used for storing the photo with the characteristic attribute similarity larger than or equal to a preset threshold value;
the obtaining of the characteristic attribute of the photo to be classified in the terminal device specifically includes:
acquiring current time information, current position information, scheduling information and photo content of the photos to be classified of the terminal equipment;
determining the current shooting scene of the photo to be classified based on the current time information, the current position information and the scheduling information;
and determining the characteristic attribute of the photo to be classified based on the current shooting scene and the photo content of the photo to be classified.
2. The method of claim 1, wherein the method further comprises:
if at least one album catalog of the terminal equipment does not comprise a target album catalog corresponding to the characteristic attribute of the photo to be classified, creating an album catalog corresponding to the characteristic attribute of the photo to be classified;
and storing the photos to be classified into an album catalog corresponding to the characteristic attributes of the photos to be classified.
3. The method of claim 2, wherein the creating of the album catalog corresponding to the characteristic attribute of the photo to be classified comprises:
if the shooting scene of the photo to be classified is different from the shooting scene of the photos stored in the at least one album directory, creating an album master directory corresponding to the shooting scene;
and creating an album subdirectory corresponding to the photo content of the photo to be classified under the album main directory based on the photo content of the photo to be classified.
4. The method of claim 2, wherein the creating of the album catalog corresponding to the characteristic attribute of the photo to be classified comprises:
if the photos stored in the at least one album directory include the target photos with the same shooting scene as the photos to be classified, and the similarity between the target photos and the photo contents of the photos to be classified is smaller than a content similarity threshold value, creating album subdirectories corresponding to the photo contents of the photos to be classified under the album directory where the target photos are located.
5. The method of any of claims 1-4, further comprising:
and generating a corresponding album cover for each album directory based on the characteristic attribute of the photos stored in each album directory in the at least one album directory.
6. A terminal device, comprising:
the acquiring unit is used for acquiring the characteristic attribute of the photo to be classified in the terminal equipment;
the storage unit is used for storing the photos to be classified in a target album directory if the target album directory corresponding to the characteristic attribute of the photos to be classified is included in the at least one album directory of the terminal equipment, wherein each album directory in the at least one album directory is used for storing the photos with the characteristic attribute similarity larger than or equal to a preset threshold value;
wherein the obtaining unit is specifically configured to:
acquiring current time information, current position information, scheduling information and photo content of the photos to be classified of the terminal equipment;
determining the current shooting scene of the photo to be classified based on the current time information, the current position information and the scheduling information;
and determining the characteristic attribute of the photo to be classified based on the current shooting scene and the photo content of the photo to be classified.
7. The terminal device of claim 6, wherein the terminal device further comprises:
the creating unit is used for creating an album catalog corresponding to the characteristic attribute of the photo to be classified if at least one album catalog of the terminal equipment does not comprise a target album catalog corresponding to the characteristic attribute of the photo to be classified;
the first storage unit is used for storing the photos to be classified into the album catalog corresponding to the characteristic attributes of the photos to be classified.
8. The terminal device according to claim 7, wherein the creating unit is configured to:
if the shooting scene of the photo to be classified is different from the shooting scene of the photos stored in the at least one album directory, creating an album master directory corresponding to the shooting scene;
and creating an album subdirectory corresponding to the photo content of the photo to be classified under the album main directory based on the photo content of the photo to be classified.
9. The terminal device according to claim 7, wherein the creating unit is configured to:
if the photos stored in the at least one album directory include the target photos with the same shooting scene as the photos to be classified, and the similarity between the target photos and the photo contents of the photos to be classified is smaller than a content similarity threshold value, creating album subdirectories corresponding to the photo contents of the photos to be classified under the album directory where the target photos are located.
10. The terminal device according to any of claims 6 to 9, wherein the terminal device further comprises:
and the generating unit is used for generating a corresponding album cover for each album directory based on the characteristic attribute of the photo stored in each album directory in the at least one album directory.
11. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the photo classification method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of classifying photographs according to any one of claims 1 to 5.
CN201811451742.0A 2018-11-30 2018-11-30 Photo classification method and terminal equipment thereof Active CN109508398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811451742.0A CN109508398B (en) 2018-11-30 2018-11-30 Photo classification method and terminal equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811451742.0A CN109508398B (en) 2018-11-30 2018-11-30 Photo classification method and terminal equipment thereof

Publications (2)

Publication Number Publication Date
CN109508398A CN109508398A (en) 2019-03-22
CN109508398B true CN109508398B (en) 2020-09-15

Family

ID=65749797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811451742.0A Active CN109508398B (en) 2018-11-30 2018-11-30 Photo classification method and terminal equipment thereof

Country Status (1)

Country Link
CN (1) CN109508398B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147458A (en) * 2019-05-24 2019-08-20 涂哲 A kind of photo screening technique, system and electric terminal
CN111191064A (en) * 2019-12-27 2020-05-22 西安闻泰电子科技有限公司 Intelligent photo aggregation method, electronic equipment and storage medium
CN111371999A (en) * 2020-03-17 2020-07-03 Oppo广东移动通信有限公司 Image management method, device, terminal and storage medium
CN113407754B (en) * 2021-07-13 2023-12-15 北京达佳互联信息技术有限公司 Album generating method, apparatus, electronic device and storage medium
CN115601600A (en) * 2022-11-07 2023-01-13 长通智能(深圳)有限公司(Cn) Artificial intelligence-based image classification model training method, classification method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917126A (en) * 2012-10-11 2013-02-06 中兴通讯股份有限公司 Method and system for processing photos
CN104133917A (en) * 2014-08-15 2014-11-05 百度在线网络技术(北京)有限公司 Method and device for storing pictures in classified mode
CN104951426A (en) * 2014-03-26 2015-09-30 联想移动通信软件(武汉)有限公司 Taken photo classified processing method and device and terminal equipment
CN106933966A (en) * 2017-02-08 2017-07-07 捷开通讯(深圳)有限公司 Photo sort management, device and its mobile terminal
CN107729540A (en) * 2017-10-31 2018-02-23 努比亚技术有限公司 Method, equipment and the computer of photo classification can storage mediums
CN108241752A (en) * 2018-01-30 2018-07-03 努比亚技术有限公司 Photo display methods, mobile terminal and computer readable storage medium
CN108897757A (en) * 2018-05-14 2018-11-27 平安科技(深圳)有限公司 A kind of photo storage method, storage medium and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917126A (en) * 2012-10-11 2013-02-06 中兴通讯股份有限公司 Method and system for processing photos
CN104951426A (en) * 2014-03-26 2015-09-30 联想移动通信软件(武汉)有限公司 Taken photo classified processing method and device and terminal equipment
CN104133917A (en) * 2014-08-15 2014-11-05 百度在线网络技术(北京)有限公司 Method and device for storing pictures in classified mode
CN106933966A (en) * 2017-02-08 2017-07-07 捷开通讯(深圳)有限公司 Photo sort management, device and its mobile terminal
CN107729540A (en) * 2017-10-31 2018-02-23 努比亚技术有限公司 Method, equipment and the computer of photo classification can storage mediums
CN108241752A (en) * 2018-01-30 2018-07-03 努比亚技术有限公司 Photo display methods, mobile terminal and computer readable storage medium
CN108897757A (en) * 2018-05-14 2018-11-27 平安科技(深圳)有限公司 A kind of photo storage method, storage medium and server

Also Published As

Publication number Publication date
CN109508398A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN109508398B (en) Photo classification method and terminal equipment thereof
CN111343081B (en) Information display method and electronic equipment
CN109145142B (en) Management method and terminal for shared information of pictures
CN108234289B (en) Message display method and device and mobile terminal
CN109005286B (en) Display control method and folding screen terminal
CN109660728B (en) Photographing method and device
CN108229574B (en) Picture screening method and device and mobile terminal
CN108628985B (en) Photo album processing method and mobile terminal
CN106127829B (en) Augmented reality processing method and device and terminal
CN109819168B (en) Camera starting method and mobile terminal
CN109917979A (en) A kind of searching method and mobile terminal
CN109508399A (en) A kind of facial expression image processing method, mobile terminal
CN109495638B (en) Information display method and terminal
CN107728877B (en) Application recommendation method and mobile terminal
CN109669710B (en) Note processing method and terminal
CN111064888A (en) Prompting method and electronic equipment
CN107819936B (en) Short message classification method, mobile terminal and storage medium
CN109739406B (en) File sending method and terminal
CN109729210B (en) Information display method and terminal equipment
CN109510897B (en) Expression picture management method and mobile terminal
CN110941592A (en) Data management method and mobile terminal
CN110955788A (en) Information display method and electronic equipment
CN108595104B (en) File processing method and terminal
CN108494949B (en) A kind of image classification method and mobile terminal
CN110825288A (en) Image screening processing method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant