A method and device for pushing object information in video data

By extracting and processing the locations and relationships of items and people in the video data, additional information is generated, and relevant item information is pushed when the user clicks. This solves the problem of inconvenience for users in retrieving items in the video, improves the user experience and reduces equipment costs. computing pressure.

CN114415870BActive Publication Date: 2024-10-22CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111645528.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-10-22
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

When watching a video, the user is interested in the items in the video but needs to exit the video application to query related information, which lacks a convenient retrieval method.

Method used

By receiving and preprocessing video data, it extracts the locations and relationships of target items and people, generates additional image information, and pushes relevant item information when the user clicks, enabling instant query during video playback.

Benefits of technology

It improves the user experience, reduces the computing pressure on the terminal device, avoids the preprocessing of each picture, and simplifies the item information retrieval process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114415870B_ABST
    Figure CN114415870B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for pushing object information in video data, by extracting target images in a video stream at preset frame intervals and preprocessing the target images, thereby generating and sending video data to a client, so that when the client plays the video stream and detects a user's click operation, the target object to be pushed can be determined through the target object, the object position, the target person, the person position, the association between the target object and the target person, the playback time node and the click position corresponding to the click operation, and the object information corresponding to the target object to be pushed is recommended to the user, thereby solving the problem that when the user is watching a video and is interested in an object in the video, it is necessary to search it through other applications to query the relevant information of the object, avoiding processing for each image in the preprocessing process, thereby reducing the computing pressure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pushing object information in video data, and in particular to a method for pushing object information in video data, a device for pushing object information in video data, an electronic device and a computer-readable medium. Background Art

[0002] With the development of science and technology, mobile terminals such as mobile phones and tablet computers have become inseparable from people's lives. Watching videos through mobile terminals has become one of the most common entertainment methods. When users watch videos, they are often interested in the items in the videos. For example, female users are interested in the handbags, cosmetics and other items held by the heroine. However, if the user expects to buy the item later or query the detailed information of the item, it is necessary to exit the video application and then enter the shopping application, and then retrieve the item by entering the keyword corresponding to the item to purchase it or query the detailed information of the item. Summary of the invention

[0003] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for pushing object information in video data to solve the problem that when a user is watching a video and is interested in an object in the video, he needs to search it through other applications to query the relevant information of the object.

[0004] The embodiment of the present invention discloses a method for pushing object information in video data, the method is applied to a client, and the method includes:

[0005] receiving video data sent by a server; the video data includes a video stream and additional picture information; the additional picture information includes a target object, an object location, a target person, a person location, and association information regarding an association relationship between the target object and the target person;

[0006] When a click operation of the user is detected, determining a playback time node corresponding to the click operation in the video stream and a click position corresponding to the click operation;

[0007] Determine the target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture;

[0008] The item information of the target item that needs to be pushed is pushed to the user.

[0009] Optionally, the step of determining the target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture may include:

[0010] Extracting the picture to be detected from the video stream within a preset time period before the playback time node;

[0011] Traversing the to-be-detected pictures, and when a to-be-detected picture containing the additional information of the picture is detected, determining whether the click position coincides with the position of the object;

[0012] If not, determining whether the click position coincides with the character position;

[0013] If so, the association information is used to determine the target item with the association relationship with the target person corresponding to the person position, and the target item with the association relationship with the target person corresponding to the person position is used as the target item that needs to be pushed.

[0014] Optionally, it may also include:

[0015] When the click position coincides with the object position, the target object corresponding to the object position is used as the target object to be pushed.

[0016] Optionally, it may also include:

[0017] When playing the video stream, detecting whether the picture in the video stream contains the picture additional information;

[0018] When a picture containing the picture additional information is detected, prompt information is generated and displayed.

[0019] Optionally, the client has a corresponding shopping application, and the shopping application includes a shopping list and may further include:

[0020] The item information is stored in the shopping list.

[0021] The embodiment of the present invention further discloses a method for pushing object information in video data, which is applied to a server and may include:

[0022] Extract the target image from the video stream at a preset frame interval;

[0023] Detecting whether a target object exists in the target image;

[0024] If so, determining the location of the item corresponding to the target item;

[0025] Detecting whether a target person exists in the target image;

[0026] If yes, determining the position of the person corresponding to the target person;

[0027] Determine the association relationship between the target object and the target person, and generate association information for the association relationship;

[0028] Generate additional picture information for the target picture using the target object, the object position, the target person, the person position, and the associated information;

[0029] The image additional information and the video stream are used to generate video data, and the video data is sent to a client.

[0030] The embodiment of the present invention further discloses a device for pushing item information in video data, the device is applied to a client, and the device may include:

[0031] A video data receiving module, used to receive video data sent by a server; the video data includes a video stream and additional picture information; the additional picture information includes a target object, an object location, a target person, a person location, and association information for an association relationship between the target object and the target person;

[0032] A playback time node and click position determination module, used to determine the playback time node corresponding to the click operation in the video stream and the click position corresponding to the click operation when a click operation of the user is detected;

[0033] A target item determination module, used to determine the target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture;

[0034] The item information push module is used to push the item information of the target item that needs to be pushed to the user.

[0035] Optionally, the module for determining the target item according to the playback time node may include:

[0036] A to-be-detected picture extraction submodule, used to extract the to-be-detected picture from the video stream within a preset time period before the playback time node;

[0037] The picture additional information detection submodule is used to traverse the pictures to be detected, and when the picture to be detected containing the picture additional information is detected, determine whether the click position coincides with the object position; if not, call the position coincidence determination submodule;

[0038] The position coincidence judgment submodule is used to judge whether the click position coincides with the character position; if so, calling;

[0039] The first target item determination submodule is used to use the association information to determine the target item having the association relationship with the target person corresponding to the person position, and use the target item having the association relationship with the target person corresponding to the person position as the target item that needs to be pushed.

[0040] Optionally, it may also include:

[0041] The second target item determination submodule is used to, when the click position coincides with the item position, take the target item corresponding to the item position as the target item to be pushed.

[0042] Optionally, it may also include:

[0043] A picture additional information detection module, used for detecting whether a picture in the video stream contains the picture additional information when playing the video stream;

[0044] The prompt information generation module is used to generate and display prompt information when a picture containing the additional picture information is detected.

[0045] Optionally, the client has a corresponding shopping application, and the shopping application includes a shopping list and may further include:

[0046] The item information storage module is used to store the item information in the shopping list.

[0047] The embodiment of the present invention further discloses a device for pushing item information in video data, the device is applied to a server, and the device may include:

[0048] A target image extraction module is used to extract the target image in the video stream at a preset frame interval;

[0049] A target object detection module is used to detect whether there is a target object in the target image; if so, calling an object location determination module;

[0050] An object position determination module, used to determine an object position corresponding to the target object;

[0051] A target person detection module is used to detect whether a target person exists in the target image; if so, a person position determination module is called;

[0052] A person position determination module, used to determine the person position corresponding to the target person;

[0053] An association information generating module, used to determine the association relationship between the target object and the target person, and generate association information for the association relationship;

[0054] A picture additional information generation module, used to generate picture additional information for the target picture by using the target object, the object position, the target person, the person position, and the associated information;

[0055] The video data generation module is used to generate video data using the picture additional information and the video stream, and send the video data to the client.

[0056] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0057] The memory is used to store computer programs;

[0058] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0059] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.

[0060] The embodiments of the present invention include the following advantages:

[0061] The embodiment of the present invention extracts the target image in the video stream at a preset frame interval and pre-processes the target image, thereby generating and sending video data to the client, so that when the client plays the video stream and detects a user's click operation, it can determine the target object to be pushed through the target object, the object position, the target person, the person position, the association between the target object and the target person, the playback time node and the click position corresponding to the click operation, and recommend the object information corresponding to the target object to be pushed to the user, thereby solving the problem that when the user is watching a video and is interested in an object in the video, it needs to search it through other applications to query the relevant information of the object, thereby improving the user experience and avoiding processing each image in the pre-processing process, thereby reducing the computing pressure. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 is a flowchart of a method for pushing item information in video data provided in Embodiment 1 of the present invention;

[0063] Figure 2 This is a data flow diagram provided by an embodiment of the present invention;

[0064] Figure 3is another flowchart of a method for determining a target object when a client plays a video stream provided by an embodiment of the present invention;

[0065] Figure 4 is a flowchart of a method for pushing item information in video data provided in Embodiment 2 of the present invention;

[0066] Figure 5 It is a structural block diagram of a device for pushing item information in video data provided in Embodiment 3 of the present invention;

[0067] Figure 6 It is a structural block diagram of a device for pushing object information in video data provided in Embodiment 4 of the present invention;

[0068] Figure 7 is a block diagram of an electronic device provided in an embodiment of the present invention;

[0069] Figure 8 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0070] Embodiment 1

[0071] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0072] Reference Figure 1 , shows a flowchart of a method for pushing item information in video data provided in Embodiment 1 of the present invention, which may specifically include the following steps:

[0073] Step 101, receiving video data sent by a server;

[0074] Step 102, when a click operation of the user is detected, determining a playback time node corresponding to the click operation in the video stream, and a click position corresponding to the click operation;

[0075] Step 103, determining a target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture;

[0076] Step 104: Push the item information of the target item to be pushed to the user.

[0077] In a specific implementation, the embodiments of the present invention can be applied to a client, which can be installed in a terminal device, such as a personal computer (PC), a tablet computer, a mobile phone, etc. The client can have a corresponding server, and the client can exchange data with the server through the terminal device.

[0078] In actual applications, in order to be able to retrieve the item information of an object in a video when a user plays a video, the video data needs to be preprocessed before the video is played. For example, the item position of an object in the video data needs to be marked so that the user can retrieve the item information of the item by clicking on the item while watching the video. In general, the amount of computation required for the preprocessing of video data is enormous. If the preprocessing of video data is executed in a terminal device, the data computing pressure of the terminal device will undoubtedly increase. In addition, if all images in the video stream are processed in order to enable the user to retrieve the item information of an object in the video, the computing pressure will be further increased.

