Image-based man-machine interaction method and device, instrument and storage medium

The image-based human-machine interaction method addresses the challenge of interpreting complex images by analyzing layout and content information, enhancing accuracy and user experience through advanced algorithms.

JP2024120045AActive Publication Date: 2024-09-03BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Application Number
JP2024099301
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-15
Filing Date
2024-06-20
Publication Date
2024-09-03
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Current image understanding techniques struggle to accurately interpret complex types of images commonly encountered in work situations, such as document screenshots, table screenshots, and flowcharts, leading to poor human-machine interaction experiences.

Method used

An image-based human-machine interaction method that involves acquiring images with multiple modality data, determining image layout and content information, and responding to user questions by analyzing the image layout and content information using advanced algorithms, including deep learning and machine learning techniques.

Benefits of technology

Improves the accuracy of image understanding and enhances the user experience by enabling more comprehensive information extraction and accurate response to user queries on complex images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024120045000001
    Figure 2024120045000001
Patent Text Reader

Abstract

To provide an image-based man-machine interaction method and device, instrument and a storage medium which can improve accuracy of question-and-answer by extracting layout information and content information from an image and improve a man-machine interaction experience of a user.SOLUTION: According to a method, an image to be analyzed is acquired, and image layout information and image content information of the image to be analyzed are determined; wherein the image to be analyzed comprises various types of modal data, the layout information represents the distribution condition of the image elements with the preset granularity in the image to be analyzed, and the content information represents the content expressed by the modal data in the image to be analyzed; in response to the acquired question information, the method determines response information corresponding to the question information according to the image layout information and the image content information; wherein the question information represents a question proposed by the user for the image to be analyzed, and the response information represents a reply answer corresponding to the question information.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the field of image processing in the field of artificial intelligence, and in particular to an image-based human-machine interaction method, device, apparatus, and storage medium. [Background technology]

[0002] With the development of the field of artificial intelligence, the technology of automatic image understanding and analysis has gradually been applied in various industries, bringing convenience to people's work. For example, users can ask questions about an image and get automatic answers based on the content in the image.

[0003] However, the types of pictures used in work situations are complex, including, for example, document screenshots, table screenshots, flow charts, architecture diagrams, etc. Current picture understanding technologies have poor ability to understand the content of these pictures, which cannot meet users' needs and results in poor human-machine interaction experience. Summary of the Invention [Problem to be solved by the invention]

[0004] The present disclosure provides an image-based human-machine interaction method, apparatus, device, and storage medium. [Means for solving the problem]

[0005] According to a first aspect, the present disclosure provides an image-based human-machine interaction method, the method comprising: acquiring an image to be analyzed, the image including at least two types of modality data; determining image layout information and image content information of the image to be analyzed, the image layout information indicating a distribution state of image elements of a predetermined granularity in the image to be analyzed, and the image content information indicating contents expressed by modality data in the image to be analyzed; and a step of determining response information corresponding to the question information in accordance with the image layout information and the image content information in response to the acquired question information, the question information indicating a question posed about the image to be analyzed, and the response information indicating a reply answer corresponding to the question information.

[0006] According to a second aspect, the present disclosure provides an image-based human-machine interaction apparatus, the apparatus comprising: an acquisition unit adapted to acquire an image to be analyzed, the image comprising at least two types of modality data; A first determination unit used to determine image layout information and image content information of the image to be analyzed, the image layout information indicating a distribution state of image elements of a predetermined granularity in the image to be analyzed, and the image content information indicating a content expressed by modality data in the image to be analyzed; and a second determination unit used to respond to the acquired question information and determine response information corresponding to the question information according to the image layout information and the image content information, wherein the question information indicates a question posed about the image to be analyzed, and the response information indicates a reply answer corresponding to the question information.

[0007] According to a third aspect, the present disclosure provides an electronic device, the electronic device comprising: At least one processor; a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, the instructions, when executed by the at least one processor, enabling the at least one processor to perform the method of the first aspect.

[0008] According to a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium having stored thereon computer instructions, the computer instructions being used to cause the computer to perform a method according to the first aspect.

[0009] According to a fifth aspect, the present disclosure provides a computer program product, which, when executed by a processor, realises the method according to the first aspect. Effect of the Invention

[0010] The technology disclosed herein improves the accuracy of image understanding and enhances the user's human-machine interaction experience.

[0011] However, the contents described in this section are not intended to identify key or important features of the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following detailed description. [Brief description of the drawings]

[0012] The drawings are used for a better understanding of the present technical solution, and are not intended to limit the present disclosure. [Figure 1] 1 is a flowchart of an image-based human-machine interaction method provided according to an embodiment of the present disclosure. [Diagram 2] 1 is a flowchart of an image-based human-machine interaction method provided according to an embodiment of the present disclosure. [Diagram 3] FIG. 2 is a schematic diagram of an image to be analyzed according to an embodiment of the present disclosure. [Figure 4]1 is a flowchart of an image-based human-machine interaction method provided according to an embodiment of the present disclosure. [Diagram 5] FIG. 2 is a procedural diagram of human-machine interaction according to an embodiment of the present disclosure. [Figure 6] FIG. 2 is a structural block diagram of an image-based human-machine interaction device provided according to an embodiment of the present disclosure. [Figure 7] FIG. 2 is a structural block diagram of an image-based human-machine interaction device provided according to an embodiment of the present disclosure. [Figure 8] FIG. 2 is a block diagram of an electronic device for implementing an image-based human-machine interaction method according to an embodiment of the present disclosure. [Figure 9] FIG. 2 is a block diagram of an electronic device for implementing an image-based human-machine interaction method according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, exemplary embodiments of the present disclosure will be described with reference to the drawings, and in order to facilitate understanding, various details of the embodiments of the present disclosure are included therein, which should be regarded as merely illustrative. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described in the detailed description without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the following description will omit the description of well-known functions and structures.

[0014] A user can ask questions about an image. For example, if a user wants to get an explanation of the image's contents, the user can request the generation of a memo that describes the contents of the image. Current image processing technology can recognize pictorial content in an image. For example, models such as BLIP (Bootstrapping Language-Image Pre-training, a pre-trained model) can be used for image processing. However, currently, only pure pictures can be analyzed and understood, and the ability to understand complex types of images is low. For example, landscape photos, portrait photos, etc. can be recognized and analyzed.

[0015] Compared with the types of pictures commonly seen in life, the types of pictures in work situations are more heterogeneous and complex, including pure pictures, document screenshots, table screenshots, flow charts, architecture diagrams, data charts, etc. Traditional models cannot accurately understand the content of these pictures, and answers to users' questions are prone to errors, resulting in a poor user experience of human-machine interaction.

[0016] The present disclosure provides an image-based human-machine interaction method, device, apparatus, and storage medium applied to the image processing field in the artificial intelligence field to improve the accuracy of image understanding and enhance user experience.

[0017] Note that the model in this example is not a model for a specific user and does not reflect personal information of a specific user. Note that the images in this example are from the disclosed dataset.

[0018] The collection, storage, use, processing, transmission, provision and disclosure of users' personal information related to the technical solutions disclosed herein shall all comply with relevant laws and regulations and be handled in a manner that does not violate public order and morals.

[0019] In order to allow the reader to better understand the implementation principles of the present disclosure, the embodiments will be described in more detail with reference to the following FIGS.

[0020] 1 is a flowchart of an image-based human-machine interaction method provided according to an embodiment of the present disclosure, which can be performed by an image-based human-machine interaction device. As shown in FIG. 1, the method includes S101 to S103.

[0021] In S101, an image to be analyzed that includes at least two types of modality data is obtained.

[0022] For example, when a user engages in human-machine interaction, the user can ask a question about the image, for example, if there are multiple people in the image, the user can ask how many people are in the image, or if the image depicts a traffic accident, the user can ask to explain the content of the image. The image that the user is interested in during human-machine interaction is treated as an analysis target image, and the analysis target image can be understood and analyzed to answer the user's question.

[0023] A user may input or select an image to be analyzed by himself / herself. For example, when performing human-machine interaction, a user may first upload an image to be analyzed and then ask a question about the image to be analyzed. The image to be analyzed may include multiple types of modality data, such as text modality and visual modality. Text modality refers to the inclusion of text in the image to be analyzed, and visual modality refers to the inclusion of a pattern in the image to be analyzed. For example, if the image to be analyzed is a screenshot of a webpage and the webpage displays characters and scenery, the characters included therein will be text modality and the scenery will be visual modality. Also, for example, if the image to be analyzed is a flow chart, the multiple flow boxes included in the flow chart will be visual modality and the characters included in the flow boxes will be text modality. In this embodiment, the image to be analyzed may be various image types such as a photograph, a screenshot of a document, a screenshot of a table, a flow chart, an architecture diagram, a data chart, etc.

[0024] In S102, image layout information and image content information of the image to be analyzed are determined, where the image layout information indicates the distribution state of image elements of a specified granularity in the image to be analyzed, and the image content information indicates the content expressed by the modality data in the image to be analyzed.

[0025] Exemplarily, the analysis target image confirmed by the user is acquired, and after obtaining the analysis target image, the analysis target image is understood and analyzed to determine image layout information and image content information of the analysis target image. The image layout information refers to the distribution status of image elements of a predetermined granularity in the analysis target image, and the image content information refers to the content expressed by the modality data in the analysis target image. The image elements are components of the analysis target image, for example, the image elements are characters in a picture, and the predetermined granularity is a preset division size of the image elements. For example, when one word is set as the predetermined granularity, the image layout information is the distribution status of each word in the analysis target image. The distribution status can represent the position of the image elements of the predetermined granularity in the analysis target image, and for example, the position can be represented using coordinates. That is, the analysis target image is divided according to the predetermined granularity to obtain image elements of the predetermined granularity, and the coordinates of each image element of the predetermined granularity in the analysis target image are determined, thereby obtaining the image layout information of the analysis target image.

[0026] The image to be analyzed includes multiple types of modality data, and for each type of modality data, the content expressed by the modality data can be determined as the content information of the modality data. That is, multiple content information can be obtained for the image to be analyzed. For example, in the case of a visual modality, an interpretation explanation of the image content expressed by the visual modality can be obtained as the content information, and in the case of a text modality, the text content of the text modality can be obtained as the content information.

[0027] In S103, in response to the acquired question information, response information corresponding to the question information is determined according to the image layout information and the image content information, the question information indicating a question posed about the image to be analyzed, and the response information indicating a reply answer corresponding to the question information.

[0028] For example, a user can issue question information indicating a question posed by the user about the image to be analyzed, that is, the user can pose a question about the image to be analyzed, and an answer to the question posed by the user can be automatically obtained through human-machine interaction. The user's question information is acquired, and response information corresponding to the question information is determined according to the image layout information and the image content information, and the response information is a reply to the question indicated by the question information.

[0029] A semantic analysis is performed on the question information, and information corresponding to the semantic meaning of the question information can be extracted as response information from the image layout information and the image content information. For example, if the user's question information is "how many words are in the image", the number of words in the image can be determined according to the image layout information, or if the user's question information is "what content does the image screen express", content information corresponding to the visual modality can be determined as response information. For image processing and analysis, an algorithm such as a semantic analysis can be preset, and in this embodiment, the preset algorithm used during image processing is not particularly limited.

[0030] The image to be analyzed may be input to a large-scale model set in advance, the image may be processed and analyzed by the large-scale model, and response information may be output from the large-scale model. Tools implemented by various means such as deep learning, machine learning, and expert rules may be called to complete the image processing and analysis. In this embodiment, the tools used are not particularly limited.

[0031] In the embodiment of the present disclosure, the image to be analyzed may include multiple modality data such as text modality and visual modality, and the image layout information and image content information of the image to be analyzed are determined by acquiring the image to be analyzed. The image layout information can indicate the distribution status of image elements of a certain granularity in the image to be analyzed, and the image content information can indicate the content expressed by the modality data in the image to be analyzed. By determining the image layout information and the image content information, the image to be analyzed can be understood and analyzed comprehensively, the comprehensiveness of information extraction can be improved, and the understanding ability can be improved. In response to the question information from the user, response information corresponding to the question information is determined according to the image layout information and the image content information. The problem of the inability to understand complex images of multi-modality in the conventional technology is solved, the accuracy of question answering is improved, and the experience of human-machine interaction is improved.

[0032] FIG. 2 is a flowchart of an image-based human-machine interaction method provided by an embodiment of the present disclosure.

[0033] In this embodiment, the step of determining image layout information of the image to be analyzed may be detailed as a step of determining image elements of a predetermined granularity in the image to be analyzed, the image elements indicating components of the image to be analyzed, and a step of determining coordinate positions in the image to be analyzed of the image elements of the predetermined granularity, and determining image layout information of the image to be analyzed according to the coordinate positions.

[0034] The modality data in the image to be analyzed includes a text modality and a visual modality, and the step of determining image content information of the image to be analyzed may be detailed as a step of performing a text extraction process of the text modality on the image to be analyzed to obtain first content information corresponding to the text modality, and a step of converting content expressed by the visual modality in the image to be analyzed into text written in a natural language to obtain second content information corresponding to the visual modality, the image content information including the first content information and the second content information.

[0035] As shown in FIG. 2, the method includes S201 to S203.

[0036] In S201, the image to be analyzed is acquired, and image elements of a predetermined granularity in the image to be analyzed are determined. The image elements indicate the components of the image to be analyzed. The coordinate positions in the image to be analyzed of the image elements of the predetermined granularity are determined, and image layout information is determined according to the coordinate positions.

[0037] For example, after the image to be analyzed is acquired, image layout information and image content information of the image to be analyzed may be determined. In this embodiment, the order of determining the image layout information and image content information is not particularly limited. The preset granularity of the image elements is for dividing the image elements. When determining the image layout information, image elements of a predetermined granularity can be determined from the image to be analyzed, thereby determining image elements of a plurality of predetermined granularities. For example, if the predetermined granularity is the granularity of one word and there are 10 words in the image to be analyzed, 10 image elements of the predetermined granularity can be determined.

[0038] The coordinate position of each image element of a predetermined granularity in the image to be analyzed is determined, and image layout information of the image to be analyzed is determined according to the coordinate positions of the image elements of the predetermined granularity in the image to be analyzed. The coordinate positions may be determined as the image layout information, or the content expressed by each image element of the predetermined granularity may be determined and the content may be associated with the corresponding coordinate positions to form the image layout information. For example, when an image element of a predetermined granularity is a word, the word is associated with the coordinate position where the word is located and stored to obtain image layout information. Or, when an image element of a predetermined granularity is a single tree, information such as the size and color of the tree is associated with the coordinate position of the tree and stored to obtain image layout information.

[0039] In this embodiment, the granularity of image elements is set in advance, and the coordinate position of each image element is determined as image layout information. The image to be analyzed is analyzed with the specified granularity, thereby improving the comprehensiveness of information extraction and improving the ability to understand images.

[0040] In this embodiment, the step of determining image elements of a predetermined granularity in the image to be analyzed includes a step of performing image recognition processing on the image to be analyzed according to the predetermined granularity, and obtaining image elements of the predetermined granularity in the image to be analyzed.

[0041] Specifically, the granularity of the image elements is preset, and image recognition is performed on the image to be analyzed according to the preset granularity, and all image elements of the predetermined granularity in the image to be analyzed are recognized. For example, if the predetermined granularity is one word, each word in the image to be analyzed can be recognized, and each word becomes an image element of the predetermined granularity. This embodiment does not particularly limit the predetermined granularity of the image elements, but it is necessary to ensure that the image elements of the predetermined granularity have a meaning, and for example, one alphabet cannot be set as the predetermined granularity.

[0042] A layout recognition algorithm that can be used to recognize image elements of a predetermined granularity in an image to be analyzed can be preset. After all image elements of a predetermined granularity in an image to be analyzed are determined, semantic recognition may be performed on the image elements of the predetermined granularity to obtain the meanings of the image elements of the predetermined granularity. In this embodiment, the preset layout recognition algorithm is not particularly limited.

[0043] The beneficial effect of such a setting is that by recognizing the composition of fine-grained elements in the image to be analyzed based on pre-configured techniques such as layout recognition and obtaining a number of image elements of a given granularity, it becomes easier to subsequently obtain image layout information for the image, improving the efficiency and accuracy of information extraction.

[0044] In this embodiment, the step of determining the coordinate positions of image elements of a predetermined granularity in the image to be analyzed includes a step of performing an image segmentation process on the image to be analyzed according to the image elements of the predetermined granularity to obtain a plurality of image blocks, each image block representing one image element of the predetermined granularity, and a step of determining the coordinate positions of the image blocks in the image to be analyzed.

[0045] Specifically, after obtaining image elements of a predetermined granularity, an image segmentation process is performed on the image to be analyzed according to the image elements of the predetermined granularity, and a plurality of image blocks are segmented from the image to be analyzed. One image block can represent one image element of the predetermined granularity, and for example, the image element of the predetermined granularity can be segmented in the form of a rectangular frame.

[0046] The coordinate position of each image block in the image to be analyzed is determined, and image layout information of the image to be analyzed is determined according to the coordinate position of the image block. The coordinate position may be determined as the image layout information, or both the image element in the image block and the corresponding coordinate position may be determined as the image layout information of the image to be analyzed. For example, when an image element in an image block is a word, the word can be associated with the coordinate position of the image block and stored as the image layout information. When the semantic information of the image element in the image block is determined, the semantic information can also be associated with the corresponding coordinate position and stored as the image layout information.

[0047] The beneficial effect of such a setting is that, for each image block, the contents in the image block and the coordinate position of the image block are determined as image layout information, thereby realizing correlation between the positions and contents of image elements of a predetermined granularity, avoiding confusion of contents between positions, and improving the accuracy of the image layout information.

[0048] In S202, a text extraction process of the text modality is performed on the image to be analyzed to obtain first content information corresponding to the text modality, and the content expressed by the visual modality in the image to be analyzed is converted into text written in a natural language to obtain second content information corresponding to the visual modality.

[0049] Exemplarily, the image to be analyzed may include modality data such that it may include text modality and visual modality. After acquiring a multi-modality image to be analyzed, content information corresponding to various modalities can be obtained from the image to be analyzed. In the case of text modality, a text extraction process of the text modality is performed on the image to be analyzed, that is, text information in the image to be analyzed is extracted, and the first content information can be obtained. The first content information is the text information in the image to be analyzed. A character recognition algorithm can be preset to extract text, and for example, an OCR (Optical Character Recognition) algorithm can be used. In this embodiment, the preset character recognition algorithm is not particularly limited.

[0050] In the case of visual modality, the screen contents can be obtained from the image to be analyzed as the contents represented by the visual modality. For example, the background screen of the text can be obtained, and all patterns other than the text can be obtained from the image to be analyzed. The contents represented by the visual modality in the image to be analyzed can be converted into text written in natural language, and the text written in natural language can be used to explain the contents represented by the visual modality. The obtained text written in natural language is determined as the second content information, that is, the visual contents of the image to be analyzed are converted into a caption (interpretation explanation). The image description generation algorithm can be preset, and the second content information can be obtained according to the image description generation algorithm. In this embodiment, the preset image description generation algorithm is not particularly limited.

[0051] In this embodiment, based on technologies such as character recognition and graphic conversion recognition, content information corresponding to each modality in the image to be analyzed is extracted, comprehensive information extraction of the image to be analyzed is realized, information loss is avoided, and the accuracy of image understanding is improved, thereby improving the experience of human-machine interaction.

[0052] In S203, in response to question information from the user, response information corresponding to the question information is determined according to the image layout information and the image content information, the question information indicating a question posed by the user about the image to be analyzed, and the response information indicating a reply to the question indicated by the question information.

[0053] Illustratively, this step may refer to step S102 above, and will not be described again.

[0054] Figure 3 is a schematic diagram of the image to be analyzed. In the image to be analyzed in Figure 3, there are three lines of text on the left side, a tree on the right side, and clouds in the background. That is, the image to be analyzed contains two types of modality data, the text modality on the left side, and the tree on the right side and the clouds in the background are the visual modality.

[0055] In the embodiment of the present disclosure, the image to be analyzed may include multiple modality data such as text modality and visual modality, and the image layout information and image content information of the image to be analyzed are determined by acquiring the image to be analyzed. The image layout information can indicate the distribution status of image elements of a certain granularity in the image to be analyzed, and the image content information can indicate the content expressed by the modality data in the image to be analyzed. By determining the image layout information and image content information, the image to be analyzed can be understood and analyzed comprehensively, the comprehensiveness of information extraction can be improved, and the understanding ability can be improved. In response to the question information from the user, response information corresponding to the question information is determined according to the layout information and content information. The problem of the inability to understand complex images of multi-modality in the conventional technology is solved, the accuracy of question answering is improved, and the experience of human-machine interaction is improved.

[0056] FIG. 4 is a flowchart of an image-based human-machine interaction method provided by an embodiment of the present disclosure.

[0057] In this embodiment, the step of determining response information corresponding to the question information in accordance with the image layout information and image content information may be detailed as a step of determining an image type of the image to be analyzed in accordance with the image layout information and image content information, a step of determining semantic information of the question information and extracting target information corresponding to the semantic information from the image layout information and image content information, and a step of determining response information corresponding to the question information in accordance with the target information and the image type of the image to be analyzed.

[0058] As shown in FIG. 4, the method includes S401 to S404.

[0059] In S401, the image to be analyzed is acquired, and image layout information and image content information of the image to be analyzed are determined. The image to be analyzed contains multiple types of modality data, the image layout information indicates the distribution status of image elements of a specified granularity in the image to be analyzed, and the image content information indicates the content expressed by the modality data in the image to be analyzed.

[0060] Illustratively, this step may refer to step S101 above, and will not be described again.

[0061] In S402, the image type of the image to be analyzed is determined according to the image layout information and image content information.

[0062] Exemplarily, after obtaining the image layout information and the image content information, the image type of the analysis target image may be determined according to the image layout information and the image content information, where the image type may be a document screenshot, a table screenshot, a flow chart, an architecture diagram, or a data chart, etc.

[0063] The image type determination rule can be set in advance, and for example, when it is determined according to the image layout information that the image to be analyzed contains image elements of a predetermined granularity arranged in a format of multiple rows and multiple columns, the image type of the image to be analyzed can be determined as a screenshot of a table. Also, for example, when it is determined according to the image layout information that the image to be analyzed contains long text information, and when it is determined according to the image content information that the meaning expressed by the text information is an article, the image type of the image to be analyzed can be determined as a screenshot of a document. In this embodiment, the image type determination rule is not particularly limited.

[0064] In this embodiment, the method further includes a step of determining a similarity between each of the image layout information, the first content information in the image to be analyzed, and the second content information, and if all of the similarities are equal to or greater than a predetermined similarity threshold, a step of determining an image type of the image to be analyzed according to the image layout information and the image content information.

[0065] Specifically, the image content information of the image to be analyzed may include the first content information and the second content information. For three types of information, namely, the layout information, the first content information, and the second content information, the similarity between each two of them is determined. That is, the similarity between the image layout information and the first content information, the similarity between the layout information and the second content information, and the similarity between the first content information and the second content information may be determined. These three types of information may be divided into two groups such that each group contains two types of information, and only two similarities may be determined. For example, the similarity between the image layout information and the first content information, and the similarity between the image layout information and the second content information may be determined. In this embodiment, the method of calculating the similarity is not particularly limited.

[0066] A similarity threshold is preset, and each obtained similarity is compared with the similarity threshold. If the obtained similarities are all equal to or greater than the preset similarity threshold, the image layout information and the image content information match, and the image layout information and the image content information can be regarded as accurate information, and the image type of the image to be analyzed can be determined according to the image layout information and the image content information.

[0067] The beneficial effect of such a setting is that by determining the similarity, it is possible to determine whether the image layout information and image content information are accurate, thereby improving the accuracy of subsequent classification decisions, and thereby improving the accuracy of responses to questions.

[0068] In this embodiment, the method further includes the steps of: responding when the similarity is smaller than a predetermined similarity threshold, determining standard information for adjusting the image layout information and / or image content information from among the image layout information, the first content information, and the second content information; determining adjusted image layout information and image content information according to the standard information; and determining an image type of the image to be analyzed according to the adjusted image layout information and image content information.

[0069] Specifically, if there is one or more similarities that are smaller than a preset similarity threshold, it is determined that there is incorrect information in the image layout information, the first content information, and the second content information, and that the incorrect information needs to be adjusted.

[0070] First, standard information can be determined from the image layout information, the first content information, and the second content information. The standard information is accurate information and can be used to adjust the image layout information and / or the image content information, i.e., to adjust incorrect information. For example, if the standard information is image layout information and the first content information and the second content information are incorrect information, the image layout information can be used to adjust the first content information and the second content information.

[0071] Standard information may be preset from among image layout information and image content information, for example, the second content information may be preset as the standard information. A rule for determining standard information may be preset, and standard information may be determined according to the similarity between two pieces of information, two types of information with the highest similarity may be determined, and one type of information may be determined as the standard information from among these two types of information. For example, when the image layout information is information A, the first content information is information B, and the second content information is information C, and the similarity between A and B is high and the similarity between A and C is low, either A or B may be determined as the standard information, and information C may be adjusted according to the standard information. In this embodiment, the rule for determining standard information is not particularly limited.

[0072] After the standard information is determined, adjusted image layout information and image content information are determined according to the standard information. When the standard information is image layout information, the image content information is adjusted; when the standard information is the first content information, the image layout information and the second content information are adjusted; when the standard information is the second content information, the image layout information and the first content information are adjusted. The information adjustment method can be preset, and when adjusting the information, the standard information can be replaced with incorrect information; for example, when the standard information is image layout information and the information to be adjusted is the second content information, and the image layout information indicates that the image to be analyzed is a table-format image and the second content information indicates that the image to be analyzed is a flow chart, the flow chart in the second content information can be changed to a table image. After the adjustment is completed, accurate image layout information and image content information can be obtained.

[0073] The image type of the image to be analyzed is determined according to the adjusted image layout information and image content information. An image classification model is set in advance, and the adjusted image layout information and image content information are input into the image classification model, and the picture type of the image to be analyzed is obtained through a comprehensive judgment of the model. For example, the image type may be a pure image, a table, a document, a flow chart, etc. The image classification model may be a pre-trained neural network model, and in this embodiment, the model structure of the image classification model is not particularly limited.

