WO2018152822A1 - Method and device for generating album, and mobile terminal - Google Patents

Method and device for generating album, and mobile terminal Download PDF

Info

Publication number
WO2018152822A1
WO2018152822A1 PCT/CN2017/074898 CN2017074898W WO2018152822A1 WO 2018152822 A1 WO2018152822 A1 WO 2018152822A1 CN 2017074898 W CN2017074898 W CN 2017074898W WO 2018152822 A1 WO2018152822 A1 WO 2018152822A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
album
information
attribute information
mobile terminal
Prior art date
Application number
PCT/CN2017/074898
Other languages
French (fr)
Chinese (zh)
Inventor
顾星刚
汪新建
陈绍君
贺丽萍
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780087422.9A priority Critical patent/CN110337646A/en
Priority to PCT/CN2017/074898 priority patent/WO2018152822A1/en
Publication of WO2018152822A1 publication Critical patent/WO2018152822A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the embodiments of the present invention relate to the field of mobile terminals, and in particular, to a method, an apparatus, and a mobile terminal for generating an album.
  • the embodiment of the invention provides a method, a device and a mobile terminal for generating an album, which are intended to solve the problem that the existing mobile terminal needs multiple search by the user when searching for a certain tour or a certain event, which is time-consuming and laborious, thereby causing the mobile terminal Technical problems with low handling efficiency and poor user experience.
  • the embodiment of the present invention provides a method for generating an album, including: the mobile terminal acquiring a first image set, such as all the pictures that have been stored locally, the first picture set includes at least two pictures, and the first picture set
  • the attribute information of the picture includes one or more of the geographic location information, the pixel value information, the time information, and the image type information.
  • the picture in the first picture set is filtered to generate a second picture set.
  • the second picture set is a subset of the first picture set, and the attribute information of the picture in the second picture set is the same or similar; according to the attribute information of the picture in the second picture set, the album name is generated;
  • the album name is used as the name of the second album to generate an album.
  • the locally stored pictures follow the Exif standard, and the mobile terminal can read related fields for image filtering.
  • image filtering By filtering out the pictures with the same or similar attribute information and labeling, it is convenient for the user to quickly locate an event/tour, and then quickly find the picture.
  • the first is to intelligently provide users with good memories, and the second is also improved. The user's handling efficiency improves the user experience.
  • the attribute information is specifically geographic location information
  • the picture of the first picture set carries global positioning system GPS information.
  • the screening process at this time is: screening the pictures with the same GPS information or the GPS information deviation within a preset range according to the GPS information. This allows you to filter out photos with the same/similar geography, making it easy for users to recall by location or find images.
  • the attribute information is specifically pixel value information.
  • the screening process at this time is: filtering, according to the pixel value information, a picture with the same pixel value or a pixel value deviation within a preset range. In this way, the same/closed picture of the pixel information can be filtered out, so that the user can associate the photo once, and the user can quickly compare and delete the picture in the subsequent process.
  • the attribute information is specifically time information. Screening at this time The process is: according to the time information, a picture with the same shooting time or a shooting time deviation value within a preset range. Screens that match the same/closed time can be screened out for users to recall or search for photos based on time. Further, during holidays, the setting of the preset range may be different from usual, for example, the setting of the preset range of the National Day is long, and the setting of the preset range of the weekend is short, so that the time interval of the holiday can be adjusted according to the length of the holiday. , to more intelligently meet the user's image screening needs.
  • the attribute information is specifically image type information.
  • the screening process at this time is: filtering the images of the same or similar image types according to the image type information.
  • pictures with the same/similar image type can be selected, such as photos of Zhang San, photos of puppies, photos of Huashan, etc., which is convenient for the user to distinguish pictures according to people/objects/views.
  • the attribute information is specifically geographic location information and time information.
  • the screening process at this time is: screening the pictures with the same GPS information or the deviation of the GPS information within the preset range according to the GPS information; and screening the pictures with the same shooting time or the shooting time deviation value within the preset range according to the time information; Filter the photos that are searched for each other and filter out the coincident photos. In this way, photos of a certain area can be selected for a certain period of time, which is convenient for users to view and search.
  • the attribute information is specifically geographic location information and pixel value information.
  • the screening process at this time is: screening the image with the same GPS information or the deviation of the GPS information within the preset range according to the GPS information; according to the pixel value information, filtering the picture with the same pixel value or the pixel value deviation within the preset range; Filter the photos that are searched for each other and filter out the coincident photos. In this way, the same/similar photos of a certain area can be filtered out, which is convenient for the user to edit or add or delete.
  • the attribute information is specifically geographic location information and image type information.
  • the screening process at this time is: screening the pictures with the same GPS information or the GPS information deviation within a preset range according to the GPS information; screening the pictures of the same or similar image type according to the image type information; and comparing the photos searched for each other, Filter out the coincident photos.
  • photos of the same/similar types of a certain area can be screened out, such as the Great Wall photos of Beijing, such as food photos in Shenzhen, which are convenient for users to view/edit.
  • the attribute information is specifically time information and image type information.
  • the screening process at this time is: according to the time information, the pictures with the same shooting time or the shooting time deviation value are within the preset range; according to the image type information, the pictures with the same or similar image types are filtered; and the photos searched for each other are compared. , screen out the coincident photos. In this way, photographs of the same/similar size taken during a certain period of time can be screened out, such as the National Day of Zhang San, such as Huashan at dawn, which is convenient for users to view/edit.
  • the attribute information is specifically time information, location information, and image type information.
  • the screening process at this time is: according to the time information, the picture with the same shooting time or the shooting time deviation value is within the preset range; according to the GPS information, the picture with the same GPS information or the deviation of the GPS information within the preset range is screened; Type information, filter images of the same or similar image type; compare the photos searched for each other and filter out the coincident photos.
  • photos of the same/similar type of shooting in a certain period of time can be selected, such as the Beijing tour of the National Day of Zhang Sanguo, such as the Spring Festival homepage of the puppy, which is convenient for users to view/edit.
  • any combination of the above attribute information in addition to the combinations mentioned above may be used.
  • a combination of time information and pixel value information filters out pictures with the same/similar pixel information in the same time period, such as photos of the sun rising slowly at dawn.
  • a combination of pixel value information and type information filters out the same/similar image of the same type of pixel information, such as a chain photograph of a puppy running.
  • a combination of pixel value information, type information, and geographic location information filters out pixel information of a certain region and the same type.
  • Same/similar pictures such as pictures of puppies running in the same park. Many combinations can meet the user's requirements for categorizing photos and searching for pictures, and provide users with control efficiency.
  • the image in the first picture set may be filtered by using a clustering algorithm.
  • the generated album name may include attribute information common to the second picture set. For example, if the GPS information of the pictures in the second picture set is the same or similar, the album name may include the geographical location information; if the picture time information in the second picture set is the same or similar, the album name may include time information; If the image type information of the pictures in the two picture sets is the same or similar, the album name may be an image type. This is marked with text, which helps users quickly locate the characteristics of such photos.
  • the method further includes: acquiring, by the user, an instruction for triggering the first picture, where the first picture is any picture in the second image set, the instruction is used to The first picture is set as the cover of the album; in response to the instruction, the first picture is set as the cover of the album.
  • the mobile terminal when generating an album, the mobile terminal will specify a picture as the cover of the album, which may be the earliest shooting time, or the highest system score.
  • the mobile terminal can also allow the user to set the cover, and the user can select a suitable picture as the album cover, so that the album can be identified according to the user's preference, prompting the user's pleasure.
  • the user can input an instruction to modify the name of the album, and modify the name of the album to meet the needs of the user to customize the album.
  • the method further includes: acquiring an instruction for opening an album input by the user, and the mobile terminal, in response to the instruction, sequentially displaying the pictures in the second picture set in a preset order.
  • the manner of presentation is not limited, it can be a thumbnail, or it can be in the form of a slide or video.
  • the method further includes: for a newly added picture of the mobile terminal, for example, a newly taken photo of the user, the mobile terminal acquires attribute information of the newly added picture, such as geographic location information.
  • attribute information of the newly added picture such as geographic location information.
  • the time information, the image type information, and the like the mobile terminal determines that if the attribute information of the added picture is the same as or similar to the attribute information of the second picture, the added picture is added to the album.
  • the mobile terminal may display multiple albums in turn according to a time dimension, such as a shooting time, and a plurality of albums; or, for a portrait album
  • the mobile terminal may display a plurality of albums in turn according to the degree of intimacy with the user; or, the user may pre-set the order, and then sequentially display the plurality of albums in the order preset by the user.
  • an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a display.
  • the memory stores the code.
  • a processor configured to read code in the memory, for performing: acquiring a first picture set, where the first picture set includes at least two pictures, and attribute information of the picture in the first picture set includes geographical location information, Having a plurality of pixel value information, time information, and image type information; filtering the picture in the first picture set according to the attribute information to generate a second picture set, where the second picture set is the first a subset of the picture set, the attribute information of the picture in the second picture set is the same or similar; generating an album name according to the attribute information of the picture in the second picture set; using the album name as the second picture set The name of the generated album.
  • a display for displaying the album and the album name.
  • the mobile terminal in the embodiment of the present invention may also be used to perform
  • the method flow in the various possible implementations mentioned in the first aspect may be invoked by the same or corresponding technical features, and the corresponding beneficial effects may also be implemented, and no further details are provided herein.
  • an embodiment of the present invention provides an apparatus, where the apparatus includes: a first acquiring module, configured to acquire a first picture set, where the first picture set includes at least two pictures, and the first picture set The attribute information of the picture includes at least one of geographic location information, pixel value information, time information, and image type information; a screening module, configured to filter the picture in the first picture set, generate a second picture set, and the second The image set is a subset of the first set of pictures, and the attribute information of the pictures in the second set of pictures is the same or similar; the first generating module is configured to generate an album according to attribute information of the pictures in the second set of pictures a second generating module, configured to generate an album by using the album name as the name of the second photo set.
  • the apparatus in the embodiments of the present invention may also be used to perform the method flow in the multiple possible implementations mentioned in the first aspect, the same or corresponding technical features. It can be invoked, and its corresponding beneficial effects can also be achieved, and will not be repeated here.
  • the picture in the existing picture set by reading the attribute information of the picture in the existing picture set, the pictures with the same or similar attribute information are filtered out, and the album name is generated according to the attribute information to form an album.
  • the user can quickly locate an event/tour, thereby quickly finding a picture, improving the user's control efficiency and improving the user experience.
  • FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a source of picture material according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a software module according to an embodiment of the present disclosure.
  • FIG. 4 is a flowchart of a method for data clustering according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a picture clustering according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for data clustering according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for generating an album according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a UI interface for presenting an album according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a UI interface for presenting an album according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a UI layout of an album according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a UI layout of an album according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a UI layout of an album according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, where the terminal includes a processor, a memory, an input device, a display device, a control device, and the like.
  • the input device and the control device have an intersection, and in some scenarios, may be the same electronic device, such as a fingerprint recognizer; in some scenarios, different electronic devices may be used, such as the input device being a touch screen and the control device being a gyro sensor.
  • the invention provides an embodiment of a mobile terminal, and a schematic structural diagram thereof is shown in FIG. 1 .
  • the illustrated mobile terminal 100 is merely an example, the actual product may have more or fewer components than those shown in FIG. 1, two or more components may be combined, or may be different Component configuration.
  • the mobile terminal shown in the figure can be used to perform the method as described in FIG. 4 or FIG. 6 or FIG.
  • the various components shown in FIG. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the mobile terminal 100 includes an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (Wireless Fidelity) module 170. , processor 180, and power supply 190 and other components.
  • RF Radio Frequency
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 180 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • 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), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile terminal 100 by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data (such as audio data, phone book, etc.) created according to the use of the mobile terminal 100, and the like.
  • memory 120 can include high speed random access memory, and can 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 input unit 130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal 100.
  • the input unit 130 may include a touch panel 131 and other input devices 132.
  • the touch panel 131 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is capable of receiving commands from the processor 180 and executing them.
  • the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 may also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various menus of the mobile terminal 100.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event. The type provides a corresponding visual output on display panel 141.
  • the touch panel 131 and the display panel 141 are two independent components to implement the input and input functions of the mobile terminal 100 in FIG. 1 , in some embodiments, the touch panel 131 and the display panel 141 may be The input and output functions of the mobile terminal 100 are implemented by integration.
  • the mobile terminal 100 may also include at least one type of sensor 150, such as a fingerprint sensor, a light sensor, a motion sensor, and other sensors.
  • the fingerprint sensor is used to identify fingerprint information input by the user.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 and/or when the mobile terminal 100 moves to the ear. Backlighting.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • attitude of the mobile terminal such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors that the mobile terminal 100 can also configure, This will not be repeated here.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 100.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and the audio data is output to the RF circuit 108 for transmission to, for example, another mobile terminal, or the audio data is output to the memory 120 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile terminal 100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 1 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 100, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the mobile terminal 100 that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120.
  • the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the mobile terminal 100 also includes a power source 190 (such as a battery) that supplies power to the various components.
  • a power source 190 such as a battery
  • the power source can It is logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system.
  • the mobile terminal 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • FIG. 2 is a schematic diagram of a source of picture material according to an embodiment of the present invention.
  • the pictures in the album in the embodiment of the present invention are derived from multimedia files.
  • the multimedia file includes at least two types of pictures and videos, for example, a screenshot of the video, and the two types may be local to the mobile terminal or may be in the cloud.
  • the format of the picture may be JPEG/PNG/GIF/BMP, and the format of the video may be MP4 or the like. Some pictures follow the Exif standard, and the relevant data information of the picture can be read accordingly. If the Exif standard is not followed, the mobile terminal can read the related data information of the picture by other means.
  • the present invention provides a method for intelligently generating a photo album of a photo taken by an important event, thereby improving the user experience, in view of the fact that the existing product cannot meet the needs of the user to quickly and easily view the picture of the past important event.
  • its software system framework may include modules as shown in FIG. These modules may be software modules, stored in memory 120 as shown in FIG. 1, and invoked by processor 180 when the mobile terminal is running, performing the method as described in FIG. 4 or FIG. 6 or FIG.
  • the data collection module 210 is configured to collect data of each picture in the original album, such as a shooting time, a shooting location, an RGB value of each pixel in the picture, and the like.
  • the original album can include multiple types of images, such as photos taken by users, network downloads, screenshots, and the like.
  • the data information of the image is read from the image of the Exif data, including the aperture, shutter, white balance, ISO, focal length, date and time, and the shooting conditions as well as the camera brand, model, color coding, and the like. Sounds recorded during shooting, as well as GPS global positioning system data, thumbnails, etc.
  • the picture creation time is obtained by reading the DateTimeOriginal field of the picture, reading the GPSLatitude field of the picture to obtain the latitude information, reading the GPS Longitude field of the picture to obtain the information, reading the GPSAltitude field of the picture to obtain the altitude information, and reading the picture.
  • the GPSTimeStamp field gets the GPS timestamp information of the picture.
  • the data analysis processing module 220 analyzes the start time point and the end time point of each event according to the collected picture information.
  • the start time is selected as the start time of the picture
  • the end time point is used as the end time of the picture selection, and the pictures in the time period are collectively formed into an album.
  • the picture in the time period between the start time point and the end time point may be analyzed to obtain data such as location relevance, image similarity, image category, etc., according to location consistency, Principles such as image similarity, image category correlation, etc., will form a duplicate picture in the album, a place inconsistency picture, a category irrelevant picture, and preferably a picture generation album.
  • data analysis processing module 220 the steps performed by data analysis processing module 220 are described as follows:
  • the time data is sequentially arranged: t1, t2, t3...
  • clustering algorithm For the one-dimensional data of time, clustering algorithm is used to cluster to form a set.
  • Existing commonly used clustering algorithms mainly include partition-based clustering, represented by K-Means clustering algorithm; density-based clustering, represented by DBSCAN Clustering algorithms; and hierarchical-based clustering.
  • partition-based clustering represented by K-Means clustering algorithm
  • density-based clustering represented by DBSCAN Clustering algorithms
  • hierarchical-based clustering Taking DBSCAN as an example, the principle is that within a specified radius, the number of points reaches the minimum number to form a class, and adjacent classes are automatically merged to form a class with a larger span.
  • the point in time in the class is the point in time within the event that occurs, and the span of the class is the time span of the event that the user has.
  • the DBSCAN algorithm is used to first determine the cluster radius radius and the minimum number of minutes minPts.
  • the clustering radius of the set time dimension is 12 hours, and the minimum number of points is 10.
  • the cluster radius and the minimum point value can be adjusted according to actual needs.
  • the clustering radius determines the granularity of the class generated by the clustering; the minimum number of points determines whether the clustering algorithm can generate the threshold of the class.
  • the time data is clustered by the clustering algorithm to generate each class (the set of time points): ⁇ t1, t1...ti ⁇ , ⁇ tm, tm+1, tm+ 2...tm+n ⁇ ...
  • an interval time gapTime that allows the merged class can be set. Compare the maximum time and minimum time of two adjacent classes. When the interval between the two is less than gapTime, the two classes are merged to form a new class. For example: two classes ⁇ A_minTime, A_maxTime ⁇ , ⁇ B_minTime, B_maxTime ⁇ . When the difference between A_maxTime and B_minTime is less than gapTime, the two classes are merged into ⁇ A_minTime, B_maxTime ⁇ . For the National Day, New Year, Christmas and other events often span a few days, increase the gapTime value, making the scattered classes in the holiday easier to merge into a larger class. Through this merge optimization method, the images of the entire event process that are classified into several similar classes by the clustering algorithm are merged into one class according to their temporal similarity.
  • the minimum time and maximum time are the start time and end time of the user event, that is, the start and end time of the album.
  • pictures in the same album (same category) time range can be given an identifier of the album, such as a new year album set.
  • the album can be generated based on the two dimensions of location and time.
  • the pictures are classified by the same place division.
  • the user pictures are classified into different collections in units of cities.
  • a clustering algorithm is used for each picture set having the same place, and the clustering parameters are appropriately adjusted. For example, increase the cluster radius of the time dimension and increase the minimum number of points to reach the album that generates the pictures of the last few weeks of the resident, and the albums of the pictures for a few days in a certain city.
  • the album is generated by the two dimensions of location and time, and the location is divided firstly, and time clustering is assisted to generate a photo album with a location and a span of time.
  • the albums generated according to the time division provide a different style, so as to meet the needs of the user to generate different albums according to different time and place.
  • the processing time of the clustering algorithm may be long, and the data to be clustered may be divided into smaller granularities and then clustered in batches, thereby improving Clustering efficiency.
  • the radius of the DBSCAN algorithm when the adjacent image data spacing exceeds the cluster radius, the two data cannot be aggregated into the same class. According to this condition, we can divide the cluster data. First, the clustering data is sorted; secondly, all the data to be clustered are traversed, and the space before and after the clustering radius is found. In the case, the data before and after the cut is cut; and the separately separated data are clustered separately.
  • the logic is that for a large amount of data, clustering is not calculated by an algorithm at one time. Instead, it is divided into small pieces of data and sent to the algorithm to calculate clusters, which can improve the efficiency of the algorithm. For example, the user's mobile phone used 2 years, a total of 1000 photos, in the clustering is not 1000 together to the algorithm to calculate the cluster, but the photo time is all sorted, calculate the time interval of the adjacent photos, when the interval is a certain value When it is separated, the cluster is calculated separately for the algorithm.
  • the basic flow of batch clustering is shown in Figure 4: S410, the clustering data is sorted, for example, the above 1000 images are sorted. S420, set the starting position, for example, the first one of the 1000 photos. S430: Calculate the distance of the adjacent data according to the dimensional criteria such as time and place; for example, determine the difference of the shooting time of the adjacent pictures among the 1000 pictures according to the time standard. S440, determining whether the distance exceeds a cluster radius, the cluster radius may be a preset time interval, for example, 2 days; if the distance does not exceed the radius, repeating S430; if the distance exceeds the radius, the adjacent two pieces are considered The images belong to different classes and execute S450.
  • S450 acquiring data between the starting position and the current position, that is, acquiring a picture between the first to the nth sheets; S460, for the above
  • the data is clustered, for example, DBSCAN clustering is performed on the pictures between the first to the nth sheets.
  • S470 the update start position is the current position, that is, the n+1th photo can be set as the start position. If it is determined in S480 that the photo of the starting position is not the photo with the latest shooting time in the gallery, the steps of S430-S470 are repeated; if it is determined that the photo is the latest shooting time, the clustering ends, according to The clustering result generates an album.
  • the second step whether the data to be clustered is within the radius of the existing cluster boundary, when the condition is met, the data is clustered into such a class, and the boundary of the existing cluster is updated.
  • the third step when the existing cluster boundary changes, the second step is repeated until the existing cluster boundary no longer changes. After the second step and the third step are completed, the remaining data to be clustered may no longer be clustered into the existing data, and therefore, the remaining data to be clustered may be independently clustered.
  • FIG. 5 is a schematic diagram of a picture clustering according to an embodiment of the present invention.
  • a line ABCDE is used to represent photo data, where ABC is a clustered photo, and DE is a new shot.
  • the photo, the square is used to represent the existing photo clustering.
  • the first stage diagram is used to identify at least 5 photos such as ABCDE on the mobile phone, and at least 4 clusters.
  • ABC is a photo that has been clustered, and thus, in the schematic diagram of the second stage, it is placed in a box.
  • Cluster analysis of D photos to determine the attachments to cluster with ABC can be simply understood as the distance in S440 is less than the cluster radius, then add D to the existing clusters of ABC, E photos and C photos, etc.
  • the extension of the existing cluster is expanded, and then E is added. If the photo is compared with the existing cluster and meets the clustering conditions, it is added to the existing cluster and the extension of the existing cluster is updated, as shown in the fourth stage.
  • the clustering processing scheme of the incremental data may be as shown in FIG. 6: S501, acquiring data to be clustered, such as the D photo and the E photo described above. S502. Acquire existing cluster data, such as the above ABC photo. S503, judging whether the cluster already exists, if present, as in the example in FIG. 5 above, executing S506; if there is no existing cluster, performing steps S504 and S505, that is, performing the method of clustering the new data.
  • data to be clustered is input, for example, a D photo and an E photo are input into a clustering algorithm.
  • the terminal processor traverses the data to be clustered, for example, acquiring attribute information of the D photo and the E photo. S508.
  • Step S510 determines whether the data to be clustered is within a radius of the existing cluster. If the radius is within the radius, remove the photo from the data to be clustered (S509), and add the photo to the existing cluster. In the class (S510), for example, after determining that the D photo is within the radius, the D photo is added to the existing cluster. Because of the introduction of new data, the existing clustering range is changed, step S511 is performed, the existing clustering range is extended, and then the step of S512 is performed to determine whether it is convenient to end. If it is not within the radius, step S512 is directly performed to determine whether the traversal is over. If the traversal has not been completed, the steps of S507-S512 are repeatedly performed.
  • the process of S506-S513 may be repeatedly performed for the purpose of clustering accuracy; if no change occurs, the clustering is to be clustered.
  • the data is input to the original cluster (S504), and a new data cluster is generated (S505).
  • the preference of the pictures in the album The photo album has been automatically generated in the above step (1). However, the photo may not be included in the photo album. In this case, the image is further optimized, and the image unrelated to the main body of the photo album is filtered to improve the user experience.
  • the following principles are exemplified, and other preferred principles may be included in the actual technical implementation, which is not limited in this embodiment. It should be noted that the preferred principle may be applied at the same time, or only one of them may be applied.
  • the mobile terminal may calculate the RGB values of the pixels of the image as input by using an image similarity algorithm, such as a Perceptual Hash Algorithm (PHA).
  • PKA Perceptual Hash Algorithm
  • the picture type is identified by an image recognition algorithm: a person, a food, a landscape, a document, and the like.
  • the mobile terminal can analyze the proportion of each category of images in the album and formulate rules, and remove the image categories that occupy a small proportion and have low category relevance, thereby ensuring the consistency of the album theme. For example, the minimum percentage of the picture categories allowed to be retained is set to 5%. When there is a small proportion of document pictures in the landscape-based album, if the proportion of the document pictures is 3%, the pictures of the document category are removed. Further, the largest picture category in the album can be obtained, and Select a photo from this image category as the album cover.
  • the face recognition algorithm can recognize the face and mark the face identifier. Remove the individual face images that exist in the album to ensure that the photos of the characters appearing in the album are the user or an acquaintance.
  • an album contains 16 photos, 13 of which are photos of Zhang San, and 1 is a photo of Li Si, according to the optimization principle of face recognition, the photo of Li Si is removed in the album.
  • the latitude and longitude data is converted into location data.
  • the location data may include zoning information at different administrative levels, such as countries, provinces, cities, districts, roads, house numbers, and the like.
  • the mobile terminal can set the ratio of the maximum similarity percentageX.
  • the data storage module 230 is configured to perform key information of each album obtained by the data analysis processing module 220 (eg, start time, end time, maximum similarity of the album, cover of the album, and identifier of the image belonging to a certain album). storage.
  • the album display module 240 is configured to read key information of the album stored by the data storage module 230.
  • the album list interface displays each album in turn, and reads the cover photo based on the cover data and displays it as an album cover.
  • the combination of the album time and the most similar location name is the album name, for example, "National Day in Shanghai”. Open the album, read all the images with this album identifier, and then display them in a certain order.
  • the clustering process can be further optimized, for example, the holiday enhances the merge trend of the adjacent albums; the non-holiday weakens the merge trend of the adjacent albums.
  • the holiday time period refers to the holiday of multi-day holidays such as New Year's Day, Labor Day, and National Day. In different countries, it can be set according to the local conditions of each country. It can also be set by the user autonomously. For example, the user can take annual leave, and the mobile terminal can provide a holiday setting entrance and set a certain period of time as a holiday.
  • an embodiment of the present invention provides a method for generating an album, and the method includes:
  • the mobile terminal acquires a first picture set, where the first picture set includes at least two pictures, and the attribute information of the picture in the first picture set includes geographic location information, pixel value information, time information, and image type information. at least one.
  • the mobile terminal acquires the first picture set, and presents all the pictures that have been stored locally on the UI interface for the mobile terminal, including not only the user himself, but also the user downloads from the server, and related screenshots.
  • the geographical location information may be GPS geographical location information, or other information used to identify the geographical location, such as latitude and longitude, altitude, national, city, county, and the like.
  • the pixel value information may be an RGB value of each pixel, or may be summary information generated by the processor comprehensively analyzing the RGB values of the respective pixels.
  • the time information can be specific to the year, month, and day, or can be specific to a certain time, and can also be a holiday.
  • Image type information which is used to identify the type of subject of the image, such as a portrait picture, a landscape picture, or an animal and plant picture.
  • the attribute information may include one of the above information, or may be any combination of the above information, and may be other information that can be used to identify the attribute of the picture.
  • S720 Filter, according to the attribute information, the picture in the first picture set to generate a second picture set, where the second picture set is a subset of the first picture set, and the second picture set is a picture
  • the attribute information is the same or similar.
  • the screen screening can be performed by the screening method mentioned in the above embodiments.
  • the attribute information of the picture is the same, which means that the geographical location information, the time information, the image type information, the pixel value information, and the like mentioned above are the same, for example, the geographical position is the same, and/or the time is the same, and/or the image type is the same, and / or, the pixel value information is the same.
  • the attribute information of the picture is similar, which means that the geographical location information, time information, image type information, pixel value information, etc. mentioned above are similar, or the deviation is within a preset range. specifically:
  • the geographic location information is similar, and the GPS location of the two pictures belongs to a province/city/district county.
  • the deviation of the geographic coordinates of the two pictures may be within a preset range, or the deviation of the latitude and longitude is within a preset range.
  • the time information is similar. It can be that the two pictures are taken on the same day/week/month/year, or on the same holiday.
  • the holiday can be determined according to local laws and regulations, or the time difference between two pictures can be preset. Within the range, for example, the time interval is different by 2 days, which may be specifically set by the user, or may be determined by the mobile terminal according to regular learning.
  • the preset range of the shooting time deviation value may be longer than the preset range of the non-holiday shooting time deviation value, for example, the National Day 7 days can be counted as a range, and the usual weekend is counted as a range. .
  • the image type information is similar, and the two pictures may be the same person/item/animal/landscape, or may be the same group; they may be of the same type, for example, animals, plants, and scenery.
  • the pixel value information is similar, and the deviation of the RGB values of the two pictures may be within a preset range.
  • the second picture set may be any picture of the first picture set, such as a certain number of pictures, or may be the first picture set.
  • the filtered second image set is used as an album, and the name of the album can be labeled according to the attribute information, and the second image set can be distinguished from other image sets by labeling the second image set.
  • the naming of the album can refer to the following rules:
  • the attribute information of the picture in the second picture set includes GPS information
  • generate an album name including the geographical location information for example, Beijing play.
  • a plurality of attribute information may be considered in naming.
  • the GPS information and the time information are the same, and the time and place labels are generated, such as the National Day Beijing Tour.
  • the same information such as GPS information and image type information, a place, a type of tag, such as Xi'an Huashan, is generated.
  • the naming helps the user to quickly know the information of the picture set and improves the recognition rate of the picture.
  • the mobile terminal can generate a plurality of albums such as "Weekend in Zhoushan”, “Ten Days in Europe”, “National Day” and the like. If the user wants to open the album, the user can input the viewing instruction, and the mobile terminal according to the viewing instruction. Open the album. At this time, the mobile terminal presents the picture in the album in at least two ways: First, as shown in part A of FIG. 9, the picture in the album is presented in the form of a thumbnail on the UI interface. The specific image can be enlarged to display the image clicked by the user after the user clicks. After the user clicks on the menu item of the album, a dialog box pops up asking the user whether to rename or delete the album, as shown in part B of FIG.
  • a dialog box pops up asking the user whether to rename or delete the album, as shown in part B of FIG.
  • Any photo of the album after obtaining the long press operation of the user, may select a picture that the user has long pressed, and provide functions such as sharing and deleting for the user to select, the picture may be displayed differently from other pictures, as shown in FIG. 9C. Part of it.
  • the pictures in the second picture set are sequentially played in a preset order, such as the time of the photo shooting, the relevance of the photo and the theme of the photo album, and the geographical position of the photo shooting.
  • FIG. 10 part A in FIG. 10 is a schematic diagram of only one album of the mobile terminal, and part B in FIG. 10 is a schematic diagram of generating two albums by the mobile terminal, FIG.
  • the C part, the D part, the E part, the F part, the G part, the H part, and the I part respectively generate three, four, five, six, seven, eight, nine album layouts for the mobile terminal schematic diagram.
  • the layout rule may be that the newly generated album is placed in the most easily seen position of the user, so that the user can check whether the generation of the album is reasonable, or facilitate the user to share the photo with the friend.
  • the layout rule can be the album with the longest shooting time, placed in the most easy-to-see position of the user, so that the user can recall the previous interesting things.
  • the layout rule can be the most memorable album, placed in the most easily seen position of the user, for example, the photo album of the user's wedding photo takes precedence over the album that the user goes to the park during the weekend.
  • the user can set the corresponding layout rules.
  • FIG. 11 provides a schematic diagram of presenting an album in accordance with a corresponding layout rule. Further, in FIG.
  • an optimal recollection album may be generated on the basis of the above albums, and the best conference album may be the most memorable photo in a certain period of time in the past, or may be the past The most memorable photo of a place, such as the "Reminiscence of the Year - 2016" at the bottom of Figure 11.
  • Album layouts can also have different dimensions, such as laying out albums by time dimension, or laying out albums by image type. As shown in FIG. 12, the upper half of the UI interface displays the album in time/place dimensions, and the lower half displays the album in the character dimension, wherein the name of the character album may be the name of the character.
  • the mobile terminal may further acquire a swipe gesture, a click operation, and the like input by the user, where the trigger object is the first picture in the second picture set, and the instruction is used to use the first picture.
  • the trigger object is the first picture in the second picture set
  • the instruction is used to use the first picture.
  • Set as the cover of the album after the mobile terminal acquires the instruction, in response to the instruction, the first picture is set as the cover of the album.
  • the user can set the photo he likes as the album cover to better identify the album, which is convenient for the user to personalize the album.
  • the mobile terminal may further acquire an instruction input by the user, where the instruction is used to modify the name of the album; and the mobile terminal responds to the instruction to modify the name of the album according to the user's needs.
  • the mobile terminal may perform the method as shown in FIG. 6 to acquire attribute information of the second picture; If the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, the second picture is added to the album.
  • an embodiment of the present invention further provides a mobile terminal, which can be used to perform the method as shown in FIG. 4 , FIG. 6 or FIG. 7 , and the same or corresponding technical features can be used in the foregoing embodiments.
  • the structure of the mobile terminal may be the same as or different from the structure of the mobile terminal illustrated in FIG. 1.
  • the mobile terminal includes a memory 1310, a processor 1320, and a display 1330.
  • the memory 1310 stores a code.
  • the processor 1320 is configured to read the code in the memory, to perform: acquiring a first picture set, where the first picture set includes at least two pictures, and attributes of the pictures in the first picture set Information Include at least one of geographic location information, pixel value information, time information, and image type information; and filtering the image in the first image set according to the attribute information to generate a second image set, where the second image set is a subset of the first set of pictures, the attribute information of the pictures in the second set of pictures is the same or similar; generating an album name according to the attribute information of the pictures in the second set of pictures; The name of the second photo collection, generating an album.
  • the display 1330 is configured to display the album and the album name.
  • the picture with the same or similar attribute information are filtered out, and the album name is generated according to the attribute information to form an album.
  • the user can quickly locate an event/tour, thereby quickly finding a picture, improving the user's control efficiency and improving the user experience.
  • the attribute information includes geographical location information
  • the picture of the first picture set carries global positioning system GPS information
  • the processor is specifically configured to: filter the GPS information according to the GPS information. Pictures with the same or GPS information deviation within the preset range.
  • the attribute information includes pixel value information
  • the processor is specifically configured to: according to the pixel value information, filter a picture with the same pixel value or a pixel value deviation within a preset range.
  • the attribute information includes time information; the processor is specifically configured to: according to the time information, screen a picture with the same shooting time or a shooting time deviation value within a preset range.
  • the preset range of the shooting time deviation value is set to a first value; if the shooting time is a non-holiday, the preset range of the shooting time deviation value is set to a second value; The first value is greater than or equal to the second value.
  • the attribute information includes image type information; and the processor is specifically configured to: filter, according to the image type information, a picture of the same or similar image type.
  • the processor is specifically configured to filter, by using a clustering algorithm, a picture in the first picture set.
  • the processor is specifically configured to: if the attribute information of the picture in the second picture set includes GPS information, generate an album name including location information; if the picture in the second picture set The attribute information includes time information, and generates an album name including time information; if the attribute information of the picture in the second picture set includes image type information, generates an album name including the image type.
  • the mobile terminal further includes an input device, where the input device is configured to acquire a first instruction input by the user, where the triggering object of the first instruction is the first image in the second image set.
  • the first instruction is configured to set the first picture as a cover of the album; the processor is further configured to: set the first picture as a cover of the album in response to the first instruction .
  • the mobile terminal further includes an input device, where the input device is configured to acquire a second instruction input by the user, the second instruction is used to modify the name of the album, and the processor further uses And in response to the second instruction, modifying the album name.
  • the mobile terminal further includes an input device, the input device is configured to acquire a third instruction input by the user, and the third instruction is used to open the album; the processor is further configured to: Responding to the third instruction; the display is further configured to sequentially present the pictures in the second picture set in a preset order.
  • the memory is further configured to: store a second picture, where the second picture is a newly acquired picture of the mobile terminal; and the processor is further configured to acquire an attribute of the second picture Information: if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, adding the second picture to the album.
  • the memory further stores at least one first album; the display is further configured to sequentially display the album and the at least one first album according to a time dimension; or, for a portrait album, Press Displaying the album and the at least one first album in sequence according to the degree of intimacy of the user of the mobile terminal; or sequentially displaying the album and the at least one album in an order preset by the user.
  • the embodiment of the present invention further provides a device, which can be used to perform the method as shown in FIG. 4 or FIG. 6 or FIG. 7, and the same or corresponding technical features can be used to describe the foregoing embodiment.
  • the corresponding beneficial effects can also be achieved, and will not be repeated here.
  • the device includes: a first obtaining module 1410, configured to acquire a first picture set, where the first picture set includes at least two pictures, and attribute information of the pictures in the first picture set includes geographic location information and pixel value information. At least one of time information and image type information; a screening module 1420, configured to filter a picture in the first picture set, to generate a second picture set, where the second picture set is a subset of the first picture set And the attribute information of the picture in the second picture set is the same or similar; the first generation module 1430 is configured to generate an album name according to the attribute information of the picture in the second picture set; and the second generation module 1440 is configured to The album name is used as the name of the second album set to generate an album.
  • the picture with the same or similar attribute information are filtered out, and the album name is generated according to the attribute information to form an album.
  • the user can quickly locate an event/tour, thereby quickly finding a picture, improving the user's control efficiency and improving the user experience.
  • the attribute information includes geographic location information
  • the picture of the first picture set carries global positioning system GPS information
  • the screening module is specifically configured to: filter the GPS information according to the GPS information. Pictures with the same or GPS information deviation within the preset range.
  • the attribute information includes pixel value information
  • the screening module is specifically configured to: according to the pixel value information, filter a picture with the same pixel value or a pixel value deviation within a preset range.
  • the attribute information includes time information; and the screening module is specifically configured to: according to the time information, screen the pictures with the same shooting time or the shooting time deviation value within a preset range. Further, if the shooting time is a holiday, the preset range of the shooting time deviation value is set to a first value; if the shooting time is a non-holiday, the preset range of the shooting time deviation value is set to a second value; The first value is greater than or equal to the second value.
  • the attribute information includes image type information; and the screening module is specifically configured to: filter, according to the image type information, a picture with the same or similar image type.
  • the screening module is specifically configured to filter the pictures in the first picture set by using a clustering algorithm.
  • the first generating module is specifically configured to: if the attribute information of the picture in the second picture set includes GPS information, generate an album name including geographic location information; if the second image set The attribute information of the picture includes time information, and generates an album name including time information; if the attribute information of the picture in the second picture set includes image type information, generates an album name including the image type.
  • the device further includes: a second acquiring module, configured to acquire a first instruction input by the user, where the triggering object of the first instruction is a first picture in the second picture set, The first instruction is configured to set the first picture as a cover of the album; the first response module is configured to set the first picture as a cover of the album in response to the first instruction.
  • a second acquiring module configured to acquire a first instruction input by the user, where the triggering object of the first instruction is a first picture in the second picture set, The first instruction is configured to set the first picture as a cover of the album
  • the first response module is configured to set the first picture as a cover of the album in response to the first instruction.
  • the device further includes: a third acquiring module, configured to acquire a second instruction input by the user, the second instruction is used to modify the name of the album; and a second response module is configured to respond to the The second instruction is described to modify the album name.
  • the device further includes: a fourth acquiring module, configured to acquire a third instruction input by the user, the third instruction is used to open the album; and a third response module is configured to respond to the The third instruction sequentially presents the pictures in the second picture set in a preset order.
  • the device further includes: a storage module, configured to store a second picture, where the second picture is a newly acquired picture of the mobile terminal; and a fifth acquiring module, configured to acquire the second The attribute information of the picture; the adding module, if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, for adding the second picture to the album.
  • a storage module configured to store a second picture, where the second picture is a newly acquired picture of the mobile terminal
  • a fifth acquiring module configured to acquire the second The attribute information of the picture
  • the adding module if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, for adding the second picture to the album.
  • the mobile terminal further includes at least one first album;
  • the apparatus further includes a display module, configured to sequentially display the album and the at least one first album according to a time dimension; or, for a portrait album, sequentially displaying the album and the at least one first album according to a degree of intimacy with a user of the mobile terminal; or sequentially displaying the album and the at least one album in an order preset by a user .
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium can store a program, and the program includes a method as shown in FIG. 4 or FIG. 6 or FIG. 7 , and the same or corresponding technical features are
  • the description of the foregoing embodiments may be invoked, and the corresponding advantageous effects may also be implemented, and no further details are provided herein.
  • the functional modules in various embodiments of the present invention may be integrated into one processing unit module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Studio Devices (AREA)

Abstract

Embodiments of the present invention relate to the technical field of communications, and provide a method and device for generating an album, and a mobile terminal. The method comprises: obtaining a first image collection, the first image collection at least comprising two images, and attribute information of images in the first image collection comprising one or more of geographical location information, pixel value information, time information, and image type information; filtering the images in the first image collection according to the attribute information to generate a second image collection, the second image collection being a sub-collection of the first image collection, and the attribute information of images in the second image collection being the same or similar; generating an album name according to the attribute information of the images in the second image collection; and generating an album by using the album name as the name of the second image collection. The method can make it convenient for a user to quickly locate a certain activity/travel so as to quickly search for images, thereby improving the operation efficiency of the user and improving user experience.

Description

一种生成相册的方法、装置和移动终端Method, device and mobile terminal for generating album 技术领域Technical field
本发明实施例涉及移动终端技术领域,尤其涉及一种生成相册的方法、装置和移动终端。The embodiments of the present invention relate to the field of mobile terminals, and in particular, to a method, an apparatus, and a mobile terminal for generating an album.
背景技术Background technique
随着移动互联网的发展,智能移动终端不断普及,图库功能已成为用户使用频率最高的功能之一。用户往往会存储大量图片,有些是使用移动终端的相机拍摄的,有些是从网络下载的,有些是通过云服务客户端下载的。这些图片对用户的意义各不相同。有些很重要,如一次难忘的旅行中拍摄的照片;有些价值有限,如商场中拍摄的商品价格,从网络下载的壁纸图片。With the development of mobile Internet, smart mobile terminals have become popular, and the library function has become one of the most frequently used functions. Users tend to store a large number of pictures, some are shot using a mobile terminal camera, some are downloaded from the network, and some are downloaded through the cloud service client. These pictures have different meanings to users. Some are important, such as photos taken during an unforgettable trip; some are limited in value, such as the price of a product shot in a mall, and a wallpaper image downloaded from the web.
如果用户想要找到某个重要时刻的照片,回味下美好时光,从存储的大量图片中寻找会非常困难。例如,想要回看某次旅行的照片,却忘了具体的日期,只能相册中慢慢翻页寻找;即使找到了,该时间段的照片中除了旅行中拍摄的照片外,可能还会夹杂着与旅行主题无关的图片,浏览的体验非常糟糕。If the user wants to find a photo of an important moment, it is very difficult to find a good time and look for a large number of images stored. For example, if you want to look back at a photo of a trip, but forget the specific date, you can only slowly flip through the page to find it; even if it is found, the photo of the time period may be in addition to the photo taken during the trip. With a picture that has nothing to do with the travel theme, the browsing experience is very bad.
发明内容Summary of the invention
本发明实施例提供一种生成相册的方法、装置和移动终端,旨在解决现有移动终端在查找某次旅游或某次活动的图片时,需要用户多重查找,费时费力,由此导致移动终端操控效率低、用户体验差的技术问题。The embodiment of the invention provides a method, a device and a mobile terminal for generating an album, which are intended to solve the problem that the existing mobile terminal needs multiple search by the user when searching for a certain tour or a certain event, which is time-consuming and laborious, thereby causing the mobile terminal Technical problems with low handling efficiency and poor user experience.
第一方面,本发明实施例提供了一种生成相册的方法,包括:移动终端获取第一图片集,例如本地已经存储的所有图片,该第一图片集至少包括两张图片,第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的一个或多个;根据所述属性信息,筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近;根据所述第二图片集中的图片的属性信息,生成相册名称;以所述相册名称作为所述第二图片集的名称,生成相册。一种实现中,本地存储的图片遵循Exif标准,移动终端可读取相关字段进行图片筛选。通过将属性信息相同或相近似的图片筛选出来,打上标签,可方便用户快速地定位某次活动/旅游,进而快速查找图片,一是智能化地为用户提供美好的回忆,二来也提高了用户的操控效率,提升了用户体验。In a first aspect, the embodiment of the present invention provides a method for generating an album, including: the mobile terminal acquiring a first image set, such as all the pictures that have been stored locally, the first picture set includes at least two pictures, and the first picture set The attribute information of the picture includes one or more of the geographic location information, the pixel value information, the time information, and the image type information. According to the attribute information, the picture in the first picture set is filtered to generate a second picture set. The second picture set is a subset of the first picture set, and the attribute information of the picture in the second picture set is the same or similar; according to the attribute information of the picture in the second picture set, the album name is generated; The album name is used as the name of the second album to generate an album. In one implementation, the locally stored pictures follow the Exif standard, and the mobile terminal can read related fields for image filtering. By filtering out the pictures with the same or similar attribute information and labeling, it is convenient for the user to quickly locate an event/tour, and then quickly find the picture. The first is to intelligently provide users with good memories, and the second is also improved. The user's handling efficiency improves the user experience.
结合第一方面,在一种可能的实现方式中,属性信息具体为地理位置信息,所述第一图片集的图片携带有全球定位***GPS信息。此时的筛选过程为:根据所述GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片。如此可将地理位置相同/相近的照片筛选出来,便于用户依据地理位置进行回忆,或查找图片。With reference to the first aspect, in a possible implementation manner, the attribute information is specifically geographic location information, and the picture of the first picture set carries global positioning system GPS information. The screening process at this time is: screening the pictures with the same GPS information or the GPS information deviation within a preset range according to the GPS information. This allows you to filter out photos with the same/similar geography, making it easy for users to recall by location or find images.
结合第一方面,在一种可能的实现方式中,属性信息具体为像素值信息。此时的筛选过程为:根据所述像素值信息,筛选像素值相同或像素值偏差在预设范围内的图片。如此可将像素信息相同/相近的图片筛选出来,便于用户将照片关联在一次,也便于用户在后续过程中删除/保留图片时能快速比对。With reference to the first aspect, in a possible implementation manner, the attribute information is specifically pixel value information. The screening process at this time is: filtering, according to the pixel value information, a picture with the same pixel value or a pixel value deviation within a preset range. In this way, the same/closed picture of the pixel information can be filtered out, so that the user can associate the photo once, and the user can quickly compare and delete the picture in the subsequent process.
结合第一方面,在一种可能的实现方式中,属性信息具体为时间信息。此时的筛选 过程为:根据所述时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片。日次可将时间点相同/相近的图片筛选出来,便于用户根据时间进行回忆,或查找照片。进一步地,在节假日的时候,预设范围的设置可与平时不一样,例如国庆节的预设范围的设置较长,周末的预设范围的设置较短,这样能够根据节假日的时间长度适时调整,更加智能化地满足用户的图片筛选需求。In combination with the first aspect, in one possible implementation, the attribute information is specifically time information. Screening at this time The process is: according to the time information, a picture with the same shooting time or a shooting time deviation value within a preset range. Screens that match the same/closed time can be screened out for users to recall or search for photos based on time. Further, during holidays, the setting of the preset range may be different from usual, for example, the setting of the preset range of the National Day is long, and the setting of the preset range of the weekend is short, so that the time interval of the holiday can be adjusted according to the length of the holiday. , to more intelligently meet the user's image screening needs.
结合第一方面,在一种可能的实现方式中,属性信息具体为图像类型信息。此时的筛选过程为:根据所述图像类型信息,筛选图像类型相同或相近的图片。如此可将图像类型相同/相近的图片筛选出来,例如张三的照片、小狗的照片、华山的照片等,这样方便了用户根据人/物/景等来区分图片。In combination with the first aspect, in one possible implementation manner, the attribute information is specifically image type information. The screening process at this time is: filtering the images of the same or similar image types according to the image type information. In this way, pictures with the same/similar image type can be selected, such as photos of Zhang San, photos of puppies, photos of Huashan, etc., which is convenient for the user to distinguish pictures according to people/objects/views.
结合第一方面,在一种可能的实现方式中,属性信息具体为地理位置信息和时间信息。此时的筛选过程为:根据GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片;根据时间信息,筛选拍摄时间相同或拍摄时间偏差值在预设范围内的图片;再比对彼此搜索出来的照片,筛选出重合的照片。如此,可将某一时间段内在某一区域的照片筛选出来,方便用户查看和搜索。In combination with the first aspect, in one possible implementation manner, the attribute information is specifically geographic location information and time information. The screening process at this time is: screening the pictures with the same GPS information or the deviation of the GPS information within the preset range according to the GPS information; and screening the pictures with the same shooting time or the shooting time deviation value within the preset range according to the time information; Filter the photos that are searched for each other and filter out the coincident photos. In this way, photos of a certain area can be selected for a certain period of time, which is convenient for users to view and search.
结合第一方面,在一种可能的实现方式中,属性信息具体为地理位置信息和像素值信息。此时的筛选过程为:根据GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片;据像素值信息,筛选像素值相同或像素值偏差在预设范围内的图片;再比对彼此搜索出来的照片,筛选出重合的照片。如此,可将某一区域的相同/相近似的照片筛选出来,方便用户编辑或增删。In combination with the first aspect, in one possible implementation manner, the attribute information is specifically geographic location information and pixel value information. The screening process at this time is: screening the image with the same GPS information or the deviation of the GPS information within the preset range according to the GPS information; according to the pixel value information, filtering the picture with the same pixel value or the pixel value deviation within the preset range; Filter the photos that are searched for each other and filter out the coincident photos. In this way, the same/similar photos of a certain area can be filtered out, which is convenient for the user to edit or add or delete.
结合第一方面,在一种可能的实现方式中,属性信息具体为地理位置信息和图像类型信息。此时的筛选过程为:根据GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片;根据图像类型信息,筛选图像类型相同或相近的图片;再比对彼此搜索出来的照片,筛选出重合的照片。如此,可将某一区域的类型相同/相近似的照片筛选出来,如北京的长城照片,如深圳的美食照片,方便用户归类查看/编辑。In combination with the first aspect, in one possible implementation manner, the attribute information is specifically geographic location information and image type information. The screening process at this time is: screening the pictures with the same GPS information or the GPS information deviation within a preset range according to the GPS information; screening the pictures of the same or similar image type according to the image type information; and comparing the photos searched for each other, Filter out the coincident photos. In this way, photos of the same/similar types of a certain area can be screened out, such as the Great Wall photos of Beijing, such as food photos in Shenzhen, which are convenient for users to view/edit.
结合第一方面,在一种可能的实现方式中,属性信息具体为时间信息和图像类型信息。此时的筛选过程为:根据时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片;根据图像类型信息,筛选图像类型相同或相近的图片;再比对彼此搜索出来的照片,筛选出重合的照片。如此,可将某一时间段内拍摄的类型相同/相近似的照片筛选出来,如张三的国庆节,如黎明的华山,方便用户归类查看/编辑。In combination with the first aspect, in one possible implementation, the attribute information is specifically time information and image type information. The screening process at this time is: according to the time information, the pictures with the same shooting time or the shooting time deviation value are within the preset range; according to the image type information, the pictures with the same or similar image types are filtered; and the photos searched for each other are compared. , screen out the coincident photos. In this way, photographs of the same/similar size taken during a certain period of time can be screened out, such as the National Day of Zhang San, such as Huashan at dawn, which is convenient for users to view/edit.
结合第一方面,在一种可能的实现方式中,属性信息具体为时间信息、地点信息和图像类型信息。此时的筛选过程为:根据时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片;根据GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片;根据图像类型信息,筛选图像类型相同或相近的图片;再比对彼此搜索出来的照片,筛选出重合的照片。如此,可将某一时间段内、某一地区的拍摄类型相同/相似的照片筛选出来,如张三国庆节的北京游,如小狗春节回家乡等,方便用户归类查看/编辑。In combination with the first aspect, in one possible implementation manner, the attribute information is specifically time information, location information, and image type information. The screening process at this time is: according to the time information, the picture with the same shooting time or the shooting time deviation value is within the preset range; according to the GPS information, the picture with the same GPS information or the deviation of the GPS information within the preset range is screened; Type information, filter images of the same or similar image type; compare the photos searched for each other and filter out the coincident photos. In this way, photos of the same/similar type of shooting in a certain period of time can be selected, such as the Beijing tour of the National Day of Zhang Sanguo, such as the Spring Festival homepage of the puppy, which is convenient for users to view/edit.
结合第一方面,在此外可能的实现方式中,可以是除上述提及的组合外,上述属性信息的任意组合。例如时间信息和像素值信息的组合,筛选出同一时间段内像素信息相同/相近似的图片,如黎明拍摄的太阳缓缓升起的照片。又例如像素值信息和类型信息的组合,筛选出同一类型的像素信息相同/相近似的图片,如小狗奔跑的连环拍照。又例如像素值信息、类型信息、地理位置信息的组合,筛选出某一地区、同一类型的像素信息 相同/相近似的图片,如小狗在同一公园奔跑的图片。诸多的组合,可以多样化的满足用户归类照片、搜索图片的诉求,提供用户的操控效率。In combination with the first aspect, in a further possible implementation, any combination of the above attribute information in addition to the combinations mentioned above may be used. For example, a combination of time information and pixel value information filters out pictures with the same/similar pixel information in the same time period, such as photos of the sun rising slowly at dawn. For example, a combination of pixel value information and type information filters out the same/similar image of the same type of pixel information, such as a chain photograph of a puppy running. For example, a combination of pixel value information, type information, and geographic location information filters out pixel information of a certain region and the same type. Same/similar pictures, such as pictures of puppies running in the same park. Many combinations can meet the user's requirements for categorizing photos and searching for pictures, and provide users with control efficiency.
结合第一方面,在上述可能的实现方式中,可通过聚类算法筛选第一图片集中的图片。In combination with the first aspect, in the foregoing possible implementation manner, the image in the first picture set may be filtered by using a clustering algorithm.
结合第一方面,在上述可能的实现方式中,生成的相册名称可包括第二图片集具有共性的属性信息。例如,若第二图片集中的图片的GPS信息相同或相近似,则相册名称可包含地理位置信息;若第二图片集中的图片时间信息相同或相近似,则相册名称可包含时间信息;若第二图片集中的图片的图像类型信息相同或相近似,则相册名称可图像类型。这样用文字进行标识,有助于用户快速的定位该类照片的特点。With reference to the first aspect, in the foregoing possible implementation manner, the generated album name may include attribute information common to the second picture set. For example, if the GPS information of the pictures in the second picture set is the same or similar, the album name may include the geographical location information; if the picture time information in the second picture set is the same or similar, the album name may include time information; If the image type information of the pictures in the two picture sets is the same or similar, the album name may be an image type. This is marked with text, which helps users quickly locate the characteristics of such photos.
结合第一方面,在上述可能的实现方式中,所述方法还包括:获取用户输入的触发第一图片的指令,第一图片是第二图像集中的任一图片,该指令用于将所述第一图片设置为相册的封面;响应该指令,将所述第一图片设置为相册的封面。一般而言,在生成相册时,移动终端会指定一张图片作为相册的封面,该图片可以是拍摄时间最早的,或者***评分最高的。同时,移动终端也可以让用户设定封面,用户可以选择合适的图片作为相册封面,这样能够根据用户的喜好标识该相册,提示用户的愉悦感。同样地,还可以获取用户输入的修改相册名称的指令,修改相册名称,从而满足用户个性化定制相册的需求。With reference to the first aspect, in the foregoing possible implementation manner, the method further includes: acquiring, by the user, an instruction for triggering the first picture, where the first picture is any picture in the second image set, the instruction is used to The first picture is set as the cover of the album; in response to the instruction, the first picture is set as the cover of the album. In general, when generating an album, the mobile terminal will specify a picture as the cover of the album, which may be the earliest shooting time, or the highest system score. At the same time, the mobile terminal can also allow the user to set the cover, and the user can select a suitable picture as the album cover, so that the album can be identified according to the user's preference, prompting the user's pleasure. Similarly, the user can input an instruction to modify the name of the album, and modify the name of the album to meet the needs of the user to customize the album.
结合第一方面,在上述可能的实现方式中,所述方法还包括:获取用户输入的打开相册的指令,移动终端响应该指令,按照预设的顺序依次呈现第二图片集中的图片。呈现的方式不做限定,可以是缩略图,也可以是幻灯片或视频的形式。With reference to the first aspect, in the foregoing possible implementation manner, the method further includes: acquiring an instruction for opening an album input by the user, and the mobile terminal, in response to the instruction, sequentially displaying the pictures in the second picture set in a preset order. The manner of presentation is not limited, it can be a thumbnail, or it can be in the form of a slide or video.
结合第一方面,在上述可能的实现方式中,所述方法还包括:对于移动终端新增加的图片,例如用户最新拍摄的照片,移动终端获取该新增加的图片的属性信息,例如地理位置信息、时间信息、图像类型信息等,移动终端判断若该新增的图片的属性信息与第二图片的属性信息相同或相近,则将该新增的图片加入所述相册中。如此,能全面覆盖移动终端已存储的照片,实时实现图片的归类,方便用户查找。With reference to the first aspect, in the foregoing possible implementation manner, the method further includes: for a newly added picture of the mobile terminal, for example, a newly taken photo of the user, the mobile terminal acquires attribute information of the newly added picture, such as geographic location information. The time information, the image type information, and the like, the mobile terminal determines that if the attribute information of the added picture is the same as or similar to the attribute information of the second picture, the added picture is added to the album. In this way, the photos stored by the mobile terminal can be completely covered, and the classification of the images can be realized in real time, which is convenient for the user to find.
结合第一方面,在上述可能的实现方式中,若移动终端上存储有多个相册,则移动终端可以按照时间维度,比如拍摄时间由远及近,依次展示多个相册;或者,对于人像相册,移动终端可以按照与用户的亲密程度,依次展示多个相册;或者,用户也可以预先设定顺序,继而按照用户预先设定的顺序依次展示多个相册。With reference to the first aspect, in the foregoing possible implementation manner, if a plurality of albums are stored on the mobile terminal, the mobile terminal may display multiple albums in turn according to a time dimension, such as a shooting time, and a plurality of albums; or, for a portrait album The mobile terminal may display a plurality of albums in turn according to the degree of intimacy with the user; or, the user may pre-set the order, and then sequentially display the plurality of albums in the order preset by the user.
第二方面,本发明实施例提供了一种移动终端,包括存储器、处理器、显示器。存储器存储有代码。处理器,用于读取所述存储器中的代码,以用于执行:获取第一图片集,该第一图片集至少包括两张图片,第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的一个呼多个;根据所述属性信息,筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近;根据所述第二图片集中的图片的属性信息,生成相册名称;以所述相册名称作为所述第二图片集的名称,生成相册。显示器,用于显示所述相册和所述相册名称。通过将属性信息相同或相近似的图片筛选出来,打上标签,可方便用户快速地定位某次活动/旅游,进而快速查找图片,提高了用户的操控效率,提升了用户体验。In a second aspect, an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a display. The memory stores the code. a processor, configured to read code in the memory, for performing: acquiring a first picture set, where the first picture set includes at least two pictures, and attribute information of the picture in the first picture set includes geographical location information, Having a plurality of pixel value information, time information, and image type information; filtering the picture in the first picture set according to the attribute information to generate a second picture set, where the second picture set is the first a subset of the picture set, the attribute information of the picture in the second picture set is the same or similar; generating an album name according to the attribute information of the picture in the second picture set; using the album name as the second picture set The name of the generated album. a display for displaying the album and the album name. By filtering out the pictures with the same or similar attribute information and tagging them, the user can quickly locate an event/tour, and then quickly find the picture, which improves the user's control efficiency and improves the user experience.
结合第二方面,在多种可能的实现方式中,本发明实施例中的移动终端还可用于执 行第一方面提及的多种可能的实现方式中的方法流程,其相同或相应的技术特征均可援用,其相应的有益效果也可实现,对此不再过多赘述。With reference to the second aspect, in various possible implementation manners, the mobile terminal in the embodiment of the present invention may also be used to perform The method flow in the various possible implementations mentioned in the first aspect may be invoked by the same or corresponding technical features, and the corresponding beneficial effects may also be implemented, and no further details are provided herein.
第三方面,本发明实施例提供了一种装置,所述装置包括:第一获取模块,用于获取第一图片集,所述第一图片集至少包括两张图片,所述第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的至少一个;筛选模块,用于筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近;第一生成模块,用于根据所述第二图片集中的图片的属性信息,生成相册名称;第二生成模块,用于以所述相册名称作为所述第二图片集的名称,生成相册。通过将属性信息相同或相近似的图片筛选出来,打上标签,可方便用户快速地定位某次活动/旅游,进而快速查找图片,提高了用户的操控效率,提升了用户体验。In a third aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes: a first acquiring module, configured to acquire a first picture set, where the first picture set includes at least two pictures, and the first picture set The attribute information of the picture includes at least one of geographic location information, pixel value information, time information, and image type information; a screening module, configured to filter the picture in the first picture set, generate a second picture set, and the second The image set is a subset of the first set of pictures, and the attribute information of the pictures in the second set of pictures is the same or similar; the first generating module is configured to generate an album according to attribute information of the pictures in the second set of pictures a second generating module, configured to generate an album by using the album name as the name of the second photo set. By filtering out the pictures with the same or similar attribute information and tagging them, the user can quickly locate an event/tour, and then quickly find the picture, which improves the user's control efficiency and improves the user experience.
结合第三方面,在多种可能的实现方式中,本发明实施例中的装置还可用于执行第一方面提及的多种可能的实现方式中的方法流程,其相同或相应的技术特征均可援用,其相应的有益效果也可实现,对此不再过多赘述。With reference to the third aspect, in various possible implementations, the apparatus in the embodiments of the present invention may also be used to perform the method flow in the multiple possible implementations mentioned in the first aspect, the same or corresponding technical features. It can be invoked, and its corresponding beneficial effects can also be achieved, and will not be repeated here.
在本发明实施例中,通过读取现有图片集中的图片的属性信息,筛选出属性信息相同或相似的图片,并根据属性信息生成相册名称,形成相册。如此,可以方便用户快速地定位某次活动/旅游,进而快速查找图片,提高了用户的操控效率,提升了用户体验。In the embodiment of the present invention, by reading the attribute information of the picture in the existing picture set, the pictures with the same or similar attribute information are filtered out, and the album name is generated according to the attribute information to form an album. In this way, the user can quickly locate an event/tour, thereby quickly finding a picture, improving the user's control efficiency and improving the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,而非全部。对于本领域普通技术人员来讲,在没有付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is apparent that the drawings in the following description are only some, but not all, of the invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1为本发明实施例提供的一种移动终端的结构示意图;FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图2为本发明实施例提供的图片素材来源的示意图;2 is a schematic diagram of a source of picture material according to an embodiment of the present invention;
图3为本发明实施例提供的一种软件模块的示意图;FIG. 3 is a schematic diagram of a software module according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种数据聚类的方法流程图;FIG. 4 is a flowchart of a method for data clustering according to an embodiment of the present invention;
图5是本发明实施例提供的一种图片聚类的示意图;FIG. 5 is a schematic diagram of a picture clustering according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的一种数据聚类的方法流程图;FIG. 6 is a flowchart of a method for data clustering according to an embodiment of the present invention;
图7为本发明实施例提供的一种生成相册的方法流程图;FIG. 7 is a flowchart of a method for generating an album according to an embodiment of the present invention;
图8为本发明实施例提供的一种呈现相册的UI界面示意图;FIG. 8 is a schematic diagram of a UI interface for presenting an album according to an embodiment of the present invention;
图9为本发明实施例提供的一种呈现相册的UI界面示意图;FIG. 9 is a schematic diagram of a UI interface for presenting an album according to an embodiment of the present invention;
图10为本发明实施例提供的一种相册的UI布局示意图;FIG. 10 is a schematic diagram of a UI layout of an album according to an embodiment of the present invention;
图11为本发明实施例提供的一种相册的UI布局示意图;FIG. 11 is a schematic diagram of a UI layout of an album according to an embodiment of the present invention;
图12为本发明实施例提供的一种相册的UI布局示意图;FIG. 12 is a schematic diagram of a UI layout of an album according to an embodiment of the present invention;
图13为本发明实施例提供的一种移动终端的结构示意图;FIG. 13 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图14为本发明实施例提供的一种装置的结构示意图。FIG. 14 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式 做出进一步地详细描述。对于本领域普通技术人员在没有付出创造性劳动的前提下所获得的其它所有实施例,都属于本发明保护的范围。In order to make the objects, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be described below with reference to the accompanying drawings. Make a further detailed description. All other embodiments obtained by those skilled in the art without creative efforts are within the scope of the present invention.
如图1所示,图1为本发明实施例提供的一种移动终端的结构示意图,该终端包括处理器、存储器、输入设备、显示设备、操控器件等。其中,输入设备和操控器件有交集,在某些场景中可以为同一电子器件,如指纹识别器;在某些场景中可以为不同电子器件,如输入设备为触摸屏,操控器件为陀螺仪传感器。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, where the terminal includes a processor, a memory, an input device, a display device, a control device, and the like. The input device and the control device have an intersection, and in some scenarios, may be the same electronic device, such as a fingerprint recognizer; in some scenarios, different electronic devices may be used, such as the input device being a touch screen and the control device being a gyro sensor.
本发明提供了一种移动终端的实施例,其结构示意图如图1所示。应该理解的是,图示移动终端100仅是一个范例,实际产品可以具有比图1中所示出的更过的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。该图所示的移动终端可用于执行如图4或图6或图7所述的方法。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。如图所示,该移动终端100包括、RF(Radio Frequency,射频)电路110、存储器120、输入单元130、显示单元140、传感器150、音频电路160、WiFi(wireless fidelity,无线保真)模块170、处理器180、以及电源190等部件。下面对各构成部件进行具体介绍:The invention provides an embodiment of a mobile terminal, and a schematic structural diagram thereof is shown in FIG. 1 . It should be understood that the illustrated mobile terminal 100 is merely an example, the actual product may have more or fewer components than those shown in FIG. 1, two or more components may be combined, or may be different Component configuration. The mobile terminal shown in the figure can be used to perform the method as described in FIG. 4 or FIG. 6 or FIG. The various components shown in FIG. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits. As shown in the figure, the mobile terminal 100 includes an RF (Radio Frequency) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, and a WiFi (Wireless Fidelity) module 170. , processor 180, and power supply 190 and other components. The following describes each component in detail:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其它设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯***)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 180 processes the data. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, RF circuitry 110 can also communicate with the network and other devices via wireless communication. 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), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行移动终端100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图象播放功能等)等;存储数据区可存储根据移动终端100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其它易失性固态存储器件。The memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile terminal 100 by running software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data (such as audio data, phone book, etc.) created according to the use of the mobile terminal 100, and the like. Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元130可用于接收输入的数字或字符信息,以及产生与移动终端100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其它输入设备132。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给 处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其它输入设备132。具体地,其它输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. give The processor 180 is capable of receiving commands from the processor 180 and executing them. In addition, the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端100的各种菜单。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板131与显示面板141是作为两个独立的部件来实现移动终端100的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现移动终端100的输入和输出功能。The display unit 140 can be used to display information input by the user or information provided to the user and various menus of the mobile terminal 100. The display unit 140 may include a display panel 141. Alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event. The type provides a corresponding visual output on display panel 141. Although the touch panel 131 and the display panel 141 are two independent components to implement the input and input functions of the mobile terminal 100 in FIG. 1 , in some embodiments, the touch panel 131 and the display panel 141 may be The input and output functions of the mobile terminal 100 are implemented by integration.
移动终端100还可包括至少一种传感器150,比如指纹传感器、光传感器、运动传感器以及其它传感器。具体地,指纹传感器用于识别用户输入的指纹信息。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其它传感器,在此不再赘述。The mobile terminal 100 may also include at least one type of sensor 150, such as a fingerprint sensor, a light sensor, a motion sensor, and other sensors. Specifically, the fingerprint sensor is used to identify fingerprint information input by the user. The light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 and/or when the mobile terminal 100 moves to the ear. Backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the attitude of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors that the mobile terminal 100 can also configure, This will not be repeated here.
音频电路160、扬声器161,麦克风162可提供用户与移动终端100之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,麦克风162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出至RF电路108以发送给比如另一移动终端,或者将音频数据输出至存储器120以便进一步处理。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 100. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and the audio data is output to the RF circuit 108 for transmission to, for example, another mobile terminal, or the audio data is output to the memory 120 for further processing.
WiFi属于短距离无线传输技术,移动终端100通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块170,但是可以理解的是,其并不属于移动终端100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile terminal 100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users. Although FIG. 1 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 100, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器180是移动终端100的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端100的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is a control center of the mobile terminal 100 that connects various portions of the entire mobile terminal using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120. The data, performing various functions and processing data of the mobile terminal 100, thereby performing overall monitoring of the mobile terminal. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
移动终端100还包括给各个部件供电的电源190(比如电池),优选的,电源可 以通过电源管理***与处理器180逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗等功能。The mobile terminal 100 also includes a power source 190 (such as a battery) that supplies power to the various components. Preferably, the power source can It is logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system.
尽管未示出,移动终端100还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile terminal 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
如下实施例的具体描述中,会对一些概念,在参照本领域普通技术人员理解的基础上,做进一步的解释描述。需要说明的是,如下描述仅做进一步介绍描述之用,不构成对本技术领域公知概念术语的限制性解释。In the detailed description of the embodiments below, some concepts will be further explained based on the understanding of those of ordinary skill in the art. It should be noted that the following description is only for further description and does not constitute a restrictive explanation of conceptual terms well known in the art.
如图2所示,图2为本发明实施例提供的图片素材来源的示意图。本发明实施例中的相册中的图片来源于多媒体文件。其中,多媒体文件至少包括图片和视频两种,例如视频的截图,该两种可以是移动终端本地的,也可以是云端的。其中,图片的格式可以是JPEG/PNG/GIF/BMP等,视频的格式可以是MP4等。某些图片遵循Exif标准,可据此读取图片的相关数据信息,若不遵循Exif标准,移动终端可通过其它方式读取该图片的相关数据信息。As shown in FIG. 2, FIG. 2 is a schematic diagram of a source of picture material according to an embodiment of the present invention. The pictures in the album in the embodiment of the present invention are derived from multimedia files. The multimedia file includes at least two types of pictures and videos, for example, a screenshot of the video, and the two types may be local to the mobile terminal or may be in the cloud. The format of the picture may be JPEG/PNG/GIF/BMP, and the format of the video may be MP4 or the like. Some pictures follow the Exif standard, and the relevant data information of the picture can be read accordingly. If the Exif standard is not followed, the mobile terminal can read the related data information of the picture by other means.
为便于描述,可将用户生活中发生的旅行、聚会等值得回忆的重要活动称为事件。针对现有产品无法满足用户快速简便的回看过往重要事件图片的需求,本发明实施例提供了一种将重要事件拍摄的照片智能生成相册的方法,从而提高用户体验。For the convenience of description, important events worth recalling such as trips and gatherings that occur in the user's life can be referred to as events. The present invention provides a method for intelligently generating a photo album of a photo taken by an important event, thereby improving the user experience, in view of the fact that the existing product cannot meet the needs of the user to quickly and easily view the picture of the past important event.
在一个实施例中,其软件***框架可包含如图3所示的模块。这些模块可以为软件模块,存储在如图1所示的存储器120中,并在移动终端运行时被处理器180调用,执行如图4或图6或图7所述的方法。In one embodiment, its software system framework may include modules as shown in FIG. These modules may be software modules, stored in memory 120 as shown in FIG. 1, and invoked by processor 180 when the mobile terminal is running, performing the method as described in FIG. 4 or FIG. 6 or FIG.
数据采集模块210,用于采集原始相册中各个图片的数据,例如拍摄时间、拍摄地点、图片中各个像素点的RGB值等。原始相册中可包括多种类型的图片,如用户拍摄的照片、网络下载图、屏幕截图等。具体可根据Exif标准,从图片Exif数据内读取图片的数据信息,包括拍摄时的光圈、快门、白平衡、ISO、焦距、日期时间等各种和拍摄条件以及相机品牌、型号、色彩编码、拍摄时录制的声音以及GPS全球定位***数据、缩略图等。具体地,可通过读取图片的DateTimeOriginal字段获取图片的创建时间,读取图片的GPSLatitude字段获取纬度信息,读取图片的GPSLongitude字段获取经信息,读取图片的GPSAltitude字段获取海拔信息,读取图片的GPSTimeStamp字段获取图片的GPS时间戳信息。The data collection module 210 is configured to collect data of each picture in the original album, such as a shooting time, a shooting location, an RGB value of each pixel in the picture, and the like. The original album can include multiple types of images, such as photos taken by users, network downloads, screenshots, and the like. Specifically, according to the Exif standard, the data information of the image is read from the image of the Exif data, including the aperture, shutter, white balance, ISO, focal length, date and time, and the shooting conditions as well as the camera brand, model, color coding, and the like. Sounds recorded during shooting, as well as GPS global positioning system data, thumbnails, etc. Specifically, the picture creation time is obtained by reading the DateTimeOriginal field of the picture, reading the GPSLatitude field of the picture to obtain the latitude information, reading the GPS Longitude field of the picture to obtain the information, reading the GPSAltitude field of the picture to obtain the altitude information, and reading the picture. The GPSTimeStamp field gets the GPS timestamp information of the picture.
数据分析处理模块220:根据采集到的图片信息,分析出各个事件的开始时间点、结束时间点。以开始时间点作为图片选择的开始时间,以结束时间点作为图片选择的结束时间,将该时间段内的图片集合形成相册。进一步地,除考虑时间因素外,还可对开始时间点和结束时间点之间的时间段内的图片进行分析,获取其地点相关性、图像相似性、图像类别等数据,根据地点一致性、图像相似性、图像类别相关性等原则,将形成相册中的重复图片、地点不一致图片、类别不相关图片筛出,优选出图片生成相册。The data analysis processing module 220: analyzes the start time point and the end time point of each event according to the collected picture information. The start time is selected as the start time of the picture, and the end time point is used as the end time of the picture selection, and the pictures in the time period are collectively formed into an album. Further, in addition to considering the time factor, the picture in the time period between the start time point and the end time point may be analyzed to obtain data such as location relevance, image similarity, image category, etc., according to location consistency, Principles such as image similarity, image category correlation, etc., will form a duplicate picture in the album, a place inconsistency picture, a category irrelevant picture, and preferably a picture generation album.
在本发明的一个实施例中,对数据分析处理模块220执行的步骤进行如下描述:In one embodiment of the invention, the steps performed by data analysis processing module 220 are described as follows:
(1)相册的生成:在如下步骤中,以时间维度进行示例。(1) Generation of albums: In the following steps, an example is made in the time dimension.
①根据数据采集模块210采集到的图片时间,将时间数据进行顺序排列:t1,t2,t3……1 According to the picture time collected by the data acquisition module 210, the time data is sequentially arranged: t1, t2, t3...
②对时间这个一维数据,使用聚类算法进行聚类形成集合。现有常用的聚类算法,主要包括基于划分的聚类,代表为K-Means聚类算法;基于密度的聚类,代表为DBSCAN 聚类算法;以及基于层次的聚类等。以DBSCAN为例,其原理是在指定的半径范围内,点数达到最小点数即可形成类,并且相临近的类会自动合并形成跨度更大的类。类中的时间点即是用户发生的事件内的时间点,类的跨度即是用户发生的事件的时间跨度。2 For the one-dimensional data of time, clustering algorithm is used to cluster to form a set. Existing commonly used clustering algorithms mainly include partition-based clustering, represented by K-Means clustering algorithm; density-based clustering, represented by DBSCAN Clustering algorithms; and hierarchical-based clustering. Taking DBSCAN as an example, the principle is that within a specified radius, the number of points reaches the minimum number to form a class, and adjacent classes are automatically merged to form a class with a larger span. The point in time in the class is the point in time within the event that occurs, and the span of the class is the time span of the event that the user has.
使用DBSCAN算法先确定聚类半径radius、最小点数minPts。例如设定时间维度的聚类半径为12小时,最小点数为10。聚类半径,最小点值可根据实际需要进行调整。聚类半径决定聚类产生的类的粒度大小;最小点数则决定了聚类算法能否生成类的门槛高低。The DBSCAN algorithm is used to first determine the cluster radius radius and the minimum number of minutes minPts. For example, the clustering radius of the set time dimension is 12 hours, and the minimum number of points is 10. The cluster radius and the minimum point value can be adjusted according to actual needs. The clustering radius determines the granularity of the class generated by the clustering; the minimum number of points determines whether the clustering algorithm can generate the threshold of the class.
在聚类半径、最小点数确定的前提下,将时间数据通过聚类算法进行聚类,生成各个类(时间点的集合):{t1,t1…ti},{tm,tm+1,tm+2…tm+n}…Under the premise of determining the cluster radius and the minimum number of points, the time data is clustered by the clustering algorithm to generate each class (the set of time points): {t1, t1...ti}, {tm, tm+1, tm+ 2...tm+n}...
通过聚类算法,我们能将密集发生的时间点的集合获取到,这个集合也就是用户发生事件的时间点集合。Through the clustering algorithm, we can get a collection of intensive time points, which is the set of time points when the user happens.
③完成聚类后,得到各个聚类中的最小时间minTime、最大时间maxTime。3 After the clustering is completed, the minimum time minTime and the maximum time maxTime in each cluster are obtained.
④对于前一类的最大时间与后一类的最小时间,两者之间的时间间隔较小的,可将其合并形成一个类。4 For the maximum time of the former class and the minimum time of the latter class, if the time interval between the two is small, they can be combined to form a class.
在一种可能的实现中,可设定一个允许合并类的间隔时间gapTime。比较相邻两个类的最大时间与最小时间,当两者之间的间隔时间小于gapTime时,将两个类合并,形成新类。例如:两个类{A_minTime,A_maxTime},{B_minTime,B_maxTime}。当A_maxTime与B_minTime的差距小于gapTime时,两个类合并成{A_minTime,B_maxTime}。对于国庆节,新年,圣诞等一个事件往往跨度为几天的情况,提高gapTime值,使得节假日中零散的类更容易合并成一个跨度更大的类。通过此合并优化方法,将被聚类算法切分为几个相近类的整个事件过程的图片根据其时间相近性合并成一个类。In one possible implementation, an interval time gapTime that allows the merged class can be set. Compare the maximum time and minimum time of two adjacent classes. When the interval between the two is less than gapTime, the two classes are merged to form a new class. For example: two classes {A_minTime, A_maxTime}, {B_minTime, B_maxTime}. When the difference between A_maxTime and B_minTime is less than gapTime, the two classes are merged into {A_minTime, B_maxTime}. For the National Day, New Year, Christmas and other events often span a few days, increase the gapTime value, making the scattered classes in the holiday easier to merge into a larger class. Through this merge optimization method, the images of the entire event process that are classified into several similar classes by the clustering algorithm are merged into one class according to their temporal similarity.
⑤完成优化合并后的类。某一特定的类中,其最小时间、最大时间即是用户事件发生的开始时间、结束时间,也就是相册的开始、结束时间。此时,可将处于同一相册(同一类)时间范围内的图片赋予这个相册的标识符,例如新年相册集。到此完成相册的自动生成,根据此方案生成的相册,具备覆盖整个事件的全过程的特点。5 Complete the optimized merged class. In a particular class, the minimum time and maximum time are the start time and end time of the user event, that is, the start and end time of the album. At this time, pictures in the same album (same category) time range can be given an identifier of the album, such as a new year album set. This completes the automatic generation of the album, and the album generated according to this scheme has the characteristics of covering the whole process of the whole event.
除上述仅基于时间维度生成相册外,还可基于地点、时间两个维度进行相册的生成。具体地,以相同的地点区划对图片进行分类。例如以城市为单位,将用户图片进行分类成不同的集合。参照上文中的聚类算法,针对各个具有相同地点的图片集合分别使用聚类算法,并适当调整聚类参数。例如调大时间维度的聚类半径,调大最小点数,以达到生成常驻地最近几周图片的相册,在某城市出行几天图片的相册。通过地点、时间两个维度生成相册,优先采用地点划分,再辅助时间聚类,生成以地点为单位,一段时间跨度的照片相册。与根据时间划分生成的相册,提供一种不同的风格,从而满足用户根据不同时间、地点生成不同相册的需要。In addition to generating the album based on only the time dimension, the album can be generated based on the two dimensions of location and time. Specifically, the pictures are classified by the same place division. For example, the user pictures are classified into different collections in units of cities. Referring to the clustering algorithm above, a clustering algorithm is used for each picture set having the same place, and the clustering parameters are appropriately adjusted. For example, increase the cluster radius of the time dimension and increase the minimum number of points to reach the album that generates the pictures of the last few weeks of the resident, and the albums of the pictures for a few days in a certain city. The album is generated by the two dimensions of location and time, and the location is divided firstly, and time clustering is assisted to generate a photo album with a location and a span of time. The albums generated according to the time division provide a different style, so as to meet the needs of the user to generate different albums according to different time and place.
在本发明的上述实施例中,当待聚类数据量较大时,聚类算法处理的时间会较长,可将待聚类数据切分成较小粒度后分批次进行聚类,从而提高聚类效率。根据DBSCAN算法半径的含义可知,当相邻像个数据间距超过聚类半径时,这两个数据不可能被聚合到同一个类中。根据这一条件,我们可以对待聚类数据进行划分。首先对待聚类数据进行排序;其次遍历全部待聚类数据,找到前后间距超过聚类半径的 情况,将前后数据切开后;再将切分开的数据分别聚类。这个逻辑是,对于大量的数据,不会一次性的通过算法去计算聚类。而是切分成小段数据后分别送算法计算聚类,这样可以提高算法的效率。比如用户手机用了2年,共计1000张的照片,在聚类时不是把1000张一起给算法计算聚类,而是将照片时间全部排序后,计算相邻照片的时间间隔,当间隔一定值时,切分开来,分别给算法计算聚类。In the above embodiment of the present invention, when the amount of data to be clustered is large, the processing time of the clustering algorithm may be long, and the data to be clustered may be divided into smaller granularities and then clustered in batches, thereby improving Clustering efficiency. According to the meaning of the radius of the DBSCAN algorithm, when the adjacent image data spacing exceeds the cluster radius, the two data cannot be aggregated into the same class. According to this condition, we can divide the cluster data. First, the clustering data is sorted; secondly, all the data to be clustered are traversed, and the space before and after the clustering radius is found. In the case, the data before and after the cut is cut; and the separately separated data are clustered separately. The logic is that for a large amount of data, clustering is not calculated by an algorithm at one time. Instead, it is divided into small pieces of data and sent to the algorithm to calculate clusters, which can improve the efficiency of the algorithm. For example, the user's mobile phone used 2 years, a total of 1000 photos, in the clustering is not 1000 together to the algorithm to calculate the cluster, but the photo time is all sorted, calculate the time interval of the adjacent photos, when the interval is a certain value When it is separated, the cluster is calculated separately for the algorithm.
分批聚类的基本流程如图4所示:S410,对待聚类数据进行排序,例如对上述1000张图片进行排序。S420,设置起始位置,例如1000张照片中最早拍摄的一张。S430,按照上述时间、地点等维度标准,计算相邻数据的距离;例如按照时间标准,确定上述1000张图片中,相邻图片的拍摄时间的差值。S440,确定距离是否超过聚类半径,该聚类半径可以为预先设定的时间间隔,例如2天;若距离没有超过半径,则重复执行S430;若距离超过半径,则认为该相邻两张图片属于不同的类,执行S450。假设该相邻两张图片为第n张和第n+1张,S450,获取起始位置至当前位置间的数据,即为获取第1张至第n张之间的图片;S460,对上述数据进行聚类,例如对第1张至第n张之间的图片进行DBSCAN聚类。S470,更新起始位置为当前位置,即,可将第n+1张照片设置为起始位置。若在S480中确定起始位置的照片不是图库中拍摄时间最晚的一张照片,则重复执行上述S430-S470的步骤;若确定是拍摄时间最晚的一张照片,则聚类结束,按照聚类结果生成相册。举个例子,2017年1月1日0点开始,每分钟拍一张照片,一直拍到10点,那就拍了60*10的照片。这之后的一段时间用户没有拍照片。一直到2017年1月5日0点开始,用户才才又有照片。此时,1月1日的最后一张照片,跟1月5日的第一张照片间隔大于图4中S440步骤中标示的半径。将1月1日的照片就单独送给聚类算法。随后,从1月5日第一张照片开始,继续计算间隔,当出现大于半径的时候,再将1月5日到出现大于半径前的数据送给算法。The basic flow of batch clustering is shown in Figure 4: S410, the clustering data is sorted, for example, the above 1000 images are sorted. S420, set the starting position, for example, the first one of the 1000 photos. S430: Calculate the distance of the adjacent data according to the dimensional criteria such as time and place; for example, determine the difference of the shooting time of the adjacent pictures among the 1000 pictures according to the time standard. S440, determining whether the distance exceeds a cluster radius, the cluster radius may be a preset time interval, for example, 2 days; if the distance does not exceed the radius, repeating S430; if the distance exceeds the radius, the adjacent two pieces are considered The images belong to different classes and execute S450. Assuming that the two adjacent pictures are the nth and n+1th sheets, S450, acquiring data between the starting position and the current position, that is, acquiring a picture between the first to the nth sheets; S460, for the above The data is clustered, for example, DBSCAN clustering is performed on the pictures between the first to the nth sheets. S470, the update start position is the current position, that is, the n+1th photo can be set as the start position. If it is determined in S480 that the photo of the starting position is not the photo with the latest shooting time in the gallery, the steps of S430-S470 are repeated; if it is determined that the photo is the latest shooting time, the clustering ends, according to The clustering result generates an album. For example, starting at 0:00 on January 1, 2017, take a photo every minute, and then take 10 photos, then take a 60*10 photo. After this time, the user did not take a photo. It was not until 0:00 on January 5, 2017 that the user had photos. At this time, the last photo on January 1 is spaced apart from the first photo on January 5 by the radius indicated in step S440 of Figure 4. The photos of January 1 are sent separately to the clustering algorithm. Then, starting from the first photo on January 5, continue to calculate the interval. When there is more than the radius, send the data from January 5 to before the radius is sent to the algorithm.
在本发明的上述实施例中,在一种应用场景中,对于新增数据,例如用户新拍摄的照片,不在已生成相册上如何进行增量聚类。一种方法是将其视为新数据,重新通过上述聚类算法来生成聚类,当聚类条件满足时生成新相册。即在用户导入新照片后,或新拍摄照片后需要将待聚类数据进行重新聚类。另外一种方法是,第一步,将待聚类数据与已有聚类比对。当在已有聚类范围内时,直接聚类于已有类。第二步,待聚类数据是否在已有聚类边界的半径范围内,当满足条件时,将数据聚类于此类,并更新已有聚类的边界。第三步,当已有聚类边界发生变化时,重复第二步,直到已有聚类边界不再发生变化为止。在第二步、第三步完成后,剩余的待聚类数据不可能再会聚类于已有数据,因此,可对该剩余的待聚类数据进行独立聚类。In the above-described embodiment of the present invention, in an application scenario, for newly added data, such as a newly taken photo by a user, how to perform incremental clustering on the generated album is not performed. One method is to treat it as new data, regenerate the cluster by the above clustering algorithm, and generate a new album when the clustering conditions are met. That is, after the user imports a new photo, or after newly taking a photo, the data to be clustered needs to be re-clustered. Another method is, in the first step, comparing the data to be clustered with the existing cluster. When clustered within an existing cluster, cluster directly to existing classes. In the second step, whether the data to be clustered is within the radius of the existing cluster boundary, when the condition is met, the data is clustered into such a class, and the boundary of the existing cluster is updated. In the third step, when the existing cluster boundary changes, the second step is repeated until the existing cluster boundary no longer changes. After the second step and the third step are completed, the remaining data to be clustered may no longer be clustered into the existing data, and therefore, the remaining data to be clustered may be independently clustered.
先举个例子,如图5所示,图5是本发明实施例提供的一种图片聚类的示意图,线条ABCDE用于表示照片数据,其中ABC是已聚类过的照片,DE是新拍摄的照片,方块用于表示已有的照片聚类。其中,第一阶段的示意图,用于标识手机上至少有ABCDE等5张照片,有至少4个聚类。其中,ABC是已聚类过的照片,因而,在第二阶段的示意图中,将其放置与方框中。对D照片进行聚类分析,确定其在与ABC聚类的附件,可简单理解为S440中的距离小于聚类半径,则将D加入到ABC已经有的聚类中,E照片与C照片等相距较远,一开始不在半径范围内,不会加入已有聚类,如第三阶段所示。在D照片加入已有聚类后,扩大了已有聚类的外延,此时再将E 照片与已有聚类比较,符合聚类条件了,则将其加入已有聚类,并更新已有聚类的外延,如第四阶段所示。For example, as shown in FIG. 5, FIG. 5 is a schematic diagram of a picture clustering according to an embodiment of the present invention. A line ABCDE is used to represent photo data, where ABC is a clustered photo, and DE is a new shot. The photo, the square is used to represent the existing photo clustering. The first stage diagram is used to identify at least 5 photos such as ABCDE on the mobile phone, and at least 4 clusters. Among them, ABC is a photo that has been clustered, and thus, in the schematic diagram of the second stage, it is placed in a box. Cluster analysis of D photos to determine the attachments to cluster with ABC, can be simply understood as the distance in S440 is less than the cluster radius, then add D to the existing clusters of ABC, E photos and C photos, etc. Far apart, not at the beginning of the radius, will not join the existing cluster, as shown in the third stage. After the D photo is added to the existing cluster, the extension of the existing cluster is expanded, and then E is added. If the photo is compared with the existing cluster and meets the clustering conditions, it is added to the existing cluster and the extension of the existing cluster is updated, as shown in the fourth stage.
具体地,增量数据的聚类处理方案可如图6所示:S501,获取待聚类数据,例如上述的D照片和E照片。S502,获取已有聚类数据,例如上述的ABC照片。S503,判断是否已存在聚类,如存在,如上述图5中的示例,则执行S506;若不存在已有聚类,则执行步骤S504和S505,即执行上述新数据聚类的方法。在S506中,输入待聚类数据,例如将D照片和E照片输入聚类算法。S507,终端处理器遍历待聚类数据,例如获取D照片和E照片的属性信息。S508,判断该待聚类数据是否在已有的聚类的半径范围内,若在半径范围内,则将该照片从待聚类数据中移除(S509),将该照片加入已有的聚类中(S510),例如确定D照片在半径范围内后,将该D照片加入已有聚类。因为新的数据的引入,现有的聚类范围发生改变,执行步骤S511,扩展已有聚类范围,继而执行S512的步骤,判断是否便利结束。若不在半径范围内,则直接执行步骤S512,确定是否遍历结束。若尚未遍历结束,则重复执行S507-S512的步骤。若已经遍历结束,则判断已有的聚类范围是否发生变化,若发生变化,则为了聚类精确性的考虑,可重复执行上述S506-S513的过程;若未发生变化,则将待聚类的数据输入至原有聚类中(S504),生成新的数据聚类(S505)。Specifically, the clustering processing scheme of the incremental data may be as shown in FIG. 6: S501, acquiring data to be clustered, such as the D photo and the E photo described above. S502. Acquire existing cluster data, such as the above ABC photo. S503, judging whether the cluster already exists, if present, as in the example in FIG. 5 above, executing S506; if there is no existing cluster, performing steps S504 and S505, that is, performing the method of clustering the new data. In S506, data to be clustered is input, for example, a D photo and an E photo are input into a clustering algorithm. S507. The terminal processor traverses the data to be clustered, for example, acquiring attribute information of the D photo and the E photo. S508. Determine whether the data to be clustered is within a radius of the existing cluster. If the radius is within the radius, remove the photo from the data to be clustered (S509), and add the photo to the existing cluster. In the class (S510), for example, after determining that the D photo is within the radius, the D photo is added to the existing cluster. Because of the introduction of new data, the existing clustering range is changed, step S511 is performed, the existing clustering range is extended, and then the step of S512 is performed to determine whether it is convenient to end. If it is not within the radius, step S512 is directly performed to determine whether the traversal is over. If the traversal has not been completed, the steps of S507-S512 are repeatedly performed. If the traversal has been completed, it is determined whether the existing clustering range has changed. If the change occurs, the process of S506-S513 may be repeatedly performed for the purpose of clustering accuracy; if no change occurs, the clustering is to be clustered. The data is input to the original cluster (S504), and a new data cluster is generated (S505).
(2)相册内图片的优选。上述步骤(1)中已自动生成相册,然而此相册内可能会夹杂与相册主题无关的图片,此时需要进一步优选图片,筛去与相册主体无关的图片,提高用户体验度。其中,例举如下几个原则,实际的技术实现中还可包括其它的优选原则,本实施例对此不做限定。需要说明的是,该优选原则可同时适用,也可仅适用其中的一个。(2) The preference of the pictures in the album. The photo album has been automatically generated in the above step (1). However, the photo may not be included in the photo album. In this case, the image is further optimized, and the image unrelated to the main body of the photo album is filtered to improve the user experience. The following principles are exemplified, and other preferred principles may be included in the actual technical implementation, which is not limited in this embodiment. It should be noted that the preferred principle may be applied at the same time, or only one of them may be applied.
其一,基于地点一致性的优化。对于用户不可能完成的地点变化的图片,可排除。例如,与某地的照片10分钟间隔,有一张距离该地1000km的图片。然而用户不可能在10分钟完成1000km的移动,这样的图片应予以排除。此技术实现为,设定允许发生的移动速度:maxMoveSpeed。按照时间依次获取两张图片的时间及地点信息,计算出两张图片的时间差timeDiff和距离差distanceDiff,根据timeDiff和distanceDiff计算出两张图片移动速度moveSpeed=distanceDiff/timeDiff。当计算出来的moveSpeed>maxMoveSpeed时,确定需排除其中一张。基于同样的方法,再计算两张图片与相册中其它图片地址的相似度,对于该两张图片中与其它图片相似度低的图片,确认其存在地点不一致的问题,予以排除。First, optimization based on location consistency. Pictures of locations that are impossible for users to complete can be excluded. For example, a 10-minute interval from a photo of a certain place, there is a picture of 1000 km from the place. However, it is impossible for the user to complete the 1000km movement in 10 minutes, and such pictures should be excluded. This technique is implemented to set the speed of movement that is allowed to occur: maxMoveSpeed. The time and location information of the two pictures are obtained in order according to the time, and the time difference between the two pictures timeDiff and the distance difference distanceDiff are calculated, and the moving speed of the two pictures is calculated according to timeDiff and distanceDiff, moveSpeed=distanceDiff/timeDiff. When calculating the moveSpeed>maxMoveSpeed, be sure to exclude one. Based on the same method, the similarity between the two pictures and other picture addresses in the album is calculated. For the pictures with low similarity with other pictures in the two pictures, the problem of inconsistency of the existing places is confirmed and excluded.
其二,基于图像相似性的优化。在数据采集模块210获得相册中各个图片的像素值后,移动终端可通过图像相似度算法,如感知哈希算法(PHA,Perceptual Hash Algorithm)等,以图片各像素点的RGB值作为输入,计算出各个图片之间的相似度。对于相似度过高的图片,予以排除仅保留一张。Second, optimization based on image similarity. After the data collection module 210 obtains the pixel values of the respective pictures in the album, the mobile terminal may calculate the RGB values of the pixels of the image as input by using an image similarity algorithm, such as a Perceptual Hash Algorithm (PHA). The similarity between the pictures. For pictures with too much similarity, exclude only one.
其三,基于图片类型识别的优化。在数据采集模块210获得的各个图片的像素值后,通过图像识别算法识别出图片类型:人物、食物、风景、文档等。移动终端可分析相册中各类别图像的比例并制定规则,对于占据的比例较小,且类别相关性低的图像类别进行移除,从而保证相册主题一致性。例如,设定允许保留的图片类别最小比例5%,当以风景为主的相册中存在小比例文档图片时,如文档图片的比例为3%,则移除文档类别的图片。进一步地,可获得相册中比例最大的图片类别,并 从此图片类别中选择照片作为相册封面。Third, optimization based on picture type recognition. After the pixel values of the respective pictures obtained by the data acquisition module 210, the picture type is identified by an image recognition algorithm: a person, a food, a landscape, a document, and the like. The mobile terminal can analyze the proportion of each category of images in the album and formulate rules, and remove the image categories that occupy a small proportion and have low category relevance, thereby ensuring the consistency of the album theme. For example, the minimum percentage of the picture categories allowed to be retained is set to 5%. When there is a small proportion of document pictures in the landscape-based album, if the proportion of the document pictures is 3%, the pictures of the document category are removed. Further, the largest picture category in the album can be obtained, and Select a photo from this image category as the album cover.
其四,基于人脸识别的优化。在数据采集模块210获得了相册中各个图片的像素值后,可通过人脸识别算法识别出人脸,并标记人脸标识符。对于相册中存在的个例人脸图片进行移除,保证相册中出现的人物照片为用户本人或者熟人。例如,一个相册包含16张照片,其中13张为张三的照片,1张为李四的照片,则根据人脸识别的优化原则,在该相册中将李四的照片移除。Fourth, optimization based on face recognition. After the data collection module 210 obtains the pixel values of the respective pictures in the album, the face recognition algorithm can recognize the face and mark the face identifier. Remove the individual face images that exist in the album to ensure that the photos of the characters appearing in the album are the user or an acquaintance. For example, an album contains 16 photos, 13 of which are photos of Zhang San, and 1 is a photo of Li Si, according to the optimization principle of face recognition, the photo of Li Si is removed in the album.
(3)相册最大相似地点的获取(3) Acquisition of the largest similar location of the album
在数据采集模块210获取各个图片的经纬度数据后,将该经纬度数据转换为地点数据。地点数据可包含不同行政级别的区划信息,如国家、省、市、区、道路、门牌等。移动终端可设定达到最大相似度的比例数percentX。After the data acquisition module 210 acquires the latitude and longitude data of each picture, the latitude and longitude data is converted into location data. The location data may include zoning information at different administrative levels, such as countries, provinces, cities, districts, roads, house numbers, and the like. The mobile terminal can set the ratio of the maximum similarity percentageX.
首先比较各图片中地点数据中的门牌号,当某一门牌号在相册全部地点的门牌号中的比例大于percentX时,此门牌号即为相册的最大相似地点。First, compare the house number in the location data of each picture. When the proportion of a house number in the house number of all the places in the album is greater than percentX, the house number is the largest similar place of the album.
当无法找到达到percentX的门牌号时,往上一级比较道路名。当能找到比例达到percentX的道路名时,以此道路作为最大相似地点,否则继续往上一级,直到找到最大相似地点位置。When the house number that reaches percentX cannot be found, compare the road name to the previous level. When a road name with a percentage of percentX can be found, use this road as the most similar location, otherwise continue to the next level until the location of the largest similar location is found.
3、数据存储模块230,用于将数据分析处理模块220得到的各个相册的关键信息(例如开始时间,结束时间,相册的最大相似地点,相册的封面以及图片属于某个相册的标识符)进行存储。3. The data storage module 230 is configured to perform key information of each album obtained by the data analysis processing module 220 (eg, start time, end time, maximum similarity of the album, cover of the album, and identifier of the image belonging to a certain album). storage.
4、相册显示模块240,用于读取数据存储模块230存储的相册各项关键信息。相册列表界面依次显示各个相册,根据封面数据读取封面照片并显示为相册封面。取相册时间与最大相似地点名的组合为相册名,例如“国庆节在上海”。打开相册,读取具备此相册标识符的全部图片,继而按照一定顺序依次显示。4. The album display module 240 is configured to read key information of the album stored by the data storage module 230. The album list interface displays each album in turn, and reads the cover photo based on the cover data and displays it as an album cover. The combination of the album time and the most similar location name is the album name, for example, "National Day in Shanghai". Open the album, read all the images with this album identifier, and then display them in a certain order.
在本发明的上述实施例中,可对聚类过程做进一步优化,例如:节假日加强相邻相册的合并趋势;非节假日减弱相邻相册的合并趋势。例如,非假日时间段,时间差在24小时内的相邻相册,进行合并;假日时间段,时间差在36或48小时内的相邻相册,进行合并。假日时间段,指元旦、劳动节、国庆节等多日假期的节日。在不同国家可根据各国当地的情况进行设定。也可以由用户自主设定,例如用户休年假,移动终端可提供假日设置入口,将某段时间设置为节假日。In the above embodiment of the present invention, the clustering process can be further optimized, for example, the holiday enhances the merge trend of the adjacent albums; the non-holiday weakens the merge trend of the adjacent albums. For example, in non-holiday time periods, adjacent albums with a time difference of 24 hours are merged; in the holiday time period, adjacent albums with a time difference of 36 or 48 hours are merged. Holiday time period refers to the holiday of multi-day holidays such as New Year's Day, Labor Day, and National Day. In different countries, it can be set according to the local conditions of each country. It can also be set by the user autonomously. For example, the user can take annual leave, and the mobile terminal can provide a holiday setting entrance and set a certain period of time as a holiday.
在上述构思的基础上,如图7所示,本发明实施例提供了一种生成相册的方法,所述方法包括:On the basis of the above concept, as shown in FIG. 7, an embodiment of the present invention provides a method for generating an album, and the method includes:
S710,移动终端获取第一图片集,所述第一图片集至少包括两张图片,所述第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的至少一个。S710: The mobile terminal acquires a first picture set, where the first picture set includes at least two pictures, and the attribute information of the picture in the first picture set includes geographic location information, pixel value information, time information, and image type information. at least one.
具体地,移动终端获取第一图片集,为移动终端在UI界面上呈现本地已经存储的所有的图片,不仅包括用户自己拍摄的,还包括用户从服务器下载的,以及相关的截图。Specifically, the mobile terminal acquires the first picture set, and presents all the pictures that have been stored locally on the UI interface for the mobile terminal, including not only the user himself, but also the user downloads from the server, and related screenshots.
地理位置信息,可以是GPS地理位置信息,也可是其它用于标识地理位置的信息,如经纬度、海拔、省市县街道等。The geographical location information may be GPS geographical location information, or other information used to identify the geographical location, such as latitude and longitude, altitude, provincial, city, county, and the like.
像素值信息,可以是各个像素点的RGB值,也可以是经处理器综合分析各像素点的RGB值后生成的概括信息。The pixel value information may be an RGB value of each pixel, or may be summary information generated by the processor comprehensively analyzing the RGB values of the respective pixels.
时间信息,可以具体到年月日,也可以具体到某一时刻,还可以节假日等。 The time information can be specific to the year, month, and day, or can be specific to a certain time, and can also be a holiday.
图像类型信息,用于标识该图像的被摄物体的类型,例如是人像图片,还是风景图片,还是动植物图片。Image type information, which is used to identify the type of subject of the image, such as a portrait picture, a landscape picture, or an animal and plant picture.
属性信息可包括上述信息中的一个,也可以为上述信息的任意组合,还可以是可以用于标识图片属性的其它信息。The attribute information may include one of the above information, or may be any combination of the above information, and may be other information that can be used to identify the attribute of the picture.
S720,根据所述属性信息,筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近。S720: Filter, according to the attribute information, the picture in the first picture set to generate a second picture set, where the second picture set is a subset of the first picture set, and the second picture set is a picture The attribute information is the same or similar.
具体地,可通过上述实施例中提及的筛选方法进行图片筛选。图片的属性信息相同,是指上述提及的地理位置信息、时间信息、图像类型信息、像素值信息等相同,例如地理位置相同,和/或,时间相同,和/或,图像类型相同,和/或,像素值信息相同。Specifically, the screen screening can be performed by the screening method mentioned in the above embodiments. The attribute information of the picture is the same, which means that the geographical location information, the time information, the image type information, the pixel value information, and the like mentioned above are the same, for example, the geographical position is the same, and/or the time is the same, and/or the image type is the same, and / or, the pixel value information is the same.
图片的属性信息相近,是指上述提及的地理位置信息、时间信息、图像类型信息、像素值信息等相近似,或偏差在预设范围内。具体地:The attribute information of the picture is similar, which means that the geographical location information, time information, image type information, pixel value information, etc. mentioned above are similar, or the deviation is within a preset range. specifically:
地理位置信息相近,可以是两张图片的GPS位置同属于一个省/市/区县,可以是两张图片的地理坐标的偏差值在预设范围内,或者,经纬度的偏差值在预设范围内。The geographic location information is similar, and the GPS location of the two pictures belongs to a province/city/district county. The deviation of the geographic coordinates of the two pictures may be within a preset range, or the deviation of the latitude and longitude is within a preset range. Inside.
时间信息相近,可以是两张图片的拍摄时间在同一天/周/月/年,或者在同一个节假日,该节假日可根据当地的法律法规确定,也可以是两张图片拍摄的时间差在预设范围内,例如时间间隔相差2天,具体可由用户自己设定,也可由移动终端根据规律性学***常周末算作一个范围。The time information is similar. It can be that the two pictures are taken on the same day/week/month/year, or on the same holiday. The holiday can be determined according to local laws and regulations, or the time difference between two pictures can be preset. Within the range, for example, the time interval is different by 2 days, which may be specifically set by the user, or may be determined by the mobile terminal according to regular learning. When the time is a holiday, the preset range of the shooting time deviation value may be longer than the preset range of the non-holiday shooting time deviation value, for example, the National Day 7 days can be counted as a range, and the usual weekend is counted as a range. .
图像类型信息相近,可以是两张图片拍摄的是同一个人/物品/动物/风景,也可以是同一群人;可以是同一类的,例如均是动物、均是植物、均是风景等。The image type information is similar, and the two pictures may be the same person/item/animal/landscape, or may be the same group; they may be of the same type, for example, animals, plants, and scenery.
像素值信息相似,可以是两张图片的RGB值的偏差在预设范围内。The pixel value information is similar, and the deviation of the RGB values of the two pictures may be within a preset range.
第二图片集可以是第一图片集的任意图片,例如某几张,也可以就是第一图片集。The second picture set may be any picture of the first picture set, such as a certain number of pictures, or may be the first picture set.
S730,根据所述第二图片集中的图片的属性信息,生成相册名称。S730. Generate an album name according to attribute information of the picture in the second picture set.
筛选出的第二图片集做为一个相册,相册的名称可以根据属性信息来,通过给第二图片集打标签,让第二图片集能与其它图片集区别开来。相册的命名可以参照如下规则:The filtered second image set is used as an album, and the name of the album can be labeled according to the attribute information, and the second image set can be distinguished from other image sets by labeling the second image set. The naming of the album can refer to the following rules:
若所述第二图片集中的图片的属性信息包括GPS信息,生成包含地理位置信息的相册名称;例如北京游玩。If the attribute information of the picture in the second picture set includes GPS information, generate an album name including the geographical location information; for example, Beijing play.
若所述第二图片集中的图片的属性信息包括时间信息,生成包含时间信息的相册名称;例如国庆。If the attribute information of the picture in the second picture set includes time information, generate an album name including time information; for example, National Day.
若所述第二图片集中的图片的属性信息包括图像类型信息,生成包含图像类型的相册名称,例如华山。If the attribute information of the picture in the second picture set includes image type information, generate an album name including an image type, such as Huashan.
进一步地,若第二图片集的多个属性信息相同或相近,则在命名时可考虑多个属性信息。例如GPS信息和时间信息相同,则生成时间、地点的标签,如国庆北京游。由例如GPS信息和图像类型信息相同,则生成地点、类型的标签,如西安华山。实际中可能包括有多种组合,在此不做赘述。命名有利于用户快速获知图片集的信息,提高了图片的识别率。Further, if the plurality of attribute information of the second picture set are the same or similar, a plurality of attribute information may be considered in naming. For example, the GPS information and the time information are the same, and the time and place labels are generated, such as the National Day Beijing Tour. By the same information such as GPS information and image type information, a place, a type of tag, such as Xi'an Huashan, is generated. There may be many combinations in practice, and will not be described here. The naming helps the user to quickly know the information of the picture set and improves the recognition rate of the picture.
S740,以所述相册名称作为所述第二图片集的名称,生成相册。S740, generating an album by using the album name as the name of the second picture set.
如图8所示,移动终端可生成如“周末在舟山”、“十天在欧洲”、“国庆节”等多个相册。用户若想打开相册,可获取用户输入的查看指令,移动终端根据该查看指令, 打开相册。此时,移动终端至少有两种方式呈现相册中的图片:其一,如图9中A部分所示,在UI界面上以缩略图的形式呈现相册中的图片。具体的图片在获取用户点击后,可放大显示用户点击的图片。在用户点击该相册的菜单项后,可弹出对话框,询问用户是否重命名或删除该相册,如图9中B部分所示。该相册的任一照片,在获取用户的长按操作后,可选中用户长按的图片,同时提供分享、删除等功能项供用户选择,该图片可与其它图片区别显示,如图9中C部分所示。其二,以幻灯片或视频的方式,按照预设的顺序,例如照片拍摄的时间、照片与相册主题的相关度、照片拍摄的地理位置等顺序,依次播放第二图片集中的图片。As shown in FIG. 8, the mobile terminal can generate a plurality of albums such as "Weekend in Zhoushan", "Ten Days in Europe", "National Day" and the like. If the user wants to open the album, the user can input the viewing instruction, and the mobile terminal according to the viewing instruction. Open the album. At this time, the mobile terminal presents the picture in the album in at least two ways: First, as shown in part A of FIG. 9, the picture in the album is presented in the form of a thumbnail on the UI interface. The specific image can be enlarged to display the image clicked by the user after the user clicks. After the user clicks on the menu item of the album, a dialog box pops up asking the user whether to rename or delete the album, as shown in part B of FIG. Any photo of the album, after obtaining the long press operation of the user, may select a picture that the user has long pressed, and provide functions such as sharing and deleting for the user to select, the picture may be displayed differently from other pictures, as shown in FIG. 9C. Part of it. Secondly, in the form of a slide show or a video, the pictures in the second picture set are sequentially played in a preset order, such as the time of the photo shooting, the relevance of the photo and the theme of the photo album, and the geographical position of the photo shooting.
在实际生活中,用户可能拍摄多张照片,生成不止一个相册。本实施例还提供了一种相册的布局示意图,如图10所示,图10中A部分为移动终端只有一个相册的示意图,图10中B部分为移动终端生成两个相册的示意图,图10中的C部分、D部分、E部分、F部分、G部分、H部分、I部分分别为移动终端生成三个、四个、五个、六个、七个、八个、九个相册的布局示意图。其布局规则可以是最新生成的相册放置在用户最容易看到的位置,以方便用户查看相册的生成是否合理,或方便用户与朋友分享照片。或者,其布局规则可以是拍摄时间最久的相册,放在用户最容易看到的位置,以方便用户回忆以前的趣事。或者,其布局规则可以是最具有纪念意义的相册,放在用户最容易看到的位置,例如用户结婚照的相册优先于用户周末去公园玩的相册。或者,用户可设定相应的布局规则。如图11所示,图11提供了一种按照相应的布局规则呈现相册的示意图。进一步地,图11在呈现所有相册的同时,可在上述相册的基础上,生成最佳回忆相册,该最佳会议相册可以是过去某一时间段内最具有纪念意义的照片,也可以是过去某地最具有纪念意义的照片,例如图11最下面的“年度最佳回忆-2016”。相册的布局也可有不同的维度,例如按照时间维度布局相册,或者按照图像类型布局相册。如图12所示,其UI界面的上半部分以时间/地点维度展示相册,下半部分以人物维度展示相册,其中,人物相册的名称可以是人物的名字。In real life, users may take multiple photos and generate more than one album. This embodiment also provides a layout diagram of an album. As shown in FIG. 10, part A in FIG. 10 is a schematic diagram of only one album of the mobile terminal, and part B in FIG. 10 is a schematic diagram of generating two albums by the mobile terminal, FIG. The C part, the D part, the E part, the F part, the G part, the H part, and the I part respectively generate three, four, five, six, seven, eight, nine album layouts for the mobile terminal schematic diagram. The layout rule may be that the newly generated album is placed in the most easily seen position of the user, so that the user can check whether the generation of the album is reasonable, or facilitate the user to share the photo with the friend. Or, the layout rule can be the album with the longest shooting time, placed in the most easy-to-see position of the user, so that the user can recall the previous interesting things. Or, the layout rule can be the most memorable album, placed in the most easily seen position of the user, for example, the photo album of the user's wedding photo takes precedence over the album that the user goes to the park during the weekend. Alternatively, the user can set the corresponding layout rules. As shown in FIG. 11, FIG. 11 provides a schematic diagram of presenting an album in accordance with a corresponding layout rule. Further, in FIG. 11 , while presenting all the albums, an optimal recollection album may be generated on the basis of the above albums, and the best conference album may be the most memorable photo in a certain period of time in the past, or may be the past The most memorable photo of a place, such as the "Reminiscence of the Year - 2016" at the bottom of Figure 11. Album layouts can also have different dimensions, such as laying out albums by time dimension, or laying out albums by image type. As shown in FIG. 12, the upper half of the UI interface displays the album in time/place dimensions, and the lower half displays the album in the character dimension, wherein the name of the character album may be the name of the character.
在本发明的一个实施例中,移动终端还可获取用户输入的滑动手势、点击操作等指令,该指令的触发对象为所述第二图片集中的第一图片,该指令用于将第一图片设置为该相册的封面;移动终端获取该指令后,响应该指令,将第一图片设置为相册的封面。用户可以将自己喜欢的照片设置为相册封面,从而更好的标识该相册,方便了用户对相册进行个性化设置。进一步地,移动终端还可以获取用户输入的指令,该指令用于修改相册名称;移动终端响应该指令,根据用户的需求修改相册名称。In an embodiment of the present invention, the mobile terminal may further acquire a swipe gesture, a click operation, and the like input by the user, where the trigger object is the first picture in the second picture set, and the instruction is used to use the first picture. Set as the cover of the album; after the mobile terminal acquires the instruction, in response to the instruction, the first picture is set as the cover of the album. The user can set the photo he likes as the album cover to better identify the album, which is convenient for the user to personalize the album. Further, the mobile terminal may further acquire an instruction input by the user, where the instruction is used to modify the name of the album; and the mobile terminal responds to the instruction to modify the name of the album according to the user's needs.
在本发明的一个实施例中,若移动终端获取了新的图片,例如用户新拍摄了照片,该移动终端可执行如图6所述的方法,获取所述第二图片的属性信息;若所述第二图片的属性信息与所述第二图片集中的图片的属性信息相同或相近,则将所述第二图片加入所述相册中。In an embodiment of the present invention, if the mobile terminal acquires a new picture, for example, the user newly takes a photo, the mobile terminal may perform the method as shown in FIG. 6 to acquire attribute information of the second picture; If the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, the second picture is added to the album.
如图13所示,本发明实施例还提供了一种移动终端,其可用于执行如图4、图6或图7所示的方法,其相同或相应的技术特征均可援用前述实施例的描述,其相应的有益效果也可实现,对此不再过多赘述。该移动终端的结构可与图1示例的移动终端的结构相同,也可不同。该移动终端包括存储器1310、处理器1320、显示器1330。所述存储器1310存储有代码。所述处理器1320,用于读取所述存储器中的代码,以用于执行:获取第一图片集,所述第一图片集至少包括两张图片,所述第一图片集中的图片的属性信息 包括地理位置信息、像素值信息、时间信息、图像类型信息中的至少一个;根据所述属性信息,筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近;根据所述第二图片集中的图片的属性信息,生成相册名称;以所述相册名称作为所述第二图片集的名称,生成相册。所述显示器1330,用于显示所述相册和所述相册名称。通过读取现有图片集中的图片的属性信息,筛选出属性信息相同或相似的图片,并根据属性信息生成相册名称,形成相册。如此,可以方便用户快速地定位某次活动/旅游,进而快速查找图片,提高了用户的操控效率,提升了用户体验。As shown in FIG. 13 , an embodiment of the present invention further provides a mobile terminal, which can be used to perform the method as shown in FIG. 4 , FIG. 6 or FIG. 7 , and the same or corresponding technical features can be used in the foregoing embodiments. The description, the corresponding beneficial effects can also be achieved, and will not be repeated here. The structure of the mobile terminal may be the same as or different from the structure of the mobile terminal illustrated in FIG. 1. The mobile terminal includes a memory 1310, a processor 1320, and a display 1330. The memory 1310 stores a code. The processor 1320 is configured to read the code in the memory, to perform: acquiring a first picture set, where the first picture set includes at least two pictures, and attributes of the pictures in the first picture set Information Include at least one of geographic location information, pixel value information, time information, and image type information; and filtering the image in the first image set according to the attribute information to generate a second image set, where the second image set is a subset of the first set of pictures, the attribute information of the pictures in the second set of pictures is the same or similar; generating an album name according to the attribute information of the pictures in the second set of pictures; The name of the second photo collection, generating an album. The display 1330 is configured to display the album and the album name. By reading the attribute information of the pictures in the existing picture set, the pictures with the same or similar attribute information are filtered out, and the album name is generated according to the attribute information to form an album. In this way, the user can quickly locate an event/tour, thereby quickly finding a picture, improving the user's control efficiency and improving the user experience.
在一种可能的实现中,所述属性信息包括地理位置信息,所述第一图片集的图片携带有全球定位***GPS信息;所述处理器具体用于,根据所述GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片。在一种可能的实现中,所述属性信息包括像素值信息;所述处理器具体用于,根据所述像素值信息,筛选像素值相同或像素值偏差在预设范围内的图片。在一种可能的实现中,所述属性信息包括时间信息;所述处理器具体用于,根据所述时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片。进一步地,若拍摄时间为节假日,则所述拍摄时间偏差值的预设范围设置为第一值;若拍摄时间为非节假日,则所述拍摄时间偏差值的预设范围设置为第二值;所述第一值大于等于所述第二值。在一种可能的实现中,所述属性信息包括图像类型信息;所述处理器具体用于,根据所述图像类型信息,筛选图像类型相同或相近的图片。In a possible implementation, the attribute information includes geographical location information, the picture of the first picture set carries global positioning system GPS information, and the processor is specifically configured to: filter the GPS information according to the GPS information. Pictures with the same or GPS information deviation within the preset range. In one possible implementation, the attribute information includes pixel value information, and the processor is specifically configured to: according to the pixel value information, filter a picture with the same pixel value or a pixel value deviation within a preset range. In one possible implementation, the attribute information includes time information; the processor is specifically configured to: according to the time information, screen a picture with the same shooting time or a shooting time deviation value within a preset range. Further, if the shooting time is a holiday, the preset range of the shooting time deviation value is set to a first value; if the shooting time is a non-holiday, the preset range of the shooting time deviation value is set to a second value; The first value is greater than or equal to the second value. In one possible implementation, the attribute information includes image type information; and the processor is specifically configured to: filter, according to the image type information, a picture of the same or similar image type.
在上述可能的实现中,所述处理器具体用于,通过聚类算法筛选所述第一图片集中的图片。In the above possible implementation, the processor is specifically configured to filter, by using a clustering algorithm, a picture in the first picture set.
在上述可能的实现中,所述处理器具体用于,若所述第二图片集中的图片的属性信息包括GPS信息,生成包含地理位置信息的相册名称;若所述第二图片集中的图片的属性信息包括时间信息,生成包含时间信息的相册名称;若所述第二图片集中的图片的属性信息包括图像类型信息,生成包含图像类型的相册名称。In the above possible implementation, the processor is specifically configured to: if the attribute information of the picture in the second picture set includes GPS information, generate an album name including location information; if the picture in the second picture set The attribute information includes time information, and generates an album name including time information; if the attribute information of the picture in the second picture set includes image type information, generates an album name including the image type.
在上述可能的实现中,所述移动终端还包括输入设备;所述输入设备用于,获取用户输入的第一指令,所述第一指令的触发对象为所述第二图片集中的第一图片,所述第一指令用于将所述第一图片设置为所述相册的封面;所述处理器还用于,响应所述第一指令,将所述第一图片设置为所述相册的封面。In the above possible implementation, the mobile terminal further includes an input device, where the input device is configured to acquire a first instruction input by the user, where the triggering object of the first instruction is the first image in the second image set. The first instruction is configured to set the first picture as a cover of the album; the processor is further configured to: set the first picture as a cover of the album in response to the first instruction .
在上述可能的实现中,所述移动终端还包括输入设备;所述输入设备用于,获取用户输入的第二指令,所述第二指令用于修改所述相册名称;所述处理器还用于,响应所述第二指令,修改所述相册名称。In the above possible implementation, the mobile terminal further includes an input device, where the input device is configured to acquire a second instruction input by the user, the second instruction is used to modify the name of the album, and the processor further uses And in response to the second instruction, modifying the album name.
在上述可能的实现中,所述移动终端还包括输入设备;所述输入设备用于,获取用户输入的第三指令,所述第三指令用于打开所述相册;所述处理器还用于响应所述第三指令;所述显示器还用于,按照预设的顺序依次呈现所述第二图片集中的图片。In the above possible implementation, the mobile terminal further includes an input device, the input device is configured to acquire a third instruction input by the user, and the third instruction is used to open the album; the processor is further configured to: Responding to the third instruction; the display is further configured to sequentially present the pictures in the second picture set in a preset order.
在上述可能的实现中,所述存储器还用于,存储第二图片,所述第二图片为所述移动终端最新获取的图片;所述处理器还用于,获取所述第二图片的属性信息;若所述第二图片的属性信息与所述第二图片集中的图片的属性信息相同或相近,则将所述第二图片加入所述相册中。In the above possible implementation, the memory is further configured to: store a second picture, where the second picture is a newly acquired picture of the mobile terminal; and the processor is further configured to acquire an attribute of the second picture Information: if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, adding the second picture to the album.
在上述可能的实现中,所述存储器还存储有至少一个第一相册;所述显示器还用于,按照时间维度,依次展示所述相册和所述至少一个第一相册;或者,对于人像相册,按 照与所述移动终端的用户的亲密程度,依次展示所述相册和所述至少一个第一相册;或者,按照用户预先设定的顺序,依次展示所述相册和所述至少一个相册。In the above possible implementation, the memory further stores at least one first album; the display is further configured to sequentially display the album and the at least one first album according to a time dimension; or, for a portrait album, Press Displaying the album and the at least one first album in sequence according to the degree of intimacy of the user of the mobile terminal; or sequentially displaying the album and the at least one album in an order preset by the user.
如图14所示,本发明实施例还提供了一种装置,其可用于执行如图4或图6或图7所示的方法,其相同或相应的技术特征均可援用前述实施例的描述,其相应的有益效果也可实现,对此不再过多赘述。As shown in FIG. 14, the embodiment of the present invention further provides a device, which can be used to perform the method as shown in FIG. 4 or FIG. 6 or FIG. 7, and the same or corresponding technical features can be used to describe the foregoing embodiment. The corresponding beneficial effects can also be achieved, and will not be repeated here.
所述装置包括:第一获取模块1410,用于获取第一图片集,所述第一图片集至少包括两张图片,所述第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的至少一个;筛选模块1420,用于筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近;第一生成模块1430,用于根据所述第二图片集中的图片的属性信息,生成相册名称;第二生成模块1440,用于以所述相册名称作为所述第二图片集的名称,生成相册。通过读取现有图片集中的图片的属性信息,筛选出属性信息相同或相似的图片,并根据属性信息生成相册名称,形成相册。如此,可以方便用户快速地定位某次活动/旅游,进而快速查找图片,提高了用户的操控效率,提升了用户体验。The device includes: a first obtaining module 1410, configured to acquire a first picture set, where the first picture set includes at least two pictures, and attribute information of the pictures in the first picture set includes geographic location information and pixel value information. At least one of time information and image type information; a screening module 1420, configured to filter a picture in the first picture set, to generate a second picture set, where the second picture set is a subset of the first picture set And the attribute information of the picture in the second picture set is the same or similar; the first generation module 1430 is configured to generate an album name according to the attribute information of the picture in the second picture set; and the second generation module 1440 is configured to The album name is used as the name of the second album set to generate an album. By reading the attribute information of the pictures in the existing picture set, the pictures with the same or similar attribute information are filtered out, and the album name is generated according to the attribute information to form an album. In this way, the user can quickly locate an event/tour, thereby quickly finding a picture, improving the user's control efficiency and improving the user experience.
在一种可能的实现中,所述属性信息包括地理位置信息,所述第一图片集的图片携带有全球定位***GPS信息;所述筛选模块具体用于,根据所述GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片。In a possible implementation, the attribute information includes geographic location information, the picture of the first picture set carries global positioning system GPS information, and the screening module is specifically configured to: filter the GPS information according to the GPS information. Pictures with the same or GPS information deviation within the preset range.
在一种可能的实现中,所述属性信息包括像素值信息;所述筛选模块具体用于,根据所述像素值信息,筛选像素值相同或像素值偏差在预设范围内的图片。In one possible implementation, the attribute information includes pixel value information, and the screening module is specifically configured to: according to the pixel value information, filter a picture with the same pixel value or a pixel value deviation within a preset range.
在一种可能的实现中,所述属性信息包括时间信息;所述筛选模块具体用于,根据所述时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片。进一步地,若拍摄时间为节假日,则所述拍摄时间偏差值的预设范围设置为第一值;若拍摄时间为非节假日,则所述拍摄时间偏差值的预设范围设置为第二值;所述第一值大于等于所述第二值。In one possible implementation, the attribute information includes time information; and the screening module is specifically configured to: according to the time information, screen the pictures with the same shooting time or the shooting time deviation value within a preset range. Further, if the shooting time is a holiday, the preset range of the shooting time deviation value is set to a first value; if the shooting time is a non-holiday, the preset range of the shooting time deviation value is set to a second value; The first value is greater than or equal to the second value.
在一种可能的实现中,所述属性信息包括图像类型信息;所述筛选模块具体用于,根据所述图像类型信息,筛选图像类型相同或相近的图片。In a possible implementation, the attribute information includes image type information; and the screening module is specifically configured to: filter, according to the image type information, a picture with the same or similar image type.
在上述可能的实现中,所述筛选模块具体用于,通过聚类算法筛选所述第一图片集中的图片。In the above possible implementation, the screening module is specifically configured to filter the pictures in the first picture set by using a clustering algorithm.
在上述可能的实现中,所述第一生成模块,具体用于,若所述第二图片集中的图片的属性信息包括GPS信息,生成包含地理位置信息的相册名称;若所述第二图片集中的图片的属性信息包括时间信息,生成包含时间信息的相册名称;若所述第二图片集中的图片的属性信息包括图像类型信息,生成包含图像类型的相册名称。In the above possible implementation, the first generating module is specifically configured to: if the attribute information of the picture in the second picture set includes GPS information, generate an album name including geographic location information; if the second image set The attribute information of the picture includes time information, and generates an album name including time information; if the attribute information of the picture in the second picture set includes image type information, generates an album name including the image type.
在上述可能的实现中,所述装置还包括:第二获取模块,用于获取用户输入的第一指令,所述第一指令的触发对象为所述第二图片集中的第一图片,所述第一指令用于将所述第一图片设置为所述相册的封面;第一响应模块,用于响应所述第一指令,将所述第一图片设置为所述相册的封面。In the above possible implementation, the device further includes: a second acquiring module, configured to acquire a first instruction input by the user, where the triggering object of the first instruction is a first picture in the second picture set, The first instruction is configured to set the first picture as a cover of the album; the first response module is configured to set the first picture as a cover of the album in response to the first instruction.
在上述可能的实现中,所述装置还包括:第三获取模块,用于获取用户输入的第二指令,所述第二指令用于修改所述相册名称;第二响应模块,用于响应所述第二指令,修改所述相册名称。 In the above possible implementation, the device further includes: a third acquiring module, configured to acquire a second instruction input by the user, the second instruction is used to modify the name of the album; and a second response module is configured to respond to the The second instruction is described to modify the album name.
在上述可能的实现中,所述装置还包括:第四获取模块,用于获取用户输入的第三指令,所述第三指令用于打开所述相册;第三响应模块,用于响应所述第三指令,按照预设的顺序依次呈现所述第二图片集中的图片。In the above possible implementation, the device further includes: a fourth acquiring module, configured to acquire a third instruction input by the user, the third instruction is used to open the album; and a third response module is configured to respond to the The third instruction sequentially presents the pictures in the second picture set in a preset order.
在上述可能的实现中,所述装置还包括:存储模块,用于存储第二图片,所述第二图片为所述移动终端最新获取的图片;第五获取模块,用于获取所述第二图片的属性信息;加入模块,若所述第二图片的属性信息与所述第二图片集中的图片的属性信息相同或相近,用于将所述第二图片加入所述相册中。In the above possible implementation, the device further includes: a storage module, configured to store a second picture, where the second picture is a newly acquired picture of the mobile terminal; and a fifth acquiring module, configured to acquire the second The attribute information of the picture; the adding module, if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, for adding the second picture to the album.
在上述可能的实现中,所述移动终端还包括至少一个第一相册;所述装置还包括展示模块,用于按照时间维度,依次展示所述相册和所述至少一个第一相册;或者,对于人像相册,按照与所述移动终端的用户的亲密程度,依次展示所述相册和所述至少一个第一相册;或者,按照用户预先设定的顺序,依次展示所述相册和所述至少一个相册。In the above possible implementation, the mobile terminal further includes at least one first album; the apparatus further includes a display module, configured to sequentially display the album and the at least one first album according to a time dimension; or, for a portrait album, sequentially displaying the album and the at least one first album according to a degree of intimacy with a user of the mobile terminal; or sequentially displaying the album and the at least one album in an order preset by a user .
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质可存储有程序,该程序执行时包括如图4或图6或图7所示的方法,其相同或相应的技术特征均可援用前述实施例的描述,其相应的有益效果也可实现,对此不再过多赘述。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium can store a program, and the program includes a method as shown in FIG. 4 or FIG. 6 or FIG. 7 , and the same or corresponding technical features are The description of the foregoing embodiments may be invoked, and the corresponding advantageous effects may also be implemented, and no further details are provided herein.
需要说明的是,在本发明的上述实施例中,“第一”“第二”之类的表述仅用于各表述对象之间的区分之用,不具有实际含义。便携式电子设备与终端等义。It should be noted that, in the above-described embodiments of the present invention, the expressions "first", "second" and the like are used only for the distinction between the respective expression objects, and have no practical meaning. Portable electronic devices and terminals are equivalent.
在本发明各个实施例中的各功能模块可以集成在一个处理单元模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。The functional modules in various embodiments of the present invention may be integrated into one processing unit module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,其实现原理和技术效果类似,相同或相应的技术特征在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the device is installed. The internal structure is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiments, and the implementation principles and technical effects are similar, and the same or corresponding technical features are not described herein again.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (40)

  1. 一种生成相册的方法,其特征在于,所述方法包括:A method of generating an album, the method comprising:
    移动终端获取第一图片集,所述第一图片集至少包括两张图片,所述第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的至少一个;The mobile terminal acquires a first picture set, where the first picture set includes at least two pictures, and the attribute information of the picture in the first picture set includes at least one of geographic location information, pixel value information, time information, and image type information. ;
    根据所述属性信息,筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近;Filtering, according to the attribute information, the picture in the first picture set to generate a second picture set, where the second picture set is a subset of the first picture set, and attribute information of the picture in the second picture set Same or similar;
    根据所述第二图片集中的图片的属性信息,生成相册名称;Generating an album name according to attribute information of the picture in the second picture set;
    以所述相册名称作为所述第二图片集的名称,生成相册。An album is generated with the album name as the name of the second album.
  2. 根据权利要求1所述的方法,其特征在于,所述属性信息包括地理位置信息,所述第一图片集的图片携带有全球定位***GPS信息;所述根据所述属性信息,筛选所述第一图片集中的图片,包括:The method according to claim 1, wherein the attribute information comprises geographical location information, the picture of the first picture set carries global positioning system GPS information; and the screening of the first information according to the attribute information An image in a collection of images, including:
    根据所述GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片。According to the GPS information, a picture with the same GPS information or a deviation of the GPS information within a preset range is screened.
  3. 根据权利要求1所述的方法,其特征在于,所述属性信息包括像素值信息;所述根据所述属性信息,筛选所述第一图片集中的图片,包括:The method according to claim 1, wherein the attribute information comprises pixel value information; and the filtering the picture in the first picture set according to the attribute information comprises:
    根据所述像素值信息,筛选像素值相同或像素值偏差在预设范围内的图片。And filtering, according to the pixel value information, a picture with the same pixel value or a pixel value deviation within a preset range.
  4. 根据权利要求1所述的方法,其特征在于,所述属性信息包括时间信息;所述根据所述属性信息,筛选所述第一图片集中的图片,包括:The method according to claim 1, wherein the attribute information includes time information; and the filtering the picture in the first picture set according to the attribute information comprises:
    根据所述时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片。According to the time information, a picture in which the shooting time is the same or the shooting time deviation value is within a preset range.
  5. 根据权利要求4所述的方法,其特征在于,若拍摄时间为节假日,则所述拍摄时间偏差值的预设范围设置为第一值;The method according to claim 4, wherein if the shooting time is a holiday, the preset range of the shooting time deviation value is set to a first value;
    若拍摄时间为非节假日,则所述拍摄时间偏差值的预设范围设置为第二值;所述第一值大于等于所述第二值。If the shooting time is non-holiday, the preset range of the shooting time deviation value is set to a second value; the first value is greater than or equal to the second value.
  6. 根据权利要求1所述的方法,其特征在于,所述属性信息包括图像类型信息;所述根据所述属性信息,筛选所述第一图片集中的图片,包括:The method according to claim 1, wherein the attribute information includes image type information; and the filtering the image in the first picture set according to the attribute information comprises:
    根据所述图像类型信息,筛选图像类型相同或相近的图片。Filtering pictures of the same or similar image type according to the image type information.
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述筛选所述第一图片集中的图片,包括:通过聚类算法筛选所述第一图片集中的图片。The method according to any one of claims 1-6, wherein the screening the pictures in the first picture set comprises: filtering the pictures in the first picture set by a clustering algorithm.
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述生成相册名称,包括如下至少一种情况:The method according to any one of claims 1-7, wherein said generating an album name comprises at least one of the following cases:
    若所述第二图片集中的图片的属性信息包括GPS信息,生成包含地理位置信息的相册名称;If the attribute information of the picture in the second picture set includes GPS information, generate an album name including the geographical location information;
    若所述第二图片集中的图片的属性信息包括时间信息,生成包含时间信息的相册名称;If the attribute information of the picture in the second picture set includes time information, generate an album name including time information;
    若所述第二图片集中的图片的属性信息包括图像类型信息,生成包含图像类型的相册名称。If the attribute information of the picture in the second picture set includes image type information, an album name including the image type is generated.
  9. 根据权利要求1-8任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-8, wherein the method further comprises:
    获取用户输入的第一指令,所述第一指令的触发对象为所述第二图片集中的第一图片,所述第一指令用于将所述第一图片设置为所述相册的封面;Obtaining a first instruction input by the user, the triggering object of the first instruction is a first picture in the second picture set, and the first instruction is used to set the first picture as a cover of the album;
    响应所述第一指令,将所述第一图片设置为所述相册的封面。 In response to the first instruction, the first picture is set as a cover of the album.
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-9, wherein the method further comprises:
    获取用户输入的第二指令,所述第二指令用于修改所述相册名称;Obtaining a second instruction input by the user, where the second instruction is used to modify the album name;
    响应所述第二指令,修改所述相册名称。The album name is modified in response to the second instruction.
  11. 根据权利要求1-10任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 10, wherein the method further comprises:
    获取用户输入的第三指令,所述第三指令用于打开所述相册;Obtaining a third instruction input by the user, the third instruction is used to open the album;
    响应所述第三指令,按照预设的顺序依次呈现所述第二图片集中的图片。In response to the third instruction, the pictures in the second picture set are sequentially presented in a preset order.
  12. 根据权利要求1-11任一所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-11, wherein the method further comprises:
    所述移动终端存储第二图片,所述第二图片为所述移动终端最新获取的图片;The mobile terminal stores a second picture, where the second picture is a picture that is newly acquired by the mobile terminal;
    获取所述第二图片的属性信息;Obtaining attribute information of the second picture;
    若所述第二图片的属性信息与所述第二图片集中的图片的属性信息相同或相近,则将所述第二图片加入所述相册中。And if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, adding the second picture to the album.
  13. 根据权利要求1-12任一所述的方法,其特征在于,所述移动终端还包括至少一个第一相册;所述方法还包括:The method according to any one of claims 1 to 12, wherein the mobile terminal further comprises at least one first album; the method further comprises:
    按照时间维度,依次展示所述相册和所述至少一个第一相册;或者,Displaying the album and the at least one first album in sequence according to a time dimension; or
    对于人像相册,按照与所述移动终端的用户的亲密程度,依次展示所述相册和所述至少一个第一相册;或者,For the portrait album, the album and the at least one first album are sequentially displayed according to the degree of intimacy with the user of the mobile terminal; or
    按照用户预先设定的顺序,依次展示所述相册和所述至少一个相册。The album and the at least one album are sequentially displayed in an order preset by the user.
  14. 一种移动终端,其特征在于,所述移动终端包括存储器、处理器、显示器;所述存储器存储有代码;所述处理器,用于读取所述存储器中的代码,以用于执行:A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor, a display; the memory stores a code; the processor is configured to read code in the memory for execution:
    获取第一图片集,所述第一图片集至少包括两张图片,所述第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的至少一个;Obtaining a first picture set, where the first picture set includes at least two pictures, and the attribute information of the picture in the first picture set includes at least one of geographic location information, pixel value information, time information, and image type information;
    根据所述属性信息,筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近;Filtering, according to the attribute information, the picture in the first picture set to generate a second picture set, where the second picture set is a subset of the first picture set, and attribute information of the picture in the second picture set Same or similar;
    根据所述第二图片集中的图片的属性信息,生成相册名称;Generating an album name according to attribute information of the picture in the second picture set;
    以所述相册名称作为所述第二图片集的名称,生成相册;Generating an album by using the album name as the name of the second album set;
    所述显示器,用于显示所述相册和所述相册名称。The display is configured to display the album and the album name.
  15. 根据权利要求14所述的移动终端,其特征在于,所述属性信息包括地理位置信息,所述第一图片集的图片携带有全球定位***GPS信息;所述处理器具体用于,根据所述GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片。The mobile terminal according to claim 14, wherein the attribute information comprises geographical location information, and the picture of the first picture set carries global positioning system GPS information; the processor is specifically configured to: according to the GPS information, screening pictures with the same GPS information or GPS information within a preset range.
  16. 根据权利要求14所述的移动终端,其特征在于,所述属性信息包括像素值信息;所述处理器具体用于,根据所述像素值信息,筛选像素值相同或像素值偏差在预设范围内的图片。The mobile terminal according to claim 14, wherein the attribute information comprises pixel value information, and the processor is specifically configured to: according to the pixel value information, filter pixel values to be the same or pixel value deviations in a preset range Picture inside.
  17. 根据权利要求14所述的移动终端,其特征在于,所述属性信息包括时间信息;所述处理器具体用于,根据所述时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片。The mobile terminal according to claim 14, wherein the attribute information includes time information, and the processor is configured to: according to the time information, the screen shooting time is the same or the shooting time deviation value is within a preset range. picture of.
  18. 根据权利要求17所述的移动终端,其特征在于,若拍摄时间为节假日,则所述拍摄时间偏差值的预设范围设置为第一值;The mobile terminal according to claim 17, wherein if the shooting time is a holiday, the preset range of the shooting time deviation value is set to a first value;
    若拍摄时间为非节假日,则所述拍摄时间偏差值的预设范围设置为第二值;所述第一值大于等于所述第二值。If the shooting time is non-holiday, the preset range of the shooting time deviation value is set to a second value; the first value is greater than or equal to the second value.
  19. 根据权利要求14所述的移动终端,其特征在于,所述属性信息包括图像类型信 息;所述处理器具体用于,根据所述图像类型信息,筛选图像类型相同或相近的图片。The mobile terminal of claim 14, wherein the attribute information comprises an image type letter The processor is specifically configured to: filter images of the same or similar image type according to the image type information.
  20. 根据权利要求14-19任一所述的移动终端,其特征在于,所述处理器具体用于,通过聚类算法筛选所述第一图片集中的图片。The mobile terminal according to any one of claims 14 to 19, wherein the processor is specifically configured to filter a picture in the first picture set by using a clustering algorithm.
  21. 根据权利要求14-20任一所述的移动终端,其特征在于,所述处理器具体用于,若所述第二图片集中的图片的属性信息包括GPS信息,生成包含地理位置信息的相册名称;The mobile terminal according to any one of claims 14 to 20, wherein the processor is specifically configured to: if the attribute information of the picture in the second picture set includes GPS information, generate an album name including geographical location information ;
    若所述第二图片集中的图片的属性信息包括时间信息,生成包含时间信息的相册名称;If the attribute information of the picture in the second picture set includes time information, generate an album name including time information;
    若所述第二图片集中的图片的属性信息包括图像类型信息,生成包含图像类型的相册名称。If the attribute information of the picture in the second picture set includes image type information, an album name including the image type is generated.
  22. 根据权利要求14-21任一所述的移动终端,其特征在于,所述移动终端还包括输入设备;所述输入设备用于,获取用户输入的第一指令,所述第一指令的触发对象为所述第二图片集中的第一图片,所述第一指令用于将所述第一图片设置为所述相册的封面;The mobile terminal according to any one of claims 14 to 21, wherein the mobile terminal further comprises an input device; the input device is configured to acquire a first instruction input by the user, and the trigger object of the first instruction For the first picture in the second picture set, the first instruction is used to set the first picture as a cover of the album;
    所述处理器还用于,响应所述第一指令,将所述第一图片设置为所述相册的封面。The processor is further configured to set the first picture as a cover of the album in response to the first instruction.
  23. 根据权利要求14-21任一所述的移动终端,其特征在于,所述移动终端还包括输入设备;所述输入设备用于,获取用户输入的第二指令,所述第二指令用于修改所述相册名称;The mobile terminal according to any one of claims 14 to 21, wherein the mobile terminal further comprises an input device; the input device is configured to acquire a second instruction input by the user, and the second instruction is used to modify The album name;
    所述处理器还用于,响应所述第二指令,修改所述相册名称。The processor is further configured to modify the album name in response to the second instruction.
  24. 根据权利要求14-21任一所述的移动终端,其特征在于,所述移动终端还包括输入设备;所述输入设备用于,获取用户输入的第三指令,所述第三指令用于打开所述相册;The mobile terminal according to any one of claims 14 to 21, wherein the mobile terminal further comprises an input device; the input device is configured to acquire a third instruction input by a user, and the third instruction is used to open The album
    所述处理器还用于响应所述第三指令;The processor is further configured to respond to the third instruction;
    所述显示器还用于,按照预设的顺序依次呈现所述第二图片集中的图片。The display is further configured to sequentially display the pictures in the second picture set in a preset order.
  25. 根据权利要求14-24任一所述的移动终端,其特征在于,所述存储器还用于,存储第二图片,所述第二图片为所述移动终端最新获取的图片;The mobile terminal according to any one of claims 14 to 24, wherein the memory is further configured to store a second picture, where the second picture is a picture newly acquired by the mobile terminal;
    所述处理器还用于,获取所述第二图片的属性信息;若所述第二图片的属性信息与所述第二图片集中的图片的属性信息相同或相近,则将所述第二图片加入所述相册中。The processor is further configured to: acquire attribute information of the second picture; if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, the second picture is Join the album.
  26. 根据权利要求14-25任一所述的移动终端,其特征在于,所述存储器还存储有至少一个第一相册;所述显示器还用于,The mobile terminal according to any one of claims 14-25, wherein the memory further stores at least one first album; the display is further configured to:
    按照时间维度,依次展示所述相册和所述至少一个第一相册;或者,Displaying the album and the at least one first album in sequence according to a time dimension; or
    对于人像相册,按照与所述移动终端的用户的亲密程度,依次展示所述相册和所述至少一个第一相册;或者,For the portrait album, the album and the at least one first album are sequentially displayed according to the degree of intimacy with the user of the mobile terminal; or
    按照用户预先设定的顺序,依次展示所述相册和所述至少一个相册。The album and the at least one album are sequentially displayed in an order preset by the user.
  27. 一种装置,其特征在于,所述装置包括:A device, characterized in that the device comprises:
    第一获取模块,用于获取第一图片集,所述第一图片集至少包括两张图片,所述第一图片集中的图片的属性信息包括地理位置信息、像素值信息、时间信息、图像类型信息中的至少一个;a first acquiring module, configured to acquire a first picture set, where the first picture set includes at least two pictures, and the attribute information of the picture in the first picture set includes geographic location information, pixel value information, time information, and image type. At least one of the information;
    筛选模块,用于筛选所述第一图片集中的图片,生成第二图片集,所述第二图片集为所述第一图片集的子集,所述第二图片集中的图片的属性信息相同或相近; a screening module, configured to filter a picture in the first picture set, to generate a second picture set, where the second picture set is a subset of the first picture set, and the attribute information of the picture in the second picture set is the same Or similar;
    第一生成模块,用于根据所述第二图片集中的图片的属性信息,生成相册名称;a first generating module, configured to generate an album name according to attribute information of the picture in the second picture set;
    第二生成模块,用于以所述相册名称作为所述第二图片集的名称,生成相册。And a second generating module, configured to generate the album by using the album name as the name of the second album set.
  28. 根据权利要求27所述的装置,其特征在于,所述属性信息包括地理位置信息,所述第一图片集的图片携带有全球定位***GPS信息;所述筛选模块具体用于,根据所述GPS信息,筛选GPS信息相同或GPS信息偏差在预设范围内的图片。The device according to claim 27, wherein the attribute information comprises geographical location information, the picture of the first picture set carries global positioning system GPS information; and the screening module is specifically configured to: according to the GPS Information, screening pictures with the same GPS information or GPS information within a preset range.
  29. 根据权利要求27所述的装置,其特征在于,所述属性信息包括像素值信息;所述筛选模块具体用于,根据所述像素值信息,筛选像素值相同或像素值偏差在预设范围内的图片。The device according to claim 27, wherein the attribute information comprises pixel value information; the screening module is configured to: filter the pixel values to be the same or the pixel value deviation is within a preset range according to the pixel value information picture of.
  30. 根据权利要求27所述的装置,其特征在于,所述属性信息包括时间信息;所述筛选模块具体用于,根据所述时间信息,筛拍摄时间相同或拍摄时间偏差值在预设范围内的图片。The device according to claim 27, wherein the attribute information comprises time information; and the screening module is configured to: according to the time information, the screen shooting time is the same or the shooting time deviation value is within a preset range image.
  31. 根据权利要求30所述的装置,其特征在于,若拍摄时间为节假日,则所述拍摄时间偏差值的预设范围设置为第一值;The device according to claim 30, wherein if the shooting time is a holiday, the preset range of the shooting time deviation value is set to a first value;
    若拍摄时间为非节假日,则所述拍摄时间偏差值的预设范围设置为第二值;所述第一值大于等于所述第二值。If the shooting time is non-holiday, the preset range of the shooting time deviation value is set to a second value; the first value is greater than or equal to the second value.
  32. 根据权利要求27所述的装置,其特征在于,所述属性信息包括图像类型信息;所述筛选模块具体用于,根据所述图像类型信息,筛选图像类型相同或相近的图片。The device according to claim 27, wherein the attribute information comprises image type information; and the filtering module is configured to: filter images of the same or similar image type according to the image type information.
  33. 根据权利要求27-32任一所述的装置,其特征在于,所述筛选模块具体用于,通过聚类算法筛选所述第一图片集中的图片。The apparatus according to any one of claims 27 to 32, wherein the screening module is specifically configured to filter the pictures in the first picture set by a clustering algorithm.
  34. 根据权利要求27-33任一所述的装置,其特征在于,所述第一生成模块,具体用于,若所述第二图片集中的图片的属性信息包括GPS信息,生成包含地理位置信息的相册名称;The device according to any one of claims 27 to 33, wherein the first generating module is configured to generate, if the attribute information of the picture in the second picture set includes GPS information, generate location information including album name;
    若所述第二图片集中的图片的属性信息包括时间信息,生成包含时间信息的相册名称;If the attribute information of the picture in the second picture set includes time information, generate an album name including time information;
    若所述第二图片集中的图片的属性信息包括图像类型信息,生成包含图像类型的相册名称。If the attribute information of the picture in the second picture set includes image type information, an album name including the image type is generated.
  35. 根据权利要求27-34任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 27-34, wherein the device further comprises:
    第二获取模块,用于获取用户输入的第一指令,所述第一指令的触发对象为所述第二图片集中的第一图片,所述第一指令用于将所述第一图片设置为所述相册的封面;a second acquiring module, configured to acquire a first instruction input by the user, where the triggering object of the first instruction is a first picture in the second picture set, and the first instruction is used to set the first picture as The cover of the album;
    第一响应模块,用于响应所述第一指令,将所述第一图片设置为所述相册的封面。And a first response module, configured to set the first picture as a cover of the album in response to the first instruction.
  36. 根据权利要求27-35任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 27 to 35, wherein the device further comprises:
    第三获取模块,用于获取用户输入的第二指令,所述第二指令用于修改所述相册名称;a third acquiring module, configured to acquire a second instruction input by the user, where the second instruction is used to modify the name of the album;
    第二响应模块,用于响应所述第二指令,修改所述相册名称。And a second response module, configured to modify the album name in response to the second instruction.
  37. 根据权利要求27-36任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 27 to 36, wherein the device further comprises:
    第四获取模块,用于获取用户输入的第三指令,所述第三指令用于打开所述相册;a fourth acquiring module, configured to acquire a third instruction input by the user, where the third instruction is used to open the album;
    第三响应模块,用于响应所述第三指令,按照预设的顺序依次呈现所述第二图片集中的图片。The third response module is configured to sequentially display the pictures in the second picture set in a preset order in response to the third instruction.
  38. 根据权利要求27-37任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 27-37, wherein the device further comprises:
    存储模块,用于存储第二图片,所述第二图片为所述移动终端最新获取的图片; a storage module, configured to store a second picture, where the second picture is a newly acquired picture of the mobile terminal;
    第五获取模块,用于获取所述第二图片的属性信息;a fifth obtaining module, configured to acquire attribute information of the second picture;
    加入模块,若所述第二图片的属性信息与所述第二图片集中的图片的属性信息相同或相近,用于将所述第二图片加入所述相册中。Adding a module, if the attribute information of the second picture is the same as or similar to the attribute information of the picture in the second picture set, for adding the second picture to the album.
  39. 根据权利要求27-38任一所述的装置,其特征在于,所述移动终端还包括至少一个第一相册;所述装置还包括展示模块,用于The device according to any one of claims 27 to 38, wherein the mobile terminal further comprises at least one first album; the device further comprises a display module,
    按照时间维度,依次展示所述相册和所述至少一个第一相册;或者,Displaying the album and the at least one first album in sequence according to a time dimension; or
    对于人像相册,按照与所述移动终端的用户的亲密程度,依次展示所述相册和所述至少一个第一相册;或者,For the portrait album, the album and the at least one first album are sequentially displayed according to the degree of intimacy with the user of the mobile terminal; or
    按照用户预先设定的顺序,依次展示所述相册和所述至少一个相册。The album and the at least one album are sequentially displayed in an order preset by the user.
  40. 一种计算机存储介质,其特征在于,所述计算机存储介质可存储有程序,该程序执行时包括如权利要求1-13任一项所述的步骤。 A computer storage medium, characterized in that the computer storage medium can store a program, the program comprising the steps of any of claims 1-13 when executed.