[0079] The server of the embodiment of the present invention can be used to preprocess video data. Specifically, it can extract a target picture in a video stream at a preset frame interval; detect whether a target object exists in the target picture; if so, determine the object position corresponding to the target object; detect whether a target person exists in the target picture; if so, determine the person position corresponding to the target person; determine the association relationship between the target object and the target person, and generate association information for the association relationship; use the target object, the object position, the target person, the person position, and the association information to generate additional picture information for the target picture; use the additional picture information and the video stream to generate video data, and send the video data to a client.

[0080] In a specific implementation, a video stream is the most important component data in video data, which may be data composed of multiple ordered pictures. Usually, a frame may be a unit of quantity of pictures in a video stream, and a picture may be called a frame. The embodiment of the present invention may extract a target picture in a video stream at a preset frame interval, for example, extracting an image as a target picture every 30 frames.

[0081] After careful research, the inventors of the present invention found that when a video stream is played, each second usually corresponds to 30-60 frames of pictures, and the display time of the target object displayed in the video stream is usually not less than 1 second. Therefore, in an optional embodiment of the present invention, 30-60 frames can be used as the extraction interval to extract the target picture from the video stream.

[0082] The server of the embodiment of the present invention can also monitor whether the target object and the target person exist in the target image after extracting the target image, and determine the object position corresponding to the target object when the target object is detected in the target image, and determine the person position corresponding to the target person when the target person is detected in the target image.

[0083] In a specific implementation, the embodiment of the present invention can generate a target object detection model for the target object by training the computer vision algorithm Mask RCNN. For example, video screenshots or stills are used as training samples, and the objects that are desired to be pushed in the training samples (such as lipstick, women's handbags, mobile phones, etc.) are marked as target objects, so as to train a target object detection model that can detect whether the target object exists in the target image by itself. Then, the target object detection model is used to detect whether the target object exists in the target image, and when the target object is detected in the target image, the object position corresponding to the target object is determined. For example, when a lipstick that is desired to be pushed is detected in the target image, the coordinate data of the lipstick in the target image can be calculated.

[0084] The embodiment of the present invention can also generate a target person detection model for a target person by training the computer vision algorithm Mask RCNN. For example, stills in a film or TV series and screenshots in an actor's promotional video are used as training samples, and the characters in the training samples (such as a leading actress, a leading actor, etc.) are marked as target persons, so as to train a target person detection model that can detect whether a target person exists in a target image by itself. Then, the target person detection model is used to detect whether a target person exists in the target image, and when the target person is detected in the target image, the person position corresponding to the target person is determined. For example, when a female actress is detected in the target image, the coordinate data of the female actress in the target image can be calculated.

[0085] Of course, it is understandable that the object position and the person position can be a point, or can be an area that can completely or partially cover the target object and the target person.

[0086] The server of the embodiment of the present invention may also determine and establish an association relationship between the target person and the target object when the target image contains the target object and the target person, and may generate association information for the association relationship.

[0087] For example, when target items such as handbags, lipsticks, and humidifiers belong to the leading female character, an association relationship can be established between the target items such as handbags, lipsticks, and humidifiers and the leading female character; for another example, when target items such as watches and sweeping robots belong to the leading male character, an association relationship can be established between the target items such as watches and sweeping robots and the leading male character, and then based on the determined association relationship, association information for the association relationship can be generated.

[0088] After acquiring the target object, object location, target person, person location, and related information, the server of an embodiment of the present invention can use the target object, object location, target person, person location, and related information to generate additional image information for the target image, that is, the additional image information can include the target object, object location, target person, person location, and related information.

[0089] After generating the additional information of the picture, the server of the embodiment of the present invention can also use the additional information of the picture and the video stream to generate complete video data, and can send the video data to the client, thereby realizing that the video data received by the client includes not only the video stream for providing to the user for playback, but also the target object, object location, target person, person location, and related information.

[0090] It can also be understood that the video data includes each frame of the image in the video stream, and may also include the target object, the object location, the target person, the person location, and associated information that can express the relationship between the target person and the target object. After receiving the video data sent by the server, the client can play the image frame by frame so that the user can watch the video through the terminal device. At the same time, in addition to each frame of the image, the client also receives the target object, the object location, the target person, the person location and associated information.

[0091] After receiving the video data sent by the server, the client of the embodiment of the present invention can play the video stream of the video data. During the playback process, when a user's click operation is detected, the playback time node corresponding to the user's click operation in the video stream and the click position corresponding to the click operation can be determined.

[0092] For example, when a user plays an online video on a mobile phone, he can click on the screen of the mobile phone, and the client can determine the current playback time node of the video (for example, the current playback time node of the video is 32 minutes and 15 seconds) and the coordinate data of the click position when detecting the user's click operation.

[0093] As can be seen from the above, the video data in the embodiment of the present invention not only includes the video stream for providing to the user for playback, but also may include the target item, item location, target person, person location, and associated information regarding the association relationship between the target item and the target person. Therefore, after detecting the user's click operation, the embodiment of the present invention can automatically determine the target item that needs to be pushed based on the playback time node, click location, target item, item location, target person, person location, and associated information, and recommend the item information of the target item that needs to be pushed to the user.

[0094] The embodiment of the present invention extracts a target image in a video stream at a preset frame interval, pre-processes the target image, and then generates video data by acquiring a target object, an object position, a target person, a person position, an association relationship between the target object and the target person in the target image, and a data stream, and sends the video data to a client, so that when the client plays the video stream and detects a user's click operation, it can determine the target object to be pushed through the target object, the object position, the target person, the person position, the association relationship between the target object and the target person, the playback time node and the click position corresponding to the click operation, and recommend the object information corresponding to the target object to be pushed to the user, thereby solving the problem that when the user is watching a video and is interested in an object in the video, it needs to search it through other applications to query the relevant information of the object, thereby improving the user experience. On the other hand, it also avoids processing each image in the preprocessing process, thereby reducing the computing pressure of the terminal device.

[0095] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.

[0096] In an optional embodiment of the present invention, the step of determining the target item to be pushed in the video data according to the playback time node, the click position and the picture additional information includes:

[0097] Extracting the picture to be detected from the video stream within a preset time period before the playback time node;

[0098] Traversing the to-be-detected pictures, and when a to-be-detected picture containing the additional information of the picture is detected, determining whether the click position coincides with the position of the object;

[0099] If not, determining whether the click position coincides with the character position;

[0100] If so, the association information is used to determine the target item with the association relationship with the target person corresponding to the person position, and the target item with the association relationship with the target person corresponding to the person position is used as the target item that needs to be pushed.

[0101] In actual applications, users often watch videos through terminal devices with relatively small screens. If users can only click on items in the video to determine the item information about the item, users often encounter situations where they cannot accurately click on the item. For example, when a user watches a video through a mobile phone, if they want to click on a small item used by a character in the video through the mobile phone screen, such as a lipstick, a watch, etc., it is difficult to accurately click on the small item. Therefore, in an embodiment of the present invention, a picture to be detected can be extracted from a video stream within a preset time period before a playback time node, and then all extracted pictures to be detected can be traversed. When a picture to be detected containing additional picture information is detected, it can be determined whether the click position corresponding to the user's click operation coincides with the item position in the additional picture information. If the click position does not coincide with the item position, it can be determined whether the click position coincides with the person position in the additional picture information. If the click position coincides with the person position, the association information in the additional picture information can be used to determine a target item associated with a target person corresponding to the person position, and the target item associated with the target person corresponding to the person position is marked as a target item that needs to be pushed.

[0102] Further, when it is detected that the picture to be detected does not contain the additional information of the picture, or it is detected that the click position does not coincide with the position of the person, or it is detected that all the pictures to be detected have not been traversed, the next picture to be detected is detected in sequence.

[0103] In another optional embodiment of the present invention, when the click position coincides with the object position, the target object corresponding to the object position is used as the target object to be pushed.

[0104] For example, when the client plays the data stream, it is detected that the user has performed a click operation when the video is played to 10:28:21:087. The preset time period can be 2 seconds, then the period from 10:28:21:087 to 10:28:19:087 can be obtained, that is, each frame of the picture contained in the past 2 seconds is extracted as the picture to be detected, and then, the following operations can be performed frame by frame in reverse order of the playback order to determine whether the picture to be detected corresponding to 10:28:21:087 carries additional picture information. If not, it means that there is no target object in the frame of the picture to be detected, then continue to detect whether the previous frame of the picture to be detected carries additional picture information. If the frame of the picture to be detected carries additional picture information, then according to the object position in the additional picture information, determine whether the click position corresponding to the click operation is consistent with the picture to be detected. If the click position coincides with the item position, the item coincident with the click position is recorded and used as the target item to be pushed. If the click position does not coincide with the item position, it is further determined whether the click position coincides with the person position in the frame image according to the person position in the additional information of the picture. If the click position does not coincide with the person position, it is continued to detect whether the previous frame of the image to be detected carries the additional information of the picture. If the click position coincides with the person position, it means that the user wants to click on the target item that the target person is using, but because the target item is too small, the target person is mistakenly clicked. Therefore, according to the association relationship between the target person and the target item, a target item that has an association relationship with the clicked target person can be selected from several target items in the current frame image as the target item to be pushed.

[0105] The embodiment of the present invention extracts the picture to be detected from the video stream within a preset time period before the playback time node; traverses the pictures to be detected, and when the picture to be detected containing the additional information of the picture is detected, determines whether the click position coincides with the object position; if not, determines whether the click position coincides with the person position; if so, uses the association information to determine the target item with the association relationship with the target person corresponding to the person position, and uses the target item with the association relationship with the target person corresponding to the person position as the target item to be pushed, thereby achieving that when the target item is too small, the user can click on the target person, thereby using the target item with the association relationship with the target person as the target item to be pushed, further improving the efficiency of the user in selecting the target item.

[0106] Furthermore, the embodiments of the present invention can also use the target item corresponding to the object position as the target item to be pushed when the click position coincides with the object position, thereby enabling the target item clicked by the user to be directly used as the target item to be pushed when the user successfully clicks the target item, that is, when the click position coincides with the object position, thereby further improving the efficiency of the user in selecting the target item.

[0107] In an optional embodiment of the present invention, the method may further include:

[0108] When playing the video stream, detecting whether the picture in the video stream contains the picture additional information;

[0109] When a picture containing the picture additional information is detected, prompt information is generated and displayed.

[0110] In practical applications, it is obviously unrealistic to use all items in a video as target items. Generally speaking, target items are targeted. For example, when a video producer intends to recommend a certain item to the audience, it can be used as a target item to be pushed. However, users are often unclear about which item is the target item to be recommended while watching the video. Therefore, an embodiment of the present invention can detect whether all pictures in the video stream contain additional picture information while the client is playing the video stream, and generate prompt information for the target item when a picture containing additional picture information is detected, and display the prompt information on the screen of the terminal device to let the user know that the currently played video content includes the item information of the target item to be pushed. Optionally, the prompt information can be displayed through a highlightable icon.

[0111] In a specific implementation, an embodiment of the present invention can generate a highlightable icon on the screen when a user plays a video through a mobile phone. The client can detect whether the currently played frame of the image carries additional information. If it does not carry the additional image information, the highlightable icon is in a low-brightness state. If it carries the additional image information, a prompt message is given to the user on the mobile phone screen, that is, the highlightable icon is in a highlighted state, and the duration of the prompt message can be set according to a preset time length, thereby prompting the user that there is item information of a target item that needs to be pushed in the picture played in the current time period, and the user can click on the target item to understand the item information of the target item.

[0112] For example, Figure 2 As shown, Figure 2A data stream schematic diagram provided by an embodiment of the present invention is shown; each rectangular box in the figure represents each frame of an image in a video stream, and image 201 is an image frame carrying additional image information. Assume that image 201 corresponds to the 10950th frame of an image in a data stream, and when the terminal device plays the 10950th frame of an image, the playing time is 365 seconds, and it is detected that the 10950th frame of an image carries additional image information. At this time, the shopping cart icon in the lower right corner of the terminal device screen will be lit to indicate that there is a need to push in the currently played picture. The item information of the target item can be displayed, and the duration of the prompt information can be 2 seconds, that is, the shopping cart icon can be continuously lit up to 367 seconds. Picture 202 is also a frame image carrying additional picture information. Assume that picture 202 corresponds to the 10980th frame image in the data stream. When the terminal device plays the 10980th frame image, the playback time is 366 seconds. It is detected that the 10980th frame image also carries additional picture information. Therefore, the shopping cart icon in the lower right corner of the terminal device screen will remain lit and will continue to be lit up to 368 seconds.

[0113] In actual applications, in order to reduce the amount of calculation of the terminal device during the video stream playback process and to avoid accidental touches by the user, optionally, the example of the present invention can detect whether the user performs a click operation only when the prompt information is displayed. Furthermore, the example of the present invention can also determine the playback time node corresponding to the click operation in the video stream and the click position corresponding to the click operation when the prompt information is displayed and the user's click operation is detected.

[0114] The embodiment of the present invention detects whether a picture in the video stream contains the picture additional information when playing the video stream; when a picture containing the picture additional information is detected, prompt information is generated and displayed, so that when a target object appears in the video, prompt information for the target object can be generated for the user, so that the user knows that the target object exists in the currently playing picture, thereby improving the efficiency of the user in selecting the target object.

[0115] In an optional embodiment of the present invention, the client has a corresponding shopping application, and the shopping application includes a shopping list and further includes:

[0116] The item information is stored in the shopping list.

[0117] In actual applications, in addition to the need to understand the target information of the target item, the user may also have the need to purchase the target item. Therefore, the client of the embodiment of the present invention can directly store the item information in the shopping list of the shopping application corresponding to the client. Furthermore, the shopping application corresponding to the client of the embodiment of the present invention can be a small program integrated in the client, or it can be a shopping application bundled with a third-party platform.

[0118] For example, the item information may be directly added to a shopping cart of a shopping application. After opening the shopping application, the user may directly click on the shopping cart to view the item information and may directly purchase the target item corresponding to the item information.

[0119] The embodiment of the present invention stores the item information in the shopping list, so that the user can directly purchase the target item corresponding to the item information from the shopping list of the shopping application when opening the shopping application, thereby improving the user experience.

[0120] In order to enable those skilled in the art to better understand the embodiments of the present invention, a complete example is used below to illustrate the embodiments of the present invention.

[0121] The server performs preprocessing of the film and television drama:

[0122] Take the items you want to push (such as handbag A, handbag B, handbag C, lipstick A, lipstick B, watch A, watch B, watch C, humidifier M, sweeping robot N, etc.) as the target objects, use stills from movies and TV series and screenshots from item promotional videos as training samples, train the target detection model maskrcnn, and train a target detection model a that can detect these items;

[0123] Take the characters in the play (such as the leading female character, the second female character, the leading male character, the second male character, etc.) as the target objects, use the stills in the film and television drama and the screenshots in the actor's promotional video as training samples, train another target detection model maskrcnn, and train a target detection model b that can detect these characters;

[0124] Considering that online TV dramas usually have 30-60 frames per second, and the items displayed in the drama, especially the items that users are expected to click, are usually displayed for no less than 1 second, so 30 frames are used as the extraction interval to extract several frames of images from the TV drama as images to be detected. In other words, every 30 frames, an image is extracted as the image to be detected, and then for each image to be detected, the pre-trained target detection model a is used to detect whether there is a target object in the image to be detected, and the position of each target object in the image; the pre-trained target detection model b is used to identify whether there are characters in the drama (such as the first female lead, the second female lead, etc.) in the image to be detected and the position of each character in the image.

[0125] Establish a subordinate relationship between each item and each character in the play. For example, items such as handbag A, handbag B, lipstick A, humidifier M belong to the female lead; items such as handbag C, lipstick B, watch A belong to the second female lead; items such as watch B, watch C, sweeping robot N belong to the male lead.

[0126] Finally, for each image, the following information is packaged as additional information of the image: the name of the object, the position of the object in the image, the identity of the characters in the play, the position of the characters in the image, the relationship between each object and each character in the play, etc.

[0127] The client plays the film and TV series:

[0128] The server sends the video data of the film and television drama to the mobile phone. The video data includes each frame image of the film and television drama and additional information of some images. The additional information includes the name of the object, the position of the object in the image, the identity of the characters in the play, the position of the characters in the image, and the relationship between the object and the characters in the play. After the mobile phone receives the video data, it plays each image frame by frame, thereby playing the film and television drama on the mobile phone screen.

[0129] When the mobile phone is playing a film or TV series, it will detect whether the currently played frame image carries additional information. If so, a prompt will be given on the screen, and the duration of the prompt is equal to the preset time t (for example, the preset time t is equal to 2 seconds). If it is detected that the currently played frame image carries additional information, the shopping cart icon on the screen will be lit up, and the lighting time will last for the preset time t, thereby prompting the user: there are items in the picture played in the current period that can be clicked to understand the details.

[0130] like Figure 3 As shown, Figure 3301 is executed when the user is playing a movie or TV series on the mobile phone and the shopping cart icon is highlighted, and a click operation of the user on the mobile phone screen is detected; after the click operation of the user on the mobile phone screen is detected, step 302 is executed to obtain all images within a preset time period from the current time as the time starting point. For example, assuming that the user clicks the mobile phone screen at 10:28:21:087, the images from 10:28:21:087 to 10:28:19:087 (i.e., the past 2 seconds) are obtained. The following operations are performed for each frame of image one by one, starting from the current moment forward, that is, in reverse order of the playback time: Step 303 determines whether the frame of image carries additional information. If not, it means that there is no item information in the frame of image, and then the next frame of image is processed. If the frame of image carries additional information, step 304 is executed according to the item position information in the additional information to determine whether the user click position coincides with the item position in the frame of image. If so, step 305 is executed to record the item coincident with the click position. The item may be the item that the user wants to know in detail. If the user clicks If the position of the user clicked does not coincide with the position of the object, then step 306 is further executed based on the person position information in the additional information to determine whether the user clicked position coincides with the person position in the frame image. If not, the next frame image is processed. If coincident, it means that the user probably intended to click on the object that the person is using, but mistakenly clicked on the person because the object is too small. In this case, step 307 is executed to select the object corresponding to the clicked person from the multiple objects in the current frame based on the clicked person and the affiliated relationship, and record the information of these objects. For example, assuming that the current frame carries The additional information includes the position information of the second female character, and also includes the position information of items such as handbag A and handbag C. When it is detected that the user's click position coincides with the position of the second female character, according to the affiliation between the second female character and handbag C, the item corresponding to the second female character, that is, handbag C, can be selected from the items such as handbag A and handbag C existing in the current frame, and handbag C can be recorded; step 308 is executed to determine whether all frames have been traversed and processed. After traversing all images, step 309 is executed to display all the recorded items to the user, allowing the user to select these items, and the items selected by the user are added to the shopping cart.

[0131] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0132] Embodiment 2

[0133] Reference Figure 4 , shows a flowchart of a method for pushing item information in video data provided in Embodiment 2 of the present invention, which may specifically include the following steps:

[0134] Step 401, extracting a target image from a video stream at a preset frame interval;

[0135] Step 402, detecting whether there is a target object in the target image; if so, executing step 403;

[0136] Step 403, determining the object position corresponding to the target object;

[0137] Step 404, detecting whether there is a target person in the target image; if so, executing step 405;

[0138] Step 405, determining the position of a person corresponding to the target person;

[0139] Step 406, determining the association relationship between the target object and the target person, and generating association information for the association relationship;

[0140] Step 407, using the target object, the object position, the target person, the person position, and the associated information to generate additional image information for the target image;

[0141] Step 408: Generate video data using the additional image information and the video stream, and send the video data to the client.

[0142] In practical applications, the embodiments of the present invention can be applied to a server.

[0143] The embodiment of the present invention extracts a target image in a video stream at a preset frame interval, pre-processes the target image, and then generates video data by acquiring a target object, an object position, a target person, a person position, an association relationship between the target object and the target person in the target image, and a data stream, and sends the video data to a client, so that when the client plays the video stream and detects a user's click operation, it can determine the target object to be pushed through the target object, the object position, the target person, the person position, the association relationship between the target object and the target person, the playback time node and the click position corresponding to the click operation, and recommend the object information corresponding to the target object to be pushed to the user, thereby solving the problem that when the user is watching a video and is interested in an object in the video, it needs to search it through other applications to query the relevant information of the object, thereby improving the user experience. On the other hand, it also avoids processing each image in the preprocessing process, thereby reducing the computing pressure of the terminal device.

[0144] As for the second embodiment, since its implementation process is basically similar to that of the first embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0145] Embodiment 3

[0146] Reference Figure 5 , shows a structural block diagram of a device for pushing item information in video data provided in Embodiment 3 of the present invention, which may specifically include the following modules:

[0147] The video data receiving module 501 is used to receive video data sent by the server; the video data includes a video stream and additional picture information; the additional picture information includes a target object, an object location, a target person, a person location, and association information for an association relationship between the target object and the target person;

[0148] The play time node and click position determination module 502 is used to determine the play time node corresponding to the click operation in the video stream and the click position corresponding to the click operation when a click operation of the user is detected;

[0149] A target item determination module 503 is used to determine a target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture;

[0150] The item information pushing module 504 is used to push the item information of the target item to be pushed to the user.

[0151] Optionally, the module for determining the target item according to the playback time node may include:

[0152] A to-be-detected picture extraction submodule, used to extract the to-be-detected picture from the video stream within a preset time period before the playback time node;

[0153] The picture additional information detection submodule is used to traverse the pictures to be detected, and when the picture to be detected containing the picture additional information is detected, determine whether the click position coincides with the object position; if not, call the position coincidence determination submodule;

[0154] The position coincidence judgment submodule is used to judge whether the click position coincides with the character position; if so, calling;

[0155] The first target item determination submodule is used to use the association information to determine the target item having the association relationship with the target person corresponding to the person position, and use the target item having the association relationship with the target person corresponding to the person position as the target item that needs to be pushed.

[0156] Optionally, the device may further include:

[0157] The second target item determination submodule is used to, when the click position coincides with the item position, take the target item corresponding to the item position as the target item to be pushed.

[0158] Optionally, the device may further include:

[0159] A picture additional information detection module, used for detecting whether a picture in the video stream contains the picture additional information when playing the video stream;

[0160] The prompt information generation module is used to generate and display prompt information when a picture containing the additional picture information is detected.

[0161] Optionally, the client has a corresponding shopping application, the shopping application includes a shopping list, and the apparatus may further include:

[0162] The item information storage module is used to store the item information in the shopping list.

[0163] Embodiment 4

[0164] Reference Figure 6 , shows a structural block diagram of a device for pushing item information in video data provided in Embodiment 4 of the present invention, which may specifically include the following modules:

[0165] The target image extraction module 601 is used to extract the target image in the video stream at a preset frame interval;

[0166] The target object detection module 602 is used to detect whether there is a target object in the target image; if so, the object position determination module 603 is called;

[0167] An object location determination module 603 is used to determine an object location corresponding to the target object;

[0168] The target person detection module 604 is used to detect whether there is a target person in the target image; if so, the person position determination module 605 is called;

[0169] A person position determination module 605 is used to determine the person position corresponding to the target person;

[0170] The association information generating module 606 is used to determine the association relationship between the target object and the target person, and generate association information for the association relationship;

[0171] The picture additional information generating module 607 is used to generate the picture additional information for the target picture by using the target object, the object position, the target person, the person position, and the associated information;

[0172] The video data generating module 608 is used to generate video data using the picture additional information and the video stream, and send the video data to the client.

[0173] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0174] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0175] Memory 703, used for storing computer programs;

[0176] The processor 701 is used to implement the method for pushing the object information in the video data as described in the above embodiment when executing the program stored in the memory 703.

[0177] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0178] The communication interface is used for communication between the above terminal and other devices.

[0179] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0180] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0181] like Figure 8 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 801 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method for pushing object information in video data described in the above embodiment.

[0182] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is executed on a computer, the computer executes the method for pushing object information in video data described in the above embodiment.

[0183] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0184] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0185] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0186] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for pushing object information in video data, characterized in that: The method is applied to a client, and the method comprises: receiving video data sent by a server; the video data includes a video stream and additional picture information; the additional picture information includes a target object, an object location, a target person, a person location, and association information regarding an association relationship between the target object and the target person; When a click operation of the user is detected, determining a playback time node corresponding to the click operation in the video stream and a click position corresponding to the click operation; Determine a target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture; Pushing the item information of the target item to be pushed to the user; The step of determining the target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture includes: Extracting the picture to be detected from the video stream within a preset time period before the playback time node; Traversing the to-be-detected pictures, and when a to-be-detected picture containing the additional information of the picture is detected, determining whether the click position coincides with the position of the object; If not, determining whether the click position coincides with the character position; If it is determined that the click position coincides with the person position, all target items having the association relationship with the target person corresponding to the person position are determined using the association information, and the target items having the association relationship with the target person corresponding to the person position are taken as target items that need to be pushed; When the click position coincides with the object position, the target object corresponding to the object position is used as the target object to be pushed.

2. The method according to claim 1, characterized in that Also includes: When playing the video stream, detecting whether the picture in the video stream contains the picture additional information; When a picture containing the picture additional information is detected, prompt information is generated and displayed.

3. The method according to claim 1, characterized in that The client has a corresponding shopping application, which includes a shopping list and further includes: The item information is stored in the shopping list.

