Information interaction method and device, equipment, storage medium and program product

By identifying target objects in video or image content and displaying relevant comments in the content interaction system, the problem that users need to operate to view comments is solved, improving Internet interactivity and user experience.

CN118741201APending Publication Date: 2024-10-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310363687.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When users use the Internet, they need to operate on the posted content to view comments, resulting in low interactivity.

Method used

By obtaining video or image content in the content interaction system, object recognition is performed to determine the target content object, and comments related to the target content object are displayed in the video or image content to form barrage information, allowing users to view it without any operation. Comment.

Benefits of technology

It improves the user's interactivity with the content, simplifies the comment viewing process, and enhances the interactive experience between the user and the content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741201A_ABST
    Figure CN118741201A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information interaction method and device, equipment, a storage medium and a program product. In the embodiment of the invention, interaction content published by a first object in a content interaction system is acquired, and the interaction content comprises video or image content; performing object identification on the video or the image content to obtain a plurality of target content objects; obtaining comment content for the interaction content in the content interaction system, and determining comment content related to the target content object from the comment content to obtain target comment content; and displaying bullet screen information containing the target comment content at a position corresponding to the target content object in the video or image content. According to the embodiment of the invention, the interactivity of the user for the interactive content can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and specifically to an information interaction method, device, equipment, storage medium and program product. Background Art

[0002] With the development of science and technology, the number of Internet users is increasing. When using the Internet, users can comment on the content posted on the Internet, thereby interacting with the posted content.

[0003] Currently, comments on published content are displayed in the user comment area. If users want to view comments on the published content, they need to operate the interface where the published content is located in order to see the comments in the user comment area. This process is rather cumbersome and reduces the user's interactivity with the published content. Summary of the invention

[0004] The embodiments of the present application provide an information interaction method, apparatus, device, storage medium and program product, which can solve the technical problem of low interactivity of users with respect to published content.

[0005] The present application provides an information interaction method, including:

[0006] Acquire interactive content published by a first object in a content interaction system, wherein the interactive content includes video or image content;

[0007] Performing object recognition on the video or image content to obtain a target content object;

[0008] Obtaining the comment content for the interactive content in the content interaction system, determining the comment content related to the target content object from the comment content, and obtaining the target comment content;

[0009] The barrage information including the target comment content is displayed at a position corresponding to the target content object in the video or the image content.

[0010] Accordingly, an embodiment of the present application provides an information interaction device, including:

[0011] An acquisition module, used to acquire interactive content published by a first object in a content interaction system, wherein the interactive content includes video or image content;

[0012] An identification module, used to perform object identification on the video or image content to obtain a target content object;

[0013] A selection module is used to obtain the comment content for the interactive content in the content interaction system, determine the comment content related to the target content object from the comment content, and obtain the target comment content;

[0014] A display module is used to display the barrage information containing the above-mentioned target comment content at a position corresponding to the above-mentioned target content object in the above-mentioned video or the above-mentioned image content.

[0015] Optionally, the identification module is specifically used to execute:

[0016] Performing object recognition on the video or image content to obtain multiple content objects;

[0017] Obtain object attribute information of the above interactive content;

[0018] The content object matching the object attribute information is screened out from the plurality of content objects to obtain a target content object.

[0019] Optionally, the identification module is specifically used to execute:

[0020] Acquire account attribute information of a second object in the content interaction system, where the second object is an object viewing the interactive content;

[0021] According to the account attribute information, the object attribute information of the interactive content is determined.

[0022] Optionally, the identification module is specifically used to execute:

[0023] Obtain subject information of the above interactive content;

[0024] According to the above-mentioned subject information, the object attribute information of the above-mentioned interactive content is determined.

[0025] Optionally, the identification module is specifically used to execute:

[0026] Determining the similarity between the object attribute information and the content object;

[0027] The content objects with a similarity greater than or equal to a preset similarity are regarded as content objects matching the object attribute information, and the target content objects are obtained.

[0028] Optionally, the display module is also used to perform:

[0029] Determine a first area and a second area associated with the content object in the video or the image content;

[0030] At least one of the first area and the second area is used as a position corresponding to the target content object in the video or the image content.

[0031] Optionally, the display module is specifically used to execute:

[0032] Determining a first target position of the content object in the video or the image content;

[0033] The positions in the video or the image content other than the first target position are determined as the first area and the second area associated with the content object.

[0034] Optionally, the position corresponding to the target content object in the video or the image content includes the first area and the second area. Accordingly, the display module is specifically configured to execute:

[0035] Displaying the bullet message information including the target comment content in the first area;

[0036] If there are characters located at the edge of the first area in the bullet message information, the second area is used as the next display position of the characters located at the edge of the first area;

[0037] The characters located at the edge of the first area are displayed at the next display position.

[0038] Optionally, the display module is also used to perform:

[0039] Predicting the display position of characters in the barrage information containing the target comment content in the video or the image content;

[0040] Obtaining a second target position of the content object in the video or the image content;

[0041] According to the second target position, adjusting the display position matching the second target position to obtain an adjusted display position;

[0042] According to the adjusted display position and / or the display position that does not match the second target position, a position in the video or the image content corresponding to the target content object is determined.

[0043] Optionally, the display module is specifically used to execute:

[0044] Determine the length corresponding to the second target position;

[0045] According to the length corresponding to the second target position, the display position matching the second target position is adjusted to obtain an adjusted display position.

[0046] Optionally, the display module is specifically used to execute:

[0047] Get the scrolling direction of the bullet message information corresponding to the target comment content;

[0048] According to the scrolling direction, the length corresponding to the second target position is determined.

[0049] Optionally, the display module is specifically used to execute:

[0050] Obtain the mask corresponding to the second target position;

[0051] According to the mask, the length corresponding to the second target position is determined.

[0052] Optionally, the display module is specifically used to execute:

[0053] Filtering the next character of the first character in the above barrage information from the above barrage information;

[0054] Using the current position of the first character as the target position for displaying the next character;

[0055] Determine, according to the target display position of the next character, a position in the video or the image content corresponding to the target content object;

[0056] The next character is used as the first character, and the step of filtering out the next character of the first character from the bullet-screen information is returned to execute until all the characters in the bullet-screen information are filtered out.

[0057] Optionally, the display module is also used to perform:

[0058] In response to a triggering operation on the above-mentioned bullet screen information, obtaining the bullet screen interactive content corresponding to the bullet screen information corresponding to the above-mentioned triggering operation;

[0059] The barrage information corresponding to the above barrage interactive content is displayed on the above video or the above image content.

[0060] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the information interaction method provided in the embodiment of the present application.

[0061] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any information interaction method provided in the embodiment of the present application.

[0062] In addition, an embodiment of the present application also provides a computer program product, including a computer program, and when the above computer program is executed by a processor, it implements any information interaction method provided in the embodiment of the present application.

[0063] In an embodiment of the present application, interactive content published by a first object in a content interaction system is obtained, the interactive content including video or image content; object recognition is performed on the video or image content to obtain a target content object; comment content for the interactive content in the content interaction system is obtained, and comment content related to the target content object is determined from the comment content to obtain the target comment content; barrage information containing the target comment content is displayed at a position corresponding to the target content object in the video or image content, so that the target comment content is displayed in the form of barrage on the video or image content, so that the user can directly view the target comment content without performing any operation, which is more convenient and improves the user's interactivity with the interactive content. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0065] Figure 1 is a schematic diagram of a scenario of an information interaction process provided by an embodiment of the present application;

[0066] Figure 2 It is a flowchart of the information interaction method provided in the embodiment of the present application;

[0067] Figure 3 is a schematic diagram of interactive content provided by an embodiment of the present application;

[0068] Figure 4 It is a schematic diagram of the structure of the convolutional neural network model provided in the embodiment of the present application;

[0069] Figure 5 is a schematic diagram of convolution processing provided in an embodiment of the present application;

[0070] Figure 6 is a schematic diagram of another convolution process provided in an embodiment of the present application;

[0071] Figure 7 is a schematic diagram of a receptive field provided in an embodiment of the present application;

[0072] Figure 8 It is a schematic diagram of the parameter quantity and calculation amount of the convolution kernel provided in the embodiment of the present application;

[0073] Fig. 9 is a schematic diagram of another convolution process provided in an embodiment of the present application;

[0074] Fig.10 is a schematic diagram of the pooling process provided by an embodiment of the present application;

[0075] Fig.11 is a schematic diagram of a convolutional neural network model provided in an embodiment of the present application;

[0076] Fig.12 is a schematic diagram of a convolutional layer provided in an embodiment of the present application;

[0077] Fig.13 is a schematic diagram of a pooling layer provided in an embodiment of the present application;

[0078] Fig.14 is a schematic diagram of the post-standard features provided by the embodiment of the present application;

[0079] Fig.15 is a schematic diagram of a process of obtaining post-standard features provided by an embodiment of the present application;

[0080] Fig.16 is a schematic diagram of another post-standard feature provided by an embodiment of the present application;

[0081] Fig.17 is a schematic diagram of another convolutional neural network model provided in an embodiment of the present application;

[0082] Fig.18 It is a structural schematic diagram of another convolutional neural network model provided in an embodiment of the present application;

[0083] Fig.19 It is a schematic diagram of the discarding process provided in the embodiment of the present application;

[0084] Fig. 20 is a schematic diagram of the length of the second target position provided in an embodiment of the present application;

[0085] Fig.21 is a schematic diagram of the scrolling direction provided in an embodiment of the present application;

[0086] Fig. 22 is a schematic diagram of a first area and a second area provided in an embodiment of the present application;

[0087] Fig.23 is a schematic diagram of a first display area and adjacent areas provided in an embodiment of the present application;

[0088] Fig.24 It is a flowchart of another information interaction method provided in an embodiment of the present application;

[0089] Fig.25is a schematic diagram of the smoothing process provided in an embodiment of the present application;

[0090] Fig.26 is a schematic diagram of the bullet screen display provided in an embodiment of the present application;

[0091] Fig. 27 is a structural diagram of an information interaction device provided in an embodiment of the present application;

[0092] Fig.28 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0093] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0094] The embodiments of the present application provide an information interaction method, apparatus, device, storage medium and program product, wherein the device may be an electronic device, the storage medium may be a computer storage medium, and the program product may be a computer program product. The information interaction device may be integrated in an electronic device, and the electronic device may be a server, a terminal or other device.

[0095] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.

[0096] Furthermore, multiple servers may form a blockchain, and the servers are nodes on the blockchain.

[0097] The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0098] For example, Figure 1As shown, the first terminal sends the interactive content published by the first object in the content interaction system to the server, and the interactive content includes video or image content. The server performs object recognition on the video or image content to obtain multiple content objects; obtains the object attribute information of the interactive content, and screens out the content object matching the object attribute information from the multiple content objects to obtain the target content object; obtains the comment content for the interactive content in the content interaction system, and determines the comment content related to the target content object from the comment content to obtain the target comment content; sends the target comment content to the first terminal, and sends the target comment content and the interactive content to the second terminal. The first terminal displays the barrage information containing the target comment content at the position corresponding to the target content object in the video or image content, and the second terminal displays the interactive content, and displays the barrage information containing the target comment content at the position corresponding to the target content object in the video or image content.

[0099] In addition, the term "plurality" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood as implying relative importance.

[0100] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0101] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0102] Computer Vision (CV) is a science that studies how to make machines "see". To put it more specifically, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing so that computer processing becomes an image that is more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0103] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0104] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, trial-and-error learning and other technologies.

[0105] The solutions provided in the embodiments of the present application involve artificial intelligence computer vision technology, natural language processing, machine learning and other technologies, which are specifically illustrated by the following embodiments.

[0106] In this embodiment, the information interaction device will be described from the perspective of the information interaction method of the present application. In order to facilitate the description of the information interaction method of the present application, the following detailed description will be given with the information interaction device integrated in the terminal, that is, the terminal will be used as the execution subject.

[0107] See also Figure 2 , Figure 2 : is a flowchart of an information interaction method provided by an embodiment of the present application. The information interaction method may include:

[0108] S201: Acquire interactive content published by a first object in a content interaction system, where the interactive content includes video or image content.

[0109] The content interaction system refers to a system where users can upload interactive content and view interactive content, which can be composed of computer hardware, computer software and a network. The content interaction system may include at least one terminal and at least one server, wherein the terminal is equipped with a client for content interaction, and the server is a server for the client for content interaction.

[0110] For example, if the client for content interaction is a content application, the content interaction system may include a plurality of terminals on which the content application has been installed and a server of the content application.

[0111] The form of the client for content interaction can be selected according to actual conditions. For example, the client for content interaction can be in the form of an application, a mini-program, or a web page, etc. This embodiment does not limit this.

[0112] The interactive content refers to the information created by the first object, which can be called a diary or user-generated content (UGC). In addition to video or image content, the interactive content can also include character content.

[0113] For example, interactive content can be Figure 3 As shown, at this time, the interactive content includes five images, and the user can change the images displayed on the interface by sliding left and right.

[0114] The first object may refer to an account, where an account refers to a string indicating the identity of a certain user, or the first object may also refer to a certain user.

[0115] S202: Perform object recognition on the video or image content to obtain a target content object.

[0116] The target content object refers to the things included in the image content. For example, the content object can be a person, a pet, a fruit, a vehicle, or furniture.

[0117] The method for performing object recognition on video or image content can be selected according to actual conditions. For example, object recognition can be performed on video or image content through a neural network model or a histogram of oriented gradient (HOG) method, which is not limited in the embodiments of the present application.

[0118] A neural network model is a network formed by connecting neural layers, each of which can include multiple neurons, each of which has a numerical weight that affects its results. Each neuron can take a piece of input data, usually a pixel of an image, and then use a simple calculation of the activation function to generate the neuron's output. This output is sent to other neurons until the end of the process, when the neural network model generates a prediction for each input data. This process is repeated for a large number of images to learn the most appropriate numerical weights for each neuron, so that the neural network model can provide accurate predictions.

[0119] The type of the neural network model can be set according to actual conditions. For example, the neural network model can be a convolutional neural network model or an autoencoder, which is not limited in the embodiments of the present application.

[0120] The following is a detailed description of the method for object recognition based on image content through a convolutional neural network model.

[0121] The convolutional layer in the convolutional neural network model is used to extract features of the image content to obtain features corresponding to the image content;

[0122] The features are pooled through the pooling layer in the convolutional neural network model to obtain the pooled features;

[0123] The pooled features are identified through the fully connected layer in the convolutional neural network model to obtain the target content object.

[0124] The convolutional neural network model may include at least one convolutional layer, at least one pooling layer, and at least one fully connected layer. For example, the convolutional neural network model may be as follows: Figure 4 As shown, at this time, the convolutional neural network model includes two convolutional layers, two pooling layers and two fully connected layers.

[0125] Optionally, the process of extracting features of the image content through the convolution layer in the convolutional neural network model to obtain features corresponding to the image content may be:

[0126] According to the preset step size, determine the overlapping area corresponding to the convolution kernel and the image content;

[0127] Multiply and sum the corresponding values ​​in the overlapping area and add the bias weight to obtain the sub-feature corresponding to a pixel point of the image content;

[0128] The sub-features corresponding to each pixel are used as the features corresponding to the image content.

[0129] For example, if the preset step size is 1 and the size of the convolution kernel is "3*3*1", the value in the convolution kernel can be as follows: Figure 5 As shown in , the size of the image content is "5*5*1", and the values ​​in the image content can be as follows Figure 5 As shown in , the features corresponding to the image content can be Figure 5 As shown, the size of the feature corresponding to the image content is "3*3*1".

[0130] Optionally, when the image content is a color image, the values ​​of each channel corresponding to the image content can be convolved separately by a convolution kernel to obtain various convolution results, and then the various convolution results are added together to obtain features corresponding to the image content.

[0131] At this time, the number of convolution kernels can be the same as the number of channels of the image content, and the depth of the features corresponding to the image content can be determined by the number of convolution kernels.

[0132] For example, Figure 6 As shown, the preset step size is 1, the size of the convolution kernel is "3*3*3", and the value in the convolution kernel can be as follows Figure 6 As shown in , the size of the image content is "5*5*3", and the corresponding values ​​of the image content in each channel can be as follows Figure 6 As shown in , the features corresponding to the image content can be Figure 6 shown.

[0133] It should be noted that the size of the convolution kernel can be set according to the actual situation. For example, the size of the convolution kernel can be "3*3*1" or "5*5*1", which is not limited in the embodiments of the present application.

