WO2023082569A1 - Video information extraction method and apparatus - Google Patents

Video information extraction method and apparatus Download PDF

Info

Publication number
WO2023082569A1
WO2023082569A1 PCT/CN2022/091812 CN2022091812W WO2023082569A1 WO 2023082569 A1 WO2023082569 A1 WO 2023082569A1 CN 2022091812 W CN2022091812 W CN 2022091812W WO 2023082569 A1 WO2023082569 A1 WO 2023082569A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
target
live
user account
information
Prior art date
Application number
PCT/CN2022/091812
Other languages
French (fr)
Chinese (zh)
Inventor
黄劲文
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2023082569A1 publication Critical patent/WO2023082569A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics

Definitions

  • the present disclosure relates to the technical field of video processing, and in particular to a video information extraction method, device, electronic equipment and storage medium.
  • the content of the live video is processed by monitoring the gesture similarity of the characters in the live video and the proportion of the human face in the frame.
  • the disclosure provides a video information extraction method, device, electronic equipment and storage medium.
  • a method for extracting video information including acquiring information of a target user account, where the target user account is the live room user account of the live room corresponding to the live video; according to the information of the target user account, determine The activity value of the target user account in the live broadcast room corresponding to the live video; according to the activity value, the target video information is extracted from the live video.
  • the step of extracting the target video information from the live video according to the liveness value includes:
  • the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
  • the step of extracting the target video information from the live video according to a preset policy includes:
  • the target video information is extracted from the live video.
  • the step of extracting the target video information from the live video according to the current video frame and the target video frame includes:
  • a video segment is intercepted from a live video, and the video segment is used as target video information, wherein the video segment includes a start frame and an end frame, the start frame is a current video frame, and the end frame is a target video frame.
  • the step of extracting the target video information from the live video according to the current video frame and the target video frame includes:
  • Part of video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information.
  • the step of determining the target video frame according to the preset policy and activity value includes:
  • the video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
  • the step of determining the activity value of the target user account in the live room corresponding to the live video includes:
  • the reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room corresponding to the live video.
  • the target user account group includes multiple user accounts, and the method further includes:
  • a reference activity value corresponding to the target user account group is determined.
  • some video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information, including:
  • the target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point.
  • the video frame is the current video frame or a candidate video frame , or the target video frame;
  • a preset number of video frames sorted before are selected as target video information.
  • a device for extracting video information including an acquisition module configured to acquire information of a target user account, where the target user account is the live room user account of the live room corresponding to the live video; a determination module is configured to determine the activity value of the target user account in the live broadcast room corresponding to the live video according to the information of the target user account; the extraction module is configured to extract the target video information from the live video according to the activity value.
  • the extraction module is configured to:
  • the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
  • the extraction module is configured to:
  • the target video information is extracted from the live video.
  • the extraction module is configured to:
  • a video segment is intercepted from a live video, and the video segment is used as target video information, wherein the video segment includes a start frame and an end frame, the start frame is a current video frame, and the end frame is a target video frame.
  • the extraction module is configured to:
  • Part of video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information.
  • the extraction module is configured to:
  • the video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
  • the determination module includes:
  • the first determination sub-module is configured to determine the target user account group where the target user account is located according to the information of the target user account, and use the reference activity value corresponding to the target user account group as the live video corresponding to the target user account activity value between.
  • the target user account group includes multiple user accounts
  • the determining module further includes:
  • the obtaining sub-module is configured to obtain a plurality of live interactive information corresponding to a plurality of user accounts
  • the second determining submodule is configured to determine a plurality of candidate activity values respectively corresponding to a plurality of user accounts according to a plurality of live interaction information
  • the third determination submodule is configured to determine a reference activity value corresponding to the target user account group according to the plurality of candidate activity values.
  • the extraction module is used for:
  • the target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point.
  • the video frame is the current video frame or a candidate video frame , or the target video frame;
  • a preset number of video frames sorted before are selected as target video information.
  • an electronic device including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement Video information extraction method as described above.
  • a non-volatile computer-readable storage medium When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute Video information extraction method as described above.
  • a computer program product including a computer program, when the computer program is executed by a processor, the method for extracting video information as described above is implemented.
  • the target user account is the user account of the live broadcast room corresponding to the live video, and according to the information of the target user account, determine the activity value of the target user account in the live room corresponding to the live video, according to the activity Value, to extract the target video information from the live video.
  • This method effectively enhances the efficiency of video information extraction. Since the activity of the target user account is detected and quantified, the value representing the activity of the target user account is obtained, and the target video information is extracted according to the activity value, which can automatically obtain the live broadcast. Effective video information in the video improves the extraction effect of effective video information.
  • Fig. 1 is a flowchart of a method for extracting video information according to an exemplary embodiment.
  • Fig. 2 is a flowchart of a method for extracting video information according to another exemplary embodiment.
  • Fig. 3 is a flow chart showing target video information selection according to another exemplary embodiment.
  • Fig. 4 is a flow chart showing target video information selection according to another exemplary embodiment.
  • Fig. 5 is a flow chart showing a method for extracting video information according to another exemplary embodiment.
  • Fig. 6 is a block diagram of an apparatus for extracting video information according to an exemplary embodiment.
  • Fig. 7 is a block diagram of an apparatus for extracting video information according to another exemplary embodiment.
  • Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
  • Fig. 1 is a flowchart of a method for extracting video information according to an exemplary embodiment.
  • Embodiments of the present disclosure are described by taking a video information extraction method configured in a video information extraction device as an example.
  • the video information extraction method in the embodiment of the present disclosure may be configured in a video information extraction device, and the video information extraction device may be set in a server.
  • execution subject of the embodiments of the present disclosure may be, for example, a central processing unit (Central Processing Unit, CPU) of the server in terms of hardware, and may be, for example, a related background service of the server in terms of software.
  • CPU Central Processing Unit
  • the method for extracting video information includes the following steps S101 to S103.
  • step S101 information of a target user account is obtained, and the target user account is a live room user account of a live room corresponding to a live video.
  • the methods, devices, devices, and storage media involved in the present disclosure can acquire information related to user accounts.
  • the target user account may be the user account of the live broadcast room corresponding to the live video.
  • the user account for watching the live video in the live broadcast room is regarded as the user account of the live broadcast room, and the user account of the live room to which target video information is currently to be provided may be called the target user account.
  • the application can obtain information such as the viewing record and interaction status of the live broadcast room of the user account within the scope allowed by the user account, and through mathematical models such as big data models, The identity information of the current user account, viewing habit information, live interaction habit information, etc. are analyzed and obtained as the information of the target user account.
  • step S102 the activity value of the target user account in the live broadcast room corresponding to the live video is determined according to the information of the target user account.
  • the activity value can be used to describe the activity related to the target user account, the activity can be the activity of the target user account itself in the live broadcast room, or the activity of other user accounts related to the target user account in the live broadcast room situation etc.
  • the activity value of the target user account in the live broadcast room of the live video may be the real-time activity representing the current time node, or it may be the live video recording during the live broadcast.
  • the user account information determines the activity value, or it can also be determined based on the number of current target user accounts in the live broadcast room, or based on the interaction frequency of the target user accounts in the live broadcast room, such as the number of bullet screens, the number and value of gifts etc., to calculate the activity value, it may also be to calculate the information of the target user account through a corresponding activity algorithm, so as to obtain the activity value of the target user account in the live broadcast room of the live video.
  • step S103 the target video information is extracted from the live video according to the liveness value.
  • the video information may be selected in real time according to the activity value of the target user account during the live broadcast process to extract, or the target activity value may be recorded, and the corresponding video information in the recorded video of the live broadcast Information is extracted.
  • the target video information may be a live video segment within a certain period of time extracted according to the activity value, or may be one or more video frames included in the live video segment.
  • the target video information can be determined according to this change, and the activity value can also be set. degree threshold, and extract the target video information by comparing the activity value with the threshold value.
  • the target video information in response to the change in the activity value being greater than or equal to the preset increase threshold, is extracted from the live video according to a preset strategy, and in response to the change in the activity value being less than the preset increase Threshold value, re-execute the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video, and determine the target video information by comparing the activity value with the set threshold value, the set threshold value can be determined and The liveness value corresponds to the activeness threshold value of the live video containing valid video information at the point in time, so that when the change in the liveness value is greater than or equal to the set threshold, according to the preset strategy, the live video Extracting the target video information can effectively help improve the accuracy and rationality of video information extraction, and ensure the timeliness of video information extraction based on the activity value. Execution determines the activity value of the target user account in the live broadcast room of the live video, thereby effectively avoiding the omission of valid video information and
  • the preset strategy may be a target video information extraction strategy set according to the change of activity value, for example, when the activity value reaches the set threshold, start to trigger the extraction of target video information from the live video , stop extracting when the activity value is lower than a certain percentage of the set threshold, or continue to extract video information for a certain period of time after the activity value is lower than a certain percentage or a certain value.
  • the target user account is the user account of the live broadcast room of the live video, and according to the information of the target user account, the activity value of the target user account in the live video live room is determined, and then according to Activity value, the target video information is extracted from the live video.
  • This method effectively enhances the efficiency of video information extraction. Since the activity of the target user account is detected and quantified, the value representing the activity of the target user account is obtained. The target video information is extracted according to the activity value, which can automatically obtain effective video information in the live video, and improve the extraction effect of effective video information.
  • Fig. 2 is a flowchart of a method for extracting video information according to another exemplary embodiment.
  • the method for extracting video information includes the following steps S201 to S205.
  • step S201 information of a target user account is acquired, and the target user account is a live room user account of a live room corresponding to a live video.
  • step S202 the activity value of the target user account in the live broadcast room corresponding to the live video is determined according to the information of the target user account.
  • step S201 to step S202 reference may be made to the foregoing embodiments, and details are not repeated here.
  • step S203 the current video frame is acquired, and the current video frame corresponds to the current time point.
  • the acquisition of the current video frame may be to record the current live video in real time through recording software or equipment after the live broadcast room of the live video is opened, and decode the recorded live video to obtain multiple video frames, The current video frame at the current time point is determined from the plurality of video frames.
  • the background of the live room will record the live content in real time, decode the recorded content, and decode it into a video frame with a certain frame rate as the current video frame.
  • step S204 the target video frame is determined according to the preset strategy and activity value, and the target time point corresponding to the target video frame is after the current time point.
  • the selection condition of the video frame set by the change information of the liveness value can be called a prediction strategy, and the prediction strategy can be based on the change of the liveness value
  • the video frame whose liveness value or change of the liveness value meets a preset requirement may be called a target video frame.
  • the change of activity value is continuously monitored to obtain activity change information, and in response to the activity change information meeting the set conditions, the corresponding time point is captured as the target time point, and the live video corresponding The video frame corresponding to the target time point in the live broadcast room is used as the target video frame.
  • the target video frame Since the change of the activity value is monitored, and the time point that meets the set conditions is captured as the target time point, the target video frame is determined, which improves the The recognition efficiency of the target video frame, since the video frame whose activity change information satisfies the set condition is taken as the target video frame, when the activity change information meets the set condition, it indicates that the video frame has a higher probability of being valid Video information, so as to quickly and reasonably determine the effective video information in the application scene of the live broadcast room, so as to effectively capture the favorite moments of the user account.
  • the set condition that the activity change information satisfies can be, for example, that the activity value increases to a certain threshold, or that the growth rate of the activity value reaches a certain value, or it can be compared with the previous activity value. , the duration of the live video with high activity, etc.
  • step S205 target video information is extracted from the live video according to the current video frame and the target video frame.
  • the video segment is intercepted from the live video, and the video segment is used as the target video information, wherein the video segment includes a start frame and an end frame, the start frame is the current video frame, and the end frame is the target video frame,
  • the convenience of target video information selection is improved, so that complete and effective video information can be captured. It is convenient for the target user account to personalize the effective video information.
  • Fig. 3 is a flow chart showing target video information selection according to another exemplary embodiment.
  • obtain the information of the target user account in the live broadcast room in real time determine the group activity A to which the current user account belongs, and record the current moment as the best moment when the activity value suddenly increases and the increase exceeds the threshold Starting time t1, record the time when the current user account activity gradually returns to A as t2, then t1-t2 is the best moment, automatically record and save the live content of t1-t2, and take the live content of t1-t2 as the target video information.
  • the video frame at the time point of 1 hour can be used as the starting point
  • the start frame, the video frame at the time point of 1 hour and 30 minutes is used as the end frame, and the 30-minute video segment between the start frame and the end frame is used as the target video segment.
  • the extraction of the target video information may be to extract a plurality of candidate video frames from the live video, and the time points corresponding to the candidate video frames are between the current time point and the target time point, from the current video frame, multiple Candidate video frames, and select some video frames in the target video frame as the target video information, by selecting the current video frame, multiple candidate video frames, and target video frames, multiple pictures of the target video information can be obtained, and the improvement can be improved. It improves the convenience of target video information selection, and avoids excessive consumption of software and hardware resources by target video information.
  • the target activity value of each video frame at the corresponding time point is determined, the target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point, and the video frame is the current video frame , or a candidate video frame, or a target video frame, sort each video frame according to the order of each target activity value from large to small, and select a preset number of video frames sorted as the target video information, Because it is the activity corresponding to each frame of video frame that captures the wonderful moment, and then according to the order of each target activity value from large to small, each video frame is sorted, and then select the most exciting N photos (i.e.
  • N pictures The largest N pictures are recommended to users, which increases the calculation and sorting of target activity values, strengthens the screening of target video information, improves the quality of video frames with high activity value sent to user accounts, and then improves the accuracy of target video information Select efficiency to effectively capture the favorite moments of user accounts.
  • Fig. 4 is a flow chart showing target video information selection according to another exemplary embodiment.
  • the information of the target user account in the live broadcast room is obtained in real time, and the group activity A to which the current user account belongs is determined.
  • the activity value suddenly increases and the increase exceeds the threshold
  • the current moment is recorded as the best moment Starting time t1
  • t1-t2 is the best wonderful moment
  • extract each frame of photos from t1-t2 wonderful moments and correspond to the user according to each frame of photos
  • the account activity is sorted, and the best N photos are recommended to the user account.
  • the threshold value of the activity value For example, in the application scenario of the live broadcast room, set the threshold value of the activity value, monitor the live content as a whole, select the video frame whose activity value satisfies the threshold condition, and select the current video frame, multiple candidate video frames, and The target video frames are arranged in the order of the time nodes, and multiple frames of pictures about the wonderful moments in the live broadcast room are generated, and the multiple frames of pictures are regarded as the wonderful moments.
  • the target user account is the user account of the live broadcast room of the live video
  • the activity value of the target user account in the live video live room is determined, and then the The current video frame, the current video frame corresponds to the current time point, the target video frame is determined according to the prediction strategy and the activity value, the target time point corresponding to the target video frame is after the current time point, according to the current video frame and the target video frame, from the live video
  • the target video information is extracted from the target video frame. Since the target video frame is determined using the prediction strategy and the activity value, the target video information is extracted from the current video frame and the target video frame to ensure the accuracy and rationality of the target video information extraction.
  • the target video frame of the current video determines the target video frame of the current video according to the change of the activity value, and can effectively capture the favorite moments of the user account. Since the target video segment is intercepted through the determination of the start frame and the end frame, the captured video segment It is more complete, and at the same time, it is convenient to personalize the effective information of the video segment.
  • Fig. 5 is a flow chart showing a method for extracting video information according to another exemplary embodiment.
  • the method for extracting video information includes the following steps S501 to S507.
  • step S501 information of a target user account is acquired, and the target user account is a live room user account of a live room corresponding to a live video.
  • step S501 For the description of step S501, reference may be made to the foregoing embodiments, and details are not repeated here.
  • step S502 a plurality of live interaction information respectively corresponding to a plurality of user accounts is acquired.
  • multiple corresponding live broadcast interaction information is obtained according to the multiple target user accounts, wherein the live broadcast interaction information may be the recorded interaction of the user account in the live broadcast room.
  • the interaction of the user account in the live broadcast room may be that the user account likes, follows, sends barrage and presents virtual props such as virtual flowers in the live broadcast room, or it may be that the user account participates in the interaction in the live broadcast room mini games etc.
  • step S503 a plurality of candidate activity values respectively corresponding to a plurality of user accounts are determined according to a plurality of live interaction information.
  • multiple user accounts may generate multiple identical or different live interactive information, and determine multiple candidate activity values corresponding to multiple user accounts according to the multiple live interactive information, which may be based on the live interactive
  • Different types of information can be confirmed, for example, the number of likes can be used as a candidate activity value, and the number or value of virtual props such as virtual gifts can be used as another candidate activity value.
  • step S504 the target user account group in which the target user account is located is determined according to the information of the target user account.
  • the grouping of target user accounts may be based on the viewing status of the target user accounts or live broadcast interaction information, etc. For example, according to the value of the virtual props given by the user account, or the level of the live broadcast room of the user account, the user account is divided into different groups, and one or several user account information can also be selected as the main group. According to the grouping rules, they are combined into different grouping rules.
  • step S505 a reference activity value corresponding to the target user account group is determined according to a plurality of candidate activity values.
  • different groups can choose different candidate activity values as reference activity values, or choose a variety of different candidate activity values, assign different numerical proportions, and calculate the reference activity through corresponding formulas value.
  • the value of the virtual props given by the user account and the number of likes can be used as the main grouping basis, and the user accounts are grouped into G1, G2, G3...GN, and settings affect the activity of this group.
  • the factors of degree value can be the value of the virtual props given by the user account, the number of likes and the level of the live room, etc., and the corresponding active value weights are given to them respectively.
  • the value weight of the virtual props given by the user account is 5, and the number of likes is 5.
  • the weight is 4, and the weight of the live room level is 1.
  • the reference activity value is calculated through mathematical formulas.
  • step S506 the reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room corresponding to the live video.
  • the reference activity value corresponding to the target user account group After determining the reference activity value corresponding to the target user account group according to the plurality of candidate activity values, the reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room of the live video.
  • step S507 the target video information is extracted from the live video according to the liveness value.
  • step S507 For the description of step S507, reference may be made to the foregoing embodiments, and details are not repeated here.
  • the target user account is the live room user account of the live room corresponding to the live video, and obtaining multiple live interaction information corresponding to multiple user accounts, and according to the multiple live interaction Information, determine multiple candidate activity values corresponding to multiple user accounts, determine the target user account group where the target user account is located according to the information of the target user account, and then determine the target user account according to the multiple candidate activity values
  • the reference activity value corresponding to the group, the reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room corresponding to the live video, and the target video information is extracted from the live video according to the activity value , due to the grouping of target user accounts, the activity value of the target user accounts can be measured more accurately and pertinently. Extraction effect of live video information.
  • Fig. 6 is a block diagram of an apparatus for extracting video information according to an exemplary embodiment.
  • the device includes an acquisition module 601 , a determination module 602 and an extraction module 603 .
  • the acquiring module 601 is configured to acquire the information of the target user account, where the target user account is the live room user account of the live room corresponding to the live video;
  • the determination module 602 is configured to determine the activity value of the target user account in the live room corresponding to the live video according to the information of the target user account;
  • the extracting module 603 is configured to extract target video information from the live video according to the liveness value.
  • the extraction module 603 is configured to:
  • the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
  • the extraction module 603 is configured to:
  • the target video information is extracted from the live video.
  • the extraction module 603 is configured to:
  • a video segment is intercepted from a live video, and the video segment is used as target video information, wherein the video segment includes a start frame and an end frame, the start frame is a current video frame, and the end frame is a target video frame.
  • the extraction module 603 is configured to:
  • Part of video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information.
  • the extraction module 603 is configured to:
  • the video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
  • the determining module 602 includes:
  • the first determination sub-module 7021 is configured to determine the target user account group where the target user account is located according to the information of the target user account, and use the reference activity value corresponding to the target user account group as the target user account corresponding to the live video The activity value of the live broadcast room.
  • the determination module 602 further includes:
  • the obtaining sub-module 7022 is configured to obtain multiple live interaction information respectively corresponding to multiple user accounts before the step of determining the target user account group in which the target user account is located according to the information of the target user account;
  • the second determination sub-module 7023 is configured to determine a plurality of candidate activity values corresponding to a plurality of user accounts according to a plurality of live interaction information
  • the third determining submodule 7024 is configured to determine a reference activity value corresponding to the target user account group according to multiple candidate activity values.
  • the extraction module 603 is configured to:
  • the target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point.
  • the video frame is the current video frame or a candidate video frame , or the target video frame;
  • a preset number of video frames sorted before are selected as target video information.
  • the target user account is the live room user account of the live room corresponding to the live video, and according to the information of the target user account, determine the activity of the target user account in the live room corresponding to the live video According to the activity value, the target video information is extracted from the live video.
  • This method effectively enhances the efficiency of video information extraction. Since the activity of the target user account is detected and quantified, the target user account active The target video information can be extracted according to the activity value, which can automatically obtain effective video information in the live video and improve the extraction effect of effective video information.
  • FIG. 8 is a block diagram of an electronic device according to an exemplary embodiment.
  • the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
  • the memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • the power supply component 806 provides power to various components of the electronic device 800 .
  • Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
  • the multimedia component 808 includes a touchscreen display that provides an output interface between the electronic device 800 and the user account.
  • the touch display may include a liquid crystal display (LCD) and a touch panel (TP).
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), which is configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode.
  • Received audio signals may be further stored in memory 804 or sent via communication component 816 .
  • the audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 .
  • the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, and the sensor component 814 can also detect the electronic device 800 or a component of the electronic device 800. Changes in location, presence or absence of user account contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication.
  • NFC near field communication
  • the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wide Band
  • Bluetooth Bluetooth
  • electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above video information extraction method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable Programmable gate array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the above video information extraction method.
  • a non-volatile computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the electronic device 800 to complete the above method.
  • the computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
  • a computer program product including a computer program, when the computer program is executed by a processor, the aforementioned method for extracting video information is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure belongs to the technical field of video processing, and discloses a video information extraction method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring information of a target user account, wherein the target user account is a live streaming room user account of a live streaming room corresponding to a live stream video (S101); according to the information of the target user account, determining an activation value of the target user account in the live streaming room corresponding to the live stream video (S102); and according to the activation value, extracting target video information from the live stream video (S103).

