CN112003980B - Picture processing method, device, terminal and storage medium - Google Patents

Picture processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN112003980B
CN112003980B CN201910446395.0A CN201910446395A CN112003980B CN 112003980 B CN112003980 B CN 112003980B CN 201910446395 A CN201910446395 A CN 201910446395A CN 112003980 B CN112003980 B CN 112003980B
Authority
CN
China
Prior art keywords
picture
pictures
group
interface
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910446395.0A
Other languages
Chinese (zh)
Other versions
CN112003980A (en
Inventor
向蕾
向松
邓晨玮
赖豪杰
魏文俊
骆骏鸣
戴月
谭景麟
陈泽滨
吴志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910446395.0A priority Critical patent/CN112003980B/en
Publication of CN112003980A publication Critical patent/CN112003980A/en
Application granted granted Critical
Publication of CN112003980B publication Critical patent/CN112003980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The application discloses a picture processing method, a device, a terminal and a storage medium, wherein the method comprises the following steps: displaying a picture cleaning interface under the condition that a picture cleaning instruction is detected, wherein the picture cleaning interface comprises a picture display area and a deletion prompt icon; determining a group of pictures to be processed from a picture library of a terminal, wherein the group of pictures comprises at least one picture; determining a target picture to be processed from the group of pictures; displaying the target picture in a picture display area of the picture cleaning interface according to the picture display direction set by the picture cleaning interface; and when a first touch sliding event is detected on the picture cleaning interface, storing the target picture in a picture recycle bin, and deleting the target picture in the picture library, wherein the first touch sliding event is a touch sliding operation which is parallel to the picture showing direction and slides towards the deletion prompt icon. The scheme of this application can improve the efficiency of photo clearance.

Description

Picture processing method, device, terminal and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, a terminal, and a storage medium.
Background
When the number of photos in a terminal such as a mobile phone is large, a user often deletes some useless photos to clean the photos.
In order to clean up the photos quickly, a user generally selects one or more photos to be deleted in the process of browsing thumbnails of the multiple photos, and then deletes the selected photos. According to the method, batch photos can be deleted quickly, but in the process of batch photo deletion, a user can only see thumbnails of the photos but cannot see detailed images of the photos, so that the user may not accurately determine whether to keep or delete the photos, and the photos are easy to delete by mistake.
In order to be able to see the details of the photo clearly and to decide exactly whether or not to keep the photo, after the terminal has presented the complete content of a single photo, if the user wishes to delete the photo, the user can click on the corresponding delete button and, after the confirmation interface has confirmed that the photo was deleted, the deletion of the photo is completed. However, the method for deleting the photos is complex, so that the photo cleaning efficiency is low.
Disclosure of Invention
In view of this, the present application provides a picture processing method, an apparatus, a terminal and a storage medium, so as to improve the efficiency of clearing a picture.
In order to achieve the above object, in one aspect, the present application provides a method for processing an image, including:
displaying a picture cleaning interface under the condition that a picture cleaning instruction is detected, wherein the picture cleaning interface comprises a picture display area and a deletion prompt icon, and the deletion prompt icon and the picture display area are sequentially arranged along a picture display direction set by the picture cleaning interface;
determining a group of pictures to be processed from a picture library of a terminal, wherein the group of pictures comprises at least one picture;
determining a target picture to be processed from the group of pictures;
displaying the target picture in a picture display area of the picture cleaning interface according to a picture display direction set by the picture cleaning interface;
and when a first touch sliding event is detected on the picture cleaning interface, storing the target picture in a picture recycle bin, and deleting the target picture in the picture library, wherein the first touch sliding event is a touch sliding operation which is parallel to the picture showing direction and slides towards the deletion prompt icon.
In a possible situation, a collection prompt icon is further displayed on the picture cleaning interface, the deletion prompt icon, the picture display area and the collection prompt icon are sequentially arranged along the picture display direction, and the deletion prompt icon and the collection prompt icon are respectively located on two sides of the picture display area;
after the target picture is displayed in the picture display area of the picture cleaning interface, the method further comprises the following steps:
and when a second touch sliding event is detected on the picture cleaning interface, backing up the target picture in a favorite, wherein the second touch sliding event is a touch sliding operation which is parallel to the picture display direction and slides towards the favorite prompt icon.
In another possible case, after storing the target picture in a picture recycle bin, the method further includes:
determining a first number of pictures in the set of pictures that have been stored to the picture recycle bin;
indicating the first number in the delete prompt icon;
after backing up the target picture in the favorite, the method further comprises the following steps:
determining a second number of pictures in the set of pictures that have been backed up into the favorite;
the second number is indicated in the favorites tip icon.
In another aspect, the present application further provides an image processing apparatus, including:
the interface display unit is used for displaying a picture cleaning interface under the condition that a picture cleaning instruction is detected, wherein the picture cleaning interface comprises a picture display area and a deletion prompt icon, and the deletion prompt icon and the picture display area are sequentially arranged along a picture display direction set by the picture cleaning interface;
the picture determining unit is used for determining a group of pictures to be processed from a picture library of the terminal, wherein the group of pictures comprises at least one picture;
the target determining unit is used for determining a target picture to be processed from the group of pictures;
the picture display unit is used for displaying the target picture in a picture display area of the picture cleaning interface according to the picture display direction set by the picture cleaning interface;
and the picture deleting unit is used for storing the target picture in a picture recycle bin and deleting the target picture in the picture library when a first touch sliding event is detected on the picture cleaning interface, wherein the first touch sliding event is a touch sliding operation which is parallel to the picture showing direction and slides towards the deletion prompt icon.
In another aspect, the present application further provides a terminal, including:
a processor and a memory;
the processor is used for calling and executing the program stored in the memory;
the memory is configured to store the program, the program at least to:
displaying a picture cleaning interface under the condition that a picture cleaning instruction is detected, wherein the picture cleaning interface comprises a picture display area and a deletion prompt icon, and the deletion prompt icon and the picture display area are sequentially arranged along a picture display direction set by the picture cleaning interface;
determining a group of pictures to be processed from a picture library of a terminal, wherein the group of pictures comprises at least one picture;
determining a target picture to be processed from the group of pictures;
displaying the target picture in a picture display area of the picture cleaning interface according to a picture display direction set by the picture cleaning interface;
and when a first touch sliding event is detected on the picture cleaning interface, storing the target picture in a picture recycle bin, and deleting the target picture in the picture library, wherein the first touch sliding event is a touch sliding operation which is parallel to the picture showing direction and slides towards the deletion prompt icon.
In still another aspect, the present application further provides a storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the image processing method as described in any one of the above is implemented.
According to the technical scheme, after the picture cleaning instruction is detected, the picture cleaning interface is displayed, a group of pictures are obtained from the picture library of the terminal, and after the target picture to be processed in the group of pictures is displayed in the picture display area of the picture cleaning interface, the target picture can be transferred from the picture library to the picture recycling bin only by sliding towards the deletion prompt icon in the picture cleaning interface along the picture display direction, so that the user can delete one picture under the condition that the user can see the details of the picture, complex operations such as clicking the deletion icon by the user and then carrying out deletion confirmation are avoided, and the purpose of rapidly processing each picture in the group of pictures is achieved, thereby being beneficial to improving the quick cleaning of the pictures in batches.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating a composition structure of a terminal to which a picture processing method applicable to the present application is applied;
FIG. 2 is a flow chart illustrating an embodiment of a picture processing method according to the present application;
FIG. 3a shows a schematic view of the photo clean-up interface of the present application;
FIG. 3b shows a schematic of an interface switching from a photo clean-up interface to a recycle bin;
FIG. 4 shows a schematic of a main interface of a photo clean-up application;
FIG. 5a shows yet another schematic view of the photo clean-up interface of the present application;
FIG. 5b shows a schematic view of an interface for switching from a photo clean-up interface to favorites;
FIG. 6 is a flow chart illustrating a further embodiment of a picture processing method according to the present application;
FIG. 7 shows a schematic view of a process results interface of the present application;
FIG. 8 is a schematic diagram illustrating an early end prompt displayed on a top level of a photoclean-up interface display;
FIG. 9 is a schematic diagram illustrating interface switching of the image processing method in an application scenario;
fig. 10 is a schematic diagram illustrating a composition structure of an embodiment of a picture processing apparatus according to the present application.
Detailed Description
The picture processing method can be applied to cleaning pictures such as photos, screenshots and the like in a picture library in the terminal, and by means of the scheme, users can rapidly delete useless pictures under the condition that the users see details of each picture, so that the pictures can be rapidly cleaned. In addition, by the scheme, the pictures can be collected besides being deleted, so that the pictures can be cleaned more comprehensively and efficiently.
The scheme of the application can be suitable for terminals such as mobile phones and tablet computers.
For convenience of understanding, a terminal to which the image processing method of the embodiment of the present application is applied is described first. As shown in fig. 1, it shows a schematic structural diagram of a terminal to which the solution of the present application is applied. In fig. 1, the terminal 100 may include: a processor 101 and a memory 102.
The terminal 100 may further include: a communication interface 103, an input unit 104, and a display 105 and a communication bus 106.
The processor 101, the memory 102, the communication interface 103, the input unit 104, and the display 105 all communicate with each other via the communication bus 106.
In the embodiment of the present application, the processor 101 may be a Central Processing Unit (CPU), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices.
The processor may call a program stored in the memory 102, and in particular, may execute the operations performed by the terminal side in the following method embodiments.
The memory 102 is used for storing one or more programs, which may include program codes including computer operation instructions, and in this embodiment, the memory stores at least the programs for implementing the following functions:
displaying a picture cleaning interface under the condition that a picture cleaning instruction is detected, wherein the picture cleaning interface comprises a picture display area and a deletion prompt icon, and the deletion prompt icon and the picture display area are sequentially arranged along a picture display direction set by the picture cleaning interface;
determining a group of pictures to be processed from a picture library of a terminal, wherein the group of pictures comprises at least one picture;
determining a target picture to be processed from the group of pictures;
displaying the target picture in a picture display area of the picture cleaning interface according to the picture display direction set by the picture cleaning interface;
and when a first touch sliding event is detected on the picture cleaning interface, storing the target picture in a picture recycle bin, and deleting the target picture in the picture library, wherein the first touch sliding event is a touch sliding operation which is parallel to the picture showing direction and slides towards the deletion prompt icon.
In one possible implementation, the memory 102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, the above-mentioned programs, and the like; the storage data area may store data created according to the use of the terminal.
Further, the memory 102 may include a high-speed random access memory, may also include a nonvolatile memory, and the like. The communication interface 103 may be an interface of a communication module, such as an interface of a GSM module. The input unit may include a touch sensing unit sensing a touch event on the touch display panel, a keyboard, and the like. The display 104 includes a display panel, such as a touch display panel or the like.
Of course, the terminal structure shown in fig. 1 does not constitute a limitation of the terminal in the embodiment of the present application, and in practical applications, the terminal may include more or less components than those shown in fig. 1, or some components may be combined.
With the above, the picture processing method of the present application is introduced.
As shown in fig. 2, which shows a flowchart of an embodiment of an image processing method according to the present application, the embodiment is applied to the terminal mentioned above, and the embodiment includes:
s201, displaying a picture cleaning interface under the condition that the picture cleaning instruction is detected.
The picture cleaning interface comprises a picture display area and a deletion prompt icon. The deletion prompt icon and the picture display area are sequentially arranged along the picture display direction set by the picture cleaning interface.
The picture display area is used for displaying pictures to be cleaned. The deletion prompt icon is an icon for prompting a user to delete the operation mode of the picture.
The picture display direction set by the picture cleaning interface is the display direction of the picture displayed in the picture display area. The display direction of the picture is perpendicular to two parallel frames of the display interface of the terminal, and the display direction of the picture is a direction from one frame of the two parallel frames to the other frame of the two parallel frames. If the display screen of the terminal is composed of an upper frame, a lower frame, a left frame and a right frame, the picture display direction may be perpendicular to the upper frame and the lower frame, and the direction from the upper frame to the lower frame is pointed.
When the display modes of the picture cleaning interface in the terminal are different, the picture display directions set by the picture cleaning interface are also different. Taking the terminal as an example, when the mobile phone displays the picture cleaning interface in a vertical screen mode, the picture display direction of the picture cleaning interface is vertical, that is, the picture cleaning interface is vertically directed to the lower frame from the upper frame. On the basis, under the condition that the user keeps the vertical screen of the mobile phone, the picture displayed by the picture cleaning interface according to the picture display direction is in the forward direction.
For example, referring to fig. 3a, a schematic diagram of a composition structure of a picture-based cleaning interface according to the present application is shown.
As can be seen from fig. 3a, the picture clearing interface 301 includes: a picture display area 302 and a delete prompt icon 303.
The image display direction of the image cleaning interface is from top to bottom in fig. 3a, and after the image is displayed according to the image display direction, the image is in the forward direction. As shown in fig. 3a, the display direction of the picture displayed in the picture display area of the picture clearing interface is from top to bottom.
Accordingly, the image display area and the deletion prompt icon are arranged along the top-to-bottom direction in fig. 3 a.
The image cleaning instruction may be that a designated key is clicked in the image cleaning application, or that a designated icon is clicked on a main interface of the image cleaning application. As shown in fig. 4, a schematic diagram of a main interface of the photo clean-up application is shown.
As can be seen from fig. 4, the main interface of the image cleaning application displays an operation area "simply clear of photos", and when the user clicks the operation area 401 displaying "simply clear of photos", the terminal confirms that the image cleaning instruction is detected, so that the image cleaning interface shown in fig. 3a is triggered and displayed; of course, if the user selects the operation area 402 in which the "clear long-distance screenshot" is displayed in the main interface, the terminal may also determine that the image clearing instruction is detected, thereby indicating that the image clearing interface is presented. In fig. 4, the case that the picture is divided into the photo and the screenshot is taken as an example for explanation, in practical application, only an operation area prompting "picture is simply cleared" may be set, and by clicking the operation area, clearing of any picture may be triggered.
It is to be understood that presenting the photo clean-up interface includes loading data of the photo clean-up interface and presenting the photo clean-up interface.
S202, a group of pictures to be processed is determined from the picture library of the terminal.
Wherein the group of pictures comprises at least one picture. In this embodiment, the picture may be a photograph, a screenshot, or other type of image.
It can be understood that, in order to realize centralized cleaning of batch pictures and improve picture cleaning efficiency, a group of pictures can be determined from a picture library of the terminal after receiving a picture cleaning instruction. The group of pictures may include a plurality of pictures, and the specific number of pictures included in the group of pictures may be set as needed. For example, a group of pictures may include 30 pictures.
The group of pictures determined to be processed may be a group of pictures in the picture library that are not selected as pictures to be cleaned. For example, a group of pictures in the picture library which are created with the time closest to the current time and are not cleaned can be selected. The pictures which are not used as the pictures to be cleaned or not cleaned may be pictures which are not processed at the photo cleaning application, and specifically, the pictures which are not displayed, deleted or collected at the photo cleaning interface may be pictures which are not processed at the photo cleaning application.
S203, determining a target picture to be processed from the group of pictures.
For the convenience of distinction, the current picture to be processed in the group of pictures is referred to as a target picture.
For example, a picture may be randomly selected from unprocessed pictures in the group of pictures as a current picture to be processed.
Optionally, in consideration of that the pictures in the picture library are sorted according to the generation time or the size, and accordingly, the pictures in the group of pictures also have a sequence, so that the target picture to be processed can be determined according to the sequence of the pictures in the group of pictures. For example, the first picture ranked the most front in the group of pictures may be taken as the target picture, and after the first picture is processed subsequently, the second picture may be taken as the target picture, and so on.
As can be seen, this step S203 can be executed multiple times until the group of pictures are all processed.
And S204, displaying the target picture in a picture display area of the picture cleaning interface according to the picture display direction set by the picture cleaning interface.
And the display direction of the target picture is consistent with the display direction of the picture.
For example, as described with reference to fig. 3a, if the image display direction in fig. 3a is from top to bottom, the target image will also be displayed in the top to bottom direction, so that the image in the target image is in the forward direction. The object 304 in the target picture in fig. 3a is a user who is in a forward direction, but not in an inverted state.
It should be noted that, after detecting the first touch slide event in the actual application, the terminal simultaneously executes the steps S202 to S204 while loading the image clearing interface, so as to reduce the delay of image presentation, and ensure that the target image can be presented in the image clearing interface while the image clearing interface is presented as far as possible.
S205, when a first touch sliding event is detected on the picture cleaning interface, the target picture is stored in a picture recycle bin, and the target picture is deleted in the picture library.
The first touch slide event is a touch slide operation which is parallel to the picture display direction and slides towards the deletion prompt icon. That is, the sliding direction of the first touch sliding event is parallel to the picture displaying direction, and slides towards the side where the deletion prompt icon is located.
As described with reference to fig. 3a, the picture display direction in fig. 3a is from top to bottom, and the deletion prompt icon is located at the upper side of the picture display area, and as shown in the deletion prompt icon in fig. 3a, a prompt message of "slide up deletion" is displayed, according to which the user can know that the first touch slide event is a slide operation in which the touch start point is in the picture display area and is upward along the vertical direction. For example, the touch slide trajectory of the first touch slide event may be as shown by the dashed arrow in FIG. 3 a.
It can be understood that the touch slide track considering the touch slide event is long, and therefore, as long as the first touch slide event is detected in the picture clearing interface, it may be considered that the deletion operation needs to be performed on the target picture displayed in the picture clearing interface.
Alternatively, considering that users are generally accustomed to sliding pictures to move or drag pictures, as shown in FIG. 3a, a picture is moved to a picture recycle bin by sliding the picture vertically upward. Thus, detecting the first touch slide event at the photo clearing interface may be detecting the first touch slide event on a photo display area of the photo clearing interface; or, the first touch sliding event is detected on the target picture displayed in the picture display area.
Wherein the picture recycle bin is a folder for caching deleted pictures. In the embodiment of the application, the picture recycle bin may cache the deleted pictures for a specified duration, for example, the picture recycle bin may cache each picture for 7 days, and when the time for caching the pictures exceeds 7 days, the pictures are completely deleted.
It is understood that the pictures in the picture recycle bin can also be recovered, and if the user finds that there is a picture misdeletion, the picture recycle bin can be opened and the misdeleted pictures can be recovered to the picture library. Therefore, the situation that the user deletes the photos by mistake can be reduced by placing the photos needing to be deleted into the photo recycle bin.
Optionally, in order to timely recover a picture deleted by mistake or completely delete the picture in the process of clearing the picture by the user, in the embodiment of the application, when the terminal detects an operation of clicking the deletion prompt icon, the terminal displays the deleted picture stored in the picture recycle bin, so that the user can completely delete the deleted picture in the picture recycle bin or recover the deleted picture in the picture recycle bin to a picture library of the terminal.
The deleted pictures stored in the picture recycle bin may be all the pictures deleted in the picture recycle bin, or may be only the pictures deleted in the group of pictures.
As shown in fig. 3b, after clicking the delete prompt icon 301 in the picture cleaning interface, the terminal switches to the interface 305 of the recycle bin. The photos in the group of pictures that have been deleted can be displayed in the interface 305 of the recycle bin. Meanwhile, there may also be a delete option 306 for deleting pictures completely and a restore option 307 for restoring pictures in the interface 305 of the recycle bin. If the deleting option 306 is clicked after the picture to be deleted is selected, the terminal deletes the picture selected by the user from the recycle bin so as to completely delete the picture; if the user clicks on the restore option 307 after selecting the picture in the recycle bin that needs to be restored, the terminal will transfer the selected picture from the recycle bin back to the picture library.
It is understood that, when a group of pictures includes a plurality of pictures, the user may consider the number of deleted pictures according to the capacity of the terminal. In order to facilitate a user to know the number of deleted pictures in the group of currently cleaned pictures in time, after the target picture is stored in the picture recycle bin, the first number of pictures in the group of pictures stored in the picture recycle bin is also determined, and the first number is marked in the deletion prompt icon.
As described with reference to fig. 3a, a deletion prompt icon 303 is displayed on the top frame of the picture clearing interface in fig. 3a, and a numeral "1" is marked on the top right corner of the deletion prompt icon 303, which indicates that one picture in the group of pictures currently processed is deleted to the picture recycle bin.
It can be understood that, after the target picture is deleted, in order to clean other pictures in the group of pictures, the application may further return to perform step S203 to determine a next target picture to be processed and present the target picture in the picture cleaning interface until there are no pictures that have not been processed in the group of pictures.
Therefore, after the picture cleaning instruction is detected, the picture cleaning interface is displayed and a group of pictures are obtained from the picture library of the terminal, and after the target picture to be processed in the group of pictures is displayed in the picture display area of the picture cleaning interface, a user can transfer the target picture from the picture library to the picture recycle bin only by sliding towards the deletion prompt icon in the picture cleaning interface along the picture display direction. Therefore, a group of pictures can be selected to be sequentially cleaned each time, and for any picture in the group of pictures, under the condition that a user can see the details of the picture, the user can delete one picture through a simple sliding operation, so that the complex operations that the user clicks a deletion icon and then deletes the deletion icon and confirms the deletion are avoided, the purpose of rapidly processing each picture in the group of pictures is achieved, and the rapid cleaning of the pictures in batches is facilitated.
In addition, the picture is transferred from the picture library to the picture recycle bin every time the picture is deleted, so that a user does not need to secondarily confirm whether the picture is deleted or not, and the user can still open the picture recycle bin to recover the picture conveniently even if the picture is deleted by mistake, so that the convenience of picture cleaning is improved, and the condition of the picture deleted by mistake is effectively reduced.
It can be understood that, during the process of cleaning up the pictures in the terminal such as the mobile phone, the user may want to backup some more important pictures to avoid that the important pictures are deleted by mistake or lost due to the abnormality of the picture library. In order to facilitate the user to quickly and conveniently collect the pictures, the collection prompt icon can be displayed on the picture cleaning interface. Correspondingly, the deletion prompt icon, the picture display area and the collection prompt icon are displayed in the picture cleaning interface, and the deletion prompt icon, the picture display area and the collection prompt icon are sequentially arranged along the picture display direction set by the picture cleaning interface. The deletion prompt icon and the collection prompt icon are respectively positioned at two sides of the picture display area. For example, the delete prompt icon and the collection prompt icon may be symmetrically disposed with respect to the picture display area.
For example, see FIG. 5a, which shows yet another schematic view of the photo clean-up interface of the present application.
In the picture cleaning interface 501 of fig. 5a, there are included: a picture display area 502, a delete prompt icon 503, and a collection prompt icon 504. The text in the collection prompt icon 504 is "slide down collection" as in FIG. 5 a.
In fig. 5a, the picture display direction set by the picture clearing interface is a vertical direction and a top-to-bottom direction. Correspondingly, the picture display area is located in the central area of the picture cleaning interface, the upper part and the lower part of the picture display area are provided with certain blank areas, a deletion prompt icon 503 is displayed in the blank area above the picture display area, and a collection prompt icon 504 is displayed in the blank area below the picture display area. As can be seen from fig. 5a, the deletion prompt icon 503, the picture display area 502, and the collection prompt icon 504 are arranged in order from top to bottom. Meanwhile, in the vertical direction, the collection prompt icon 504 and the deletion prompt icon 503 are located on both sides of the picture display area 502.
On the basis of the structure of the picture cleaning interface, after the target picture is displayed in the picture display area of the picture cleaning interface, if a user wants to collect the target picture in the favorite, the user can slide along the picture display direction set by the picture cleaning interface and towards the direction of the collection prompt icon, so that the terminal can be triggered to collect the target picture in the favorite. Correspondingly, when the terminal detects the second touch sliding event on the picture cleaning interface, the target picture can be backed up in the favorite. The second touch sliding event is a touch sliding operation which is parallel to the picture display direction and slides towards the collection prompt icon.
The step of backing up the target picture in the favorite refers to storing the target picture in the favorite while keeping the picture library to store the target picture. Meanwhile, in order to conveniently inquire the target picture stored in the favorite, the path information of the target picture in the favorite can be stored in the database.
As described with reference to fig. 5a, the picture display direction set by the picture clearing interface in fig. 5a is a vertical direction, and the favorite icon is located below the picture clearing interface, so that the second touch slide event may be a touch slide operation downward along the vertical direction. As shown in fig. 5a, the collection prompt icon 504 displays the prompt message of "slide down collection", so that the user only needs to slide vertically downward in the interface shown in fig. 5a according to the prompt of the collection prompt icon.
It is understood that, in order to make the user clearly understand the number of pictures in the group of pictures that have been backed up in the favorite, a second number of pictures in the group of pictures that have been backed up in the favorite may be determined after the pictures have been backed up in the favorite; the second number is indicated in the favorites tip icon.
As shown in fig. 5a, if a numeral "1" is displayed on the icon of the collection prompt icon "slide-down collection", it indicates that one of the group of pictures is backed up in the collection.
It will be appreciated that as the number of pictures in the set of pictures that are backed up in the favorite increases, the second number will change and the second number indicated in the favorite icon will be updated.
It can be understood that, in the case that the user backs up the picture to the favorite in the case of a wrong operation, the user has a high complexity of searching and opening the favorite again. In order to reduce the operation complexity, when the operation of clicking the favorite prompt icon is detected, the backed-up pictures stored in the favorite are displayed, so that a user can view the backed-up pictures in the favorite or process the backed-up pictures in the favorite. Therefore, a user can enter the favorite by clicking the favorite prompt icon in the image cleaning interface, and then the images in the favorite are deleted or other images are processed.
As shown in fig. 5b, which shows a schematic view of the interface 505 for switching from the picture cleaning interface 501 to favorites. A cancel favorite icon 506 for canceling a favorite and a forward icon 507 for forwarding a picture are displayed on the favorite interface 505. The user can select the pictures in the interface of the favorite according to the needs, and cancel the favorite or forward the pictures by canceling the favorite icon or forward the icon.
Similar to the previous embodiment, after the target picture is backed up to the favorite, in order to enable the user to continue to process the next picture in the group of pictures, the application returns to the operation of determining the target picture to be processed from the group of pictures to re-determine the target picture to be cleaned until the group of pictures are all processed.
It can be understood that, in a normal situation, in the process of sequentially displaying a plurality of pictures, when the terminal detects that the user performs a sliding operation perpendicular to the display direction of the displayed pictures, the terminal switches the previous picture or the next picture of the pictures to implement picture switching. In order to distinguish from the sliding operation for triggering the switching of the pictures, in the embodiment of the application, the first touch sliding event and the second touch sliding event are both sliding operations parallel to the display direction of the pictures, so that the pictures can be deleted or collected quickly on the premise of not influencing the use habits of the users.
It can be understood that, after the target picture is displayed in the picture clearing interface, if the user does not want to delete the target picture, does not want to collect the target picture, but wants to switch to the next picture, or wants to view the previous picture displayed before the target picture, the terminal may be triggered to switch the target picture in the picture clearing interface to the previous picture or the next picture of the target picture by performing a sliding operation perpendicular to the picture displaying direction on the picture clearing interface.
Specifically, when the third touch sliding event is detected on the picture cleaning interface, a picture to be processed after the target picture is determined from the group of pictures, and the currently acquired picture is displayed in a picture display area of the picture cleaning interface as the target picture, so that the target picture is switched to a picture next to the target picture in the picture display area. And the third touch sliding event is touch sliding operation perpendicular to the picture display direction.
Correspondingly, when a fourth touch sliding event is detected on the picture cleaning interface, a last picture displayed last time before the target picture is obtained, the target picture in the picture display area is switched to the last picture, and the fourth touch sliding event is a touch sliding event with the sliding direction opposite to that of the third touch sliding event.
For example, as described with reference to fig. 5a, if the picture display direction in fig. 5a is the vertical direction, the third touch event and the fourth touch event are touch sliding operations in the horizontal direction.
If the third touch sliding event is a horizontal sliding operation to the left, the user slides to the left on the picture of the picture cleaning interface through a finger, and the terminal is triggered to switch the picture displayed on the picture cleaning interface to a next picture of the picture.
Correspondingly, the fourth touch sliding event may be a horizontal sliding operation to the right to trigger switching of the picture clearing interface to a previous picture of the picture.
To facilitate understanding of operations triggered by different touch sliding events in this embodiment of the present application, reference may be made to fig. 6, which shows another schematic flow chart of a picture processing method in this application, where the method in this embodiment may include:
s601, displaying a picture cleaning interface under the condition that the picture cleaning instruction is detected.
The image cleaning interface comprises an image display area, a deletion prompt icon and a collection prompt icon, and is specifically as described above.
S602, a group of pictures to be processed is determined from the picture library of the terminal.
Wherein the group of pictures comprises at least one picture.
S603, determining a target picture to be processed from the group of pictures.
For example, in this embodiment, it may be determined that the picture which is not processed yet and has the top order is the target picture according to the sequence of each picture in the group of pictures. For example, if the picture cleaning interface has not presented any picture in the group of pictures, the target picture is the first picture in the group of pictures.
Of course, other ways of determining the target picture are also applicable to the present embodiment.
And S604, displaying the target picture in a picture display area of the picture cleaning interface according to the picture display direction set by the picture cleaning interface.
The above steps S601 to S604 can refer to the related description of the previous embodiment, and are not described herein again.
And S605, according to the sequence of the pictures in the group of pictures, acquiring and caching a first picture which is positioned in front of the target picture and is closest to the target picture and a second picture which is positioned behind the target picture and is closest to the target picture.
The first picture is a previous picture of the target picture determined based on the sequence in a group of pictures; correspondingly, the second picture is a picture next to the target picture. For the sake of convenience of distinction, a picture immediately preceding the target picture is referred to as a first picture, and a picture immediately following the target picture is referred to as a second picture.
In the embodiment of the present application, when the target picture is loaded and displayed in the picture display area, the previous picture and the next picture of the target picture are obtained and are pre-loaded in the cache area (e.g., a cache area of a memory), so that the previous picture and the next picture can be directly obtained from the cache area subsequently without reloading from the picture library, which is beneficial to fast loading and displaying of pictures in the picture switching process.
It will be appreciated that in the case where the target picture is the first picture in the set of pictures, then the first picture is not present, in which case only the second picture may be cached. Correspondingly, if the target picture is the last picture in the group of pictures, the second picture does not exist, and in this case, only the first picture is cached.
S606, monitoring the touch sliding event on the picture cleaning interface, and executing the step S607 if the first touch sliding event is detected; if the second touch slide event is detected, performing step S608; if the third touch slide event is detected, performing step S610; if the fourth touch slide event is detected, step S609 is performed.
The first touch slide event is a touch slide operation which is parallel to the picture display direction and slides towards the deletion prompt icon. The second touch sliding event is a touch sliding operation which is parallel to the picture display direction and slides towards the collection prompt icon. The deletion prompt icon and the collection prompt icon are respectively arranged at two sides of the picture display area, so that the first touch sliding event and the second touch sliding event are touch sliding operations in opposite directions.
The third touch slide event and the fourth touch slide event are touch slide operations perpendicular to the picture display direction, and the slide directions of the third touch slide event and the fourth touch slide event are opposite.
As in fig. 5a, in the case where the picture presentation direction is the vertical direction, the first touch slide event is a touch slide upward along the vertical direction, and the second touch slide event is a touch slide event downward along the vertical direction. The third touch slide event may be a touch slide to the left in the horizontal direction; and the fourth touch slide event is a touch slide event to the right in the horizontal direction.
The third touch slide event is used to trigger switching to a next picture of the target picture, and when the third touch slide event is detected, it indicates that the next picture can be directly displayed without deleting or collecting the target picture, so that the process can directly skip to step S610 to process the next picture.
S607, when the first touch sliding event is detected, the target picture is stored in the picture recycle bin, the target picture is deleted in the picture library, and the step S610 is executed.
S608, when the second touch slide event is detected, backing up the target picture in the favorite, and executing step S610.
It is understood that if the sliding distance of the user sliding in the picture display direction and toward the deletion prompt icon is less than the set threshold, there is a high possibility that an erroneous operation is made, and the operation is not recognized as the first touch sliding event. In this case, in order to enable the user to feel the operation on the target picture, an animation effect may be presented in which the target picture is moved toward the direction of deleting the hint picture and then restored to the original position, such as the animation effect in fig. 5a in which the picture is moved up and then restored.
Correspondingly, if sliding along the image display direction and towards the collection prompt icon is detected, but the sliding distance is smaller than the set threshold value, an animation effect that the image moves towards the direction of the collection prompt icon and then is restored can be displayed.
S609, when the fourth touch sliding event is detected, obtain the cached first picture, switch the target picture displayed in the picture display area to the first picture, so that the first picture is the target picture currently displayed in the picture display area, and return to step 605.
The fourth touch sliding event is an operation for triggering switching of a picture displayed in the picture display area to a previous picture, and since the previous picture (namely the first picture) of the target picture is cached in advance, the first picture does not need to be loaded from the picture library, and the previous picture which is loaded in advance is directly acquired, so that the previous picture can be presented in the picture display area quickly.
It is understood that, after the target picture is switched to the previous picture of the target picture by the target picture display area, the previous picture displayed by the target picture display area is the target picture currently displayed by the target picture display area, in which case, the operations of the above steps S605 and S606 may be continuously performed so as to monitor the processing of the previous picture by the user.
It should be noted that, if the target picture displayed in the picture display area is the first picture in the group of pictures, and the target picture does not have the previous picture, the target picture displayed in the current picture display area is retained.
Optionally, in order to adapt to the fourth touch event, in a case that the target picture does not have the corresponding first picture, a picture rebound effect may be displayed, so that the target picture is still presented in the picture display area, so that the user may know that the last picture does not exist.
S610, detecting whether pictures which are not processed exist in the group of pictures, if so, executing step S611; if not, step S612 is executed.
Wherein the pictures in the group of pictures which are not processed are pictures which are not displayed in the picture display area. It is understood that after any one of the pictures in the group of pictures is displayed in the picture display area, the user can delete, collect or switch to the next picture without processing according to the requirement, and therefore, each picture that has been processed is displayed in the picture display area. Correspondingly, if the displayed target picture is the last picture in the group of pictures, it can be determined that no unprocessed picture exists in the group of pictures.
S611, obtaining the cached second picture, taking the second picture as a target picture to be processed in the group of pictures, and returning to the operation of step S604.
And if the target picture is not the last picture in the group of pictures, acquiring the next picture, namely a second picture, in which the target picture is loaded in advance. In this case, the second picture is a target picture to be processed at the current time in a group of pictures, so it is necessary to return to step S604 to repeat the above corresponding operations.
It can be understood that this embodiment is exemplified by a case where the second picture of the target picture is cached in advance, and in a case where the second picture is not cached in advance (in a case where the above step S605 exists), in a case where there is a picture that is not yet processed in a group of pictures, the step S603 may be executed to determine a next target picture to be processed after the target picture from the group of pictures.
S612, if the group of pictures do not have the pictures which are not processed, displaying a processing result interface.
Wherein, the processing result interface comprises: a result display area and a continuous operation prompt area. The result display area displays prompt information for prompting that the processing of the group of pictures is completed, and the number of deleted pictures and collected pictures in the group of pictures.
The continuation operation prompt area displays: a first operation option for indicating to continue processing the next group of pictures and a second operation option for indicating to end picture cleaning. If it is detected that the user clicks the first operation selection, the process returns to step S602 to re-determine a group of pictures from the picture library, and repeats the operations of steps S603 to S612. And if the user is detected to click the second operation option, the situation that the user does not want to continue cleaning the next group of pictures is indicated, and the picture cleaning can be finished.
As shown in fig. 7, a schematic diagram of a process results interface is shown. In fig. 7, the upper half area of the processing result interface is a result display area, and as shown in fig. 7, the result display area displays 2 deleted (cleaned) pictures, "2 collected" pictures, and 30 pictures processed this time; and the number of pictures cumulatively processed is "150".
The lower half area of the interface shown in fig. 7 is a continued operation prompt area, and this part displays a prompt message "there are 522 unprocessed pieces left, and whether to get a group again" for continued operation; a first operation option 701, such as "re-group" in FIG. 7; and a second operation option 702, such as the icon labeled "count, next bar" in FIG. 7. If the user clicks 'come another group', the next group of pictures are processed continuously; and if the user clicks the icon of 'counting, next bar', finishing the picture cleaning.
It is understood that in practical applications, in the process of cleaning a group of pictures, the user may also wish to finish the picture cleaning in advance, and the user may input a cleaning finishing instruction, for example, the user may input the cleaning finishing instruction by clicking an icon for triggering the end of the picture cleaning or clicking a return key. The terminal can directly end the cleaning of the group of pictures when detecting the cleaning end instruction. Optionally, in the case of receiving the cleaning end instruction, a prompt box for early ending may pop up in the picture cleaning interface, where the prompt box for early ending includes a confirmation option and a cancellation option.
As shown in fig. 8, an advance end prompt box 801 is displayed on the upper layer of the picture clearing interface display 800, and a prompt "do this process 23 sheets only, confirm advance end task", "cancel" option 802, and "confirm" option 803 are displayed on the advance end prompt box 801.
Correspondingly, if the user clicks a confirmation option, finishing cleaning the group of pictures; and if the user clicks the cancel option, the picture cleaning interface is redisplayed.
It is understood that in the embodiment of fig. 6, the number of the deleted or collected pictures may also be presented on the deletion prompt icon and the collection prompt icon, and the recycle bin or the collection can be accessed by clicking the deletion prompt icon or the collection prompt icon, as described in detail in the foregoing related description.
It can be understood that, in any of the above embodiments of the present application, it is difficult for a user to ensure that the touch slide is absolutely parallel or absolutely perpendicular to the picture display direction during the touch slide process of the picture clearing interface, and therefore, the slide directions of the first touch slide event and the second touch slide event are parallel to the picture display direction, which means relatively parallel, but not absolutely parallel. Accordingly, the third touch slide event and the fourth touch slide event are also relatively perpendicular to the picture presentation direction.
For example, how a touch slide event is which touch slide can be determined by two ways:
in a possible implementation manner, a touch starting point and a touch ending point of a touch sliding event in the picture clearing interface may be obtained, and a touch sliding distance in a first axial direction parallel to a picture displaying direction and a touch sliding distance in a second axial direction perpendicular to the picture displaying direction may be obtained by using the touch starting point and the touch ending point. The touch sliding distance herein may also be referred to as a coordinate difference value, which is a difference value of the coordinates of the touch end point and the coordinates of the touch start point. And when the absolute value of the touch sliding distance in the first axial direction is greater than the set distance threshold, the touch sliding event is the touch sliding along the first axial direction. Accordingly, in the case that the absolute value of the touch sliding distance in the second axial direction is greater than the set distance, it can be stated that the touch sliding event may be a touch sliding in the second axial direction.
If the absolute values of the touch sliding distances in the two axial directions are both greater than the set distance threshold, the magnitudes of the absolute values of the touch sliding distances in the two axial directions may be compared, and the corresponding axial direction in which the touch sliding distance is greater may be taken as the axial direction in which the touch sliding event slides. Meanwhile, in combination with the positive and negative of the touch slide distance, it can be determined which direction the touch slide event is parallel to the axial direction and towards.
As explained with reference to fig. 5a, if the image display direction is vertical downward in fig. 5a, a first axial direction parallel to the image display direction is a vertical direction shown in fig. 5a, and a second axial direction perpendicular to the image display direction is a horizontal direction shown in fig. 5 a.
Meanwhile, the center of the picture-cleaning interface of fig. 5a can be regarded as the center of a coordinate system, and the abscissa is the horizontal direction, and the positive direction of the abscissa extends upward from the center of the coordinate system; the ordinate is the vertical direction, and the positive direction of the ordinate extends rightward from the center of the coordinate system.
In this case, if the touch slide distance of the touch slide event in the first axial direction is distance 1, the touch slide distance in the second axial direction is distance 2. If the absolute value of the distance 1 is greater than the set distance threshold and the absolute value of the distance 2 is not greater than the set threshold, the touch slide event can be determined to be a touch slide along the vertical direction. And if the distance 1 is a positive value, it indicates that the touch slide event is a touch slide sliding along the positive direction of the ordinate, i.e. sliding upwards in the vertical direction on the picture cleaning interface, and at this time, the touch slide event may be considered as a first touch slide event. Accordingly, if the distance 2 has a negative value, the touch slide event is a second touch slide event.
If the absolute values of the distance 1 and the distance 2 are both greater than the set distance threshold, if the absolute value of the distance 1 is greater than the absolute value of the distance 2, the touch slide event can be considered as a touch slide along the vertical direction (i.e., the first axial direction), and meanwhile, the touch slide event is analyzed as an upward or downward slide along the numerical direction in combination with whether the distance 1 is a positive value or a negative value.
If the absolute values of the distance 1 and the distance 2 are both greater than the set distance threshold value, and the absolute value of the distance 1 is not greater than the absolute value of the distance 2, the touch slide event is considered as a touch slide along the horizontal direction (i.e. the second axial direction), and meanwhile, if the distance 2 is a positive value, the touch slide event is considered as a slide along the positive direction of the abscissa; otherwise, the touch slide event is considered to be a slide in the negative direction of the abscissa.
In yet another possible manner, a touch slide speed of the touch slide event may be obtained, and a slide direction of the touch slide event may be analyzed according to the touch slide speed. In a similar manner to the previous possible manner, a first sliding speed of the touch slide event in a first axial direction parallel to the picture display direction and a second sliding speed of the touch slide event in a second axial direction perpendicular to the picture display direction can be analyzed according to the touch trajectory of the touch slide event, and the first sliding speed and the second sliding speed also have directionality, so that the two sliding speeds can be positive or negative.
If the absolute value of the first sliding speed in the first axial direction is greater than the absolute value of the second sliding speed in the second axial direction, and the first sliding speed is positive, the touch sliding event is considered to be a sliding in a positive direction parallel to the first axial direction. If the absolute value of the first sliding velocity is greater than the absolute value of the second sliding velocity in the second axial direction and the first sliding velocity is negative, the touch slide event is a slide in a negative direction of the first axial direction.
Accordingly, if the absolute value of the first sliding speed is smaller than the absolute value of the second sliding speed in the second axial direction, the touch slide event is considered to be a touch slide in parallel with the second axial direction. Meanwhile, in combination with the second sliding speed being a positive or negative value, it may be determined that the touch sliding event is a touch sliding in a positive or negative direction parallel to and toward the second axial direction.
In order to facilitate understanding of the solution of the present application, a scene of clearing photos in a mobile phone is taken as an example to describe the solution of the present application.
Fig. 9 is a schematic diagram showing several operation modes for cleaning photos in a mobile phone by adopting the scheme of the application. In this embodiment, a group of photos is 30 photos, and several touch sliding operations are performed on the photos displayed on the photo clearing interface as an example.
As can be seen from fig. 9, when the user wishes to clean up the photos in the mobile phone, the main interface 910 for clearing photos can be opened, and after "photo simple clear" or "continue clear" in "photo simple clear" can be clicked in the main interface 910, the photo clear interface 920 can be presented.
While the photo clean-up interface 920 is being presented, 30 unprocessed photos (i.e., a group of photos) are determined from the photo library, and photos that need to be presented in the photo clean-up interface are determined in the order of 30 photos. If the photo is first presented in the photo clearance interface 920 at this time, the first photo of the 30 photos is currently loaded and presented in the photo clearance interface.
In fig. 9, the picture cleaning interface 920 is similar to fig. 5a, in which a picture 901 is displayed in the picture display area of the picture cleaning interface 920, an icon 921 for "slide up delete" is displayed above the picture display area, and an icon 922 for "slide down collection" is displayed below the picture display area.
Based on the picture cleaning interface 920, the process of deleting the picture is introduced:
if the user wishes to delete the photo 901, a vertical upward touch-and-slide operation can be performed on the photo 901 of the photo clearance interface 901, as shown by the touch-and-slide trajectory 931 of the first touch-and-slide event shown by the photo clearance interface 930 in FIG. 9, as indicated by the dashed arrow. In this case, the photos 901 in the photo clean-up interface 930 are transferred from the photo library to the recycle bin. Meanwhile, the picture in the picture cleaning interface 930 is switched from the picture 901 to the next picture 902 after the picture 901, so that the picture cleaning interface 930 is switched to the picture cleaning interface 940.
Comparing picture cleaning interface 930 and picture cleaning interface 940 can see that: the photograph 902 displayed in the picture clearance interface 940 is significantly different from the photograph 901 in the picture clearance interface 930. Meanwhile, since there is already a picture deletion to the recycle bin in the group of pictures, a numeral "1" is marked on the "upslide deletion" icon 921 displayed on the picture clearing interface 940.
The user can still delete the photo 902 displayed in the picture-clearing interface 940 according to the above steps.
In the picture cleaning interface 940, if the user clicks the "slide up delete" icon 921, the terminal will switch from the picture cleaning interface 940 to the interface of the recycle bin, which can be seen from the related description of fig. 3 b.
The following is presented as a process for the user to collect photos 902 in the picture clearance interface 940:
if it is desired to collect the photo 902, the user can perform a vertical downward touch slide on the photo 902 of the photo clearance interface 940, and the touch slide track can be indicated by a vertical downward dashed arrow in the photo clearance interface 950.
After the terminal detects the touch slide event shown on the photo clearing interface 950, the photo 902 is backed up to the favorite, and at the same time, the number of photos in the group of photos that have been backed up to the favorite is updated on the icon of the "slide down favorite" of the photo clearing interface, as shown by the photo clearing interface 960 in fig. 9. As can be seen, the "slide down collection" icon 922 of the picture clearance interface 960 is labeled with the number "1" relative to the picture clearance interface 950.
Meanwhile, after the photo 902 is backed up to the favorite, the next photo 903 of the photo 902 is displayed in the picture display area of the picture cleaning interface 960.
The user may trigger the terminal to display the interface of the favorite by clicking the icon of the "sliding collection" in any one of the image cleaning interfaces, which may be specifically referred to as the related description in fig. 5 b.
It should be noted that, in this example, the collection operation of the photos 902 displayed in the photo clearing interface 940 is taken as an example, but it is understood that after the photo clearing interface 920 is displayed, if the user does not want to delete the photos 901 in the photo clearing interface 920, but wants to collect the photos 901, a vertically downward touch sliding may be performed on the photos 901 of the photo clearing interface 920.
It is understood that only the operation schematic of deleting and collecting the photos is shown in fig. 9, but if the user does not want to collect or delete the photos displayed in the photo clearing interface, a horizontal left touch slide may be input in the photos displayed in the photo clearing interface to switch the photos in the photo clearing interface to the next photos to process the next photos. Of course, if the user wishes to view a previous photo of the photos displayed in the photo cleansing interface, a touch swipe horizontal to the right may be input on the photos displayed in the photo cleansing interface to trigger a switch from the photos displayed in the photo cleansing interface to the previous photo.
In fig. 9, after the last photo of the 30 photos is displayed in the photo clearing interface, if the user deletes, collects, or slides horizontally to the left to trigger the display of the next photo, the terminal outputs a processing result interface 970.
If the user wishes to end the photo clean-up without having processed the 30 photos, a clean-up end command can be entered to trigger the pop-up of the early-end prompt box shown in FIG. 8 in the photo clean-up interface.
The application also provides a picture processing device corresponding to the picture processing method. As shown in fig. 10, which shows a schematic diagram of a composition structure of a picture processing apparatus according to the present application, the apparatus of the present embodiment may be applied to the aforementioned terminal, and the apparatus may include:
the interface display unit 1001 is configured to display a picture cleaning interface when a picture cleaning instruction is detected, where the picture cleaning interface includes a picture display area and a deletion prompt icon, and the deletion prompt icon and the picture display area are sequentially arranged along a picture display direction set by the picture cleaning interface;
a picture determining unit 1002, configured to determine a group of pictures to be processed from a picture library of a terminal, where the group of pictures includes at least one picture;
a target determining unit 1003, configured to determine a target picture to be processed from the group of pictures;
a picture display unit 1004, configured to display the target picture in a picture display area of the picture cleaning interface according to a picture display direction set by the picture cleaning interface;
a picture deleting unit 1005, configured to, when a first touch slide event is detected on the picture cleaning interface, store the target picture in a picture recycle bin, and delete the target picture in the picture library, where the first touch slide event is a touch slide operation that is parallel to the picture display direction and slides towards the deletion prompt icon.
In a possible implementation manner, a collection prompt icon is further displayed on the picture cleaning interface displayed by the interface display unit, the deletion prompt icon, the picture display area and the collection prompt icon are sequentially arranged along the picture display direction, and the deletion prompt icon and the collection prompt icon are respectively located on two sides of the picture display area;
the apparatus may further include:
and the picture collection unit is used for backing up the target picture in a favorite when a second touch sliding event is detected on the picture cleaning interface after the target picture is displayed by the picture display unit, wherein the second touch sliding event is a touch sliding operation which is parallel to the picture display direction and slides towards the collection prompt icon.
Optionally, the apparatus may further include:
a first number determination unit, configured to determine, after the picture deletion unit stores the target picture in a picture recycle bin, a first number of pictures in the group of pictures that have been stored in the picture recycle bin;
a first number marking unit, configured to mark the first number in the deletion prompt icon;
a second number determination unit, configured to determine, after the image favorite unit backs up the target image in a favorite, a second number of images that have been backed up in the favorite in the group of images;
and the second quantity marking unit is used for marking the second quantity in the collection prompt icon.
Optionally, the apparatus may further include:
the recycle bin linking unit is used for displaying the deleted pictures stored in the picture recycle bin when the operation of clicking the deletion prompt icon is detected, so that a user can completely delete the deleted pictures in the picture recycle bin or restore the deleted pictures in the picture recycle bin to the picture library;
and the favorite link unit is used for displaying the backed-up pictures stored in the favorite when the operation of clicking the favorite prompt icon is detected, so that a user can view the backed-up pictures in the favorite or process the backed-up pictures in the favorite.
Optionally, the apparatus may further include:
the detection unit is used for detecting whether the group of pictures have unprocessed pictures after the target pictures are stored in a picture recycle bin by the picture deleting unit or the target pictures are backed up in a favorite by the picture collecting unit;
the target re-determination unit is used for returning to execute the operation of determining a target picture to be processed from the group of pictures if pictures which are not processed exist in the group of pictures;
a result interface displaying unit, configured to display a processing result interface if there is no picture that has not been processed in the group of pictures, where the processing result interface includes: the device comprises a result display area and a continuous operation prompt area, wherein the result display area displays prompt information for prompting that the processing of the group of pictures is finished, and the number of deleted pictures and collected pictures in the group of pictures; the continuous operation prompt area displays: a first operation option for indicating to continue processing the next group of pictures and a second operation option for indicating to end picture cleaning.
Optionally, the method further includes:
the picture caching unit is used for acquiring and caching a first picture which is positioned in front of the target picture and is closest to the target picture according to the sequence of the pictures in the group of pictures after the target picture is displayed by the picture display unit;
the target weight determining unit is specifically configured to, if there is an unprocessed picture in the group of pictures, acquire a cached second picture, use the second picture as a target picture to be processed in the group of pictures, and continue to execute the operation of the picture displaying unit.
Optionally, the picture caching unit is configured to, while obtaining and caching a first picture located in front of the target picture and closest to the target picture according to a sequence of pictures in the group of pictures, obtain a second picture located behind the target picture and closest to the target picture
The apparatus may further include: the page turning processing unit is used for executing the operation of the target re-determining unit when a third touch sliding event is detected on the picture cleaning interface after the picture display unit displays the target picture, wherein the third touch sliding event is a touch sliding operation perpendicular to the picture display direction;
and the rewind processing unit is used for acquiring the cached first picture when a fourth touch sliding event is detected on the picture cleaning interface, and switching the target picture displayed in the picture display area into the first picture, so that the first picture is the target picture currently displayed in the picture display area, and the fourth touch sliding event is touch sliding operation in a direction opposite to the sliding direction of the third touch sliding event.
On the other hand, the present application further provides a storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the image processing method in any one of the above embodiments is implemented.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and reference may be made to the partial description of the method embodiment for relevant points.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (7)

1. An image processing method, comprising:
when a picture cleaning instruction is detected in a picture cleaning application, displaying a picture cleaning interface comprising a picture display area, a deletion prompt icon and a collection prompt icon, wherein the picture display area is positioned in the central area of the picture cleaning interface, the deletion prompt icon and the collection prompt icon are respectively positioned in the upper blank area and the lower blank area of the picture display area, and the deletion prompt icon, the picture display area and the collection prompt icon are sequentially arranged from top to bottom along the picture display direction set by the picture cleaning interface;
determining a group of pictures to be processed from a picture library of a terminal, wherein the group of pictures comprises at least one picture;
determining a target picture to be processed from the group of pictures;
displaying the target picture in a picture display area of the picture cleaning interface according to a picture display direction set by the picture cleaning interface, wherein the display direction of the target picture is consistent with the picture display direction set by the picture cleaning interface;
according to the sequence of the pictures in the group of pictures, acquiring and caching a first picture which is positioned in front of the target picture and is closest to the target picture and a second picture which is positioned behind the target picture and is closest to the target picture;
monitoring touch sliding events on the picture clearing interface, wherein the touch sliding events comprise a first touch sliding event which is parallel to the picture showing direction and slides towards the deletion prompt icon and a second touch sliding event which is parallel to the picture showing direction and slides towards the collection prompt icon;
when the first touch sliding event is detected on the picture cleaning interface, storing the target picture in a picture recycle bin, deleting the target picture in the picture library, and marking a first number of the deleted pictures stored in the picture recycle bin in the deletion prompt icon; detecting whether an unprocessed picture exists in the group of pictures or not, acquiring a cached second picture under the condition that the unprocessed picture exists, taking the second picture as a target picture to be processed in the group of pictures, and if the unprocessed picture does not exist in the group of pictures, displaying a processing result interface;
when the second touch sliding event is detected, backing up the target picture in a favorite, and updating a second number of the pictures backed up to the favorite in the group of pictures on the favorite prompt icon; detecting whether an unprocessed picture exists in the group of pictures or not, acquiring a cached second picture under the condition that the unprocessed picture exists, and taking the second picture as a target picture to be processed in the group of pictures; and if the pictures which are not processed yet do not exist in the group of pictures, displaying a processing result interface.
2. The picture processing method according to claim 1, further comprising:
when the operation of clicking the deletion prompt icon is detected, displaying the deleted pictures stored in the picture recycle bin so that a user can completely delete the deleted pictures in the picture recycle bin or restore the deleted pictures in the picture recycle bin to the picture library;
when the operation of clicking the favorite prompt icon is detected, displaying the backed-up pictures stored in the favorite so that a user can view the backed-up pictures in the favorite or process the backed-up pictures in the favorite.
3. The method of claim 1, wherein the processing result interface comprises: the device comprises a result display area and a continuous operation prompt area, wherein the result display area displays prompt information for prompting that the processing of the group of pictures is finished, and the number of deleted pictures and the number of collected pictures in the group of pictures; the continuous operation prompt area displays that: a first operation option for indicating to continue processing the next group of pictures and a second operation option for indicating to end the picture cleaning.
4. The picture processing method according to claim 1,
after the target picture is displayed in the picture display area of the picture cleaning interface, the method further comprises the following steps:
when a third touch sliding event is detected on the picture cleaning interface, executing the operation of detecting whether pictures which are not processed exist in the group of pictures or not, wherein the third touch sliding event is a touch sliding operation perpendicular to the picture display direction;
when a fourth touch sliding event is detected on the picture cleaning interface, the cached first picture is obtained, and the target picture displayed in the picture display area is switched to the first picture, so that the first picture is the target picture currently displayed in the picture display area, and the fourth touch sliding event is touch sliding operation in a direction opposite to the sliding direction of the third touch sliding event.
5. A picture processing apparatus, comprising:
the interface display unit is used for displaying a picture cleaning interface comprising a picture display area, a deletion prompt icon and a collection prompt icon under the condition that a picture cleaning instruction is detected in a picture cleaning application, wherein the picture display area is positioned in the central area of the picture cleaning interface, the deletion prompt icon and the collection prompt icon are respectively positioned in the upper blank area and the lower blank area of the picture display area, and the deletion prompt icon and the picture display area are sequentially arranged from top to bottom along the picture display direction set by the picture cleaning interface;
the picture determining unit is used for determining a group of pictures to be processed from a picture library of the terminal, wherein the group of pictures comprises at least one picture;
the target determining unit is used for determining a target picture to be processed from the group of pictures;
the picture display unit is used for displaying the target picture in a picture display area of the picture cleaning interface according to the picture display direction set by the picture cleaning interface, wherein the display direction of the target picture is consistent with the picture display direction set by the picture cleaning interface;
the picture caching unit is used for acquiring and caching a first picture which is positioned in front of the target picture and is closest to the target picture and a second picture which is positioned behind the target picture and is closest to the target picture according to the sequence of the pictures in the group of pictures after the target picture is displayed by the picture display unit; monitoring touch sliding events on the picture clearing interface, wherein the touch sliding events comprise a first touch sliding event which is parallel to the picture showing direction and slides towards the deletion prompt icon and a second touch sliding event which is parallel to the picture showing direction and slides towards the collection prompt icon;
a picture deleting unit, configured to, when the first touch slide event is detected on the picture cleaning interface, store the target picture in a picture recycle bin, delete the target picture in the picture library, mark, in the deletion prompt icon, a first number of pictures that have been deleted and stored in the picture recycle bin, detect whether there are pictures that have not been processed in the group of pictures, acquire a cached second picture in the case where there are pictures that have not been processed, use the second picture as a target picture to be processed in the group of pictures, and if there are no pictures that have not been processed in the group of pictures, present a processing result interface;
the picture collection unit is used for backing up the target picture in a favorite and updating a second number of the pictures backed up to the favorite in the group of pictures on the collection prompt icon when the second touch sliding event is detected; detecting whether an unprocessed picture exists in the group of pictures or not, acquiring a cached second picture under the condition that the unprocessed picture exists, and taking the second picture as a target picture to be processed in the group of pictures; and if the pictures which are not processed yet do not exist in the group of pictures, displaying a processing result interface.
6. A terminal, comprising:
a processor and a memory;
the processor is used for calling and executing the program stored in the memory;
the memory is configured to store the program, the program at least to:
when a picture cleaning instruction is detected in a picture cleaning application, displaying a picture cleaning interface comprising a picture display area, a deletion prompt icon and a collection prompt icon, wherein the picture display area is positioned in the central area of the picture cleaning interface, the deletion prompt icon and the collection prompt icon are respectively positioned in the upper blank area and the lower blank area of the picture display area, and the deletion prompt icon and the picture display area are sequentially arranged from top to bottom along the picture display direction set by the picture cleaning interface;
determining a group of pictures to be processed from a picture library of a terminal, wherein the group of pictures comprises at least one picture;
determining a target picture to be processed from the group of pictures;
displaying the target picture in a picture display area of the picture cleaning interface according to a picture display direction set by the picture cleaning interface, wherein the display direction of the target picture is consistent with the picture display direction set by the picture cleaning interface;
according to the sequence of the pictures in the group of pictures, acquiring and caching a first picture which is positioned in front of the target picture and is closest to the target picture and a second picture which is positioned behind the target picture and is closest to the target picture;
monitoring touch sliding events on the picture clearing interface, wherein the touch sliding events comprise a first touch sliding event which is parallel to the picture showing direction and slides towards the deletion prompt icon and a second touch sliding event which is parallel to the picture showing direction and slides towards the collection prompt icon;
when the first touch sliding event is detected on the picture cleaning interface, storing the target picture in a picture recycle bin, deleting the target picture in the picture library, and marking a first number of the deleted pictures stored in the picture recycle bin in the deletion prompt icon; detecting whether an unprocessed picture exists in the group of pictures or not, acquiring a cached second picture under the condition that the unprocessed picture exists, taking the second picture as a target picture to be processed in the group of pictures, and if the unprocessed picture does not exist in the group of pictures, displaying a processing result interface;
when the second touch sliding event is detected, backing up the target picture in a favorite, and updating a second number of the pictures backed up to the favorite in the group of pictures on the favorite prompt icon; detecting whether an unprocessed picture exists in the group of pictures or not, acquiring a cached second picture under the condition that the unprocessed picture exists, and taking the second picture as a target picture to be processed in the group of pictures; and if the pictures which are not processed yet do not exist in the group of pictures, displaying a processing result interface.
7. A storage medium having stored thereon computer-executable instructions which, when loaded and executed by a processor, implement a picture processing method as claimed in any one of claims 1 to 4.
CN201910446395.0A 2019-05-27 2019-05-27 Picture processing method, device, terminal and storage medium Active CN112003980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910446395.0A CN112003980B (en) 2019-05-27 2019-05-27 Picture processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910446395.0A CN112003980B (en) 2019-05-27 2019-05-27 Picture processing method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112003980A CN112003980A (en) 2020-11-27
CN112003980B true CN112003980B (en) 2022-07-08

Family

ID=73461868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910446395.0A Active CN112003980B (en) 2019-05-27 2019-05-27 Picture processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112003980B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201779A (en) * 2016-07-01 2016-12-07 北京金山安全软件有限公司 Picture processing method and device and mobile terminal
CN106775332A (en) * 2017-02-07 2017-05-31 珠海市魅族科技有限公司 Image processing method and picture processing system
CN106775294A (en) * 2016-11-24 2017-05-31 维沃移动通信有限公司 A kind of image-erasing method and mobile terminal
CN109040474A (en) * 2018-10-26 2018-12-18 Oppo广东移动通信有限公司 Photo display methods, device, terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9990107B2 (en) * 2015-03-08 2018-06-05 Apple Inc. Devices, methods, and graphical user interfaces for displaying and using menus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201779A (en) * 2016-07-01 2016-12-07 北京金山安全软件有限公司 Picture processing method and device and mobile terminal
CN106775294A (en) * 2016-11-24 2017-05-31 维沃移动通信有限公司 A kind of image-erasing method and mobile terminal
CN106775332A (en) * 2017-02-07 2017-05-31 珠海市魅族科技有限公司 Image processing method and picture processing system
CN109040474A (en) * 2018-10-26 2018-12-18 Oppo广东移动通信有限公司 Photo display methods, device, terminal and storage medium

Also Published As

Publication number Publication date
CN112003980A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
US10891020B2 (en) User interface for electronic backup
TWI669652B (en) Information processing device, information processing method and computer program
CN105302784B (en) Method and system for copying/cutting and pasting data
CN103218127B (en) Mobile information apparatus and content display method
US8947464B2 (en) Display control apparatus, display control method, and non-transitory computer readable storage medium
CN106030486A (en) Batch processing method and terminal
CN103902174B (en) A kind of display methods and equipment
CN111443862A (en) Control method and system based on suspension button and storage medium
CN113805996A (en) Information display method and device
CN111045565B (en) Multimedia page switching method and electronic equipment
CN113032068A (en) Display method and electronic device
CN112003980B (en) Picture processing method, device, terminal and storage medium
CN112764639A (en) Screen capturing method and device and electronic equipment
CN112416212A (en) Program access method, device, electronic equipment and readable storage medium
CN113127425B (en) Picture processing method and device and electronic equipment
CN113360035B (en) Icon sorting method and device and electronic equipment
CN111796733B (en) Image display method, image display device and electronic equipment
CN114047857A (en) Desktop management method and device and electronic equipment
CN112765500A (en) Information searching method and device
CN105389374A (en) Image display method and mobile terminal
CN112905076B (en) Information processing method and electronic equipment
JP2011215660A (en) Attention image viewing and display method
TWI427495B (en) Operation platform system, operation method and host apparatus
CN116610243A (en) Display control method, display control device, electronic equipment and storage medium
CN117707732A (en) Application switching method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant