Image processing method and apparatus, electronic device, and computer readable storage medium
By directly accessing the interactive interface from the search interface for image processing, the cumbersome operation problem in existing technologies is solved, achieving efficient image processing and improving the user experience.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-11-26
- Publication Date
- 2026-06-04
Smart Images

Figure CN2024134605_04062026_PF_FP_ABST
Abstract
Description
Image processing methods and apparatuses, electronic devices, and computer-readable storage media Technical Field
[0001] This disclosure relates to the field of image processing technology, and in particular to image processing methods and apparatus, electronic devices, and computer-readable storage media. Background Technology
[0002] Image processing technology is the technique of analyzing, transforming, and enhancing digital images using computers. With the continuous advancement of computer technology, especially the improvement of computing power and the optimization of algorithms, image processing technology has been widely used in many fields.
[0003] In related technologies, users can not only search for images by entering text keywords, but also directly upload images to search engines to obtain relevant image search results. Users can browse the search results and even click on their favorite images to download. This method makes it easier for users to find the image information they need. Summary of the Invention
[0004] According to some embodiments of this disclosure, an image processing method is provided, comprising: displaying one or more images corresponding to search information input by a user on a search interface; displaying an interactive interface corresponding to the selected image in response to the user selecting an image from the one or more images; and displaying a target image obtained based on the interaction in response to the user's interaction with the selected image on the interactive interface.
[0005] According to other embodiments of this disclosure, an image processing apparatus is provided, comprising: an information display module configured to display one or more images corresponding to search information input by a user on a search interface; an interface display module configured to display an interactive interface corresponding to a selected image in response to the user selecting an image from the one or more images; and an image display module configured to display a target image obtained based on the interaction in response to the user's interaction with the selected image on the interactive interface.
[0006] According to other embodiments of the present disclosure, an electronic device is provided, including: a memory; and a processor coupled to the memory, the processor being configured to execute an image processing method according to some embodiments of the present disclosure based on instructions stored in the memory.
[0007] According to other embodiments of the present disclosure, a computer-readable storage medium is provided having computer program instructions stored thereon, which, when executed by a processor, implement the image processing method according to some embodiments of the present disclosure.
[0008] According to other embodiments of the present disclosure, a computer program product is provided, including computer program instructions that, when executed by a processor, implement the image processing method described in some embodiments of the present disclosure.
[0009] Other features, aspects, and advantages of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0010] Embodiments of this disclosure are described below with reference to the accompanying drawings. It should be understood that the drawings described below are merely illustrative of some embodiments of this disclosure and are not intended to limit the scope of this disclosure.
[0011] Figure 1 shows a schematic flowchart of an image processing method according to some embodiments of the present disclosure.
[0012] Figure 2 shows a schematic diagram of display images according to some embodiments of the present disclosure;
[0013] Figure 3 shows a schematic diagram of display images according to other embodiments of the present disclosure;
[0014] Figure 4 shows a schematic diagram of selected images according to some embodiments of the present disclosure;
[0015] Figure 5 shows a schematic diagram of selected images according to other embodiments of the present disclosure;
[0016] Figure 6 shows a schematic diagram of an interactive interface according to some embodiments of the present disclosure;
[0017] Figure 7 shows a block diagram of an image processing apparatus according to some embodiments of the present disclosure;
[0018] Figure 8 shows a block diagram of an electronic device according to some embodiments of the present disclosure;
[0019] Figure 9 shows a block diagram of an electronic device according to some other embodiments of the present disclosure.
[0020] It should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not necessarily drawn to actual scale. The same or similar reference numerals are used in the various drawings to denote the same or similar parts. Therefore, once an item is defined in one drawing, it may not be discussed further in subsequent drawings. Detailed Implementation
[0021] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. It should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein.
[0022] It should be understood that the various steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect. Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of components and steps set forth in these embodiments should be interpreted as merely exemplary and do not limit the scope of this disclosure.
[0023] As used in this disclosure, the term "comprising" and its variations are open-ended terms that include at least the following elements / features but do not exclude other elements / features, i.e., "including but not limited to". The term "based on" means "at least partially based on".
[0024] It should be noted that the concepts of "first," "second," etc., used in this disclosure are used only to distinguish different devices, modules, or units, and are not intended to define the order of functions performed by these devices, modules, or units or their interdependencies. Unless otherwise specified, the concepts of "first," "second," etc., are not intended to imply that the objects described herein must be in a given temporal, spatial, rank, or any other given order.
[0025] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0026] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0027] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals shall be provided for users to choose to authorize or refuse.
[0028] The embodiments of this disclosure are described in detail below with reference to the accompanying drawings; however, this disclosure is not limited to these specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. Furthermore, in one or more embodiments, specific features, structures, or characteristics can be combined in any suitable manner that will be apparent to those skilled in the art from this disclosure.
[0029] It should be understood that this disclosure does not limit how the image to be applied / processed is obtained. In some embodiments of this disclosure, it can be obtained from a storage device, such as internal memory or external storage device. In other embodiments of this disclosure, a camera component can be invoked to capture an image. It should be noted that the acquired image can be a captured image or a frame from a captured video, and is not particularly limited to these.
[0030] In the context of this disclosure, "image" can refer to any of a variety of images, such as color images, grayscale images, etc. It should be noted that the type of image is not specifically limited in the context of this specification. Furthermore, an image can be any suitable image, such as a raw image obtained by a camera device, or an image from which specific processing has been performed, such as preliminary filtering, dealiasing, color adjustment, contrast adjustment, normalization, etc. It should be noted that preprocessing operations may also include other types of preprocessing operations known in the art, which will not be described in detail here.
[0031] In related technologies, users can search for images and browse and download the search results. However, if they want to modify the searched images, they need to first select the image and download it, then open a local image editing application to process the downloaded image, or upload the downloaded image to an online processing tool. This modification method is cumbersome and inefficient.
[0032] This disclosure provides an image processing method, apparatus, electronic device, and computer-readable storage medium that can improve image processing efficiency.
[0033] Figure 1 shows a schematic flowchart of an image processing method according to some embodiments of the present disclosure.
[0034] As shown in Figure 1, the image processing method includes: in step S1, displaying one or more images corresponding to the search information input by the user on the search interface; in step S2, displaying an interactive interface corresponding to the selected image in response to the user selecting an image from one or more images; and in step S3, displaying the target image obtained based on the interaction in response to the user's interaction with the selected image on the interactive interface.
[0035] The search information entered by the user can be text, voice, or images.
[0036] One or more images corresponding to the search information (i.e., the search results for the search information) can be obtained, for example, through a visual model search or through metadata such as the image's file name, description, and tags. This disclosure does not limit this.
[0037] The search interface can display not only one or more images corresponding to the search query, but also the corresponding text. For example, based on a natural language processing model, search results can be analyzed to generate summaries, keywords, etc. If the user enters a question, an answer can also be generated based on the natural language processing model. The search interface can display one or more of the following: images, summaries, keywords, and answers.
[0038] Users can select their favorite images from one or more pictures by clicking or double-clicking. Once an image is selected, the user will be taken to an interactive interface for that image.
[0039] In the interactive interface, users can process selected images through dialogue and other interactive methods. The resulting image is the target image, which can be displayed in the interactive interface. Users can use the target image as source material, save it, or share it to social media platforms.
[0040] The image processing method of this embodiment can be executed on the client side or partially on the server side.
[0041] According to embodiments of this disclosure, after a user searches for an image, they can select the image and enter the interactive interface without downloading or uploading it. On the interactive page, the user can modify the image to obtain the desired material, thereby improving image processing efficiency and enhancing the user experience.
[0042] The following, with reference to Figures 2-3, describes a method for displaying one or more images corresponding to search information according to some embodiments of this disclosure.
[0043] As shown in Figure 2, the search interface can first display a summary text of the machine learning model's search results, or it can display a "Search Images" button. If the user clicks the "Search Images" button, it means the user wants to see the image search results, and an image search will be performed. As shown in Figure 3, after the images are found, they can be displayed.
[0044] Figure 4 shows a schematic diagram of selected images according to some embodiments of the present disclosure.
[0045] As shown in Figure 4, in response to a user selecting an image from one or more images, an interactive interface corresponding to the selected image is displayed, including: displaying a control corresponding to each of the one or more images; and in response to a user triggering an operation on a control corresponding to at least one of the one or more images, determining at least one image as the selected image.
[0046] As shown in Figure 4, an "interactive" control can be displayed for each image. If the user clicks the "interactive" control corresponding to an image, the interactive interface will open, allowing the user to interact with that image.
[0047] Initially, the "interactive" controls for the images can be hidden, displaying only the images themselves. When the user's mouse hovers over or selects an image, the "interactive" controls for that image are then revealed. This dynamic display of interactive elements not only improves page cleanliness but also provides immediate interactive functionality when needed, resulting in smoother operation and a better user experience.
[0048] In some embodiments, in response to a user selecting an image from one or more images, an interactive interface corresponding to the selected image is displayed, including: after determining at least one image as the selected image, displaying a confirmation interface, wherein the confirmation interface includes a confirmation control and a cancellation control; in response to a user triggering an operation on the confirmation control, navigating to the interactive interface corresponding to the selected image; and in response to a user triggering an operation on the cancellation control, returning to the search interface.
[0049] For example, users might accidentally select an interactive element corresponding to an image without actually wanting to interact with it. If the interactive interface is opened at this time, the user may need to spend extra time and effort to close or exit the interface, adding unnecessary steps. Furthermore, accidentally opening an interactive interface also consumes server resources and increases the server load.
[0050] Adding a confirmation dialog helps reduce unnecessary operations and resource waste. When a user clicks on the interactive entry point of an image, a confirmation dialog box first appears, asking the user if they are sure they want to perform the interactive operation. The confirmation dialog box may include a prompt message indicating that the interactive interface has been entered, and two buttons: "Confirm" and "Cancel". The user can choose "Confirm" to interact, or choose "Cancel" to return to the original interface.
[0051] In some embodiments, in response to a user selecting an image from one or more images, displaying an interactive interface corresponding to the selected image includes: providing a preview of the selected image in response to the user selecting an image from one or more images; displaying a control corresponding to the preview of the selected image; and displaying the interactive interface corresponding to the selected image in response to a user triggering an operation on the control corresponding to the preview of the selected image.
[0052] Figure 5 shows a schematic diagram of selected images according to other embodiments of the present disclosure.
[0053] As shown in Figure 5, when a user selects image 1 through clicking or other means on the search interface, a preview of image 1 is displayed. The preview of image 1 can be displayed in a zoomed-in or full-screen mode. Interactive controls for image 1 can be displayed on the preview.
[0054] Full-screen or zoomed-in displays can significantly improve image clarity, allowing users to see more details and providing a more immersive browsing experience, thus helping users determine whether they need to interact with the image.
[0055] The "Interactive" control can be displayed by default. Alternatively, it can be hidden by default to avoid interfering with the user's preview of Image 1, and only displayed when the user's mouse hovers over or over the display area of Image 1.
[0056] If the user interacts with the "interactive" control by clicking or other means, the interactive interface will open. If the user does not wish to enter the interactive interface, they can click on an area outside the display area of Image 1, or use other exit methods to return to the search interface.
[0057] In some instances, in response to a user selecting an image from one or more images, a search interface and an interactive interface corresponding to the selected image can be displayed simultaneously.
[0058] For example, users can interact directly with the selected image without leaving the search interface. This can be achieved by using a split-screen mode to simultaneously display the search interface and the interactive interface corresponding to the selected image.
[0059] After processing the selected image in the interactive interface, or if users choose to abandon the process, they can directly search for and select images again in the search interface, choose from the previously found images, or drag and drop images into the interactive interface for further interaction. In other words, users do not need to frequently switch between the search and interactive interfaces, and can conveniently complete both search and interaction operations on the same screen.
[0060] Figure 6 shows a schematic diagram of an interactive interface according to some embodiments of the present disclosure.
[0061] The interactive interface according to some embodiments of the present disclosure is described below with reference to Figure 6.
[0062] In some embodiments, in response to a user selecting an image from one or more images, displaying an interactive interface corresponding to the selected image includes: in response to a user selecting an image from one or more images, navigating to the interactive interface, wherein the interactive interface includes a first area and a second area, the first area displaying the selected image, and the second area displaying interaction information with the user.
[0063] As shown in Figure 6, the selected image is displayed in the first area, and the interaction information with the user is displayed in the second area. An input box can also be displayed for the user to input information and engage in dialogue. The user can input their image processing needs, allowing the dialogue model to assist in image processing. After modifying the image through interaction, the latest modified image can be displayed in the first area, allowing the user to determine whether further modifications are needed based on the current effect.
[0064] In some embodiments, in response to a user's interaction with a selected image on an interactive interface, displaying a target image obtained based on the interaction includes: in response to a user's interaction with a selected image on an interactive interface, performing at least one of image editing, image generation, image augmentation, and image text translation based on the selected image.
[0065] For example, users can flexibly select one or more image processing functions through convenient dialogue, including but not limited to image editing, image generation, image augmentation, and image-to-text translation, according to their specific needs.
[0066] By providing users with richer and more diverse options, the efficiency and personalization of image processing are improved, and the application needs in different scenarios are met. For example, if a user needs to edit an existing design sketch, adjusting colors, brightness, etc., they can choose the image editing function. If a user wants to obtain a more creative image, they can use the image generation function.
[0067] Interactive information can also include prompts to remind users which processing functions can be performed through interaction. For example, prompts may include: "Do you want to translate the text in the image into Chinese?", "Do you want to generate a new image using this image as a reference?", "Do you want to replace elements in the image?", etc.
[0068] The following section details methods for image editing, image generation, image augmentation, and image-to-text translation.
[0069] In some embodiments, in response to a user's interaction with a selected image on an interactive interface, displaying a target image obtained based on the interaction includes: in response to a user's editing request for the selected image, editing the selected image; and determining the edited image as the target image.
[0070] Users can crop, scale, and rotate images, as well as adjust brightness, contrast, saturation, and color temperature. They can also add filters such as black and white, vintage, and film effects. Furthermore, users can add special effects to their images.
[0071] For example, a user can input "Please reduce the brightness of the image to 50% of its current level". The dialogue model will then invoke the tool to reduce the brightness of the image and display the reduced-brightness image to the user. In other words, the user does not need to operate the tool to adjust the image; they only need to input the command to obtain the target image.
[0072] In some embodiments, in response to a user's interaction with a selected image on an interactive interface, displaying a target image obtained based on the interaction includes: displaying an editing tool; and determining the image obtained by the user editing the selected image using the editing tool as the target image.
[0073] For example, once a user enters the interactive interface, editing tools can be displayed directly on the screen. Alternatively, the user can input their tool requirements: "I want a paintbrush to edit the image." After the tools are displayed, the user can use them to modify the image and obtain the desired result. If the user selects a brush, eraser, or other smearing tool, they can move the mouse to the image display area and smear the image by holding down the left or right mouse button.
[0074] By providing users with the necessary tools, they can freely edit images according to their own creativity and ideas, thus achieving more personalized editing.
[0075] In some embodiments, in response to a user's interaction with a selected image on an interactive interface, displaying a target image obtained based on the interaction includes: receiving prompt text input by the user; and generating a target image using an image generation model based on the prompt text and the selected image.
[0076] For example, if a user selects an image of a tiger running on a grassland and inputs, "Please change the background to the ocean," then the image generation model can generate an image of a tiger running on the ocean as the target image.
[0077] Alternatively, without requiring user input of prompt text, the image generation model can directly extract the features of the image selected by the user, and based on these features, generate a new image similar in style and included elements, which can then be displayed as the target image.
[0078] In some embodiments, in response to a user's interaction with a selected image on an interactive interface, displaying a target image obtained based on the interaction includes: expanding the selected image to obtain the target image, wherein the target image includes the selected image and an expanded portion adjacent to the edge of the selected image.
[0079] For example, by using an image augmentation model, the edges of an image are augmented, and the edges of the selected image can be seamlessly connected with the adjacent augmented portions, so that the target image includes content that was not originally included in the selected image.
[0080] Furthermore, users can input text prompts to tell the model what content, which edge of the image, and which direction need to be expanded. For example, if the user selects an image that only includes the trunk of a tree and the ground, and the user inputs the prompt "Please expand the image upwards," the generated target image will also include the tree crown and the sky, resulting in a more complete image of the tree.
[0081] In some embodiments, in response to a user's interaction with a selected image on an interactive interface, displaying a target image obtained based on the interaction includes: in response to a user's translation request for first text in the selected image, providing second text in the selected image in a target language corresponding to the first text, thereby obtaining the target image.
[0082] For example, in response to a user's translation request, the text in the image is first detected, and then the detected text is translated using a translation model.
[0083] For example, if an image contains English text, and the user inputs "Please translate the text in this image into Chinese," the generated target image will include the Chinese translations corresponding to the original English text. In the target image, the second text can replace the first text, or it can be annotated next to the corresponding first text for easy comparison by the user.
[0084] In some embodiments, the number of selected images is greater than one, and in response to user interaction with the selected images on the interactive interface, displaying the target images obtained based on the interaction includes: in response to user batch interaction with the selected images on the interactive interface, batch processing the selected images.
[0085] For example, users can select multiple images at once as the images to be processed. For the selected images, batch cropping, adding elements, adding filters, and batch adjusting brightness, contrast, and saturation are possible. Furthermore, users can interactively merge and stitch multiple images to generate a new image, such as a long image for sharing on social media.
[0086] In some embodiments, the image processing method further includes: inserting a target image into a target article in response to a user's request for an image to be included in the article.
[0087] The target article can be automatically generated, for example, based on a machine learning model. After generating the target image, users can access the target article's editing interface, where the edited image can be directly inserted as an illustration. The target article's editing interface and user interface may belong to the same application.
[0088] In other words, the process of searching for and processing images to inputting articles can be completed without requiring users to download and upload either the selected images or the target images. This simplifies the process of adding images to articles and improves the efficiency of generating articles based on machine learning.
[0089] In some embodiments, the image processing method further includes: generating a target video based on the target image in response to a user's video generation request.
[0090] For example, if a user enters "Please generate a video based on the current image" in the interactive interface, the model will generate a video based on the target image and display it to the user, who can then watch and save the target video.
[0091] In other words, the process of searching for and processing images to generate videos can be completed without requiring users to download and upload either the selected images or the target images, thus simplifying the video generation process and improving video generation efficiency.
[0092] Figure 7 shows a block diagram of an image processing apparatus according to some embodiments of the present disclosure.
[0093] As shown in Figure 7, the image processing device 7 includes: an information display module 71, an interface display module 72, and an image display module 73.
[0094] The information display module 71 is configured to display one or more images corresponding to the search information input by the user on the search interface, and can be used to execute step S1 of Figure 1.
[0095] The interface display module 72 is configured to display an interactive interface corresponding to the selected image in response to a user selecting an image from one or more images, and can be used to perform step S2 of Figure 1.
[0096] The image display module 73 is configured to display the target image obtained based on the interaction in response to the user's interaction with the selected image on the interactive interface, and can be used to perform step S3 of Figure 1.
[0097] In some embodiments, the image processing apparatus 7 further includes an image matching module configured to insert a target image into a target article in response to a user's request for an image matching feature.
[0098] In some embodiments, the image processing apparatus 7 further includes a video generation module configured to generate a target video based on a target image in response to a user's video generation request.
[0099] Figure 8 shows a block diagram of an electronic device according to some embodiments of the present disclosure.
[0100] Memory 81 is used to store one or more computer-readable instructions. Memory 81 may include any combination of various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory, including but not limited to random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), and flash memory. Memory 81 may, for example, store operating systems, application programs, boot loaders, databases, and other programs, as well as various application programs and various data.
[0101] The processor 82 is configured to execute computer-readable instructions to implement the song selection method of any of the foregoing embodiments or the method of any of the foregoing embodiments. Specific implementations of each step of the method can be found in the above embodiments, and repeated details will not be elaborated here.
[0102] Processor 82 can be configured to perform the steps shown in Figure 1. Processor 82 can be various processing devices, such as a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The central processing unit (CPU) can be based on x86 or ARM architectures, etc.
[0103] The processor 82 and the memory 81 can communicate with each other directly or indirectly. For example, the processor 82 and the memory 81 can communicate via a network. The network can include wireless networks, wired networks, and / or any combination of wireless and wired networks. The processor 82 and the memory 81 can also communicate with each other via a system bus, which is not limited in this disclosure.
[0104] It should be noted that the components of the electronic device 8 shown in Figure 8 are exemplary and not limiting. The electronic device 8 may have other components depending on the specific application requirements. The processor 82 can control other components in the electronic device 8 to perform the desired functions.
[0105] Electronic device 8 can be implemented by software, firmware and / or hardware, and can be integrated into a device with the relevant application installed.
[0106] Figure 9 shows a block diagram of an electronic device according to some other embodiments of the present disclosure.
[0107] The electronic device 9 shown in Figure 9 can be a computer system with a dedicated hardware structure, capable of performing corresponding functions when relevant applications are installed.
[0108] Electronic devices include, but are not limited to, mobile terminals such as smartphones, laptops, personal digital assistants (PDAs), tablet computers (PCs), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), wearable devices, and fixed terminals such as digital televisions and desktop computers.
[0109] As shown in Figure 9, the Central Processing Unit (CPU) 91 executes various processes based on programs stored in Read-Only Memory (ROM) 92 or programs loaded from Storage Section 98 into Random Access Memory (RAM) 93. RAM 93 stores data required as needed when the CPU 91 executes various processes. The CPU is merely exemplary and can also be other types of processors, such as the various processors described above. ROM 92, RAM 93, and Storage Section 98 can be various forms of computer-readable storage media. It should be noted that although ROM 92, RAM 93, and Storage Section 98 are shown separately in Figure 9, one or more of them can be combined or located in the same or different memories or storage modules.
[0110] CPU 91, ROM 92 and RAM 93 are interconnected via bus 94. Input / output interface 95 is also connected to bus 94.
[0111] The following components are connected to the input / output interface 95: input section 96, such as a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output section 97, including displays such as cathode ray tube (CRT), liquid crystal display (LCD), speakers, vibrators, etc.; storage section 98, including hard disk, magnetic tape, etc.; and communication section 99, including network interface cards such as LAN cards, modems, etc. The communication section 99 allows communication processing to be performed via a network such as the Internet. It is readily understood that although some parts of the electronic device 9 shown in Figure 9 communicate via bus 94, they can also communicate via a network or other means, wherein the network can include wireless networks, wired networks, and / or any combination of wireless and wired networks.
[0112] As needed, drive 910 is also connected to input / output interface 95. Removable media 911, such as disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on drive 910 as needed, so that computer programs read from them can be installed into storage section 98 as needed.
[0113] When the above series of processes are implemented through software, the program constituting the software can be installed from a network such as the Internet or a storage medium such as a removable medium 911.
[0114] According to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product that, when run on a computer, causes the computer to perform the methods described in any of the foregoing embodiments. The computer program product includes computer instructions carried on a computer-readable medium, containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer instructions can be downloaded and installed from a network via communication section 99, or installed from storage section 98, or installed from ROM 92. When the computer program is executed by CPU 91, the methods of embodiments of this disclosure are performed.
[0115] According to some embodiments of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement an image processing method according to some embodiments of the present disclosure.
[0116] It should be noted that, in the context of this disclosure, a computer-readable medium can be a tangible medium that may contain or store programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0117] A computer-readable medium may be a computer-readable storage medium, a computer-readable signal medium, or any combination thereof.
[0118] Computer-readable storage media include, but are not limited to, systems, apparatuses, or devices that are electrical, magnetic, optical, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. Computer instructions are stored on the computer-readable storage medium that, when executed by a processor, implement the methods described in any of the foregoing embodiments.
[0119] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0120] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0121] In some embodiments, a computer program is also provided, comprising: instructions that, when executed by a processor, cause the processor to perform the methods described in any of the foregoing embodiments. For example, the instructions may be embodied in computer program code.
[0122] In embodiments of this disclosure, computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof. These programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0124] The functions described above can be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that can be used include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0125] While specific embodiments of this disclosure have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure. The scope of this disclosure is defined by the appended claims.
Claims
1. An image processing method, comprising: Based on the search information entered by the user, one or more images corresponding to the search information are displayed on the search interface; In response to the user selecting an image from the one or more images, an interactive interface corresponding to the selected image is displayed; In response to the user's interaction with the selected image on the interactive interface, the target image obtained based on the interaction is displayed.
2. The image processing method according to claim 1, wherein, The step of responding to the user's interaction with the selected image on the interactive interface and displaying the target image obtained based on the interaction includes: In response to the user's interaction with the selected image on the interactive interface, perform at least one of the following: image editing, image generation, image expansion, and image text translation based on the selected image.
3. The image processing method according to claim 1 or 2, wherein, If the number of selected images is greater than one, the step of displaying the target image obtained based on the interaction in response to the user's interaction with the selected images on the interactive interface includes: In response to the user's batch interaction with the selected images on the interactive interface, the selected images are processed in batches.
4. The image processing method according to any one of claims 1 to 3, wherein, The step of responding to the user selecting an image from the one or more images and displaying an interactive interface corresponding to the selected image includes: Displays a control corresponding to each of the one or more images; In response to the user's triggering operation on a control corresponding to at least one of the one or more images, the at least one image is determined as the selected image.
5. The image processing method according to claim 4, wherein, The step of responding to the user selecting an image from the one or more images and displaying an interactive interface corresponding to the selected image includes: After the at least one image is selected, a confirmation interface is displayed, which includes a confirmation control and a cancellation control. In response to the user's triggering operation on the confirmation control, the user is redirected to the interactive interface corresponding to the selected image. In response to the user's triggering of the cancel control, return to the search interface.
6. The image processing method according to any one of claims 1 to 5, wherein, The step of responding to the user selecting an image from the one or more images and displaying an interactive interface corresponding to the selected image includes: In response to the user selecting an image from the one or more images, a preview of the selected image is provided; Displays controls corresponding to the preview of the selected image; In response to the user's triggering operation on the control corresponding to the preview of the selected image, the interactive interface corresponding to the selected image is displayed.
7. The image processing method according to any one of claims 1 to 6, wherein, The step of responding to the user selecting an image from the one or more images and displaying an interactive interface corresponding to the selected image includes: In response to the user selecting an image from the one or more images, the search interface and the interactive interface corresponding to the selected image are displayed simultaneously.
8. The image processing method according to any one of claims 1 to 7, wherein, The step of responding to the user selecting an image from the one or more images and displaying an interactive interface corresponding to the selected image includes: In response to the user selecting an image from one or more images, the user is redirected to the interactive interface, wherein the interactive interface includes a first area and a second area, the first area displays the selected image, and the second area displays interaction information with the user.
9. The image processing method according to any one of claims 1 to 8, wherein, The step of responding to the user's interaction with the selected image on the interactive interface and displaying the target image obtained based on the interaction includes: In response to the user's request to edit the selected image, the selected image is edited; The edited image is selected as the target image.
10. The image processing method according to any one of claims 1 to 9, wherein, The step of responding to the user's interaction with the selected image on the interactive interface and displaying the target image obtained based on the interaction includes: Display editing tools; The image obtained by the user editing the selected image using the editing tool is identified as the target image.
11. The image processing method according to any one of claims 1 to 10, wherein, The step of responding to the user's interaction with the selected image on the interactive interface and displaying the target image obtained based on the interaction includes: Receive prompt text input by the user; The target image is generated using an image generation model based on the prompt text and the selected image.
12. The image processing method according to any one of claims 1 to 11, wherein, The step of responding to the user's interaction with the selected image on the interactive interface and displaying the target image obtained based on the interaction includes: The selected image is expanded to obtain a target image, wherein the target image includes the selected image and the expanded portion adjacent to the edge of the selected image.
13. The image processing method according to any one of claims 1 to 12, wherein, The step of responding to the user's interaction with the selected image on the interactive interface and displaying the target image obtained based on the interaction includes: In response to the user's request to translate the first text in the selected image, a second text in the target language corresponding to the first text is provided in the selected image, thereby obtaining the target image.
14. The image processing method according to any one of claims 1 to 13, further comprising: In response to the user's request for an image to be added to the article, the target image is inserted into the target article.
15. The image processing method according to any one of claims 1 to 14, further comprising: In response to the user's video generation request, a target video is generated based on the target image.
16. An image processing apparatus, comprising: The information display module is configured to display one or more images corresponding to the search information input by the user on the search interface; The interface display module is configured to display an interactive interface corresponding to the selected image in response to the user selecting an image from one or more images; The image display module is configured to display a target image obtained based on the user's interaction with the selected image on the interactive interface.
17. An electronic device comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the image processing method according to any one of claims 1 to 15 based on instructions stored in the memory.
18. A computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the image processing method according to any one of claims 1 to 15.
19. A computer program product comprising computer program instructions that, when executed by a processor, implement the image processing method according to any one of claims 1 to 15.