Description

视频信息提取方法及装置Video information extraction method and device
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202111334747.7、申请日为2021年11月11日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202111334747.7 and a filing date of November 11, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本公开涉及视频处理技术领域,尤其涉及一种视频信息提取方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of video processing, and in particular to a video information extraction method, device, electronic equipment and storage medium.
背景技术Background technique
随着智能终端的软硬件技术的发展,越来越多的用户账户通过直播或者短视频的方式来分享自己的日常,直播软件的功能也越来越完善,用户账户在观看直播时容易被打断,容易错过直播的精彩内容。With the development of software and hardware technology of smart terminals, more and more user accounts share their daily life through live broadcast or short video, and the functions of live broadcast software are becoming more and more perfect. It is easy to miss the exciting content of the live broadcast.
相关技术中通过监视直播视频中的人物手势相似度和人脸在画面中的比例来对直播视频内容进行处理。In the related art, the content of the live video is processed by monitoring the gesture similarity of the characters in the live video and the proportion of the human face in the frame.
这种方式下,不能准确提取到直播视频中的有效信息,影响有效视频信息的提取效果。In this way, effective information in the live video cannot be accurately extracted, which affects the extraction effect of effective video information.
发明内容Contents of the invention
本公开提供一种视频信息提取方法、装置、电子设备及存储介质。The disclosure provides a video information extraction method, device, electronic equipment and storage medium.
根据本公开实施例的第一方面,提供一种视频信息提取方法,包括获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户;根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值;根据活跃度值,从直播视频中提取出目标视频信息。According to the first aspect of the embodiments of the present disclosure, there is provided a method for extracting video information, including acquiring information of a target user account, where the target user account is the live room user account of the live room corresponding to the live video; according to the information of the target user account, determine The activity value of the target user account in the live broadcast room corresponding to the live video; according to the activity value, the target video information is extracted from the live video.
在本公开的一些实施例中,根据活跃度值,从直播视频中提取出目标视频信息的步骤包括:In some embodiments of the present disclosure, the step of extracting the target video information from the live video according to the liveness value includes:
响应于活跃度值的变化量大于或者等于预设增加幅度阈值,根据预设策略从直播视频中提取出目标视频信息;In response to the variation of the activity value being greater than or equal to a preset increase threshold, extracting target video information from the live video according to a preset strategy;
响应于活跃度值的变化量小于预设增加幅度阈值,重新执行确定目标用户账户在直播视频对应的直播间的活跃度值的步骤。In response to the variation of the activity value being less than the preset increase threshold, the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
在本公开的一些实施例中,根据预设策略从直播视频中提取出目标视频信息的步骤包括:In some embodiments of the present disclosure, the step of extracting the target video information from the live video according to a preset policy includes:
获取当前视频帧,当前视频帧对应当前时间点;Get the current video frame, which corresponds to the current time point;
根据预设策略和活跃度值确定目标视频帧,目标视频帧对应的目标时间点在当前时间点之后;Determine the target video frame according to the preset strategy and activity value, and the target time point corresponding to the target video frame is after the current time point;
根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息。According to the current video frame and the target video frame, the target video information is extracted from the live video.
在本公开的一些实施例中,根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息的步骤,包括:In some embodiments of the present disclosure, the step of extracting the target video information from the live video according to the current video frame and the target video frame includes:
从直播视频中截取视频段,并将视频段作为目标视频信息,其中,视频段包括起始帧和末尾帧,起始帧是当前视频帧,末尾帧是目标视频帧。A video segment is intercepted from a live video, and the video segment is used as target video information, wherein the video segment includes a start frame and an end frame, the start frame is a current video frame, and the end frame is a target video frame.
在本公开的一些实施例中,根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息的步骤,包括:In some embodiments of the present disclosure, the step of extracting the target video information from the live video according to the current video frame and the target video frame includes:
从直播视频中提取出多个候选视频帧,候选视频帧对应的时间点在当前时间点和目标时间点之间;Extract a plurality of candidate video frames from the live video, and the time points corresponding to the candidate video frames are between the current time point and the target time point;
从当前视频帧、多个候选视频帧,以及目标视频帧中选取出部分视频帧作为目标视频信息。Part of video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information.
在本公开的一些实施例中,根据预设策略和活跃度值确定目标视频帧的步骤,包括:In some embodiments of the present disclosure, the step of determining the target video frame according to the preset policy and activity value includes:
持续地对活跃度值的变化情况进行监测,以得到活跃度变化信息;Continuously monitor the change of the activity value to obtain the information of the activity change;
响应于活跃度变化信息满足设定条件,捕获对应的时间点作为目标时间点;In response to the activity change information meeting the set condition, capture the corresponding time point as the target time point;
将直播视频对应的直播间中目标时间点对应的视频帧作为目标视频帧。The video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
在本公开的一些实施例中,根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值的步骤,包括:In some embodiments of the present disclosure, according to the information of the target user account, the step of determining the activity value of the target user account in the live room corresponding to the live video includes:
根据目标用户账户的信息,确定目标用户账户所在的目标用户账户分组;Determine the target user account group where the target user account is located according to the information of the target user account;
将与目标用户账户分组对应的参考活跃度值作为目标用户账户在直播视频对应的直播间的活跃度值。The reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room corresponding to the live video.
在本公开的一些实施例中,目标用户账户分组包括多个用户账户,方法还包括:In some embodiments of the present disclosure, the target user account group includes multiple user accounts, and the method further includes:
获取与多个用户账户分别对应的多个直播互动信息;Obtain multiple live interactive information corresponding to multiple user accounts;
根据多个直播互动信息,确定与多个用户账户分别对应的多个候选活跃度值;Determining a plurality of candidate activity values respectively corresponding to the plurality of user accounts according to the plurality of live broadcast interaction information;
根据多个候选活跃度值,确定与目标用户账户分组对应的参考活跃度值。According to the plurality of candidate activity values, a reference activity value corresponding to the target user account group is determined.
在本公开的一些实施例中,从当前视频帧、多个候选视频帧,以及目标视频帧中选取出部分视频帧作为目标视频信息,包括:In some embodiments of the present disclosure, some video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information, including:
确定各视频帧在对应时间点的目标活跃度值,目标活跃度值是对应时间点上目标用户账户在直播视频对应的直播间的活跃度值,视频帧是当前视频帧,或者是候选视频帧、或者是目标视频帧;Determine the target activity value of each video frame at the corresponding time point. The target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point. The video frame is the current video frame or a candidate video frame , or the target video frame;
根据各目标活跃度值的由大到小的顺序,对各视频帧进行排序;Sorting each video frame according to the descending order of each target activity value;
选取排序在前的预设个数视频帧作为目标视频信息。A preset number of video frames sorted before are selected as target video information.
根据本公开实施例的第二方面,提供一种视频信息提取装置,包括获取模块,被配置为获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户;确定模块,被配置为根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值;提取模块,被配置为根据活跃度值,从直播视频中提取出目标视频信息。According to the second aspect of the embodiments of the present disclosure, there is provided a device for extracting video information, including an acquisition module configured to acquire information of a target user account, where the target user account is the live room user account of the live room corresponding to the live video; a determination module is configured to determine the activity value of the target user account in the live broadcast room corresponding to the live video according to the information of the target user account; the extraction module is configured to extract the target video information from the live video according to the activity value.
在本公开的一些实施例中,提取模块,被配置为:In some embodiments of the present disclosure, the extraction module is configured to:
响应于活跃度值的变化量大于或者等于预设增加幅度阈值,根据预设策略从直播视频中提取出目标视频信息;In response to the variation of the activity value being greater than or equal to a preset increase threshold, extracting target video information from the live video according to a preset strategy;
响应于活跃度值的变化量小于预设增加幅度阈值,重新执行确定目标用户账户在直播视频对应的直播间的活跃度值的步骤。In response to the variation of the activity value being less than the preset increase threshold, the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
在本公开的一些实施例中,提取模块,被配置为:In some embodiments of the present disclosure, the extraction module is configured to:
获取当前视频帧,当前视频帧对应当前时间点;Get the current video frame, which corresponds to the current time point;
根据预设策略和活跃度值确定目标视频帧,目标视频帧对应的目标时间点在当前时间点之后;Determine the target video frame according to the preset strategy and activity value, and the target time point corresponding to the target video frame is after the current time point;
根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息。According to the current video frame and the target video frame, the target video information is extracted from the live video.
在本公开的一些实施例中,提取模块,被配置为:In some embodiments of the present disclosure, the extraction module is configured to:
从直播视频中截取视频段,并将视频段作为目标视频信息,其中,视频段包括起始帧和末尾帧,起始帧是当前视频帧,末尾帧是目标视频帧。A video segment is intercepted from a live video, and the video segment is used as target video information, wherein the video segment includes a start frame and an end frame, the start frame is a current video frame, and the end frame is a target video frame.
在本公开的一些实施例中,提取模块,被配置为:In some embodiments of the present disclosure, the extraction module is configured to:
从直播视频中提取出多个候选视频帧,候选视频帧对应的时间点在当前时间点和目标时间点之间;Extract a plurality of candidate video frames from the live video, and the time points corresponding to the candidate video frames are between the current time point and the target time point;
从当前视频帧、多个候选视频帧,以及目标视频帧中选取出部分视频帧作为目标视频信息。Part of video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information.
在本公开的一些实施例中,提取模块,被配置为:In some embodiments of the present disclosure, the extraction module is configured to:
持续地对活跃度值的变化情况进行监测,以得到活跃度变化信息;Continuously monitor the change of the activity value to obtain the information of the activity change;
响应于活跃度变化信息满足设定条件,捕获对应的时间点作为目标时间点;In response to the activity change information meeting the set condition, capture the corresponding time point as the target time point;
将直播视频对应的直播间中目标时间点对应的视频帧作为目标视频帧。The video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
在本公开的一些实施例中,确定模块,包括:In some embodiments of the present disclosure, the determination module includes:
第一确定子模块,被配置为根据目标用户账户的信息,确定目标用户账户所在的目标用户账户分组,并将与目标用户账户分组对应的参考活跃度值作为目标用户账户在直播视频对应的直播间的活跃度值。The first determination sub-module is configured to determine the target user account group where the target user account is located according to the information of the target user account, and use the reference activity value corresponding to the target user account group as the live video corresponding to the target user account activity value between.
在本公开的一些实施例中,目标用户账户分组包括多个用户账户,确定模块,还包括:In some embodiments of the present disclosure, the target user account group includes multiple user accounts, and the determining module further includes:
获取子模块,被配置为获取与多个用户账户分别对应的多个直播互动信息;The obtaining sub-module is configured to obtain a plurality of live interactive information corresponding to a plurality of user accounts;
第二确定子模块,被配置为根据多个直播互动信息,确定与多个用户账户分别对应的多个候选活跃度值;The second determining submodule is configured to determine a plurality of candidate activity values respectively corresponding to a plurality of user accounts according to a plurality of live interaction information;
第三确定子模块,被配置为根据多个候选活跃度值,确定与目标用户账户分组对应的参考活跃度值。The third determination submodule is configured to determine a reference activity value corresponding to the target user account group according to the plurality of candidate activity values.
在本公开的一些实施例中,提取模块,用于:In some embodiments of the present disclosure, the extraction module is used for:
确定各视频帧在对应时间点的目标活跃度值,目标活跃度值是对应时间点上目标用户账户在直播视频对应的直播间的活跃度值,视频帧是当前视频帧,或者是候选视频帧、或者是目标视频帧;Determine the target activity value of each video frame at the corresponding time point. The target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point. The video frame is the current video frame or a candidate video frame , or the target video frame;
根据各目标活跃度值的由大到小的顺序,对各视频帧进行排序;Sorting each video frame according to the descending order of each target activity value;
选取排序在前的预设个数视频帧作为目标视频信息。A preset number of video frames sorted before are selected as target video information.
根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现如前所述的视频信息提取 方法。According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement Video information extraction method as described above.
根据本公开实施例的第四方面,提供一种非易失性计算机可读存储介质,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行如前所述的视频信息提取方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-volatile computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute Video information extraction method as described above.
根据本公开实施例的第五方面,提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如前所述的视频信息提取方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including a computer program, when the computer program is executed by a processor, the method for extracting video information as described above is implemented.
通过获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户,根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值,根据活跃度值,从直播视频中提取出目标视频信息。该方法有效增强视频信息提取的效率,由于对目标用户账户的活跃度进行了检测和量化处理,得到了代表目标用户账户活跃度的数值,根据活跃度值提取出目标视频信息,能够自动获取直播视频中有效的视频信息,提升有效的视频信息的提取效果。By obtaining the information of the target user account, the target user account is the user account of the live broadcast room corresponding to the live video, and according to the information of the target user account, determine the activity value of the target user account in the live room corresponding to the live video, according to the activity Value, to extract the target video information from the live video. This method effectively enhances the efficiency of video information extraction. Since the activity of the target user account is detected and quantified, the value representing the activity of the target user account is obtained, and the target video information is extracted according to the activity value, which can automatically obtain the live broadcast. Effective video information in the video improves the extraction effect of effective video information.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings here are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the description to explain the principle of the disclosure, and do not constitute an improper limitation of the disclosure.
图1是根据一示例性实施例示出的一种视频信息提取方法的流程图。Fig. 1 is a flowchart of a method for extracting video information according to an exemplary embodiment.
图2是根据另一示例性实施例示出的一种视频信息提取方法的流程图。Fig. 2 is a flowchart of a method for extracting video information according to another exemplary embodiment.
图3是根据另一示例性实施例示出的一种目标视频信息选取的流程图。Fig. 3 is a flow chart showing target video information selection according to another exemplary embodiment.
图4是根据另一示例性实施例示出的一种目标视频信息选取的流程图。Fig. 4 is a flow chart showing target video information selection according to another exemplary embodiment.
图5是根据另一示例性实施例示出的一种视频信息提取方法的流程图。Fig. 5 is a flow chart showing a method for extracting video information according to another exemplary embodiment.
图6是根据一示例性实施例示出的一种视频信息提取装置框图。Fig. 6 is a block diagram of an apparatus for extracting video information according to an exemplary embodiment.
图7是根据另一示例性实施例示出的一种视频信息提取装置框图。Fig. 7 is a block diagram of an apparatus for extracting video information according to another exemplary embodiment.
图8是根据一示例性实施例示出的一种电子设备的框图。Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的用户账户,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first" and "second" in the description and claims of the present disclosure and the above drawings are used to distinguish similar user accounts, and not necessarily used to describe a specific order or sequence . It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种视频信息提取方法的流程图。Fig. 1 is a flowchart of a method for extracting video information according to an exemplary embodiment.
本公开实施例以视频信息提取方法被配置为视频信息提取装置中来举例说明。Embodiments of the present disclosure are described by taking a video information extraction method configured in a video information extraction device as an example.
本公开实施例中视频信息提取方法可以被配置在视频信息提取装置中,视频信息提取装置可以设置在服务器中。The video information extraction method in the embodiment of the present disclosure may be configured in a video information extraction device, and the video information extraction device may be set in a server.
需要说明的是,本公开实施例的执行主体,在硬件上可以例如为服务器的中央处理器(Central Processing Unit,CPU),在软件上可以例如为服务器的相关后台服务。It should be noted that the execution subject of the embodiments of the present disclosure may be, for example, a central processing unit (Central Processing Unit, CPU) of the server in terms of hardware, and may be, for example, a related background service of the server in terms of software.
如图1所示,该视频信息提取方法包括以下步骤S101至步骤S103。As shown in FIG. 1 , the method for extracting video information includes the following steps S101 to S103.
在步骤S101中,获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户。In step S101, information of a target user account is obtained, and the target user account is a live room user account of a live room corresponding to a live video.
需要说明的是,本公开实施例中所描述的获取用户账户信息以及用户账户的相关信息,包括社交关系身份信息之类的,均已获得用户账户许可,在取得用户账户充分许可授权的前提下,本公开所涉及的方法,装置,设备,存储介质可以获取用户账户的相关信息。It should be noted that the acquisition of user account information and related information of the user account described in the embodiments of the present disclosure, including social relationship identity information, has been approved by the user account. , the methods, devices, devices, and storage media involved in the present disclosure can acquire information related to user accounts.
本公开实施例中,目标用户账户可以是直播视频对应的直播间的直播间用户账户,直播间可以是个人计算机上的网页直播间,也可以是视频直播类应用程序的直播间,将进入直播间观看直播视频的用户账户作为直播间用户账户,其中,当前待向其提供目标视频信息的直播间用户账户,可以被称为目标用户账户。In the embodiment of the present disclosure, the target user account may be the user account of the live broadcast room corresponding to the live video. The user account for watching the live video in the live broadcast room is regarded as the user account of the live broadcast room, and the user account of the live room to which target video information is currently to be provided may be called the target user account.
举例而言,在用户账户点击打开直播间并观看直播内容后,应用程序可以在用户账户允许的范围内获取用户账户的直播间观看记录与交互情况等信息,并通过大数据模型等数学模型,分析 得出当前用户账户的身份信息、观看习惯信息、直播交互习惯信息等,作为目标用户账户的信息。For example, after the user account clicks to open the live broadcast room and watch the live broadcast content, the application can obtain information such as the viewing record and interaction status of the live broadcast room of the user account within the scope allowed by the user account, and through mathematical models such as big data models, The identity information of the current user account, viewing habit information, live interaction habit information, etc. are analyzed and obtained as the information of the target user account.
在步骤S102中,根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值。In step S102, the activity value of the target user account in the live broadcast room corresponding to the live video is determined according to the information of the target user account.
其中,活跃度值能够用于描述与目标用户账户相关的活跃情况,该活跃情况可以是目标用户账户自身在直播间的活跃情况,或者,该目标用户账户相关的其他用户账户在直播间的活跃情况等。Among them, the activity value can be used to describe the activity related to the target user account, the activity can be the activity of the target user account itself in the live broadcast room, or the activity of other user accounts related to the target user account in the live broadcast room situation etc.
本公开实施例中,目标用户账户在直播视频的直播间的活跃度值,可以是代表当前时间节点的实时的活跃度,也可以是在直播过程中进行直播视频录制,根据录制的结果与目标用户账户的信息确定活跃度值,或者,也可以是根据直播间内当前目标用户账户的数量进行确定,也可以是根据目标用户账户在直播间的交互频率,例如弹幕数量、礼物数量与价值等,计算活跃度值,还可以是通过相应的活跃度算法来对目标用户账户的信息进行计算,以得到目标用户账户在直播视频的直播间的活跃度值。In the embodiment of the present disclosure, the activity value of the target user account in the live broadcast room of the live video may be the real-time activity representing the current time node, or it may be the live video recording during the live broadcast. According to the recording result and the target The user account information determines the activity value, or it can also be determined based on the number of current target user accounts in the live broadcast room, or based on the interaction frequency of the target user accounts in the live broadcast room, such as the number of bullet screens, the number and value of gifts etc., to calculate the activity value, it may also be to calculate the information of the target user account through a corresponding activity algorithm, so as to obtain the activity value of the target user account in the live broadcast room of the live video.
举例而言,在获取直播间多个目标用户账户的信息后,根据用户账户的数量,结合直播间内当前的弹幕数量、礼物数量、礼物价值,也可以结合主播的肢体动作、表情等,通过活跃度值计算模型计算当前的活跃度值。For example, after obtaining the information of multiple target user accounts in the live broadcast room, according to the number of user accounts, combined with the current number of barrage, gift quantity, and gift value in the live broadcast room, it can also be combined with the host's body movements and expressions, etc. Calculate the current activity value through the activity value calculation model.
在步骤S103中,根据活跃度值,从直播视频中提取出目标视频信息。In step S103, the target video information is extracted from the live video according to the liveness value.
本公开实施例中,可以是在直播过程中根据目标用户账户的活跃度值实时选取视频信息进行提取,也可以是将目标活跃度值进行记录,在直播的录播视频中对相对应的视频信息进行提取。In the embodiment of the present disclosure, the video information may be selected in real time according to the activity value of the target user account during the live broadcast process to extract, or the target activity value may be recorded, and the corresponding video information in the recorded video of the live broadcast Information is extracted.
其中,目标视频信息可以是根据活跃度值提取的一定时间段内的直播视频片段,或者,也可以是该直播视频片段中包括的一个或者多个的视频帧。Wherein, the target video information may be a live video segment within a certain period of time extracted according to the activity value, or may be one or more video frames included in the live video segment.
本公开实施例中,可以检测活跃度值的变化情况,例如某一时间节点直播视频的直播间内的活跃度值大幅增加等,根据这一变化情况对目标视频信息进行确定,也可以设置活跃度阈值,通过活跃度值与阈值的对比,对目标视频信息进行提取。In the embodiment of the present disclosure, it is possible to detect the change of the activity value, for example, the activity value in the live broadcast room of a live video at a certain time node has increased significantly, etc., and the target video information can be determined according to this change, and the activity value can also be set. degree threshold, and extract the target video information by comparing the activity value with the threshold value.
在一些实施例中,响应于活跃度值的变化量大于或者等于预设增加幅度阈值,根据预设策略从直播视频中提取出目标视频信息,响应于活跃度值的变化量小于预设增加幅度阈值,重新执行确定目标用户账户在直播视频对应的直播间的活跃度值的步骤,通过将活跃度值与设定阈值进行比对的方式来确定目标视频信息,该设定阈值可以是确定与该活跃度值对应时间点上的直播视频中包含有效的视频信息的活跃度门限值,从而在活跃度值的变化量大于或者等于设定阈值的情况下,根据预设策略从直播视频中提取出目标视频信息,能够有效辅助提升视频信息提取的准确性和合理性,保证根据活跃度值对视频信息进行提取的时效性,在活跃度值的变化量小于设定阈值的情况下,重新执行确定目标用户账户在直播视频的直播间的活跃度值,从而有效地避免对有效视频信息的遗漏,保障有效视频信息提取的完整性和准确性。In some embodiments, in response to the change in the activity value being greater than or equal to the preset increase threshold, the target video information is extracted from the live video according to a preset strategy, and in response to the change in the activity value being less than the preset increase Threshold value, re-execute the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video, and determine the target video information by comparing the activity value with the set threshold value, the set threshold value can be determined and The liveness value corresponds to the activeness threshold value of the live video containing valid video information at the point in time, so that when the change in the liveness value is greater than or equal to the set threshold, according to the preset strategy, the live video Extracting the target video information can effectively help improve the accuracy and rationality of video information extraction, and ensure the timeliness of video information extraction based on the activity value. Execution determines the activity value of the target user account in the live broadcast room of the live video, thereby effectively avoiding the omission of valid video information and ensuring the integrity and accuracy of effective video information extraction.
本公开实施例中,预设策略可以是根据活跃度值的变化设定的目标视频信息提取策略,例如在活跃度值到达设定阈值的情况下,开始触发从直播视频中提取出目标视频信息,在活跃度值低于设定阈值的一定比例时停止提取,也可以是低于一定比例或一定数值后继续提取一定时间的视频信息。In the embodiment of the present disclosure, the preset strategy may be a target video information extraction strategy set according to the change of activity value, for example, when the activity value reaches the set threshold, start to trigger the extraction of target video information from the live video , stop extracting when the activity value is lower than a certain percentage of the set threshold, or continue to extract video information for a certain period of time after the activity value is lower than a certain percentage or a certain value.
本公开实施例中,通过获取目标用户账户的信息,目标用户账户是直播视频的直播间用户账户,根据目标用户账户的信息,确定目标用户账户在直播视频的直播间的活跃度值,然后根据活跃度值,从直播视频中提取出目标视频信息,该方法有效增强视频信息提取的效率,由于对目标用户账户的活跃度进行了检测和量化处理,得到了代表目标用户账户活跃度的数值,根据活跃度值提取出目标视频信息,能够自动获取直播视频中有效的视频信息,提升有效的视频信息的提取效果。In the embodiment of the present disclosure, by obtaining the information of the target user account, the target user account is the user account of the live broadcast room of the live video, and according to the information of the target user account, the activity value of the target user account in the live video live room is determined, and then according to Activity value, the target video information is extracted from the live video. This method effectively enhances the efficiency of video information extraction. Since the activity of the target user account is detected and quantified, the value representing the activity of the target user account is obtained. The target video information is extracted according to the activity value, which can automatically obtain effective video information in the live video, and improve the extraction effect of effective video information.
图2是根据另一示例性实施例示出的一种视频信息提取方法的流程图。Fig. 2 is a flowchart of a method for extracting video information according to another exemplary embodiment.
如图2所示,该视频信息提取方法包括以下步骤S201至步骤S205。As shown in FIG. 2, the method for extracting video information includes the following steps S201 to S205.
在步骤S201中,获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户。In step S201, information of a target user account is acquired, and the target user account is a live room user account of a live room corresponding to a live video.
在步骤S202中,根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值。In step S202, the activity value of the target user account in the live broadcast room corresponding to the live video is determined according to the information of the target user account.
步骤S201至步骤S202的说明可以参见上述实施例,在此不再赘述。For descriptions of step S201 to step S202, reference may be made to the foregoing embodiments, and details are not repeated here.
在步骤S203中,获取当前视频帧,当前视频帧对应当前时间点。In step S203, the current video frame is acquired, and the current video frame corresponds to the current time point.
本公开实施例中,对当前视频帧的获取,可以是在直播视频的直播间开启后通过录制软件或设备实时录制当前直播视频,并对录制的直播视频进行解码处理,得到多个视频帧,从多个视频 帧中确定出当前时间点的当前视频帧。In the embodiment of the present disclosure, the acquisition of the current video frame may be to record the current live video in real time through recording software or equipment after the live broadcast room of the live video is opened, and decode the recorded live video to obtain multiple video frames, The current video frame at the current time point is determined from the plurality of video frames.
举例而言,在直播间后台设置录制工具和解码工具,直播间主播开启直播后,直播间后台实时对直播内容进行录制,并对录制内容进行解码,解码为一定帧率的视频帧,作为当前视频帧。For example, set the recording tool and decoding tool in the background of the live room. After the host of the live room starts the live broadcast, the background of the live room will record the live content in real time, decode the recorded content, and decode it into a video frame with a certain frame rate as the current video frame.
在步骤S204中,根据预设策略和活跃度值确定目标视频帧,目标视频帧对应的目标时间点在当前时间点之后。In step S204, the target video frame is determined according to the preset strategy and activity value, and the target time point corresponding to the target video frame is after the current time point.
其中,通过对活跃度值的情况进行监测,分析活跃度值的变化信息,通过活跃度值变化信息设定的视频帧的选取条件可以被称为预测策略,预测策略可以是针对活跃度值变化情况进行分析的数学模型,也可以是基于例如机器学习等技术的大数据模型。Among them, by monitoring the situation of the liveness value and analyzing the change information of the liveness value, the selection condition of the video frame set by the change information of the liveness value can be called a prediction strategy, and the prediction strategy can be based on the change of the liveness value A mathematical model for analyzing situations, or a big data model based on technologies such as machine learning.
其中,活跃度值或者活跃度值变化情况达到预先设定的要求的视频帧,可以被称为目标视频帧。Wherein, the video frame whose liveness value or change of the liveness value meets a preset requirement may be called a target video frame.
在一些实施例中,持续地对活跃度值的变化情况进行监测,以得到活跃度变化信息,响应于活跃度变化信息满足设定条件,捕获对应的时间点作为目标时间点,将直播视频对应的直播间中目标时间点对应的视频帧作为目标视频帧,由于是对活跃度值的变化情况进行监测,并捕获满足设定条件的时间点作为目标时间点,进而确定目标视频帧,提高了目标视频帧的识别效率,由于将活跃度变化信息满足设定条件的视频帧作为目标视频帧,在活跃度变化信息满足设定条件的情况下,表明该视频帧有较大的概率是有效的视频信息,从而实现快速地、合理地确定出直播间应用场景中的有效的视频信息,从而有效抓取用户账户最喜爱的精彩瞬间。In some embodiments, the change of activity value is continuously monitored to obtain activity change information, and in response to the activity change information meeting the set conditions, the corresponding time point is captured as the target time point, and the live video corresponding The video frame corresponding to the target time point in the live broadcast room is used as the target video frame. Since the change of the activity value is monitored, and the time point that meets the set conditions is captured as the target time point, the target video frame is determined, which improves the The recognition efficiency of the target video frame, since the video frame whose activity change information satisfies the set condition is taken as the target video frame, when the activity change information meets the set condition, it indicates that the video frame has a higher probability of being valid Video information, so as to quickly and reasonably determine the effective video information in the application scene of the live broadcast room, so as to effectively capture the favorite moments of the user account.
本公开实施例中,活跃度变化信息满足的设定条件,可以例如是活跃度值增长到某一阈值,或活跃度值增长速率到达某一数值,也可以是与之前的活跃度值相比,保持较高活跃度的直播视频持续的时间等。In the embodiment of the present disclosure, the set condition that the activity change information satisfies can be, for example, that the activity value increases to a certain threshold, or that the growth rate of the activity value reaches a certain value, or it can be compared with the previous activity value. , the duration of the live video with high activity, etc.
在步骤S205中,根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息。In step S205, target video information is extracted from the live video according to the current video frame and the target video frame.
在一些实施例中,从直播视频中截取视频段,并将视频段作为目标视频信息,其中,视频段包括起始帧和末尾帧,起始帧是当前视频帧,末尾帧是目标视频帧,通过对起始帧与末尾帧的确定,而后直接截取起始帧和末尾帧之间的视频段作为目标视频信息,提高了目标视频信息选取的便捷性,使得捕获得到完整的有效的视频信息,便于目标用户账户对该有效的视频信息的个性化处理。In some embodiments, the video segment is intercepted from the live video, and the video segment is used as the target video information, wherein the video segment includes a start frame and an end frame, the start frame is the current video frame, and the end frame is the target video frame, By determining the start frame and the end frame, and then directly intercepting the video segment between the start frame and the end frame as the target video information, the convenience of target video information selection is improved, so that complete and effective video information can be captured. It is convenient for the target user account to personalize the effective video information.
当然,也可以采用其他方式根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息。Of course, other methods may also be used to extract the target video information from the live video according to the current video frame and the target video frame.
图3是根据另一示例性实施例示出的一种目标视频信息选取的流程图。如图3所示,实时获取直播间的目标用户账户的信息,确定当前用户账户所属组活跃度A,在活跃度值突然增加,且增加量超过阈值的情况下,记当前时刻为最佳时刻起始时间t1,记当前用户账户活跃度逐渐恢复到A的时间为t2,那么t1-t2为最佳精彩瞬间,自动记录并保存t1-t2的直播内容,将t1-t2的直播内容作为目标视频信息。Fig. 3 is a flow chart showing target video information selection according to another exemplary embodiment. As shown in Figure 3, obtain the information of the target user account in the live broadcast room in real time, determine the group activity A to which the current user account belongs, and record the current moment as the best moment when the activity value suddenly increases and the increase exceeds the threshold Starting time t1, record the time when the current user account activity gradually returns to A as t2, then t1-t2 is the best moment, automatically record and save the live content of t1-t2, and take the live content of t1-t2 as the target video information.
举例而言,在直播间应用场景中,根据活跃度值的监测,精彩瞬间是直播开始后的1小时到1小时30分钟这段时间,则可以将1小时的时间点上的视频帧作为起始帧,1小时30分的时间点上的视频帧作为末尾帧,起始帧与末尾帧之间30分钟的视频段作为目标视频段。For example, in the application scenario of a live broadcast room, according to the monitoring of the activity value, the wonderful moment is from 1 hour to 1 hour and 30 minutes after the start of the live broadcast, then the video frame at the time point of 1 hour can be used as the starting point The start frame, the video frame at the time point of 1 hour and 30 minutes is used as the end frame, and the 30-minute video segment between the start frame and the end frame is used as the target video segment.
在一些实施例中,对目标视频信息的提取可以是从直播视频中提取出多个候选视频帧,候选视频帧对应的时间点在当前时间点和目标时间点之间,从当前视频帧、多个候选视频帧,以及目标视频帧中选取出部分视频帧作为目标视频信息,通过对当前视频帧、多个候选视频帧,以及目标视频帧的选取,能够得到多个目标视频信息的图片,提高了目标视频信息选取的便捷性,并且避免目标视频信息过于占用软硬件资源消耗。In some embodiments, the extraction of the target video information may be to extract a plurality of candidate video frames from the live video, and the time points corresponding to the candidate video frames are between the current time point and the target time point, from the current video frame, multiple Candidate video frames, and select some video frames in the target video frame as the target video information, by selecting the current video frame, multiple candidate video frames, and target video frames, multiple pictures of the target video information can be obtained, and the improvement can be improved. It improves the convenience of target video information selection, and avoids excessive consumption of software and hardware resources by target video information.
在一些实施例中,确定各视频帧在对应时间点的目标活跃度值,目标活跃度值是对应时间点上目标用户账户在直播视频对应的直播间的活跃度值,视频帧是当前视频帧,或者是候选视频帧、或者是目标视频帧,根据各目标活跃度值的由大到小的顺序,对各视频帧进行排序,选取排序在前的预设个数视频帧作为目标视频信息,由于是捕获精彩瞬间的每一帧视频帧对应的活跃度,进而根据各目标活跃度值的由大到小的顺序,对各视频帧进行排序,然后选取最精彩的N张照片(即活跃度最大的N张)推荐给用户,增加了对目标活跃度值的计算与排序,加强对目标视频信息的筛选,提高对用户账户发送高活跃度值视频帧的质量,进而提高对目标视频信息的选取效率,有效抓取用户账户最喜爱的精彩瞬间。In some embodiments, the target activity value of each video frame at the corresponding time point is determined, the target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point, and the video frame is the current video frame , or a candidate video frame, or a target video frame, sort each video frame according to the order of each target activity value from large to small, and select a preset number of video frames sorted as the target video information, Because it is the activity corresponding to each frame of video frame that captures the wonderful moment, and then according to the order of each target activity value from large to small, each video frame is sorted, and then select the most exciting N photos (i.e. activity The largest N pictures) are recommended to users, which increases the calculation and sorting of target activity values, strengthens the screening of target video information, improves the quality of video frames with high activity value sent to user accounts, and then improves the accuracy of target video information Select efficiency to effectively capture the favorite moments of user accounts.
图4是根据另一示例性实施例示出的一种目标视频信息选取的流程图。如图4所示,实时获取直播间的目标用户账户的信息,确定当前用户账户所属组活跃度A,在活跃度值突然增加,且增加量超过阈值的情况下,记当前时刻为最佳时刻起始时间t1,记当前用户账户活跃度逐渐恢复 到A的时间为t2,那么t1-t2为最佳精彩瞬间,提取t1-t2精彩瞬间的每一帧照片,并根据每一帧照片对应用户账户活跃度进行排序,得到最佳N张照片推荐给用户账户。Fig. 4 is a flow chart showing target video information selection according to another exemplary embodiment. As shown in Figure 4, the information of the target user account in the live broadcast room is obtained in real time, and the group activity A to which the current user account belongs is determined. When the activity value suddenly increases and the increase exceeds the threshold, the current moment is recorded as the best moment Starting time t1, record the time when the current user account activity gradually returns to A as t2, then t1-t2 is the best wonderful moment, extract each frame of photos from t1-t2 wonderful moments, and correspond to the user according to each frame of photos The account activity is sorted, and the best N photos are recommended to the user account.
举例而言,在直播间应用场景中,设置活跃度值的阈值,对直播内容进行整体监测,选取活跃度值满足阈值条件的视频帧,将选取的当前视频帧、多个候选视频帧,以及目标视频帧按照时间节点的先后顺序排列,生成关于直播间内精彩瞬间的多帧图片,将多帧图片作为精彩瞬间。For example, in the application scenario of the live broadcast room, set the threshold value of the activity value, monitor the live content as a whole, select the video frame whose activity value satisfies the threshold condition, and select the current video frame, multiple candidate video frames, and The target video frames are arranged in the order of the time nodes, and multiple frames of pictures about the wonderful moments in the live broadcast room are generated, and the multiple frames of pictures are regarded as the wonderful moments.
本公开实施例中,通过获取目标用户账户的信息,目标用户账户是直播视频的直播间用户账户,根据目标用户账户的信息,确定目标用户账户在直播视频的直播间的活跃度值,然后获取当前视频帧,当前视频帧对应当前时间点,根据预测策略和活跃度值确定目标视频帧,目标视频帧对应的目标时间点在当前时间点之后,根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息,由于使用了预测策略和活跃度值对目标视频帧进行确定,从当前视频帧与目标视频帧中提取目标视频信息,保证目标视频信息提取的准确性和合理性,由于是根据活跃度值的变化,确定当前视频的目标视频帧,能够有效抓取用户账户最喜欢的精彩瞬间,由于是通过起始帧与末尾帧的确定,截取目标视频段,使得捕获的视频段更加完整,同时便于对该视频段的有效信息进行个性化处理。In the embodiment of the present disclosure, by obtaining the information of the target user account, the target user account is the user account of the live broadcast room of the live video, according to the information of the target user account, the activity value of the target user account in the live video live room is determined, and then the The current video frame, the current video frame corresponds to the current time point, the target video frame is determined according to the prediction strategy and the activity value, the target time point corresponding to the target video frame is after the current time point, according to the current video frame and the target video frame, from the live video The target video information is extracted from the target video frame. Since the target video frame is determined using the prediction strategy and the activity value, the target video information is extracted from the current video frame and the target video frame to ensure the accuracy and rationality of the target video information extraction. Because It determines the target video frame of the current video according to the change of the activity value, and can effectively capture the favorite moments of the user account. Since the target video segment is intercepted through the determination of the start frame and the end frame, the captured video segment It is more complete, and at the same time, it is convenient to personalize the effective information of the video segment.
图5是根据另一示例性实施例示出的一种视频信息提取方法的流程图。Fig. 5 is a flow chart showing a method for extracting video information according to another exemplary embodiment.
如图5所示,该视频信息提取方法包括以下步骤S501至步骤S507。As shown in FIG. 5 , the method for extracting video information includes the following steps S501 to S507.
在步骤S501中,获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户。In step S501, information of a target user account is acquired, and the target user account is a live room user account of a live room corresponding to a live video.
步骤S501的说明可以参见上述实施例,在此不再赘述。For the description of step S501, reference may be made to the foregoing embodiments, and details are not repeated here.
在步骤S502中,获取与多个用户账户分别对应的多个直播互动信息。In step S502, a plurality of live interaction information respectively corresponding to a plurality of user accounts is acquired.
上述获取目标用户账户信息后,根据多个目标用户账户获取对应的多个直播互动信息,其中,直播互动信息可以是记录的用户账户在直播间内的互动情况。After the target user account information is obtained above, multiple corresponding live broadcast interaction information is obtained according to the multiple target user accounts, wherein the live broadcast interaction information may be the recorded interaction of the user account in the live broadcast room.
举例而言,用户账户在直播间内的互动情况,可以是用户账户在直播间内点赞、关注、发送弹幕和赠送虚拟道具例如虚拟鲜花等,也可以是用户账户参与直播间内的互动小游戏等。For example, the interaction of the user account in the live broadcast room may be that the user account likes, follows, sends barrage and presents virtual props such as virtual flowers in the live broadcast room, or it may be that the user account participates in the interaction in the live broadcast room mini games etc.
在步骤S503中,根据多个直播互动信息,确定与多个用户账户分别对应的多个候选活跃度值。In step S503, a plurality of candidate activity values respectively corresponding to a plurality of user accounts are determined according to a plurality of live interaction information.
本公开实施例中,多个用户账户可以产生多个相同或不同的直播互动信息,根据多个直播互动信息,确定与多个用户账户分别对应的多个候选活跃度值,可以是根据直播互动信息种类的不同进行确认,例如可以将点赞的数量作为一种候选活跃度值,也可以将赠送虚拟道具例如虚拟礼物的数量或价值作为另一种候选活跃度值。In the embodiments of the present disclosure, multiple user accounts may generate multiple identical or different live interactive information, and determine multiple candidate activity values corresponding to multiple user accounts according to the multiple live interactive information, which may be based on the live interactive Different types of information can be confirmed, for example, the number of likes can be used as a candidate activity value, and the number or value of virtual props such as virtual gifts can be used as another candidate activity value.
在步骤S504中,根据目标用户账户的信息,确定目标用户账户所在的目标用户账户分组。In step S504, the target user account group in which the target user account is located is determined according to the information of the target user account.
本公开实施例中,对目标用户账户进行分组,可以是根据目标用户账户的观看情况或直播互动信息等进行分组,例如根据用户账户观看直播间的时长,将用户账户分为轻度粉丝、中度粉丝、重度粉丝等,还例如根据用户账户赠送虚拟道具的价值、或用户账户的直播间等级等,将用户账户分为不同的分组,也可以选择一项或几项用户账户信息作为主要分组依据,组合成不同的分组规则。In the embodiment of the present disclosure, the grouping of target user accounts may be based on the viewing status of the target user accounts or live broadcast interaction information, etc. For example, according to the value of the virtual props given by the user account, or the level of the live broadcast room of the user account, the user account is divided into different groups, and one or several user account information can also be selected as the main group. According to the grouping rules, they are combined into different grouping rules.
在步骤S505中,根据多个候选活跃度值,确定与目标用户账户分组对应的参考活跃度值。In step S505, a reference activity value corresponding to the target user account group is determined according to a plurality of candidate activity values.
本公开实施例中,不同的分组可以选择不同的候选活跃度值作为参考活跃度值,也可以选择多种不同的候选活跃度值,赋予不同的数值比重,经过对应的公式计算得到参考活跃度值。In the embodiment of the present disclosure, different groups can choose different candidate activity values as reference activity values, or choose a variety of different candidate activity values, assign different numerical proportions, and calculate the reference activity through corresponding formulas value.
举例而言,在直播间应用场景中,可以将用户账户赠送虚拟道具的价值和点赞数量作为主要的分组依据,对用户账户进行分组G1,G2,G3…GN,设定影响这一分组活跃度值的因素可以是用户账户赠送虚拟道具的价值、点赞数量和直播间等级等,对其分别赋予相对应的活跃值权重,例如用户账户赠送虚拟道具的价值权重为5,点赞数量的权重为4,直播间等级的权重为1,再根据不同的候选活跃度值,与目标分组对应的权重,经过数学公式计算出参考活跃度值。For example, in the application scenario of a live broadcast room, the value of the virtual props given by the user account and the number of likes can be used as the main grouping basis, and the user accounts are grouped into G1, G2, G3...GN, and settings affect the activity of this group. The factors of degree value can be the value of the virtual props given by the user account, the number of likes and the level of the live room, etc., and the corresponding active value weights are given to them respectively. For example, the value weight of the virtual props given by the user account is 5, and the number of likes is 5. The weight is 4, and the weight of the live room level is 1. Then, according to different candidate activity values and the weights corresponding to the target groups, the reference activity value is calculated through mathematical formulas.
在步骤S506中,将与目标用户账户分组对应的参考活跃度值作为目标用户账户在直播视频对应的直播间的活跃度值。In step S506, the reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room corresponding to the live video.
上述根据多个候选活跃度值,确定与目标用户账户分组对应的参考活跃度值之后,将与目标用户账户分组对应的参考活跃度值作为目标用户账户在直播视频的直播间的活跃度值。After determining the reference activity value corresponding to the target user account group according to the plurality of candidate activity values, the reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room of the live video.
在步骤S507中,根据活跃度值,从直播视频中提取出目标视频信息。In step S507, the target video information is extracted from the live video according to the liveness value.
步骤S507的说明可以参见上述实施例,在此不再赘述。For the description of step S507, reference may be made to the foregoing embodiments, and details are not repeated here.
本公开实施例中,通过获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户,获取与多个用户账户分别对应的多个直播互动信息,根据多个直播互动信息,确定与多个用户账户分别对应的多个候选活跃度值,根据目标用户账户的信息,确定目标用户账 户所在的目标用户账户分组,之后根据多个候选活跃度值,确定与目标用户账户分组对应的参考活跃度值,将与目标用户账户分组对应的参考活跃度值作为目标用户账户在直播视频对应的直播间的活跃度值,根据活跃度值,从直播视频中提取出目标视频信息,由于对目标用户账户进行分组,能够更加精准地,更有针对性地测定目标用户账户的活跃度值,在直播间应用场景中,更加有效地抓取用户账户最喜爱的精彩瞬间,提升有效的直播视频信息的提取效果。In the embodiment of the present disclosure, by obtaining the information of the target user account, the target user account is the live room user account of the live room corresponding to the live video, and obtaining multiple live interaction information corresponding to multiple user accounts, and according to the multiple live interaction Information, determine multiple candidate activity values corresponding to multiple user accounts, determine the target user account group where the target user account is located according to the information of the target user account, and then determine the target user account according to the multiple candidate activity values The reference activity value corresponding to the group, the reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room corresponding to the live video, and the target video information is extracted from the live video according to the activity value , due to the grouping of target user accounts, the activity value of the target user accounts can be measured more accurately and pertinently. Extraction effect of live video information.
图6是根据一示例性实施例示出的一种视频信息提取装置框图。参照图6,该装置包括获取模块601,确定模块602和提取模块603。Fig. 6 is a block diagram of an apparatus for extracting video information according to an exemplary embodiment. Referring to FIG. 6 , the device includes an acquisition module 601 , a determination module 602 and an extraction module 603 .
该获取模块601被配置为获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户;The acquiring module 601 is configured to acquire the information of the target user account, where the target user account is the live room user account of the live room corresponding to the live video;
该确定模块602被配置为根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值;The determination module 602 is configured to determine the activity value of the target user account in the live room corresponding to the live video according to the information of the target user account;
该提取模块603被配置为根据活跃度值,从直播视频中提取出目标视频信息。The extracting module 603 is configured to extract target video information from the live video according to the liveness value.
在本公开的一些实施例中,如图7所示,图7是根据另一示例性实施例示出的一种视频信息提取装置框图,提取模块603,被配置为:In some embodiments of the present disclosure, as shown in FIG. 7 , which is a block diagram of a device for extracting video information according to another exemplary embodiment, the extraction module 603 is configured to:
响应于活跃度值的变化量大于或者等于预设增加幅度阈值,根据预设策略从直播视频中提取出目标视频信息;In response to the variation of the activity value being greater than or equal to a preset increase threshold, extracting target video information from the live video according to a preset strategy;
响应于活跃度值的变化量小于预设增加幅度阈值,重新执行确定目标用户账户在直播视频对应的直播间的活跃度值的步骤。In response to the variation of the activity value being less than the preset increase threshold, the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
在本公开的一些实施例中,如图7所示,提取模块603,被配置为:In some embodiments of the present disclosure, as shown in FIG. 7, the extraction module 603 is configured to:
获取当前视频帧,当前视频帧对应当前时间点;Get the current video frame, which corresponds to the current time point;
根据预设策略和活跃度值确定目标视频帧,目标视频帧对应的目标时间点在当前时间点之后;Determine the target video frame according to the preset strategy and activity value, and the target time point corresponding to the target video frame is after the current time point;
根据当前视频帧和目标视频帧,从直播视频中提取出目标视频信息。According to the current video frame and the target video frame, the target video information is extracted from the live video.
在本公开的一些实施例中,如图7所示,提取模块603,被配置为:In some embodiments of the present disclosure, as shown in FIG. 7, the extraction module 603 is configured to:
从直播视频中截取视频段,并将视频段作为目标视频信息,其中,视频段包括起始帧和末尾帧,起始帧是当前视频帧,末尾帧是目标视频帧。A video segment is intercepted from a live video, and the video segment is used as target video information, wherein the video segment includes a start frame and an end frame, the start frame is a current video frame, and the end frame is a target video frame.
在本公开的一些实施例中,如图7所示,提取模块603,被配置为:In some embodiments of the present disclosure, as shown in FIG. 7, the extraction module 603 is configured to:
从直播视频中提取出多个候选视频帧,候选视频帧对应的时间点在当前时间点和目标时间点之间;Extract a plurality of candidate video frames from the live video, and the time points corresponding to the candidate video frames are between the current time point and the target time point;
从当前视频帧、多个候选视频帧,以及目标视频帧中选取出部分视频帧作为目标视频信息。Part of video frames are selected from the current video frame, multiple candidate video frames, and target video frames as target video information.
在本公开的一些实施例中,如图7所示,提取模块603,被配置为:In some embodiments of the present disclosure, as shown in FIG. 7, the extraction module 603 is configured to:
持续地对活跃度值的变化情况进行监测,以得到活跃度变化信息;Continuously monitor the change of the activity value to obtain the information of the activity change;
响应于活跃度变化信息满足设定条件,捕获对应的时间点作为目标时间点;In response to the activity change information meeting the set condition, capture the corresponding time point as the target time point;
将直播视频对应的直播间中目标时间点对应的视频帧作为目标视频帧。The video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
在本公开的一些实施例中,如图7所示,确定模块602,包括:In some embodiments of the present disclosure, as shown in FIG. 7, the determining module 602 includes:
第一确定子模块7021,被配置为根据目标用户账户的信息,确定目标用户账户所在的目标用户账户分组,并将与目标用户账户分组对应的参考活跃度值作为目标用户账户在直播视频对应的直播间的活跃度值。The first determination sub-module 7021 is configured to determine the target user account group where the target user account is located according to the information of the target user account, and use the reference activity value corresponding to the target user account group as the target user account corresponding to the live video The activity value of the live broadcast room.
在本公开的一些实施例中,如图7所示,确定模块602,还包括:In some embodiments of the present disclosure, as shown in FIG. 7, the determination module 602 further includes:
获取子模块7022,被配置为在根据目标用户账户的信息,确定目标用户账户所在的目标用户账户分组的步骤之前,获取与多个用户账户分别对应的多个直播互动信息;The obtaining sub-module 7022 is configured to obtain multiple live interaction information respectively corresponding to multiple user accounts before the step of determining the target user account group in which the target user account is located according to the information of the target user account;
第二确定子模块7023,被配置为根据多个直播互动信息,确定与多个用户账户分别对应的多个候选活跃度值;The second determination sub-module 7023 is configured to determine a plurality of candidate activity values corresponding to a plurality of user accounts according to a plurality of live interaction information;
第三确定子模块7024,被配置为根据多个候选活跃度值,确定与目标用户账户分组对应的参考活跃度值。The third determining submodule 7024 is configured to determine a reference activity value corresponding to the target user account group according to multiple candidate activity values.
在本公开的一些实施例中,如图7所示,提取模块603,用于:In some embodiments of the present disclosure, as shown in FIG. 7 , the extraction module 603 is configured to:
确定各视频帧在对应时间点的目标活跃度值,目标活跃度值是对应时间点上目标用户账户在直播视频对应的直播间的活跃度值,视频帧是当前视频帧,或者是候选视频帧、或者是目标视频帧;Determine the target activity value of each video frame at the corresponding time point. The target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point. The video frame is the current video frame or a candidate video frame , or the target video frame;
根据各目标活跃度值的由大到小的顺序,对各视频帧进行排序;Sorting each video frame according to the descending order of each target activity value;
选取排序在前的预设个数视频帧作为目标视频信息。A preset number of video frames sorted before are selected as target video information.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
本公开实施例中,通过获取目标用户账户的信息,目标用户账户是直播视频对应的直播间的直播间用户账户,根据目标用户账户的信息,确定目标用户账户在直播视频对应的直播间的活跃度值,根据活跃度值,从直播视频中提取出目标视频信息,该方法有效增强视频信息提取的效率,由于对目标用户账户的活跃度进行了检测和量化处理,得到了代表目标用户账户活跃度的数值,根据活跃度值提取出目标视频信息,能够自动获取直播视频中有效的视频信息,提升有效的视频信息的提取效果。In the embodiment of the present disclosure, by obtaining the information of the target user account, the target user account is the live room user account of the live room corresponding to the live video, and according to the information of the target user account, determine the activity of the target user account in the live room corresponding to the live video According to the activity value, the target video information is extracted from the live video. This method effectively enhances the efficiency of video information extraction. Since the activity of the target user account is detected and quantified, the target user account active The target video information can be extracted according to the activity value, which can automatically obtain effective video information in the live video and improve the extraction effect of effective video information.
本公开实施例还提供了一种电子设备,图8是根据一示例性实施例示出的一种电子设备的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。An embodiment of the present disclosure also provides an electronic device, and FIG. 8 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图8,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。8, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the electronic device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
多媒体组件808包括在电子设备800和用户账户之间的提供一个输出接口的触控显示屏。在一些实施例中,触控显示屏可以包括液晶显示器(LCD)和触摸面板(TP)。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。在电子设备800处于操作模式的情况下,如拍摄模式或视频模式,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a touchscreen display that provides an output interface between the electronic device 800 and the user account. In some embodiments, the touch display may include a liquid crystal display (LCD) and a touch panel (TP). The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),在电子设备800处于操作模式的情况下,如呼叫模式、记录模式和语音识别模式,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 .
在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户账户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, and the sensor component 814 can also detect the electronic device 800 or a component of the electronic device 800. Changes in location, presence or absence of user account contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙 (BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述视频信息提取方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above video information extraction method.
在示例性实施例中,还提供了一种包括指令的非易失性计算机可读存储介质,例如包括指令的存储器804,上述指令可由电子设备800的处理器820执行以完成上述方法。在一些实施例中,计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the electronic device 800 to complete the above method. In some embodiments, the computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
在示例性实施例中,还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如前所述的视频信息提取方法。In an exemplary embodiment, there is also provided a computer program product, including a computer program, when the computer program is executed by a processor, the aforementioned method for extracting video information is implemented.
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。All the embodiments of the present disclosure can be implemented independently or in combination with other embodiments, which are all regarded as the scope of protection required by the present disclosure.

Claims (21)

  1. 一种视频信息提取方法,包括:A video information extraction method, comprising:
    获取目标用户账户的信息,所述目标用户账户是直播视频对应的直播间的直播间用户账户;Acquiring the information of the target user account, where the target user account is the live room user account of the live room corresponding to the live video;
    根据所述目标用户账户的信息,确定所述目标用户账户在所述直播视频对应的直播间的活跃度值;According to the information of the target user account, determine the activity value of the target user account in the live broadcast room corresponding to the live video;
    根据所述活跃度值,从所述直播视频中提取出目标视频信息。According to the activity value, target video information is extracted from the live video.
  2. 根据权利要求1所述的视频信息提取方法,其中,所述根据所述活跃度值,从所述直播视频中提取出目标视频信息的步骤包括:The method for extracting video information according to claim 1, wherein the step of extracting target video information from the live video according to the liveness value comprises:
    响应于所述活跃度值的变化量大于或者等于预设增加幅度阈值,根据预设策略从所述直播视频中提取出所述目标视频信息;Extracting the target video information from the live video according to a preset policy in response to a change in the activity value being greater than or equal to a preset increase threshold;
    响应于所述活跃度值的变化量小于所述预设增加幅度阈值,重新执行所述确定所述目标用户账户在所述直播视频对应的直播间的活跃度值的步骤。In response to the variation of the activity value being less than the preset increase range threshold, the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
  3. 根据权利要求2所述的视频信息提取方法,其中,所述根据预设策略从所述直播视频中提取出所述目标视频信息的步骤包括:The video information extraction method according to claim 2, wherein the step of extracting the target video information from the live video according to a preset strategy comprises:
    获取当前视频帧,所述当前视频帧对应当前时间点;Obtaining a current video frame, where the current video frame corresponds to the current time point;
    根据所述预设策略和所述活跃度值确定目标视频帧,所述目标视频帧对应的目标时间点在所述当前时间点之后;determining a target video frame according to the preset policy and the activity value, and the target time point corresponding to the target video frame is after the current time point;
    根据所述当前视频帧和所述目标视频帧,从所述直播视频中提取出所述目标视频信息。Extracting the target video information from the live video according to the current video frame and the target video frame.
  4. 根据权利要求3所述的视频信息提取方法,其中,所述根据所述当前视频帧和所述目标视频帧,从所述直播视频中提取出所述目标视频信息的步骤,包括:The video information extraction method according to claim 3, wherein the step of extracting the target video information from the live video according to the current video frame and the target video frame includes:
    从所述直播视频中截取视频段,并将所述视频段作为所述目标视频信息,其中,所述视频段包括起始帧和末尾帧,所述起始帧是所述当前视频帧,所述末尾帧是所述目标视频帧。Intercepting a video segment from the live video, and using the video segment as the target video information, wherein the video segment includes a start frame and an end frame, and the start frame is the current video frame, so The last frame is the target video frame.
  5. 根据权利要求3所述的视频信息提取方法,其中,所述根据所述当前视频帧和所述目标视频帧,从所述直播视频中提取出所述目标视频信息的步骤,包括:The video information extraction method according to claim 3, wherein the step of extracting the target video information from the live video according to the current video frame and the target video frame includes:
    从所述直播视频中提取出多个候选视频帧,所述候选视频帧对应的时间点在所述当前时间点和所述目标时间点之间;Extracting a plurality of candidate video frames from the live video, where the time points corresponding to the candidate video frames are between the current time point and the target time point;
    从所述当前视频帧、所述多个候选视频帧,以及所述目标视频帧中选取出部分视频帧作为所述目标视频信息。Selecting a part of video frames from the current video frame, the plurality of candidate video frames, and the target video frame as the target video information.
  6. 根据权利要求3所述的视频信息提取方法,其中,所述根据所述预设策略和所述活跃度值确定目标视频帧的步骤,包括:The video information extraction method according to claim 3, wherein the step of determining the target video frame according to the preset strategy and the activity value includes:
    持续地对所述活跃度值的变化情况进行监测,以得到活跃度变化信息;Continuously monitor changes in the activity value to obtain activity change information;
    响应于所述活跃度变化信息满足设定条件,捕获对应的时间点作为所述目标时间点;In response to the activity change information satisfying a set condition, capturing a corresponding time point as the target time point;
    将所述直播视频对应的直播间中所述目标时间点对应的视频帧作为所述目标视频帧。The video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
  7. 根据权利要求1所述的视频信息提取方法,其中,所述根据所述目标用户账户的信息,确定所述目标用户账户在所述直播视频对应的直播间的活跃度值的步骤,包括:The video information extraction method according to claim 1, wherein the step of determining the activity value of the target user account in the live room corresponding to the live video according to the information of the target user account comprises:
    根据所述目标用户账户的信息,确定所述目标用户账户所在的目标用户账户分组;determining the target user account group where the target user account belongs to according to the information of the target user account;
    将与所述目标用户账户分组对应的参考活跃度值作为所述目标用户账户在所述直播视频对应的直播间的活跃度值。The reference activity value corresponding to the target user account group is used as the activity value of the target user account in the live broadcast room corresponding to the live video.
  8. 根据权利要求7所述的视频信息提取方法,其中,所述目标用户账户分组包括多个用户账户,所述方法还包括:The method for extracting video information according to claim 7, wherein the target user account grouping includes a plurality of user accounts, and the method further comprises:
    获取与所述多个用户账户分别对应的多个直播互动信息;Acquiring a plurality of live interactive information respectively corresponding to the plurality of user accounts;
    根据所述多个直播互动信息,确定与所述多个用户账户分别对应的多个候选活跃度值;determining a plurality of candidate activity values respectively corresponding to the plurality of user accounts according to the plurality of live interaction information;
    根据所述多个候选活跃度值,确定与所述目标用户账户分组对应的所述参考活跃度值。The reference activity value corresponding to the target user account group is determined according to the plurality of candidate activity values.
  9. 根据权利要求5所述的视频信息提取方法,其中,所述从所述当前视频帧、所述多个候选视频帧,以及所述目标视频帧中选取出部分视频帧作为所述目标视频信息,包括:The video information extraction method according to claim 5, wherein, selecting a part of video frames from the current video frame, the plurality of candidate video frames, and the target video frame as the target video information, include:
    确定各所述视频帧在对应时间点的目标活跃度值,所述目标活跃度值是所述对应时间点上所述目标用户账户在所述直播视频对应的直播间的活跃度值,所述视频帧是所述当前视频帧,或者是所述候选视频帧、或者是所述目标视频帧;Determine the target activity value of each video frame at a corresponding time point, the target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point, the The video frame is the current video frame, or the candidate video frame, or the target video frame;
    根据各所述目标活跃度值的由大到小的顺序,对各所述视频帧进行排序;Sorting each of the video frames according to the descending order of each of the target activity values;
    选取排序在前的预设个数所述视频帧作为所述目标视频信息。Selecting a preset number of video frames sorted first as the target video information.
  10. 一种视频信息提取装置,其中,包括:A video information extraction device, including:
    获取模块,被配置为获取目标用户账户的信息,所述目标用户账户是直播视频对应的直播间 的直播间用户账户;The obtaining module is configured to obtain the information of the target user account, and the target user account is the live room user account of the live room corresponding to the live video;
    确定模块,被配置为根据所述目标用户账户的信息,确定所述目标用户账户在所述直播视频对应的直播间的活跃度值;The determination module is configured to determine the activity value of the target user account in the live broadcast room corresponding to the live video according to the information of the target user account;
    提取模块,被配置为根据所述活跃度值,从所述直播视频中提取出目标视频信息。The extraction module is configured to extract target video information from the live video according to the liveness value.
  11. 根据权利要求10所述的视频信息提取装置,其中,所述提取模块,被配置为:The video information extraction device according to claim 10, wherein the extraction module is configured to:
    响应于所述活跃度值的变化量大于或者等于预设增加幅度阈值,根据预设策略从所述直播视频中提取出所述目标视频信息;Extracting the target video information from the live video according to a preset policy in response to a change in the activity value being greater than or equal to a preset increase threshold;
    响应于所述活跃度值的变化量小于所述预设增加幅度阈值,重新执行所述确定所述目标用户账户在所述直播视频对应的直播间的活跃度值的步骤。In response to the variation of the activity value being less than the preset increase range threshold, the step of determining the activity value of the target user account in the live broadcast room corresponding to the live video is re-executed.
  12. 根据权利要求11所述的视频信息提取装置,其中,所述提取模块,被配置为:The video information extraction device according to claim 11, wherein the extraction module is configured to:
    获取当前视频帧,所述当前视频帧对应当前时间点;Obtaining a current video frame, where the current video frame corresponds to the current time point;
    根据所述预设策略和所述活跃度值确定目标视频帧,所述目标视频帧对应的目标时间点在所述当前时间点之后;determining a target video frame according to the preset policy and the activity value, and the target time point corresponding to the target video frame is after the current time point;
    根据所述当前视频帧和所述目标视频帧,从所述直播视频中提取出所述目标视频信息。Extracting the target video information from the live video according to the current video frame and the target video frame.
  13. 根据权利要求12所述的视频信息提取装置,其中,所述提取模块,被配置为:The video information extraction device according to claim 12, wherein the extraction module is configured to:
    从所述直播视频中截取视频段,并将所述视频段作为所述目标视频信息,其中,所述视频段包括起始帧和末尾帧,所述起始帧是所述当前视频帧,所述末尾帧是所述目标视频帧。Intercepting a video segment from the live video, and using the video segment as the target video information, wherein the video segment includes a start frame and an end frame, and the start frame is the current video frame, so The last frame is the target video frame.
  14. 根据权利要求12所述的视频信息提取装置,其中,所述提取模块,被配置为:The video information extraction device according to claim 12, wherein the extraction module is configured to:
    从所述直播视频中提取出多个候选视频帧,所述候选视频帧对应的时间点在所述当前时间点和所述目标时间点之间;Extracting a plurality of candidate video frames from the live video, where the time points corresponding to the candidate video frames are between the current time point and the target time point;
    从所述当前视频帧、所述多个候选视频帧,以及所述目标视频帧中选取出部分视频帧作为所述目标视频信息。Selecting a part of video frames from the current video frame, the plurality of candidate video frames, and the target video frame as the target video information.
  15. 根据权利要求12所述的视频信息提取装置,其中,所述提取模块,被配置为:The video information extraction device according to claim 12, wherein the extraction module is configured to:
    持续地对所述活跃度值的变化情况进行监测,以得到活跃度变化信息;Continuously monitor changes in the activity value to obtain activity change information;
    响应于所述活跃度变化信息满足设定条件,捕获对应的时间点作为所述目标时间点;In response to the activity change information satisfying a set condition, capturing a corresponding time point as the target time point;
    将所述直播视频对应的直播间中所述目标时间点对应的视频帧作为所述目标视频帧。The video frame corresponding to the target time point in the live room corresponding to the live video is used as the target video frame.
  16. 根据权利要求10所述的视频信息提取装置,其中,所述确定模块,包括:The video information extraction device according to claim 10, wherein the determination module includes:
    第一确定子模块,被配置为根据所述目标用户账户的信息,确定所述目标用户账户所在的目标用户账户分组,并将与所述目标用户账户分组对应的参考活跃度值作为所述目标用户账户在所述直播视频对应的直播间的活跃度值。The first determining submodule is configured to determine the target user account group in which the target user account belongs according to the information of the target user account, and use the reference activity value corresponding to the target user account group as the target The activity value of the user account in the live room corresponding to the live video.
  17. 根据权利要求16所述的视频信息提取装置,其中,所述目标用户账户分组包括多个用户账户,所述确定模块,还包括:The video information extraction device according to claim 16, wherein the target user account group includes multiple user accounts, and the determining module further includes:
    获取子模块,被配置为在所述根据所述目标用户账户的信息,确定所述目标用户账户所在的目标用户账户分组的步骤之前,获取与所述多个用户账户分别对应的多个直播互动信息;The acquisition sub-module is configured to acquire multiple live interactions respectively corresponding to the multiple user accounts before the step of determining the target user account group in which the target user account belongs according to the information of the target user account information;
    第二确定子模块,被配置为根据所述多个直播互动信息,确定与所述多个用户账户分别对应的多个候选活跃度值;The second determination submodule is configured to determine a plurality of candidate activity values respectively corresponding to the plurality of user accounts according to the plurality of live interaction information;
    第三确定子模块,被配置为根据所述多个候选活跃度值,确定与所述目标用户账户分组对应的所述参考活跃度值。The third determining submodule is configured to determine the reference activity value corresponding to the target user account group according to the plurality of candidate activity values.
  18. 根据权利要求15所述的视频信息提取装置,其中,所述提取模块,用于:The video information extraction device according to claim 15, wherein the extraction module is configured to:
    确定各所述视频帧在对应时间点的目标活跃度值,所述目标活跃度值是所述对应时间点上所述目标用户账户在所述直播视频对应的直播间的活跃度值,所述视频帧是所述当前视频帧,或者是所述候选视频帧、或者是所述目标视频帧;Determine the target activity value of each video frame at a corresponding time point, the target activity value is the activity value of the target user account in the live broadcast room corresponding to the live video at the corresponding time point, the The video frame is the current video frame, or the candidate video frame, or the target video frame;
    根据各所述目标活跃度值的由大到小的顺序,对各所述视频帧进行排序;Sorting each of the video frames according to the descending order of each of the target activity values;
    选取排序在前的预设个数所述视频帧作为所述目标视频信息。Selecting a preset number of video frames sorted first as the target video information.
  19. 一种电子设备,其中,包括:An electronic device, comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
    其中,所述处理器被配置为执行所述指令,以实现以下步骤:Wherein, the processor is configured to execute the instructions to achieve the following steps:
    获取目标用户账户的信息,所述目标用户账户是直播视频对应的直播间的直播间用户账户;Acquiring the information of the target user account, where the target user account is the live room user account of the live room corresponding to the live video;
    根据所述目标用户账户的信息,确定所述目标用户账户在所述直播视频对应的直播间的活跃度值;According to the information of the target user account, determine the activity value of the target user account in the live broadcast room corresponding to the live video;
    根据所述活跃度值,从所述直播视频中提取出目标视频信息。According to the activity value, target video information is extracted from the live video.
  20. 一种非易失性计算机可读存储介质,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行以下步骤:A non-volatile computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can perform the following steps:
    获取目标用户账户的信息,所述目标用户账户是直播视频对应的直播间的直播间用户账户;Acquiring the information of the target user account, where the target user account is the live room user account of the live room corresponding to the live video;
    根据所述目标用户账户的信息,确定所述目标用户账户在所述直播视频对应的直播间的活跃度值;According to the information of the target user account, determine the activity value of the target user account in the live broadcast room corresponding to the live video;
    根据所述活跃度值,从所述直播视频中提取出目标视频信息。According to the activity value, target video information is extracted from the live video.
  21. 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现以下步骤:A computer program product, comprising a computer program, wherein the computer program implements the following steps when executed by a processor:
    获取目标用户账户的信息,所述目标用户账户是直播视频对应的直播间的直播间用户账户;Acquiring the information of the target user account, where the target user account is the live room user account of the live room corresponding to the live video;
    根据所述目标用户账户的信息,确定所述目标用户账户在所述直播视频对应的直播间的活跃度值;According to the information of the target user account, determine the activity value of the target user account in the live broadcast room corresponding to the live video;
    根据所述活跃度值,从所述直播视频中提取出目标视频信息。According to the activity value, target video information is extracted from the live video.
PCT/CN2022/091812 2021-11-11 2022-05-09 Video information extraction method and apparatus WO2023082569A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111334747.7 2021-11-11
CN202111334747.7A CN114189719B (en) 2021-11-11 2021-11-11 Video information extraction method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023082569A1 true WO2023082569A1 (en) 2023-05-19

Family

ID=80601533

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/091812 WO2023082569A1 (en) 2021-11-11 2022-05-09 Video information extraction method and apparatus

Country Status (2)

Country Link
CN (1) CN114189719B (en)
WO (1) WO2023082569A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189719B (en) * 2021-11-11 2024-04-16 北京达佳互联信息技术有限公司 Video information extraction method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231379A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing live video
CN108062409A (en) * 2017-12-29 2018-05-22 北京奇艺世纪科技有限公司 Generation method, device and the electronic equipment of live video summary
CN109089154A (en) * 2018-07-10 2018-12-25 武汉斗鱼网络科技有限公司 A kind of video extraction method, apparatus, equipment and medium
US20190392866A1 (en) * 2018-06-22 2019-12-26 Tildawatch, Inc. Video summarization and collaboration systems and methods
CN111050205A (en) * 2019-12-13 2020-04-21 广州酷狗计算机科技有限公司 Video clip acquisition method, device, apparatus, storage medium, and program product
US20200154166A1 (en) * 2018-11-08 2020-05-14 International Business Machines Corporation Automatically determining and presenting participants' reactions to live streaming videos
CN111556327A (en) * 2020-04-02 2020-08-18 北京达佳互联信息技术有限公司 Live broadcast room recommendation method, device, terminal, server, system and storage medium
CN112232906A (en) * 2020-09-29 2021-01-15 平潭综合实验区澄心贸易有限公司 Commodity recommendation system for live broadcast sales and working method thereof
CN114189719A (en) * 2021-11-11 2022-03-15 北京达佳互联信息技术有限公司 Video information extraction method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391654A (en) * 2015-11-26 2016-03-09 中国建设银行股份有限公司 Account activeness-based system resource allocation method and device
CN107147951B (en) * 2017-04-11 2021-02-02 武汉斗鱼网络科技有限公司 Information interaction method and device
CN108900924B (en) * 2018-07-20 2021-03-09 广州方硅信息技术有限公司 Method and device for recommending friends in live broadcast room
CN111263181A (en) * 2020-02-25 2020-06-09 北京达佳互联信息技术有限公司 Live broadcast interaction method and device, electronic equipment, server and storage medium
CN111401433B (en) * 2020-03-12 2023-10-17 腾讯科技(深圳)有限公司 User information acquisition method and device, electronic equipment and storage medium
CN111405311B (en) * 2020-04-17 2023-03-21 北京达佳互联信息技术有限公司 Live program storage method and device, electronic equipment and storage medium
CN112822504B (en) * 2020-12-30 2023-07-25 北京达佳互联信息技术有限公司 Live broadcast room cover updating method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231379A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing live video
CN108062409A (en) * 2017-12-29 2018-05-22 北京奇艺世纪科技有限公司 Generation method, device and the electronic equipment of live video summary
US20190392866A1 (en) * 2018-06-22 2019-12-26 Tildawatch, Inc. Video summarization and collaboration systems and methods
CN109089154A (en) * 2018-07-10 2018-12-25 武汉斗鱼网络科技有限公司 A kind of video extraction method, apparatus, equipment and medium
US20200154166A1 (en) * 2018-11-08 2020-05-14 International Business Machines Corporation Automatically determining and presenting participants' reactions to live streaming videos
CN111050205A (en) * 2019-12-13 2020-04-21 广州酷狗计算机科技有限公司 Video clip acquisition method, device, apparatus, storage medium, and program product
CN111556327A (en) * 2020-04-02 2020-08-18 北京达佳互联信息技术有限公司 Live broadcast room recommendation method, device, terminal, server, system and storage medium
CN112232906A (en) * 2020-09-29 2021-01-15 平潭综合实验区澄心贸易有限公司 Commodity recommendation system for live broadcast sales and working method thereof
CN114189719A (en) * 2021-11-11 2022-03-15 北京达佳互联信息技术有限公司 Video information extraction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114189719B (en) 2024-04-16
CN114189719A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
TWI775091B (en) Data update method, electronic device and storage medium thereof
US20170193399A1 (en) Method and device for conducting classification model training
WO2019120029A1 (en) Intelligent screen brightness adjustment method and apparatus, and storage medium and mobile terminal
RU2667027C2 (en) Method and device for video categorization
WO2017020488A1 (en) Picture processing method and apparatus
JP6335289B2 (en) Method and apparatus for generating an image filter
CN106713734B (en) Automatic focusing method and device
WO2018157631A1 (en) Method and device for processing multimedia resource
US20210224592A1 (en) Method and device for training image recognition model, and storage medium
WO2017016149A1 (en) Contact information recommendation method and apparatus
WO2017084183A1 (en) Information displaying method and device
CN107888965B (en) Image gift display method and device, terminal, system and storage medium
CN107463643B (en) Barrage data display method and device and storage medium
CN109189986B (en) Information recommendation method and device, electronic equipment and readable storage medium
EP2998960A1 (en) Method and device for video browsing
CN105335684B (en) Face detection method and device
WO2020114236A1 (en) Keypoint detection method and apparatus, electronic device, and storage medium
CN112188091B (en) Face information identification method and device, electronic equipment and storage medium
US9799376B2 (en) Method and device for video browsing based on keyframe
WO2023082569A1 (en) Video information extraction method and apparatus
CN103905837B (en) Image processing method and device and terminal
US11600300B2 (en) Method and device for generating dynamic image
US10950272B2 (en) Method and apparatus for obtaining audio-visual information, device, and storage medium
CN111698532B (en) Bullet screen information processing method and device
CN111797746A (en) Face recognition method and device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22891380

Country of ref document: EP

Kind code of ref document: A1