Picture processing method and device, terminal, storage medium and product
By detecting touch operations in social applications to call out the drawing interface and automatically copying pictures to the paste board, the problem of cumbersome picture sharing operations in the existing technology is solved, and the efficiency of image acquisition and sharing is improved.
Patent Information
- Application Number
- CN202410140862.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, users need to use multiple operations to share pictures in social applications, resulting in cumbersome and inefficient operations.
It provides a picture processing method, which simplifies the acquisition process of the picture by detecting touch operations in the current interface, calling out the drawing interface to draw the picture, and automatically copying the drawn picture to the paste board.
It improves the efficiency of image acquisition, simplifies the operation steps of image sharing and search, and improves the user experience.
Smart Images

Figure CN120411307A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a method, apparatus, terminal, storage medium and product for image processing. Background Art
[0002] Social applications are increasingly being applied to work; for example, members of a project team create a group through a social application, and the members of the project team can discuss relevant project content in this group. In some scenarios, there may be a need to share pictures; for example, when a member of the project team has a new idea, the member needs to switch the terminal from the social application to a drawing application, draw the content corresponding to the idea in the drawing application, then save the current interface of the drawing application to the album of the terminal, then the terminal switches from the drawing application to the social application, opens the album of the terminal in the social application, selects the picture drawn in the drawing application from the album, and shares the picture to the group where the member is located. Thus, it can be seen that the user needs to perform multiple operations to share a picture to a group, resulting in cumbersome and inefficient picture sharing operations. Summary of the Invention
[0003] Embodiments of this application provide a method, apparatus, terminal, storage medium and product for image processing, which can improve the efficiency of obtaining pictures. The technical solutions are as follows:
[0004] On the one hand, a method for image processing is provided, and the method includes:
[0005] Display the current interface, and detect the triggered touch operation in the current interface;
[0006] When the touch operation is used to call out the drawing interface, superimpose and display the drawing interface on the upper layer of the current interface, and perform image drawing based on the drawing interface;
[0007] Automatically copy the first drawn picture to the clipboard.
[0008] On the other hand, an apparatus for image processing is provided, and the apparatus includes:
[0009] A display module, configured to display the current interface, and detect the triggered touch operation in the current interface;
[0010] A superimposing module, configured to, when the touch operation is used to call out the drawing interface, superimpose and display the drawing interface on the upper layer of the current interface;
[0011] A drawing module, configured to perform image drawing based on the drawing interface;
[0012] A copying module, configured to automatically copy the first drawn picture to the clipboard.
[0013] On the other hand, a terminal is provided. The terminal includes a processor and a memory. At least one program code is stored in the memory and is loaded and executed by the processor to implement the above-mentioned picture processing method.
[0014] On the other hand, a computer-readable storage medium is provided. At least one program code is stored in the storage medium and is loaded and executed by a processor to implement the above-mentioned picture processing method.
[0015] On the other hand, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the above-mentioned picture processing method.
[0016] In an embodiment of the present application, on the one hand, a user can directly trigger a touch operation on the current interface to trigger the terminal to superimpose and display a drawing interface on the upper layer of the current interface, without the need to trigger the terminal to display the drawing interface through a series of complex operations. That is, the user operations required to display the drawing interface are more convenient and efficient, and the steps are more streamlined, thereby improving the display efficiency of the drawing interface and further improving the efficiency of subsequently obtaining the first picture. On the other hand, when the user finishes drawing, the terminal will automatically copy the drawn first picture to the clipboard, thereby improving the efficiency of the terminal to obtain the first picture. Based on the above two aspects, it can be seen that the present application can improve the efficiency of obtaining the first picture in two aspects.
[0017] For example, when this method is applied to a picture sharing scenario, the embodiment of the present application can simplify the operation steps of picture sharing, thereby improving the efficiency of picture sharing; for another example, when this method is applied to a picture search scenario, the embodiment of the present application can simplify the operation steps of picture search, thereby improving the efficiency of picture search. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Shows a schematic diagram of an implementation environment of a picture processing method shown in an exemplary embodiment of the present application;
[0019] Figure 2 Shows a flowchart of a picture processing method shown in an exemplary embodiment of the present application;
[0020] Figure 3 Shows an interface diagram of a picture processing method shown in an exemplary embodiment of the present application;
[0021] Figure 4 Shows an interface diagram of a picture processing method shown in an exemplary embodiment of the present application;
[0022] Figure 5Shows the interface diagram of the image processing method shown in an exemplary embodiment of the present application;
[0023] Figure 6 Shows the interface diagram of the image processing method shown in an exemplary embodiment of the present application;
[0024] Figure 7 Shows the interface diagram of the image processing method shown in an exemplary embodiment of the present application;
[0025] Figure 8 Shows the flowchart of the image processing method shown in an exemplary embodiment of the present application;
[0026] Figure 9 Shows the flowchart of the image processing method shown in an exemplary embodiment of the present application;
[0027] Figure 10 Shows the flowchart of the image processing method shown in an exemplary embodiment of the present application;
[0028] Figure 11 Shows the flowchart of the image processing method shown in an exemplary embodiment of the present application;
[0029] Figure 12 Shows the flowchart of the image processing method shown in an exemplary embodiment of the present application;
[0030] Figure 13 Shows the block diagram of the image processing apparatus shown in an exemplary embodiment of the present application;
[0031] Figure 14 Shows the block diagram of the terminal shown in an exemplary embodiment of the present application. Detailed implementation manners
[0032] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0033] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0034] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the first picture, the second picture, and the chat content involved in this application are all obtained under full authorization.
[0035] Please refer to Figure 1 , which shows a schematic diagram of the implementation environment of the picture processing method shown in an exemplary embodiment of this application. Refer to Figure 1 , this implementation environment includes: a first terminal 101 and a server 102. A target application provided by the server 102 is installed in the first terminal 101, and the first terminal 101 realizes functions such as data transmission and information interaction through the server 102.
[0036] In some embodiments, the target application is a social application, and this implementation environment further includes: a second terminal 103. A social application provided by the server 102 is also installed in the second terminal 103. Then, the first terminal 101 is the terminal used by the first user (the local user), and the second terminal 103 is the terminal used by the second user (the peer user). Then, the first user and the second user chat through the social applications on the first terminal 101 and the second terminal 103, and the server 102 forwards the chat content between the first user and the second user. When the first user and the second user are chatting through the social application and the first user wants to express his / her thoughts through a picture, the first terminal 101 can obtain the picture through the method provided by the embodiment of this application, and then share the picture with the second user (the second terminal 103) through the server 102.
[0037] In some embodiments, the number of the second terminals 103 can be one or more; when the second terminal 103 is one, the chat between the first user and the second user is a one-on-one conversation; when the second terminal 103 is multiple, the chat between the first user and the second user is a group chat.
[0038] In other embodiments, the target application is a search application. When the first user wants to search for pictures by picture, the first terminal 101 can obtain the picture through the method provided by the embodiment of this application, and then perform picture search based on the picture through the server 102. This search application can be a retrieval application or a shopping application. When the search application is a retrieval application, the embodiment of this application can realize retrieving pictures or content through pictures; when the search application is a shopping application, the embodiment of this application can realize searching for goods by picture search.
[0039] In some other embodiments, if the target application is a game application, when the first user and the second user play the drawing and guessing game, the first terminal 101 can obtain a picture through the method provided in the embodiments of the present application, and then send the picture to the second terminal 103 through the server 102 for the second user to guess the picture.
[0040] The first terminal 101 can be any terminal with a touch function; for example, the first terminal 101 can be a smart phone with a touch function, a tablet computer, a smart wearable device, a vehicle-mounted terminal, etc., but is not limited thereto. The second terminal 103 can be any terminal installed with a social application; for example, the second terminal 103 can be a smart phone, a desktop computer, a notebook computer, a tablet computer, a smart wearable device, a vehicle-mounted terminal, etc., but is not limited thereto. The server 102 is an independent physical server, or can also be a server cluster or a distributed system composed of multiple physical servers, and can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 102 is used to provide background services for the first terminal 101 and the second terminal 103.
[0041] The following introduces the application scenarios of the embodiments of the present application:
[0042] Application scenario 1: Members of a project team create a group through a social application, and the members of the project team can discuss relevant content of the project in the group. When a member of the project team has a new idea, the first terminal used by the member can draw a picture through the method provided in the embodiments of the present application to draw his idea into a first picture, and then share the drawn first picture to the group.
[0043] Application scenario 2: Two users play a drawing and guessing game through a game application. Then, the first terminal used by one user draws a picture through the method provided in the embodiments of the present application to draw the word to be guessed into a first picture, and then shares the drawn first picture to the other user for the other user to guess the picture.
[0044] Application scenario 3: A teacher conducts remote teaching through a social application. Then, the first terminal used by the teacher can draw a picture through the method provided in the embodiments of the present application to draw the content to be explained by the teacher into a first picture, and then share the drawn first picture to the students.
[0045] Application Scenario 4: When the first user wants to search for pictures by image, the first terminal used by the first user performs image drawing through the method provided in the embodiments of the present application to draw the content the user wants to search into a first picture, and then performs a picture search based on the drawn first picture.
[0046] Please refer to Figure 2 , which shows a flowchart of an image processing method shown in an exemplary embodiment of the present application. The execution subject of the embodiments of the present application may be the first terminal. Refer to Figure 2 , the method includes:
[0047] Step 201: Display the current interface and detect the touched operation triggered in the current interface.
[0048] The current interface may be a chat interface, a search interface, or a game interface. In some embodiments, when the current interface is a chat interface, during the process of the first user chatting with the second user based on the chat interface, the first user can draw a picture and then send the drawn first picture to the second user through the first terminal to express his or her thoughts by means of the first picture. When the first user wants to draw the first picture, the first user triggers a touched operation in the chat interface; the first terminal detects the chat interface; when the touched operation is detected, it is determined whether the touched operation is used to call out the drawing interface; when the touched operation is used to call out the drawing interface, step 202 is executed; when the touched operation is not used to call out the drawing interface, the touched instruction corresponding to the touched operation is determined, and the operation corresponding to the touched instruction is executed. For example, if the touched instruction corresponding to the touched operation is a screenshot instruction, a screenshot is taken based on the screenshot instruction.
[0049] In other embodiments, the current interface is a search interface; when the first user wants to search for pictures by image, the first user can draw a picture and then send the drawn first picture to the server through the first terminal so that the server performs a picture search based on the first picture. When the first user wants to draw the first picture, the first user triggers a touched operation in the search interface; the first terminal monitors the search interface; when the touched operation is detected, it is determined whether the touched operation is used to call out the drawing interface; when the touched operation is used to call out the drawing interface, step 202 is executed; when the touched operation is not used to call out the drawing interface, the touched instruction corresponding to the touched operation is determined, and the operation corresponding to the touched instruction is executed.
[0050] In some other embodiments, the current interface is a game interface; then the first user can draw a picture and then send the first picture obtained by drawing to the second user through the first terminal for the second user to guess the picture. When the first user needs to draw a picture, the first user triggers a touch operation in the search interface; the first terminal monitors the search interface; when a touch operation is detected, it determines whether the touch operation is used to call out the drawing interface; when the touch operation is used to call out the drawing interface, step 202 is executed; when the touch operation is not used to call out the drawing interface, it determines the touch instruction corresponding to the touch operation and executes the operation corresponding to the touch instruction.
[0051] In some embodiments, the step for the first terminal to determine whether the touch operation is used to call out the drawing interface may be: the first terminal determines whether the touch object used in the touch operation is the target object and determines whether the operation type of the touch operation is the target operation type; when the touch object used in the touch operation is the target object and the operation type of the touch operation is the target operation type, it is determined that the touch operation is used to call out the drawing interface; when the touch object used in the touch operation is not the target object or the touch type of the touch operation is not the target operation type, it is determined that the touch operation is not used to call out the drawing interface.
[0052] The target object may be a stylus or a finger; the target operation type may be a double-tap operation type or a long-press operation type; for example, if the target object is a stylus and the target operation type is a double-tap operation type, then the first user can double-tap the screen with the stylus to trigger the first terminal to call out the drawing interface, which is convenient to operate, has streamlined steps, and improves the efficiency of calling out the drawing interface. For example, this process can be referred to Figures 3 to 6 , in Figure 3 with the current interface being a chat interface and taking the current user's discussion of a project with Zhang San as an example for illustration; in Figure 4 with the current interface being a chat interface and taking the current user as a teacher and remote teaching student A as an example for illustration; in Figure 5 with the current interface being a game interface and taking the picture-guessing game between user A and user B as an example for illustration; Figure 6 with the current interface being a search interface as an example for illustration.
[0053] Step 202: When the touch operation is used to call out the drawing interface, the drawing interface is superimposed and displayed on the upper layer of the current interface, and a picture is drawn based on the drawing interface.
[0054] Overlay and display a canvas on top of the current interface, and display the tool elements required for drawing on the canvas to obtain a drawing interface. The transparency of the canvas is not less than a preset transparency, and the preset transparency is the approximate transparency through which the display content of the current interface can be seen through the canvas; for example, the canvas is transparent or semi-transparent, so that the first user can see the chat content of the current interface through the canvas.
[0055] The tool elements include drawing pens of multiple shapes, multiple colors, and erasers of multiple sizes. The first terminal displays the tool elements required for drawing on the canvas, so as to configure a toolbar (which can be called a stylus toolbar or a drawing toolbar) in the drawing interface. Moreover, the multiple tool elements can be multiple default tool elements of the first terminal, or multiple tool elements selected by the first user; when the multiple tool elements are multiple default tool elements of the first terminal, after the first terminal overlays and displays the canvas on the chat interface, it directly displays the tool elements on the canvas based on the multiple default tool elements to obtain a drawing interface. When the multiple tool elements are multiple tool elements selected by the first user, after the first terminal overlays and displays the canvas on the chat interface, it displays a configuration interface, and the configuration interface includes multiple element tools. The first user can select element tools from the multiple element tools; the first terminal obtains the multiple selected element tools and displays the selected multiple tool elements on the canvas based on the multiple selected element tools to obtain a drawing interface, so as to configure the element tools personalized according to the needs of the first user.
[0056] In some embodiments, the toolbar includes drawing pens of multiple shapes, multiple colors, and erasers of multiple sizes; then the first user can select a drawing pen from the multiple drawing pens of different shapes, select a color from the multiple colors, and then draw in the drawing interface with the selected drawing pen and the selected color. At this time, the first terminal obtains the trajectory drawn by the first user and displays the content drawn by the first user in the drawing interface with the drawing pen and color selected by the first user. When the user wants to erase some content, the first user selects an eraser from the erasers of multiple sizes and then performs an erasing operation in the drawing interface with the selected eraser. At this time, the first terminal erases the content drawn in the drawing interface based on the erasing operation of the first user to implement image drawing based on the drawing interface.
[0057] In some embodiments, the size of the drawing interface can be the same as the size of the current interface; correspondingly, this step can be: when the touch operation is used to call out the drawing interface, based on the size of the current interface, the drawing interface is superimposed and displayed on the upper layer of the current interface, and the size of the drawing interface is the same as the size of the current interface. Of course, the size of the drawing interface can also be smaller than the size of the current interface. In the embodiments of the present application, the size of the drawing interface is the same as the size of the current interface, so that the drawing interface completely covers the current interface, thereby achieving global coverage; for example, please continue to refer to Figure 3 .
[0058] In other embodiments, when the current interface is a chat interface, the size of the drawing interface is the same as the size of the first area in the chat interface except for the dialog box; correspondingly, this step can be: when the touch operation is used to call out the drawing interface, based on the size of the first area in the chat interface except for the dialog box, the drawing interface is superimposed and displayed on the upper layer of the first area, and the size of the drawing interface is the same as the size of the first area. Of course, the size of the drawing interface can also be smaller than the size of the first area; or, the size of the drawing interface can also be larger than the size of the first area. In the embodiments of the present application, the size of the drawing interface is the same as the size of the first area, so that the drawing interface does not cover the dialog box of the chat interface, so that when the first user is drawing, the first user can also input text content through the dialog box and send it. For example, during the drawing process, the first user can input "Please wait a moment, I'll draw what I mean" through the dialog box, so as to improve the chat effect; for example, please refer to Figure 7 .
[0059] In other embodiments, the size of the drawing interface can be adjusted according to the dragging operation of the first user; for example, the first user can trigger the first terminal to reduce the size of the drawing interface through the first dragging operation of dragging the drawing interface in the direction of the center; correspondingly, the first terminal reduces the size of the drawing interface based on the first dragging operation. Again, for example, the first user can trigger the first terminal to enlarge the size of the drawing interface through the second dragging operation of dragging the drawing interface in the opposite direction of the center; correspondingly, the first terminal enlarges the size of the drawing interface based on the second dragging operation.
[0060] In other embodiments, the first user can also adjust the position of the drawing interface in the current interface; for example, the first user can trigger the first terminal to adjust the position of the drawing interface in the current interface through the third dragging operation of dragging the drawing interface; correspondingly, the first terminal adjusts the position of the drawing interface in the current interface based on the third dragging operation.
[0061] In some other embodiments, the drawing interface includes a close button for closing the drawing interface. When the first user wants to close the drawing interface, the first user can trigger the close button. In response to the trigger of the close button, the first terminal closes the drawing interface and then continues to display the current interface (e.g., continues to display the chat interface or the search interface), so that in the case of the user accidentally opening the drawing interface, the drawing interface can be quickly closed.
[0062] In some other embodiments, the first terminal can also implement the superimposed display of the drawing interface on the upper layer of the current interface by calling a drawing application or a handwriting application. Correspondingly, step 202 can be: when the touch operation is used to call out the drawing interface, call the home page of the drawing application in the system, and superimpose and display the home page of the drawing application on the upper layer of the current interface to obtain the drawing interface. Or, when the touch operation is used to call out the drawing interface, call the home page of the handwriting application in the system, select the tool elements required for drawing from the toolbar on the home page of the handwriting application, and display the tool elements required for drawing on the home page of the handwriting application. The handwriting application refers to an application that can write with a stylus.
[0063] Step 203: Automatically copy the first picture obtained by drawing to the clipboard.
[0064] In some embodiments, after the first terminal automatically copies the first picture obtained by drawing to the clipboard, it closes the drawing interface and then displays the current interface, so as to facilitate the first user to use the first picture. In some embodiments, the current interface is a chat interface. When the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the chat interface to share the first picture with the peer user corresponding to the dialog box. For example, when the first terminal receives a sharing instruction, it shares the first picture with the peer user corresponding to the dialog box. For this process, please continue to refer to Figures 3 - 4 . In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0065] In some other embodiments, the current interface is a game interface. When the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the game interface to share the first picture with the peer user corresponding to the dialog box. For this process, please continue to refer to Figure 5 . In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0066] In some other embodiments, the current interface is a search interface. When a paste instruction is received, the first terminal pastes the first picture into the search box of the search interface to perform a picture search based on the first picture. For example, when the first terminal receives a search instruction, it sends the first picture to the server so that the server performs a picture search based on the first picture. For this process, please continue to refer to Figure 6 . In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the search efficiency of subsequent picture search based on the first picture.
[0067] In some other embodiments, after the first terminal automatically copies the first picture obtained by drawing to the clipboard, it shrinks the drawing interface to a second area of the current interface. The second area can be a blank area that does not block the chat interface, thereby facilitating the first user to use the drawing interface again. When the first user wants to use the drawing interface again, the first user can click on the drawing interface. When the first terminal detects that the drawing interface is clicked, it enlarges the drawing interface and displays it at the position before shrinking; for example, enlarges the drawing interface and superimposes it on the current interface.
[0068] In the embodiments of the present application, on the one hand, the user can directly trigger a touch operation on the current interface to trigger the first terminal to superimpose and display the drawing interface on the upper layer of the current interface, without the need for a series of complex operations to trigger the first terminal to display the drawing interface. That is, the user operations required to display the drawing interface are more convenient and efficient, and the steps are more streamlined, thereby improving the display efficiency of the drawing interface and further improving the efficiency of obtaining the first picture subsequently. On the other hand, when the user finishes drawing, the first terminal automatically copies the first picture obtained by drawing to the clipboard, thereby improving the efficiency of the first terminal to obtain the first picture. Based on the above two aspects, it can be seen that the present application can improve the efficiency of obtaining the first picture in two aspects.
[0069] For example, when this method is applied to a picture sharing scenario, the embodiments of the present application can simplify the operation steps of picture sharing, thereby improving the efficiency of picture sharing; again, when this method is applied to a picture search scenario, the embodiments of the present application can simplify the operation steps of picture search, thereby improving the efficiency of picture search.
[0070] Please refer to Figure 8 , which shows a flowchart of a picture processing method shown in an exemplary embodiment of the present application. Refer to Figure 8 , this method includes:
[0071] Step 801: The first terminal displays the current interface and detects a touch operation triggered in the current interface.
[0072] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0073] Step 802: When the touch operation is used to call out the drawing interface, the first terminal calls the home page of the drawing application in the system and superimposes and displays the home page of the drawing application on the upper layer of the current interface.
[0074] The canvas superimposed and displayed on the upper layer of the current interface is the home page of the drawing application. The process of setting the size of the canvas is similar to the process of setting the size of the drawing interface in Step 202, which will not be elaborated here. The home page of the drawing application includes a toolbar; in some embodiments, the first terminal retains the toolbar in the home page of the drawing application, thus increasing the tool elements in the drawing interface; in other embodiments, the first terminal deletes the toolbar in the home page of the handwriting application, so as to configure the toolbar in Step 803.
[0075] Step 803: The first terminal displays the tool elements required for drawing on the canvas to obtain a drawing interface.
[0076] The tool elements include drawing pens of multiple shapes, multiple colors, and erasers of multiple sizes. The first terminal configures the tool elements required for drawing on the canvas, so as to configure a toolbar (stylus toolbar) in the drawing interface.
[0077] In the embodiments of the present application, since switching from the application corresponding to the current interface to the drawing application and then drawing a picture in the drawing application and then sharing or using the picture drawn in the drawing application through the current interface is cumbersome and inefficient (the specific process can refer to the relevant description in the background art); therefore, in the embodiments of the present application, the first terminal is triggered to call the canvas of the drawing application through a touch operation, and then the tool elements are displayed on the canvas, so as to achieve the effect of superimposing and displaying the drawing interface in the chat interface. In this way, there is no need to switch applications to achieve the purpose of drawing a picture. Moreover, since the tool elements are displayed on the canvas, personalized configuration based on the application scenario can be achieved, rather than directly calling the toolbar of the drawing application.
[0078] Step 804: The first terminal draws a picture based on the drawing interface.
[0079] The toolbar includes paintbrushes in multiple shapes, multiple colors, and erasers in multiple sizes. Then, the first user can select a paintbrush from the paintbrushes in multiple shapes, select a color from the multiple colors, and then draw on the drawing interface with the selected paintbrush and color. At this time, the first terminal obtains the trajectory drawn by the first user and, based on the trajectory drawn by the first user, displays the content drawn by the first user on the drawing interface with the paintbrush and color selected by the first user. When the user wants to erase some content, the first user selects an eraser from the erasers in multiple sizes and then performs an erasing operation on the drawing interface with the selected eraser. At this time, the first terminal erases the content drawn on the drawing interface based on the erasing operation of the first user to implement picture drawing based on the drawing interface.
[0080] Step 805: The first terminal automatically copies the first picture obtained by drawing to the clipboard.
[0081] In some embodiments, this step is the same as step 203 and will not be elaborated here.
[0082] Step 806: When receiving a paste instruction, the first terminal pastes the first picture into the input box of the current interface for picture processing based on the first picture.
[0083] In some embodiments, the current interface is a chat interface and the input box is a dialog box. When the first terminal receives the paste instruction, the first terminal pastes the first picture into the dialog box of the chat interface to share the first picture with the peer user corresponding to the dialog box. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0084] In other embodiments, the current interface is a game interface. When the first terminal receives the paste instruction, the first terminal pastes the first picture into the dialog box of the game interface to share the first picture with the peer user corresponding to the dialog box. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0085] In other embodiments, the current interface is a search interface and the input box is a search box. When receiving the paste instruction, the first terminal pastes the first picture into the search box of the search interface for picture search based on the first picture. For example, when the first terminal receives a search instruction, it sends the first picture to the server for the server to perform picture search based on the first picture. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the search efficiency of subsequent picture search based on the first picture.
[0086] In the embodiment of the present application, a drawing application is included in the system of the first terminal. By calling the drawing application in the system, the first terminal superimposes and displays the canvas of the drawing application on the upper layer of the chat interface and displays tool elements on the canvas, so as to achieve the purpose of quickly displaying the drawing interface, thereby improving the display efficiency of the drawing interface and further improving the efficiency of obtaining the first picture subsequently.
[0087] Please refer to Figure 9 , which shows the flowchart of the picture processing method shown in an exemplary embodiment of the present application. Refer to Figure 9 , the method includes:
[0088] Step 901: The first terminal displays the current interface and detects the touched operation triggered in the current interface.
[0089] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0090] Step 902: The first terminal calls the home page of the handwriting application in the system, selects the tool elements required for drawing from the toolbar on the home page of the handwriting application, and displays the tool elements required for drawing on the home page of the handwriting application.
[0091] The canvas superimposed and displayed on the upper layer of the current interface is the home page for displaying the tool elements required for the canvas; the process of setting the size of the canvas is similar to the process of setting the size of the drawing interface in step 202 and will not be elaborated here. In addition, the toolbar on the home page of the handwriting application often does not match the toolbar required for the drawing interface; therefore, in this step, the toolbar on the home page of the handwriting application is deleted, and then the toolbar is configured through step 903.
[0092] Step 903: The first terminal displays the tool elements required for drawing on the canvas to obtain a drawing interface.
[0093] The tool elements include drawing pens of multiple shapes, multiple colors, and erasers of multiple sizes. The first terminal configures the tool elements required for drawing on the canvas, thereby configuring a toolbar (a handwriting pen toolbar) in the drawing interface.
[0094] In some embodiments, since some tool elements in the home page of the handwriting application are retained on the canvas; therefore, in this step, other tool elements that are not already displayed can be displayed on the canvas based on the tool elements required for drawing. For example, if the tool elements required for drawing include Tool Element 1, Tool Element 2, and Tool Element 3, and Tool Element 1 is also in the home page of the handwriting application and Tool Element 1 is already displayed on the canvas, then in this step, only Tool Element 2 and Tool Element 3 need to be displayed on the canvas, thus obtaining a drawing interface. In the embodiments of the present application, the user can configure the canvas tool elements on the canvas according to their own needs, thereby improving the adaptability of the obtained drawing interface.
[0095] Step 904: The first terminal performs picture drawing based on the drawing interface.
[0096] In some embodiments, this step is the same as step 804 and will not be elaborated here.
[0097] Step 905: The first terminal automatically copies the drawn first picture to the clipboard.
[0098] In some embodiments, this step is the same as step 203 and will not be elaborated here.
[0099] Step 906: When a paste instruction is received, the first terminal pastes the first picture into the input box of the current interface for picture processing based on the first picture.
[0100] In some embodiments, the current interface is a chat interface and the input box is a dialog box; when the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the chat interface to share the first picture with the peer user corresponding to the dialog box; for example, when the first terminal receives a sharing instruction, it shares the first picture with the peer user corresponding to the dialog box. For this process, please continue to refer to Figure 3 . In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0101] In other embodiments, the current interface is a game interface. When the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the game interface to share the first picture with the peer user corresponding to the dialog box. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0102] In some other embodiments, the current interface is a search interface and the input box is a search box. When a paste instruction is received, the first terminal pastes the first picture into the search box of the search interface to perform a picture search based on the first picture. For example, when the first terminal receives a search instruction, it sends the first picture to the server so that the server performs a picture search based on the first picture. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the search efficiency of subsequent picture searches based on the first picture.
[0103] In the embodiments of the present application, the first terminal includes a handwriting application. The first terminal overlays and displays the canvas of the handwriting application on the upper layer of the chat interface and configures tool elements on the canvas to quickly display the drawing interface, thereby improving the display efficiency of the drawing interface and further improving the efficiency of subsequent acquisition of the first picture.
[0104] Please refer to Figure 10 , which shows a flowchart of a picture processing method shown in an exemplary embodiment of the present application. Refer to Figure 10 , the method includes:
[0105] Step 1001: The first terminal displays the current interface and detects the touched operation triggered in the current interface.
[0106] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0107] Step 1002: When the touched operation is used to call out the drawing interface, the first terminal overlays and displays the drawing interface on the upper layer of the current interface and performs picture drawing based on the drawing interface. The picture interface includes a completion button.
[0108] In some embodiments, this step is the same as step 202; alternatively, this step can be implemented through steps 802 - 803; or this step can be implemented through steps 902 - 903, and will not be elaborated here.
[0109] Step 1003: In response to the completion button being triggered, the first terminal generates a first picture from the content drawn on the drawing interface and automatically copies the first picture to the clipboard.
[0110] In some embodiments, the drawing interface includes a completion button and the first user can click the completion button to trigger the first terminal to perform subsequent operations. The completion button can be located at any position on the drawing interface; for example, the completion button can be in the upper right corner or the lower right corner of the drawing interface. In some other embodiments, the position of the completion button can be adjusted in real time based on the position of the first user's stylus; for example, the completion button is always located in the upper right corner of the first user's stylus.
[0111] In some embodiments, the drawing interface further includes a cancel button. The first user can click the cancel button to trigger the first terminal to cancel the most recent drawn content. The cancel button can be located at any position in the drawing interface; for example, the cancel button can be in the upper left corner or the lower left corner of the drawing interface. In some other embodiments, the position of the cancel button can be adjusted in real time based on the position of the first user's stylus; for example, the cancel button is always located in the upper left corner of the first user's stylus.
[0112] In some embodiments, after the first terminal generates a first picture from the content drawn on the drawing interface, it can also perform enhancement processing, magnification processing, etc. on the first picture, and automatically copy the processed first picture to the clipboard.
[0113] Step 1004: When receiving a paste instruction, the first terminal pastes the first picture into the input box on the current interface to perform picture processing based on the first picture.
[0114] In some embodiments, the current interface is a chat interface and the input box is a dialog box; when the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the chat interface to share the first picture with the peer user corresponding to the dialog box; for example, when the first terminal receives a sharing instruction, it shares the first picture with the peer user corresponding to the dialog box. For this process, please continue to refer to Figure 3 . In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0115] In some other embodiments, the current interface is a game interface. When the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the game interface to share the first picture with the peer user corresponding to the dialog box. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0116] In some other embodiments, the current interface is a search interface and the input box is a search box; when receiving a paste instruction, the first terminal pastes the first picture into the search box of the search interface to perform picture search based on the first picture; for example, when the first terminal receives a search instruction, it sends the first picture to the server so that the server performs picture search based on the first picture. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the search efficiency of subsequent picture search based on the first picture.
[0117] In the embodiments of the present application, at the interaction level, the drawing interface is called out through simple touch operations, and clicking the completion button automatically copies it to the clipboard. This not only provides smooth and natural operations with low learning costs but also facilitates the first user to use the first picture.
[0118] Please refer to Figure 11 , which shows the flowchart of the picture processing method shown in an exemplary embodiment of the present application. Refer to Figure 11 , the method includes:
[0119] Step 1101: The first terminal displays the current interface and detects the touch operation triggered in the current interface.
[0120] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0121] Step 1102: When the touch operation is used to call out the drawing interface, the first terminal superimposes and displays the drawing interface on the upper layer of the current interface.
[0122] In some embodiments, this step is the same as step 202; alternatively, this step can be implemented through steps 802 - 803; or this step can be implemented through steps 902 - 903, and will not be elaborated here.
[0123] Step 1103: The first terminal displays the second picture in the drawing interface.
[0124] The second picture can be regarded as a template picture of the first picture, or the second picture can be regarded as the base picture of the first picture. The first terminal can display the second picture in the drawing interface in the following four ways.
[0125] The first implementation method: The first terminal obtains the second picture drawn last time based on the drawing interface and displays the second picture in the drawing interface.
[0126] Since the first user may have drawn a picture, and in the subsequent communication process, it is necessary to modify the drawn picture; at this time, the first terminal displays the drawn second picture in the drawing interface, which can facilitate the first user to modify based on the drawn second picture to improve the efficiency of obtaining the first picture.
[0127] The second implementation method: The current interface is a chat interface; the first terminal obtains the second picture that was most recently sent in the chat interface and displays the second picture in the drawing interface.
[0128] Since the first user needs to mark some content on the second picture in the chat interface for convenience of description during the discussion of the second picture; at this time, the first terminal displays the second picture in the drawing interface, which can facilitate the first user to modify based on the sent second picture to improve the efficiency of obtaining the first picture.
[0129] The third implementation method: The current interface is a chat interface; the first terminal obtains the chat content of the chat interface, analyzes the chat content to obtain intent information, and obtains a second picture to be discussed according to the intent information, and displays the second picture in the drawing interface. For example, if the chat content is "Just modify the right side of this picture sent by Zhang San a little bit", the intent information is "this picture sent by Zhang San". At this time, the first terminal displays this picture sent by Zhang San in the drawing interface, so as to facilitate the first user to modify based on the sent second picture, thereby improving the efficiency of obtaining the first picture.
[0130] The fourth implementation method: The first terminal displays multiple second pictures in the drawing interface, determines the selected second picture among the multiple second pictures, and displays the selected second picture in the drawing interface. The multiple second pictures include pictures drawn in history, pictures sent in the chat interface in history, and template pictures provided by a drawing application (or a handwriting application). In the embodiments of the present application, the first terminal provides several second pictures in advance for the first user to select, which can avoid the user from drawing from scratch and improve the efficiency of obtaining the first picture.
[0131] In some embodiments, the first terminal defaults to display the second picture in the drawing interface, that is, after the first terminal superimposes and displays the drawing interface on the chat interface, it immediately displays the second picture in the drawing interface, thereby improving the efficiency of displaying the second picture. In other embodiments, the first terminal does not default to display the second picture in the drawing interface, and only when receiving a touch operation triggered by the user to display the second picture, does the first terminal display the second picture in the drawing interface. This touch operation can be any operation that triggers the first terminal to display the second picture; for example, this touch operation can be a double-click operation or a long-press operation, etc.
[0132] Step 1104: The first terminal modifies the second picture in the drawing interface to obtain the first picture.
[0133] The first user can add certain content, delete certain content or update certain content to the second picture, that is, the first user can trigger an addition operation, a deletion operation or an update operation on the second picture; the first terminal modifies the second picture based on the addition operation, the deletion operation or the update operation, and the modified picture is the first picture.
[0134] Step 1105: The first terminal automatically copies the drawn first picture to the clipboard.
[0135] In some embodiments, this step is the same as step 203, and will not be elaborated here.
[0136] Step 1106: When receiving a paste instruction, the first terminal pastes the first picture into the input box on the current interface to perform picture processing based on the first picture.
[0137] In some embodiments, the current interface is a chat interface and the input box is a dialog box; when the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box on the chat interface to share the first picture with the peer user corresponding to the dialog box; for example, when the first terminal receives a sharing instruction, it shares the first picture with the peer user corresponding to the dialog box. For this process, please continue to refer to Figure 3 . In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0138] In some other embodiments, the current interface is a game interface; when the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box on the game interface to share the first picture with the peer user corresponding to the dialog box. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0139] In some other embodiments, the current interface is a search interface and the input box is a search box; when receiving a paste instruction, the first terminal pastes the first picture into the search box on the search interface to perform picture search based on the first picture; for example, when the first terminal receives a search instruction, it sends the first picture to the server so that the server performs picture search based on the first picture. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the search efficiency of subsequent picture search based on the first picture.
[0140] Please refer to Figure 12 , which shows the flowchart of the picture processing method shown in an exemplary embodiment of the present application. In the embodiments of the present application, the drawing interface is taken as an example of the mask for illustration; refer to Figure 12 , this method includes:
[0141] Step 1201: The first terminal displays the current interface and detects the touched operation triggered in the current interface.
[0142] In some embodiments, this step is the same as step 201 and will not be elaborated here.
[0143] Step 1202: When the touched operation is used to call out the drawing interface, the first terminal superimposes and displays a mask on the upper layer of the current interface.
[0144] The transparency of the mask is not less than the preset transparency, and the preset transparency is the adjacent transparency through which the display content of the current interface can be displayed through the mask, so that the first user can view the display content of the current interface through the mask.
[0145] Step 1203: The first terminal performs picture drawing based on the mask.
[0146] In some embodiments, the process of the first terminal performing picture drawing based on the mask is similar to the process of the first terminal performing picture drawing based on the drawing interface, and will not be elaborated here.
[0147] Step 1204: The first terminal automatically copies the drawn first picture to the clipboard.
[0148] In some embodiments, this step is the same as step 203 and will not be elaborated here.
[0149] Step 1205: When receiving a paste instruction, the first terminal pastes the first picture into the input box of the current interface for picture processing based on the first picture.
[0150] In some embodiments, the current interface is a chat interface and the input box is a dialog box; when the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the chat interface to share the first picture with the peer user corresponding to the dialog box; for example, when the first terminal receives a sharing instruction, it shares the first picture with the peer user corresponding to the dialog box. For this process, please continue to refer to Figure 3 . In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0151] In other embodiments, the current interface is a game interface. When the first terminal receives a paste instruction, the first terminal pastes the first picture into the dialog box of the game interface to share the first picture with the peer user corresponding to the dialog box. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the sharing efficiency of the subsequent first picture.
[0152] In other embodiments, the current interface is a search interface and the input box is a search box; when receiving a paste instruction, the first terminal pastes the first picture into the search box of the search interface for picture search based on the first picture; for example, when the first terminal receives a search instruction, it sends the first picture to the server for the server to perform picture search based on the first picture. In the embodiments of the present application, the first terminal automatically copies the first picture to the clipboard without the need for user operation, thereby improving the search efficiency of subsequent picture search based on the first picture.
[0153] In the embodiment of the present application, by displaying a mask on the current interface, a drawing interface is superimposed and displayed on the upper layer of the current interface, and the transparency of the mask is set to be not less than a preset transparency, so that the first user can view the display content of the current interface through the mask, improving the user experience of picture drawing.
[0154] Please refer to Figure 13 , which shows a picture processing device shown in an exemplary embodiment of the present application. The device includes:
[0155] A display module 1301, configured to display a current interface and detect a triggered touch operation in the current interface;
[0156] An overlay module 1302, configured to superimpose and display a drawing interface on the upper layer of the current interface when the touch operation is used to call out the drawing interface;
[0157] A drawing module 1303, configured to draw a picture based on the drawing interface;
[0158] A copying module 1304, configured to automatically copy the first picture obtained by drawing to the clipboard.
[0159] In some embodiments, the overlay module 1302 is configured to superimpose and display a canvas on the upper layer of the current interface; display tool elements required for drawing on the canvas to obtain a drawing interface.
[0160] In some embodiments, the overlay module 1302 is configured to call the home page of a drawing application in the system and superimpose and display the home page of the drawing application on the upper layer of the current interface; or,
[0161] The overlay module 1302 is configured to call the home page of a handwriting application in the system, select tool elements required for drawing in the home page of the handwriting application, and display tool elements required for drawing in the home page of the handwriting application.
[0162] In some embodiments, the overlay module 1302 is configured to superimpose and display a drawing interface on the upper layer of the current interface based on the size of the current interface, and the size of the drawing interface is the same as the size of the current interface; or,
[0163] The overlay module 1302 is configured to, when the current interface is a chat interface, superimpose and display a drawing interface on the upper layer of the first area except for the dialog box in the chat interface, and the size of the drawing interface is the same as the size of the first area.
[0164] In some embodiments, the device further includes:
[0165] A determination module, configured to determine that a touch operation is used to call out a drawing interface when the touch object used in the touch operation is a target object and the operation type of the touch operation is a target operation type.
[0166] In some embodiments, the drawing interface includes a completion button;
[0167] A copying module 1304, configured to generate a first picture from the content drawn on the drawing interface and automatically copy the first picture to the clipboard in response to the completion button being triggered.
[0168] In some embodiments, a drawing module 1303 is configured to display a second picture in the drawing interface; and modify the second picture in the drawing interface.
[0169] In some embodiments, the drawing module 1303 is configured to obtain the second picture drawn last time based on the drawing interface and display the second picture in the drawing interface; or,
[0170] The drawing module 1303 is configured to, when the current interface is a chat interface, obtain the second picture most recently shared in the chat interface and display the second picture in the drawing interface; or,
[0171] The drawing module 1303 is configured to, when the current interface is a chat interface, obtain the chat content of the chat interface, analyze the chat content to obtain intent information, obtain the second picture to be discussed according to the intent information, and display the second picture in the drawing interface; or,
[0172] The drawing module 1303 is configured to display multiple second pictures in the drawing interface, determine the selected second picture among the multiple second pictures, and display the selected second picture in the drawing interface.
[0173] In some embodiments, the drawing interface is a mask; an overlay module 1302 is configured to overlay and display the mask on the upper layer of the current interface, where the transparency of the mask is not less than a preset transparency, and the preset transparency is the adjacent transparency through which the display content of the current interface can be displayed through the mask.
[0174] In some embodiments, the current interface is a chat interface; the apparatus further includes:
[0175] A sharing module, configured to paste the first picture into the dialog box of the chat interface when a paste instruction is received, so as to share the first picture with the peer user corresponding to the dialog box.
[0176] In some embodiments, the current interface is a search interface; the apparatus further includes:
[0177] A search module, configured to paste the first picture into the search box of the search interface when a paste instruction is received, so as to perform a picture search based on the first picture.
[0178] In an embodiment of the present application, on the one hand, the user can directly trigger a touch operation on the current interface to trigger the terminal to superimpose and display a drawing interface on the upper layer of the current interface, without the need to trigger the terminal to display the drawing interface through a series of complex operations. That is, the user operations required to display the drawing interface are more convenient and efficient, and the steps are more streamlined, thereby improving the display efficiency of the drawing interface and further improving the efficiency of obtaining the first picture subsequently. On the other hand, when the user finishes drawing, the terminal will automatically copy the drawn first picture to the clipboard, thereby improving the efficiency of the terminal to obtain the first picture. Based on the above two aspects, it can be seen that the present application can improve the efficiency of obtaining the first picture in two aspects.
[0179] For example, when this method is applied to the picture sharing scenario, the embodiment of the present application can simplify the operation steps of picture sharing, thereby improving the efficiency of picture sharing; for another example, when this method is applied to the picture search scenario, the embodiment of the present application can simplify the operation steps of picture search, thereby improving the efficiency of picture search.
[0180] It should be noted that when the above-mentioned picture processing device performs picture processing, only the above-mentioned division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the first terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the above-mentioned picture processing device provided in the embodiment and the embodiment of the picture processing method belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be elaborated here.
[0181] Please refer to Figure 14 , which shows a block diagram of the first terminal 1400 shown in an exemplary embodiment of the present application. The first terminal 1400 in the present application may include one or more of the following components: a processor 1410, a memory 1420, and a touch screen 1430.
[0182] The processor 1410 may include one or more processing cores. The processor 1410 connects various parts within the entire first terminal 1400 through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 1420, and by invoking data stored in the memory 1420, it performs various functions of the first terminal 1400 and processes data. Optionally, the processor 1410 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 1410 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the touch screen 1430; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above modem may not be integrated into the processor 1410 and may be implemented separately by a single chip.
[0183] The memory 1420 may include random access memory (RAM) and may also include read-only memory (ROM). Optionally, the memory 1420 includes a non-transitory computer-readable storage medium. The memory 1420 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1420 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the first terminal 1400 (such as audio data, phone book), etc.
[0184] The touch screen 1430 is a display component for displaying a user interface. Optionally, the touch screen 1430 is a display screen with a touch function, through which the user can use any suitable object such as a finger or a stylus to perform touch operations on the touch screen 1430.
[0185] The touch screen 1430 is typically provided on the front panel of the first terminal 1400. The touch screen 1430 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen, or a foldable screen. The touch screen 1430 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which are not limited in this embodiment.
[0186] In addition, those skilled in the art will understand that the structure of the first terminal 1400 shown in the above drawings does not constitute a limitation of the first terminal 1400. The first terminal 1400 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the first terminal 1400 also includes an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module, and other components, which will not be detailed here.
[0187] An embodiment of the present application further provides a computer-readable medium, which stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the image processing method shown in the above embodiments.
[0188] An embodiment of the present application further provides a computer program product, which stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the image processing method shown in the above embodiments.
[0189] In some embodiments, the computer program product involved in the embodiments of the present application can be deployed and executed on a first terminal, or on multiple first terminals located at one location, or on multiple first terminals distributed at multiple locations and interconnected through a communication network. Multiple first terminals distributed at multiple locations and interconnected through a communication network can constitute a blockchain system.
[0190] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium accessible by a general-purpose or special-purpose computer.
[0191] The above are only alternative embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A method for image processing, characterized in that, The method includes: Display the current interface and detect the touch operation triggered in the current interface; When the touch operation is used to call out the drawing interface, superimpose and display the drawing interface on the upper layer of the current interface, and perform image drawing based on the drawing interface; Automatically copy the first image obtained by drawing to the clipboard.
2. The method according to claim 1, characterized in that The superimposing and displaying the drawing interface on the upper layer of the current interface includes: Superimpose and display a canvas on the upper layer of the current interface; Display the tool elements required for drawing on the canvas to obtain the drawing interface.
3. The method according to claim 2, wherein The superimposing and displaying the canvas on the upper layer of the current interface includes: Call the home page of the drawing application in the system, and superimpose and display the home page of the drawing application on the upper layer of the current interface; or, Call the home page of the handwriting application in the system, select the tool elements required for drawing from the toolbar in the home page of the handwriting application, and display the tool elements required for drawing in the home page of the handwriting application.
4. The method according to claim 1, wherein The superimposing and displaying the drawing interface on the upper layer of the current interface includes: Based on the size of the current interface, superimpose and display the drawing interface on the upper layer of the current interface, and the size of the drawing interface is the same as the size of the current interface; or, When the current interface is a chat interface, based on the size of the first area except the dialog box in the chat interface, superimpose and display the drawing interface on the upper layer of the first area, and the size of the drawing interface is the same as the size of the first area.
5. The method according to claim 1, characterized in that The method further includes: When the touch object used in the touch operation is the target object and the operation type of the touch operation is the target operation type, determine that the touch operation is used to call out the drawing interface.
6. The method according to claim 1, wherein The drawing interface includes a completion button; The automatically copying the first image obtained by drawing to the clipboard includes: In response to the completion button being triggered, generate a first image of the content drawn on the drawing interface, and automatically copy the first image to the clipboard.
7. The method according to claim 1, characterized in that The performing image drawing based on the drawing interface includes: Display a second image in the drawing interface; Modify the second image in the drawing interface.
8. The method according to claim 7, wherein The displaying a second image in the drawing interface includes: Obtain the second image drawn based on the drawing interface last time, and display the second image in the drawing interface; or, When the current interface is a chat interface, obtain the second image most recently shared in the chat interface, and display the second image in the drawing interface; or, When the current interface is a chat interface, obtain the chat content of the chat interface, analyze the chat content to obtain intent information, obtain the second image to be discussed in the intent information, and display the second image in the drawing interface; or, Display multiple second images in the drawing interface, determine the selected second image among the multiple second images, and display the selected second image in the drawing interface.
9. The method according to claim 1, characterized in that The drawing interface is a mask; The superimposing and displaying the drawing interface on the upper layer of the current interface includes: Overlay and display the mask on the upper layer of the current interface. The transparency of the mask is not less than a preset transparency, and the preset transparency is the adjacent transparency through which the display content of the current interface can be displayed through the mask.
10. The method according to claim 1, wherein The current interface is a chat interface; The method further includes: When a paste instruction is received, paste the first picture into the dialog box of the chat interface to share the first picture with the peer user corresponding to the dialog box.
11. The method according to claim 1, characterized in that, The current interface is a search interface; The method further includes: When a paste instruction is received, paste the first picture into the search box of the search interface to perform a picture search based on the first picture.
12. An image processing device, characterized in that, The device includes: A display module, configured to display a current interface and detect a triggered touch operation in the current interface; An overlay module, configured to overlay and display a drawing interface on the upper layer of the current interface when the touch operation is used to call out the drawing interface; A drawing module, configured to perform picture drawing based on the drawing interface; A copying module, configured to automatically copy the first picture obtained by drawing to the clipboard.
13. A terminal, characterized in that, The terminal includes a processor and a memory. At least one program code is stored in the memory and is loaded and executed by the processor to implement the picture processing method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, At least one program code is stored in the storage medium and is loaded and executed by a processor to implement the picture processing method according to any one of claims 1 to 11.
15. A computer program product, characterized in that, The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the picture processing method according to any one of claims 1 to 11.