PCT/CN2017/074898 2017-02-25 2017-02-25 Method and device for generating album, and mobile terminal WO2018152822A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780087422.9A CN110337646A (en) 2017-02-25 2017-02-25 A kind of method, apparatus and mobile terminal generating photograph album
PCT/CN2017/074898 WO2018152822A1 (en) 2017-02-25 2017-02-25 Method and device for generating album, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/074898 WO2018152822A1 (en) 2017-02-25 2017-02-25 Method and device for generating album, and mobile terminal

Publications (1)

Publication Number Publication Date
WO2018152822A1 true WO2018152822A1 (en) 2018-08-30

Family

ID=63254177

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/074898 WO2018152822A1 (en) 2017-02-25 2017-02-25 Method and device for generating album, and mobile terminal

Country Status (2)

Country Link
CN (1) CN110337646A (en)
WO (1) WO2018152822A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111191064A (en) * 2019-12-27 2020-05-22 西安闻泰电子科技有限公司 Intelligent photo aggregation method, electronic equipment and storage medium
CN112287141A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 Photo album processing method and device, electronic equipment and storage medium
WO2022088834A1 (en) * 2020-10-26 2022-05-05 深圳市雷鸟网络传媒有限公司 Dynamic photograph album generation method, server, display terminal and readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069338A (en) * 2020-09-03 2020-12-11 Oppo广东移动通信有限公司 Picture processing method and device, electronic equipment and storage medium
CN113407754B (en) * 2021-07-13 2023-12-15 北京达佳互联信息技术有限公司 Album generating method, apparatus, electronic device and storage medium
CN116049464B (en) * 2022-08-05 2023-10-20 荣耀终端有限公司 Image sorting method and electronic equipment
CN117150067A (en) * 2023-01-13 2023-12-01 荣耀终端有限公司 Album processing method and related device
CN116737974B (en) * 2023-08-16 2023-11-03 世优(北京)科技有限公司 Method and device for determining threshold value for face image comparison and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201037938Y (en) * 2006-12-27 2008-03-19 南京风速网络***有限公司 Electronic photo album system capable of automatic founding and classifying photos
CN101437096A (en) * 2007-11-16 2009-05-20 深圳富泰宏精密工业有限公司 System and method for classifying mobile equipment photograph
CN103744996A (en) * 2014-01-23 2014-04-23 惠州Tcl移动通信有限公司 Mobile terminal album classifying method and system
CN105426497A (en) * 2015-11-24 2016-03-23 上海斐讯数据通信技术有限公司 Automatic classification method and system for photo album in intelligent terminal
CN106055624A (en) * 2016-05-26 2016-10-26 努比亚技术有限公司 Photo sorting method based on picture cluster and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100052676A (en) * 2008-11-11 2010-05-20 삼성전자주식회사 Apparatus for albuming contents and method thereof
CN103310005A (en) * 2013-06-28 2013-09-18 北京小米科技有限责任公司 Thumbnail display method and device
CN105468675A (en) * 2015-11-13 2016-04-06 四川长虹电器股份有限公司 Picture display system and method combining figure identification and holiday and festival information
CN106161628B (en) * 2016-07-13 2020-12-01 腾讯科技(深圳)有限公司 Shooting file uploading method and device
CN106250439A (en) * 2016-07-26 2016-12-21 四川长虹电器股份有限公司 Cohesion display systems and method between photo personage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201037938Y (en) * 2006-12-27 2008-03-19 南京风速网络***有限公司 Electronic photo album system capable of automatic founding and classifying photos
CN101437096A (en) * 2007-11-16 2009-05-20 深圳富泰宏精密工业有限公司 System and method for classifying mobile equipment photograph
CN103744996A (en) * 2014-01-23 2014-04-23 惠州Tcl移动通信有限公司 Mobile terminal album classifying method and system
CN105426497A (en) * 2015-11-24 2016-03-23 上海斐讯数据通信技术有限公司 Automatic classification method and system for photo album in intelligent terminal
CN106055624A (en) * 2016-05-26 2016-10-26 努比亚技术有限公司 Photo sorting method based on picture cluster and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111191064A (en) * 2019-12-27 2020-05-22 西安闻泰电子科技有限公司 Intelligent photo aggregation method, electronic equipment and storage medium
WO2022088834A1 (en) * 2020-10-26 2022-05-05 深圳市雷鸟网络传媒有限公司 Dynamic photograph album generation method, server, display terminal and readable storage medium
CN112287141A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 Photo album processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110337646A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
WO2018152822A1 (en) Method and device for generating album, and mobile terminal
US11822600B2 (en) Content tagging
US11080351B1 (en) Automated content curation and communication
US11249620B2 (en) Electronic device for playing-playing contents and method thereof
CN105653636B (en) Information processing method and device for information processing
CN102945276B (en) Generation and update based on event playback experience
US9727565B2 (en) Photo and video search
WO2019105440A1 (en) Video editing and pushing method, system and intelligent mobile terminal
US11334768B1 (en) Ephemeral content management
KR20200002996A (en) Map-based graphical user interface that displays geospatial activity metrics
WO2019109245A1 (en) Method and device for displaying story album
CN109074358A (en) Geographical location related with user interest is provided
US8896627B2 (en) Information display device, information display system, and computer program product
CN106777066B (en) Method and device for image recognition and media file matching
KR102165339B1 (en) Method and apparatus for playing contents in electronic device
US12001475B2 (en) Mobile image search system
KR102289293B1 (en) Method and apparatus for playing contents in electronic device
KR102050594B1 (en) Method and apparatus for playing contents in electronic device
CN105608104A (en) Image adding method, image adding device and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17897411

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17897411

Country of ref document: EP

Kind code of ref document: A1