Information display method and device for image recognition

By displaying multiple display options on the user interface and allowing the user to select, the problem of lack of flexibility in information display in the existing technology is solved, and personalized and flexible display of image recognition information is achieved.

CN118819366APending Publication Date: 2024-10-22ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411307869.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When existing object recognition applications push information to users, users cannot choose the content and type of information, resulting in a lack of flexibility in information display and difficulty in meeting user needs.

Method used

Provide an image recognition information display method that allows users to select different information types by displaying multiple display options in the user interface, including obtaining the image to be recognized, and displaying multiple display options in the user interface, one of which is highlighted Display and target information associated with the image.

Benefits of technology

The flexibility of information display is improved, allowing users to select different information types as needed to meet personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819366A_ABST
    Figure CN118819366A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an information display method and device for image recognition. A specific embodiment of the method comprises the steps of obtaining a to-be-recognized image; a plurality of display options are displayed in a user interface, a first display option in the plurality of display options is highlighted, and different display options correspond to different information types; and displaying target information corresponding to the first display option and the image on the user interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and more particularly, to a method and device for displaying information for image recognition. Background Art

[0002] Object recognition is an important application of computer vision technology. With the continuous development of image processing technology, object recognition has been widely used in daily life. In practice, some applications can provide object recognition services for users. Usually, these applications can identify one or more specific categories of objects. For example, some applications can be used to identify animals, some applications can be used to identify plants, and some applications can be used to identify vehicles, etc. After identifying the object, the application can push information to the user. For example, push the recognition results, push the introduction and shopping information related to the recognition results, etc. This information is often displayed to the user in a pre-configured form, and the user cannot choose the content, type, etc. of the information. Therefore, the display of information lacks flexibility and is difficult to meet the needs of users. Summary of the invention

[0003] The embodiments of this specification describe an information display method for image recognition, which allows users to select different information types for information display as needed, thereby improving the flexibility of information display.

[0004] According to a first aspect, there is provided an information display method for image recognition, comprising: acquiring an image to be recognized; displaying multiple display options in a user interface, wherein a first display option among the multiple display options is highlighted, and different display options correspond to different information types; and displaying target information in the user interface, wherein the target information is associated with the first display option and the image.

[0005] According to a second aspect, there is provided an information display method for image recognition, which is executed by a server, and includes: receiving an image to be recognized from a client; pushing multiple display options to the client, wherein different display options correspond to different information types, and the multiple display options are used for display on a user interface, and the first display option among the multiple display options is set as a highlighted display option; obtaining target information to be displayed corresponding to the first display option and the image; and sending the target information to the client.

[0006] According to a third aspect, there is provided another information display method for image recognition, which is executed by a client, and includes: sending an image to be recognized to a server; receiving multiple display options sent by the server for the image, wherein a first display option is set as a highlighted display option, and different display options correspond to different information types; displaying the multiple display options on a user interface, wherein a first display option among the multiple display options is highlighted; receiving target information to be displayed sent by the server, wherein the target information is determined based on the first display option; and displaying the target information on the user interface.

[0007] According to a fourth aspect, there is provided an information display device for image recognition, which is deployed on a server side and includes: a receiving unit, configured to receive an image to be recognized from a client side; a pushing unit, configured to push multiple display options to the client side, wherein different display options correspond to different information types, and the multiple display options are used to be displayed on a user interface of the client side, and a first display option among the multiple display options is set as a highlighted display option; an acquiring unit, configured to acquire target information to be displayed corresponding to the first display option and the image; and a sending unit, configured to send the target information to the client side.

[0008] According to the fifth aspect, another information display device for image recognition is provided, which is deployed on a client and includes: an image sending unit, configured to send an image to be recognized to a server; a display option receiving unit, configured to receive multiple display options sent by the server for the image, wherein the first display option is set as a highlighted display option, and different display options correspond to different information types; a display unit, configured to display the multiple display options on a user interface, wherein the first display option among the multiple display options is highlighted; a target information receiving unit, configured to receive target information to be displayed sent by the server, wherein the target information is determined based on the first display option; and a target information display unit, configured to display the target information on the user interface.

[0009] According to a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method described in any implementation of the first aspect or the second aspect.

[0010] According to the seventh aspect, a computing device is provided, comprising a memory and a processor, wherein an executable code is stored in the memory, and when the processor executes the executable code, the method described in any implementation manner in the first aspect or the second aspect is implemented.

[0011] According to the information display method and device for image recognition provided by the embodiments of this specification, when the client performs image recognition, multiple display options are displayed on the user interface for the user to choose from, the target display option selected by the user or the default important target display option is highlighted, and the target information corresponding to the target display option and the image is displayed. In this way, the user can select different information types for information display as needed, which improves the flexibility of information display. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A schematic diagram showing an application scenario in which the embodiments of this specification can be applied; Figure 2 An interactive diagram showing an information display method for image recognition in an embodiment of this specification; Figure 3 A schematic diagram showing an example of setting different display options for different categories in an embodiment of this specification; Figure 3 (a) is a schematic diagram showing a humorous sentence related to cactus in an embodiment of this specification; Figure 3 (b) is a schematic diagram showing an emotional sentence related to cactus in an embodiment of this specification; Figure 3 (c) is a schematic diagram showing a knowledge sentence related to cactus in an embodiment of this specification; Figure 3 (d) is a schematic diagram showing a sentence related to a hairstyle of a human face in an embodiment of this specification; Figure 3 (e) is a schematic diagram showing sentences related to facial beauty in an embodiment of this specification; Figure 4 A schematic diagram showing the invocation of a generative model to generate information when the target category is the first category or the second category in an embodiment of this specification; Figure 5 A schematic diagram showing feedback of information to a client according to a target service option selected by a user in an embodiment of this specification; FIG6 (a) shows a schematic diagram of a process of generating target information based on an image in an embodiment of this specification; FIG6 ( b ) is a schematic diagram showing target information displayed on a user interface of a client in an embodiment of this specification; Figure 7 A flowchart showing an information display method for image recognition in an embodiment of this specification is shown. Figure 8 A schematic block diagram of an information display device for image recognition in an embodiment of this specification is shown; Fig. 9 A schematic block diagram of an information display device for image recognition in an embodiment of this specification is shown. DETAILED DESCRIPTION

[0013] The technical solution provided in this specification is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the relevant inventions are shown in the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments of this specification and the features in the embodiments can be combined with each other.

[0014] As mentioned above, when some existing object recognition applications push information to users, users are often unable to choose the content, type, etc. of the pushed information. Therefore, the display of information lacks flexibility and is difficult to meet user needs.

[0015] To this end, the embodiments of this specification provide an information display method for image recognition, which can improve the flexibility of information display and meet user needs. Figure 1 FIG. 1 is a schematic diagram showing an application scenario in which the embodiments of this specification can be applied. Figure 1 As shown, in Figure 1 In the application scenario shown, the user can send an image 103 to be identified to the server 102 through the client 101 installed on the terminal device. Based on the image 103, the server 102 can push three display options to the client 101. Here, different display options can correspond to different information types. The three display options in this example can correspond to the three information types of "knowledge", "humor" and "emotion", respectively. The client 101 can display the above three display options on the user interface, among which the display option corresponding to "humor" is highlighted. The server 102 can obtain the target information to be displayed with the information type of "humor" related to the recognition result of the image 103. For example, the target information may include some humorous and interesting stories, facts, etc. related to the recognition result.

[0016] Continue to see Figure 2 , Figure 2 An interactive diagram of an information display method for image recognition according to an embodiment is shown. Figure 2 The interaction diagram shown may include a server and a client, and the interaction diagram may include the following S201-S205, specifically: S201: The client obtains an image to be identified.

[0017] S202: The client sends an image to be recognized to the server.

[0018] In this embodiment, the client can obtain the image to be identified in a variety of ways, for example, it can be obtained from the Internet, it can also be obtained from a local database, and it can also be obtained by calling an image acquisition device (for example, a camera). For example, the user can call a camera through the client to collect the image to be identified. After that, the client can send the image to be identified to the server. Here, the image to be identified can be an image containing various objects (for example, animals, plants, faces, objects, etc.).

[0019] S203, the server pushes multiple display options to the client, including a first display option set to be highlighted, wherein the display option is a control for the user to select.

[0020] In this embodiment, after receiving the image to be identified, the server can determine multiple display options based on the image. For example, multiple display options can be pre-set, so that after receiving the image, the multiple display options are pushed to the client. Here, different display options can correspond to different information types, and each display option includes its corresponding information type. For example, the information type may include "knowledge", "humor", "emotion", etc. As an example, the information corresponding to the "knowledge" information type may refer to some information that can reflect rigorous and accurate content, the information corresponding to the "humor" information type may refer to some information that can reflect humor and funny information, and the information corresponding to the "emotion" information type may refer to some information that can reflect inner emotions.

[0021] Afterwards, the client may receive multiple display options sent by the server for the image, and display the multiple display options in the user interface. The client may display the information type corresponding to each display option in each display option (control) in the user interface. When displaying multiple display options, the client may highlight the first display option, which may be selected by the user.

[0022] In some implementations, before the server pushes multiple display options to the client, the method may further include: The server pushes multiple display options to the client, wherein the second display option is set as a highlighted display option. The client may display multiple display options on a user interface, wherein the multiple display options include the highlighted second display option.

[0023] The server receives the selection information of the first display option from the client. Specifically, the client may receive the user's click operation on the first display option and send information indicating the click operation to the server.

[0024] The server determines that the first display option is the option to be highlighted.

[0025] Specifically, the client may receive multiple display options sent by the server for the image. Among them, the second display option among the multiple display options may be preset by the server as a highlighted display option. That is, when pushing multiple display options to the client, the server may default to highlighting a second display option. If the user feels that the default display option does not meet his needs, he may switch the display option.

[0026] Specifically, first, the client may display multiple display options in the user interface, wherein the multiple display options include a highlighted second display option. Then, the client may receive a selection operation (e.g., click) of the user on the first display option. In response to the selection operation, the client cancels the highlighting of the second display option in the user interface and highlights the first display option. It is understandable that when the user switches the display option in the user interface, the client may send identification information of the switched, highlighted display option to the server.

[0027] In some implementations, Figure 2 The method shown may also include the following steps 1) not shown in the figure, specifically: Step 1) Identify the target category corresponding to the subject of the image.

[0028] In this implementation, after receiving the image sent by the client, the server can identify the image and obtain the target category corresponding to the subject in the image. Here, the subject may refer to the main object in the image. In practice, the image may contain one object or multiple objects. In the case where the image contains only one object, the object can be used as the subject in the image. In the case where the image contains multiple objects, the object with the largest occupied area can be used as the subject in the image. For example, suppose an image contains three objects, namely: a cat, a display and a mouse, among which the cat occupies the largest area, then the cat can be used as the subject in the image. As an example, the server can detect the image and detect the objects contained in the image. When there are multiple objects, the subject is determined from the multiple objects according to the occupied area. Then, the subject is identified to determine the category to which the subject belongs. Here, the categories may include animals, pets, plants, faces, food and other categories.

[0029] Based on this, the pushing of multiple display options to the client in the above step S203 can be specifically implemented as follows: pushing multiple display options corresponding to the target category to the client.

[0030] In this example, since different categories have different characteristics, different display options may be pre-configured for different categories in order to adapt to different categories. In other words, the multiple display options pushed by the server to the client may correspond to the categories of the subject in the image.

[0031] like Figure 3 As shown, Figure 3 A schematic diagram showing an example of setting different display options for different categories. Figure 3 In the example shown, the categories may include a general category, a plant category, a pet category, a face category, and the like.