[0074] The beneficial effect of such a setting is that when the similarity between the information is small, the information can be corrected to improve the accuracy of the information, and then the image type can be determined to improve the accuracy of the image type.

[0075] In this embodiment, the step of determining the image type of the image to be analyzed in accordance with the image layout information and the image content information includes a step of determining a position arrangement rule in the image to be analyzed of image elements of a predetermined granularity in the image to be analyzed in accordance with the image layout information, the position arrangement rule indicating an arrangement rule in the image to be analyzed of the coordinate positions of the image elements of the predetermined granularity; a step of determining the image type of the image to be analyzed as a first image type in accordance with the position arrangement rule; a step of determining the image type of the image to be analyzed as a second image type in accordance with second content information in the image to be analyzed; and a step of obtaining the image type of the image to be analyzed in response to a match between the first image type and the second image type.

[0076] Specifically, the image layout information includes coordinate positions of image elements of a predetermined granularity in the image to be analyzed, and a position arrangement rule of the image elements of the predetermined granularity in the image to be analyzed can be determined according to the coordinate positions of the image elements of the predetermined granularity in the image to be analyzed. The position arrangement rule can indicate an arrangement rule of the coordinate positions of the image elements of the predetermined granularity in the image to be analyzed, for example, the image to be analyzed is a table image, and the predetermined granularity is the size of one field in the table. According to the coordinate positions of the image elements of the predetermined granularity in the image to be analyzed, it can be determined that the image elements of the predetermined granularity exhibit a position arrangement rule of multiple rows and multiple columns in the image to be analyzed.

[0077] The image type of the image to be analyzed is determined according to the position arrangement rule, and the image type determined according to the position arrangement rule is set as the first image type, that is, the image type determined according to the image layout information is set as the first image type. For example, when image elements of a predetermined granularity exhibit a position arrangement rule of multiple rows and multiple columns in the image to be analyzed, the first image type is a table type. The image type of the image to be analyzed is determined according to the second content information in the image to be analyzed, and the image type determined according to the second content information is set as the second image type. The second content information refers to information that interprets and explains the image content, and the second image type can be directly read from the second content information. For example, when the second content information clearly states that the image to be analyzed is a flowchart, the second image type is a flowchart type.

[0078] When the first image type and the second image type match, the image type of the image to be analyzed can be obtained directly. That is, either the first image type or the second image type is determined as the image type of the image to be analyzed. When the image layout information or the image content information is adjusted, the first image type and the second image type can be determined according to the adjusted image layout information and image content information, respectively, to obtain the image type of the image to be analyzed.

[0079] The beneficial effect of such a setting is that by taking into consideration image layout information and image content information comprehensively, it is possible to avoid mistakes in determining the type based on a single piece of information, improve the accuracy of determining the type, improve the accuracy of responses to questions, and improve the experience of human-machine interaction.

[0080] In this embodiment, the method further includes a step of determining, in response to a mismatch between the first image type and the second image type, a target type from among the first image type and the second image type according to a preset priority as the image type of the image to be analyzed.

[0081] Specifically, if the first image type and the second image type do not match, the first image type or the second image type cannot be directly determined as the image type of the image to be analyzed, but one image type from the first image type and the second image type must be determined as the target type, and then the target type must be determined as the image type of the image to be analyzed.

[0082] The priority between the image layout information and the image content information is preset, the information with the highest priority is determined according to the preset priority, and the image type determined according to the information with the highest priority is determined as the target type. For example, when the second content information has the highest priority, the image type of the image to be analyzed can be obtained by determining the second image type as the target type.

[0083] A beneficial effect of such a setting is that, when the two image types do not match, the type with the more reliable information is selected as the image type of the image to be analyzed, improving the accuracy of the image type determination.

[0084] In S403, the semantic information of the question information is determined, and target information corresponding to the semantic information is extracted from the image layout information and image content information.

[0085] For example, question information from a user is acquired, and semantic recognition is performed on the question information to acquire semantic information of the question information, that is, the semantic information indicates the meaning of the question information. One semantic recognition model can be preset to determine the semantic information of the question information. In this embodiment, the preset semantic recognition model is not particularly limited.

[0086] When selecting target information from image layout information and image content information, corresponding information can be searched for from the image layout information and image content information according to the semantic information to be used as the target information. That is, target information that matches the semantic information is found from the image layout information and image content information. For example, it is possible to perform semantic recognition on the image layout information and the image content information to find information in the image layout information that corresponds to the semantic information, and to find information in the image content information that corresponds to the semantic information.

[0087] In S404, response information corresponding to the question information is determined according to the target information and the image type of the image to be analyzed.

[0088] For example, after the image type and the target information are obtained, the question information may be responded to according to the target information and the image type of the image to be analyzed, and response information corresponding to the question information may be obtained. For example, the image type and the target information may be determined as the response information, or the image type and the target information may be combined to obtain the response information. The response information may be obtained based on a preset tool, and the preset tool may be, for example, a tool for generating a graph or a tool for creating a to-do list.

[0089] In this embodiment, the step of determining response information according to the target information and the image type of the image to be analyzed includes a step of determining an information format corresponding to the image type of the image to be analyzed according to a preset association relationship between the image type and the information format, and a step of generating response information corresponding to the question information based on the information format corresponding to the image type of the image to be analyzed according to the target information.

[0090] Specifically, the association relationship between the image type and the information format is preset, and the format of the response information may differ depending on the image type. According to the image type of the analysis target image and the association relationship between the image type and the information format, the information format corresponding to the image type of the analysis target image is determined as the target format.

[0091] After obtaining the target information, the format of the target information is adjusted according to the target format, and the adjusted information is used as the response information. That is, the content expressed by the response information is the content expressed by the target information, and the format of the response information is an information format corresponding to the image type of the image to be analyzed. For example, the target information can be adjusted to a table format, and the generated table can be displayed to the user as the response information.

[0092] A beneficial effect of such a setting is that response information can be obtained in different formats depending on the image type, which helps the user to understand the response information and improves the user experience.

[0093] FIG. 5 is a procedure diagram of human-machine interaction provided by this embodiment. In FIG. 5, a user inputs an image to be analyzed and question information, the image to be analyzed is an image of multi-modality data, and the question information can be used to request content extraction, picture answering, picture Q&A, chart answering, copywriting, etc., for the image to be analyzed. The image to be analyzed is observed and analyzed to obtain first content information, second content information, and image layout information, and the obtained layout information, content information, and question information are input into a preset large-scale model, and the large-scale model performs inference in CoT (Chain of Thought) mode, and response information is output and obtained using a preset tool. The chain of thought mode refers to a process of decomposing a complex problem into small problems step by step and solving them sequentially while involving a large-scale model in stages. In this embodiment, the inference process of chain of thought is a process of first correcting and adjusting information, then determining the image type, then extracting target information, and finally obtaining response information by referring to the question information specified by the user.

