CN112380386A - Video searching method and device, terminal and computer readable storage medium - Google Patents

Video searching method and device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112380386A
CN112380386A CN202011307495.4A CN202011307495A CN112380386A CN 112380386 A CN112380386 A CN 112380386A CN 202011307495 A CN202011307495 A CN 202011307495A CN 112380386 A CN112380386 A CN 112380386A
Authority
CN
China
Prior art keywords
search
target
video
word
text
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011307495.4A
Other languages
Chinese (zh)
Inventor
叶敏
高阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011307495.4A priority Critical patent/CN112380386A/en
Publication of CN112380386A publication Critical patent/CN112380386A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/732Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/735Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of intelligent search, and discloses a video search method and device, a terminal and a computer readable storage medium. The method comprises the steps of obtaining a text search request, determining a target search word based on the text search request, further determining a target search dimension corresponding to the target search word, and then performing video search according to the target search word and the target search dimension corresponding to the target search word; the problem of low video search accuracy in the related art is solved.

Description

Video searching method and device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a video search method and apparatus, a terminal, and a computer-readable storage medium.
Background
With the rapid development of the internet, more and more users start to turn from text consumption to video consumption, and enjoy watching videos anytime and anywhere; meanwhile, each large video website provides a search engine for users to search videos for watching, so that different user requirements are met.
At present, when a video search engine receives a search request from a user, a keyword is extracted from the search request, and then a search is directly performed according to the keyword. However, the method depends on the extracted keywords, and when the keywords are inaccurate or incomplete, corresponding videos cannot be searched or wrong videos are searched, which brings much trouble to users.
Therefore, the related art has the problem of low video search accuracy.
Disclosure of Invention
The invention mainly aims to provide a video searching method and device, a terminal and a computer readable storage medium, aiming at improving the video searching accuracy.
In order to achieve the above object, the present invention provides a video search method, including:
acquiring a text search request;
determining a target search term based on the text search request;
determining a target search dimension corresponding to the target search term;
and performing video search according to the target search word and the target search dimension corresponding to the target search word.
Optionally, the step of obtaining the text search request includes:
acquiring a text search request based on the received voice information;
or the like, or, alternatively,
and acquiring a text search request based on the received character information.
Optionally, the step of determining a target search term based on the text search request includes:
obtaining a search word from the text search request;
judging whether the search word meets a preset error condition or not;
if so, correcting the search words meeting the preset error conditions according to preset error correction rules, and determining the search words after error correction as target search words;
and if not, determining the search word as a target search word.
Optionally, the step of obtaining a search term from the text search request includes:
obtaining each search word from the text search request;
combining the search words to form search terms;
judging whether each search word can not be combined to form a search word;
if so, filling the search words which cannot form the search words to form the search words, and taking the filled search words as the search words;
and if not, taking the search word formed by combination as the search word.
Optionally, the step of determining the target search dimension corresponding to the target search term includes:
determining a target search dimension corresponding to the target search word from a preset search word-dimension table; the preset search term-dimension table stores a plurality of target search terms and target search dimensions corresponding to the target search terms respectively.
Optionally, the step of performing video search according to the target search term and the target search dimension corresponding to the target search term includes:
distributing a Query Handle querier for the target search terms and target search dimensions corresponding to the target search terms to generate Query Handle Query sentences; wherein, the variables in the Query Handle Query statement are the target search dimensions, and the values corresponding to the variables are the target search terms;
generating a target Query statement according to the Query Handle Query statement;
and executing the target query statement to realize video search.
Optionally, after the step of performing video search according to each target search term and the target search dimension corresponding to each target search term, the video search method further includes:
if the video is searched successfully, playing the searched video;
and if the video searching fails, playing the videos in the historical searching record and/or the historical watching record.
In addition, to achieve the above object, the present invention also provides a video search apparatus, including:
the acquisition module is used for acquiring a text search request;
the first determining module is used for determining each target search word based on the text search request;
the second determining module is used for determining the target search dimension corresponding to each target search term;
and the searching module is used for performing video searching according to each target searching word and the target searching dimension corresponding to each target searching word.
In addition, to achieve the above object, the present invention also provides a terminal, including: a memory, a processor and a video search program stored on the memory and running on the processor, the video search program when executed by the processor implementing the steps of the video search method as above.
Furthermore, to achieve the above object, the present invention also proposes a computer readable storage medium having stored thereon a video search program, which when executed by a processor implements the steps of the video search method as above.
According to the technical scheme provided by the invention, a text search request is obtained, a target search word is determined based on the text search request, a target search dimension corresponding to the target search word is further determined, and then video search is carried out according to the target search word and the target search dimension corresponding to the target search word; the problem of low video search accuracy in the related art is solved.
That is, according to the technical scheme provided by the invention, the target search word is determined from the acquired text search request, and the target search dimension corresponding to the target search word is determined, so that the video search can be more accurately performed by combining the target search word and the target search dimension to which the target search word belongs, the phenomenon that the corresponding video cannot be searched or the wrong video cannot be searched when the keyword is inaccurate or incomplete in the related technology is avoided, the accuracy of the video search is improved, and the user experience satisfaction is better.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a video search method according to a first embodiment of the present invention;
fig. 3 is a block diagram of a first embodiment of the terminal according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal includes: at least one processor 101, a memory 102, and a video search program stored on the memory and executable on the processor, the video search program configured to implement the steps of the video search method as described in any of the following embodiments.
Processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 101 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 101 may further include an AI (Artificial Intelligence) processor for processing operations related to the video search method, so that the video search method model can be trained and learned autonomously, improving efficiency and accuracy.
Memory 102 may include one or more computer-readable storage media, which may be non-transitory. Memory 102 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage terminals, flash memory storage terminals. In some embodiments, a non-transitory computer readable storage medium in memory 102 is used to store at least one instruction for execution by processor 101 to implement a video search method provided by a method embodiment of the present invention.
In some embodiments, the terminal may further include: a communication interface 103 and at least one peripheral device. The processor 101, memory 102 and communication interface 103 may be connected by a bus or signal lines. The peripheral devices may be connected to the communication interface 103 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 104, display screen 105, and power supply 106.
The communication interface 103 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 101 and the memory 102. In some embodiments, the processor 101, memory 102, and communication interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 101, the memory 102 and the communication interface 103 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 104 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 104 communicates with a communication network and other communication terminals through electromagnetic signals. The rf circuit 104 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 104 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 104 may further include NFC (Near Field Communication) related circuits, which are not limited in the present invention.
The display screen 105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 105 is a touch display screen, the display screen 105 also has the ability to capture touch signals on or over the surface of the display screen 105. The touch signal may be input to the processor 101 as a control signal for processing. At this point, the display screen 105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 105 may be one, the front panel of the terminal; in other embodiments, the display 105 may be at least two, respectively disposed on different surfaces of the terminal or in a folded design; in some embodiments, the display 105 may be a flexible display, disposed on a curved surface or on a folded surface of the terminal. Even further, the display screen 105 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 105 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 106 is used to supply power to various components in the terminal. The power source 106 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 106 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Based on the above hardware structure, embodiments of the present invention are proposed.
Referring to fig. 2, fig. 2 is a flowchart illustrating a video search method according to a first embodiment of the present invention, where the video search method includes at least the following steps:
step S20: and acquiring a text search request.
In this embodiment, the text search request is characterized by a text search request initiated by a user who wants to watch a certain video, where the text search request includes information associated with the video, and the text in the text search request is chinese, for example, the text search request is "i want to watch a movie in liudeluxe".
In this embodiment, a video that the user wants to watch does not exist in the main video interface, so that the user actively initiates a text search request; or, a video which the user wants to watch exists in the video main interface, but the user thinks that the search is slow, so that the user actively initiates a text search request; in practical application, the method can be flexibly adjusted according to specific application scenes.
In some examples, the text search request may be obtained based on the received voice information by receiving the voice information. It will be appreciated that in some scenarios, it may not be convenient for a user to enter textual information to initiate a text search request; for example, when the terminal is an intelligent television, a user may not conveniently input characters through a television remote controller, and therefore, the user directly issues voice information, and the voice information is received by a voice module of the intelligent television, so that a text search request is obtained from the received voice information, specifically, an identification text is obtained by identifying the received voice information, and the identification text at this time is the text search request.
In some examples, the text search request may be obtained based on the received text information by receiving the text information. It is understood that the user may directly input the text information to initiate the text search request, so that the text search request may be directly obtained from the received text information.
Step S21: a target search term is determined based on the text search request.
In this embodiment, the target search word represents valid word information in the text search request, for example, if the text search request is "i want to see liudeluxe movie", the target search word is "liudeluxe" or "movie". It should be noted that, in this embodiment, one or more target search terms determined based on the text search request may be provided, where a plurality of the target search terms is at least two, and in practical application, the target search terms may be flexibly adjusted according to a specific application scenario.
In this embodiment, the step of determining the target search term based on the text search request may include at least the following steps:
firstly, obtaining a search word from a text search request;
then, judging whether the search word meets a preset error condition or not;
if so, correcting the search words meeting the preset error conditions according to preset error correction rules, and determining the search words after error correction as target search words;
and if not, determining the search word as the target search word.
It can be understood that, in this embodiment, the search term is obtained from the text search request, and whether the search term meets the preset error condition can be determined; the preset error condition may be an input error or a recognition error, and specifically, the input error and the recognition error may be a misprinted word error and/or a grammar error, and the like, and accordingly, the preset error correction rule may be matched with the preset error condition, and correct the misprinted word error to a correct word when the misprinted word error is detected, and correct the grammar error to a correct grammar when the grammar error is detected. For example, an example of an input error is that the user inputs a text message "i want to see a movie in liu de hua", accordingly, the search terms obtained from the text search request are "liu de hua" and "movie", obviously, the search term "liu de hua" is in error, and the search term "liu de hua" should be correct; for example, a recognition error example is given, the user inputs voice information a, a text search request "i want to see the talk show" is obtained based on the voice information a, accordingly, the search word obtained from the text search request is "talk show", and obviously, the search word "talk show" is in error, which is correct and should be "talk show". Therefore, in this embodiment, when it is determined that there is an error in a search term, the search term can be corrected to be a correct search term, so that the accuracy of determining the target search term and the target search dimension to which the target search term belongs is improved.
For a better understanding, a specific example is described herein; for example, if the text search request is "i want to see a drama in popm", first, a search word 1 "popm" and a search word 2 "drama" are obtained from the text search request, and then, whether the search word 1 and the search word 2 are wrong or not is sequentially judged, obviously, the search word 1 is wrong, the search word 1 is corrected, the search word 1 is a "poplyth" after the correction is performed, and is taken as a target search word, and the search word 2 is correct, and then, the search word 2 "drama" is directly taken as a target search word.
It should be noted that, this is only a specific example, and in practical applications, the flexible adjustment can be made according to specific application scenarios.
It should be clear that, in the present embodiment, the search term is corrected according to a preset database, where the preset database stores relevant information of each video, such as actor names, video showing time, video types, and the like.
In this embodiment, obtaining the search term from the text search request may include at least the following steps:
firstly, acquiring each search word from a text search request;
then, combining the search words to form search words;
thirdly, judging whether each search word can not be combined to form a search word;
if so, filling the search words which cannot form the search words to form the search words, and taking the filled search words as the search words;
and if not, taking the search word formed by combination as the search word.
It can be understood that, in this embodiment, each search word is obtained from the text search request, and then each search word is combined to form a search word, so that whether each search word cannot be combined to form a search word can be determined; the search word that cannot be combined to form a search word may be a user input omission or may also be an identification error, for example, an input omission example is that a user inputs a text message "i want to see an animation film black cat alert", accordingly, the search words obtained from the text search request are respectively "moving", "drawing", "film", "black", "cat", "alert", obviously, the search words "moving", "drawing", and "film" may be combined to form a search word "animation", and the search words "black", "cat", and "alert" cannot be combined to form a search word, which should be correctly "black cat long"; for example, a wrong recognition example is recognized, a user inputs voice information a, a text search request "i want to see a slot congress" is obtained based on the voice information a, accordingly, search words obtained from the text search request are respectively "slot", "big", and "congress", obviously, the search words "slot", "big", and "congress" cannot be combined to form a search word, and the correct word is "spitting slot congress". Therefore, in this embodiment, when it is determined that there is a search word that cannot be combined to form a search word, the search word may be filled in to be a correct search word, so as to improve the accuracy of determining the target search word and the target search dimension to which the target search word belongs.
For a better understanding, a specific example is described herein; for example, if the text search request is "i want to watch a movie of a week", first, a search word 1 "week", a search word 2 "star", a search word 3 "electricity", and a search word 4 "movie" are obtained from the text search request, then, the search word 1, the search word 2, the search word 3, and the search word 4 are sequentially combined, and it is determined whether the search word 1, the search word 2, the search word 3, and the search word 4 can be combined to form a search word, obviously, the search word 1 and the search word 2 cannot be combined to form a search word, the search word 1 and the search word 2 are filled, the filled search word 1 is "week star" and is used as a target search word, the search word 3 and the search word 4 can be combined to form a search word 2 "movie", and the search word 2 "movie" is directly used as a target search word.
It should be noted that, this is only a specific example, and in practical applications, the flexible adjustment can be made according to specific application scenarios.
It should be noted that in the present embodiment, the search words are usually combined according to the adjacent order of the words in the text search request, for example, in the above example, the search word 1 "week", the search word 2 "star", the search word 3 "power", and the search word 4 "shadow" are acquired, and the combination may be "week star", "star power", and "movie", instead of "week power", "week shadow", and "star shadow".
It should be understood that, in the present embodiment, the search word may be populated according to a preset database, where the preset database stores relevant information of each video, such as actor names, video showing time, video types, and the like.
It should be noted that, in this embodiment, the accuracy of the determined target search term is ensured by correcting the erroneous search term, so as to improve the accuracy of video search; in the embodiment, the missing search words are filled, so that the accuracy of the determined target search words is ensured, and the accuracy of video search is improved.
Step S22: and determining a target search dimension corresponding to the target search word.
In this embodiment, the step of determining the target search dimension corresponding to the target search term may include at least the following steps:
determining a target search dimension corresponding to a target search word from a preset search word-dimension table; the preset search term-dimension table stores a plurality of target search terms and target search dimensions corresponding to the target search terms respectively.
It should be clear that, in this embodiment, a preset search term-dimension table is stored in advance, where a plurality of target search terms and target search dimensions corresponding to the plurality of target search terms are stored in the preset search term-dimension table; see, for example, table one, which is an exemplary pre-set search term-dimension table.
Watch 1
Search term Dimension (d) of
Liu De Hua, Yang Fang, Zhou xing Chi …. Name of actor
Film, TV play and comprehensive art … … Type (B)
…… ……
It can be understood that, in this embodiment, after the target search term is determined, the target search dimension corresponding to the target search term can be searched in the preset search term-dimension table; for example, setting and determining the target search word "Liu Dehua", and according to the table I, determining the target dimension corresponding to the target search word "Liu Dehua" as the name of the actor; and setting and determining the target search term 'movie', and determining the target dimension corresponding to the target search term 'movie' as 'type' according to the table I.
It should be noted that the table one is only an example of a preset search term-dimension table, and in practical applications, the table one can be flexibly adjusted according to specific application scenarios.
Step S23: and performing video search according to the target search word and the target search dimension corresponding to the target search word.
In this embodiment, the step of performing video search according to the target search term and the target search dimension corresponding to the target search term may include at least the following steps:
firstly, distributing corresponding Query Handle querier for target search words and target search dimensions corresponding to the target search words respectively to generate Query Handle Query sentences; wherein, the variables in the Query Handle Query statement are target search dimensions, and the values corresponding to the variables are target search words;
then, generating a target Query statement according to the Query Handle Query statement;
and executing the target query statement to realize video search.
It should be clear that, in this embodiment, after the target search term and the target search dimension corresponding to the target search term are determined, a corresponding Query Handle querier may be allocated to the target search term, so as to generate a Query Handle Query statement. It can be understood that Handle is a thread processing mechanism of Java, which is used to send and receive information and implement execution function codes according to matching of the information, and Query is a Query key of an ElasticSearch index repository.
For a better understanding, a specific example is described herein; for example, if a total of two target search terms and target search dimensions corresponding to the target search terms are set, where the target search term 1 is "liudeluxe", and the target search dimension corresponding to the target search term is "actor name", a PersonHandle querier is assigned to the target search term, so as to generate a PersonHandle query statement "PersonHandle: liu De Hua "; the target search term 2 is "movie", and the target search dimension corresponding to the target search term is "type", and then a MovieTypeHandle querier is allocated to the target search term, so that a MovieTypeHandle query statement "MovieTypeHandle" is generated: movies "; then, a target query sentence "search. rule1 (actor contains liudelw.) rule2 (channel type is movie)" is generated from the PersonHandle query sentence and the MovieTypeHandle query sentence; and then executing the target query statement to realize video search.
It should be noted that, this is only a specific example, and in practical applications, the flexible adjustment can be made according to specific application scenarios.
It should be noted that, in this embodiment, the video search dimension is freely combined based on Query Handle, so that the video search is more comprehensive and complete.
In the embodiment, the target search word is determined from the acquired text search request, and the target search dimension corresponding to the target search word is determined, so that the target search word and the target search dimension to which the target search word belongs are combined, more accurate video search is realized, the phenomenon that video search is only performed according to the keyword in the related technology is avoided, when the keyword is inaccurate or incomplete, the corresponding video cannot be searched, or a wrong video is searched, and the like, the accuracy of video search is improved, and the user experience satisfaction is better.
In the embodiment, the missing search words are filled, and the error search words are corrected, so that the accuracy of the determined target search words is ensured, and the accuracy of video search is further improved.
In the embodiment, the method and the device realize the free combination of video search dimensions by means of Query Handle, improve the comprehensiveness and the integrity of video search, and further improve the accuracy of video search.
Based on the first embodiment, a second embodiment of the video search method of the present invention is proposed; in this embodiment, after the step of performing video search according to the target search term and the target search dimension corresponding to the target search term, the video search method may further include at least the following steps:
if the video is searched successfully, playing the searched video;
and if the video searching fails, playing the videos in the historical searching record and/or the historical watching record.
It can be understood that, in the embodiment, two situations exist after the video search is performed according to the target search term and the target search dimension corresponding to the target search term; wherein:
the first condition is as follows:
if the corresponding video is searched, namely the video is searched successfully, the searched corresponding video can be played at the moment; for example, a target query sentence "search. rule1 (actor includes liude hua),. rule2 (channel type is movie)" is executed to perform video search, and the searched videos have "no lane", "no equisetum under the sky", "shivering", "chase dragon" and the like; and when a playing instruction of the user is received, the searched corresponding video can be played, or the searched corresponding video can be directly displayed and automatically played without waiting for the playing instruction of the user, so that the method is more intelligent and humanized.
Case two:
in some examples, if a corresponding video is not searched, that is, if the video is failed to be searched, the user may be notified that the current video search is failed, and the video in the historical search record is played; the videos in the history search record may be played, the video with the highest frequency of search in the history search record may be played, or the video searched most recently in the history search record may be played.
In some examples, if a corresponding video is not searched, that is, if the video is failed to be searched, the user may be notified that the current video search is failed, and the video in the history viewing record is played; the video in the history watching record may be played, the video with the most frequent watching in the history watching record may be played, or the video watched recently in the history watching record may be played.
Therefore, as the videos in the historical search records and/or the historical watching records are played, the possibility that the user wants to watch the videos to be played can be increased as much as possible under the condition of failed video search, the method is more intelligent and humanized, and the phenomenon that the satisfaction degree of the user experience is poor due to the fact that only the videos are played when the user fails in the current video search is avoided.
In the embodiment, the searched video is played when the video is searched successfully, and the videos in the historical search record and/or the historical watching record are played when the video is searched unsuccessfully, so that the method is more intelligent and humanized, and the experience satisfaction of the user is improved to a certain extent.
In addition, referring to fig. 3, an embodiment of the present invention further provides a video search apparatus based on the foregoing video search method, where the video search apparatus includes:
an obtaining module 30, configured to obtain a text search request;
a first determining module 31, configured to determine a target search term based on a text search request;
a second determining module 32, configured to determine a target search dimension corresponding to the target search term;
the search module 33 is configured to perform video search according to the target search term and the target search dimension corresponding to the target search term.
It should be noted that, in this embodiment, the video search apparatus further optionally includes other corresponding modules to implement the steps of the video search method.
The video search apparatus of the present invention employs all technical solutions of all the above embodiments, so that the present invention at least has all the beneficial effects brought by the technical solutions of the above embodiments, and details are not repeated herein.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a video search program is stored on the computer-readable storage medium, and when the video search program is executed by a processor, the steps of the video search method as described above are implemented.
The computer-readable storage media include volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage terminals, or any other medium which can be used to store the desired information and which can be accessed by a computer.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, and functional modules/units in the terminals disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing terminal), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A video search method, the video search method comprising:
acquiring a text search request;
determining a target search term based on the text search request;
determining a target search dimension corresponding to the target search term;
and performing video search according to the target search word and the target search dimension corresponding to the target search word.
2. The video search method of claim 1, wherein the step of obtaining a text search request comprises:
acquiring a text search request based on the received voice information;
or the like, or, alternatively,
and acquiring a text search request based on the received character information.
3. The video search method of claim 1, wherein the step of determining a target search term based on the text search request comprises:
obtaining a search word from the text search request;
judging whether the search word meets a preset error condition or not;
if so, correcting the search words meeting the preset error conditions according to preset error correction rules, and determining the search words after error correction as target search words;
and if not, determining the search word as a target search word.
4. The video search method of claim 3, wherein said step of obtaining search terms from said text search request comprises:
obtaining each search word from the text search request;
combining the search words to form search terms;
judging whether each search word can not be combined to form a search word;
if so, filling the search words which cannot form the search words to form the search words, and taking the filled search words as the search words;
and if not, taking the search word formed by combination as the search word.
5. The video search method of any of claims 1-4, wherein the step of determining a target search dimension to which the target search term corresponds comprises:
determining a target search dimension corresponding to the target search word from a preset search word-dimension table; the preset search term-dimension table stores a plurality of target search terms and target search dimensions corresponding to the target search terms respectively.
6. The video search method of any one of claims 1 to 4, wherein said step of performing a video search according to the target search term and a target search dimension corresponding to the target search term comprises:
distributing a Query Handle querier for the target search terms and target search dimensions corresponding to the target search terms to generate Query Handle Query sentences; wherein, the variables in the Query Handle Query statement are the target search dimensions, and the values corresponding to the variables are the target search terms;
generating a target Query statement according to the Query Handle Query statement;
and executing the target query statement to realize video search.
7. The video search method of any of claims 1-4, wherein after the step of performing a video search according to the target search term and a target search dimension corresponding to the target search term, the video search method further comprises:
if the video is searched successfully, playing the searched video;
and if the video searching fails, playing the videos in the historical searching record and/or the historical watching record.
8. A video search apparatus, comprising:
the acquisition module is used for acquiring a text search request;
a first determination module for determining a target search term based on the text search request;
the second determining module is used for determining a target search dimension corresponding to the target search word;
and the searching module is used for carrying out video searching according to the target searching words and the target searching dimensions corresponding to the target searching words.
9. A terminal, characterized in that the terminal comprises: memory, processor and a video search program stored on the memory and running on the processor, the video search program when executed by the processor implementing the steps of the video search method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a video search program which, when executed by a processor, implements the steps of the video search method according to any one of claims 1-7.
CN202011307495.4A 2020-11-19 2020-11-19 Video searching method and device, terminal and computer readable storage medium Pending CN112380386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011307495.4A CN112380386A (en) 2020-11-19 2020-11-19 Video searching method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011307495.4A CN112380386A (en) 2020-11-19 2020-11-19 Video searching method and device, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112380386A true CN112380386A (en) 2021-02-19