[0032] Among them, the general category can be configured with three display options of "knowledge", "humor" and "emotion". These three display options are also display options available to other categories. Among them, the "knowledge" display option corresponds to the "knowledge" information type, and the information corresponding to the "knowledge" information type may refer to some information that can reflect rigorous and accurate content. The "humor" display option corresponds to the "humor" information type, and the information corresponding to the "humor" information type may refer to some information that can reflect humor and funny things. The "emotion" display option corresponds to the "emotion" information type, and the information corresponding to the "emotion" information type may refer to some information that can reflect inner emotions.

[0033] The plant category can be configured with "knowledge", "humor" and "emotion" accordingly.

[0034] The pet category may be configured with multiple display options such as "care", "diary", "knowledge", "humor", and "emotion". As an example, the "care" display option may correspond to the "care" information type, and the information corresponding to the "care" information type may refer to some information that can reflect the care of the pet. The "diary" display option corresponds to the "diary" information type, and the information corresponding to the "diary" information type may refer to some information that can reflect the growth log of the pet.

[0035] The face category can be configured with multiple display options such as "hairstyle", "beauty", "personality", "knowledge", "humor", and "emotion". Among them, the "hairstyle" display option corresponds to the "hairstyle" information type, and the information corresponding to the "hairstyle" information type may refer to some information that can reflect the hairstyle corresponding to the face. The "beauty" display option corresponds to the "beauty" information type, and the information corresponding to the "beauty" information type may refer to some information that can reflect the beauty knowledge corresponding to the face. The "personality" display option corresponds to the "personality" information type, and the information corresponding to the "personality" information type may refer to some information that can reflect the personality of the person corresponding to the face.

[0036] Understandably, Figure 3The examples are merely illustrative and are not intended to limit the display options corresponding to each category. In practice, various display options may be configured for each category according to actual needs.

[0037] Through this implementation, different display options can be displayed to users for different categories, thereby meeting user needs.

[0038] S204: The client displays multiple display options on the user interface, wherein the first display option is highlighted.

[0039] Specifically, the client can display the acquired image in the user interface and display multiple display options below the image. The multiple display options can be in the form of buttons, which is not limited in the embodiments of this specification. For example, the client can display the first display option in a larger area or in a brighter color to highlight the first display option.

[0040] S205: The server obtains target information corresponding to the first display option and the image.

[0041] In this embodiment, by interacting with the client, the server can determine the first display option highlighted on the user interface of the client. Thus, the server can obtain the target information to be displayed corresponding to the first display option, and obtain the target information to be displayed corresponding to the first display option. The target information may include information related to the recognition result of the image, and the information type is the information type corresponding to the first display option.

[0042] In some implementations, after pushing multiple presentation options to the client, the server receives identification information of a first presentation option from the client and determines that the first presentation option is the presentation option selected by the client.

[0043] In some implementations, the target information may include information generated by the server calling a generative model based on the target category and the information type corresponding to the first display option. Specifically, obtaining the target information corresponding to the first display option in S205 may specifically include the following steps a): Step a), based on the target category and the information type corresponding to the first display option, call the generative model to generate target information.

[0044] In this implementation, the generative model may be a large language model with a parameter quantity exceeding a certain value. The generative model is a machine learning model that can generate corresponding outputs according to input content. In this example, the generative model may be used to generate target information. For example, the generative model may be called based on the target category and the information type corresponding to the first display option, thereby generating information as the target information for display.

[0045] In practice, when the server calls the generative model to generate information, it can generate asynchronously by creating an asynchronous message. For example, the process of creating an asynchronous message and asynchronously processing the message may include steps I) to IV), specifically: Step I): the client sends identification information of the information type corresponding to the first display option to the server.

[0046] In step II), the server may return an acceptance result to the client for the identification information of the information type corresponding to the first display option sent by the client. The acceptance result may be used to notify the client that the request for generating information has been accepted. More specifically, the acceptance result instructs the client to highlight the first display option in the user interface.

[0047] Step III), the server generates an asynchronous message based on the identification information of the information type corresponding to the target category and the first display option, and stores the asynchronous message in a message queue. The asynchronous message can be used to call the generative mode to generate information, and the asynchronous message can include the identification information of the information type corresponding to the target category and the first display option.

[0048] Step IV), pull the asynchronous message from the message queue and process it.

[0049] Through this asynchronous processing, the highlighting of the first display option, multiple contents related to the first display option and the image, etc. are sequentially displayed in a streaming manner in the user interface, which conforms to the information acquisition habits of most users and provides a better user experience.

[0050] As an example, the above step a) may specifically include the following steps a1) and a2), specifically: Step a1), when the target category is the preset first category, the subject of the image is identified using a preset recognition model to obtain the name of the subject included in the image.

[0051] In this example, some categories can be pre-set as the first category in the server. In practice, the first category can be set according to actual needs. For example, the first category can include animals, pets, plants, objects, etc. In this way, when the target category is the first category, the subject in the image can be identified using the preset recognition model to obtain the subject name of the subject in the image. In practice, different recognition models can be configured for different first categories.

[0052] In some implementations, the step a1) of using a preset recognition model to recognize the subject of the image may include the following steps a1) and b1), specifically: Step 1) Call multiple recognition models in parallel to recognize the subject of the image, and obtain multiple recognition results of the subject included in the image.

[0053] Step 2) Based on multiple recognition results, the name of the subject is obtained.

[0054] Here, in order to improve the efficiency of recognition, multiple recognition models can be called in parallel, and the above multiple recognition models can be used to recognize the subject in the image, thereby recognizing multiple names of the subject. Then, the multiple recognition results are processed, for example, the multiple recognition results are statistically analyzed to obtain the name of the subject. Therefore, by recognizing the subject of the image through multiple recognition models, the accuracy of recognition can be improved.