[0134] Convolution kernels of different sizes, receptive fields (the size of the mapping area of ​​each pixel in each neural layer of the convolutional neural network model on the original image, such as Figure 7 In some embodiments, in order to reduce the number of parameters and the amount of calculation while maintaining the same receptive field, a large-sized convolution kernel can be replaced by multiple small-sized convolution kernels.

[0135] For example, Figure 8 As shown in the figure, the width and height of the image content are both x, and two "3*3" convolution kernels are used instead of one "5*5" convolution kernel. The parameter quantity of the two "3*3" convolution kernels is "3*3+3*3=18", and the feature map obtained for the first "3*3" convolution kernel has a total of "(x-3+1)^2 pixels, and each pixel needs 9 multiplication and addition operations. The feature map for the second 3*3 convolution kernel has a total of (x-3+1-3+1)^2 pixels, and each pixel also needs 9 multiplication and addition operations. The total calculation amount of the two "3*3" convolution kernels is 9*(x-3+1)^2+9*(x-3+1-3+1)^2=18x^2-108x+180".

[0136] The parameter quantity of the "5*5" convolution kernel is "5*5=25". The features obtained for the "5*5" convolution kernel have a total of (x-5+1)^2 pixels. Each pixel requires 25 multiplication and addition operations. The total calculation amount of the "5*5" convolution kernel is 25*(x-5+1)^2=25x^2-200x+400.

[0137] When x<22 / 7 or x>10, the computational complexity of two "3*3" convolution kernels is less than that of a 5*5" convolution kernel. Since x is usually a value greater than 10, the number of parameters and the amount of computation of two 3*3 convolution kernels are usually less than those of a 5*5 convolution kernel.

[0138] In other embodiments, in order to make the size of the features corresponding to the image content the same as the size of the image content, the image content may be filled with zeros to obtain a filled matrix, and then feature extraction may be performed on the filled matrix to obtain the features corresponding to the image content.

[0139] For example, Fig. 9 As shown, the size of the image content is "5*5*1", the preset step size is 1, the size of the convolution kernel is "3*3*1", and when the image content is not filled with zeros, the size of the feature corresponding to the image content is "3*3*1". When the image content is filled with zeros around, the size of the feature corresponding to the image content is "5*5*1".

[0140] Optionally, when the Tensorflow framework is used to implement the convolutional neural network model, the parameter padding='SAME' can be used to indicate that all-zero padding is performed, and padding='VALID' can be used to indicate that no all-zero padding is performed.

[0141] Optionally, pooling may include max pooling and mean pooling. Max pooling may extract image texture, and mean pooling may retain background features, such as Fig.10 shown.

[0142] Optionally, when the Tensorflow framework is used to implement the convolutional neural network model, the convolutional neural network model can be as follows Fig.11 As shown (the flatten layer is used to convert multi-dimensional data into one-dimensional data).

[0143] Among them, the tf.keras.layers.Conv2D function in the Tensorflow framework can be used to represent the convolutional layer of the convolutional neural network model. At this time, the convolutional layer of the convolutional neural network model can be as follows Fig.12 shown.

[0144] The tf.keras.layers.MaxPool2D function in the Tensorflow framework can be used to represent the maximum pooling process and the tf.keras.layers.AveragePooling2D function can be used to represent the average pooling process. At this time, the pooling layer of the convolutional neural network model can be as follows Fig.13 1301 or Fig.13 As shown in 1302.

[0145] In some other embodiments, the process of performing pooling processing on features through a pooling layer in a convolutional neural network model to obtain pooled features may be:

[0146] Through the batch normalization layer in the convolutional neural network model, the features are standardized to obtain standardized features;

[0147] Perform activation processing on the standard features to obtain activated features;

[0148] The activated features are pooled to obtain pooled features.

[0149] Batch Normalization (BN) refers to the standardization of the output of each layer of a batch of data in the neural network model, that is, the input of each neural layer in the neural network model is adjusted to a standard normal distribution with a mean of 0 and a variance of 1 (for example, Fig.14 As shown), this solves the problem of gradient disappearance of the neural network model during the training of the neural network model.

[0150] For example, Fig.15 As shown in the figure, the convolution layer of the neural network model includes n convolution kernels, and a batch of the neural network model includes batch images. The sub-feature of the i-th pixel in the standard post-feature of the k-th convolution kernel can be expressed by the following formula:

[0151]

[0152] in, Represents the sub-feature of the i-th pixel in the standard post-feature of the k-th convolution kernel, Represents the feature of the i-th pixel of the k-th convolution kernel, represents the kth convolution kernel, the average value of all pixels in the features of the batch image, represents the standard deviation of all pixels in the features of the k-th convolution kernel, batch image, that is:

[0153]

[0154]

[0155] m represents the batch size, and δ represents a constant.

[0156] It should be noted that in the process of training the neural network model, the scaling factor and offset factor of the batch normalization layer may be trained. In this case, the standardized features may be:

[0157]

[0158] represents the standard feature, γ k represents the scaling factor, β k represents the offset factor. At this time, the standard features after training the scaling factor and the offset factor can be as follows Fig.16 shown.

[0159] It should be understood that when the Tensorflow framework is used to implement the convolutional neural network model, the tf.keras.layers.BatchNormalization function of Keras in the Tensorflow framework can be used to construct the batch normalization layer. At this time, the convolutional neural network model can be as follows Fig.17 As shown, that is, the structure of the convolutional network model can be as follows Fig.18 shown.

[0160] Optionally, the mean and standard deviation in the normalization process can be the mean and standard deviation of the current batch, or the mean and standard deviation of the running average. The running average refers to the process of historically superimposing batches one by one and eventually tending to the overall distribution of the data set. When performing inference on the test set, the parameters of the running average are also the parameters that are finally saved.

[0161] Optionally, before using the convolutional neural network model to perform object recognition on the image content, the convolutional neural network model may be trained. The process of training the convolutional neural network model may be:

[0162] Extract features from training samples to obtain sample features;

[0163] According to the sample characteristics, determining multiple sample objects corresponding to the training sample;

[0164] Determine the target loss value based on the sample object and the real object of the training sample;

[0165] According to the target loss value, the convolutional neural network model is trained to obtain a trained convolutional neural network model.

[0166] When training a convolutional neural network model, it is difficult to evaluate the influence between the features of each neuron in the input convolutional neural network model, so that the errors of some neurons will be smoothed out by the adjustment values ​​of other neurons, resulting in a large error in the trained convolutional neural network model.

[0167] Therefore, in order to improve the accuracy of the convolutional neural network model in object recognition of image content, in other embodiments, during the training of the convolutional neural network model, neurons in the convolutional neural network model can be discarded (Dropout), the number of features can be reduced, and the importance of each feature can be increased, so that the convolutional neural network model has great variability during the training process, thereby improving the accuracy of the convolutional neural network model in object recognition of image content. For example, Fig.19 shown.

[0168] It should be understood that when using a convolutional neural network model for object recognition, the discarded neurons can be used normally.

[0169] It should be noted that after object recognition is performed on the video or image content, multiple content objects may be obtained. The terminal may directly use the multiple content objects as target content objects, or the terminal may filter out the target content object from the multiple content objects.

[0170] When a target content object is selected from multiple content objects, the process of performing object recognition on the video or image content to obtain the target content object may be as follows:

[0171] Performing object recognition on video or image content to obtain multiple content objects;

[0172] Obtain object attribute information of interactive content;

[0173] A content object matching the object attribute information is screened out from the multiple content objects to obtain a target content object.

[0174] The object attribute information of the interactive content refers to information indicating the characteristics of the interactive content, which can be determined based on the interactive content or based on the account attribute information of the second object, where the second object is the object viewing the interactive content and includes the first object.

[0175] When the object attribute information of the interactive content is determined according to the interactive content, the process of obtaining the object attribute information of the interactive content may be:

[0176] Obtaining subject information of interactive content;

[0177] According to the subject information, the object attribute information of the interactive content is determined.

[0178] Among them, the terminal can determine the subject information of the interactive content based on the keywords in the interactive content. Alternatively, the terminal can also perform semantic recognition on the interactive content through natural speech processing technology to obtain recognition results, and then determine the subject information based on the recognition results. Alternatively, the terminal can also determine the subject information of the interactive content based on the area occupied by each content object in the video or image content. After obtaining the subject information, the terminal uses the subject information as the object attribute information of the interactive content.

[0179] In an embodiment of the present application, object attribute information of the interactive content is determined based on the subject information of the interactive content, so that content objects matching the object attribute information can be screened out from multiple content objects to obtain a target content object, so that comment content matching the target content object can be displayed subsequently, which not only improves the convenience of displaying the comment content of the interactive content, but also focuses on displaying the comment content related to the things that the interactive content wants to express, thereby further improving the user's interactivity with the interactive content, and then improving the user's activity.

[0180] For example, interactive content can be Figure 3 As shown, at this time, the subject information of the interactive content is dog, and the comment content matching the dog can be displayed on the image content.

[0181] When the object attribute information of the interactive content is determined according to the account attribute information of the second object, the process of obtaining the object attribute information of the interactive content may be:

[0182] Acquire account attribute information of a second object in the content interaction system, where the second object is an object viewing the interactive content;

[0183] According to the account attribute information, the object attribute information of the interactive content is determined.

[0184] Among them, account attribute information refers to information indicating the characteristics of the second object, which can be account description information of the second object, or information about historical interaction content published by the first object (in this case, the second object is the first object), or object attention information of the second object.

[0185] For example, the content objects in the image content are oranges, passion fruit, blogger u1 and basket. When the account attribute information refers to the account description information, the account attribute information may be "Revitalize the countryside, develop farm products". At this time, the object attribute information of the interactive content is "agricultural products". Oranges and passion fruit are agricultural products, so oranges and passion fruit are taken as target content objects.

[0186] For another example, the content objects in the image content are oranges, passion fruit, blogger u1 and basket, the account attribute information is the object attention information of the second object, and the object attention information of the second object may be agricultural products. At this time, the object attribute information of the interactive content is "agricultural products", and oranges and passion fruit are agricultural products, so oranges and passion fruit are taken as target content objects.

[0187] It should be understood that since the account attribute information of different second objects may be different, the object attribute information of the interactive content for different second objects may be different, and the target content objects of the interactive content for different second objects may also be different, and the target comment content displayed on the terminals where different second objects are located may be different.

[0188] For example, the content objects in the image content are oranges, passion fruit, blogger u1 and basket, the account attribute information is the object attention information of the second object, the second object includes object u2 and object u3, the object attention information of object u2 is to pay attention to blogger u1 in the interactive content, and the object attention information of object u3 is to pay attention to agricultural products in the interactive content. For object u2, blogger u1 is taken as the target content object, and the target comment content matching with blogger u1 is displayed on the terminal where object u2 is located. For object u3, oranges and passion fruit are taken as target content objects, and the target comment content matching with oranges and the target comment content matching with passion fruit are displayed on the terminal where object u3 is located.

[0189] In an embodiment of the present application, object attribute information of the interactive content is determined based on the account attribute information of the second object, so that content objects matching the object attribute information can be screened out from multiple content objects to obtain a target content object, so that comment content matching the target content object can be displayed subsequently, which not only improves the convenience of displaying the comment content of the interactive content, but also focuses on displaying the comment content related to the things that the second object is concerned about, thereby further improving the user's interactivity with the interactive content, and then improving the user's activity.

[0190] After obtaining the object attribute information, the terminal may calculate the similarity between the object attribute information and the content object, and then use the content object with a similarity greater than or equal to a preset similarity as the target content object, or may use the content object corresponding to the identifier contained in the object attribute information as the target content object.

[0191] The method for obtaining the target content object by screening out the content object matching the object attribute information from the multiple content objects can be selected according to the actual situation, and the embodiment of the present application does not limit it here.

[0192] S203: Obtain comment content on the interactive content in the content interaction system, determine comment content related to the target content object from the comment content, and obtain target comment content.

[0193] The comment content related to the target content object can be understood as the comment content that includes the target content object. For example, the target content object is oranges, and the comment contents are "these oranges look sweet", "you can buy a batch of oranges", and "it looks like it's going to rain". Since the comment content "these oranges look sweet" and the comment content "you can buy a batch of oranges" include the target content object "oranges", the comment content "these oranges look sweet" and the comment content "you can buy a batch of oranges" are both target comment content.

[0194] After obtaining the comment content, the terminal can perform semantic recognition on the comment content to obtain each candidate content object in the comment content, and then match the candidate content object with the target content object, and use the comment content corresponding to the candidate content object matching the target content object as the target comment content.

[0195] Alternatively, after obtaining the comment content, the terminal directly calculates the content similarity between the comment content and the target content object, and then uses the comment content corresponding to the content similarity greater than the preset content similarity as the target comment content.

[0196] S204: Display the barrage information containing the target comment content at a position corresponding to the target content object in the video or image content.

[0197] The position in the video or image content corresponding to the target content object may refer to the first target position of the content object in the video or image content, or may refer to a position in the video or image content other than the first target position, or may refer to a position around the first target position.

[0198] After obtaining the target comment content, the terminal displays the target comment content in the form of bullet screen on the video or image content. For example, if the target content objects are people and dogs, the target comment content can be as follows: Figure 3 shown.

[0199] The target comment content may be displayed on the video or image content in a static form, or may be displayed on the video or image content in a scrolling form.

[0200] In some embodiments, before displaying the barrage information containing the target comment content at a position corresponding to the target content object in the video or image content, the method further includes:

[0201] Predicting the display position of characters in the barrage information containing the target comment content in the image content or video;

[0202] Obtaining a second target position of the content object in the video or image content;

[0203] According to the second target position, adjusting the display position matching the second target position to obtain an adjusted display position;

[0204] A position corresponding to the target content object in the video or image content is determined based on the adjusted placement position and / or the placement position that does not match the second target position.

[0205] Among them, the display position of the characters in the barrage information in the video or image content may refer to the next display position of the characters in the barrage information in the video or image content.

[0206] The display position that matches the second target position can be understood as a display position that overlaps with the second target position. If the display position matches the second target position, the display position is adjusted according to the second target position so that the adjusted display position does not overlap with the second target position, so that when the characters are displayed at the adjusted display position, the characters will not block the content objects in the video or image content (since the content objects include the target content objects and other content objects, the characters will not block not only the target content objects in the video or image content, but also other content objects in the video or image content, and other content objects refer to content objects other than the target content objects in the content objects).

[0207] After obtaining the second target position of the content object in the video or image content, the terminal can first determine whether the display position of the character matches the second target position. If the display position of the character matches the second target position, the display position matching the second target position is adjusted according to the second target position to obtain the adjusted display position, and the adjusted display position is used as the position corresponding to the target content object in the video or image content. If the display position does not match the second target position, the display position that does not match the second target position is used as the position corresponding to the target content object in the video or image content.

[0208] Optionally, the characters in the barrage information may be individual characters in the barrage information, and the process of predicting the display positions of the characters in the barrage information containing the target comment content in the video or image content may be:

[0209] Get the current position of each character in the preset display rules and barrage information (if the character is not displayed on the image content, the current position of the character is zero);

[0210] According to the preset display rules and the current position of each character in the bullet message, the display position of each character in the bullet message in the video or image content is predicted.

[0211] Alternatively, in order to quickly obtain the display positions of the characters in the bullet screen information within the video or image content, the character in the bullet screen information can be the first character in the bullet screen information. Then, the display process of the other characters in the bullet screen information can be as follows:

[0212] Screen out the character next to the first character in the bullet screen information from the bullet screen information;

[0213] Use the current position of the first character as the target display position of the next character;

[0214] Determine the position corresponding to the target content object in the video or image content based on the target display position of the next character;

[0215] Take the next character as the first character and return to execute the step of screening out the character next to the first character from the bullet screen information until all characters in the bullet screen information have been screened out.

[0216] For example, if the bullet screen information is "The dog is really cute", and the first character in the bullet screen information is the character "dog", then predict the display position of the first character according to the preset display rules and the current position of the first character. Then, determine whether the display position of the first character matches the second target position. If the display position of the first character matches the second target position, adjust the display position of the first character according to the second target position to obtain the adjusted display position, and use the adjusted display position as the target display position of the first character. If the display position of the first character does not match the second target position, directly use the display position of the first character as the target display position of the first character.

[0217] Next, screen out the character next to the character "dog" from the bullet screen information, which is the character "really". Use the current position of the character "dog" as the target display position of the character "really". Since there are un-screened characters in the bullet screen information, continue to screen out the character next to the character "really" from the bullet screen information. The character next to the character "really" is the character "cute". Use the current position of the character "really" as the target display position of the character "cute". Since there are no un-screened characters in the bullet screen information, stop executing this process and use the target display position as the position corresponding to the target content object in the video or image content.

[0218] In an embodiment of the present application, the target display position of the next character is determined directly according to the current position of the first character, without having to determine the target display position of the next character according to a preset display rule and the current position of the next character, thereby speeding up the process of obtaining the target display position of the next character.

[0219] In some other embodiments, according to the second target position, the display position matching the second target position is adjusted to obtain the adjusted display position in the following process:

[0220] determining a length corresponding to a second target position;

[0221] According to the length corresponding to the second target position, the display position matching the second target position is adjusted to obtain an adjusted display position.

[0222] The length corresponding to the second target position can be understood as the number of pixels corresponding to the second target position, which can be the number of all pixels corresponding to the second target position, or it can also be the number of pixels corresponding to the height of the second target position, or it can also be the number of pixels corresponding to the width of the second target position.

[0223] The terminal may directly count the number of pixels corresponding to the second target position, thereby obtaining the length corresponding to the second target position. Alternatively, the terminal may obtain a mask corresponding to the second target position, and then determine the length corresponding to the second target position based on the mask. The terminal may perform a cutout process on the content object, draw a mask of the content object based on the cutout process result, and obtain a mask corresponding to the second target position.

[0224] The length corresponding to the second target position may be at least one. Since the outline of the content object may be an irregular shape, in order to more accurately adjust the display position matching the second target position, the length corresponding to the second target position may include multiple ones, and then the length matching the display position is screened from the lengths corresponding to the multiple second target positions to obtain the target length, and then the current position of the character is added with the target length, thereby adjusting the display position matching the second target position to obtain the adjusted display position, so that when the character is displayed at the adjusted display position, the character will neither block the content object nor deviate too far from the previous character of the character in the barrage information, further improving the user experience.

[0225] The length matching the display position may be understood as the length corresponding to the position where the distance between the display positions satisfies a preset distance condition.

[0226] For example, interactive content can be Fig. 20 As shown in , if the length corresponding to the second target position is only one, the display result of the target comment content can be as follows Fig. 20As shown in 2001, from Fig. 20 As can be seen from 2001, the distance between "dog" and "so pitiful" in the bullet screen message "The dog is so pitiful" is relatively large. If the length corresponding to the second target position includes multiple ones, the display result of the target comment content can be as shown in Fig. 20 As shown in 2002, at this time, the display positions of the characters in the bullet screen message "The dog is so pitiful" can be adjusted according to the length c1, and the display positions of the characters in the bullet screen message "This dog is so cute" can be adjusted according to the length c2. From Fig. 20 As can be seen from 2002, after adjustment, the distance between "dog" and "so pitiful" in the bullet screen message "The dog is so pitiful" is relatively small.

[0227] Optionally, when the scrolling directions of the bullet screen messages are different, the lengths corresponding to the second target positions are different. For example, when the scrolling direction of the bullet screen message is horizontal scrolling, the length corresponding to the second target position can be as shown in Fig.21 As shown in 2101, when the scrolling direction of the bullet screen message is 45° scrolling, the length corresponding to the second target position can be as shown in Fig.21 As shown in 2102, from Fig.21 As can be seen, when the scrolling directions are different, the lengths corresponding to the second target positions are different.

[0228] Therefore, in some other embodiments, determining the length corresponding to the second target position includes:

[0229] Obtaining the scrolling direction of the bullet screen message corresponding to the target comment content;

[0230] Determining the length corresponding to the second target position according to the scrolling direction.

[0231] In the embodiments of the present application, the scrolling direction of the bullet screen message corresponding to the target comment content is obtained, and then the length corresponding to the second target position is determined according to the scrolling direction, so that the length corresponding to the second target position is more accurate. Thus, when adjusting the display position matching the second target position according to the length corresponding to the second target position, the adjusted display position is more accurate. Furthermore, when displaying characters at the adjusted display position, the spacing between the characters in the bullet screen message will not be too large, further improving the user experience.

[0232] In some other embodiments, before displaying the bullet screen message including the target comment content at the position corresponding to the target content object in the video or image content, it further includes:

[0233] Determining a first region and a second region associated with the content object in the video or image content;

[0234] Take at least one of the first region and the second region as the position corresponding to the target content object in the video or image content.

[0235] The first region and the second region associated with the content object may refer to the first target position of the content object in the image content and the position in the image content other than the first target position. Alternatively, the first region and the second region associated with the content object may also refer to the position in the image content other than the first target position. For example, the first region and the second region may be as Fig. 22 shown.

[0236] Generally, when displaying bullet screen information on the image content, if the bullet screen information passes through the content object in the image content, the bullet screen information will block the content object, resulting in the user not being able to see the content object. To solve this problem, when the bullet screen information passes through the content object, the bullet screen information is hidden. However, at this time, the user will not be able to see the bullet screen, reducing the interactivity of the user for the interactive content.

[0237] Therefore, in the embodiments of the present application, when the first region and the second region associated with the content object refer to the positions in the image content other than the first target position, and then when displaying the bullet screen information corresponding to the target comment content in the first region and the second region, not only can the bullet screen information not block the content object, but also the content object can not block the bullet screen information, improving the user experience, and thus improving the interactivity of the user for the interactive content.

[0238] Optionally, the process of displaying the bullet screen information corresponding to the target comment content in the first region and the second region may be:

[0239] Display the bullet screen information including the target comment content in the first region;

[0240] If there are characters located at the edge of the first region in the bullet screen information, take the second region as the next display position of the characters located at the edge of the first region;

[0241] Display the characters located at the edge of the first region at the next display position.

[0242] For example, as Fig. 22 shown, the bullet screen information is "This dog is really cute", and the character located at the edge of the first region is "really", that is, the current position of the character "really" is the edge of the first region. Then the next display position of the character "really" is the second region. Take the starting position of the second region as the next display position of the character "really", and display the character "really" at the next display position. The character "cute" is not located at the edge of the first region, so the next display position of the character "cute" is still the first region.

[0243] In an embodiment of the present application, a first area and a second area associated with a target content object are first determined, where the first area and the second area are areas other than the first target position. Then, after the barrage information is acquired, the barrage information corresponding to the target comment content is first displayed in the first area. If there are characters located at the edge of the first area in the barrage information, the second area is used as the next display position of the characters located at the edge of the first area. The characters located at the edge of the first area are displayed at the next display position, so that there is no need to adjust the position of the barrage information according to the first target position after determining that the barrage information is located at the first target position, thereby improving the speed of displaying the barrage information.

[0244] In some other embodiments, the target comment content includes multiple items, and the barrage information containing the target comment content is displayed at a position corresponding to the target content object in the video or image content, including:

[0245] Get the preset bullet screen spacing;

[0246] According to the preset barrage spacing, the barrage information containing the target comment content is displayed at the position corresponding to the target content object in the video or image content.

[0247] In an embodiment of the present application, when the target comment content includes multiple ones, the barrage information containing the target comment content can be displayed at a position corresponding to the target content object in the video or image content according to a preset barrage spacing, so as to distinguish the barrage information corresponding to each target comment content.

[0248] Optionally, according to a preset bullet-screen spacing, bullet-screen information containing target comment content is displayed at a position corresponding to the target content object in the video or image content, including:

[0249] Get the previous target comment content corresponding to the target comment content;

[0250] If the barrage information corresponding to the previous target comment content contains characters displayed at the adjusted display position, the preset barrage spacing is adjusted according to the second target position to obtain the adjusted spacing;

[0251] According to the adjusted spacing, the barrage information containing the target comment content is displayed at a position corresponding to the target content object in the video or image content.

[0252] Among them, according to the second target position, the preset barrage spacing is adjusted to obtain the adjusted spacing. The process can be: adjusting the preset barrage spacing to the second target position to obtain the adjusted spacing, or adding the preset barrage spacing and the second target position to obtain the adjusted spacing, or adjusting the preset barrage spacing to a value greater than the length corresponding to the second target position to obtain the adjusted spacing.

[0253] Optionally, when there are characters displayed in the adjusted display position in the barrage information corresponding to the previous target comment content, the terminal can also determine the size between the length corresponding to the second target position and the preset barrage spacing. If the length corresponding to the second target position is greater than the preset barrage spacing, the terminal adjusts the preset barrage spacing according to the second target position to obtain the adjusted spacing.

[0254] In an embodiment of the present application, the previous target comment content corresponding to the target comment content is obtained; if the barrage information corresponding to the previous target comment content contains characters displayed at the adjusted display position, the preset barrage spacing is adjusted according to the second target position to obtain the adjusted spacing; according to the adjusted spacing, the barrage information containing the target comment content is displayed at the position corresponding to the target content object in the video or image content, so as to reduce the difficulty of distinguishing the barrage information corresponding to the target comment content from the barrage information corresponding to the previous target comment content, thereby further improving the user experience.

[0255] For example, Figure 3 As shown, the target comment content is "The weather is so nice", and the previous target comment content of "The weather is so nice" is "This dog is so cute". There are characters in "This dog is so cute" that are displayed in the adjusted display position. If "The weather is so nice" is displayed according to the preset barrage spacing, it will cause users to easily mistake "This dog is so cute" and "The weather is so nice" as one barrage information. At this time, the preset barrage spacing is adjusted to a value greater than the length corresponding to the second target position to obtain the adjusted spacing, so that the adjusted spacing is greater than the length corresponding to the second target position, so that according to the adjusted spacing, when "The weather is so nice" is displayed, the spacing between "The weather is so nice" and "This dog is so cute" is larger, thereby reducing the difficulty of distinguishing between "The weather is so nice" and "This dog is so cute".

[0256] In some other embodiments, after displaying the bullet screen information containing the target comment content at a position corresponding to the target content object in the video or image content, the method further includes:

[0257] In response to a triggering operation on the bullet screen information, obtaining bullet screen interactive content corresponding to the bullet screen information corresponding to the triggering operation;

[0258] Display the barrage information corresponding to the barrage interactive content on the video or image content.

[0259] The type of trigger operation can be selected according to actual conditions. For example, the trigger operation can be a click operation or a long press operation, etc., which is not limited in the embodiments of the present application.

[0260] The method of displaying the barrage information corresponding to the barrage interactive content on the video or image content may be the same as or different from the method of displaying the barrage information containing the target comment content on the video or image content.

[0261] When the method of displaying the barrage information corresponding to the barrage interactive content on the video or image content is the same as the method of displaying the barrage information containing the target comment content on the video or image content, the process of displaying the barrage information corresponding to the barrage interactive content on the video or image content may be:

[0262] Obtaining the first display position of the bullet screen information corresponding to the triggering operation on the image content;

[0263] Determining a contiguous location of the first placement within the video or image content;

[0264] The barrage information corresponding to the barrage interactive content is displayed in adjacent positions.

[0265] The adjacent position of the first display position in the video or image content may refer to a position in the video or image content whose distance from the first display position is within a preset range.

[0266] For example, if the barrage message corresponding to the triggering action is "This dog is so cute" and the barrage interactive content of "This dog is so cute" is "I have one too", then the first display position and adjacent positions can be as follows Fig.23 shown.

[0267] In an embodiment of the present application, a first display position of the barrage information corresponding to the trigger operation on the video or image content is obtained; an adjacent position of the first display position in the video or image content is determined; and the barrage information corresponding to the barrage interactive content is displayed at the adjacent position so that the user can know the correlation between the barrage information, thereby further improving the user's interactivity with the interactive content, and then improving the user's activity.

[0268] From the above, it can be seen that in an embodiment of the present application, interactive content published by a first object in a content interaction system is obtained, the interactive content including video or image content; object recognition is performed on the video or image content to obtain a target content object; comment content for the interactive content in the content interaction system is obtained, and comment content related to the target content object is determined from the comment content to obtain the target comment content; barrage information containing the target comment content is displayed at a position corresponding to the target content object in the video or image content, so that the target comment content is displayed in the form of barrage on the video or image content, so that the user can directly view the target comment content without performing any operation, which is more convenient and improves the user's interactivity with the interactive content.

[0269] According to the method described in the above embodiment, the following will be further described in detail with examples. In this embodiment, the interactive content is a video as an example for description.

[0270] See also Fig.24 , Fig.24 A flow chart of an information interaction method provided in an embodiment of the present application. The information interaction method flow may include:

[0271] S2401. A first terminal obtains a video published by a first object in a content interaction system, and sends the video to a server.

[0272] S2402. The server performs object recognition on the video through a convolutional neural network model to obtain multiple content objects corresponding to the video.

[0273] S2403: The second terminal obtains the video from the server and plays the video.

[0274] Optionally, since the video includes multiple video frames, the server performs object recognition on each video frame. Even if the same content object moves very slightly in the video, the boxes of the object recognition results of the previous video frame and the next video frame will not be aligned exactly. When the recognition results of each consecutive video frame are strung together like a cartoon, the object recognition results like boxes will appear to shake noticeably when the video is played.

[0275] Therefore, after the server performs object recognition on the video and obtains multiple content objects corresponding to the video, it may also include:

[0276] Obtaining a second target position corresponding to the content object in each video frame;

[0277] The second target position is fine-tuned to smooth the content object in the video to obtain a smoothed video, and the smoothed video is sent to the second terminal.

[0278] Optionally, since the number of video frames included in the video is relatively large, the video may be subjected to frame extraction processing to reduce the amount of calculation of the second target position.

[0279] For example, Fig.25 As shown, the content object is a face, and the video is subjected to frame extraction at a frequency of 25 frames per second to obtain a target video frame, and face recognition is performed on the target video frame to obtain multiple faces and coordinates corresponding to each face (the coordinates corresponding to each face are the second target position corresponding to the face), and then the same face in consecutive video frames in the target video frame is marked to obtain the trajectory corresponding to the face, and according to the trajectory corresponding to the face, the coordinates corresponding to each face in the video are fine-tuned to smooth the face and obtain a smoothed video.

[0280] Optionally, the second target position can be fine-tuned by the convolutional neural network model. When the content object is a human face, the number of target training samples in the training set can be increased during the training of the convolutional neural network model. The target training samples refer to training samples including faces in the video (for example, the target training samples are training samples including the faces of the protagonists and celebrities in the video), thereby improving the accuracy of the convolutional neural network model for face recognition results.

[0281] S2404: The second terminal obtains comments on the video and sends the comments to the server.

[0282] S2405: The server obtains object attribute information of the video, and selects content objects that match the object attribute information from multiple content objects to obtain a target content object.

[0283] S2406. The server selects comment content associated with the target content object from the comment content through a convolutional neural network model, obtains target comment content, and sends the target comment content to the second terminal.

[0284] S2407. The second terminal predicts the display position of the characters in the bullet screen information containing the target comment content in the video, and obtains a second target position of the content object in the video.

[0285] S2408: The second terminal determines a mask corresponding to the content object, and determines, based on the mask, a length corresponding to a second target position of the content object in the video.

[0286] When the video is a smoothed video, the second terminal can draw the mask corresponding to the content object according to the second target position of the content object in the smoothed video when determining the mask corresponding to the content object, and determine the length corresponding to the second target position of the content object in the smoothed video based on the mask.

[0287] S2409: The second terminal adjusts the display position matching the second target position according to the length corresponding to the second target position to obtain an adjusted display position, and displays the characters corresponding to the display position matching the second target position at the adjusted display position.

[0288] S24010. The second terminal displays, at the display position, characters corresponding to the display position that does not match the second target position.

[0289] In the embodiment of the present application, the content object in the video is identified by a convolutional neural network model to obtain a target content object, and then the comment content matching the target content object is displayed in the form of a bullet screen, for example, Fig.26As shown (the bullet screen mask is the mask of the content object).

[0290] S2411. In response to a triggering operation on the bullet screen information, the second terminal obtains the bullet screen interactive content corresponding to the bullet screen information corresponding to the triggering operation.

[0291] S2412. Display the barrage information corresponding to the barrage interactive content on the video.

[0292] In order to better implement the information interaction method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above information interaction method. The meanings of the terms are the same as those in the above information interaction method, and the specific implementation details can refer to the description in the method embodiment.

[0293] For example, Fig. 27 As shown, the information interaction device may include:

[0294] The acquisition module 2701 is used to acquire the interactive content published by the first object in the content interaction system, where the interactive content includes video or image content.

[0295] The recognition module 2702 is used to perform object recognition on the video or image content to obtain the target content object.

[0296] The selection module 2703 is used to obtain the comment content for the interactive content in the content interaction system, determine the comment content related to the target content object from the comment content, and obtain the target comment content.

[0297] The display module 2704 is used to display the barrage information containing the target comment content at a position corresponding to the target content object in the video or image content.

[0298] Optionally, the identification module 2702 is specifically configured to execute:

[0299] Performing object recognition on video or image content to obtain multiple content objects;

[0300] Obtain object attribute information of interactive content;

[0301] A content object matching the object attribute information is screened out from the multiple content objects to obtain a target content object.

[0302] Optionally, the identification module 2702 is specifically configured to execute:

[0303] Acquire account attribute information of a second object in the content interaction system, where the second object is an object viewing the interactive content;

[0304] According to the account attribute information, the object attribute information of the interactive content is determined.

[0305] Optionally, the identification module 2702 is specifically configured to execute:

[0306] Obtaining subject information of interactive content;

[0307] According to the subject information, the object attribute information of the interactive content is determined.

[0308] Optionally, the identification module 2702 is specifically configured to execute:

[0309] determining similarity between the object attribute information and the content object;

[0310] The content objects with a similarity greater than or equal to a preset similarity are regarded as content objects matching the object attribute information to obtain a target content object.

[0311] Optionally, the display module 2704 is further configured to execute:

[0312] Determining a first region and a second region in the video or image content that are associated with the content object;

[0313] At least one of the first area and the second area is used as a position corresponding to the target content object in the video or image content to display the barrage information containing the target comment content.

[0314] Optionally, the display module 2704 is specifically configured to execute:

[0315] Determining a first target position of a content object in the video or image content;

[0316] Positions other than the first target position in the video or image content are determined as first areas and second areas associated with the content object.

[0317] Optionally, the position corresponding to the target content object in the video or image content includes a first area and a second area. Accordingly, the display module 2704 is specifically configured to execute:

[0318] Display the bullet message containing the target comment content in the first area;

[0319] If there are characters located at the edge of the first area in the bullet message information, the second area is used as the next display position of the characters located at the edge of the first area;

[0320] The characters located at the edge of the first area are displayed at the next display position.

[0321] Optionally, the display module 2704 is specifically configured to execute:

[0322] Predicting the display position of characters in the barrage information containing the target comment content in the video or image content;

[0323] Obtaining a second target position of the content object in the video or image content;

[0324] According to the second target position, adjusting the display position matching the second target position to obtain an adjusted display position;

[0325] A position corresponding to the target content object in the video or image content is determined based on the adjusted placement position and / or the placement position that does not match the second target position.

[0326] Optionally, the display module 2704 is specifically configured to execute:

[0327] determining a length corresponding to a second target position;

[0328] According to the length corresponding to the second target position, the display position matching the second target position is adjusted to obtain an adjusted display position.

[0329] Optionally, the display module 2704 is specifically configured to execute:

[0330] Get the scrolling direction of the bullet message corresponding to the target comment content;

[0331] According to the scrolling direction, the length corresponding to the second target position is determined.

[0332] Optionally, the display module 2704 is specifically configured to execute:

[0333] Obtain the mask corresponding to the second target position;

[0334] According to the mask, the length corresponding to the second target position is determined.

[0335] Optionally, the display module 2704 is specifically configured to execute:

[0336] Filter the next character of the first character in the barrage information from the barrage information;

[0337] Set the current position of the first character as the target placement position for the next character;

[0338] Determine a position in the video or image content corresponding to a target content object based on a target display position of the next character;

[0339] The next character is taken as the first character, and the step of filtering out the next character of the first character from the bullet message is returned to execute until all the characters in the bullet message are filtered out.

[0340] Optionally, the display module 2704 is further configured to execute:

[0341] In response to a triggering operation on the bullet screen information, obtaining bullet screen interactive content corresponding to the bullet screen information corresponding to the triggering operation;

[0342] Display the barrage information corresponding to the barrage interactive content on the video or image content.

[0343] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0344] The present application also provides an electronic device, which may be a server or a terminal, etc. Fig.28 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0345] The electronic device may include components such as a processor 2801 with one or more processing cores, a memory 2802 with one or more computer-readable storage media, a power supply 2803, and an input unit 2804. Those skilled in the art will appreciate that Fig.28 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0346] The processor 2801 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing computer programs and / or modules stored in the memory 2802, and calling data stored in the memory 2802. Optionally, the processor 2801 may include one or more processing cores; preferably, the processor 2801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 2801.

[0347] The memory 2802 can be used to store computer programs and modules. The processor 2801 executes various functional applications and data processing by running the computer programs and modules stored in the memory 2802. The memory 2802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 2802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 2802 may also include a memory controller to provide the processor 2801 with access to the memory 2802.

[0348] The electronic device also includes a power supply 2803 for supplying power to each component. Preferably, the power supply 2803 can be logically connected to the processor 2801 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 2803 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0349] The electronic device may further include an input unit 2804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0350] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 2801 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 2802 according to the following instructions, and the processor 2801 will run the computer programs stored in the memory 2802, thereby realizing various functions, such as:

[0351] Acquire interactive content published by a first object in a content interaction system, where the interactive content includes video or image content;

[0352] Perform object recognition on video or image content to obtain target content objects;

[0353] Obtaining comment content for interactive content in the content interaction system, determining comment content related to the target content object from the comment content, and obtaining the target comment content;

[0354] The barrage information containing the target comment content is displayed at a position corresponding to the target content object in the video or image content.

[0355] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the information interaction method above, which will not be elaborated here.

[0356] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0357] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any one of the information interaction methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0358] Acquire interactive content published by a first object in a content interaction system, where the interactive content includes video or image content;

[0359] Perform object recognition on video or image content to obtain target content objects;

[0360] Obtaining comment content for interactive content in the content interaction system, determining comment content related to the target content object from the comment content, and obtaining the target comment content;

[0361] The barrage information containing the target comment content is displayed at a position corresponding to the target content object in the video or image content.

[0362] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0363] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0364] Since the computer program stored in the computer-readable storage medium can execute the steps in any one of the information interaction methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the information interaction methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0365] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned information interaction method.

[0366] The above is a detailed introduction to an information interaction method, device, equipment, storage medium and program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An information interaction method, characterized in that: include: Acquire interactive content published by a first object in a content interaction system, wherein the interactive content includes video or image content; Performing object recognition on the video or image content to obtain a target content object; Acquire the comment content for the interactive content in the content interaction system, determine the comment content related to the target content object from the comment content, and obtain the target comment content; The barrage information including the target comment content is displayed at a position corresponding to the target content object in the video or the image content.

2. The information interaction method according to claim 1, characterized in that: The performing object recognition on the video or image content to obtain a target content object includes: Performing object recognition on the video or image content to obtain multiple content objects; Acquire object attribute information of the interactive content; A content object matching the object attribute information is screened out from the multiple content objects to obtain a target content object.

3. The information interaction method according to claim 2, characterized in that: The acquiring of the object attribute information of the interactive content includes: Acquire account attribute information of a second object in the content interaction system, where the second object is an object viewing the interactive content; According to the account attribute information, object attribute information of the interactive content is determined.

4. The information interaction method according to claim 2, characterized in that: The acquiring of the object attribute information of the interactive content includes: Acquire subject information of the interactive content; According to the subject information, object attribute information of the interactive content is determined.

5. The information interaction method according to claim 2, characterized in that: The step of selecting a content object matching the object attribute information from the plurality of content objects to obtain a target content object includes: Determining the similarity between the object attribute information and the content object; The content objects with a similarity greater than or equal to a preset similarity are regarded as content objects matching the object attribute information to obtain a target content object.

6. The information interaction method according to claim 1, characterized in that: Before displaying the barrage information containing the target comment content at a position corresponding to the target content object in the video or the image content, the method further includes: Determining a first area and a second area in the video or the image content that are associated with the content object; At least one of the first area and the second area is used as a position corresponding to the target content object in the video or the image content.

7. The information interaction method according to claim 6, characterized in that: The determining of the first area and the second area associated with the content object in the video or the image content includes: Determining a first target position of the content object in the video or the image content; A position other than the first target position in the video or the image content is determined as a first area and a second area associated with the content object.

8. The information interaction method according to claim 6, characterized in that: The position corresponding to the target content object in the video or the image content includes the first area and the second area; Displaying the barrage information containing the target comment content at a position corresponding to the target content object in the video or the image content includes: Displaying the bullet screen information including the target comment content in the first area; If there are characters located at the edge of the first area in the bullet chat information, the second area is used as the next display position of the characters located at the edge of the first area; The character located at the edge of the first area is displayed at the next display position.

9. The information interaction method according to claim 1, characterized in that: Before displaying the barrage information containing the target comment content at a position corresponding to the target content object in the video or the image content, the method further includes: Predicting the display position of characters in the bullet screen information containing the target comment content in the image content or the video; Acquire a second target position of the content object in the video or the image content; According to the second target position, adjusting the display position matching the second target position to obtain an adjusted display position; A position in the video or image content corresponding to the target content object is determined according to the adjusted placement position and / or the placement position that does not match the second target position.

10. The information interaction method according to claim 9, characterized in that: The step of adjusting the display position matching the second target position according to the second target position to obtain the adjusted display position includes: determining a length corresponding to the second target position; According to the length corresponding to the second target position, the display position matching the second target position is adjusted to obtain an adjusted display position.

11. The information interaction method according to claim 10, characterized in that: The determining the length corresponding to the second target position includes: Obtain the scrolling direction of the bullet screen information corresponding to the target comment content; According to the scrolling direction, a length corresponding to the second target position is determined.

12. The information interaction method according to claim 10, characterized in that: The determining the length corresponding to the second target position includes: Obtaining a mask corresponding to the second target position; According to the mask, a length corresponding to the second target position is determined.

13. The information interaction method according to claim 9, characterized in that: The character in the bullet-screen information is the first character in the bullet-screen information, and the method further includes: Filter out the next character of the first character in the barrage information from the barrage information; Using the current position of the first character as the target display position of the next character; Determining a position in the video or the image content corresponding to the target content object according to the target display position of the next character; The next character is used as the first character, and the step of filtering out the next character of the first character from the bullet screen information is returned to be executed until all the characters in the bullet screen information are filtered out.

14. The information interaction method according to any one of claims 1 to 13, characterized in that: After displaying the barrage information containing the target comment content at a position corresponding to the target content object in the video or the image content, the method further includes: In response to a triggering operation on the barrage information, obtaining barrage interactive content corresponding to the barrage information corresponding to the triggering operation; The barrage information corresponding to the barrage interactive content is displayed on the video or the image content.

15. An information interaction device, characterized in that: include: An acquisition module, configured to acquire interactive content published by a first object in a content interaction system, wherein the interactive content includes video or image content; An identification module, used to perform object identification on the video or image content to obtain a target content object; A selection module, configured to obtain comment content for the interactive content in the content interaction system, determine comment content related to the target content object from the comment content, and obtain target comment content; A display module is used to display the barrage information containing the target comment content at a position corresponding to the target content object in the video or the image content.

16. An electronic device, characterized in that: It comprises a processor and a memory, the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the information interaction method according to any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the information interaction method according to any one of claims 1 to 14.

18. A computer program product, characterized in that The computer program product stores a computer program, and the computer program is suitable for being loaded by a processor to execute the information interaction method according to any one of claims 1 to 14.