Family

ID=74585807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011307495.4A Pending CN112380386A (en) 2020-11-19 2020-11-19 Video searching method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112380386A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868519A (en) * 2021-09-18 2021-12-31 北京百度网讯科技有限公司 Information searching method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868519A (en) * 2021-09-18 2021-12-31 北京百度网讯科技有限公司 Information searching method and device, electronic equipment and storage medium
CN113868519B (en) * 2021-09-18 2023-11-14 北京百度网讯科技有限公司 Information searching method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10200763B2 (en) Video-based interaction method, terminal, server and system
US10448082B2 (en) Information exchanging method and device, audio terminal and computer-readable storage medium
CN104066009B (en) program identification method, device, terminal, server and system
KR102338918B1 (en) Method, device and storage medium for training machine translation model
CN104159136A (en) Interaction information acquisition method, terminal, server and system
CN108933968A (en) A kind of conversion method of message format, device, storage medium and android terminal
CN109275005A (en) A kind of combination button remote control method, device, equipment and storage medium
CN112380386A (en) Video searching method and device, terminal and computer readable storage medium
CN105718356A (en) Device and method for counting electric energy use time
CN111625690B (en) Object recommendation method, device, equipment and medium
CN111916084A (en) Smart home voice control method and device, equipment and storage medium
CN112840305B (en) Font switching method and related product
CN111708912A (en) Video conference record query processing method and device
CN113782004B (en) Man-machine voice interaction testing method and device, computer equipment and storage medium
CN109005469A (en) A kind of conversion method of message format, device, storage medium and android terminal
CN113779934B (en) Multi-mode information extraction method, device, equipment and computer readable storage medium
CN115834558A (en) Updating packet checking method, device and equipment based on vehicle-mounted application and storage medium
CN113242453B (en) Barrage playing method, server and computer readable storage medium
CN112764603B (en) Message display method and device and electronic equipment
US20170171269A1 (en) Media content playback method, apparatus and system
CN112351345A (en) Control method and device of recommended content, smart television and storage medium
CN103425510B (en) A kind of method and device of interactive upgrading
CN108174308B (en) Video playing method, video playing device, storage medium and electronic equipment
CN113360705B (en) Data management method and data management device
CN114064739B (en) Marking optimization method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination