Processing method and device
By obtaining the label information corresponding to the image and its identification results, and determining the display position of the label information, the problem of poor image and label information in the existing technologies has been solved, and more intuitive user experience and interaction are realized.
Patent Information
- Application Number
- CN202411442385.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-01-28
AI Technical Summary
The existing interactive schemes of image processing and recognition results cannot meet user needs, especially in terms of the association and display of images with label information.
Provide a processing method and device that obtains the label information corresponding to the image and its recognition results, and determines the display position of the label information based on the image or recognition result to achieve the associated and intuitive display of the image and the label information.
Enhance the interaction between users and the system, improve the user experience, and more intuitively understand the connection between the image and the label information.
Smart Images

Figure CN119379976A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to, but is not limited to, the field of computer technology, and in particular to a processing method and device. Background Art
[0002] Existing interactive solutions for image processing and recognition results cannot meet user needs. Summary of the invention
[0003] The embodiment of the present application provides a processing method and device, and the technical solution of the embodiment of the present application is implemented as follows:
[0004] In a first aspect, an embodiment of the present application provides a processing method for a first electronic device, the method comprising: obtaining a first image; obtaining first label information corresponding to a recognition result of the first image, the first label information being used to support obtaining a second image that satisfies similar conditions to the first image; determining a display position of the first label information based on the first image or based on the recognition result of the first image, the display position of the first label information being associated with the first image.
[0005] In a second aspect, an embodiment of the present application provides a processing device, comprising: a first acquisition module, configured to obtain a first image; a second acquisition module, configured to obtain first label information corresponding to a recognition result of the first image, the first label information being used to support obtaining a second image that satisfies similar conditions to the first image; a determination module, configured to determine a display position of the first label information based on the first image or based on the recognition result of the first image, the display position of the first label information being associated with the first image.
[0006] In a third aspect, an embodiment of the present application provides a first electronic device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the embodiment of the present application.
[0008] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0010] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0011] Figure 1 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 1 ;
[0012] Figure 2 A schematic diagram of displaying label information for generating a second image and a first image of a first size provided by an embodiment of the present application;
[0013] Figure 3 A schematic diagram showing first tag information provided in an embodiment of the present application;
[0014] Figure 4 A schematic diagram showing a first list provided in an embodiment of the present application;
[0015] Figure 5 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 2 ;
[0016] Figure 6 A schematic diagram of displaying a second image and an indication mark provided in an embodiment of the present application;
[0017] Figure 7 A schematic diagram of the structure of a processing device provided in an embodiment of the present application;
[0018] Figure 8 A schematic diagram of the structure of a first electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0020] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0021] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are merely to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0022] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the general understanding of those skilled in the art in the field to which the embodiments of the present application belong. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0023] The present application embodiment provides a processing method. Figure 1 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 1 ,like Figure 1 As shown, the method includes the following steps 101 to 103:
[0024] Step 101, obtaining a first image;
[0025] Step 102, obtaining first label information corresponding to the recognition result of the first image, wherein the first label information is used to support obtaining a second image that meets a similar condition to the first image;
[0026] Step 103: Determine a display position of the first label information based on the first image or based on a recognition result of the first image, wherein the display position of the first label information is associated with the first image.
[0027] It can be understood that in the embodiment of the present application, a first image is obtained, and first label information corresponding to the recognition result of the first image is obtained, the first label information is used to support the acquisition of a second image that meets similar conditions with the first image, and the display position of the first label is determined based on the first image or based on the recognition result of the first image, and the display position of the first label information is associated with the first image. In other words, not only the first label information supporting the generation of the second image is obtained, but also the first label information is displayed, and the display position of the first label information is associated with the first image. In this way, it is beneficial to intuitively reflect the association relationship between the first image and the first label information, thereby enhancing the interactivity between the user and the system, and further improving the user experience.
[0028] It should be understood that in the embodiment of the present application, there is no limitation on the first electronic device, and the first electronic device may be an ordinary electronic device or an electronic device with AI computing power.
[0029] The following describes further optional implementations and related terms of each of the above steps.
[0030] In step 101, a first image is obtained.
[0031] It should be understood that in the embodiments of the present application, the first image is not limited. In some embodiments, the first image includes one or more of the following: an image in an album of the first electronic device, an image displayed on a web page, an image of a certain frame in a video, an image obtained by screenshot, an image received in an instant messaging software, an image in a sharing software, etc.
[0032] In step 102, first label information corresponding to the recognition result of the first image is obtained, and the first label information is used to support obtaining a second image that meets a similar condition to the first image.
[0033] In some embodiments, the first tag information is used to control object information in the second image.
[0034] In some embodiments, the first tag information is key information corresponding to the first image obtained by the first electronic device through analysis of the first image. In other embodiments, the first tag information is key information corresponding to the first image obtained by the second electronic device through analysis of the first image, and the second electronic device sends the obtained first tag information to the first electronic device so that the first electronic device obtains the first tag information.
[0035] In some embodiments, the second image can be obtained based on part or all of the first tag information. That is, in the embodiment of the present application, it is supported to delete one or more of the first tag information and to edit / modify one or more of the first tag information.
[0036] In some embodiments, in response to obtaining a second image that satisfies similar conditions to the first image based on part or all of the first tag information, the method also includes: controlling the display position area corresponding to the first image, outputting a first motion display effect, the first motion display effect including the display information corresponding to the motion display effect rotating clockwise or counterclockwise; controlling the first tag information to rotate clockwise or counterclockwise, and / or gradually reducing the spacing of the display positions of the first tag information.
[0037] It can be understood that in the embodiment of the present application, in the process of generating the second image or transmitting the second image, that is, before the first electronic device displays the second image, in the display position area corresponding to the first image, the display information corresponding to the output dynamic display effect rotates clockwise or counterclockwise; the first label information is controlled to rotate clockwise or counterclockwise, and / or the spacing of the display position of the first label is gradually reduced. In this way, based on the display effect of the display interface, the user's attention is attracted, and the user's anxiety while waiting for the second image to be generated is alleviated, thereby improving the user experience.
[0038] It should be understood that in the embodiments of the present application, the display information corresponding to the dynamic display effect is not limited. In some embodiments, the display information includes one or more of the following: at least one color, animation content, cartoon content, etc.
[0039] As a possible implementation manner, the dynamic display effect is that a color set consisting of blue and purple rotates clockwise in a display position area corresponding to the first image.
[0040] In some embodiments, the method further includes: displaying tag information used to generate the second image, and / or displaying the first image of a first size; wherein the first size is smaller than a size of the first image.
[0041] It can be understood that in the embodiment of the present application, the label information used to generate the second image is displayed and / or the first image of the first size is displayed; in this way, the key information used to generate the second image is indicated, so that the user can understand the technology for generating the second image, which is beneficial for the user to better utilize the technology to generate the second image required by the user, thereby improving the user experience.
[0042] It should be understood that in the embodiment of the present application, there is no limitation on the display position of the tag information used to generate the second image, the display position of the first image of the first size, and the first size. The first size can be smaller than the original size of the first image.
[0043] As a possible implementation, Figure 2 As shown, 201 represents tag information for generating the second image, 202 represents a first image of a first size, that is, a reduced image of the first image, and a dotted line represents a display position of the first image before the image is reduced in size.
[0044] In some embodiments, the display area of the first motion display effect partially overlaps with the area occupied by the dotted line.
[0045] In step 103, a display position of the first tag information is determined based on the first image or based on a recognition result of the first image, and the display position of the first tag information is associated with the first image.
[0046] In some embodiments, determining a display position of the first tag information based on the first image includes: determining a display position of the first tag information based on a size and / or a display position of the first image.
[0047] For example, in some embodiments, if the first image is displayed in a moving manner on the display interface, the display position of the first label information changes with the first image. In other embodiments, if the size of the first image is small, the display position of the first label information is also small; correspondingly, if the size of the first image is large, the display position of the first label information is also large.
[0048] In some embodiments, determining the display position of the first label information based on the first image includes: obtaining display-related information of the first image; determining the display position of the first label information based on the display-related information of the first image and a preset label display rule; or, determining the display position of the first label information based on a recognition result of the first image includes: determining the object included in the first image and the position of the object in the first image based on the recognition result of the first image; and determining the display position of the first label information that satisfies a matching relationship with the object based on the position of the object in the first image.
[0049] It should be understood that in the embodiments of the present application, the display-related information of the first image is not limited. In some embodiments, the display-related information of the first image includes: the size of the first image, the display position of the first image, etc. The preset label display rules are also not limited. In some embodiments, the display rules of the preset labels include: arranging the label information on the left side of the first image, arranging the label information on the right side of the first image, arranging the label information alternately on the left and right sides of the first image, and arranging the label information evenly on the left and right sides of the first image.
[0050] As a possible implementation, Figure 3 As shown, 301 represents the first image, 302 represents the first label information, and the first label information 302 is evenly arranged on the left and right sides of the first image 301.
[0051] Exemplarily, in some embodiments, if the object included in the first image includes: a glass of milk; then, the label information "milk" is displayed near the image element "a glass of milk" in the first image.
[0052] In some embodiments, the processing method also includes: obtaining input information, wherein the input information can be used as second label information corresponding to the first image, and the second label information is used to cooperate with the first label information to obtain a second image that meets similar conditions with the first image; based on the display position of the first image or the first label information, determining the display position of the second label information.
[0053] It should be understood that in the embodiments of the present application, the second tag information is not limited. In some embodiments, the second tag information includes input new tag information, etc. In other embodiments, the second tag information is used to control the background information or style of the second image.
[0054] It should be understood that in the embodiment of the present application, the background information and style of the second image are not limited. The background information may be the main color of the second image, or the corresponding background elements, scenes, etc. The style may be any style, such as cartoon style, artistic style, realistic style, abstract style, ink style, retro style, illustration style, etc.
[0055] In some embodiments, if the user does not select background information of the second image, the background information of the second image can be determined based on the first image. In some embodiments, the background information of the first image is determined by analyzing the proportion of pixel values belonging to different order values in the background pixels of the first image.
[0056] In some embodiments, the method also includes responding to a first instruction, the first instruction is used to instruct display of a first list; wherein the first list includes multiple types of image styles; and responding to a second instruction, the second instruction is used to indicate the style type of the second image to be generated selected by the user.
[0057] As a possible implementation, Figure 4 As shown, 401 represents the current display window, 301 represents the first image, and when the user clicks the STYLE General button indicated by 402, the first list 403 is displayed.
[0058] In some embodiments, Figure 5 A schematic diagram of an implementation process of a processing method provided in an embodiment of the present application Figure 2 , including the following steps 501 to 503:
[0059] Step 501: output the first tag information to a second electronic device;
[0060] Step 502, obtaining a second image output by the second electronic device that satisfies a similarity condition with the first image;
[0061] Step 503: Control the second image to be stored in a storage module of the first electronic device, and the second electronic device can read the information stored in the storage module.
[0062] It should be understood that in the embodiments of the present application, the first label information is not limited. The first label information may be the first label information corresponding to the recognition result of the first image; the first label information may also be the unmodified information in the first label information and the information after one or more items in the first label information are edited / modified, and / or the information after one or more items in the first label information are deleted.
[0063] It should be understood that in the embodiment of the present application, the second electronic device is an electronic device with AI computing capabilities.
[0064] It can be understood that in the embodiment of the present application, if the first electronic device is an electronic device without AI computing power, then the first electronic device can use the AI computing power of the second electronic device to generate the second image. In this way, the first electronic device can be transformed into an AI device, thereby maximizing the use efficiency and cost-effectiveness of the second electronic device and the first electronic device.
[0065] In some embodiments, if the first electronic device is an electronic device with AI computing power, if the power of the first electronic device is lower than the power threshold or the state of the first electronic device is a low-power device, but the user needs to generate images based on the first electronic device at this time, then the user's needs can be met by the second electronic device connected to the first electronic device. It should be understood that in the embodiments of the present application, the power threshold is not limited. The power threshold can be preset or modified according to user needs.
[0066] In some embodiments, the second tag information is output to a second electronic device so that the second electronic device generates a second image based on the first tag information and the second tag information.
[0067] In some embodiments, the second electronic device further generates a second image based on the first image. That is, the second electronic device generates the second image based on the first tag information and the first image; or, the second electronic device generates the second image based on the first tag information, the first image and the second tag information.
[0068] It should be understood that in the embodiment of the present application, the storage module of the first electronic device where the second image is stored is not limited. In some embodiments, the storage module of the first electronic device where the second image is stored is a storage module of a system album.
[0069] In the embodiment of the present application, “the second electronic device can read the information stored in the storage module” can be understood as the second electronic device and the first electronic device sharing the storage module.
[0070] As a possible implementation method, a first electronic device sends a first image to a second electronic device; the second electronic device analyzes the first image to obtain first tag information; the second electronic device sends the first tag information to the first electronic device; the first electronic device displays the first tag information, and the first electronic device supports modification / editing and deletion of one or more of the first tag information, supports adding new tag information, and supports selecting the style and background information of the second image to be generated; when a user determines the tag information for generating the second image, the first electronic device sends the tag information for generating the second image to the second electronic device, so that the second electronic device generates the second image based on the tag information determined by the user; when the second electronic device has generated one of the second images, it sends the image to the first electronic device, the first electronic device can display the received image, and control the image to be stored in a storage module of the first electronic device, and the second electronic device can read the information stored in the storage module.
[0071] In some embodiments, the method also includes: obtaining a second image, the second image being generated based on first label information corresponding to a recognition result of the first image; outputting an indicator mark, the number of the indicator marks being the same as the number of the second images and corresponding one-to-one, wherein a display state of the indicator mark matches a display state of the second image.
[0072] For the understanding of the “first tag information”, please refer to the above and will not be elaborated here.
[0073] In some embodiments, the indicator includes: a first indicator, a second indicator, and a third indicator; wherein the first indicator is used to indicate that the loaded second image is the currently displayed image; the second indicator is used to indicate an image that has been loaded but not displayed on the current display interface; and the third indicator is used to indicate the second image being loaded.
[0074] It should be understood that in the embodiment of the present application, there is no limitation on the specific forms of expression of the first indicator, the second indicator, and the third indicator, and the first indicator, the second indicator, and the third indicator can be different.
[0075] In some embodiments, the loaded second image is displayed, wherein the indicator corresponding to the displayed loaded second image is the first indicator.
[0076] As a possible implementation method, Figure 6 As shown, 601 represents the displayed loaded second image, 602 represents the first indication mark, 603 represents the second indication mark, and 603 represents the third indication mark.
[0077] In some embodiments, the third indicator may also be represented as a rotating small circle.
[0078] In some embodiments, part or all of the second image is used as the first image.
[0079] It should be understood that in the embodiment of the present application, part or all of the second image is used as the first image, that is, the generated second image can be regenerated as the first image, that is, the selected image is evolved.
[0080] It should be understood that in an embodiment of the present application, the user can select part or all of the second image and select the AI image processing option in the triggered function menu, and the first electronic device and the second electronic device implement the processing steps for the first image based on the image selected by the user and the selected processing option.
[0081] In some embodiments, if the user is not satisfied with the generated second image, the generated image can be regenerated based on the first image until the user is satisfied, which is beneficial to improving the user experience.
[0082] The following describes an exemplary application of the processing method provided in the embodiments of the present application in a practical scenario.
[0083] The present application provides a processing method. In some embodiments, the method is implemented by the following steps 1 to 9:
[0084] Step 1: The user uses the system-level AI recognition capability to select an image that appears on the screen (i.e., an example of the first image) and trigger a function menu, wherein the function menu includes one or more of the following: AI image generation, AI image expansion, background replacement, and AI clarity.
[0085] Step 2. When the cross-end AI device (i.e., an example of a second electronic device) is online, using the computing power of the cross-end AI device, the user can select image processing options in the relevant function menu, such as: AI image generation, AI image expansion, background replacement, AI clarity, etc.
[0086] It can be understood that in the embodiments of the present application, by calling the system-level AI computing power of cross-end AI devices, the user's existing ordinary devices can be transformed into AI devices, thereby enabling the user to realize the functions of AI devices based on ordinary devices.
[0087] Step 3: Display the image processing window according to the processing options selected by the user.
[0088] In some embodiments, if the processing option selected by the user is AI image generation, the window will automatically capture the selected image and analyze the key content in the image; the cross-end AI device generates the key content as text, which appears around the selected image as an editable label (i.e., an example of the first label information).
[0089] It can be understood that in the embodiment of the present application, the cross-end AI device generates suggested raw image keywords based on the selected image, helping the user to accurately describe the content of the selected image, thereby helping to lower the threshold for users to learn raw image instructions.
[0090] In step 4, users can freely modify or add or delete keywords, and select the desired image style.
[0091] Step 5, complete the user's AI image processing instructions within the window.
[0092] It can be understood that in the embodiment of the present application, images are recognized and processed from the screen of the system to reduce user operating costs.
[0093] Step 6: During the image generation process, the user is informed of the specific progress of the image generation. In other words, the prompt of the AI process is displayed while the image generation is waiting to be generated to inform the user of the AI processing progress.
[0094] Step 7, supports users to preview the generated partial images.
[0095] In some embodiments, if 50% of the images are loaded, the loaded 50% of the images are displayed first for the user to preview. For example, when the third and fourth images are loaded, the first and second images are displayed first.
[0096] Step 8 allows the user to regenerate the image and select the image for evolution.
[0097] Step 9, share the generated content: by sharing, copying, and dragging the image to the location where it needs to be applied.
[0098] It can be understood that in the embodiment of the present application, dragging and copying are used to use the generated image in a timely manner.
[0099] It can be understood that the processing method provided in the embodiment of the present application can produce the following beneficial effects:
[0100] (1) Maximize the efficiency and cost-effectiveness of AI equipment and ordinary equipment.
[0101] (2) Lower the learning threshold: Users no longer need to ponder over the commands / instructions for drawing pictures.
[0102] (3) Process visualization: Improve user anxiety about waiting time and make the process of AI backend technology transparent.
[0103] (4) Reducing the operational cost of users generating creative images (i.e., an example of the second image) using cross-end AI devices: users are not required to upload content; for example, if a user browses an image (i.e., an example of the first image) on a web page and wants to generate a creative image based on the image, the user does not need to first save the image locally and then upload the locally saved image to the AI software.
[0104] (5) Reduce the operating costs of users using the generated creative images and provide a faster and more direct sharing path.
[0105] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.; or, steps in different embodiments may be combined into a new technical solution.
[0106] Based on the foregoing embodiments, an embodiment of the present application provides a processing device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be an AI acceleration engine (such as NPU, etc.), GPU, central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA), etc.
[0107] Figure 7 A schematic diagram of the structure of the processing device provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the processing device 70 includes:
[0108] A first obtaining module 701 is configured to obtain a first image;
[0109] A second obtaining module 702 is configured to obtain first label information corresponding to the recognition result of the first image, wherein the first label information is used to support obtaining a second image that meets a similar condition to the first image;
[0110] The determination module 703 is configured to determine a display position of the first tag information based on the first image or based on a recognition result of the first image, wherein the display position of the first tag information is associated with the first image.
[0111] In some embodiments, determining the display position of the first tag information based on the first image includes: obtaining display-related information of the first image; determining the display position of the first tag information based on the display-related information of the first image and a preset tag display rule; or
[0112] In some embodiments, based on the recognition result of the first image, determining the display position of the first label information includes: determining the object included in the first image and the position of the object in the first image based on the recognition result of the first image; based on the position of the object in the first image, determining the display position of the first label information that satisfies a matching relationship with the object.
[0113] In some embodiments, the second acquisition module 702 is further configured to: obtain input information, where the input information can be used as second label information corresponding to the first image, and the second label information is used to cooperate with the first label information to obtain a second image that meets similar conditions as the first image; the determination module 703 is further configured to: determine the display position of the second label information based on the display position of the first image or the first label information.
[0114] Furthermore, in some embodiments, the first tag information is used to control object information in the second image, and the second tag information is used to control background information or style of the second image.
[0115] In some embodiments, the processing device 70 also includes a first control module, which is configured to: in response to obtaining a second image that satisfies similar conditions to the first image based on part or all of the first tag information, control the display position area corresponding to the first image, and output a first motion display effect, wherein the first motion display effect includes the display information corresponding to the motion display effect rotating clockwise or counterclockwise; control the first tag information to rotate clockwise or counterclockwise, and / or the spacing of the display positions of the first tag information gradually decreases.
[0116] In some embodiments, the processing device 70 also includes a third acquisition module and a first output module; wherein the third acquisition module is configured to obtain a second image, and the second image is generated based on first label information corresponding to the recognition result of the first image; the first output module is configured to output indication marks, and the number of the indication marks is the same as the number of the second images and corresponds one to one, wherein the display state of the indication mark matches the display state of the second image.
[0117] In some embodiments, the processing device 70 also includes a second output module, a third acquisition module and a second control module; wherein the second output module is configured to output the first tag information to a second electronic device; the third acquisition module is configured to obtain a second image output by the second electronic device that satisfies similar conditions to the first image; and the second control module is configured to control the storage of the second image in a storage module of the first electronic device, and the second electronic device can read the information stored in the storage module.
[0118] In some embodiments, the processing device 70 further includes a display module, wherein the display module is configured to: display the loaded second image.
[0119] In some embodiments, the processing device 70 further includes a display module, which is configured to: display tag information used to generate the second image, and / or display the first image of a first size; wherein the first size is smaller than a size of the first image.
[0120] In some embodiments, part or all of the second image is used as the first image.
[0121] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0122] It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0123] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable an electronic device (i.e., an example of a first electronic device) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0124] An embodiment of the present application provides an electronic device, Figure 8 A schematic diagram of the structure of a first electronic device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the electronic device (i.e., an example of a first electronic device) 80 includes a memory 801 and a processor 802. The memory 801 stores a computer program that can be executed on the processor 802. When the processor 802 executes the program, the steps in the method provided in the above embodiment are implemented.
[0125] It should be noted that the memory 801 is configured to store instructions and applications executable by the processor 802, and can also cache data to be processed or processed by the processor 802 and various modules in the electronic device 80, which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0126] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0127] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0128] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0129] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" or "in a possible implementation" or "example" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" or "in a possible implementation" or "example" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0130] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0131] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In the several embodiments provided in the present application, it should be understood that the disclosed equipment and devices, etc., can be implemented in other ways. The embodiments described above are merely illustrative. The features disclosed in the several product embodiments provided in the present application can be arbitrarily combined without conflict to obtain new product embodiments.
[0132] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A processing method, used in a first electronic device, comprising: obtaining a first image; Obtaining first label information corresponding to a recognition result of the first image, wherein the first label information is used to support obtaining a second image that satisfies a similar condition to the first image; A display position of the first tag information is determined based on the first image or based on a recognition result of the first image, and the display position of the first tag information is associated with the first image.
2. The method according to claim 1, wherein determining the display position of the first label information based on the first image comprises: Obtaining display related information of the first image; Determining a display position of the first label information based on the display related information of the first image and a preset label display rule; or, Determining a display position of the first tag information based on a recognition result of the first image includes: determining an object included in the first image and a position of the object in the first image based on a recognition result of the first image; Based on the position of the object in the first image, a display position of the first tag information that satisfies a matching relationship with the object is determined.
3. The method according to claim 1, further comprising: Obtaining input information, where the input information can be used as second label information corresponding to the first image, and the second label information is used to cooperate with the first label information to obtain a second image that satisfies a similarity condition with the first image; A display position of the second tag information is determined based on a display position of the first image or the first tag information. 4 . The method according to claim 3 , wherein the first tag information is used to control object information in the second image, and the second tag information is used to control background information or style of the second image.
5. The method according to claim 1, in response to obtaining a second image that satisfies a similarity condition with the first image based on part or all of the first tag information, the method further comprises: Controlling a display position area corresponding to the first image to output a first dynamic display effect, wherein the first dynamic display effect includes display information corresponding to the dynamic display effect rotating clockwise or counterclockwise; The first label information is controlled to rotate clockwise or counterclockwise, and / or the interval between display positions of the first label information is gradually reduced.
6. The method according to claim 1, further comprising: Obtaining a second image, where the second image is generated based on first label information corresponding to a recognition result of the first image; Outputting indication marks, the number of the indication marks being the same as the number of the second images and corresponding one to one, wherein the display state of the indication marks matches the display state of the second images.
7. The method according to claim 1, further comprising: outputting the first tag information to a second electronic device; Obtaining a second image output by the second electronic device that satisfies a similarity condition with the first image; The second image is controlled to be stored in a storage module of the first electronic device, and the second electronic device can read the information stored in the storage module.
8. The method according to claim 5, further comprising: Display tag information used to generate the second image, and / or display the first image of a first size; wherein the first size is smaller than a size of the first image.
9. The method according to any one of claims 1 to 8, further comprising: Part or all of the second image is used as the first image.
10. A processing device comprising: A first acquisition module configured to acquire a first image; A second obtaining module is configured to obtain first label information corresponding to the recognition result of the first image, wherein the first label information is used to support obtaining a second image that meets a similar condition to the first image; The determination module is configured to determine a display position of the first label information based on the first image or based on a recognition result of the first image, wherein the display position of the first label information is associated with the first image.