Information processing device, information processing method, and computer program
The information processing device generates specific comment sentences by integrating object detection and image recognition techniques, addressing the limitations of existing technologies in producing informative comments for natural dialogue, enhancing user interaction in environments like the metaverse.
Patent Information
- Application Number
- PCT/JP2024/012530
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-26
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-31
AI Technical Summary
Current technologies for generating comments from images, such as machine learning models, struggle to produce specific and informative comments suitable for natural dialogue, as they cannot control the content of utterances and face difficulties in collecting datasets for training.
An information processing device and method that includes an attention target detection unit, an image content analysis unit, and a comment materialization unit, which detect and analyze specific objects within images using object detection, image captioning, face recognition, and other image recognition techniques, integrating these results to generate specific and detailed comment sentences based on user instructions.
Enables the generation of specific and informative comment sentences that can be used for natural dialogue, improving user interaction in environments like the metaverse by allowing NPCs to engage in more meaningful conversations using visual information.
Smart Images

Figure JP2024012530_31102024_PF_FP_ABST
Abstract
Description
Information processing device, information processing method, and computer program
[0001] The technology disclosed in this specification (hereinafter referred to as "the present disclosure") relates to an information processing device, an information processing method, and a computer program that automatically generate a comment from visual information.
[0002] In recent years, as conversational agents have become more widespread, there is a growing need for technologies that enable conversational agents to have natural conversations with users. In this case, conversational agents are required to generate utterances using visual information.
[0003] In the Metaverse, it is desirable for NPCs (non-player characters) to be more realistic and act with realistic emotions. In other words, NPCs are required to recognize emotions from messages, voices, and emojis and engage in natural conversations with users. The Metaverse tends to be quiet during times when there are few users. For example, if NPCs could freely interact using visual information such as images captured by a camera or CG images within the Metaverse, it would be possible to liven up the Metaverse even during quiet times and invite users into the space.
[0004] For example, an automated dialogue system has been proposed that asks a user for missing information (see Patent Document 1), but this system does not generate utterances using visual information, and this system does not obtain missing information in quiet spaces where there are no users to respond to the request or when the user does not respond.
[0005] Machine learning models that generate text directly from images are a common technique for generating text from images. For example, image captioning can use a single image as input to generate captions that describe events occurring in the image or the behavior of people or animals (see, for example, Non-Patent Document 1). Image captioning generates the caption "Man riding a bicycle down a slope" for an image showing a man riding a bicycle down a slope. However, when used in a dialogue agent or to achieve natural dialogue with a user, referring to the person in the image as "man" (i.e., a common noun) is not very appropriate, and speaking using the person's name (i.e., a proper noun) instead of "man" can be considered more natural. Techniques that generate captions or comments directly from images can only utilize the overall impression of the image and object information in broad terms, so they can only generate short phrases or abstract comments.
[0006] In short, machine learning models that generate text directly from images have the problem of being unable to control the content of speech depending on the situation, and there are also problems with collecting datasets to train machine learning models.
[0007] Japanese Patent Application Laid-Open No. 2022-178536
[0008] Chunyuan Li, Principal Researcher et al. [Objects are the secret key to revealing the world between vision and language] (2020) Ashish Vaswani, Noam Shazeer et al. [Attention Is All You Need] (2017) Colin Raffel, Noam Shazeer et al. [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer] (2020) Alec Radford, Jeffrey Wu et al. [Language Models are Unsupervised Multitask Learners] (2018)
[0009] An object of the present disclosure is to provide an information processing device, an information processing method, and a computer program that generate comments that refer to more specific things from visual information.
[0010] The present disclosure has been made in consideration of the above-mentioned problems, and a first aspect thereof is an information processing device comprising: an object of interest detection unit that detects an object of interest from an image based on an instruction sentence; an image content analysis unit that analyzes the content of the image; an integration unit that integrates the detection result of the object of interest detection unit and the analysis result of the image content analysis unit based on the instruction sentence; and a comment concretization unit that generates a comment sentence based on the integration result by the integration unit.
[0011] The target-of-interest detection unit includes an object detector, and detects from the image an image of an object that corresponds to the target-of-interest object name indicated by the instruction sentence.
[0012] The image content analysis unit includes an image caption generator that generates an image caption describing the content of the image of the target object detected by the object detector. The image content analysis unit also includes one or more types of recognizers that perform image recognition, such as a face recognizer, a character recognizer, and a facial expression recognizer. The integration unit integrates the detection result of the target object detection unit, the image caption generated by the caption generator, and the recognition result by the one or more types of recognizers based on the instruction.
[0013] A second aspect of the present disclosure is an information processing method having an object of interest detection step of detecting an object of interest from an image based on an instruction sentence, an image content analysis step of analyzing the content of the image, an integration step of integrating the detection result in the object of interest detection step and the analysis result in the image content analysis step based on the instruction sentence, and a comment concretization step of generating a comment sentence based on the integration result in the integration step.
[0014] Furthermore, a third aspect of the present disclosure is a computer program written in a computer-readable format to cause a computer to function as: an object of interest detection unit that detects an object of interest from an image based on an instruction sentence; an image content analysis unit that analyzes the content of the image; an integration unit that integrates the detection result of the object of interest detection unit and the analysis result of the image content analysis unit based on the instruction sentence; and a comment concretization unit that generates a comment sentence based on the integration result by the integration unit.
[0015] A computer program according to a third aspect of the present disclosure defines a computer program written in a computer-readable format to perform predetermined processing on a computer. The computer program can be provided to a computer capable of executing various program codes in a computer-readable format via a storage medium or communication medium, such as an optical disk, a magnetic disk, or a semiconductor memory, or a communication medium such as a network. By installing the computer program according to the third aspect of the present disclosure on a computer via any of these media, a cooperative effect is exerted on the computer, and the same effects as those of the information processing device according to the first aspect of the present disclosure can be obtained.
[0016] According to the present disclosure, it is possible to provide an information processing device, an information processing method, and a computer program that use image captioning to generate a comment text for natural dialogue with a user.
[0017] It should be noted that the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited to these. Furthermore, the present disclosure may also bring about additional effects in addition to the effects described above.
[0018] Further objects, features, and advantages of the present disclosure will become apparent from the following detailed description based on the embodiments and accompanying drawings.
[0019] FIG. 1 is a diagram showing an example of the functional configuration of the comment generation device 100. FIG. 2 is a diagram showing an example of the operation of the image caption generator 121 using a machine learning model. FIG. 3 is a diagram showing an example of the operation of the image caption generator 121 using an image caption model (Oscar). FIG. 4 is a diagram showing an example of the operation of the face recognizer 122. FIG. 5 is a diagram showing an example of the operation of the character recognizer 123. FIG. 6 is a diagram showing an example of the operation of the character recognizer 123. FIG. 7 is a diagram showing an example of the operation of the facial expression recognizer 124. FIG. 8 is a diagram showing an overview of the comment generator used to concretize a comment in the comment concretization unit 140. FIG. 9 is a diagram showing an example of a directive. FIG. 10 is a flowchart showing a processing procedure for generating a comment for an input image based on a directive. FIG. 11 is a diagram showing an example of generating a concrete comment using object detection, image captioning, and face recognition. FIG. 12 is a diagram showing an example of generating a concrete comment using object detection and image captioning. FIG. 13 is a diagram illustrating an example of generating a specific comment in a virtual space. FIG. 14 is a diagram illustrating an example of generating a specific comment using object detection, image captioning, and facial expression recognition. FIG. 15 is a diagram illustrating an example of generating a specific comment using object detection, image captioning, and character recognition. FIG. 16 is a diagram illustrating an example of generating a specific comment from multiple images. FIG. 17 is a diagram illustrating a virtual space displayed on the screen of an information terminal equipped with a webcam. FIG. 18 is a diagram illustrating a user showing a photo to an AI agent. FIG. 19 is a diagram illustrating an example of generating a comment for a captured image. FIG. 20 is a diagram illustrating an AI agent uttering a specific comment for a photo. FIG. 21 is a diagram illustrating an example of an image showing three men. FIG. 22 is a diagram illustrating an example of generating a comment for an image showing multiple people. FIG. 23 is a diagram illustrating an example of a metaverse space. FIG. 24 is a diagram illustrating a user's perspective in the metaverse space. FIG. 25 is a diagram illustrating an NPC's perspective in the metaverse space. FIG. 26 is a diagram showing an example of generating a comment text by an NPC in response to visual information in the Metaverse (in the case of question and answer).27 is a diagram showing an example of generating a comment from an NPC in response to visual information in the metaverse (when requesting feedback). FIG. 28 is a diagram showing an example of the hardware configuration of the information processing device 2000.
[0020] Hereinafter, embodiments of the present disclosure will be described in the following order with reference to the drawings.
[0021] A. Overview B. Basic Configuration C. Comment Generation Processing C-1. Specific Examples of Instructions C-2. Specific Processing Operations D. Examples D-1. Example of Generating a Comment Using Object Detection, Image Captioning, and Facial Recognition D-2. Example of Generating a Comment Using Object Detection and Image Captioning D-3. Example of Generating a Comment in a Virtual Space Using Object Detection and Image Captioning D-4. Example of Generating a Comment Using Object Detection, Image Captioning, and Facial Expression Recognition D-5. Example of Generating a Comment Using Object Detection, Image Captioning, and Character Recognition D-6. Example of Generating a Comment from Multiple Images Using Object Detection, Image Captioning, and Character Recognition D-7. Example of Generating a Comment for a Captured Image D-8. Example of Generating a Comment for an Image Showing Multiple People D-9. Example of Generating an NPC's Comment in Response to Visual Information in the Metaverse E. Comparison of the Effects of the Present Disclosure with Other Technologies F. Hardware configuration of information processing device
[0022] A. Overview Technology for generating text from images typically uses machine learning models that generate text directly from images, but these have the following problems: they cannot control the content of speech to suit the situation, and they can only generate short or abstract comments. Another problem is that it is difficult to collect datasets for training machine learning models.
[0023] In response to this, the present disclosure proposes a comment generation technology that divides the process of generating a comment from an image into two parts, and then follows a process of analyzing the details of the image content to generate specific and informative comments. The comment generation technology according to the present disclosure can generate more specific comments from images through the following processes (P1) to (P4).
[0024] (P1) Recognize the target of speech from the image. (P2) Apply image recognition technology appropriate for the target of speech. (P3) Based on the results of the above process (P2), generate a sentence that describes the image content in detail. (P4) Based on the results of the above process (P3), generate a comment.
[0025] In process (P1), a pre-specified target of interest is detected from the input image. While available image recognition technologies include multiple recognition technologies, including image captioning, in process (P2), one or more pre-specified recognition technologies are applied to the target of speech recognized in process (P1). In process (P3), the results of processes (P1) and (P2) are integrated in a pre-specified manner to generate a sentence detailing the content of the input image. In process (P4), a commentary sentence to be spoken by a dialogue agent, NPC, or the like is generated in response to the sentence generated in process (P3). In the present disclosure, a speech instruction sentence specifying the target of speech, the image recognition technology to be applied to the target of speech, and a method for integrating multiple recognition results to generate a sentence describing the image content is input along with the image. The speech instruction sentence can also be considered meta-information describing what the user specifically wants to know from the image.
[0026] With image captioning, for example, for an image showing a man riding a bicycle down a slope, only an abstract comment such as "A man riding a bicycle down a road" can be generated. In contrast, with the present disclosure, by specifying what you want to know from the image, such as "Who is that person?" or "What is that person wearing?", it becomes possible to generate a comment that refers to specific things, such as "Mr. / Ms. XX looks very cool riding his bicycle in that black tank top."
[0027] Furthermore, with image captioning, only an abstract comment such as "A person holding a smartphone with a picture of a penguin" can be generated for an image showing a person holding a smartphone with a picture of a penguin on it. In contrast, with the present disclosure, by specifying what you want to know from the image, such as "How many penguins are there?" and "What do the penguins look like?", it becomes possible to generate a comment that refers to a specific thing, such as "The two penguins standing together are very cute."
[0028] B. Basic Configuration FIG. 1 shows an example functional configuration of a comment generation device 100 to which the present disclosure is applied. The comment generation device 100 is primarily intended to generate comments to be uttered by a dialogue agent during a conversation between a user and the dialogue agent. The comment generation device 100 shown in the figure includes an attention target detection unit 110, an image content analysis unit 120, a detection result integration unit 130, and a comment concretization unit 140. Each of the components 110 to 140 of the comment generation device 100 can be realized as a dedicated hardware device, or can be realized by executing a computer program on a general information processing device such as a personal computer (PC).
[0029] The target-of-interest detection unit 110 includes an object detector 111, which, upon receiving an image and an instruction, detects and extracts the target object specified in the instruction from among the objects reflected in the input image. The object detector 111 uses a machine learning model. Examples of machine learning models used for object detection include Yolov5, R-CNN, and GLIP. Conventional image comment generation technologies can only generate comments based on the overall impression of the image, and the generated comments are only abstract in content. In contrast, the comment generation device 100 according to this embodiment divides the process of generating a comment from an image into multiple steps. After the target-of-interest detection unit 110 detects a target of interest from the input image, the downstream image content analysis unit 120 analyzes the image content in detail for a specific object or scene, thereby generating a more specific comment.
[0030] The image content analysis unit 120 performs image recognition to analyze the content of an image in detail. In this embodiment, the image content analysis unit 120 includes an image caption generator 121, a face recognizer 122, a character recognizer 123, and a facial expression recognizer 124.
[0031] The image caption generator 121 receives an image as input and outputs a sentence that accurately describes the content of the image. The image caption generator 121 is mainly used to identify the appearance or action of an object of interest.
[0032] The image caption generator 121 may use a machine learning model created by changing the training data of a conventional image comment generation model from a pair of an image and a caption to a pair of an image and a comment and performing training. The machine learning model inputs an image cut out by the target detection unit 110, infers a comment paired with the image, and outputs the input. Figure 2 shows an example of the operation of the image caption generator 121 using a machine learning model. In the illustrated example, the machine learning model 201 outputs a comment such as "Two penguins are standing on a rock" from an image showing two penguins.
[0033] The image caption generator 121 may use an image caption model such as Oscar (see Non-Patent Document 1). FIG. 3 shows an example of the operation of the image caption generator 121 using the image caption model (Oscar). The image caption generation model first uses an object detector (Faster R-CNN) 301 to extract image features consisting of image tags "dog" and "couch" and region features corresponding to each of the image tags "dog" and "couch" from the image cut out by the target detection unit 110. Furthermore, a Transformer (see Non-Patent Document 2) 302 is used to generate an image caption for the input image, such as "A dog is sitting on a couch," from these features.
[0034] The face recognizer 122 first detects a person's face from an input image to the comment generation device 100, and then determines the person's name from the detected face. A machine learning model is used for face detection and face identification. FIG. 4 shows an example of the operation of the face recognizer 122. In the example shown, a first machine learning model 401 has been trained to detect a person's face from an input image, and a second machine learning model 402 has been trained to estimate a person's name from a face image. In addition, a face image database 403 stores person names corresponding to person's face images. First, the first machine learning model 401 detects a person's face in the input image. Then, the second machine learning model 402 calculates the similarity between the detected face and a face image in the face image database 403 to determine the person's name "Taro Suzuki."
[0035] The character recognizer 123 receives an image extracted by the target detection unit 110, recognizes characters in the image, and converts the characters into text data. A machine learning model is used for character recognition. FIGS. 5 and 6 show examples of the operation of the character recognizer 123. The machine learning model 501 recognizes characters in the input image and converts the characters into text data. In the example shown in FIG. 5, the character recognition machine learning model 501 converts the displayed time into text data "21:07" from an image of a digital clock face. In the example shown in FIG. 6, the character recognition machine learning model 601 converts the character "pasta" written on the edge of a plate of pasta into text data "pasta."
[0036] The facial expression recognizer 124 receives an image extracted by the target detection unit 110 as input, and uses a machine learning model to recognize facial expressions. A machine learning model is used to recognize facial expressions. FIG. 7 shows an example of the operation of the facial expression recognizer 124. The machine learning model 701 identifies the facial expression of a person shown in the input image, and selects the most likely label "joy" from among "happiness," "anger," "sadness," "surprise," "neutral," etc. (In FIG. 7, only the selected label "joy" is highlighted to indicate that it has been selected).
[0037] In the example of the device configuration shown in FIG. 1, the image content analysis unit 120 includes a face recognizer 122, a character recognizer 123, and a facial expression recognizer 124, but it is not essential to include all of these recognizers. Conversely, the image content analysis unit 120 may also include recognizers other than these.
[0038] The detection result integration section 130 includes a detection result integrator 131, and integrates the results of the sections 121 to 124 in the preceding image content analysis section 120. Details of the method for integrating multiple detection results will be described later.
[0039] The comment concretization unit 140 includes a comment generator 141, and generates a comment to be spoken by the dialogue agent in response to the original image (the image input to the target of interest detection unit 110 together with the instruction text) based on the integration result of the detection result integration unit 130. The comment concretization unit 140 does not generate abstract comments that express the overall impression of the image or broad generalizations, but rather generates specific and informative comments that take into account the detailed analysis results of the image content by the image content analysis unit 120 in the preceding stage.
[0040] FIG. 8 shows an overview of the comment generator used by the comment concretization unit 140 to concretize a comment. In the example shown, a text-to-text model 801 is used as the comment generator. The text-to-text model 801 is a machine learning model that generates text based on a teaching sentence (text prompt) given as input, and examples of natural language models include T-5 (Text-to-Text Transfer Transformer) (see Non-Patent Document 3) and GPT (see Non-Patent Document 4). The text-to-text model 801 receives as input a sentence obtained by the detection result integration unit 130 integrating multiple recognition results in the image content analysis unit 120, and generates a specific comment sentence for the input image. 8, the Text-to-Text model 801 receives the instruction sentences "Q: Who was the first Prime Minister of Japan? / A: It was Hirobumi Ito. / Q: Who was the first President of the United States?" as the integration result by the detection result integration unit 130. Then, based on this instruction sentence, the Text-to-Text model 801 generates the text "A: The first President of the United States was George Washington."
[0041] In this way, the comment generation device 100 according to this embodiment can generate a more specific comment from an instructional statement and an image than conventional image comment generation by taking four steps: detecting an object of interest, analyzing image content, integrating detection results, and specifying a comment. The example shown in Fig. 1 also shows an example in which the comment generation device 100 receives an image of a man standing on a beach with his back to the viewer and an instructional statement as input, detects the man's back as the object of interest in accordance with the instructional statement, and generates a comment such as "This person appears to be enjoying the scenery and the tranquil atmosphere of the beach."
[0042] C. Comment Generation Process Next, a specific comment generation operation performed by the comment generation device 100 will be described.
[0043] C-1. Specific Examples of Instructions Instructions can be considered meta-information that describes what a user specifically wants to know from an image, and can be used to temporarily incorporate the results of analyzing the details of an input image. Figure 9 shows an example of an instruction that is input to the comment generation device 100 along with an image. The instruction shown in Figure 9 has a format that describes three items: "Name of object of interest," "Image processing to be used," and "Instruction to speak."
[0044] "Name of object of interest" instructs the object detection unit 110 of the name of the object to be detected in the input image. "Image processing to use" instructs the image content analysis unit 120 on the image processing to be applied to the input image (i.e., which of the face recognition, character recognition, and facial expression recognition recognition processes should be performed). Two or more recognition processes can be specified with "Image processing to use". However, it is not necessary to specify "Image processing to use" in the instruction. All recognition processes may always be performed on the input image within the image content analysis unit 120.
[0045] The "utterance instruction sentence" describes instructions for a comment sentence to be generated as an utterance of the dialogue agent in the form of a conversation between the user and the dialogue agent. For example, the "utterance instruction sentence" includes tags created in advance in the user's utterance sentence to be replaced with the detection result of the target detection unit 110 or each recognition result obtained by the recognition processing in the image content analysis unit 120 specified in the "image processing to use" field. The lower part of Figure 9 also shows a list of tags defined for each detection result and recognition result to be replaced with the recognition result. In the "utterance instruction sentence" shown in the upper part of Figure 9, the user's utterance sentence is embedded with a tag <caption_result_1> for replacement with the image caption result from the image caption generator 121, a tag <face_result_1> for replacement with the face recognition result from the face recognizer 122, and a tag <detection_target_1> for replacement with the object detection result from the object detector 111.
[0046] The detection result integration unit 130 completes the "utterance instruction sentence" by performing an integration process in which each tag in the "utterance instruction sentence" is replaced with the detection result of the target detection unit 110 for the input image and each recognition result in the image content analysis unit 120. Then, the comment concretization unit 140 generates a comment sentence to be spoken by the dialogue agent in response to the input image, based on the "utterance instruction sentence" after the tags have been replaced with the detection results and recognition results.
[0047] 9, "person" is specified as the "name of object of interest," and "image caption" and "face recognition" are specified as the "image processing to be used." Furthermore, as "utterance instructions," the following conversational sentences between the user and the AI agent are described: User: "Hello, tell me about yourself." AI: "I'm an AI agent. Is there anything I can help you with?" User: "<caption_result_1>. This person's name is <face_result_1>. Please comment on this <detection_result_1>." Then, the detection result integration unit 130 can replace the tag <caption_result_1> in the user part's spoken sentence with the image caption result from the image caption generator 121, replace the tag <face_result_1> with the face recognition result from the face recognizer 122, and replace the tag <detection_target_1> with the object detection result from the object detector 111, thereby completing the spoken instruction sentence.
[0048] C-2. Specific Processing Operations Fig. 10 shows, in the form of a flowchart, the processing procedure by which the comment generation device 100 generates a comment text for an input image based on a directive text. Below, the processing operations executed by the comment generation device 100 will be described with reference to this flowchart.
[0049] When an image and an instruction are input to the comment generation device 100 (step S1001), the comment generation device 100 performs object detection in the target detection unit 110 and recognition processing in the image content analysis unit 120 for each input image.
[0050] In step S1002, the target-of-interest detection unit 110 attempts to detect the object specified by the "target-of-interest object name" in the instruction sentence of the utterance (step S1002). If the target-of-interest detection unit 110 detects the target-of-interest object from the input image (Yes in step S1002), it cuts out the target-of-interest object from the input image (step S1003).
[0051] Next, the image content analysis unit 120 sequentially performs the image recognition (or all of the image caption, face recognition, character recognition, and facial expression recognition) specified in the "image processing to use" command in the utterance, and stores each result individually (step S1004).
[0052] After the image content analysis unit 120 has performed all image processing instructed by the instruction sentence (or all image processing possible within the image content analysis unit 120) and saved the results of each, the detection result integration unit 130 performs an integration process, i.e., replaces each tag in the "utterance instruction sentence" with the detection results of the target detection unit 110 for the input image or the recognition results corresponding to each tag saved within the image content analysis unit 120, thereby completing the "utterance instruction sentence" (step S1005).
[0053] Then, based on the completed "utterance instruction sentence," the comment concretization unit 140 generates a specific comment sentence that the AI agent will utter in response to the input image (step S1006), outputs it to the AI agent (step S1007), and then terminates this processing.
[0054] D. Examples In this section D, several examples will be described with reference to the drawings in which the comment generation device 100 inputs an image and an instruction sentence to generate a specific comment for the image of an AI agent. In all of the examples, the comment generation device 100 operates according to the processing procedure shown in FIG.
[0055] D-1. Example of generating a comment using object detection, image captioning, and face recognition In this section D-1, an example of generating a specific comment for an image using the object detection result by the target detection unit 110 together with the image caption generator 121 and face recognizer 122 in the image content analysis unit 120 will be described with reference to FIG. 11 .
[0056] An instruction statement is input to the comment generation device 100 along with an image. The input image is a live-action image of a man wearing glasses and a suit. The instruction statement also specifies "person" as the name of the object to be focused on, and specifies image caption and face recognition as the image processing to be used.
[0057] When the target-of-interest detection unit 110 detects a "person" specified in the "name of the object of interest" in the spoken instruction sentence from the input image, the target-of-interest detection unit 110 cuts out the image portion of the person from the input image.
[0058] Next, the image content analysis unit 120 sequentially executes the image caption and face recognition processing specified in the instruction sentence, and saves the generated image caption "A man wearing glasses and a suit" and the name of the recognized face "Suzuki Taro."
[0059] Next, the result integration unit 130 performs an integration process to replace each tag <caption_result_1>, <face_result_1>, and <detection_target_1> in the "utterance instruction sentence" with the saved image caption "A man wearing glasses and a suit," the name of the recognized face "Suzuki Taro," and the name of the object of interest "person," thereby obtaining a sentence that integrates the detection results: "A man wearing glasses and a suit. His name is Suzuki Taro. Please comment on this person."
[0060] Then, the comment concretization unit 140 uses the Text to Text model to generate a concrete comment sentence, "Suzuki Taro seems to be a very intelligent and successful man. He is also well-groomed and polite," to be uttered by the AI agent in response to the input image from the sentence that integrates the detection results, and outputs this to the AI agent.
[0061] It should be fully understood from the example shown in FIG. 11 that the comment generation device 100 can generate a specific comment based on the face recognition result for a person detected from a live-action image of the person.
[0062] D-2. Example of generating a comment using object detection and image captioning In this section D-2, an example of generating a specific comment for an image using only the object detection result by the target detection unit 110 and the image caption generator 121 in the image content analysis unit 120 will be described with reference to FIG. 12.
[0063] An instruction statement is input to the comment generation device 100 along with an image. The input image is an image of a smartphone displaying an image on its screen. The instruction statement specifies "smartphone" as the name of the object to be focused on, and specifies only the image caption as the image processing to be used. The object to be focused on is not limited to a person, and can be anything, such as an animal, a plant, a mechanical device, or a figurine.
[0064] When the target-of-interest detection unit 110 detects the "smartphone" specified in the "target-of-interest object name" in the spoken instruction sentence from the input image, the target-of-interest detection unit 110 cuts out the image portion of the smartphone from the input image.
[0065] Next, within the image content analyzer 120, the image capture generator 121 executes the image caption specified in the directive and saves the generated image caption "Tray with food on table."
[0066] Next, the result integration unit 130 performs an integration process to replace the tag <caption_result_1> in the "utterance instruction sentence" with the saved image caption "A tray with food on the table," thereby obtaining a sentence that integrates the detection results: "A tray with food on the table. Please comment on this image."
[0067] Then, the comment concretization unit 140 uses a text-to-text model to generate a concrete comment sentence, "Is that today's meal? It looks delicious!", from the sentence that integrates the detection results, to be spoken by the AI agent in response to the input image, and outputs this to the AI agent.
[0068] From the example shown in FIG. 12, it should be fully understood that the comment generation device 100 can generate a specific comment for an object displayed on a screen from a live image of an information terminal having a screen.
[0069] D-3. Example of generating a comment in a virtual space using object detection and image captioning In this section D-3, an example of generating a specific comment for a user's avatar in a virtual space by the comment generation device 100 will be described with reference to Fig. 13. However, the comment is generated using only the object detection result by the target detection unit 110 and the image caption generator 121 in the image content analysis unit 120.
[0070] An instruction statement is input together with an image to the comment generation device 100. The input image is an image of a virtual space, and the instruction statement specifies "avatar" as the name of the object to be focused on, and specifies only image caption as the image processing to be used.
[0071] When the target-of-interest detection unit 110 detects the "avatar" indicated by the "name of the target-of-interest object" in the spoken instruction sentence from the input image of the virtual space, the target-of-interest detection unit 110 cuts out the image portion of the avatar from the input image.
[0072] Next, within the image content analysis unit 120, the image capture generator 121 applies the image caption specified in the instruction to the cut-out image and saves the generated image caption "Girl wearing black shorts and a pink T-shirt."
[0073] Next, the result integration unit 130 performs an integration process to replace the tag <caption_result_1> in the "utterance instruction sentence" with the saved image caption "girl wearing black shorts and a pink T-shirt."
[0074] Then, the comment concretization unit 140 uses the Text to Text model to generate a concrete comment sentence, "Your avatar looks great in a pink T-shirt and black shorts!", to be uttered by the AI agent in response to the input image from the sentence integrating the detection results, and outputs the comment sentence to the AI agent.
[0075] It should be fully understood from the example shown in FIG. 13 that the comment generation device 100 can generate a specific comment for an avatar even from an image that is not a real image, such as an image in a virtual space.
[0076] D-4. Example of generating a comment using object detection, image captioning, and facial expression recognition In this section D-4, an example of generating a specific comment for an image using the object detection result by the target detection unit 110, as well as the image caption generator 121 and facial expression recognizer 124 in the image content analysis unit 120, will be described with reference to FIG. 14.
[0077] An instruction statement is input to the comment generation device 100 along with an image. The input image is a live-action image of a man wearing sunglasses. The instruction statement also specifies "person" as the name of the object to be focused on, and specifies image caption and facial expression recognition as the image processing to be used.
[0078] When the target-of-interest detection unit 110 detects a "person" specified in the "name of the object of interest" in the spoken instruction sentence from the input image, the target-of-interest detection unit 110 cuts out the image portion of the person from the input image.
[0079] Next, the image content analysis unit 120 sequentially executes the image caption and facial expression recognition processes specified in the instruction sentence, and saves the generated image caption "A smiling man wearing sunglasses" and the recognized facial expression "Joy."
[0080] Next, the result integration unit 130 performs an integration process to replace each tag <caption_result_1>, <face_exp_result_1>, and <detection_target_1> in the "utterance instruction sentence" with the saved image caption "A man wearing sunglasses and smiling," the recognized facial expression "Smiling," and the name of the object of interest "Person," thereby obtaining a sentence that integrates the detection results: "A man wearing sunglasses and smiling. This person's expression is smiling. Please comment on this person."
[0081] Then, the comment concretization unit 140 uses the Text to Text model to generate a concrete comment sentence, "The man wearing sunglasses looks cool and confident. He looks like he's having fun and is probably having a great day," to be spoken by the AI agent in response to the input image from the sentence that integrates the detection results, and outputs this to the AI agent.
[0082] It should be fully understood from the example shown in FIG. 14 that the comment generation device 100 can generate a specific comment based on the facial expression recognition result for a person detected from a live-action image of the person.
[0083] D-5. Example of generating a comment using object detection, image captioning, and character recognition In this section D-5, an example of generating a specific comment for an image using the object detection result by the target detection unit 110 together with the image caption generator 121 and character recognizer 123 in the image content analysis unit 120 will be described with reference to FIG. 15.
[0084] An instruction statement is input to the comment generation device 100 along with an image. The input image is an image of a picture book opened to a certain page. The instruction statement specifies "book" as the name of the object to be focused on, and specifies image caption and character recognition as the image processing to be used.
[0085] When the attention object detection unit 110 detects the "book" specified in the "name of the object of attention" in the spoken instruction sentence from the input image, the attention object detection unit 110 cuts out the image portion of the picture book from the input image.
[0086] Next, the image content analysis unit 120 sequentially executes the image caption and character recognition processing specified in the instruction sentence, and saves the generated image caption "Picture of a brown bear" and the character recognition result "Um, who am I again?"
[0087] Next, the result integration unit 130 performs an integration process to replace each tag <caption_result_1> and <ocr_result_1> in the "utterance instruction sentence" with the saved image caption "Picture of a brown bear" and the character recognition result "Um, who am I again?", thereby obtaining the sentence "Picture of a brown bear. Text: Um, who am I again?" that integrates the detection results.
[0088] Then, the comment concretization unit 140 uses the Text to Text model to generate a specific comment sentence, "The illustration of the brown bear is very cute. The story of the picture book is about a brown bear who has forgotten its own name. The brown bear no longer knows its own name," from the sentence that integrates the detection results, and outputs this to the AI agent.
[0089] From the example shown in FIG. 15 , it should be fully understood that the comment generation device 100 can generate a specific comment sentence based on the character recognition results of text printed on an object detected from a live-action image of the object including text.
[0090] D-6. Example of Generating Comments from Multiple Images Using Object Detection, Image Captioning, and Character Recognition Up until now, we have explained an example of generating specific comments for a single image. In contrast, in this section D-6, we will explain an example of generating specific comments for multiple images with reference to FIG. 16. However, the example shown in FIG. 16 assumes the use of the image caption generator 121 and character recognizer 123 in the image content analysis unit 120 in addition to the object detection results from the target detection unit 110.
[0091] An instruction statement is input to the comment generation device 100 along with images. The input images are two images: one of two penguins playing and one of the entrance to a zoo. The instruction statement specifies "penguin" as the name of the object of interest in the first image, but does not specify the name of the object of interest in the second image, and specifies an image caption as the image processing to be used for the first image and character recognition to be used for the second image.
[0092] When the target-of-interest detection unit 110 detects two "penguins" in the first input image, as specified in the "target-of-interest object name" in the spoken instruction, the target-of-interest detection unit 110 cuts out the image portion of the two penguins from the input image. Furthermore, since the target-of-interest object name in the second input image is "none," the target-of-interest detection unit 110 does not perform object detection or cut out the detected objects from the second input image.
[0093] Next, within the image content analysis unit 120, the image capture generator 121 executes the image caption specified in the instruction statement on the first input image and saves the generated image caption "Two penguins playing." Also, the character recognizer 123 executes character recognition processing on the second input image and saves the character recognition result "ZOO."
[0094] Next, the result integration unit 130 replaces each tag <caption_result_1> and <ocr_result_2> in the "speech instruction sentence" with the image caption "Two penguins playing." saved for the first input image and the character recognition result "ZOO" saved for the second input image, and performs an integration process to replace the tag <detection_target_1> with the name of the object of interest in the first input image, "Penguin," thereby obtaining a sentence that integrates the detection results: "Two penguins playing. The word ZOO is written. Please comment on this penguin."
[0095] Then, the comment concretization unit 140 uses a text-to-text model to generate a concrete comment sentence, "This is a photo of two penguins at the zoo. They look so cute playing," from the sentence that integrates the detection results, to be spoken by the AI agent in response to the two input images, and outputs this to the AI agent.
[0096] 16, the comment generation device 100 can generate a specific comment from a series of images by combining multiple images and specifying the target and image processing to be used for each image, and inputting an instruction sentence including a speech instruction having a tag to be replaced with the recognition result of each image. This usage can be applied to, for example, generating a diary from a series of images.
[0097] D-7. Example of Generating a Comment for a Captured Image This section D-7 describes an example of generating a specific comment from an AI agent for an image captured by a webcam. Here, we assume a situation in which a user shows a photo to an AI agent by showing the photo to the webcam of an information terminal that displays the AI agent on its screen. FIG. 17 shows a virtual space in which an AI agent is present, displayed on the screen of an information terminal 1700 equipped with a webcam. The webcam 1701 is built into the bezel of the information terminal 1700. FIG. 18 also shows a user holding a photo 1800 and showing it to the webcam (not shown in FIG. 18). The photo 1800 depicts a bee sitting on a flower and collecting nectar.
[0098] 19 shows a processing procedure for the comment generation device 100 to generate a specific comment text of an AI agent for an image captured by a web camera. However, in the example shown in Fig. 19, it is assumed that only the object detection result by the attention object detection unit 110 and the image caption generator 121 in the image content analysis unit 120 are used.
[0099] An instruction statement is input to the comment generation device 100 together with an image of a photo taken with a web camera (see FIG. 18 ). The instruction statement specifies “photo” as the name of the object to be focused on, and specifies only image caption as the image processing to be used.
[0100] When the target detection unit 110 detects the "photograph" indicated by the "name of the object of interest" in the spoken instruction sentence from the input webcam capture image, the target detection unit 110 cuts out the image portion of the photo from the input image.
[0101] Next, within the image content analysis unit 120, the image capture generator 121 applies the image caption specified in the directive to the extracted image and saves the generated image caption "Bee on a pink flower."
[0102] Next, the result integration unit 130 performs an integration process to replace the tag <caption_result_1> in the “utterance instruction sentence” with the image caption “a bee on a pink flower” stored by the image capture generator 121 .
[0103] Next, the comment concretization unit 140 uses the Text to Text model to generate a concrete comment sentence, "What a cute photo of the bee on the pink flower," to be uttered by the AI agent in response to the photo from the sentence integrating the detection results. Then, as shown in Fig. 20, the AI agent displayed on the screen of the information terminal is made to utter, "What a cute photo of the bee on the pink flower."
[0104] It should be fully understood from the examples shown in FIGS. 17 to 20 that the comment generation device 100 can generate specific comment sentences for images captured by the web camera of an AI agent.
[0105] D-8. Example of Generating a Comment for an Image Showing Multiple People Section D-1 above described an example in which the comment generation device 100 generates a comment for an image showing only one person. Section D-7 describes an example in which the comment generation device 100 generates a comment for an image showing multiple people. Here, it is assumed that an image showing three men is input as shown in FIG. 21(A), and a specific comment is generated by focusing on only the man standing in the center. FIG. 22 shows a processing procedure for the comment generation device 100 to generate a specific comment for an image showing three men. However, the example shown in FIG. 22 assumes that only the object detection results by the target-of-interest detection unit 110 and the image caption generator 121 in the image content analysis unit 120 are used.
[0106] An instruction statement is input to the comment generation device 100 along with an image showing three men (see FIG. 21). The instruction statement specifies "people" as the target of attention, specifies "center" as the target position out of right, left, and center, and specifies only image caption as the image processing to be used.
[0107] When the target-of-interest detection unit 110 detects a "man" in the center of the input image, as specified by the "object name of the target of interest" and "target position" in the spoken instruction, the target-of-interest detection unit 110 cuts out a photographic image portion from the input image. Because a "person" is specified as the target of interest, the target-of-interest detection unit 110 detects three people on the right, center, and left of the image from the input image shown in FIG. 21(A) as indicated by the three bold frames in FIG. 21(B). Then, because the target position is specified as "center," the target-of-interest detection unit 110 extracts the person closest to the center of the input image. Here, because object detection alone cannot extract information about the person in the center, the target-of-interest detection unit 110 uses a rule-based algorithm to extract the person closest to the center of the input image, as shown in FIG. 21(C).
[0108] Next, within the image content analysis unit 120, an image capture generator 121 applies the image caption specified in the instruction to the cut-out image and saves the generated image caption "Man standing in a room wearing a suit and tie."
[0109] Next, the result integration unit 130 performs an integration process to replace the tag <caption_result_1> in the “utterance instruction sentence” with the image caption “Man standing in a room wearing a suit and tie” stored by the image capture generator 121 .
[0110] Next, the comment concretization unit 140 uses a text-to-text model to generate a concrete comment sentence, "You look great in a suit! What kind of work do you do?", to be uttered by the AI agent in response to the input image from the sentence that integrates the detection results, and outputs this to the AI agent.
[0111] It should be fully understood from the examples shown in FIGS. 21 and 22 that the comment generation device 100 can generate a specific comment for a specific person from a live-action image in which multiple people appear.
[0112] D-9. Example of generating a comment by an NPC in response to visual information in the Metaverse Section D-7 above described an example in which the comment generation device 100 generates a comment by an avatar in a virtual space in response to an image (a photo submitted by a user). Section D-9 describes an example in which the comment generation device 100 generates a specific comment uttered by an NPC in response to visual information in the Metaverse.
[0113] Here, a metaverse space based on the concept of space is used as an example, as shown in Fig. 23. A logged-in user can enjoy communication and activities with NPCs and avatars of other users through the metaverse space, which gives a sense of space.
[0114] By applying the present disclosure, a screenshot of an arbitrary viewpoint in the Metaverse space along with a speech instruction can be input into the comment generation device 100 to generate a specific comment that refers to something in the Metaverse space and have an NPC speak it. For example, when a user speaks to an NPC, the comment to be spoken by the NPC can be generated from a screenshot of the user's field of view. Conversely, when an NPC speaks to a user, the comment to be spoken by the NPC can be generated from a screenshot of the NPC's field of view. Furthermore, when a user asks a question about the situation in the space, such as "Is there anyone in this room?", the comment to be spoken by the NPC can be generated from a screenshot of the field of view looking down from the ceiling.
[0115] Furthermore, as mentioned in the section [Background Art], the Metaverse space has the problem of being deserted during times when there are few users. In response to this problem, by applying the present disclosure, NPCs can freely interact with each other using visual information such as CG images within the Metaverse space, making the Metaverse space lively even during times when there are few users. By generating specific comments that can describe what the Metaverse residents are actually seeing and having the NPCs speak them, users' interest can be drawn to the Metaverse space.
[0116] When generating comments for an NPC to speak based on visual information in the metaverse space, one operational challenge is that the user's perspective and the NPC's perspective do not match, so even if the user asks a question based on their own vision, the conversation with the NPC does not flow smoothly.
[0117] 24 and 25 show a user avatar 2401 and an NPC 2402 standing facing each other and conversing in the metaverse space. However, FIG. 24 shows the viewpoint of the user 2401 in the metaverse space, with the user avatar 2401 standing in the foreground of the screen and the NPC 2402 standing in the background. On the other hand, FIG. 25 shows the viewpoint of the NPC 2402 in the metaverse space, with the NPC 2402 standing in the foreground of the screen and the user avatar 2401 standing in the background. As can be seen by comparing FIGS. 24 and 25 , in the field of view of the user avatar 2401, two whales 2411 and 2412 are flying in the sky, whereas in the field of view of the NPC 2402, there is a starry night sky, but not a single whale. In this case, a possible answer from the NPC 2402 to the user's question, "What creature is that floating in the sky?" is, "It's a whale." However, even if a screenshot of the NPC 2402's viewpoint is input to the comment generation device 100, the whale is not in the NPC 2402's field of vision, and therefore the NPC 2402 cannot give an expected answer to the user's question.
[0118] Therefore, to solve the above problem, we propose a method for generating NPC comments from visual information from multiple viewpoints in the metaverse space.
[0119] 26 shows a processing procedure for the comment generation device 100 to generate a comment text of an NPC based on screenshots of multiple viewpoints in the Metaverse space. However, FIG. 26 also shows a processing procedure for generating a comment text of an NPC in a question-and-answer session in which the NPC answers a question from a user. In addition, the example shown in FIG. 26 assumes that only the object detection result by the attention target detection unit 110 and the image caption generator 121 in the image content analysis unit 120 are used.
[0120] An instruction statement is input to the comment generation device 100 along with two images, screenshots of the user's and NPC's fields of view. The instruction statement specifies "sky" as the name of the object to be focused on in both images, and also specifies an image caption for the image processing to be used.
[0121] The target of interest detection unit 110 detects and cuts out the "sky" indicated in the "target of interest object name" image instruction statement of the screenshot of each field of view of the user and NPC who spoke from among the images of the screenshot of each field of view of the user and NPC.
[0122] Next, within the image content analyzer 120, the image capture generator 121 executes the image caption specified in the instruction statement for the images cut out from the screenshots of the user's and NPC's fields of view. In this example, the image capture generator 121 generates the image caption "Two whales flying in the sky" from the image of the "sky" in which two whales 2411 and 2412 are flying, cut out from the screenshot of the user's field of view, and generates the image caption "Starry night sky" from the image of the "sky" in which no whales are present, cut out from the screenshot of the NPC's field of view, and saves these image captions.
[0123] Next, the result integration unit 130 performs an integration process to replace each tag <caption_result_1> and <caption_result_2> in the "utterance instruction sentence" with the image captions "Two whales flying in the sky" and "A starry night sky" saved for the screenshot images of each field of view, thereby obtaining a sentence that integrates the detection results.
[0124] Then, using the Text to Text model, the comment concretization unit 140 can generate a concrete comment sentence "It's a whale," which is in line with the user's conversation and answers the question from the user's avatar 2401, "What is that creature floating in the sky?" from the sentence that integrates the detection results, and can have the NPC 2402 utter this.
[0125] 27 shows another processing procedure for the comment generation device 100 to generate a comment text of an NPC based on screenshots of multiple viewpoints in the Metaverse space. However, FIG. 27 also shows a processing procedure for generating a comment text of an NPC when a user requests the NPC to give their impressions on viewpoint images. The example shown in FIG. 27 also assumes the use of only the object detection results by the attention target detection unit 110 and the image caption generator 121 in the image content analysis unit 120.
[0126] An instruction statement is input to the comment generation device 100 along with two images, screenshots of the user's and NPC's fields of view. The instruction statement specifies "sky" as the name of the object to be focused on in both images, and also specifies an image caption for the image processing to be used.
[0127] The focus detection unit 110 detects and cuts out the "sky" specified in the "focus object name" of the image instruction statement of the screenshot of the user's field of view and the NPC's field of view from the images in the screenshots of the user's field of view and the NPC's field of view. Next, within the image content analysis unit 120, the image capture generator 121 executes the image caption specified in the instruction statement on the images cut out from the screenshot of the user's field of view and the NPC's field of view, generating the image caption "Two whales flying in the sky" from the image of "sky" cut out from the screenshot of the user's field of view, and generating the image caption "starry night sky" from the image of "sky" cut out from the screenshot of the NPC's field of view. Next, the result integration unit 130 performs an integration process to replace each tag <caption_result_1> and <caption_result_2> in the "utterance instruction sentence" with the image captions "Two whales flying in the sky" and "A starry night sky" saved for the screenshot images of each field of view, thereby obtaining a sentence that integrates the detection results.
[0128] Then, using the Text to Text model, the comment concretization unit 140 can generate a specific comment sentence that is in line with the user's conversation and that answers the question from the user's avatar 2401, "What do you think about that creature floating in the sky?" from the sentence that integrates the detection results, such as "A whale flying in the sky is a very beautiful sight. The starry night sky is also wonderful. I love seeing scenes like this," and have the NPC 2402 utter this comment sentence.
[0129] 26 and 27 , it should be fully understood that the comment generation device 100 can generate specific comments that refer to things in the metaverse space and have the NPC speak them by inputting a screenshot of an arbitrary viewpoint in the metaverse space together with an utterance instruction into the comment generation device 100. Furthermore, as can be seen by comparing FIGS. 26 and 27 , the comment generation device 100 can generate comments that specifically refer to things that the user wants to know each time by changing the utterance instruction attached to the same input image.
[0130] E. Comparison of Effects of the Present Disclosure with Other Technologies In sections B to D above, the basic configuration and operation of the comment generation process according to the present disclosure and specific examples have been described. In summary, the present disclosure can provide the following effects.
[0131] (Effect 1) It is possible to generate comments for natural dialogue with users while using image captioning. (Effect 2) By dividing the process of generating comments from images into multiple steps and analyzing the details of the image content, it is possible to generate specific and informative comments. (Effect 3) In the real world, users and conversational agents can share visual information and communicate. Furthermore, in virtual spaces such as the Metaverse, NPCs can share visual information and communicate with users.
[0132] On the other hand, image captioning (see Non-Patent Document 1) is known as a machine learning model that generates text directly from images. More recently, OpenAI has announced GPT-4 (Generative Pre-trained Transformer 4), a large-scale language model. GPT-4 supports image input and can generate answers to user questions with 10 times the number of characters of ChatGPT.
[0133] In contrast, the present disclosure divides the process of generating a comment from an image into parts, and the results of analyzing the details of the image content are first converted into meta-information called instruction sentences before generating the comment sentences, which has the advantage of requiring less inference cost than GPT-4.
[0134] Furthermore, according to the present disclosure, in the process of converting an input image into meta information, by specifying the target of interest in object detection and the recognition processing to be used when analyzing the image content, it is possible to more specifically extract specific information from the input image.
[0135] Furthermore, the present disclosure also has the advantage that a comment can be generated using multiple images.
[0136] F. Hardware Configuration of Information Processing Device This section F describes the hardware configuration of an information processing device that is applied to the comment generation device 100. Fig. 28 shows an example of the hardware configuration of an information processing device 2000.
[0137] The information processing device 2000 shown in FIG. 28 includes a CPU (Central Processing Unit) 2001, a ROM (Read Only Memory) 2002, a RAM (Random Access Memory) 2003, a host bus 2004, a bridge 2005, an expansion bus 2006, an interface unit 2007, an input unit 2008, an output unit 2009, a storage unit 2010, a drive 2011, and a communication unit 2013.
[0138] The CPU 2001 controls the overall operation of the information processing device 2000 in accordance with various programs. The ROM 2002 stores programs (such as a basic input / output system) and calculation parameters used by the CPU 2001 in a nonvolatile manner. The RAM 2003 is used to load programs used in the execution of the CPU 2001 and to temporarily store parameters such as work data that change as appropriate during program execution. Programs loaded into the RAM 2003 and executed by the CPU 2001 include, for example, various application programs and an operating system (OS).
[0139] The CPU 2001, ROM 2002, and RAM 2003 are interconnected by a host bus 2004, which includes a CPU bus and other components. The CPU 2001 executes various application programs in an execution environment provided by an OS through the cooperative operation of the ROM 2002 and RAM 2003, thereby enabling various functions and services. If the information processing device 2000 is a personal computer, the OS may be, for example, Microsoft Windows (registered trademark), Unix (registered trademark), or a successor OS. The application programs include an application for operating as the comment generation device 100, and program modules for operating as each of the object detector 111, image caption generator 121, face recognizer 122, character recognizer 123, and facial expression recognizer 124.
[0140] The host bus 2004 is connected to an expansion bus 2006 via a bridge 2005. The expansion bus 2006 is, for example, a PCI (Peripheral Component Interconnect) bus or PCI Express, and the bridge 2005 is based on the PCI standard. However, the information processing device 2000 does not need to be configured so that the circuit components are separated by the host bus 2004, bridge 2005, and expansion bus 2006, and may be implemented so that almost all circuit components are interconnected by a single bus (not shown).
[0141] The interface unit 2007 connects peripheral devices such as an input unit 2008, an output unit 2009, a storage unit 2010, a drive 2011, and a communication unit 2013 in accordance with the standards of the expansion bus 2006. However, not all of the peripheral devices shown in Fig. 28 are necessarily required, and the information processing device 2000 may further include peripheral devices not shown. Furthermore, the peripheral devices may be built into the main body of the information processing device 2000, or some of the peripheral devices may be externally connected to the main body of the information processing device 2000.
[0142] The input unit 2008 is composed of an input control circuit that generates an input signal based on an input from a user and outputs the signal to the CPU 2001. If the information processing device 2000 is a personal computer, the input unit 2008 may include a keyboard, a mouse, a touch panel, and may further include a camera and a microphone. The output unit 2009 includes a display device such as a liquid crystal display (LCD) device, an organic electroluminescence (EL) display device, and an LED (light emitting diode).
[0143] The storage unit 2010 stores files such as programs (applications, OS, etc.) executed by the CPU 2001 and various data. The storage unit 2010 is configured with a large-capacity storage device such as an SSD (Solid State Drive) or an HDD (Hard Disk Drive), but may also include an external storage device.
[0144] The removable storage medium 2012 is a storage medium configured as a cartridge, such as a microSD card. The drive 2011 performs read and write operations on the loaded removable storage medium 113. The drive 2011 outputs data read from the removable storage medium 2012 to the RAM 2003 or the storage unit 2010, and writes data on the RAM 2003 or the storage unit 2010 to the removable storage medium 2012.
[0145] The communication unit 2013 is a device that performs wireless communication such as Wi-Fi (registered trademark), Bluetooth (registered trademark), or a cellular communication network such as 4G or 5G. The communication unit 2013 may also include terminals such as a Universal Serial Bus (USB) or a High-Definition Multimedia Interface (HDMI) (registered trademark), and may further include a function for performing HDMI (registered trademark) communication with a USB device such as a scanner or printer, or a display.
[0146] The information processing device 2000 may be a general computer system such as a personal computer (PC). Alternatively, the information processing device 2000 may be an AI agent that interacts with a user, a game device that operates an NPC, an interactive robot, etc. The comment generation device 100 can be constructed using one information processing device 2000, but the comment generation device 100 may also be constructed by combining multiple information processing devices 2000.
[0147] The present disclosure has been described in detail above with reference to specific embodiments. However, the present disclosure should not be construed as being limited to the above-described embodiments, and it is obvious that those skilled in the art can modify or substitute the embodiments without departing from the spirit of the present disclosure. Furthermore, the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited thereto, and additional effects not described in this specification may exist.
[0148] The present disclosure can be applied to NPCs, conversational agents, conversational robots, etc., to automatically generate comments from visual information and control the content of speech according to the situation, thereby stimulating conversations with users and livening up the metaverse space.
[0149] For example, when the present disclosure is applied to an NPC, it is possible to automatically generate a comment based on a landscape image displayed in the Metaverse space, to automatically generate a comment based on the viewpoint images of the NPC and the user, or to automatically generate a comment based on a camera image captured in real space.Furthermore, when the present disclosure is applied to a mobile robot, it is possible to automatically generate a specific comment based on a landscape image at each point on the robot's movement path.
[0150] Although this specification has focused on embodiments for automatically generating comments from visual information, the present disclosure can also be applied to automatically generating specific comments based on various media and content, such as still images, videos, audio, music, and text.
[0151] In short, the present disclosure has been described in the form of examples, and the contents of the specification should not be interpreted as limiting. To determine the gist of the present disclosure, the claims should be taken into consideration.
[0152] The series of processes described in this specification can be executed by hardware, software, or a configuration that combines hardware and software. When executing processes by software, a program recording a processing sequence related to realizing the present disclosure is installed in memory in a computer incorporated in dedicated hardware and executed. It is also possible to install the program in a general-purpose computer capable of executing various processes and execute the processes related to realizing the present disclosure.
[0153] The program can be stored in advance on a recording medium installed in the computer, such as a HDD, SSD, or ROM. Alternatively, the program can be temporarily or permanently stored on a removable recording medium such as a flexible disk, CD-ROM (Compact Disc Read Only Memory), MO (Magneto Optical) disk, DVD (Digital Versatile Disc), BD (Blu-Ray Disc (registered trademark)), magnetic disk, or USB memory. Using such a removable recording medium, a program related to the realization of the present disclosure can be provided as so-called package software.
[0154] The program may also be transferred wirelessly or via a wire from a download site to a computer via a network such as a wide area network (WAN) typified by cellular, a local area network (LAN), the Internet, etc. The computer can receive the program transferred in this manner and install it in a large-capacity storage device such as an HDD or SSD within the computer.
[0155] The present disclosure may also be configured as follows.
[0156] (1) An information processing device comprising: an object of interest detection unit that detects an object of interest from an image based on an instruction sentence; an image content analysis unit that analyzes the content of the image; an integration unit that integrates the detection result of the object of interest detection unit and the analysis result of the image content analysis unit based on the instruction sentence; and a comment concretization unit that generates a comment sentence based on the integration result by the integration unit.
[0157] (2) The information processing device according to (1), wherein the target detection unit includes an object detector and detects, from the image, an image of an object that corresponds to an object name of the target indicated by the instruction sentence.
[0158] (3) The information processing device according to (2), wherein the image content analysis unit includes an image caption generator and generates an image caption describing the content of the image of the object of interest detected by the object detector.
[0159] (4) The information processing device described in (3) above, wherein the image content analysis unit further includes one or more types of recognizers that perform image recognition, and the integration unit integrates the detection results of the target detection unit, the image caption generated by the caption generator, and the recognition results by the one or more types of recognizers based on the instruction sentence.
[0160] (5) The information processing device according to (4), wherein the image content analysis unit includes at least one of a face recognizer, a character recognizer, and a facial expression recognizer.
[0161] (6) The information processing device described in any one of (4) or (5) above, wherein the instruction sentence includes a speech instruction sentence having at least one tag that instructs replacement with the detection result of the target detection unit and the recognition result by the one or more types of recognizers, the integration unit completes the speech instruction sentence by replacing the tag in the speech instruction sentence with the corresponding detection result of the target detection unit and the recognition result by the one or more types of recognizers, and the comment concretization unit generates a specific comment sentence for the image based on the speech instruction sentence completed by the integration unit.
[0162] (7) The information processing device described in (6) above, wherein the image content analysis unit includes an image caption generator and a face recognizer, the instruction sentence includes a speech instruction sentence having tags that specify a person as a focus for a live-action image of a person and instruct to replace the tags with the caption generation result for the person by the image caption generator and the face recognition result by the face recognizer, respectively, the integration unit completes the speech instruction sentence by replacing the tags in the speech instruction sentence with the caption generation result by the image caption generator and the face recognition result by the face recognizer, respectively, and the comment concretization unit generates a comment sentence for the person whose face has been recognized in the live-action image based on the completed speech instruction sentence.
[0163] (8) The information processing device described in (6) above, wherein the image content analysis unit includes an image caption generator, the instruction sentence includes a speech instruction sentence having a tag that specifies the information terminal as the object of attention for an image captured of the screen of the information terminal and instructs that the speech instruction sentence be replaced with the caption generated by the image caption generator for the screen of the information terminal, the integration unit replaces the tag in the speech instruction sentence with the caption generated by the image caption generator to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence for an object displayed on the screen of the information terminal based on the completed speech instruction sentence.
[0164] (9) The information processing device described in (6) above, wherein the image content analysis unit includes an image caption generator, the instruction sentence includes a speech instruction sentence having tags that specify an avatar as the focus for the image in the virtual space and instruct the replacement with the caption generation result for the avatar by the image caption generator, the integration unit completes the speech instruction sentence by replacing the tags in the speech instruction sentence with the caption generation result by the image caption generator, and the comment concretization unit generates a comment sentence for the avatar based on the completed speech instruction sentence.
[0165] (10) The information processing device described in (6) above, wherein the image content analysis unit includes an image caption generator and a facial expression recognizer, the instruction sentence specifies a person as a focus in a live-action image of a person, and includes a speech instruction sentence having tags that instruct the person to be replaced with the caption generation result for the person by the image caption generator and the facial expression recognition result for the detected face by the facial expression recognizer, respectively, the integration unit completes the speech instruction sentence by replacing each tag in the speech instruction sentence with the caption generation result by the image caption generator and the facial expression recognition result by the facial expression recognizer, respectively, and the comment concretization unit generates a comment sentence for the facial expression of the person in the live-action image based on the completed speech instruction sentence.
[0166] (11) The information processing device described in (6) above, wherein the image content analysis unit includes an image caption generator and a character recognizer, the instruction sentence specifies an object as a focus in a live-action image of the object including text, and includes a speech instruction sentence having tags that instruct the object to be replaced with the caption generation result for the object by the image caption generator and the character recognition result of the text printed on the object by the character recognizer, respectively, the integration unit completes the speech instruction sentence by replacing each tag in the speech instruction sentence with the caption generation result by the image caption generator and the character recognition result by the character recognizer, respectively, and the comment concretization unit generates a comment sentence for the text printed on the object in the live-action image based on the completed speech instruction sentence.
[0167] (12) The information processing device described in (6) above, wherein the image content analysis unit is equipped with multiple types of recognizers, the instruction sentence indicates which recognizer from the image content analysis unit to use for each of the multiple images, and includes a speech instruction sentence having tags that indicate replacement with the recognition result obtained by the recognizer indicated by each image, the integration unit replaces each tag in the speech instruction sentence with the recognition result obtained by the recognizer indicated by each image, and completes the speech instruction sentence, and the comment concretization unit generates comment sentences for the multiple images based on the completed speech instruction sentence.
[0168] (13) The information processing device described in (6) above, wherein the instruction sentence designates a photo taken with a camera of an information terminal on which the AI agent is operating as an object of attention and includes a speech instruction sentence having a tag that instructs that the tag be replaced with the recognition result of the photo of the object of attention by a recognizer in the image content analysis unit, the integration unit replaces the tag in the speech instruction sentence with the recognition result to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence to be spoken by the AI agent regarding the photo taken with the camera based on the completed speech instruction sentence.
[0169] (14) The information processing device described in (6) above, wherein the instruction sentence specifies the position of a person of interest in an image showing multiple people and includes a speech instruction sentence having a tag that instructs replacement with the recognition result for the person of interest by a recognizer in the image content analysis unit, the integration unit replaces the tag in the speech instruction sentence with the recognition result to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence for the person of interest based on the completed speech instruction sentence.
[0170] (15) The information processing device described in (6) above, wherein the instruction sentence includes a speech instruction sentence having a tag that specifies an object of attention for an arbitrary viewpoint image in the virtual space and instructs that the tag be replaced with the recognition result for the object of attention by a recognizer in the image content analysis unit, the integration unit replaces the tag in the speech instruction sentence with the recognition result to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence to be spoken by a character in the virtual space to the object of attention based on the completed speech instruction sentence.
[0171] (16) The information processing device according to (15), wherein the arbitrary viewpoint image includes at least one of a screenshot of a viewpoint of a user's avatar or a screenshot of a viewpoint of the character.
[0172] (17) An information processing method comprising: an object of interest detection step of detecting an object of interest from an image based on an instruction sentence; an image content analysis step of analyzing the content of the image; an integration step of integrating the detection result in the object of interest detection step and the analysis result in the image content analysis step based on the instruction sentence; and a comment concretization step of generating a comment sentence based on the integration result in the integration step.
[0173] (18) A computer program written in a computer-readable format to cause a computer to function as: an object of interest detection unit that detects an object of interest from an image based on an instruction sentence; an image content analysis unit that analyzes the content of the image; an integration unit that integrates the detection result of the object of interest detection unit and the analysis result of the image content analysis unit based on the instruction sentence; and a comment concretization unit that generates a comment sentence based on the integration result by the integration unit.
[0174] 100...Comment generation device, 110...Target detection unit, 111...Object detector, 120...Image content analysis unit, 121...Image caption generator, 122...Face recognizer, 123...Character recognizer, 124...Facial expression recognizer, 130...Detection result integration unit, 131...Detection result integration unit, 140...Comment materialization unit, 141...Comment generator, 201...Machine learning model (image caption model), 301...Object detector (Faster R-CNN), 302...Transformer, 401...First machine learning model, 402...Second machine learning model, 403...Facial image database, 501, 601...Machine learning model (character recognition), 701...Machine learning model (facial expression recognition), 801...Test-to-Text model, 1700...Information terminal, 1701...Web camera 2000...information processing device, 2001...CPU, 2002...ROM, 2003...RAM, 2004...host bus, 2005...bridge, 2006...extension bus, 2007...interface unit, 2008...input unit, 2009...output unit, 2010...storage unit, 2011...drive, 2012...removable recording medium, 2013...communication unit
Claims
1. An information processing device comprising: an attention target detection unit that detects an attention target from an image based on an instruction sentence; an image content analysis unit that analyzes the content of the image; an integration unit that integrates the detection result of the attention target detection unit and the analysis result of the image content analysis unit based on the instruction sentence; and a comment concretization unit that generates a comment sentence based on the integration result by the integration unit.
2. The information processing device according to claim 1, wherein the target detection unit includes an object detector and detects from the image an image of an object that corresponds to the target object name specified in the instruction sentence.
3. The information processing device according to claim 2, wherein the image content analysis unit includes an image caption generator and generates an image caption describing the content of the image of the object of interest detected by the object detector.
4. The information processing device of claim 3, wherein the image content analysis unit further includes one or more types of recognizers that perform image recognition, and the integration unit integrates, based on the instruction sentence, the detection result of the target detection unit, the image caption generated by the caption generator, and the recognition result by the one or more types of recognizers.
5. The information processing device according to claim 4, wherein the image content analysis unit comprises at least one of a face recognizer, a character recognizer, and a facial expression recognizer.
6. The information processing device of claim 4, wherein the instruction sentence includes a spoken instruction sentence having at least one tag that instructs to replace the detection result of the target detection unit and the recognition result by the one or more types of recognizers, the integration unit completes the spoken instruction sentence by replacing the tag in the spoken instruction sentence with the corresponding detection result of the target detection unit and the recognition result by the one or more types of recognizers, and the comment concretization unit generates a specific comment sentence for the image based on the spoken instruction sentence completed by the integration unit.
7. The information processing device of claim 6, wherein the image content analysis unit includes an image caption generator and a face recognizer, the instruction sentence includes a speech instruction sentence having tags that specify a person as an object of attention in a live-action image of a person and instruct to replace the person with the caption generation result by the image caption generator and the face recognition result by the face recognizer, respectively, the integration unit completes the speech instruction sentence by replacing each tag in the speech instruction sentence with the caption generation result by the image caption generator and the face recognition result by the face recognizer, respectively, and the comment concretization unit generates a comment sentence for the person whose face has been recognized in the live-action image based on the completed speech instruction sentence.
8. The information processing device of claim 6, wherein the image content analysis unit includes an image caption generator, the instruction sentence includes a speech instruction sentence having a tag that specifies an information terminal as an object of attention for an image captured of the screen of the information terminal and instructs that the speech instruction sentence be replaced with the result of caption generation by the image caption generator for the screen of the information terminal, the integration unit completes the speech instruction sentence by replacing the tag in the speech instruction sentence with the result of caption generation by the image caption generator, and the comment concretization unit generates a comment sentence for an object displayed on the screen of the information terminal based on the completed speech instruction sentence.
9. The information processing device of claim 6, wherein the image content analysis unit includes an image caption generator, the instruction includes a speech instruction having tags that specify an avatar as an object of attention for an image in a virtual space and instruct the speech instruction to be replaced with the result of caption generation for the avatar by the image caption generator, the integration unit completes the speech instruction by replacing the tags in the speech instruction with the result of caption generation by the image caption generator, and the comment concretization unit generates a comment for the avatar based on the completed speech instruction.
10. The information processing device of claim 6, wherein the image content analysis unit includes an image caption generator and a facial expression recognizer, the instruction sentence includes a speech instruction sentence having tags that specify a person as an object of attention in a live-action image of a person and instruct to replace the result of caption generation for the person by the image caption generator and the result of facial expression recognition of the detected face by the facial expression recognizer, respectively, the integration unit completes the speech instruction sentence by replacing each tag in the speech instruction sentence with the result of caption generation by the image caption generator and the result of facial expression recognition by the facial expression recognizer, respectively, and the comment concretization unit generates a comment sentence for the facial expression of the person in the live-action image based on the completed speech instruction sentence.
11. The information processing device of claim 6, wherein the image content analysis unit includes an image caption generator and a character recognizer, the instruction sentence includes a spoken instruction sentence having tags that specify an object as a focus in a live-action image of the object including text, and that instruct the object to be replaced with the result of caption generation for the object by the image caption generator and the result of character recognition of the text printed on the object by the character recognizer, respectively, the integration unit completes the spoken instruction sentence by replacing each tag in the spoken instruction sentence with the result of caption generation by the image caption generator and the result of character recognition by the character recognizer, respectively, and the comment concretization unit generates a comment sentence for the text printed on the object in the live-action image based on the completed spoken instruction sentence.
12. The information processing device of claim 6, wherein the image content analysis unit is equipped with multiple types of recognizers, the instruction sentence includes a speech instruction sentence having tags that indicate which recognizer to use in the image content analysis unit for each of the multiple images and that indicate replacement with the recognition result obtained by the recognizer indicated from each image, the integration unit replaces each tag in the speech instruction sentence with the recognition result obtained by the recognizer indicated from each image, respectively, to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence for the multiple images based on the completed speech instruction sentence.
13. The information processing device according to claim 6, wherein the instruction sentence includes a speech instruction sentence having a tag that designates a photo taken by a camera of an information terminal on which the AI agent is operating as an object of attention and instructs that the tag be replaced with the recognition result of the photo of the object of attention by a recognizer in the image content analysis unit, the integration unit replaces the tag in the speech instruction sentence with the recognition result to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence to be spoken by the AI agent in response to the photo taken by the camera based on the completed speech instruction sentence.
14. The information processing device of claim 6, wherein the instruction sentence includes a speech instruction sentence having a tag that specifies the position of a person to be focused on in an image containing multiple people and instructs that the instruction sentence be replaced with the recognition result for the person to be focused on by a recognizer in the image content analysis unit, the integration unit replaces the tag in the speech instruction sentence with the recognition result to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence for the person to be focused on based on the completed speech instruction sentence.
15. The information processing device described in claim 6, wherein the instruction sentence includes a speech instruction sentence having a tag that specifies an object of attention for an arbitrary viewpoint image in the virtual space and instructs that the object of attention be replaced with a recognition result for the object of attention by a recognizer in the image content analysis unit, the integration unit replaces the tag in the speech instruction sentence with the recognition result to complete the speech instruction sentence, and the comment concretization unit generates a comment sentence to be spoken by a character in the virtual space to the object of attention based on the completed speech instruction sentence.
16. The information processing device according to claim 15, wherein the arbitrary viewpoint image includes at least one of a screenshot of a viewpoint of a user's avatar or a screenshot of a viewpoint of the character.
17. An information processing method comprising: an attention target detection step of detecting an attention target from an image based on an instruction sentence; an image content analysis step of analyzing the contents of the image; an integration step of integrating the detection result in the attention target detection step and the analysis result in the image content analysis step based on the instruction sentence; and a comment concretization step of generating a comment sentence based on the integration result in the integration step.
18. A computer program written in a computer-readable format to cause a computer to function as: an object of interest detection unit that detects an object of interest from an image based on an instruction sentence; an image content analysis unit that analyzes the content of the image; an integration unit that integrates the detection result of the object of interest detection unit and the analysis result of the image content analysis unit based on the instruction sentence; and a comment concretization unit that generates a comment sentence based on the integration result by the integration unit.
Citation Information
Patent Citations
Image processing device, image processing method and imaging apparatus
JP2012142739A
Posting device
JP2022030170A
Method and electronic device for generating text comment about content
US20190251355A1
Cited By
Caption generation apparatus, caption generation method, and non-transitory computer readable medium
CN123020919A
Summary text generation system, summary text database construction support system, summary text generation method, and summary text generation program
JP2026147491A
system
JP2026155486A
Caption generation device, caption generation method, and program
JP2026178956A
Information processing system, information processing method, and program
JP7861975B1