4. A method for pushing object information in video data, characterized in that: The method is applied to a server, and the method comprises: Extract the target image from the video stream at a preset frame interval; Detecting whether a target object exists in the target image; If so, determining the location of the object corresponding to the target object; Detecting whether a target person exists in the target image; If yes, determining the position of the person corresponding to the target person; Determine the association relationship between the target object and the target person, and generate association information for the association relationship; Generate additional picture information for the target picture using the target object, the object position, the target person, the person position, and the associated information; Generate video data using the additional image information and the video stream, and send the video data to a client; The client is configured to: Receiving video data sent by a server; the video data includes a video stream and additional picture information; When a click operation of the user is detected, determining a playback time node corresponding to the click operation in the video stream and a click position corresponding to the click operation; Determine a target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture; Pushing the item information of the target item to be pushed to the user; The step of determining the target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture includes: Extracting the picture to be detected from the video stream within a preset time period before the playback time node; Traversing the to-be-detected pictures, and when a to-be-detected picture containing the additional information of the picture is detected, determining whether the click position coincides with the position of the object; If not, determining whether the click position coincides with the character position; If it is determined that the click position coincides with the person position, all target items having the association relationship with the target person corresponding to the person position are determined using the association information, and the target items having the association relationship with the target person corresponding to the person position are taken as target items that need to be pushed; When the click position coincides with the object position, the target object corresponding to the object position is used as the target object to be pushed.

5. A device for pushing object information in video data, characterized in that: The device is applied to a client, and comprises: A video data receiving module, used to receive video data sent by a server; the video data includes a video stream and additional picture information; the additional picture information includes a target object, an object location, a target person, a person location, and association information for an association relationship between the target object and the target person; A playback time node and click position determination module, used to determine the playback time node corresponding to the click operation in the video stream and the click position corresponding to the click operation when a click operation of the user is detected; A target item determination module, used to determine the target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture; An item information push module, used to push the item information of the target item to be pushed to the user; The target item determination module includes: A to-be-detected picture extraction submodule, used to extract the to-be-detected picture from the video stream within a preset time period before the playback time node; The picture additional information detection submodule is used to traverse the pictures to be detected, and when the picture to be detected containing the picture additional information is detected, determine whether the click position coincides with the object position; if not, call the position coincidence determination submodule; The position coincidence judgment submodule is used to judge whether the click position coincides with the character position; if so, calling; A first target item determination submodule is used to determine the target item having the association relationship with the target person corresponding to the person position by using the association information, and use the target item having the association relationship with the target person corresponding to the person position as the target item to be pushed; The second target item determination submodule is used to, when the click position coincides with the item position, take the target item corresponding to the item position as the target item to be pushed.

6. The device according to claim 5, characterized in that Also includes: A picture additional information detection module, used for detecting whether a picture in the video stream contains the picture additional information when playing the video stream; The prompt information generation module is used to generate and display prompt information when a picture containing the additional picture information is detected.

7. The device according to claim 6, characterized in that The client has a corresponding shopping application, which includes a shopping list and further includes: The item information storage module is used to store the item information in the shopping list.

8. A device for pushing object information in video data, characterized in that: The device is applied to a server, and comprises: A target image extraction module is used to extract the target image in the video stream at a preset frame interval; A target object detection module is used to detect whether there is a target object in the target image; if so, calling an object location determination module; An object position determination module, used to determine an object position corresponding to the target object; A target person detection module is used to detect whether a target person exists in the target image; if so, a person position determination module is called; A person position determination module, used to determine the person position corresponding to the target person; An association information generating module, used to determine the association relationship between the target object and the target person, and generate association information for the association relationship; A picture additional information generation module, used to generate picture additional information for the target picture by using the target object, the object position, the target person, the person position, and the associated information; A video data generation module, used to generate video data using the picture additional information and the video stream, and send the video data to the client; The client comprises: A video data receiving module, used for receiving video data sent by a server; the video data includes a video stream and additional picture information; A playback time node and click position determination module, used to determine the playback time node corresponding to the click operation in the video stream and the click position corresponding to the click operation when a click operation of the user is detected; A target item determination module, used to determine the target item to be pushed in the video data according to the playback time node, the click position and the additional information of the picture; An item information push module, used to push the item information of the target item to be pushed to the user; The target item determination module includes: A to-be-detected picture extraction submodule, used to extract the to-be-detected picture from the video stream within a preset time period before the playback time node; The picture additional information detection submodule is used to traverse the pictures to be detected, and when the picture to be detected containing the picture additional information is detected, determine whether the click position coincides with the object position; if not, call the position coincidence determination submodule; The position coincidence judgment submodule is used to judge whether the click position coincides with the character position; if so, calling; A first target item determination submodule is used to determine the target item having the association relationship with the target person corresponding to the person position by using the association information, and use the target item having the association relationship with the target person corresponding to the person position as the target item to be pushed; The second target item determination submodule is used to, when the click position coincides with the item position, take the target item corresponding to the item position as the target item to be pushed.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1-3 or 4 when executing the program stored in the memory.

10. One or more computer-readable media having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method of any one of claims 1-3 or 4.