Searching method, device, equipment and storage medium based on video barrage contentTechnical field
The present embodiments relate to field of communication technology more particularly to a kind of searching method based on video barrage content,Device, equipment and storage medium.
Background technique
With the development of internet technology, barrage is user using browsing as a kind of interesting Video Add-On informationMany enjoyment are provided during device viewing video.For example, user the terminals such as mobile phone, plate or computer watch video when,Comment information can be inputted in terminal, then, these comment informations can be popped up in the form of barrage in video display process.
However, existing barrage is only used as one of video display process user comment way of presentation, can not according toThe comment information of family input interacts, and user can not obtain richer information by barrage.
Summary of the invention
The embodiment of the present invention provides a kind of searching method based on video barrage content, to enrich the interactive mode of barrage,Richer information is obtained by barrage convenient for user.
In a first aspect, the embodiment of the invention provides a kind of searching methods based on video barrage content, this method comprises:
Parsing obtains search key in the barrage content to be presented from current video;
Operation in response to user to search key, according in search key and the associated video of search keyAppearance scans for;
Search-results region is loaded in the video playing page, and is rendered search result in search-results region and shown pageFace.
Second aspect, the embodiment of the invention also provides a kind of searcher based on video barrage content, the device packetsIt includes:
Parsing module obtains search key for parsing from current video barrage content to be presented;
Respond module, it is crucial according to search key and search for the operation in response to user to search keyThe video content of word association scans for;
Display module is rendered for loading search-results region in the video playing page, and in search-results regionSearch result displayed page.
The third aspect, the embodiment of the invention also provides a kind of equipment, which includes:
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are one or more ofProcessor executes, so that one or more of processors realize that any one of embodiment of the present invention is based on video barrage contentSearching method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computerProgram realizes searcher of any one of the embodiment of the present invention based on video barrage content when the program is executed by processorMethod.
The embodiment of the present invention obtains search key by parsing from current video barrage content to be presented;In response toOperation of the user to search key is scanned for according to search key and the associated video content of search key;?Search-results region is loaded in the video playing page, and search result displayed page is rendered in search-results region.By rightThe barrage Context resolution of user's input obtains search key, and combines and searched with the associated video content of barrage contentRope shows search result to user, enriches the interactive mode of barrage, obtain richer information by barrage convenient for user.
Detailed description of the invention
Fig. 1 is the flow chart of searching method of one of the embodiment of the present invention one based on video barrage content;
Fig. 2 is the flow chart of searching method of one of the embodiment of the present invention two based on video barrage content;
Fig. 3 is the structural schematic diagram of searcher of one of the embodiment of the present invention three based on video barrage content;
Fig. 4 is the structural schematic diagram of search system of one of the embodiment of the present invention four based on video barrage content;
Fig. 5 is the structural schematic diagram of one of the embodiment of the present invention five equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to justOnly the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for searching method based on video barrage content that the embodiment of the present invention one provides, this realityThe searching method based on video barrage content for applying example offer is applicable to parse search from video barrage content to be presentedKeyword and to user show search result the case where, this method can be by being held based on the searcher of video barrage contentRow, the device can be realized by the mode of software and/or hardware.Referring to Fig. 1, the method for this implementation specifically comprises the following steps:
S110, parsing obtains search key from current video barrage content to be presented.
Wherein, barrage content may include the comment information that user inputs during watching video, i.e. this barrageEntry data information, barrage content may include in barrage data.Illustratively, barrage data may include the barrageBarrage content, corresponding identification information, the corresponding time occurred in video display process and barrage are displayed in the screenThe information such as coordinate position.
In general, being not that every barrage content all can serve as search key, it usually needs in barrage contentSearch key extracts, i.e., parsing obtains search key from barrage content.For example, barrage content is that " this is oneJaguar " then parses " this is a jaguar ", and obtaining search key is " jaguar ".
S120, the operation in response to user to search key, it is associated according to search key and search keyVideo content scans for.
Illustratively, in video display process user can to the corresponding barrage content shown in screen click orThe operation such as double-click.Wherein, the associated video content of search key can be the barrage content and occur in video display processTime corresponding present frame video pictures.
In a kind of achievable mode of the present embodiment, searched being parsed from current video barrage content to be presentedAfter rope keyword, rendering can be labeled to the search key that obtain of parsing, it specifically, can will be in this barrage contentSearch key be rendered into flashing and/or highlighted effect, be shown in video display process, user is in viewing videoDuring broadcasting, oneself interested content can be found from the keyword after mark rendering, and click corresponding warpCross the search key of mark rendering.Receive with to user to the information of the operation of search key after, obtain in barrageHold the time corresponding video content occurred in video display process, it is associated according to search key and search keyVideo content scans for.
S130, search-results region is loaded in the video playing page, and search result is rendered in search-results regionDisplayed page.
Specifically, search result region can be shown by opening floating layer in the video playing page, in search result areaAn inline frame comprising another document built in domain is searched in retrieval by being arranged corresponding term splicing oneRetrieval uniform resource locator (Uniform Resource Locator, the URL) setting held up is indexed to inline frame, using mutualNetworking technology renders search engine retrieving result page.A page is completed in load in a container, is based on inline frame,Current video increases a container area, and search result displayed page is rendered in container area.
Optionally, if detecting, user clicks video display region in the video playing page, closes search-results region.
The technical solution of the present embodiment obtains search key by parsing from current video barrage content to be presentedWord;Operation in response to user to search key, according to search key and the associated video content of search key intoRow search;Search-results region is loaded in the video playing page, and is rendered search result in search-results region and shown pageFace.Obtain search key by the barrage Context resolution inputted to user, and combine in the associated video of barrage contentAppearance scans for, and shows search result to user, enriches the interactive mode of barrage, is obtained convenient for user by barrage richerInformation.
Embodiment two
Fig. 2 is a kind of flow chart of searching method based on video barrage content provided by Embodiment 2 of the present invention, this realityIt applies example to be optimized on the basis of the above embodiments, wherein the explanation of term identical or corresponding with the various embodiments described above existsThis is repeated no more.Referring to fig. 2, the searching method provided in this embodiment based on video barrage content includes:
S210, the barrage content to be presented to current video segment, and obtain the word that barrage content includes.
It illustratively, can be according to the sentence of barrage content when the barrage content to be presented to current video segmentsFormula structure segments all words for including in barrage content, can also be according to the knowledge model that priori knowledge is constituted to bulletCurtain content is segmented.
If S220, detecting that the word that barrage content includes is matched with the knowledge mapping constructed in advance, by matched wordLanguage is as search key;Alternatively, the input of barrage content, which is in advance based on the barrage that machine learning model training obtains, parses mouldType obtains the search key for including in barrage content.
In a kind of optional implementation of embodiment, this step can be realized based on the knowledge mapping constructed in advance, in advanceThe knowledge mapping matching first constructed can be the expert knowledge system constituted according to priori knowledge, the word for including by barrage contentIt is input in the expert knowledge system, it can be determined that going out which word is search key, which word is common words.
In another optional implementation of the present embodiment, this step can be realized based on barrage analytic modell analytical model.ExampleProperty, by carrying out machine learning model training to a large amount of sample comprising barrage content and its corresponding search key,Feature connection between the corresponding search key of available barrage content, as barrage analytic modell analytical model.By bulletThe word that curtain content includes is input in the barrage analytic modell analytical model, it can be determined that going out which word is search key, which wordLanguage is common words.
Main information in S230, the parsing associated video content of search key.
Illustratively, the main information in video content is parsed, image segmentation algorithm can be based on, obtain the viewBody matter in frequency content, and the subject content in the video content is analyzed based on image recognition algorithm, obtain thisMain information in video content.For example, being a jaguar in video content, it is based on image segmentation algorithm, to video contentIn the part of jaguar be split extraction, and based on the body matter extracted, obtain main body using image recognition technologyInformation " jaguar ".
S240, it is carried out according to the main information in described search keyword and the associated video content of search keySearch.
Optionally, if the degree of association between search key and main information is greater than correlation threshold, with search keyIt is scanned for as search term.
Wherein, correlation threshold is the threshold value of the pre-set degree of association.If search key and video subject information itBetween the degree of association be greater than correlation threshold, then show search key in the barrage content and the corresponding video content degree of correlation compared withHeight can directly be scanned for using search key as search term.
It should be noted that if the degree of association between search key and main information is not more than correlation threshold, withSearch key and main information are scanned for as search term.For example, search key is " jaguar ", and main informationFor " polar bear ", then scanned for respectively using " jaguar " and " polar bear " as search term.
S250, search-results region is loaded in the video playing page, and search result is rendered in search-results regionDisplayed page.
Optionally, if detecting, user clicks video display region in the video playing page, closes search-results region.
The technical solution of the present embodiment obtains search key by parsing from current video barrage content to be presentedWord;The main information in the associated video content of search key is parsed, is associated with according to search key and search keyVideo content in main information scan for;Search-results region is loaded in the video playing page, and in search resultSearch result displayed page is rendered in region.Search key is obtained by the barrage Context resolution inputted to user, and is combinedIt is scanned for main information in the associated video content of barrage content, increases the reliability of search result, so that searchAs a result higher with the degree of association of the barrage content of user's input, richer information is obtained by barrage convenient for user.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for searcher based on video barrage content that the embodiment of the present invention three provides,Searcher provided in this embodiment based on video barrage content is applicable to parse from video barrage content to be presentedSearch key and to user show search result the case where, which can be realized by the mode of software and/or hardware, the dressSetting can integrate in a device.Referring to Fig. 3, which is specifically included:
Parsing module 301 obtains search key for parsing from current video barrage content to be presented;
Respond module 302 is closed for the operation in response to user to search key according to search key and searchThe associated video content of keyword scans for;
Display module 303, for loading search-results region, and the wash with watercolours in search-results region in the video playing pageContaminate search result displayed page.
Further, parsing module 301 includes:
Split cells is segmented for the barrage content to be presented to current video, obtains the word that barrage content includesLanguage;
Matching unit, if for detecting that the word that barrage content includes is matched with the knowledge mapping constructed in advance, it willMatched word is as search key;Alternatively, the input of barrage content is in advance based on the bullet that machine learning model training obtainsCurtain analytic modell analytical model, obtains the search key for including in barrage content.
Further, respond module 302 includes:
Video parsing unit, for parsing the main information in the associated video content of search key;
Search unit, for according to the main body in described search keyword and the associated video content of search keyInformation scans for.
Further, search unit includes:
First search subelement, is associated with if being greater than for the degree of association between described search keyword and the main informationThreshold value is then scanned for using described search keyword as search term;
Second search subelement, if for the degree of association between described search keyword and the main information no more than passJoin threshold value, is scanned for using described search keyword and the main information as search term.
Further, the searcher based on video barrage content further include:
Closedown module is shown, if closing is searched for detecting that user clicks video display region in the video playing pageRope results area.
The technical solution of the present embodiment is parsed from current video barrage content to be presented by parsing module and is searchedRope keyword;Operation of the respond module in response to user to search key is closed according to search key and search keyThe video content of connection scans for;Display module loads search-results region in the video playing page, and in search results areaSearch result displayed page is rendered in domain.Obtain search key by the barrage Context resolution inputted to user, and combine withThe associated video content of barrage content scans for, and shows search result to user, enriches the interactive mode of barrage, be convenient forUser obtains richer information by barrage.
Example IV
Searching method provided in an embodiment of the present invention based on video barrage content can be executed by equipment, can also be by takingBusiness device executes, and can also be cooperated and be executed by equipment and server.The present embodiment is mutual by equipment and server in this wayFor cooperation executes, a kind of search system based on video barrage content is provided.Referring to fig. 4, provided in this embodiment to be based onThe search system of video barrage content includes on-line system 401, off-line system 402 and service end system 403.
Optionally, on-line system 401 includes:
Data formatting module 4011 is handled for carrying out unified formatting to barrage data, because of the barrage of inputData format may be slightly different, in order to allow the indiscriminate processing barrage data of subsequent module so needing to barrage dataCarry out unified formatting processing.For barrage data under normal circumstances there are two types of input type, a kind of input type is with broadcastingProgress progress goes input barrage data according to the period, is accomplished that interim incremental data input;Another seed type is then completeThe input of barrage data is measured, whole barrage data can be disposably obtained in video playing.Barrage number no matter what typeAccording to all including { " barrage identification information ", " time occurred in video display process ", " barrage content ", " display positionCoordinate " } etc. contents, data formatting module 4011 can enumerate some known barrage type of data format, convert it into { " bulletCurtain identification information ", " time occurred in video display process ", " barrage content " } as unified format.Processing is completedAfterwards, the unified data formatted are sent into barrage Context resolution module 4012.
Barrage Context resolution module 4012, for that can be examined to the barrage content progress in the barrage data for being sent to server-sideRope keyword obtains, and is not under normal circumstances that every barrage content can act as suitable search key, needs to attempt to mentionTake search key.The barrage batch data that data formatting module 4011 is handled well is sent machine learning training by this moduleModule 4021 obtains the search key that can be used for retrieving.For example, will " barrage identification information ", the 543rd second time occur," this is a jaguar " } input machine learning training module 4021, get { " barrage identification information ", the 543rd second timeOccur, " this is a jaguar ", " jaguar ", wherein " jaguar " is search key.Barrage Context resolution module4012, which are cached result data invocation step barrage content mark rendering module 4013 when subtitle being waited to occur, carries out barrageContent mark.
Barrage content marks rendering module 4013, for receiving the result data of barrage Context resolution module 4012, and according toThe mark rendering for flashing and highlighting is done to corresponding barrage entry according to result data, and is the barrage entry information of each markSearch key is set.Optionally, this module can search corresponding barrage data by search key.Wherein, rendering canTo use Internet technology, such as HTML, CSS, JavaScript or client Rendering.
Barrage passes through interactive module 4014, for when user clicks corresponding barrage entry, top to be beaten near playerIt opens and shows search result region around floating layer display search result region or player.It is closed when video area when the user clicksClose search result region.
Content rendering module 4015 is searched for, for rendering in search result region to retrieval content, this part canWith by include at one built in search result region another document inline frame, it is corresponding by being arranged in retrievalTerm splice a search engine retrieval uniform resource locator (Uniform Resource Locator, URL) setIt sets to inline frame, renders search engine retrieving result page using Internet technology.Load completes one in a containerThe page is based on inline frame, increases a container area in current video, search result is rendered in container area and shows pageFace.
Optionally, off-line system 402 includes:
Machine learning training module 4021, can in barrage entry information for being obtained by machine learning progress off-line trainingWith the search key for search.Illustratively, one section of word is inputted to the program for running this model, can both exported thereinIt can search key.For example, input " this is a jaguar ", exports { keyword: jaguar }.
Optionally, service end system 403 includes:
Barrage data extraction module 4031, is requested for receiving data, carries out the extraction of barrage data, and the bullet that will be extractedCurtain data input data format module 4011.
The technical solution of the present embodiment, specifically provide it is a kind of cooperated by equipment and server execute based on videoThe search system of barrage content, by the way that barrage parsing functional configuration to be reduced to the data processing amount of equipment in server, into oneStep improves the search efficiency based on video barrage content.
Embodiment five
Fig. 5 is a kind of structure chart for equipment that the embodiment of the present invention five provides.Fig. 5, which is shown, to be suitable for realize the present inventionThe block diagram of the example devices 512 of embodiment.The equipment 512 that Fig. 5 is shown is only an example, should not be implemented to the present inventionThe function and use scope of example bring any restrictions.
As shown in figure 5, equipment 512 is showed in the form of universal computing device.The component of equipment 512 may include but unlimitedIn one or more processor or processing unit 516, system storage 528, different system components (including system is connectedMemory 528 and processing unit 516) bus 518.
Bus 518 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It liftsFor example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 512 typically comprises a variety of computer system readable media.These media can be it is any can be by equipmentThe usable medium of 512 access, including volatile and non-volatile media, moveable and immovable medium.
System storage 528 may include the computer system readable media of form of volatile memory, such as deposit at randomAccess to memory (RAM) 530 and/or cache memory 532.Equipment 512 may further include other removable/not removableDynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 534 can be used for read and write can notMobile, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 5, Ke YitiFor the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile lightThe CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driverIt can be connected by one or more data media interfaces with bus 518.Memory 528 may include that at least one program producesProduct, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention eachThe function of embodiment.
Program/utility 540 with one group of (at least one) program module 542, can store in such as memoryIn 528, such program module 542 includes but is not limited to operating system, one or more application program, other program modulesAnd program data, it may include the realization of network environment in each of these examples or certain combination.Program module 542Usually execute the function and/or method in embodiment described in the invention.
Equipment 512 can also be logical with one or more external equipments 514 (such as keyboard, sensing equipment, display 524 etc.)Letter, can also be enabled a user to one or more equipment interact with the equipment 512 communicate, and/or with make the equipment 512Any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicates.ThisKind communication can be carried out by input/output (I/O) interface 522.Also, equipment 512 can also by network adapter 520 withOne or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such asShown in figure, network adapter 520 is communicated by bus 518 with other modules of equipment 512.It should be understood that although not showing in figureOut, other hardware and/or software module can be used with bonding apparatus 512, including but not limited to: microcode, device driver, superfluousRemaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 516 is by running at least one of other programs in the multiple programs being stored in system storage 528It is a, thereby executing various function application and data processing, such as realize that one kind provided by the embodiment of the present invention is based on videoThe searching method of barrage content.
Embodiment six
The embodiment of the present invention six additionally provides a kind of storage medium comprising computer executable instructions, and the computer canIt executes instruction when being executed by computer processor for executing a kind of searching method based on video barrage content.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable mediaCombination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readableStorage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device orDevice, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: toolThere are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storageMedium can be any tangible medium for including or store program, which can be commanded execution system, device or deviceUsing or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimitedIn electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer canAny computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used forBy the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimitedIn wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereofProgram code, described program design language include object oriented program language-such as Java, Smalltalk, C++,Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be withIt fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portionDivide and partially executes or executed on remote computer or equipment completely on the remote computer on the user computer.It is relating toAnd in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or extensivelyDomain net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet serviceQuotient is connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art thatThe invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present inventionIt is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, alsoIt may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.