[0055] Step a2) calling the generative model to generate target information according to the subject name and the information type corresponding to the first display option.

[0056] In this example, the generative model may be called using the subject name and the information type corresponding to the first presentation option to generate information as target information.

[0057] continue Figure 3 From the example shown, we can see that when the category is a plant category, the corresponding display options can include "humor", "emotion" and "knowledge". Here, taking the example that the first category includes a plant category, the subject name is "cactus", and the information type corresponding to the first display option is "humor", the generative model can generate some humorous sentences related to cactus as target information for display. For example, Figure 3 (a) shows a schematic diagram showing humorous sentences related to cacti. Figure 3 In the example shown, the humorous sentences related to cactus can include "Every day, I go out with full confidence. Who dares to get close?", "Even if I am not good at speaking, I can still hurt people's hearts.", "Come on, hurt each other!", "My philosophy of life: the more I prick people, the safer I feel.", etc. It is understandable. Figure 3 The humorous sentences shown in (a) are merely illustrative and not limiting.

[0058] As another example, if the first category includes plant categories, the subject name is "cactus", and the information type corresponding to the first display option is "emotion", the generative model can generate some emotional sentences related to cactus as target information for display. Figure 3 (b) shows a schematic diagram showing emotional sentences related to cactus. Figure 3In the example shown in (b), the emotional sentences related to cactus may include "In the desolate world, I grow alone, and only I understand my strength.", "The seemingly hard appearance is actually to cover up the loneliness and fragility in the heart.", "Every thorn is a defense, and every defense is a heartbreak.", "I am a lonely cactus, waiting for the rain that may never come." and so on. Figure 3 The emotional sentences shown in (b) are merely illustrative and not limiting.

[0059] As another example, if the first category includes plant categories, the subject name is "cactus", and the information type corresponding to the first display option is "knowledge", the generative model can generate some knowledge sentences related to cactus as target information for display. Figure 3 (c) shows a schematic diagram showing knowledge sentences related to cactus. Figure 3 In the example shown in (c), the knowledge sentences related to cactus may include "Cactus belongs to the Cactaceae family and grows widely in deserts and arid areas.", "Cactus has special adaptability and can survive in extremely arid environments. Their spherical or columnar structure reduces the surface area and reduces water evaporation.", "The thorns of cactus are not only to prevent animals from foraging, they also help the plant block sunlight and reduce water evaporation. In addition, the thorns can capture dew in the air at night, providing an additional source of water for the cactus." and so on. Figure 3 The knowledge sentences shown in (c) are merely illustrative and not limiting.

[0060] In practice, in order to improve the quality of information generated by the generative model, prompt engineering can also be used to guide the generative model to generate high-quality, accurate and targeted output information. Prompt engineering can guide the generative model to produce better results that meet expectations by constructing more professional input information. For example, a prompt can be constructed to guide the generative model to generate targeted output information. As an example, the prompt can be a preset text. In this example, different prompts can be set for different information types. For example, for the "humor" information type, the prompt can be set to "Please help me generate some interesting knowledge", "Please generate some humorous sentences", etc. Based on this, the server can call the generative model according to the prompt corresponding to the information type corresponding to the subject name and the first display option to generate information as the target information. Through this implementation, the generative model can be called based on the subject name to generate information as the target information.

[0061] As another example, in a case where the target category is a preset second category, the server may call the generative model according to a prompt corresponding to the target category and the information type corresponding to the first display option.

[0062] In this example, some categories can be preset as the second category in the server, for example, the second category can include faces. In this way, when the target category is the second category, the server may no longer further identify the subject in the image, but use the target category and the prompt corresponding to the information type corresponding to the first display option to call the generative model to generate information as the target information. Taking the second category as a face, in this example, the specific name of the person corresponding to the face is no longer further identified, but the target category and the prompt are used to call the generative model.

[0063] continue Figure 3 From the example shown, it can be seen that when the category is a face category, the corresponding display options may include "hairstyle", "beauty", "personality", "knowledge", "humor", and "emotion". Here, taking the example that the second category includes a face category and the information type corresponding to the first display option is "hairstyle", the generative model can generate some sentences related to the hairstyle of the face as the target information for display. For example, Figure 3 (d) shows a schematic diagram showing sentences related to the hairstyle of a person’s face. Figure 3 In the example shown, the sentences related to the hairstyle of the human face may include "Side-swept bangs are a classic and timeless hairstyle choice. The bangs naturally tilt from the forehead to one side, forming an elegant sense of line", "If the hair is relatively fine, it is recommended to use a light root spray to increase the fluffy feeling and make the bangs look fuller and more stylish.", "If you want a more layered hairstyle, you can lightly highlight the bangs or the top." and so on. It is understandable that Figure 3 The sentence related to the hairstyle of a person's face shown in (d) is merely illustrative and not limiting.

[0064] As another example, taking the second category including the face category and the information type corresponding to the first display option as "beauty", the generative model can generate some sentences related to face beauty as target information for display. Figure 3 (e) shows a schematic diagram showing sentences related to facial beauty. Figure 3In the example shown, the sentences related to facial beauty can include "The skin on the face looks smooth and healthy, usually because of adhering to a daily skin care routine. Cleansing, moisturizing, and sun protection are basic steps.", "Well-groomed eyebrows can greatly improve the overall appearance. Eyebrow shaping according to the face shape and facial features can make facial expressions more vivid.", "Facial massage helps promote blood circulation and maintain skin elasticity and firmness.", "Exfoliation can remove dead skin cells, making the skin smoother and more translucent." and so on. It is understandable that Figure 3 The sentences related to facial beauty shown in (e) are merely illustrative and not limiting.

[0065] like Figure 4 As shown, Figure 4 A schematic diagram showing the calling of a generative model to generate information when the target category is the first category or the second category. Figure 4 The example shown may include steps 401 to 416, specifically: Step 401, the server may pull an asynchronous message from a message queue, the asynchronous message may be used to call a generative mode to generate information, and the asynchronous message may include identification information of the target category and the information type corresponding to the first display option.

[0066] Step 402: The server may receive the asynchronous message returned by the message queue.

[0067] Step 403: The server may determine the execution link according to the identification information of the information type corresponding to the first display option in the asynchronous message and the target category.

[0068] In this example, the execution link may include an execution link (one) for the first category and an execution link (two) for the second category. Wherein, when the target category is the first category, the execution link (one) may be determined as the link to be executed; when the target category is the second category, the execution link (two) may be determined as the link to be executed.

[0069] Specifically, the execution link (I) may correspond to the following steps 404 to 4012: Step 404: call the first recognition model to recognize the subject of the image and obtain a first recognition result.

[0070] Step 405: Receive a first recognition result fed back by the first recognition model.

[0071] Step 406: Call the second recognition model to recognize the subject of the image to obtain a second recognition result.

[0072] Step 407: Receive a second recognition result fed back by the second recognition model.

[0073] Step 408: Call the third recognition model to recognize the subject of the image to obtain a third recognition result.

[0074] Step 409: Receive the third recognition result fed back by the third recognition model.

[0075] It can be understood that the first recognition model, the second recognition model and the third recognition model have the same function, which is to recognize the subject of the image. In order to improve the execution efficiency, the server can call these three recognition models in parallel.

[0076] Step 4010, integrating the first recognition result, the second recognition result and the third recognition result to obtain the subject name of the subject in the image.

[0077] Step 4011, calling a generative model according to the subject name of the subject in the image and the information type corresponding to the first display option to generate information as target information.

[0078] Step 4012, receiving information from the generative model.

[0079] Execution link (II) may correspond to the following steps 4013 and 4014: Step 4013, calling the generative model according to the target category and the information type corresponding to the first display option to generate information as the target information.

[0080] Step 4014, receiving a message from the generative model.

[0081] Step 4015: Send information to the client according to the information received from the generative model. In practice, in order to shorten the information delay, the information can be continuously and real-time transmitted to the client in a streaming manner.

[0082] Step 4016, sending information indicating successful message consumption to the message queue.

[0083] In some implementations, the target information may also include at least one service option determined by the server based on the target category and the information type corresponding to the first display option. Specifically, the step of obtaining the target information to be displayed corresponding to the first display option in S205 may specifically include the following steps b), specifically: Step b) determining at least one service option to be pushed to the client according to the target category and the information type corresponding to the first display option.

[0084] In this implementation, the server can set different service options for different categories and information types. For example, for the "food" category and the "knowledge" information type, multiple service options such as shopping, encyclopedia, and health can be set, among which the service option corresponding to shopping can provide information related to food purchases, such as purchase links, etc., the service option corresponding to the encyclopedia can provide information related to food introductions, and the service option corresponding to health can provide information related to food health. For the "face" category and the "hairstyle" information type, a barber shop service option can be set, and the service option can provide, for example, the business information and address of the barber shop. For the "text" category and the "knowledge" information type, a translation service option can be set, and the translation service option can provide a link to a third party to use the service capabilities of a third party.

[0085] In this way, the server can push at least one service option to the client according to the target category and the information type corresponding to the first display option, so that the client can display it.

[0086] In some implementations, the above step b) may further include the following steps b1) and b2), specifically: Step b1), when the target category is the preset first category, the subject of the image is identified using a preset recognition model to obtain the name of the subject included in the image.

[0087] Step b2) determining at least one service option to be pushed to the client according to the subject name and the information type corresponding to the first display option.

[0088] In practice, the services corresponding to different types of subjects under the same category may be different. For example, the services corresponding to different types of cats and dogs under the "Pet" category may be different. In order to provide more accurate services, different service options can also be set for different subject names and information types. For example, for the "Pet" category, the subject is "dog", and the information type is "care", a service option for providing pet dog care can be set, and the service option can provide information such as the website and address of the pet store.

[0089] In some implementations, Figure 2 The method shown may also include the following steps (1) to (4) which are not shown in the figure, specifically: In step (1), the server may receive the selected target service option sent by the client.

[0090] In this implementation, the target service option may be a service option selected by the user based on at least one service option displayed by the client.

[0091] In step (2), the server may call the target service corresponding to the target service option according to the target service option.

[0092] For example, the subject name can be used to call the target service, so that the target service provides content related to the subject. For example, if the subject name is "green radish" and the target service is "shopping", the shopping service can be called using "green radish" and the shopping service provides information related to the purchase of green radish. It can be understood that the shopping service can be provided by the shopping platform.

[0093] In step (3), the server may receive content information corresponding to the target service options fed back by the target service.

[0094] Step (4) sends content information corresponding to the target service option to the client for display by the client.

[0095] like Figure 5 As shown, Figure 5 A schematic diagram showing information fed back to the client based on the target service option selected by the user. Figure 5 In the example shown, the multiple service options displayed by the client may include encyclopedia, shopping, medicine, translation, etc. Figure 5 The example shown may include steps 501 to 5014, specifically: Step 501: A user clicks one or more service options among a plurality of service options displayed by a client as target service options.

[0096] Step 502: The client sends a request for obtaining information to the server, wherein the request includes an identifier of a target service option.

[0097] Step 503: The server may determine an information acquisition link according to the identifier of the target service option.

[0098] It is understandable that different service options correspond to different information acquisition links. Specifically, the service option "encyclopedia" can correspond to an encyclopedia service that provides encyclopedia information, the service option "shopping" can correspond to a shopping service that provides shopping information, the service option "drugs" can correspond to a drug service that provides drug information, and the service option "translation" can correspond to a translation service that provides translation results.

[0099] Specifically, when the target service option is "encyclopedia", the information acquisition link may correspond to the following steps 504 and 505: In step 504, the server may send a request for obtaining encyclopedia content to the encyclopedia service according to the identifier of the target service option "encyclopedia". It is understood that the request may include information related to the identification of the subject in the image, for example, the subject category, subject name, etc.

[0100] Step 505: Receive the encyclopedia content returned by the encyclopedia service.

[0101] In practice, the user may select two or more service options as target service options as needed. For example, when the target service options include "encyclopedia" and "shopping", the information acquisition link may correspond to the following steps 506 to 509: In step 506, the server may send a request for obtaining encyclopedia content to the encyclopedia service according to the identifier of the target service option "encyclopedia".

[0102] Step 507: Receive the encyclopedia content returned by the encyclopedia service.

[0103] In step 508, the server may send a request for acquiring shopping information to the shopping service according to the identifier of the target service option "shopping".

[0104] Step 509: Receive shopping information returned by the shopping service.

[0105] When the target service option is "drugs", the information acquisition link may correspond to the following steps 510 and 511: Step 510: The server sends a request for obtaining drug information to the drug service according to the identifier of the target service option "drug".

[0106] Step 511, receiving the drug information returned by the drug service.

[0107] When the target service option is "translation", the information acquisition link may correspond to the following steps 512 and 513: Step 512: The server sends a request for obtaining a translation result to the translation service according to the identifier of the target service option "Translation".

[0108] Step 513: Receive the translation result returned by the translation service.

[0109] Step 514: the server sends the information received from the target service corresponding to the target service option to the client for display by the client.

[0110] In some other implementations, the target information may also include a detection frame corresponding to the subject. Based on this, the acquisition of the target information to be displayed corresponding to the first display option in S205 may include: the server acquires a detection frame corresponding to the subject of the image. Here, the detection frame may include an image corresponding to the subject. Thus, the detection frame containing the subject may be sent to the client for display by the client.

[0111] In addition, the server may also determine the subject name of the image and send the determined subject name to the client to be displayed in the user interface.

[0112] Back to Figure 2 Description, in Figure 2 In S206, the server sends target information to the client.

[0113] S207: The client displays the target information on the user interface.

[0114] In this embodiment, after the client receives the target information from the server, the target information may be displayed on the user interface for the user to view.

[0115] As shown in FIG6 (a) and FIG6 (b), FIG6 (a) shows a schematic diagram of the process of generating target information based on an image, and FIG6 (b) shows a schematic diagram of displaying target information on a user interface of a client. In the example shown in FIG6 (a), the client sends an image 601 containing an orange cat to the server, and the server performs subject detection. The server determines that the target category corresponding to the subject in the image 601 is "pet" through operations such as text detection, subject detection, interception of detection frame, and category recognition. After that, the server can determine to push multiple display options such as "nursing", "diary", "knowledge", "humor", and "emotion" to the client based on the target category "pet" and the display options pre-configured for each category. In addition, in this example, the detection frame corresponding to the orange cat can also be displayed on the user interface of the client, and the detection frame includes an image of the orange cat, which can be intercepted from the image sent by the client.

[0116] After multiple display options such as "nursing", "diary", "knowledge", "humor", and "emotion" are displayed on the client, the user can switch the display options according to their needs, and the switched display options can be highlighted. After switching, the client can send the display option selected by the client to the server. In this example, the display option selected by the client is "knowledge".

[0117] In this example, assuming that the target category "Pets" is the first category, the server can use multiple recognition models to identify the subject in the image, and integrate the subject recognition results to obtain the subject name "Orange Cat". After that, the server can call the generative model to generate information according to the subject name "Orange Cat" and the information type corresponding to the "Knowledge" display option. Among them, the information generated by the generative model can include a short summary and some interesting facts. In this example, the short summary can be "Orange cute master, fat but strong, the popular "Orange Seat" on the Internet endorses the cat planet", and interesting facts can include "Fur color changes with age", "Not all orange cats are fat, but they are famous for being easy to gain weight", "In ancient Egypt, orange cats were worshipped as gods", "Due to genetic reasons, orange cats are usually boys", etc. This information can be displayed in the user interface of the client.

[0118] At the same time, the server can also determine the service options according to the subject name "Orange Cat" and the information type corresponding to the "knowledge" display option, and push the service options to the client for display on the user interface. In this example, the pushed service option is "Encyclopedia". In this example, in order to shorten the information delay, the information can be continuously and real-time transmitted to the client by streaming.

[0119] At this time, the user interface display effect may be as shown in FIG6( b ), where multiple display options may be displayed in area 602 . Among them, the “knowledge” display option is highlighted, specifically, the “knowledge” display option is located in the center of area 602 and is displayed in an enlarged manner.

[0120] Afterwards, the user can select the service option "Encyclopedia" on the user interface shown in Figure 6 (b). Since a service decision is pre-made in the server, and the service decision can set each service option and the corresponding information acquisition link, information is obtained according to the service option "Encyclopedia" selected by the user and the service decision, and the client displays the content information corresponding to the service option "Encyclopedia".

[0121] It can be understood that the type, content, location, etc. of the information displayed on the user interface shown in Figure 6 (b) is merely illustrative and not a limitation on the type, content, location, etc. of the information displayed on the user interface. In practice, the type, content, location, etc. of the information displayed on the user interface can be set according to actual needs.

[0122] According to another embodiment, an information display device for image recognition is provided. The information display device for image recognition can be deployed on a server.

[0123] Although the information display method in the embodiments of this specification is described above from the perspective of the interaction between the client and the server, it can be understood that in the embodiments of this specification, it is not limited to executing the above-mentioned image recognition method by the interaction between the client and the server, and any computing device can also perform image recognition and display corresponding information by the method in the embodiments of this specification.

[0124] The method of the embodiment of this specification is described below from the perspective of interface display.

[0125] Figure 7 Flow chart of the information display method for image recognition in the embodiment of this specification.

[0126] like Figure 7 As shown, in S701, an image to be identified is obtained.

[0127] The method can be executed on any computing device, such as a user device, a client, or a server.

[0128] Taking a user device as an example, the user device can interact with the user through a user interface. The user interface includes, for example, a recognition control for performing image recognition. The user can click the recognition control to open the camera and capture the image to be recognized. As described above, the image to be recognized is not limited to being obtained by capturing, but can also be obtained by other means, which is not limited to this.

[0129] In S703, a plurality of display options are displayed in the user interface, wherein a first display option among the plurality of display options is highlighted, and different display options correspond to different information types.

[0130] After acquiring the image to be recognized, the user device may display a plurality of preset display options, wherein the preset target display option is highlighted. Similar to the above, the user device may also update the highlighted display option in the user interface after detecting the user's selection operation.

[0131] At S705 , target information is displayed on the user interface, where the target information is associated with the first display option and the image.

[0132] After displaying multiple display options, the user device may obtain target information associated with the first display option and the image, and display the target information in the user interface. The user device may obtain the target information in a variety of ways. For example, the user device may obtain the target information from the content data stored in the user device, or the user device may obtain the target information by downloading the target information from the network, or the user device may obtain the target information by connecting to a server, which is not limited to this.

[0133] In one embodiment, before displaying the plurality of presentation options in the user interface, the method further includes: Displaying the plurality of display options on the user interface, wherein a second display option among the plurality of display options is highlighted; The highlighting of the first display option among the multiple display options comprises: After detecting a user's selection operation on the first display option, the second display option is unhighlighted in the user interface, and the first display option is highlighted.

[0134] In one implementation, the plurality of display options correspond to target categories of the subject of the image.

[0135] In one embodiment, the target information includes: generating information based on the target category and the first display option through a generative model; and / or, At least one service option corresponding to the target category and the first display option.

[0136] In one implementation, the target category is a preset first category, and the target information includes: generating information based on the first display option and the subject name of the image by a generative model; and / or At least one service option corresponding to the first display option and the subject name of the image.

[0137] In one embodiment, the method further comprises: After detecting a user's selection operation on a target service option, content information corresponding to the target service option is displayed.

[0138] Figure 8 FIG. 1 is a schematic block diagram of an information display device for image recognition according to an embodiment. Figure 8 As shown, the information display device 800 for image recognition includes: a receiving unit 801, configured to receive an image to be recognized from a client; a pushing unit 802, configured to push multiple display options to the client, wherein different display options correspond to different information types, and the multiple display options are used to be displayed on the user interface of the client, and the first display option among the multiple display options is set as a highlighted display option; an acquiring unit 803, configured to acquire target information to be displayed corresponding to the first display option and the image; and a sending unit 804, configured to send the target information to the client.

[0139] In some optional implementations of this embodiment, the device 800 also includes: an identification unit (not shown in the figure), configured to identify the target category corresponding to the main body of the image; and the push unit 802 is further configured to: push multiple display options corresponding to the target category to the client, wherein different categories are pre-configured with different display options.

[0140] In some optional implementations of this embodiment, the acquisition unit 803 includes: a calling unit (not shown in the figure), configured to call a generative model to generate the target information based on the target category and the information type corresponding to the first display option.

[0141] In some optional implementations of the present embodiment, the calling unit includes: a name recognition unit (not shown in the figure), configured to: when the target category is a preset first category, use a preset recognition model to identify the subject of the image to obtain the name of the subject included in the image; a model calling unit (not shown in the figure), configured to: call the generative model according to the subject name and the information type corresponding to the first display option, and generate the target information.

[0142] In some optional implementations of this embodiment, the name recognition unit is further configured to: call multiple recognition models in parallel to recognize the subject of the image, and obtain multiple recognition results of the subject included in the image; and obtain the name of the subject based on the multiple recognition results.

[0143] In some optional implementations of this embodiment, the target information includes at least one service option; and the acquisition unit 803 is further configured to: determine at least one service option for pushing to the client based on the target category and the information type corresponding to the first display option, wherein different categories and information types correspond to different service options.

[0144] In some optional implementations of the present embodiment, the determining of at least one service option for pushing to the client based on the target category and the information type corresponding to the first display option includes: when the target category is a preset first category, using a preset recognition model to identify the subject of the image to obtain the name of the subject included in the image; and determining at least one service option for pushing to the client based on the subject name and the information type corresponding to the first display option, wherein different service options correspond to different subject names and information types.

[0145] In some optional implementations of this embodiment, the device 800 also includes: a content information sending unit (not shown in the figure), configured to: receive a selected target service option sent by the client, wherein the target service option is a service option selected by the user based on the at least one service option displayed by the client; according to the target service option, call a target service corresponding to the target service option; receive content information corresponding to the target service option fed back by the target service; and send content information corresponding to the target service option to the client.

[0146] In some optional implementations of this embodiment, the target information also includes a detection frame corresponding to the subject; and the acquisition unit 803 is further configured to: acquire a detection frame corresponding to the subject of the image, wherein the detection frame includes the image corresponding to the subject.

[0147] In some optional implementations of this embodiment, the device 800 also includes: a highlighted option determination unit, configured to: push multiple display options to the client before pushing the multiple display options to the client, wherein the second display option is set as a highlighted display option; receive selection information of the first display option from the client; and determine that the first display option is the option to be highlighted.

[0148] According to another aspect of the embodiment, an information display device for image recognition is provided. The information display device for image recognition can be deployed on a client.

[0149] Fig. 9 FIG. 2 shows a schematic block diagram of an information display device for image recognition according to another embodiment. Fig. 9 As shown, the information display device 900 for image recognition includes: an image sending unit 901, configured to send an image to be recognized to a server; a display option receiving unit 902, configured to receive multiple display options sent by the server for the image, wherein the first display option is set as a highlighted display option, and different display options correspond to different information types; a display unit 903, configured to display the multiple display options on a user interface, wherein the first display option among the multiple display options is highlighted; a target information receiving unit 904, configured to receive target information to be displayed sent by the server, wherein the target information is determined based on the first display option; a target information display unit 905, configured to display the target information on the user interface.

[0150] In some optional implementations of this embodiment, the device 900 also includes: a click operation information sending unit, configured to: before receiving the multiple display options sent by the server for the image, receive the multiple display options sent by the server for the image, wherein the second display option is preset as a highlighted display option; display the multiple display options on the user interface, wherein the multiple display options include a highlighted second display option; receive a user's click operation on the first display option; and send information indicating the click operation to the server.

[0151] In some optional implementations of this embodiment, the multiple display options correspond to categories of the main body of the image.

[0152] In some optional implementations of this embodiment, the target information includes: information generated by the server calling a generative model based on the target category and the information type corresponding to the first display option; and / or at least one service option determined by the server based on the target category and the information type corresponding to the first display option.

[0153] According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute Figure 2 The method described.

[0154] According to another embodiment, there is also provided a computing device, comprising a memory and a processor, wherein the memory stores an executable code, and when the processor executes the executable code, Figure 2 The method described.

[0155] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0156] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0157] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An information display method for image recognition, comprising: Obtain an image to be recognized; Displaying a plurality of display options in a user interface, and highlighting a first display option among the plurality of display options, wherein different display options correspond to different information types; Target information corresponding to the first display option and the image is displayed on the user interface.

2. The method according to claim 1, wherein: Before displaying the plurality of presentation options in the user interface, the method further includes: Displaying the plurality of display options on the user interface, wherein a second display option among the plurality of display options is highlighted; The highlighting of the first display option among the multiple display options comprises: After detecting a user's selection operation on the first display option, the second display option is unhighlighted in the user interface, and the first display option is highlighted.

3. The method according to claim 1, wherein: The plurality of display options correspond to target categories of the subject of the image.

4. The method according to claim 3, wherein: The target information includes: generating information based on the target category and the first display option through a generative model; and / or, At least one service option corresponding to the target category and the first display option.

5. According to the method of claim 3, the target category is a preset first category, and the target information includes: generating information based on the first display option and the subject name of the image by a generative model; and / or, At least one service option corresponding to the first display option and the subject name of the image.

6. The method according to claim 4 or 5, further comprising: After detecting a user's selection operation on a target service option, content information corresponding to the target service option is displayed.

7. A method for displaying information for image recognition, executed by a server, comprising: Receive an image to be recognized from a client; Pushing multiple display options to the client, wherein different display options correspond to different information types, the multiple display options are used to be displayed on the user interface, and the first display option among the multiple display options is set as a highlighted display option; Acquire target information to be displayed corresponding to the first display option and the image; The target information is sent to the client.

8. The method according to claim 7, wherein: The method further comprises: Identifying the target category corresponding to the subject of the image; and, The pushing multiple display options to the client includes: A plurality of display options corresponding to the target category are pushed to the client, wherein different categories are pre-configured with different display options.

9. The method according to claim 8, wherein: The acquiring target information to be displayed corresponding to the first display option and the image includes: Based on the target category and the information type corresponding to the first display option, a generative model is called to generate the target information.

10. The method according to claim 9, wherein: The calling a generative model based on the target category and the information type corresponding to the first display option to generate the target information includes: In the case where the target category is a preset first category, using a preset recognition model to recognize the subject of the image to obtain the name of the subject included in the image; According to the subject name and the information type corresponding to the first display option, a generative model is called to generate the target information.

11. The method according to claim 8, wherein: The target information includes at least one service option; And, the acquiring target information to be displayed corresponding to the first display option and the image includes: At least one service option for pushing to the client is determined according to the target category and the information type corresponding to the first display option, wherein different categories and information types correspond to different service options.

12. The method according to claim 11, wherein: The determining, according to the target category and the information type corresponding to the first display option, at least one service option for pushing to the client includes: In the case where the target category is a preset first category, using a preset recognition model to recognize the subject of the image to obtain the name of the subject included in the image; At least one service option for pushing to the client is determined according to the subject name and the information type corresponding to the first display option, wherein different subject names and information types correspond to different service options.

13. The method according to claim 12, wherein: The method further comprises: receiving a selected target service option sent by the client, wherein the target service option is a service option selected by a user based on the at least one service option displayed by the client; According to the target service option, calling a target service corresponding to the target service option; receiving content information corresponding to the target service option fed back by the target service; Sending content information corresponding to the target service option to the client.

14. The method according to claim 8, wherein: The target information also includes a detection frame corresponding to the subject; and the obtaining of the target information to be displayed corresponding to the first display option and the image includes: A detection frame corresponding to a subject of the image is obtained, wherein the detection frame includes an image corresponding to the subject.

15. The method according to claim 7, before pushing a plurality of presentation options to the client, the method further comprises: Pushing multiple display options to the client, wherein the second display option is set as a highlighted display option; receiving, from the client, selection information of the first display option; Determine the first display option as the option to be highlighted.

16. A method for displaying information for image recognition, executed by a client, comprising: Send the image to be recognized to the server; receiving a plurality of display options sent by the server for the image, wherein a first display option is set as a highlighted display option, and different display options correspond to different information types; Displaying the plurality of display options on a user interface, wherein a first display option among the plurality of display options is highlighted; receiving target information to be displayed sent by the server, wherein the target information is determined based on the first display option; The target information is displayed on the user interface.

17. A computing device comprising a memory and a processor, characterized in that: The memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 16 is implemented.

Citation Information

Patent Citations

  • Image recognition method, device, equipment, storage medium and computer program product

    CN113239889A

  • Interaction method and device, electronic equipment and readable storage medium

    CN113835594A

  • Display device and image recognition method

    CN114390329A

  • Target display method and device for augmented reality, equipment and storage medium

    CN116561451A

  • Recommendation method and apparatus, and device, storage medium and computer program product

    WO2023241321A1