[0094] In the embodiment of the present disclosure, the image to be analyzed may include multiple modality data such as text modality and visual modality, and the image layout information and image content information of the image to be analyzed are determined by acquiring the image to be analyzed. The image layout information can indicate the distribution status of image elements of a certain granularity in the image to be analyzed, and the image content information can indicate the content expressed by the modality data in the image to be analyzed. By determining the image layout information and the image content information, the image to be analyzed can be understood and analyzed comprehensively, the comprehensiveness of information extraction can be improved, and the understanding ability can be improved. In response to the question information from the user, response information corresponding to the question information is determined according to the image layout information and the image content information. The problem of the inability to understand complex images of multi-modality in the conventional technology is solved, the accuracy of question answering is improved, and the experience of human-machine interaction is improved.

[0095] 6 is a structural block diagram of an image-based human-machine interaction device provided by an embodiment of the present disclosure. For convenience of description, only parts related to the embodiment of the present disclosure are shown. Referring to FIG. 6, the image-based human-machine interaction device 600 includes an acquisition unit 601, a first determination unit 602, and a second determination unit 603.

[0096] The acquisition unit 601 is used to acquire an image to be analyzed, which image includes at least two types of modality data; The first determination unit 602 is used for determining image layout information and image content information of the image to be analyzed, the image layout information indicating the distribution situation of image elements of a predetermined granularity in the image to be analyzed, and the image content information indicating the content represented by modality data in the image to be analyzed; The second determination unit 603 is used to respond to the acquired question information and determine response information corresponding to the question information according to the image layout information and the image content information, where the question information indicates a question posed about the image to be analyzed, and the response information indicates a reply answer corresponding to the question information.

[0097] FIG. 7 is a structural block diagram of an image-based human-machine interaction device provided by an embodiment of the present disclosure. As shown in FIG. 7, the image-based human-machine interaction device 700 includes an acquisition unit 701, a first determination unit 702, and a second determination unit 703, and the second determination unit 703 includes a type determination module 7031, a goal determination module 7032, and a response determination module 7033.

[0098] The type determination module 7031 is used to determine the image type of the analysis target image according to the image layout information and the image content information; The target determination module 7032 is used for determining semantic information of the question information, and extracting target information corresponding to the semantic information from the image layout information and the image content information; The response determination module 7033 is used for determining response information corresponding to the question information according to the target information and the image type of the analysis target image.

[0099] In one example, the first determining unit 702 is an element determination module, which is used to determine image elements of a predetermined granularity in the image to be analyzed, the image elements being indicative of components of the image to be analyzed; a coordinate determination module used for determining the coordinate positions of the image elements of the predetermined granularity in the image to be analyzed; a layout determination module used for determining the image layout information according to the coordinate position.

[0100] In one example, the element determination module includes: The image recognition submodule is used to perform image recognition processing on the image to be analyzed according to the predetermined granularity, and to obtain image elements of the predetermined granularity in the image to be analyzed.

[0101] In one example, the coordinate determination module comprises: an image segmentation submodule, which is used to perform image segmentation processing on the analysis target image according to the image elements of the predetermined granularity to obtain a plurality of image blocks, where one image block represents one image element of the predetermined granularity; and a position determination sub-module, which is used to determine the coordinate position of the image block in the analyzed image.

[0102] In one example, the at least two types of modality data include a text modality and a visual modality, and the first determining unit 702: a text extraction module used for performing a text extraction process of a text modality on the analysis target image to obtain first content information corresponding to the text modality; and a visual conversion module used to convert the content expressed by the visual modality in the image to be analyzed into text written in a natural language to obtain second content information corresponding to the visual modality.

[0103] In one example, the response determination module 7033: a format determination submodule, which is used to determine an information format corresponding to the image type of the analysis target image according to a preset association relationship between the image type and the information format; and an information generating sub-module, which is used to generate response information corresponding to the question information according to the target information and based on an information format corresponding to the image type of the image to be analyzed.

[0104] In one example, the type determination module includes: a similarity determination submodule for determining a similarity between the image layout information, the first content information in the analysis target image, and the second content information; and a similarity judgment submodule, which is used to determine the image type of the image to be analyzed according to the image layout information and the image content information in response to the similarities being equal to or greater than a predetermined similarity threshold.

[0105] In one example, a standard determination submodule, which is used to determine standard information for adjusting the image layout information and / or the image content information from among the image layout information, the first content information, and the second content information in response to the similarity being smaller than a preset similarity threshold; The system further includes an information adjustment submodule used for determining adjusted image layout information and image content information according to the standard information, and determining an image type of the image to be analyzed according to the adjusted image layout information and image content information.

[0106] In one example, the type determination module 7031 is a rule determination submodule used for determining a position arrangement rule in the analysis target image of image elements of a predetermined granularity in the analysis target image according to the image layout information, the position arrangement rule indicating an arrangement rule in the analysis target image of coordinate positions of image elements of the predetermined granularity; a first determination submodule used for determining an image type of the analysis target image as a first image type according to the position arrangement rule; a second determination submodule used for determining an image type of the analysis target image as a second image type according to the second content information; and a type determination sub-module adapted to obtain an image type of the analysis target image in response to a match between the first image type and the second image type.

[0107] In one example, The apparatus further includes a target type determination unit that is used to determine, in response to a mismatch between the first image type and the second image type, a target type from among the first image type and the second image type according to a preset priority as the image type of the image to be analyzed.

[0108] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device.

[0109] FIG. 8 is a structural block diagram of an electronic device provided by an embodiment of the present disclosure, where the electronic device may be a terminal device or a server. As shown in FIG. 8, the electronic device 800 includes at least one processor 802 and a memory 801 communicatively connected to the at least one processor 802, where the memory stores instructions executable by the at least one processor 802, and the instructions are executed by the at least one processor 802 to enable the at least one processor 802 to perform the image-based human-machine interaction method of the present disclosure.

[0110] The electronic device 800 further includes a receiver 803 and a transmitter 804. The receiver 803 is for receiving commands and data transmitted from other devices, and the transmitter 804 is for transmitting commands and data to an external device.

[0111] According to an embodiment of the present disclosure, the present disclosure further provides a non-transitory computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to cause a computer to perform the solution provided by any one of the above embodiments.

[0112] According to an embodiment of the present disclosure, the present disclosure further provides a computer program, the computer program being stored in a readable storage medium, and at least one processor of the electronic device can read the computer program from the readable storage medium, and when the at least one processor executes the computer program, the electronic device performs the solution provided by any one of the above embodiments.

[0113] 9 is a schematic block diagram of an exemplary electronic device 900 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components illustrated herein, their connections and relationships, and their functions are merely examples and are not intended to limit the practice of the present disclosure as described herein and / or claimed herein.

[0114] 9, the device 900 includes a computing unit 901, which can execute various suitable operations and processes based on a computer program stored in a read only memory (ROM) 902 or loaded from a storage unit 908 into a random access memory (RAM) 903. The RAM 903 can further store various programs and data required for the operation of the device 900. The computing unit 901, the ROM 902 and the RAM 903 are connected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0115] Several components in device 900 are connected to I / O interface 905, including input unit 906 such as a keyboard and mouse, output unit 907 such as various types of monitors and speakers, storage unit 908 such as a magnetic disk and optical disk, and communication unit 909 such as a network card, modem, wireless communication transceiver, etc. The communication unit 909 enables device 900 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0116] The computing unit 901 may be various general-purpose and / or special-purpose processing components having processing and / or computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units for executing machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs each of the methods and processes described above, such as the image-based human-machine interaction method. For example, in some embodiments, the image-based human-machine interaction method can be embodied as a computer software program and tangibly included in a machine-readable medium, such as the storage unit 908. In some embodiments, some or all of the computer program can be loaded and / or installed in the device 900 via the ROM 902 and / or the communication unit 909. The computer program, when loaded into the RAM 903 and executed by the computing unit 901, can perform one or more steps of the image-based human-machine interaction method described above. Alternatively, in other embodiments, the computing unit 901 can be configured to execute the image-based human-machine interaction method using any other suitable means (eg, relying on firmware).

[0117] Various embodiments of the systems and techniques described herein above may be implemented in digital electronic circuitry systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may be implemented in one or more computer programs that may be executed and / or interpreted in a programmable system that includes at least one programmable processor, which may be a special purpose or general purpose programmable processor, and that may receive data and instructions from a storage system, at least one input device, and at least one output device, and that may transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0118] The program codes for implementing the methods according to the present disclosure can be programmed using any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, a special purpose computer or other programmable data processing apparatus, such that when the program codes are executed by the processor or controller, the functions / operations shown in the flowcharts and / or block diagrams are performed. The program codes can be fully executed on a machine, partly executed on a machine, partly executed on a machine as a separate software package and partly executed on a remote machine, or entirely executed on a remote machine or server.

[0119] In the context of this disclosure, a machine-readable medium may be a tangible medium, and may contain or store a program for use with, or in combination with, an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the above. More specific examples of machine-readable storage media include one or more wire-based electrical connections, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, portable compact disk read-only memories (CDs), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0120] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user, and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other types of devices can also provide interaction with a user, for example, the feedback provided to the user can be any form of sensing feedback (e.g., visual feedback, auditory feedback, or haptic feedback) and can receive input from the user in any form (including acoustic input, speech input, and haptic input).

[0121] The systems and techniques described herein may be implemented in a computing system including a back-end component (e.g., a data server), or a computing system including a middleware component (e.g., an application server), or a computing system including a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user interacts with embodiments of the systems and techniques described herein), or a computing system including any combination of the back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0122] The computer system may include a client terminal and a server. The client terminal and the server are generally remote from each other and usually interact with each other through a communication network. The relationship between the client terminal and the server is generated by a computer program running on a corresponding computer and having a client terminal-server relationship with each other. The server may be a cloud server, also called a cloud computing server or cloud host, which is a host product in a cloud computing service system, and solves the shortcomings of difficult management and weak business scalability that exist in traditional physical hosts and VPS servers (abbreviated as "VirtuaL Private Server", or "VPS"). The server may also be a server of a distributed system or a server combined with a blockchain.

[0123] It should be understood that steps can be rearranged, added, or deleted using the various forms of flow shown above. For example, each step described in the present disclosure can be performed in parallel, sequentially, or in a different order, but this specification is not limited thereto, as long as the technical solution disclosed in the present disclosure can achieve the desired results.

[0124] The above embodiments for carrying out the invention do not limit the scope of protection of the present disclosure. Those skilled in the art can make various modifications, combinations, subcombinations, and substitutions based on design requirements and other factors. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present disclosure should be included within the scope of protection of the present disclosure.

Claims

1. acquiring an image to be analyzed that includes at least two types of modality data; a step of determining image layout information and image content information of the image to be analyzed, wherein the image layout information indicates a distribution state of image elements of a predetermined granularity in the image to be analyzed, and the image content information indicates content expressed by modality data in the image to be analyzed; and a step of responding to the acquired question information and determining response information corresponding to the question information according to the image layout information and the image content information, wherein the question information indicates a question posed about the image to be analyzed, and the response information indicates a reply answer corresponding to the question information.

2. The step of determining image layout information and image content information of the analysis target image includes: determining image elements of a predetermined granularity in the image to be analyzed, the image elements representing components of the image to be analyzed; determining coordinate positions of the image elements of the predetermined granularity in the image to be analyzed; and determining the image layout information according to the coordinate positions.

3. The step of determining image elements of a predetermined granularity in the image to be analyzed includes:

3. The image-based human-machine interaction method according to claim 2, further comprising the step of performing image recognition processing on the image to be analyzed according to the predetermined granularity, and obtaining image elements of the predetermined granularity in the image to be analyzed.

4. The step of determining coordinate positions of the image elements of the predetermined granularity in the analysis target image includes: a step of performing an image segmentation process on the image to be analyzed according to the image elements of the predetermined granularity to obtain a plurality of image blocks, wherein one image block represents one image element of the predetermined granularity; and determining the coordinate positions of the image blocks in the image to be analyzed.

5. The at least two types of modality data include a text modality and a visual modality, and the step of determining image layout information and image content information of the image to be analyzed includes: performing a text extraction process of a text modality on the image to be analyzed to obtain first content information corresponding to the text modality; and converting the content expressed by the visual modality in the image to be analyzed into text written in a natural language to obtain second content information corresponding to the visual modality; The image-based human-machine interaction method according to any one of claims 1 to 4, wherein the image content information includes the first content information and the second content information.

6. determining response information corresponding to the question information according to the image layout information and the image content information, determining an image type of the image to be analyzed according to the image layout information and the image content information; determining semantic information of the question information, and extracting target information corresponding to the semantic information from the image layout information and the image content information; The image-based human-machine interaction method according to claim 5 , further comprising: determining the response information according to the target information and an image type of the image to be analyzed.

7. The step of determining the response information according to the target information and the image type of the analysis target image includes: determining an information format corresponding to the image type of the image to be analyzed according to a predetermined association relationship between the image type and the information format; The image-based human-machine interaction method according to claim 6, further comprising: generating response information corresponding to the question information according to the target information and based on an information format corresponding to the image type of the image to be analyzed.

8. The step of determining the image type of the analysis target image according to the image layout information and the image content information includes: determining a similarity between two of the image layout information, the first content information, and the second content information; 7. The image-based human-machine interaction method of claim 6, further comprising: in response to determining that all of the similarities are equal to or greater than a predetermined similarity threshold, determining an image type of the image to be analyzed according to the image layout information and the image content information.

9. determining standard information for adjusting at least one of the image layout information and the image content information from among the image layout information, the first content information, and the second content information in response to the similarity being smaller than a predetermined similarity threshold; determining adjusted image layout information and image content information according to the standard information; The image-based human-machine interaction method according to claim 8 , further comprising: determining an image type of the analysis target image according to the adjusted image layout information and image content information.

10. The step of determining the image type of the analysis target image according to the image layout information and the image content information includes: a step of determining a position arrangement rule in the analysis target image of image elements of a predetermined granularity in the analysis target image according to the image layout information, the position arrangement rule indicating an arrangement rule in the analysis target image of coordinate positions of image elements of the predetermined granularity; determining an image type of the analysis target image as a first image type in accordance with the position arrangement rule; determining an image type of the analysis target image as a second image type in accordance with the second content information; 7. The image-based human-machine interaction method according to claim 6, further comprising the step of: obtaining an image type of the image to be analyzed in response to a match between the first image type and the second image type.

11. 11. The image-based human-machine interaction method according to claim 10, further comprising: in response to a mismatch between the first image type and the second image type, determining a target type from among the first image type and the second image type according to a preset priority as the image type of the image to be analyzed.

12. an acquisition unit adapted to acquire an image to be analyzed, the image comprising at least two types of modality data; a first determination unit used to determine image layout information and image content information of the image to be analyzed, the image layout information indicating a distribution state of image elements of a predetermined granularity in the image to be analyzed, and the image content information indicating content expressed by modality data in the image to be analyzed; a second determination unit used to respond to the acquired question information and determine response information corresponding to the question information according to the image layout information and the image content information, wherein the question information indicates a question posed about the image to be analyzed, and the response information indicates a reply answer corresponding to the question information.

13. The first determination unit: an element determination module used to determine image elements of a predetermined granularity in the image to be analyzed, the image elements representing components of the image to be analyzed; a coordinate determination module used to determine the coordinate positions of the image elements of the predetermined granularity in the image to be analyzed; The image-based human-machine interaction device according to claim 12 , further comprising: a layout determination module used for determining the image layout information according to the coordinate positions.

14. The element determination module: The image-based human-machine interaction device according to claim 13, further comprising an element recognition submodule used to perform image recognition processing on the image to be analyzed according to the predetermined granularity, and obtain image elements of the predetermined granularity in the image to be analyzed.

15. The coordinate determination module: an image segmentation sub-module that performs image segmentation processing on the image to be analyzed according to the image elements of the predetermined granularity to obtain a plurality of image blocks, where one image block represents one image element of the predetermined granularity; and a position determination sub-module used to determine the coordinate position of the image block in the image to be analyzed.

16. The at least two types of modality data include a text modality and a visual modality, and the first determining unit: a text extraction module used to perform text extraction processing of a text modality on the analysis target image to obtain first content information corresponding to the text modality; a visual conversion module used to convert content expressed by a visual modality in the analysis target image into text written in a natural language to obtain second content information corresponding to the visual modality; The image-based human-machine interaction device according to any one of claims 12 to 15, wherein the image content information includes the first content information and the second content information.

17. The second determination unit: a type determination module used to determine the image type of the analysis target image according to the image layout information and the image content information; a target determination module used for determining semantic information of the question information and extracting target information corresponding to the semantic information from the image layout information and the image content information; The image-based human-machine interaction device according to claim 16, further comprising: a response determination module used for determining the response information according to the target information and the image type of the image to be analyzed.

18. The response determination module: a format determination sub-module, which is used to determine an information format corresponding to the image type of the analysis target image according to a preset association relationship between the image type and the information format; and an information generation submodule used for generating response information corresponding to the question information according to the target information and based on an information format corresponding to the image type of the image to be analyzed.

19. The type determination module: a similarity determination submodule used for determining similarities between the image layout information, the first content information, and the second content information; and a similarity judgment submodule, which is used to determine the image type of the image to be analyzed according to the image layout information and the image content information in response to determining that all of the similarities are equal to or greater than a predetermined similarity threshold.

20. a standard determination submodule, which is used to determine standard information for adjusting at least one of the image layout information and the image content information from among the image layout information, the first content information, and the second content information, in response to the similarity being smaller than a predetermined similarity threshold; 20. The image-based human-machine interaction device of claim 19, further comprising an information adjustment submodule used for determining adjusted image layout information and image content information according to the standard information, and determining an image type of the image to be analyzed according to the adjusted image layout information and image content information.

21. The type determination module: a rule determination submodule used to determine a position arrangement rule in the analysis target image of image elements of a predetermined granularity in the analysis target image according to the image layout information, wherein the position arrangement rule indicates an arrangement rule in the analysis target image of coordinate positions of image elements of the predetermined granularity; a first determination sub-module used to determine the image type of the analysis target image as a first image type according to the position arrangement rule; a second determination submodule used to determine the image type of the analysis target image as a second image type according to the second content information; 18. The image-based human-machine interaction device of claim 17, further comprising: a type determination submodule used to obtain an image type of the image to be analyzed in response to a match between the first image type and the second image type.

22. 22. The image-based human-machine interaction device according to claim 21, further comprising a target type determination unit used to determine a target type from among the first image type and the second image type according to a preset priority as the image type of the image to be analyzed in response to a mismatch between the first image type and the second image type.

23. at least one processor; a memory communicatively coupled to the at least one processor, An electronic device, wherein the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is capable of performing the image-based human-machine interaction method described in any one of claims 1 to 4 and 6 to 11.

24. A non-transitory computer-readable storage medium having stored thereon computer instructions, the computer instructions being used to cause a computer to perform the image-based human-machine interaction method according to any one of claims 1 to 4 and 6 to 11.

25. A computer program, which, when executed by a processor, causes the steps of the image-based human-machine interaction method according to any one of claims 1 to 4 and 6 to 11 to be realized.

Citation Information

Patent Citations

  • Question answering method and device based on document image, equipment, storage medium and program product

    CN118586403A

  • Image data retrieval device, image data retrieval method, program and recording medium

    JP2007065763A

  • Image question answering method, device, system and storage medium

    JP2020532017A

  • Image question answering method, device, computer device, medium, and program

    JP2022013643A

  • Learning device, text generating device, learning method, text generating method, and program

    WO2021171732A1

Cited By

  • Information processing device, information processing method, program, information processing system

    JP2026175012A