Photo album graphic file management method and device, storage medium and terminal
By using a terminal-initiated method for managing photo album images and files, and leveraging floating windows and gesture touch interactions, the problem of low efficiency in image cleanup under limited terminal storage space is solved, thus achieving intelligent image management.
Patent Information
- Application Number
- CN202110047050.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-14
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2041-01-14
AI Technical Summary
Terminal storage space is limited, and users need to manually browse and select images for cleaning, which is costly, inefficient, and lacks intelligence.
The terminal automatically initiates album image file management, displays file overview and operation controls through a floating window, supports gesture touch interaction, and automatically identifies and manages blurry, redundant, or small-sized images.
Reduce user operating costs, improve management efficiency, and achieve an intelligent image cleaning process.
Smart Images

Figure CN114840702B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of device security and management, and particularly relates to a photo album graphic file management method and device, a storage medium and a terminal. BACKGROUND
[0002] Due to limited storage space of the terminal, in the case that a large number of pictures are stored in the terminal, part of the pictures are usually deleted to clean up the pictures.
[0003] In the related art, when the pictures are cleaned up, the user needs to actively browse each picture in the photo album, and selects the pictures in a large number of pictures, and then deletes the selected pictures.
[0004] Since the picture cleaning action is initiated by the user, and the user needs to manually select the pictures to be cleaned up, the user operation cost is high, the picture cleaning efficiency is low, and the picture cleaning is not intelligent. SUMMARY
[0005] Embodiments of the present application provide a photo album graphic file management method and device, a storage medium and a terminal. The scheme is automatically initiated by the terminal, and the user does not need to manually select the photo album graphic file to be processed, the user operation cost is low, the management efficiency is high, and the scheme is intelligent. The technical solution is as follows:
[0006] In one aspect, a photo album graphic file management method is provided, and the method comprises:
[0007] In response to the terminal screen being unlocked under a preset condition, a photo album graphic file management floating window of a first size is displayed, the photo album graphic file management floating window is used to display a current photo album graphic file profile of the terminal and a first operation management control output according to the photo album graphic file profile;
[0008] In response to a trigger operation on the first operation management control, the photo album graphic file management floating window is switched to a photo album graphic file advanced management floating window presented in a second size; the photo album graphic file advanced management floating window is used to display a photo album graphic file to be processed and a visual operation management prompt;
[0009] In response to a target gesture touch event on the photo album graphic file to be processed, an operation processing process of the photo album graphic file to be processed is dynamically displayed, and an updated photo album graphic file profile is dynamically switched and displayed, the updated photo album graphic file profile is used to display an operation processing progress of the photo album graphic file and a corresponding operation management suggestion in real time.
[0010] In one possible implementation, the photo album graphic file to be processed is a blurred graphic file, and the method further comprises:
[0011] reading the photo album, for any one non-screenshot graphic file in the photo album, performing gray scale processing on the non-screenshot graphic file to obtain a gray scale graphic file;
[0012] determining a definition of the gray scale graphic file according to the gray scale values of the respective pixel points in the gray scale graphic file, the definition being determined according to the gray scale difference between the respective pixel points and adjacent pixel points;
[0013] in response to the definition being less than a second threshold, determining the blurred graphic file as the photo album graphic file to be processed.
[0014] In a possible implementation, the photo album graphic file to be processed is a photo album graphic file with a volume less than a third threshold, and the method further includes:
[0015] reading the photo album, and obtaining attribute information of respective photo album graphic files in the photo album, the attribute information including the volume of the photo album graphic files;
[0016] for any one photo album graphic file in the photo album, in response to the volume of the photo album graphic file being less than the third threshold, determining the photo album graphic file as the photo album graphic file to be processed.
[0017] In a possible implementation, the method further includes, in response to the target gesture touch event, deleting the photo album graphic file to be processed from the photo album and a storage medium of the terminal.
[0018] On the other hand, a photo album graphic file management apparatus is provided, and the apparatus includes:
[0019] a first display module configured to, in response to a terminal screen being unlocked under a preset condition, display a photo album graphic file management floating window of a first size, the photo album graphic file management floating window being used to show a current photo album graphic file profile of the terminal and output a first operation management control according to the photo album graphic file profile;
[0020] a second display module configured to, in response to a triggering operation on the first operation management control, switch from the photo album graphic file management floating window to a photo album graphic file advanced management floating window presented in a second size; the photo album graphic file advanced management floating window being used to show a photo album graphic file to be processed and a visual operation management prompt;
[0021] a third display module configured to, in response to a target gesture touch event on the photo album graphic file to be processed, dynamically display an operation processing process of the photo album graphic file to be processed, and dynamically switch and display an updated photo album graphic file profile, the updated photo album graphic file profile being used to show an operation processing progress of the photo album graphic file and a corresponding operation management suggestion in real time.
[0022] In a possible implementation, the second display module is further configured to:
[0023] In response to a triggering operation on the first operation management control, display a first animation, the first animation being used to present that the album graphic file management floating window is switched to the album graphic file advanced management floating window in a zoom-in manner, and the second size is greater than the first size.
[0024] In a possible implementation, the third display module is further configured to:
[0025] display a second animation, the second animation being used to present that the to-be-processed album graphic file gradually moves to a specified direction following the target gesture touch event, and gradually disappears on the album graphic file advanced management floating window.
[0026] In a possible implementation, the second display module is further configured to display a second operation management control on the album graphic file advanced management floating window in a manner of replacing the first operation management control.
[0027] The apparatus further includes a fourth display module configured to, in response to a triggering operation on the second operation management control, display a third animation, the third animation being used to present that the album graphic file advanced management floating window is switched to the album graphic file management floating window in a zoom-out manner, and the first size is smaller than the second size; or, in response to the to-be-processed album graphic file being emptied, display the third animation.
[0028] In a possible implementation, the to-be-processed album graphic file is at least two, and a first album graphic file currently to be processed is displayed on the album graphic file advanced management floating window, and the apparatus further includes:
[0029] a fifth display module configured to, after the album graphic file management floating window is dynamically switched and the updated album graphic file profile is displayed, display a fourth animation; wherein the fourth animation is used to present that a second album graphic file automatically moves to the specified area and gradually zooms in on the specified area, the second album graphic file being a next album graphic file located after the first album graphic file.
[0030] In a possible implementation, the first display module is configured to, in response to the terminal screen being unlocked for the first time within a target time period, display the album graphic file management floating window with the first size.
[0031] In a possible implementation, the to-be-processed album graphic file is at least two, and the second display module is further configured to:
[0032] displaying the first album graphic file currently to be processed in a third size and the remaining album graphic files in a fourth size on the advanced album graphic file management floating window, the fourth size being smaller than the third size; or
[0033] displaying at least two album graphic files in a size order of decreasing on the advanced album graphic file management floating window, the size of the first album graphic file being the largest among the at least two album graphic files.
[0034] In a possible implementation, the fourth animation is further used to present that a next album graphic file moves to a position where a previous album graphic file was displayed, starting from a third album graphic file, the third album graphic file being the next album graphic file after the second album graphic file.
[0035] In a possible implementation, the album graphic files to be processed are at least two, and the second display module is further configured to:
[0036] displaying the at least two album graphic files in a time order on the advanced album graphic file management floating window; or
[0037] displaying the at least two album graphic files in a volume size on the advanced album graphic file management floating window; or
[0038] displaying the at least two album graphic files in a priority of album graphic file type on the advanced album graphic file management floating window.
[0039] In a possible implementation, the album graphic files to be processed are screenshot graphic files obtained through a screenshot operation, and the apparatus further includes:
[0040] The first identification module is configured to read an album, obtain attribute information of each album graphic file in the album, the attribute information including a file name of the album graphic file; for any album graphic file in the album, in response to the file name of the album graphic file containing a target keyword, determining the album graphic file as the album graphic file to be processed.
[0041] In a possible implementation, the album graphic files to be processed are redundant album graphic files repeatedly taken, and the apparatus further includes:
[0042] a second identification module configured to read the photo album, acquire attribute information of non-screenshot graphic files in the photo album, the attribute information including shooting time of the photo album graphic files, divide non-screenshot graphic files shot within a target time interval into a same initial group, perform feature extraction on each non-screenshot graphic file in the initial group for any initial group, perform re-division on the non-screenshot graphic files included in the initial group based on the extracted feature data, to obtain M new groups, M being a positive integer, and determine the photo album graphic file to be processed in each new group divided.
[0043] In a possible implementation, the second identification module is configured to:
[0044] create a list for the initial group, a number of rows of the list being a total number of photo album graphic files included in the initial group, and one non-screenshot graphic file in the initial group corresponding to one row element in the list;
[0045] wherein elements in a same row are used to indicate similarity between a same non-screenshot photo album graphic file and other non-screenshot graphic files in the initial group, the elements having a first value or a second value, the first value being used to indicate that similarity between two non-screenshot graphic files is greater than a first threshold, and the second value being used to indicate that similarity between two non-screenshot graphic files is less than the first threshold;
[0046] for any row element in the list, in response to a number of target elements with the first value in the row element being greater than zero and the row corresponding to a new group, adding the non-screenshot graphic file indicated by the target elements to the new group.
[0047] In another aspect, a terminal is provided, the terminal including a processor and a memory, the memory storing at least one program code, the at least one program code being loaded and executed by the processor to implement the photo album graphic file management method described above.
[0048] In another aspect, a computer-readable storage medium is provided, the storage medium storing at least one program code, the at least one program code being loaded and executed by a processor to implement the photo album graphic file management method described above.
[0049] In another aspect, a computer program product or computer program is provided, the computer program product or computer program including computer program code stored in a computer-readable storage medium, a processor of a terminal reading the computer program code from the computer-readable storage medium, and the processor executing the computer program code to cause the terminal to perform the photo album graphic file management method described above.
[0050] The technical scheme provided by the embodiment of the present application has the beneficial effects that:
[0051] The embodiment of the present application provides a convenient photo file management tool for users. In detail, the embodiment of the present application can automatically identify a photo graphic file to be processed, and remind a user to manage the photo graphic file through a floating window. After the user triggers a management process through the popped floating window, the embodiment of the present application automatically switches from the photo graphic file management floating window to a photo graphic file advanced management floating window, and supports the user to use a gesture touch interactive form to manage the photo graphic file. The user experience is friendly. The scheme significantly improves the management efficiency of the user through a convenient interactive mode. In another expression, the scheme is automatically initiated by the terminal without manual selection of the photo graphic file to be processed by the user. The user operation cost is low, the management efficiency is high, and the scheme is relatively intelligent. BRIEF DESCRIPTION OF DRAWINGS
[0052] In order to more clearly illustrate the technical scheme in the embodiment of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0053] Figure 1 is a schematic diagram of an implementation environment of a photo graphic file management method provided by an embodiment of the present application;
[0054] Figure 2 is a flowchart of a photo graphic file management method provided by an embodiment of the present application;
[0055] Figure 3 is a schematic diagram of a photo graphic file management floating window provided by an embodiment of the present application;
[0056] Figure 4 is a schematic diagram of a photo graphic file advanced management floating window provided by an embodiment of the present application;
[0057] Figure 5 is a schematic diagram of another photo graphic file advanced management floating window provided by an embodiment of the present application;
[0058] Figure 6 is a schematic diagram of another photo graphic file advanced management floating window provided by an embodiment of the present application;
[0059] Figure 7 is a schematic diagram of another photo graphic file advanced management floating window provided by an embodiment of the present application;
[0060] Figure 8is a schematic view of another album graphic file advanced management floating window provided by an embodiment of the present application;
[0061] Figure 9 is a schematic view of another album graphic file advanced management floating window provided by an embodiment of the present application;
[0062] Figure 10 is a schematic view of another album graphic file advanced management floating window provided by an embodiment of the present application;
[0063] Figure 11 is a flowchart of an album graphic file to be processed provided by an embodiment of the present application;
[0064] Figure 12 is a flowchart of another album graphic file to be processed provided by an embodiment of the present application;
[0065] Figure 13 is a flowchart of another album graphic file to be processed provided by an embodiment of the present application;
[0066] Figure 14 is a flowchart of another album graphic file to be processed provided by an embodiment of the present application;
[0067] Figure 15 is a flowchart of another album graphic file to be processed provided by an embodiment of the present application;
[0068] Figure 16 is a flowchart of another album graphic file to be processed provided by an embodiment of the present application;
[0069] Figure 17 is a structural schematic view of an album graphic file management device provided by an embodiment of the present application;
[0070] Figure 18 is a structural schematic view of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION
[0071] To make the purpose, technical scheme and advantages of the present application more clear, the following will make further detailed description to the embodiments of the present application in combination with the drawings.
[0072] The terms "first", "second", etc. in the present application are used to distinguish the same or similar items with basically same function, and it should be understood that there is no logical or time sequence dependency between "first", "second", "nth", and the number and execution order are not limited. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms.
[0073] These terms are used only to distinguish one element from another. For example, the first album graphic file can be referred to as the second album graphic file, and similarly, the second album graphic file can also be referred to as the first album graphic file, without departing from the scope of the various examples. The first album graphic file and the second album graphic file can both be album graphic files, and in some cases, can be separate and distinct album graphic files.
[0074] Wherein, at least one refers to one or more than one, for example, at least one album graphic file can be one album graphic file, two album graphic files, three album graphic files, etc. any integer greater than or equal to one album graphic file. And multiple refers to two or more than two, for example, multiple album graphic files can be two album graphic files, three album graphic files, etc. any integer greater than or equal to two album graphic files.
[0075] The technical scheme provided by the embodiment of the application is used for album graphic file management. Exemplarily, the scheme relates to the field of cloud technology.
[0076] Wherein, cloud technology refers to a series of resources such as hardware, software, network, etc. in a wide area network or local area network, which are unified to realize the calculation, storage, processing and sharing of data. In addition, cloud technology can also be a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on cloud computing business model application, which can form a resource pool, and can be used on demand, flexibly and conveniently. Cloud computing technology will become an important support. The background service of the technical network system needs a large amount of calculation and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of Internet industry, in the future, every item may have its own identification mark, which needs to be transmitted to the background system for logical processing. Different levels of data will be processed separately, and various industry data need strong system support, which can only be realized through cloud computing.
[0077] The embodiment of the application specifically relates to cloud security in the field of cloud technology. Wherein, cloud security refers to a general term for security software, hardware, users, institutions, and security cloud platform based on cloud computing business model application. Cloud security integrates emerging technologies and concepts such as parallel processing, grid computing, and unknown virus behavior judgment. Through the abnormal monitoring of software behavior in the network by a large number of clients in the network, the latest information of Internet worms and malicious programs is obtained, and is sent to the server for automatic analysis and processing, and the solution of viruses and worms is distributed to each client.
[0078] As an example, the main research directions of cloud security include, but are not limited to: 1. Cloud computing security, mainly studying how to protect the security of the cloud itself and various applications on the cloud, including cloud computer system security, secure storage and isolation of user data, user access authentication, information transmission security, network attack protection, compliance audit, etc.; 2. Cloudification of security infrastructure, mainly studying how to build and integrate security infrastructure resources using cloud computing, optimize security protection mechanisms, including building a large-scale security event information collection and processing platform through cloud computing technology, realizing the collection and correlation analysis of massive information, and improving the network security event control ability and risk control ability; 3. Cloud security services, mainly studying various security services provided by cloud computing platforms for users, such as antivirus services, etc.
[0079] Exemplarily, the album picture file management method provided by the embodiment of the present application is related to cloud security services. In particular, it is related to album management in the field of wireless security.
[0080] Next, some terms or abbreviations related to the embodiments of the present application will be introduced.
[0081] Album picture file: Exemplarily, the album picture file in the embodiments of the present application refers to the pictures in the album. According to the source of the pictures, the pictures include, but are not limited to: photos taken by a camera, pictures sent by other terminals, pictures downloaded from the Internet, and screenshots obtained by a screenshot operation.
[0082] Album picture file management: Exemplarily, the album picture file in the embodiments of the present application refers to picture cleaning. The picture cleaning includes, but is not limited to: moving the pictures from the album to the recycle bin or completely removing the pictures from the storage medium of the terminal.
[0083] HSV (Hue Saturation Value, Hue Saturation Value) feature: a method for representing points in the RGB (Red Green Blue, Red Green Blue) color model in a cylindrical coordinate system. In detail, HSV is a color space created according to the intuitive characteristics of colors, also known as a hexagonal cone model. The parameters of the color in this model are: hue (H), saturation (S) and lightness (V).
[0084] Figure 1 FIG. 1 is a schematic diagram of an implementation environment related to an album picture file management method provided by an embodiment of the present application.
[0085] Referring to Figure 1 , the implementation environment includes a terminal 101 and a server 102.
[0086] Optionally, the terminal 101 is installed with a target application program, which not only provides the photo album graphic file management function, but also provides other functions for the user, such as fraud interception, device disinfection, software management, traffic monitoring, and privacy leakage prevention, etc., which are not limited in the present application. Exemplarily, the target application program is a security management application program, and the server 102 is a server for providing services for the target application program.
[0087] Optionally, the server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), and big data and artificial intelligence platform, etc. Optionally, the terminal 101 is a smart phone, a tablet computer, a notebook computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 101 and the server 102 are directly or indirectly connected through wired or wireless communication, which is not limited in the present application.
[0088] Optionally, the terminal 101 is responsible for executing the photo album graphic file management scheme provided by the embodiments of the present application; or the security management application program installed on the terminal 101 is responsible for executing the photo album graphic file management scheme provided by the embodiments of the present application; or a certain functional module contained in the security management application program is responsible for executing the photo album graphic file management scheme provided by the embodiments of the present application, which is not limited in the present application.
[0089] Figure 2 is a flowchart of a photo album graphic file management method provided by the embodiments of the present application, and the execution subject of the method is the terminal 101 in Figure 1 . Referring to Figure 2 , the method process provided by the embodiments of the present application includes the following steps.
[0090] 201, in response to the terminal screen being unlocked under the condition of meeting the preset condition, a photo album graphic file management floating window of a first size is displayed, and the photo album graphic file management floating window is used to show the current photo album graphic file profile of the terminal and output the first operation management control according to the photo album graphic file profile.
[0091] In the embodiments of the present application, the photo album graphic file management floating window is as shown in Figure 3 . Referring to Figure 3 , the first size photo album graphic file management floating window 1 is displayed in Figure 3 . Exemplarily, the current photo album graphic file profile of the terminal includes but is not limited to the total number of photo album graphic files to be processed (also referred to as the first number).
[0092] Exemplarily, the album graphic file profile includes, but is not limited to, a management tool name, a thumbnail of the album graphic file, a total number of the album graphic file, and an operation management control, which is also referred to as a first operation management control herein.
[0093] Optionally, the album graphic file management floating window 1 is displayed in a manner of being placed on a top layer on the display screen of the terminal. The manner of being placed on the top layer means being displayed in a frontmost position of all layers.
[0094] Optionally, a display timing of the album graphic file management floating window 1 is that the terminal automatically identifies the album graphic file to be processed. For example, when a security management application of the terminal identifies a screenshot graphic file, a redundant graphic file of repeated shooting, and the like, the album graphic file management floating window 1 is automatically displayed.
[0095] In a possible implementation, types of the album graphic file to be processed include, but are not limited to, a screenshot graphic file obtained by a screenshot operation, a redundant album graphic file of repeated shooting, a blurred graphic file, a low-quality graphic file with a small volume, and the like, which are not limited herein.
[0096] Optionally, the album graphic file management scheme is periodically executed by the terminal, for example, once a day. In a possible implementation, in response to the terminal screen being unlocked under a preset condition, the album graphic file management floating window of the first size is displayed, including: in response to the terminal screen being unlocked for the first time within a target time period, the album graphic file management floating window of the first size is displayed.
[0097] In addition, the terminal can also display the album graphic file management floating window of the first size when the terminal is in a lighted state within the target time period. Optionally, the terminal screen being in the lighted state includes, but is not limited to, being lighted after the user unlocks the terminal screen, and the terminal screen being always in the lighted state.
[0098] Exemplarily, the target time period is night, for example, the album graphic file management floating window 1 is automatically popped up on the terminal screen at night, that is, the user is reminded to manage the album graphic file in an idle period before going to sleep. For example, a security management application on the terminal automatically registers an alarm in a background process, and the album graphic file management floating window 1 is automatically popped up when the user unlocks the terminal screen between 8 pm and 2 am every day.
[0099] 202. In response to a triggering operation on the first operation management control, the album graphic file management floating window is switched to an album graphic file advanced management floating window presented in a second size; the album graphic file advanced management floating window is used to display the album graphic file to be processed and a visual operation management prompt.
[0100] Optionally, the triggering operation of the user on the first operation management control can be a click operation, which is not limited herein. Figure 3 and Figure 4 It can be seen that the album graphic file management floating window 1 switches to the album graphic file advanced management floating window 2 presented in the second size in response to the triggering operation of the user on the first operation management control 11.
[0101] Referring to Figure 4 , on the album graphic file advanced management floating window 2, a second operation management control 12 is displayed in a manner of replacing the first operation management control 11. In addition, a visual operation management prompt is also displayed on the album graphic file advanced management floating window 2. Exemplarily, the visual operation management prompt includes at least one of the following: the second number of the currently remaining album graphic files to be processed, a text description of the management gesture and the management manner of the album graphic files. Optionally, the second number can be Figure 4 “30 album graphic files remaining”, the text description of the management manner can be Figure 4 “swipe up to delete the album graphic file”, and the management gesture can be Figure 4 the arrow mark and the gesture mark, which are not limited herein.
[0102] Optionally, the album graphic files to be processed are at least two, and the currently processed first album graphic file is displayed in the form of a preview image on a specified area on the album graphic file advanced management floating window 2. For example, the specified area is Figure 4 the middle area where the album graphic file 1 is located.
[0103] In a possible implementation, as shown in Figure 4 , the album graphic file advanced management floating window 2 displays two album graphic files, the album graphic file 1 and the album graphic file 2.
[0104] In another possible implementation, the method provided by the embodiment of the present application further includes: displaying the currently processed first album graphic file in a third size and the remaining album graphic files in a fourth size on the album graphic file advanced management floating window 2, the fourth size being smaller than the third size; or displaying at least two album graphic files in an order of decreasing size on the album graphic file advanced management floating window 2, the size of the first album graphic file being the largest among the at least two album graphic files.
[0105] In another possible implementation, the method provided by the embodiment of the present application further includes:
[0106] 2021. In time sequence, display at least two photo album graphic files on the photo album graphic file advanced management floating window 2; for example, display N preview pictures in time sequence from far to near, N is a positive integer, wherein one preview picture corresponds to one to-be-processed photo album graphic file.
[0107] 2022. In volume size, display at least two photo album graphic files on the photo album graphic file advanced management floating window 2; for example, display N preview pictures in volume size from large to small.
[0108] 2023. In priority of photo album graphic file type, display at least two photo album graphic files on the photo album graphic file advanced management floating window 2. Optionally, the photo album graphic file type includes but is not limited to: screenshot graphic file, redundant photo album graphic file of repeated shooting, blurred graphic file, low-quality photo album graphic file with small volume, and the priority of the photo album graphic file type can be set as required, which is not limited in the present application. For example, display N preview pictures in priority from high to low.
[0109] 203. In response to a target gesture touch event of a to-be-processed photo album graphic file, dynamically display an operation processing process of the to-be-processed photo album graphic file, and dynamically switch and display an updated photo album graphic file profile for real-time display of operation processing progress of the photo album graphic file and corresponding operation management suggestions.
[0110] Optionally, the target gesture touch event can be long pressing a single picture and sliding upwards and releasing. In addition, the management gesture of the photo album graphic file can also be long pressing a single photo album graphic file and sliding downwards and releasing, long pressing a single photo album graphic file and sliding leftwards and releasing, long pressing a single photo album graphic file and sliding rightwards and releasing, and the like, which is not limited in the present application.
[0111] Referring to Figures 5 to 7 , taking the photo album graphic file 1 in Figures 5 to 7 as an example, if the gesture touch operation performed by the user on the photo album graphic file 1 is consistent with the pre-set photo album graphic file cleaning gesture, the terminal will display a second animation in response to the target gesture touch event, wherein, as shown in Figures 5 to 7 , the second animation is used to present that the photo album graphic file 1 gradually moves in a specified direction following the target gesture touch event, and gradually disappears on the photo album graphic file advanced management floating window 2. The specified direction can be upwards, downwards, leftwards or rightwards, which is not limited in the present application. In addition, after detecting the long pressing operation of the user on a single photo album graphic file, the user can be prompted for the next operation, such as “slide upwards immediately after releasing”, which is not limited in the present application. Figure 6
[0112] Exemplarily, referring to Figure 7 , the updated album graphic file profile includes at least one of the following: the second quantity of the current remaining to-be-processed album graphic files, the quantity of the cleaned album graphic files, the success identification of cleaning, and the text description of the album graphic file cleaning manner. Wherein, the operation processing progress can be represented by the second quantity and the quantity of the cleaned album graphic files, and the operation management suggestion includes but is not limited to the text description of the album graphic file cleaning manner. Optionally, the second quantity can be "29 album graphic files remaining" in Figure 8 and Figure 9 , the text description of the album graphic file cleaning manner can be "continue to swipe up to delete the album graphic file" in Figure 8 and Figure 9 , and the quantity of the cleaned album graphic files can be "1 album graphic file deleted" in Figure 7 , which are not limited herein.
[0113] In another possible implementation, after deleting the first album graphic file, the next album graphic file, i.e., the second album graphic file, located after the first album graphic file can be processed in sequence. That is, the method provided by the embodiments of the present application further includes: displaying a fourth animation after dynamically switching and displaying the updated album graphic file profile.
[0114] Optionally, the fourth animation is used to present that the second album graphic file automatically moves to a specified area and gradually enlarges in the specified area, and the fourth animation is also used to present that the next album graphic file moves to the position where the previous album graphic file is displayed in sequence from the third album graphic file, wherein the third album graphic file is the next album graphic file located after the second album graphic file.
[0115] Taking the second album graphic file as the album graphic file 2 in Figure 8 and Figure 9 , and the third album graphic file as the album graphic file 3 in Figure 9 , and the specified area as the middle position of the album graphic file advanced management floating window 2, for example, the process is shown in Figure 8 and Figure 9 . As shown in Figure 8 and Figure 9 , the album graphic file 2 is displayed in the middle position of the album graphic file advanced management floating window 2, and the album graphic file 3 moves to the position where the album graphic file 2 is previously displayed in sequence.
[0116] In another possible implementation, the method provided by the embodiment of the present application further includes: in response to a triggering operation of the second operation management control 12, displaying a third animation, the third animation being used to present that the album graphic file advanced management floating window 2 is switched to the album graphic file management floating window 1 by being reduced; or, in response to the album graphic file to be processed being emptied, displaying the third animation. After the album graphic file cleaning is interrupted or the album graphic file cleaning is completed, the album graphic file advanced management floating window 2 is as shown in Figure 10 Optionally, the triggering operation of the second operation management control 12 by the user can be a click operation, which is not limited in the present application.
[0117] Optionally, after the preset time that the album graphic file advanced management floating window 2 restores the first size, the album graphic file advanced management floating window 2 automatically disappears on the terminal screen.
[0118] The embodiment of the present application provides a convenient album file management tool for the user. In detail, the embodiment of the present application can automatically identify the album graphic file to be processed, and remind the user to manage the album graphic file through the floating window form. After the user triggers the management process through the popped floating window, the embodiment of the present application automatically switches from the album graphic file management floating window to the album graphic file advanced management floating window, and supports the user to use the interactive form of gesture touch to manage the album graphic file. The user experience is friendly. The scheme significantly improves the management efficiency of the user through the convenient interactive mode. In another expression, the scheme is automatically initiated by the terminal, and the user does not need to manually select the album graphic file to be processed. The user operation cost is low, the management efficiency is high, and the scheme is relatively intelligent.
[0119] Taking the album graphic file management as the picture cleaning, the album graphic file management floating window as the picture cleaning floating window, and the album graphic file advanced management floating window as the picture advanced cleaning floating window as an example, the album graphic file management scheme provided by the embodiment of the present application is described below. Figures 3 to 10
[0120] 1. Pop up the picture cleaning floating window.
[0121] Optionally, the display timing of the picture cleaning floating window is that the terminal automatically identifies the picture to be cleaned. For example, when the terminal automatically identifies that there are screenshot pictures, redundant pictures of repeated shooting, etc., the picture cleaning floating window as shown in Figure 3 is automatically popped up. For example, referring to Figure 3 , the picture cleaning floating window displays the floating window name "album graphic file management", the thumbnail of the picture to be cleaned, the prompt message "30 album graphic files are added today, spend 1 minute to process them", and the operation management control "expand management".
[0122] Compared with Figure 3 andFigure 4 It can be seen that, in response to the user clicking the "Expand Management" operation management control, the picture cleaning floating window is automatically enlarged and switched to a second-size picture advanced cleaning floating window. Further, referring to Figure 4 , the picture advanced cleaning floating window prompts how many album graphic files are to be cleaned, such as "There are still 30 album graphic files left"; a picture cleaning gesture, such as Figure 4 , an arrow mark and a gesture mark; a text description prompting how to clean the pictures, such as swiping up to delete the album graphic file. Meanwhile, the bottom of the picture cleaning floating window also displays two preview pictures, one of which corresponds to one album graphic file to be cleaned, and the first preview picture to be processed is placed in the middle by default.
[0123] 2. The user performs a gesture touch operation to clean the pictures.
[0124] Exemplarily, the gesture touch operation is a gesture sliding operation, referring to Figures 5 to 7 , if the gesture sliding operation performed by the user on the album graphic file 1 is consistent with the pre-set picture cleaning gesture, in response to the gesture sliding operation, the picture advanced cleaning floating window presents an animation effect that the album graphic file 1 gradually moves upwards following the gesture sliding event and gradually disappears on the picture advanced cleaning floating window.
[0125] In addition, referring to Figure 6 , after detecting the long press operation of the user on the album graphic file 1, the picture advanced cleaning floating window prompts the next operation of the user, such as "swipe up immediately after holding", which is not limited in the present application. In addition, referring to Figure 7 , after deleting the album graphic file 1, the picture advanced cleaning floating window prompts the number of remaining pictures to be cleaned, the number of cleaned pictures, and a cleaning success identifier.
[0126] 3. The next picture to be cleaned is pre-positioned.
[0127] Referring to Figure 8 and Figure 9 , after deleting the album graphic file 1, the next album graphic file 2 is automatically moved to the left, and is automatically enlarged when moving to the middle position. The picture advanced cleaning floating window prompts to continue swiping up to delete the album graphic file 2, and the album graphic file 3 is sequentially moved to the position previously displayed by the album graphic file 2.
[0128] 4. The state of emptying the pictures to be cleaned is reached.
[0129] Referring to Figure 10 , after all the pictures to be cleaned are deleted, the picture advanced cleaning floating window is automatically switched to the first-size picture cleaning floating window, and prompts that the pictures to be cleaned are empty.
[0130] Through the example, it can be known that the embodiment of the present application can automatically identify the pictures to be cleaned, and remind the user to clean the pictures through the floating window form. After the user triggers the picture cleaning process through the popped floating window, the embodiment of the present application automatically switches to the floating window with a large size, and supports the user to use the gesture touch interaction form to clean the pictures. The user experience is friendly, and the picture cleaning efficiency of the user is significantly improved through the convenient interaction mode.
[0131] In addition, in order to display the to-be-processed album graphic file as soon as possible when the album graphic file management floating window is popped up, the identification process of the to-be-processed album graphic file is performed in the background of the terminal in silence, and the to-be-processed album graphic file is written into the database after the identification is completed. When the album graphic file management floating window is popped up, the to-be-processed album graphic file is directly read from the database for display. In this way, the response speed can be improved, and the user experience can be improved. The following embodiments are used to introduce how to identify different types of to-be-processed album graphic files.
[0132] In a possible implementation manner, referring to Figure 11 , the to-be-processed album graphic file is a screenshot graphic file obtained through a screenshot operation. The method provided by the embodiment of the present application further includes the following steps.
[0133] 1101. Read an album, and obtain attribute information of each album graphic file in the album. The attribute information includes a file name of the album graphic file.
[0134] Exemplarily, the album can be a local album of the terminal or a cloud album, which is not limited by the present application.
[0135] 1102. For any one album graphic file in the album, in response to the fact that the file name of the album graphic file contains a target keyword, the album graphic file is determined as a to-be-processed album graphic file.
[0136] Optionally, the target keyword is "screenshot" or "screen shot", which is not limited by the present application. In addition to the file name, the attribute information further includes path information, time information, volume size, compression type, and the like, which is not limited by the present application.
[0137] Optionally, the process of identifying the screenshot graphic file is further introduced below. Figure 12
[0138] 1201. Determine whether there is a permission to access the album. If yes, the following step 1202 is performed.
[0139] If no, the to-be-processed album graphic file is not identified, and the album graphic file management floating window does not appear on the terminal screen.
[0140] 1202. Read the album.
[0141] 1203. Obtain the attribute information of each album's image file.
[0142] 1204. Extract a photo image file from the album.
[0143] 1205. Determine whether the filename of the album's image file contains the target keyword; if so, proceed to step 1206 below.
[0144] 1206. Mark the album's image files as screenshot images.
[0145] 1207. After traversing all the album image files in the album, if so, proceed to step 1206 below.
[0146] 1208. Store the marked screenshot files into the screenshot file database.
[0147] For example, each item in the database is a unique ID for a screenshot image file.
[0148] In another possible implementation, see Figure 13 The album image files to be processed are redundant album image files taken repeatedly. The method provided in this application embodiment further includes:
[0149] 1301. Read the album and obtain the attribute information of non-screenshot image files in the album. This attribute information includes the shooting time of the image files in the album.
[0150] In this embodiment of the application, non-screenshot image files refer to other image files in the album besides screenshot image files.
[0151] 1302. Non-screenshot image files captured within the target time interval will be grouped into the same initial group.
[0152] Optionally, the target time interval is 30 seconds, and this application does not impose any limitation on it. For example, using 30 seconds as a time interval, this embodiment of the application groups album image files taken within 30 seconds into the same initial group, and considers album image files in the same initial group as potentially duplicate album image files. This step is based on the assumption that, according to people's habits of taking album image files, album image files taken within a short time interval are more likely to be similar and redundant album image files.
[0153] 1303. For any initial group, extract features from each non-screenshot image file in the initial group; based on the extracted feature data, further divide the non-screenshot image files included in the initial group to obtain M new groups.
[0154] Wherein, the value of M is a positive integer. Optionally, the embodiment of the present application uses the third-party so library QQImageCompare to perform feature extraction and extract HSV features, which is not limited herein.
[0155] Wherein, the above grouping is also referred to as a bucket (Bucket) herein, such as the initial grouping is referred to as a large bucket, and the new grouping is referred to as a small bucket. For each non-screenshot graphic file contained in each large bucket, further feature extraction is performed, and the similarity between each pair of non-screenshot graphic files is calculated based on the extracted feature data, and accordingly the large bucket is further split into multiple small buckets containing more similar album graphic files.
[0156] After the above step 1303 is performed on each initial grouping, multiple new groupings are obtained.
[0157] 1304, determining the album graphic files to be processed in each new grouping.
[0158] Optionally, for any new grouping, one album graphic file in the new grouping can be retained, and the remaining album graphic files in the new grouping are all taken as the album graphic files to be processed.
[0159] Optionally, the following is described by taking Figure 14 The process of the above step 1302 of dividing the initial grouping is further introduced.
[0160] 1401, judging whether there is an access album permission; if yes, the following step 1402 is performed.
[0161] If not, the album graphic file to be processed is not identified, and the album graphic file management floating window does not appear on the terminal screen.
[0162] 1402, reading the album.
[0163] 1403, obtaining the attribute information of each album graphic file.
[0164] 1404, i = 0, b = 0; take out the album graphic file P_i in the album. Wherein, i is used to identify the album graphic file, and b is used to identify the bucket.
[0165] 1405, judging whether the album graphic file P_i is a screenshot graphic file; if yes, i = i+1; if not, the following step 1406 is performed.
[0166] 1406, placing the album graphic file P_i into the bucket Bucker_b; j = i+1.
[0167] 1407、Take out the album graphic file P_j in the album.
[0168] 1408、Judge whether the album graphic file P_j is a screenshot graphic file; if not, execute the following step 1409.
[0169] 1409、Judge whether the difference between the shooting time stamp of the album graphic file P_i and the shooting time stamp of the album graphic file P_j is less than the target time interval; if yes, execute the following step 1410.
[0170] 1410、Put the album graphic file P_j into the bucket B_b; j = j+1.
[0171] 1411、If the value of j is not greater than the total number of album graphic files, repeat the above step 1407.
[0172] In another possible implementation, referring to Figure 15 The above step 1303 “re-divide the non-screenshot graphic files included in the initial grouping based on the extracted feature data” includes the following steps:
[0173] 1303-1、Create a list for the initial grouping, the number of rows of the list is the total number of album graphic files included in the initial grouping, and a non-screenshot graphic file in the initial grouping corresponds to an element in a row of the list.
[0174] Wherein, the elements in the same row are used to indicate the similarity between the same non-screenshot graphic file and other non-screenshot graphic files in the initial grouping; the value of any element is a first value or a second value; the first value is used to indicate that the similarity between two non-screenshot graphic files is greater than a first threshold; the second value is used to indicate that the similarity between two non-screenshot graphic files is less than the first threshold.
[0175] Optionally, the value of the first value is 1, the value of the second value is 0, and the value of the first threshold is 75%, which is not limited in the present application.
[0176] 1303-2、For any row element in the list, in response to the number of elements with the first value in the row element being greater than zero and the row corresponding to a new grouping, add the non-screenshot graphic file indicated by the element with the first value to the new grouping.
[0177] Optionally, the above steps 1303-1 to 1303-3 are exemplified by Figure 16
[0178] For all the album graphic files in a large bucket, assuming the total number of album graphic files in the large bucket is N, and each album graphic file is denoted as P_0, P_1, …, P_N-1; calculate the HSV features of each album graphic file, and the HSV features of the i-th album graphic file are denoted as HSV(P_i); maintain a list T, the number of rows of which is the number of album graphic files N in the large bucket; if T(i, j) = the first value, it means that the album graphic file P_i and the album graphic file P_j are similar album graphic files; if T(i, j) = the second value, it means that the album graphic file P_i and the album graphic file P_j are dissimilar album graphic files; where, for the album graphic file P_i, calculate the similarity S between HSV(P_j) and HSV(P_i); where, 0 ≤ i < N, and i < j < N; if S is greater than the threshold K, record T(i, j) = the first value and T(j, i) = the first value in the list T. Optionally, the similarity calculation uses the third-party so library QQImageCompare. Where, for each row in the list T, if the number of elements with the first value in this row is greater than 0, judge whether there is an existing bucket for this row; if not, create a new empty bucket, and then put the album graphic files corresponding to the position subscripts of the elements with the first value into this empty bucket, forming a small bucket including more similar album graphic files. Here, i and j are used to identify album graphic files, b is used to identify buckets, and r is used to identify rows in the list T.
[0179] See Figure 16 , the above text description can be expressed as the following steps:
[0180] 1601. Let b = 0; judge whether the current b is greater than the total number of large buckets; if not, execute the following step 1602.
[0181] 1602. Calculate the HSV features of each album graphic file in the large bucket.
[0182] 1603. Let i = 0; judge whether the current i is greater than the number of album graphic files in the large bucket; if not, execute the following step 1604; if so, execute the following step 1607.
[0183] 1604. Let j = i + 1; judge whether the current j is greater than the number of album graphic files in the large bucket; if so, i = i + 1; if not, execute the following step 1605.
[0184] 1605. Judge whether HSV(P_j) - HSV(P_i) is greater than K; if not, j = j + 1; if so, execute the following step 1606.
[0185] 1606. Record T(i,j) = the first value and T(j,i) = the first value.
[0186] 1607. Let r = 0; determine if the current r is greater than the number of rows in list T; if not, proceed to step 1608 below; if yes, then b = b+1.
[0187] 1608. Determine if the number of the first value in the r-th row is greater than 0; if yes, proceed to step 1609 below; if no, then r = r + 1.
[0188] 1609. Determine if the new bucket B_r corresponding to the album image file P_r exists; if not, proceed to step 1610 below; if yes, proceed to step 1611 below.
[0189] 1610. Create a new bucket B_r and put the album image file P_r into it.
[0190] 1611. Place the album image file corresponding to the position index of the element with the first value into a new bucket B_r.
[0191] In another possible implementation, the album image file to be processed can also be a blurred image file. The method provided in this application embodiment further includes: reading the album; for any non-screenshot image file in the album, performing grayscale processing on the non-screenshot image file to obtain a grayscale image file; determining the clarity of the grayscale image file based on the grayscale values of each pixel in the grayscale image file; optionally, the clarity is determined based on the grayscale difference between each pixel and its adjacent pixels; in response to the clarity of the album image file being less than a second threshold, determining the non-screenshot image file as the album image file to be processed.
[0192] In another possible implementation, the album image file to be processed can also be an album image file with a volume less than a third threshold. The method provided in this application embodiment further includes: reading the album and obtaining attribute information of each album image file in the album, the attribute information including the volume of the album image file; for any album image file in the album, in response to the volume of the album image file being less than the third threshold, determining the album image file as an album image file to be processed.
[0193] In another possible implementation, to improve the pop-up rate of the album image file management floating window, the terminal can try using a combination of a floating window and an Activity to pop up the album image file management floating window. Optionally, when the album image file management floating window pops up, the terminal reads the database, reads the bitmap data of each album image file according to the path information of each album image file, and uses the ViewPager component to display the album image file list (the aforementioned N preview images) in a Gallery style, with each item representing one album image file. For example, a maximum of two items can be displayed. In addition, the terminal detects the user's touch gesture by overriding the onTouch method of the ViewPager component; when the user performs a pre-set album image file management gesture, it applies a displacement animation in a specified direction (such as vertically upward) to the item touched by the user, and removes the item from the ViewPager component. At this time, the next album image file will be brought forward into the album image file advanced management floating window. In addition, after the animation finishes playing, the terminal requests the operating system to delete the album image file, thereby realizing the management of the album image file.
[0194] Figure 17 This is a schematic diagram of the structure of a photo album graphic file management device provided in an embodiment of this application. See also... Figure 17 The device includes:
[0195] The first display module 1701 is configured to display a floating window of album graphic file management of a first size in response to the terminal screen being unlocked under preset conditions. The floating window of album graphic file management is used to display the current album graphic file overview of the terminal and the first operation management control output according to the album graphic file overview.
[0196] The second display module 1702 is configured to switch from the album image file management floating window to an album image file advanced management floating window presented at a second size in response to a trigger operation of the first operation management control; the album image file advanced management floating window is used to display the album image files to be processed and visual operation management prompts.
[0197] The third display module 1703 is configured to respond to a target gesture touch event on the album image file to be processed, dynamically display the operation processing process of the album image file to be processed, dynamically switch and display the updated album image file overview, and the updated album image file overview is used to display the operation processing progress of the album image file and the corresponding operation management suggestions in real time.
[0198] This application provides users with a convenient photo album file management tool. Specifically, this application can automatically identify photo album image files to be processed and remind users to manage them via a floating window. After the user triggers the management process through the pop-up floating window, this application automatically switches from the photo album image file management floating window to the advanced photo album image file management floating window, and supports user interaction via gestures and touch controls for photo album image file management. The user experience is user-friendly, and this solution significantly improves user management efficiency through convenient interaction. In other words, this solution is automatically initiated by the terminal, eliminating the need for users to manually select photo album image files to be processed. This results in low user operation costs, high management efficiency, and a relatively intelligent system.
[0199] In one possible implementation, the second display module is further configured as follows:
[0200] In response to a trigger operation on the first operation management control, a first animation is displayed. The first animation is used to show the album image file management floating window being enlarged and switched to the album image file advanced management floating window, where the second size is larger than the first size.
[0201] In one possible implementation, the third display module is further configured as follows:
[0202] Display a second animation, which shows the album image file to be processed gradually moving in a specified direction following the target gesture touch event, and gradually disappearing from the album image file advanced management floating window.
[0203] In one possible implementation, the second display module is further configured to display the second operation management control on the album graphic file advanced management floating window in a manner that replaces the first operation management control;
[0204] The device further includes: a fourth display module configured to display a third animation in response to a trigger operation of the second operation management control, the third animation being used to show the album graphic file advanced management floating window being shrunk and switched to the album graphic file management floating window, the first size being smaller than the second size; or, in response to the album graphic file to be processed being cleared, the third animation being displayed.
[0205] In one possible implementation, the album image files to be processed are at least two, and the first album image file to be processed is displayed in the album image file advanced management floating window. The device further includes:
[0206] The fifth display module is configured to display a fourth animation after dynamically switching and displaying the updated overview of the album graphic files; wherein the fourth animation is used to show the second album graphic file automatically moving to the designated area and gradually enlarging in the designated area, and the second album graphic file is the next album graphic file located after the first album graphic file.
[0207] In one possible implementation, the first display module is configured to display a floating window for managing album graphics files of the first size in response to the terminal screen being unlocked for the first time within a target time period.
[0208] In one possible implementation, the album image files to be processed are at least two, and the second display module is further configured to:
[0209] The first album image file to be processed is displayed in a third size on the advanced management floating window for album image files, and the remaining album image files are displayed in a fourth size, where the fourth size is smaller than the third size; or,
[0210] On the advanced management floating window for album image files, at least two album image files are displayed in descending order of size, with the first album image file having the largest size among the at least two album image files.
[0211] In one possible implementation, the fourth animation is further used to present a sequence of preview images moving sequentially from the third preview image to the position previously displayed by the previous preview image, wherein the third preview image is the next preview image after the second preview image.
[0212] In one possible implementation, the album image files to be processed are at least two, and the second display module is further configured to:
[0213] Display at least two album image files in chronological order on the advanced management pop-up window for album image files; or...
[0214] Based on file size, display at least two album image files in the advanced management pop-up window; or...
[0215] Based on the priority of the album image file type, at least two album image files are displayed on the advanced management floating window of the album image files.
[0216] In one possible implementation, the album image file to be processed is a screenshot image file obtained through a screenshot operation, and the device further includes:
[0217] The first identification module is configured to read the album, obtain the attribute information of each album image file in the album, the attribute information including the file name of the album image file; for any album image file in the album, in response to the fact that the file name of the album image file contains the target keyword, the album image file is identified as the album image file to be processed.
[0218] In one possible implementation, the album image file to be processed is a redundant album image file of repeatedly taken photos, and the apparatus further includes:
[0219] The second identification module is configured to read the photo album, obtain attribute information of non-screenshot image files in the album, including the shooting time of the photo album image files; divide the non-screenshot image files taken within a target time interval into the same initial group; for any initial group, extract features from each non-screenshot image file in the initial group; based on the extracted feature data, further divide the non-screenshot image files included in the initial group to obtain M new groups, where M is a positive integer; and determine the photo album image file to be processed in each of the newly divided groups.
[0220] In one possible implementation, the second identification module is configured as follows:
[0221] Create a list for the initial group, the number of rows in the list being the total number of album image files included in the initial group, and one non-screenshot image file in the initial group corresponding to one row element in the list;
[0222] The elements in the same row are used to indicate the similarity between the same non-screenshot image file and other non-screenshot image files in the initial group; the value of the element is a first value or a second value; the first value is used to indicate that the similarity between two non-screenshot image files is greater than a first threshold; the second value is used to indicate that the similarity between two non-screenshot image files is less than the first threshold.
[0223] For any row element in the list, in response to the number of target elements in the row element that have the first value being greater than zero, and the row corresponding to a new group, the non-screenshot image file indicated by the target element is added to the new group.
[0224] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of this disclosure, and will not be described in detail here.
[0225] It should be noted that the album image file management device provided in the above embodiments is only illustrated by the division of the above functional modules when managing album image files. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the album image file management device and the album image file management method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0226] Figure 18 A structural block diagram of a terminal 1800 provided in an exemplary embodiment of this application is shown.
[0227] Typically, terminal 1800 includes a processor 1801 and a memory 1802.
[0228] Processor 1801 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1801 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1801 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1801 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1801 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0229] The memory 1802 may include one or more computer-readable storage media, which may be non-transitory. The memory 1802 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 is used to store at least one program code, which is executed by the processor 1801 to implement the album image file management method provided in the method embodiments of this application.
[0230] In some embodiments, the terminal 1800 may also optionally include a peripheral device interface 1803 and at least one peripheral device. The processor 1801, memory 1802, and peripheral device interface 1803 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1803 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: radio frequency circuitry 1804, display screen 1805, camera assembly 1806, audio circuitry 1807, and power supply 1809.
[0231] Peripheral interface 1803 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1801 and memory 1802. In some embodiments, processor 1801, memory 1802 and peripheral interface 1803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1801, memory 1802 and peripheral interface 1803 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0232] The radio frequency (RF) circuit 1804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1804 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1804 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1804 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0233] Display screen 1805 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1805 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1801 for processing. In this case, display screen 1805 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1805, disposed on the front panel of terminal 1800; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal 1800 or in a folded design; in still other embodiments, display screen 1805 may be a flexible display screen, disposed on a curved or folded surface of terminal 1800. Furthermore, display screen 1805 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1805 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0234] The camera assembly 1806 is used to acquire images or videos. Optionally, the camera assembly 1806 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1806 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0235] The audio circuit 1807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting them into electrical signals that are input to the processor 1801 for processing, or to the radio frequency circuit 1804 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 1800. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1801 or the radio frequency circuit 1804 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1807 may also include a headphone jack.
[0236] Power supply 1809 is used to power the various components in terminal 1800. Power supply 1809 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1809 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0237] In some embodiments, the terminal 1800 further includes one or more sensors 1810. The one or more sensors 1810 include, but are not limited to: an acceleration sensor 1811, a gyroscope sensor 1812, a pressure sensor 1813, an optical sensor 1815, and a proximity sensor 1818.
[0238] Accelerometer 1811 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 1800. For example, accelerometer 1811 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1801 can control display screen 1805 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1811. Accelerometer 1811 can also be used for games or for acquiring user motion data.
[0239] The gyroscope sensor 1812 can detect the orientation and rotation angle of the terminal 1800. The gyroscope sensor 1812, in conjunction with the accelerometer sensor 1811, can collect 3D motion data from the user on the terminal 1800. Based on the data collected by the gyroscope sensor 1812, the processor 1801 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0240] The pressure sensor 1813 can be disposed on the side bezel of the terminal 1800 and / or on the lower layer of the display screen 1805. When the pressure sensor 1813 is disposed on the side bezel of the terminal 1800, it can detect the user's grip signal on the terminal 1800, and the processor 1801 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1813. When the pressure sensor 1813 is disposed on the lower layer of the display screen 1805, the processor 1801 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1805. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0241] An optical sensor 1815 is used to collect ambient light intensity. In one embodiment, the processor 1801 can control the display brightness of the display screen 1805 based on the ambient light intensity collected by the optical sensor 1815. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1805 is increased; when the ambient light intensity is low, the display brightness of the display screen 1805 is decreased. In another embodiment, the processor 1801 can also dynamically adjust the shooting parameters of the camera assembly 1806 based on the ambient light intensity collected by the optical sensor 1815.
[0242] The proximity sensor 1818, also known as a distance sensor, is typically located on the front panel of the terminal 1800. The proximity sensor 1818 is used to detect the distance between the user and the front of the terminal 1800. In one embodiment, when the proximity sensor 1818 detects that the distance between the user and the front of the terminal 1800 is gradually decreasing, the processor 1801 controls the display screen 1805 to switch from a screen-on state to a screen-off state; when the proximity sensor 1818 detects that the distance between the user and the front of the terminal 1800 is gradually increasing, the processor 1801 controls the display screen 1805 to switch from a screen-off state to a screen-on state.
[0243] Those skilled in the art will understand that Figure 18 The structure shown does not constitute a limitation on terminal 1800 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0244] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including program code that can be executed by a processor in a terminal to complete the album image file management method in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0245] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer program code stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform the above-described album graphic file management method.
[0246] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0247] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for managing photo album image files, characterized in that, The method includes: In response to the terminal screen being unlocked under preset conditions, a floating window for managing album graphic files of a first size is displayed. The floating window for managing album graphic files is used to display the current album graphic file overview of the terminal and the first operation management control output according to the album graphic file overview. In response to the triggering operation of the first operation management control, the album image file management floating window switches to the album image file advanced management floating window presented in a second size; the album image file advanced management floating window is used to display the album image files to be processed and visual operation management prompts; wherein, the visual operation management prompts include at least one of the following: the number of album image files to be processed, and a text description of the management gestures and management methods of the album image files; In response to a target gesture touch event on the album image file to be processed, the operation process of the album image file to be processed is dynamically displayed, and the updated album image file overview is dynamically switched and displayed. The updated album image file overview is used to display the operation processing progress of the album image file and the corresponding operation management suggestions in real time. The operation management suggestions include a text description of the album image file cleanup method.
2. The method according to claim 1, characterized in that, The step of switching from the album image file management floating window to the album image file advanced management floating window presented at the second size in response to the trigger operation of the first operation management control includes: In response to a trigger operation on the first operation management control, a first animation is displayed. The first animation is used to show the album image file management floating window being enlarged and switched to the album image file advanced management floating window, where the second size is larger than the first size.
3. The method according to claim 1, characterized in that, The operation process of dynamically displaying the album image files to be processed includes: Display a second animation, which shows the album image file to be processed gradually moving in a specified direction following the target gesture touch event, and gradually disappearing from the album image file advanced management floating window.
4. The method according to claim 1, characterized in that, The method further includes: On the advanced management floating window for album image files, a second operation management control is displayed in a manner that replaces the first operation management control; in response to a trigger operation on the second operation management control, a third animation is displayed, the third animation being used to show the advanced management floating window for album image files being shrunk and switched to the album image file management floating window, the first size being smaller than the second size; Alternatively, in response to the fact that the album image file to be processed has been cleared, the third animation is displayed.
5. The method according to claim 1, characterized in that, The number of album image files to be processed is at least two, and the first album image file to be processed is displayed in a designated area on the advanced management floating window of the album image files. The method further includes: After dynamically switching and displaying the updated overview of the album's graphic files, the fourth animation is displayed; The fourth animation is used to show the second album graphic file automatically moving to the designated area and gradually zooming in on the designated area. The second album graphic file is the next album graphic file after the first album graphic file.
6. The method according to claim 1, characterized in that, The response to the terminal screen being unlocked under preset conditions, displaying a floating window for managing photo album graphics files of a first size, includes: In response to the terminal screen being unlocked for the first time within the target time period, a floating window for managing album graphics files of the first size is displayed.
7. The method according to claim 1, characterized in that, The number of album image files to be processed is at least two, and the method further includes: The first album image file to be processed is displayed in a third size on the advanced management floating window for album image files, and the remaining album image files are displayed in a fourth size, where the fourth size is smaller than the third size; or, On the advanced management floating window for album image files, at least two album image files are displayed in descending order of size, with the first album image file having the largest size among the at least two album image files.
8. The method according to claim 5, characterized in that, The fourth animation is also used to present a sequence of next album image files moving sequentially from the third album image file to the position previously displayed by the previous album image file, wherein the third album image file is the next album image file after the second album image file.
9. The method according to claim 1, characterized in that, The number of album image files to be processed is at least two, and the method further includes: Display at least two album image files in chronological order on the advanced management pop-up window for album image files; or... Based on file size, display at least two album image files in the advanced management pop-up window; or... Based on the priority of the album image file type, at least two album image files are displayed on the advanced management floating window of the album image files.
10. The method according to any one of claims 1 to 9, characterized in that, The image file to be processed is a screenshot image file obtained through a screenshot operation, and the method further includes: Read the album and obtain the attribute information of each album image file in the album, the attribute information including the file name of the album image file; For any album image file in the album, in response to the fact that the file name of the album image file contains the target keyword, the album image file is identified as the album image file to be processed.
11. The method according to any one of claims 1 to 9, characterized in that, The album image files to be processed are redundant album image files taken repeatedly, and the method further includes: Read the album and obtain the attribute information of non-screenshot image files in the album, including the shooting time of the album image files; Non-screenshot image files captured within the target time interval will be grouped into the same initial group; For any initial group, feature extraction is performed on each non-screenshot image file in the initial group; based on the extracted feature data, the non-screenshot image files included in the initial group are further divided to obtain M new groups, where M is a positive integer; The album image files to be processed are identified in each of the newly divided groups.
12. The method according to claim 11, characterized in that, The step of further dividing the non-screenshot image files included in the initial group based on the extracted feature data includes: Create a list for the initial group, the number of rows in the list being the total number of album image files included in the initial group, and one non-screenshot image file in the initial group corresponding to one row element in the list; The elements in the same row are used to indicate the similarity between the same non-screenshot image file and other non-screenshot image files in the initial group; the value of the element is a first value or a second value; the first value is used to indicate that the similarity between two non-screenshot image files is greater than a first threshold; the second value is used to indicate that the similarity between two non-screenshot image files is less than the first threshold. For any row element in the list, in response to the number of target elements in the row element that have the first value being greater than zero, and the row corresponding to a new group, the non-screenshot image file indicated by the target element is added to the new group.
13. A photo album graphic file management device, characterized in that, The device includes: The first display module is configured to display a floating window of album graphic file management of a first size in response to the terminal screen being unlocked under preset conditions. The floating window of album graphic file management is used to display the current album graphic file overview of the terminal and the first operation management control output according to the album graphic file overview. The second display module is configured to switch from the album image file management floating window to an album image file advanced management floating window presented at a second size in response to a trigger operation of the first operation management control; the album image file advanced management floating window is used to display album image files to be processed and visual operation management prompts; wherein, the visual operation management prompts include at least one of the following: the number of album image files to be processed, and a text description of the management gestures and management methods for album image files; The third display module is configured to respond to a target gesture touch event on the album image file to be processed, dynamically display the operation processing process of the album image file to be processed, dynamically switch and display the updated album image file overview, the updated album image file overview is used to display the operation processing progress of the album image file and the corresponding operation management suggestions in real time; the operation management suggestions include a text description of the album image file cleanup method.
14. A terminal, characterized in that, The terminal includes a processor and a memory, the memory storing at least one piece of program code, which is loaded and executed by the processor to implement the album graphic file management method as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, The storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the album graphic file management method as described in any one of claims 1 to 12.
Citation Information
Patent Citations
Method, device and equipment for cleaning files based on floating windows
CN104331488A
Picture cleanup method, picture cleanup device and terminal device
CN104809198A
Photo display method, device, terminal, and storage medium
CN109040474A