CN112667852B - Video-based searching method and device, electronic equipment and storage medium - Google Patents

Video-based searching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112667852B
CN112667852B CN202011603869.7A CN202011603869A CN112667852B CN 112667852 B CN112667852 B CN 112667852B CN 202011603869 A CN202011603869 A CN 202011603869A CN 112667852 B CN112667852 B CN 112667852B
Authority
CN
China
Prior art keywords
information
video
target video
search
page
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.)
Active
Application number
CN202011603869.7A
Other languages
Chinese (zh)
Other versions
CN112667852A (en
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011603869.7A priority Critical patent/CN112667852B/en
Publication of CN112667852A publication Critical patent/CN112667852A/en
Application granted granted Critical
Publication of CN112667852B publication Critical patent/CN112667852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure relates to a video-based searching method, a video-based searching device, electronic equipment and a storage medium. The method comprises the following steps: responding to an operation instruction of opening an application program, opening a first page, and reading a target video in a local preset storage space; displaying search prompt information corresponding to the target video on the first page; and detecting a search instruction aiming at the search prompt information, responding to the search instruction, acquiring a search result corresponding to the target video, and switching to a second page containing the search result. After receiving videos shared by other users and storing the videos in a local preset storage space, or after downloading the videos in the local preset storage space, the user can pop up information related to the videos on the current page as information to be searched through the operation of opening an application program, so that the efficiency of obtaining search results corresponding to the pre-stored videos is improved.

Description

Video-based searching method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of search technologies, and in particular, to a video-based search method, apparatus, electronic device, and storage medium.
Background
The user can obtain videos shared by others (hereinafter also referred to as "shared videos") through social software or a social platform, and then open the shared videos through corresponding application programs, or search information such as author pages of the shared videos through the application programs.
In the existing process of searching information such as an author page based on a video, a user needs to firstly capture a two-dimensional code page in the video, and then obtains and displays a corresponding search result by identifying the two-dimensional code capture.
The method requires a plurality of operation steps of a user, and the efficiency of obtaining the corresponding search results is low.
Disclosure of Invention
In order to solve the technical problems, the present disclosure provides a video-based searching method, a device, an electronic device and a storage medium, and the technical scheme is as follows:
in a first aspect, a video-based search method is provided, including:
responding to an operation instruction of opening an application program, opening a first page, and reading a target video in a local preset storage space;
displaying search prompt information corresponding to the target video on the first page;
and detecting a search instruction aiming at the search prompt information, responding to the search instruction, acquiring a search result corresponding to the target video, and switching to a second page containing the search result.
In one embodiment, the preset storage space is an album, and before the target video in the local preset storage space is read, the method further includes:
obtaining access rights to a local storage space;
and if the access right contains the access right to the album, executing the step of reading the target video in the album.
In one embodiment, the target video is one video stored in the album with the latest time; the reading of the target video in the album comprises the following steps:
and sequentially reading at least one file in the album based on the sequence of the storage time from near to far until the read file is video.
In one embodiment, the displaying, on the first page, search prompt information corresponding to the target video includes:
displaying a floating layer on the first page, wherein the floating layer comprises an image corresponding to the target video and abstract information of information to be searched; and obtaining the information to be searched based on preset information contained in the target video.
In one embodiment, after the floating layer is displayed on the first page, the method further includes:
counting the display duration of the floating layer;
And hiding the floating layer if the display duration reaches the preset duration.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes author information corresponding to the target video; before the search prompt information corresponding to the target video is displayed on the first page, the method further comprises:
acquiring at least one of a two-dimensional code and a watermark contained in the target video; the two-dimensional code and the watermark are generated based on the author information of the target video;
and identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video, wherein the author information is used as information to be searched.
In one embodiment, the obtaining the two-dimensional code included in the target video includes:
reading a video frame of a set position of the target video, wherein the video frame of the set position comprises the two-dimensional code;
and acquiring the two-dimensional code contained in the video frame.
In one embodiment, the identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video includes:
sending a first identification request to a server; the first identification request comprises at least one of the two-dimensional code and the watermark, and the first identification request is used for indicating the server to identify the at least one of the two-dimensional code and the watermark and returning an identification result;
And receiving the identification result returned by the server to obtain the author information of the target video.
In one embodiment, the identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video includes:
identifying a two-dimensional code contained in the target video to obtain first author information; identifying the watermark contained in the target video to obtain second author information;
comparing the first author information with the second author information; and if the first author information and the first author information are consistent, determining that the first author information is the author information.
In one embodiment, after comparing the first author information and the second author information, the method further includes:
if the two codes are inconsistent, acquiring the two-dimensional code identification accuracy and the watermark identification accuracy;
and determining the higher one of the two-dimensional code recognition accuracy and the watermark recognition accuracy, and acquiring first author information or second author information corresponding to the higher one as the author information.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes author information corresponding to the target video; the response to the search instruction, obtaining the search result corresponding to the target video, and switching to a second page containing the search result, includes:
Responding to the search instruction, searching based on the author information, and acquiring account information corresponding to the author information;
and switching to a second page containing the account information.
In one embodiment, the responding to the search instruction, searching based on the author information, and obtaining account information corresponding to the author information includes:
responding to the search instruction, sending a first search request to a server, and receiving information returned by the server for the first search request to obtain account information corresponding to the author information; the first search request comprises the author information; the first search request is used for indicating the server to acquire account information corresponding to the author information and returning the account information.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes content information corresponding to the target video, and before the search prompt information corresponding to the target video is displayed on the first page, the method further includes:
acquiring at least one video frame of the target video;
and identifying the at least one video frame to obtain the content information of the target video as the information to be searched.
In one embodiment, the identifying the at least one video frame to obtain the content information of the target video includes:
and determining a reference video matched with the at least one video frame in a video database, and acquiring a content tag corresponding to the reference video to obtain content information corresponding to the target video.
In one embodiment, the determining the reference video matching the at least one video frame in the video database, and obtaining the content tag corresponding to the reference video includes:
sending a second identification request to the service; the second identification request comprises the at least one video frame, and is used for indicating the server to query a video database, determining a reference video matched with the at least one video frame, acquiring a content tag corresponding to the reference video and returning;
and receiving a content label corresponding to the reference video returned by the server.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes content information corresponding to the target video; the response to the search instruction, obtaining the search result corresponding to the target video, and switching to a second page containing the search result, includes:
Responding to the search instruction, and acquiring a recommended video corresponding to the target video based on the content information of the target video;
and switching to a second page containing the recommended video.
In one embodiment, the responding to the search instruction, based on the content information of the target video, obtains a recommended video corresponding to the target video, including:
responding to the search instruction, sending a second search request to a server, and receiving video information returned by the server aiming at the second search request to obtain recommended video corresponding to the content information; the second search request comprises the content information; the third search request is used for indicating the server to acquire the video corresponding to the content information and returning the video.
In a second aspect, a video-based search method is provided, including:
receiving a search request of an application program, and acquiring information to be searched corresponding to a target video carried by the search request; the target video is a video read from a preset storage space of local equipment where a first page is opened when the application program responds to an operation instruction for opening the application program;
And obtaining a search result corresponding to the information to be searched, and returning the search result so that the application program can be switched to a second page containing the search result.
In one embodiment, the information to be searched is obtained based on at least one of a two-dimensional code, a watermark and a video frame contained in the target video; before receiving the search request of the application program, the method further comprises the following steps:
responding to an identification request of the application program, identifying at least one of the two-dimensional code, the watermark and the video frame carried in the identification request, and taking an identification result as information to be searched corresponding to the target video;
and returning the information to be searched to the application program so that the application program can display search prompt information containing the information to be searched on the first page.
In one embodiment, the information to be searched corresponding to the target video includes at least one of author information and content information of the target video; the searching result corresponding to the information to be searched is obtained, and the searching result is returned, wherein the searching result comprises at least one of the following items:
acquiring account information corresponding to the author information of the target video, and returning the account information;
And acquiring a recommended video corresponding to the content information, and returning the recommended video.
In a third aspect, a video-based search apparatus is provided, comprising:
a storage space reading unit configured to execute an operation instruction in response to an opening application program, open a first page, and read a target video in a local preset storage space;
the search prompt unit is configured to execute search prompt information corresponding to the target video displayed on the first page;
and the search result display unit is configured to execute a search instruction for the search prompt information, respond to the search instruction, acquire a search result corresponding to the target video and switch to a second page containing the search result.
In one embodiment, the preset storage space is an album, and the storage space reading unit is further configured to perform:
obtaining access rights to a local storage space;
and if the access right contains the access right to the album, executing the step of reading the target video in the album.
In one embodiment, the target video is one video stored in the album with the latest time; the memory space reading unit is further configured to perform:
And sequentially reading at least one file in the album based on the sequence of the storage time from near to far until the read file is video.
In one embodiment, the search prompting unit is configured to perform:
displaying a floating layer on the first page, wherein the floating layer comprises an image corresponding to the target video and abstract information of information to be searched; and obtaining the information to be searched based on preset information contained in the target video.
In one embodiment, the search prompting unit is configured to perform:
counting the display duration of the floating layer;
and hiding the floating layer if the display duration reaches the preset duration.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes author information corresponding to the target video;
the apparatus further includes a first information to be searched acquisition module configured to perform:
acquiring at least one of a two-dimensional code and a watermark contained in the target video; the two-dimensional code and the watermark are generated based on the author information of the target video;
and identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video, wherein the author information is used as information to be searched.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
reading a video frame of a set position of the target video, wherein the video frame of the set position comprises the two-dimensional code;
and acquiring the two-dimensional code contained in the video frame.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
sending a first identification request to a server; the first identification request comprises at least one of the two-dimensional code and the watermark, and the first identification request is used for indicating the server to identify the at least one of the two-dimensional code and the watermark and returning an identification result;
and receiving the identification result returned by the server to obtain the author information of the target video.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
identifying a two-dimensional code contained in the target video to obtain first author information; identifying the watermark contained in the target video to obtain second author information;
comparing the first author information with the second author information; and if the first author information and the first author information are consistent, determining that the first author information is the author information.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
if the two codes are inconsistent, acquiring the two-dimensional code identification accuracy and the watermark identification accuracy;
and determining the higher one of the two-dimensional code recognition accuracy and the watermark recognition accuracy, and acquiring first author information or second author information corresponding to the higher one as the author information.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes author information corresponding to the target video; the search result presentation unit is configured to perform:
responding to the search instruction, searching based on the author information, and acquiring account information corresponding to the author information;
and switching to a second page containing the account information.
In one embodiment, the search result presentation unit is configured to perform:
responding to the search instruction, sending a first search request to a server, and receiving information returned by the server for the first search request to obtain account information corresponding to the author information; the first search request comprises the author information; the first search request is used for indicating the server to acquire account information corresponding to the author information and returning the account information.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes content information corresponding to the target video;
the apparatus further includes a second information to be searched acquisition module configured to perform:
acquiring at least one video frame of the target video;
and identifying the at least one video frame to obtain the content information of the target video as the information to be searched.
In one embodiment, the second information to be searched obtaining module is further configured to perform:
and determining a reference video matched with the at least one video frame in a video database, and acquiring a content tag corresponding to the reference video to obtain content information corresponding to the target video.
In one embodiment, the second information to be searched obtaining module is further configured to perform:
sending a second identification request to the service; the second identification request comprises the at least one video frame, and is used for indicating the server to query a video database, determining a reference video matched with the at least one video frame, acquiring a content tag corresponding to the reference video and returning;
And receiving a content label corresponding to the reference video returned by the server.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes content information corresponding to the target video; the search result presentation unit is configured to perform:
responding to the search instruction, and acquiring a recommended video corresponding to the target video based on the content information of the target video;
and switching to a second page containing the recommended video.
In one embodiment, the search result presentation unit is configured to perform:
responding to the search instruction, sending a second search request to a server, and receiving video information returned by the server aiming at the second search request to obtain recommended video corresponding to the content information; the second search request comprises the content information; the third search request is used for indicating the server to acquire the video corresponding to the content information and returning the video.
In a fourth aspect, there is provided a video-based search apparatus comprising:
the request receiving module is configured to execute a search request of a receiving application program and acquire information to be searched corresponding to a target video carried by the search request; the target video is a video read from a preset storage space of local equipment where a first page is opened when the application program responds to an operation instruction for opening the application program;
And the searching and returning module is configured to execute and acquire the searching result corresponding to the information to be searched, and return the searching result so that the application program can be switched to a second page containing the searching result.
In one embodiment, the information to be searched is obtained based on at least one of a two-dimensional code, a watermark and a video frame contained in the target video; the apparatus further comprises:
the identification module is configured to execute an identification request responding to the application program, identify at least one of the two-dimensional code, the watermark and the video frame carried in the identification request, and take an identification result as information to be searched corresponding to the target video;
the identification result returning module is configured to execute returning of the information to be searched to the application program so that the application program can display search prompt information containing the information to be searched on the first page.
In one embodiment, the information to be searched corresponding to the target video includes at least one of author information and content information of the target video; the search and return module is configured to perform one of:
acquiring account information corresponding to the author information of the target video, and returning the account information;
And acquiring a recommended video corresponding to the content information, and returning the recommended video.
In a fifth aspect, there is provided an electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video-based search method of any one of the first or second aspects.
In a sixth aspect, there is provided a storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the video-based search method of any one of the first or second aspects.
In a seventh aspect, a computer program product is provided, the program product comprising a computer program stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, causing the device to perform the video-based search method as described in any one of the embodiments of the first or second aspects.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
responding to an operation instruction of a user for opening an application program, and simultaneously, accessing a local preset storage space to read a target video stored in advance, and displaying search prompt information corresponding to the target video on the first page; and responding to a search instruction of a user aiming at the search prompt information, acquiring a search result corresponding to the target video, and switching to a second page containing the search result, so that the search result related to the pre-stored target video can be obtained quickly. Based on the technical scheme, after the user receives the video shared by other users and stores the video in the local preset storage space, or downloads the video to the local preset storage space, the information related to the video can be popped up on the current page through the operation of opening the application program, so that the user can confirm whether the information related to the video needs to be searched, if the user confirms to search, the search result related to the video can be checked, the process user does not need to execute a plurality of operations such as video screenshot, starting the video identification function of the application program, inputting information to be searched and the like, and the efficiency of obtaining the video shared by other users or the search result information corresponding to the downloaded video is improved.
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 disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is an application environment diagram illustrating a video-based search method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a video-based search method according to an exemplary embodiment.
FIG. 3 is a page skip schematic of a video-based search method, according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating obtaining author information based on a two-dimensional code and a watermark, according to an example embodiment.
Fig. 5 is a schematic diagram illustrating an interaction flow of a client and a server according to another exemplary embodiment.
Fig. 6 is a flowchart illustrating a server-side video-based search method according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a video-based search apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a server-side video-based search apparatus according to an exemplary embodiment.
Fig. 9 is an internal structural diagram of an electronic device, which is shown according to an exemplary embodiment.
Fig. 10 is an internal structural diagram of another electronic device shown according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The data and information referred to in this disclosure may be data and information authorized by the user or sufficiently authorized by the parties.
In order to realize the information search related to the shared video, the shared video needs to be opened in the related technology, and the main ways for opening the shared video at present include three ways: firstly, opening the app inside by publishing the shared video; secondly, calling an app external channel (such as a webpage, an applet and the like) on the receiving interface of the shared video, and opening the app external channel; thirdly, the shared video is stored and opened through other local video playing application programs. The operation process of the scheme for opening the shared video in the app comprises the following steps: 1. when a user downloads a video, capturing a two-dimensional code picture in the video and storing the two-dimensional code picture; 2. the user opens the app and clicks to enter the sweep-one module; 3. clicking the album under the scanning module, finding out the stored two-dimensional code screenshot from the album, and clicking for confirmation; 4. and the scanning module identifies the two-dimensional code screenshot and opens the corresponding video.
After the shared video is opened, if a video author or related works need to be searched, a user needs to perform further operations to enter a corresponding author homepage or work page. Therefore, the existing searching method based on the shared video requires a plurality of operation steps of the user, and the efficiency of obtaining the searching result corresponding to the shared video is low.
The video-based searching method provided by the disclosure can be applied to electronic equipment, an application program is installed in the electronic equipment, and after a user pre-stores video in a local preset storage space, if the user opens the application program, related searching can be performed based on the pre-stored video. The electronic device may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers.
The application may be a client application (hereinafter also simply referred to as an application), and correspondingly, in the application environment shown in fig. 1, the electronic device 100 also interacts with the server 200 through a network. The application program can be a community application program, such as a short video APP, through which a user can issue personal videos or browse videos issued by others; after the user pre-stores the video in the local preset storage space, when the client is opened again, the application program can acquire the pre-stored video information after the user is fully authorized, and the relevant search of the video is realized through the server 200. Wherein the server 200 may be, but is not limited to being, implemented as a stand-alone server or as a server cluster composed of multiple servers.
Fig. 2 is a flowchart illustrating a video-based search method for a pre-installed application in an electronic device, which may be a client application or a non-client application, as shown in fig. 2, according to an exemplary embodiment, the method comprising the following steps.
Step 301, responding to an operation instruction of opening an application program, opening a first page, and reading a target video in a local preset storage space.
In the present disclosure, the first page that is opened includes, but is not limited to, a specific content page, a personal homepage corresponding to the user, or other preset pages; and when the first page is opened, after the application program is fully authorized by the user, the target video in the preset storage space of the electronic equipment can be read.
The operation instruction for opening the application program may include an operation instruction for triggering the application program to start and run, and may also be an operation instruction for triggering the application program to switch from the background running to the front-end running of the electronic device. Specifically, the form of the operation instruction includes a contact or non-contact operation instruction, wherein the contact operation instruction includes, but is not limited to, a touch operation instruction, and the non-contact operation instruction includes, but is not limited to, a voice operation instruction.
The preset storage space may be any storage space pre-configured in the electronic device, such as a cache space corresponding to an application program. Correspondingly, before the step, under the condition that the user is fully authorized, the access relation between the application program and the local preset storage space can be preconfigured, so that under the condition that an operation instruction for opening the application program is received, the preset storage space can be accessed in addition to the related page opening, and the target video in the preset storage space can be read.
Wherein, the target video refers to a video which can be opened by the application program, including but not limited to a video published by the application program. In practical applications, conditions corresponding to the target video may be preset, for example, a storage time condition, a video format condition, a video content condition, and the like. The target video corresponding to the storage time condition can be one or more videos with the latest storage time in a preset storage space; the target video corresponding to the video format condition can be a video of which the video format in the preset storage space belongs to the video format issued by the application program; the target video corresponding to the video content condition may be a video containing a specific content in the video content in the preset storage space, for example, a video including a two-dimensional code. It can be appreciated that the conditions corresponding to the preset target videos can be used for determining the target videos independently or in any combination.
As an example, in response to an operation instruction of opening an application program by a user, a first page of the application program is opened, a local preset storage space is accessed, videos in the preset storage space are read according to a sequence from near to far in storage time, if a specific position (for example, a head frame or a tail frame) of the currently read video contains a two-dimension code, the currently read video is used as the target video, if the specific position of the currently read video does not contain the two-dimension code, the next video is continuously read until the number of the read videos reaches a set number (for example, 3 videos with the latest storage time), if the target video is not found, no subsequent step is needed to be executed, and no other videos are read, so that resource waste caused by continuous reading of the preset storage space by the application program in the background is avoided.
And 302, displaying search prompt information corresponding to the target video on the first page.
In the disclosure, search prompt information corresponding to the target video is displayed on the first page, and is mainly used for feeding back to a user, indicating that relevant information identifying the pre-stored target video exists currently, and prompting the user whether to perform corresponding search operation on the target video. Based on this, the search prompt information corresponding to the target video may be any information that can play the role described above, including but not limited to a prompt window, a prompt text, a prompt picture, or the like.
Step 303, detecting a search instruction aiming at the search prompt information, responding to the search instruction, obtaining a search result corresponding to the target video, and switching to a second page containing the search result.
The search instruction for the search prompt information may be an operation instruction of a user on a search control of an application program, or may be an operation instruction of a user on the search prompt information, for example, dragging the search prompt information to a set position, pressing the search prompt information for a long time, and the like.
In this disclosure, the information in the second page is associated with the target video presence.
Through the embodiment, when the user executes the operation instruction for opening the application program, the application program responds to the operation instruction of the user to open the corresponding first page, and under the condition that the user is fully authorized, the user can access the local preset storage space to read the target video stored in advance, and the search prompt information corresponding to the target video is displayed on the first page; and responding to a search instruction of the user aiming at the search prompt information, acquiring a search result corresponding to the target video, and switching to a second page containing the search result, so that the search result related to the pre-stored target video can be obtained quickly. Based on the scheme, after the user receives the video shared by other users and stores the video in the local preset storage space, or downloads the video to the local preset storage space, the information related to the video can be popped up on the current page through the operation of opening the application program, so that the user can confirm whether the information related to the video needs to be searched, if the user confirms to search, the search result related to the video can be checked, multiple operations such as video screenshot execution, video identification function of starting the application program, information to be searched and the like are not needed, and the efficiency of acquiring the video shared by other users or the search result information corresponding to the downloaded video is improved.
In an exemplary embodiment, the preset storage space is an album, and the step of confirming the access right includes: obtaining access rights to a local storage space; and if the access right contains the access right to the album, executing the step of reading the target video in the album.
In the disclosure, a user may set access rights of an application program to an electronic device, including setting access rights of the application program to a camera, a microphone, an album, and the like of the electronic device, and may set different access rights of the application program for different storage spaces of the electronic device.
In this embodiment, when the application program responds to an opening operation instruction of the user and opens a first page of the application program, it is checked whether the application program has permission to access a preset storage space of the electronic device, for example: and if the permission of the album exists, the preset storage space can be read to read the target video stored in the preset storage space, if the permission does not exist, the preset storage space is not accessed, the related searching operation is not executed, and the application program normally responds to other operations of the user.
In one exemplary embodiment, the target video is one of the videos stored in the album that has been most recently stored in time; in step 301, reading a target video in an album includes: and sequentially reading at least one file in the album based on the sequence of the storage time from near to far until the read file is video.
In the present disclosure, files stored in an album may include pictures or videos, etc., and a user may set the number of files allowed to be read in the album. In one case, it may be configured to read only one file stored in the album that has the latest time, and if the file is not video, no subsequent steps are performed, and no other functions of the application program are affected. In another case, the number of files which the application program is allowed to read in the album can be set to be a plurality of, if the current read file is video, the file is not read backwards, and if the current read file is not video and the number of the read files does not exceed the set number, the next file is read; if the files with the latest storage time and the set number are not videos, reading of other files is stopped, and subsequent steps are not executed, so that other functions of the application program are not affected. The user may also set up to allow the application to read a greater number of files in the album until the video is read.
According to the method and the device for obtaining the shared video, after the shared video sent by other users is received by the users, the users store the shared video in the album, if the users open the corresponding application programs, the application programs can read the video stored recently by the users in the album when responding to the opening operation instruction of the users and open the first page, so that the search result corresponding to the video is obtained, and the users skip to the second page containing the search result, so that the information search for the shared video is rapidly achieved based on the application programs, the user operation steps are fewer, the efficiency of obtaining the search result corresponding to the shared video is higher, and the resource cost is not obviously increased because only one video with the latest storage time is read.
In an exemplary embodiment, displaying, on the first page, search prompt information corresponding to the target video, including:
displaying a floating layer on the first page, wherein the floating layer comprises an image corresponding to the target video and information to be searched; and obtaining the information to be searched based on preset information contained in the target video.
In the disclosure, the display position of the floating layer may be any position on the first page, and the display size of the floating layer may be set smaller than the display size of the first page, so that on one hand, a user is provided with a reminder, and on the other hand, the display of the floating layer does not obstruct too much display content of the first page.
The image corresponding to the target video may be an image representing the target video, for example: the cover image, based on the image displayed in the float layer, the user can know which video the current float layer is the search hint for.
As an alternative display manner, in response to an operation instruction of opening an application program, the corresponding interface display refers to (a) in fig. 3, after opening the first page, the interface schematic diagram showing the floating layer on the first page may refer to (b) in fig. 3, and the floating layer 402 is shown near the search control 401 of the first page, including the cover image of the target video, and further includes summary information of information to be searched (if the information to be searched is author information of the target video, the corresponding summary information may be "search author", and if the information to be searched is content information of the target video, the corresponding summary information may be "search similar video"), so as to remind the user whether to search for the author or the content of the corresponding video. Taking a search author as an example, when a search command triggered by a user to the search control 401 in a first page or the floating layer 402 is detected, responding to the search command, acquiring a search result corresponding to the author information of the target video, and switching to a second page containing the search result, namely switching from (b) in fig. 3 to (c) in fig. 3; the user may perform further operations based on the second page to obtain more author-related information, such as clicking on the user information in the second page, and may jump to the user's corresponding profile page, as shown in fig. 3 (d).
In this embodiment, in response to an operation instruction of opening an application program by a user, a first page is opened, a target video stored in advance locally is obtained, and search prompt information corresponding to the target video is displayed in a floating layer manner. The floating layer is displayed on the first page, so that a user is reminded of whether to search for the target video, and if the user confirms the search, the search is executed again, so that the user is facilitated to use.
In an exemplary embodiment, after the floating layer is displayed on the first page, the method further includes:
counting the display duration of the floating layer; and hiding the floating layer if the display duration reaches the preset duration.
In the disclosure, after a floating layer is displayed on a first page, if a trigger operation instruction of a user on a search function of an application program is received, a search result corresponding to the target video is obtained, and the second page containing the search result is switched, and if the trigger operation instruction of the search function of the application program is not received, the floating layer disappears after a preset duration. Alternatively, the user may directly choose to close the float layer, such as: click-close, or slide-close, etc.
In an exemplary embodiment, the information to be searched corresponding to the target video may be author information of the target video; before the floating layer is displayed on the first page, the method further comprises:
acquiring at least one of a two-dimensional code and a watermark contained in the target video; the two-dimensional code and the watermark are generated based on the author information of the target video;
and identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video, wherein the author information is used as the information to be searched.
In an exemplary embodiment, obtaining the two-dimensional code included in the target video includes: reading a video frame of a set position (such as a head frame or a tail frame) of the target video, wherein the video frame of the set position comprises a two-dimensional code; and acquiring the two-dimensional code contained in the video frame. For example, the two-dimensional code corresponding to the general author information is set in the last frame of the video, and the application program can directly read the last frame of the target video and acquire the two-dimensional code from the last frame; or, the video frame of the target video in the last 5 seconds can be read, and the two-dimensional code is obtained from the video frame of the last 5 seconds.
In the disclosure, an application program may perform identification of at least one of the two-dimensional code and the watermark to obtain author information of the target video; alternatively, the first identification request may be sent to the server; the first identification request comprises at least one of the two-dimensional code and the watermark, and the first identification request is used for indicating the server to identify the at least one of the two-dimensional code and the watermark and returning an identification result; and the application program receives the identification result returned by the server to obtain the author information of the target video.
In an exemplary embodiment, when the target video contains both the two-dimensional code and the watermark, the two-dimensional code and the watermark may be respectively identified, and mutual authentication may be performed based on the identification result, so as to obtain more accurate author information. Referring to fig. 4, the specific manner is as follows:
501, identifying a two-dimensional code contained in a target video to obtain first author information; and identifying the watermark contained in the target video to obtain second author information.
502, comparing the first author information with the second author information.
503, if the first author information and the first author information are consistent, determining that the first author information is the author information.
504, adapting the above steps, in an exemplary embodiment, if the two are inconsistent, obtaining the two-dimensional code recognition accuracy and the watermark recognition accuracy.
The identification may be performed locally by the application in step 501, or the identification may be performed by the server. It will be appreciated that the two-dimensional code recognition accuracy and watermark recognition accuracy may be determined based on historical recognition data records of the application or server.
505, determining the higher one of the two-dimensional code recognition accuracy and the watermark recognition accuracy, and acquiring first author information or second author information corresponding to the higher one as the author information.
In other embodiments, if the first author information and the second author information are inconsistent, the first author information or the second author information may be determined as the author information according to a default priority, so as to improve efficiency of obtaining the author information.
According to the method and the device, the two-dimensional code and the watermark contained in the target video are respectively identified, mutual verification is performed based on the identification result, and if the two are inconsistent, the author information corresponding to the two-dimensional code or the author information corresponding to the watermark with high identification accuracy can be used as the author information to be searched.
Further, if the author information is identified from the two-dimensional code and the watermark included in the target video, correspondingly, in an exemplary embodiment, a search result corresponding to the target video is obtained, and the second page including the search result is switched, including:
acquiring account information corresponding to the author information based on the author information search; and switching to a second page containing the account information. Wherein account information corresponding to the author information and a second page, refer to an example of (c) in fig. 3.
In the method, the search of the author related information of the target video stored in advance, such as searching the account information of the author, can be quickly realized, and the corresponding search result page is quickly entered. In addition, after obtaining the second page containing the search results, the user may further operate, e.g., click on account information, to enter an account profile page for the corresponding account, such as the example of (d) in FIG. 3.
The searching step may be performed locally in the application program, or the server may perform the searching step and return the search result, for example: sending a first search request to a server, and receiving information returned by the server for the first search request to obtain account information corresponding to the author information; the first search request comprises the author information; the first search request is used for indicating the server to acquire account information corresponding to the author information and returning the account information.
In an exemplary embodiment, the information to be searched displayed in the floating layer may also be content information corresponding to the target video, and before the floating layer is displayed on the first page, the method further includes:
acquiring at least one video frame of the target video;
and identifying the at least one video frame to obtain the content information of the target video as the information to be searched.
In this embodiment, one or more frames of the target video may be intercepted to perform search matching of the video database, where execution of the search matching may determine a reference video in the video database that matches with the at least one video frame by querying the video database, obtain a content tag corresponding to the reference video, and obtain content information corresponding to the target video based on the content tag. The video database is pre-stored with a plurality of videos, and each reference video corresponds to at least one content tag, and the at least one content tag is obtained based on content information contained in the reference video and can characterize the information characteristics of the content information contained in the reference video.
Through the embodiment, the author information of the target video is obtained based on the two-dimensional code, the watermark and the like, the search is performed based on the author information, the content information of the target video can be analyzed based on the video frame of the target video, and further more recommended videos similar to the content of the target video can be searched.
In an exemplary embodiment, searching based on content information of a target video to obtain a corresponding search result includes: responding to the search instruction, and acquiring a recommended video corresponding to the target video based on the content information of the target video; and switching to a second page containing the recommended video. Therefore, the video similar to the content of the target video can be quickly searched, and the recommended video similar to the target video can be recommended to the user.
In a specific scenario, when the application is a client of a short video class, fig. 5 is a flowchart showing interaction between the client and the server of a video-based search method according to an exemplary embodiment, as shown in fig. 5, including the following steps.
Step 600, the user receives the target video sent by other users and stores the target video in the album of the electronic device where the client is located.
Step 601, a user opens a client, and the client receives an operation instruction for opening the client triggered by the user, opens a first page of the client, and acquires access rights of the client to the electronic equipment;
step 602, if the access right includes an access right to an album of the electronic device, reading a video stored in the album with the latest time, namely, a target video.
If the corresponding authority of the client does not contain the access authority of the album, the client is opened, and then the subsequent steps are not executed.
Step 603, obtaining a watermark of the target video, and obtaining the last frame of the target video, and obtaining a two-dimensional code therefrom;
step 604, identifying the two-dimensional code and the watermark, and obtaining the identification state of the two-dimensional code and the watermark; if the identification is successful, obtaining first author information and second author information, wherein the first author information is obtained based on the identification of the two-dimensional code, the second author information is obtained based on the identification of the watermark, and then step 609 is performed; if the identification state of any one of the two-dimensional code and the watermark is identification failure, entering the next step;
step 605, sending a first identification request to a server; the first identification request comprises at least one of the two-dimensional code and the watermark;
Step 606, the server receives the first identification request, and identifies the two-dimensional code and the watermark;
step 607, the server returns the identification result to the client;
in step 608, the client receives the identification result returned by the server, obtains the first author information and the second author information, and proceeds to the next step.
Step 609, comparing the first author information with the second author information, if the first author information and the second author information are consistent, determining that the first author information is the author information, and entering step 611; otherwise, the next step is performed.
Step 610, obtaining the two-dimensional code recognition accuracy and watermark recognition accuracy of the server; and determining the higher one of the two-dimensional code recognition accuracy and the watermark recognition accuracy of the server, and acquiring first author information or second author information corresponding to the higher one as the author information.
Step 611, acquiring a cover image corresponding to the target video, and displaying a floating layer on a first page of the client, where the floating layer includes the cover image corresponding to the target video and a brief prompt of information to be searched, for example, as shown in fig. 3 (b); and counting the display time of the floating layer, and hiding the floating layer if the display time reaches the preset time (for example, 5 seconds).
Step 612, if a trigger operation instruction of the user for the search function of the client is detected before the display duration does not reach the preset duration, a first search request is sent to the server in response to the trigger operation instruction; the first search request comprises the author information;
in step 613, the server receives the first search request, obtains account information corresponding to the author information, and returns the searched account information to the client.
In step 614, the client receives the account information returned by the service and jumps to the corresponding account page (i.e., the second page), such as shown in fig. 3 (c).
Further, the user may click on an account avatar or account name and then enter the personal profile page for the account.
Fig. 6 is a diagram illustrating a video-based search method applied to a server, according to an exemplary embodiment, the method including:
step 621, receiving a search request of an application program, and obtaining information to be searched corresponding to a target video carried by the search request; and the target video is a video read from a preset storage space local to the equipment where the first page is opened and the first page is opened when the application program responds to an operation instruction for opening the application program.
In the disclosure, when an application program responds to an operation instruction for opening the application program, the opened first page comprises, but is not limited to, a specific content page, a personal homepage corresponding to a user or other preset pages; and when the first page is opened, after the application program is fully authorized by the user, reading the target video in the preset storage space of the electronic equipment.
The preset storage space may be any storage space preset in the electronic device where the application program is located, such as a cache space, an album, etc. corresponding to the application program.
Step 622, obtaining a search result corresponding to the information to be searched, and returning the search result to switch the application program to a second page containing the search result.
The server may perform different search operations for different information to be searched to obtain corresponding search results. Such as: when the information to be searched is the author information of the target video, searching account information corresponding to the author information or searching other videos of the video author; when the information to be searched is content information of a target video, a recommended video similar to the target video may be searched based on the content information.
In this disclosure, the information in the second page is associated with the target video presence.
Based on the technical scheme, after receiving videos shared by other users and storing the videos in a local preset storage space, or after downloading the videos to the local preset storage space, by opening an application program, the application program opens a first page and reads the videos from the preset storage space at the same time, pops up information related to the videos, allows the user to confirm whether the information related to the videos needs to be searched, if the user confirms searching, sends a searching request to a server, and based on the searching request, the server can return the searching result related to the videos to the application program so as to switch the application program to a second page containing the searching result, and the information in the second page is associated with a target video. The interaction process between the process server and the application program is less, so that the efficiency of obtaining the video shared by other users or the search result information corresponding to the downloaded video is improved.
In an exemplary embodiment, the information to be searched is obtained based on at least one of a two-dimensional code, a watermark and a video frame contained in the target video; before receiving the search request of the application program, the method further comprises the following steps:
Responding to an identification request of the application program, identifying at least one of the two-dimensional code, the watermark and the video frame carried in the identification request, and taking an identification result as information to be searched corresponding to the target video; and returning the information to be searched to the application program so that the application program can display search prompt information containing the information to be searched on the first page.
The method specifically comprises the following steps: if the identification request carries the two-dimensional code and the watermark, the two-dimensional code and the watermark are generated based on the information of the video author; the server respectively identifies the two-dimensional code and the watermark, so that first author information and second author information can be obtained, after the first author information and the second author information are adopted to check each other, an author information identification result of the target video is obtained, the author information is returned to the application program, and search prompt information including whether search is carried out on the author information is displayed on a first page by the application program.
Another example is: if the identification request carries the video frame of the target video, the server identifies the video frame, content information in the video frame can be obtained, and the content information is returned to the application program so as to display search prompt information containing whether to search for the content information on the first page by the application program.
In an exemplary embodiment, the information to be searched corresponding to the target video includes at least one of author information and content information of the target video; if the user confirms that searching is carried out on the author information, the server acquires account information corresponding to the author information of the target video, and returns the account information to the application program so as to provide a second page containing the account information for the application program to display; if the user confirms that searching is carried out on the content information, the server acquires a recommended video corresponding to the content information, and returns the recommended video to the application program so as to provide a second page containing the recommended video for the application program to display.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of the flowcharts described above may include a plurality of steps or stages that are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the steps or stages is not necessarily sequential, but may be performed in rotation or alternately with at least a portion of the steps or stages of other steps or other steps.
Fig. 7 is a block diagram of a video-based search apparatus 700 of a server, according to an example embodiment. The apparatus 700 includes:
a storage space reading unit 701 configured to execute an operation instruction in response to opening an application program, open a first page, and read a target video in a local preset storage space;
a search prompt unit 702 configured to execute a search prompt message corresponding to the target video displayed on the first page;
and a search result presentation unit 703 configured to execute a search instruction for the search prompt information, obtain a search result corresponding to the target video in response to the search instruction, and switch to a second page containing the search result.
In one embodiment, the preset storage space is an album, and the storage space reading unit 701 is further configured to perform:
obtaining access rights to a local storage space;
and if the access right contains the access right to the album, executing the step of reading the target video in the album.
In one embodiment, the target video is one video stored in the album with the latest time; the memory space reading unit 701 is further configured to perform:
And sequentially reading at least one file in the album based on the sequence of the storage time from near to far until the read file is video.
In one embodiment, the search prompting unit 702 is configured to perform:
displaying a floating layer on the first page, wherein the floating layer comprises an image corresponding to the target video and abstract information of information to be searched; and obtaining the information to be searched based on preset information contained in the target video.
In one embodiment, the search prompting unit 702 is configured to perform:
counting the display duration of the floating layer;
and hiding the floating layer if the display duration reaches the preset duration.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes information to be searched corresponding to the target video; the information to be searched is author information of the target video; the preset information contained in the target video comprises at least one of a two-dimensional code and a watermark;
the apparatus 700 further comprises a first information acquisition module to be searched configured to perform:
acquiring at least one of a two-dimensional code and a watermark contained in the target video; the two-dimensional code and the watermark are generated based on the author information of the target video;
And identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video, wherein the author information is used as the information to be searched.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
reading a video frame of a set position of the target video, wherein the video frame of the set position comprises the two-dimensional code;
and acquiring the two-dimensional code contained in the video frame.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
sending a first identification request to a server; the first identification request comprises at least one of the two-dimensional code and the watermark, and the first identification request is used for indicating the server to identify the at least one of the two-dimensional code and the watermark and returning an identification result;
and receiving the identification result returned by the server to obtain the author information of the target video.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
identifying a two-dimensional code contained in the target video to obtain first author information; identifying the watermark contained in the target video to obtain second author information;
Comparing the first author information with the second author information; and if the first author information and the first author information are consistent, determining that the first author information is the author information.
In one embodiment, the first information to be searched obtaining module is further configured to perform:
if the two codes are inconsistent, acquiring the two-dimensional code identification accuracy and the watermark identification accuracy;
and determining the higher one of the two-dimensional code recognition accuracy and the watermark recognition accuracy, and acquiring first author information or second author information corresponding to the higher one as the author information.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes author information corresponding to the target video; the search result presentation unit 703 is configured to perform:
responding to the search instruction, searching based on the author information, and acquiring account information corresponding to the author information;
and switching to a second page containing the account information.
In one embodiment, the search result presentation unit 703 is configured to perform:
responding to the search instruction, sending a first search request to a server, and receiving information returned by the server for the first search request to obtain account information corresponding to the author information; the first search request comprises the author information; the first search request is used for indicating the server to acquire account information corresponding to the author information and returning the account information.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes information to be searched corresponding to the target video; the information to be searched is content information corresponding to the target video, and preset information contained in the target video comprises at least one video frame;
the apparatus 700 further includes a second information to be searched acquisition module configured to perform:
acquiring at least one video frame of the target video;
and identifying the at least one video frame to obtain the content information of the target video as the information to be searched.
In one embodiment, the second information to be searched obtaining module is further configured to perform:
and determining a reference video matched with the at least one video frame in a video database, and acquiring a content tag corresponding to the reference video to obtain content information corresponding to the target video.
In one embodiment, the second information to be searched obtaining module is further configured to perform:
sending a second identification request to the service; the second identification request comprises the at least one video frame, and is used for indicating the server to query a video database, determining a reference video matched with the at least one video frame, acquiring a content tag corresponding to the reference video and returning;
And receiving a content label corresponding to the reference video returned by the server.
In one embodiment, the search prompt information corresponding to the target video displayed on the first page includes content information corresponding to the target video; the search result presentation unit 703 is configured to perform:
responding to the search instruction, and acquiring a recommended video corresponding to the target video based on the content information of the target video;
and switching to a second page containing the recommended video.
In one embodiment, the search result presentation unit 703 is configured to perform:
responding to the search instruction, sending a second search request to a server, and receiving video information returned by the server aiming at the second search request to obtain recommended video corresponding to the content information; the second search request comprises the content information; the third search request is used for indicating the server to acquire the video corresponding to the content information and returning the video.
With respect to the apparatus 700 of the above embodiment, the specific manner in which the respective modules perform the operations has been described in detail in relation to the embodiment of the method, and will not be described in detail herein.
Fig. 8 is a block diagram of a video-based search device 830 of a server, according to an example embodiment. The apparatus 830 includes:
the request receiving module 831 is configured to execute a search request of a receiving application program, and acquire information to be searched corresponding to a target video carried by the search request; the target video is a video read from a preset storage space of local equipment where a first page is opened when the application program responds to an operation instruction for opening the application program;
the searching and returning module 832 is configured to perform obtaining a search result corresponding to the information to be searched, and return the search result to switch the application program to a second page containing the search result.
In one embodiment, the information to be searched is obtained based on at least one of a two-dimensional code, a watermark and a video frame contained in the target video; the apparatus 830 further includes:
the identification module is configured to execute an identification request responding to the application program, identify at least one of the two-dimensional code, the watermark and the video frame carried in the identification request, and take an identification result as information to be searched corresponding to the target video;
The identification result returning module is configured to execute returning of the information to be searched to the application program so that the application program can display search prompt information containing the information to be searched on the first page.
In one embodiment, the information to be searched corresponding to the target video includes at least one of author information and content information of the target video; the search and return module 832 is configured to perform one of the following:
acquiring account information corresponding to the author information of the target video, and returning the account information;
and acquiring a recommended video corresponding to the content information, and returning the recommended video.
The specific manner in which the various modules perform the operations in connection with the apparatus 830 of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 9 is a block diagram illustrating an apparatus 800 for data processing according to an example embodiment. For example, device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 9, device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations 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 perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, video, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices 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.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the device 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the device 800 and other devices, either wired or wireless. The device 800 may access a wireless network based on a communication standard, such as WiFi, an operator network, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 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 Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the video-based search methods of the above-described embodiments.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of device 800 to perform the method implemented at the user device side by the above embodiments. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising computer instructions which, when executed by a processor, perform the above-described method implemented at the user equipment side.
Fig. 10 is a block diagram illustrating an apparatus 900 for data processing according to an example embodiment. For example, device 900 may be a server. Referring to fig. 10, device 900 includes a processing component 920 that further includes one or more processors, and memory resources represented by memory 922, for storing instructions, such as applications, executable by processing component 920. The application programs stored in memory 922 may include one or more modules each corresponding to a set of instructions. Further, the processing component 920 is configured to execute instructions to perform the methods implemented at the server side by the above-described embodiments.
The device 900 may also include a power supply component 924 configured to perform power management of the device 900, a wired or wireless network interface 926 configured to connect the device 900 to a network, and an input output (I/O) interface 928. The device 900 may operate based on an operating system stored in memory 922, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
In an exemplary embodiment, a storage medium is also provided, such as memory 922 including instructions executable by a processor of device 900 to perform the method implemented at the server side by the above embodiments. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 922 including instructions executable by processing component 920 of apparatus 900 to perform the above-described method. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided, comprising computer instructions which, when executed by a processor, perform the above-described server-executed search method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (26)

1. A video-based search method, comprising:
responding to an operation instruction of opening an application program, opening a first page, and reading a target video meeting preset conditions in a local preset storage space; the preset condition comprises at least one of a storage time condition, a video format condition and a video content condition of the target video; the first page is a front-end application page of the application program, and page content displayed by the front-end application page is front-end application content which does not comprise the target video;
displaying search prompt information corresponding to the target video on the first page; the searching prompt information comprises an image corresponding to the target video and information to be searched;
and detecting a search instruction aiming at the search prompt information, responding to the search instruction, acquiring a search result aiming at the information to be searched, and switching to a second page containing the search result.
2. The method of claim 1, wherein the displaying, on the first page, search hint information corresponding to the target video includes:
displaying a floating layer on the first page, wherein the floating layer comprises an image corresponding to the target video and information to be searched; and obtaining the information to be searched based on preset information contained in the target video.
3. The method of claim 1, wherein the search hint information corresponding to the target video presented on the first page includes author information corresponding to the target video;
before the search prompt information corresponding to the target video is displayed on the first page, the method further comprises:
acquiring at least one of a two-dimensional code and a watermark contained in the target video; the two-dimensional code and the watermark are generated based on the author information of the target video;
and identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video, wherein the author information is used as information to be searched.
4. The method according to claim 3, wherein the identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video includes:
Identifying a two-dimensional code contained in the target video to obtain first author information; identifying the watermark contained in the target video to obtain second author information;
comparing the first author information with the second author information; and if the first author information and the first author information are consistent, determining that the first author information is the author information.
5. The method of claim 4, further comprising, after said comparing said first author information and said second author information:
if the two codes are inconsistent, acquiring the two-dimensional code identification accuracy and the watermark identification accuracy;
and determining the higher one of the two-dimensional code recognition accuracy and the watermark recognition accuracy, and acquiring first author information or second author information corresponding to the higher one as the author information.
6. The method of claim 1, wherein the search hint information corresponding to the target video presented on the first page includes author information corresponding to the target video;
the responding to the searching instruction, obtaining the searching result aiming at the information to be searched, and switching to a second page containing the searching result, comprises the following steps:
Responding to the search instruction, searching based on the author information, and acquiring account information corresponding to the author information;
and switching to a second page containing the account information.
7. The method of claim 1, wherein the search hint information corresponding to the target video presented on the first page includes content information corresponding to the target video;
before the search prompt information corresponding to the target video is displayed on the first page, the method further comprises:
acquiring at least one video frame of the target video;
and identifying the at least one video frame to obtain the content information of the target video as the information to be searched.
8. The method of claim 7, wherein the identifying the at least one video frame to obtain the content information of the target video comprises:
determining a reference video in the video database that matches the at least one video frame;
and obtaining the content label corresponding to the reference video to obtain the content information corresponding to the target video.
9. The method according to claim 1, wherein the search prompt information corresponding to the target video displayed on the first page includes content information corresponding to the target video in response to the search instruction;
The obtaining the search result aiming at the information to be searched and switching to a second page containing the search result comprises the following steps:
responding to the search instruction, and acquiring a recommended video corresponding to the target video based on the content information of the target video;
and switching to a second page containing the recommended video.
10. A video-based search method, comprising:
receiving a search request of an application program, and acquiring information to be searched corresponding to a target video carried by the search request; the target video is a video which is obtained by opening a first page and reading a preset condition from a preset storage space of local equipment when the application program responds to an operation instruction for opening the application program; the preset condition comprises at least one of a storage time condition, a video format condition and a video content condition of the target video; the first page is a front-end application page of the application program, and page content displayed by the front-end application page is front-end application content which does not comprise the target video;
and obtaining a search result corresponding to the information to be searched, and returning the search result so that the application program can be switched to a second page containing the search result.
11. The method of claim 10, wherein the information to be searched is obtained based on at least one of a two-dimensional code, a watermark, and a video frame contained in the target video; before receiving the search request of the application program, the method further comprises the following steps:
responding to an identification request of the application program, identifying at least one of the two-dimensional code, the watermark and the video frame carried in the identification request, and taking an identification result as information to be searched corresponding to the target video;
and returning the information to be searched to the application program so that the application program can display search prompt information containing the information to be searched on the first page.
12. The method according to claim 10, wherein the information to be searched for corresponding to the target video includes at least one of author information and content information of the target video; the searching result corresponding to the information to be searched is obtained, and the searching result is returned, wherein the searching result comprises at least one of the following items:
acquiring account information corresponding to the author information of the target video, and returning the account information;
and acquiring a recommended video corresponding to the content information, and returning the recommended video.
13. A video-based search apparatus, comprising:
a storage space reading unit configured to execute an operation instruction in response to opening an application program, open a first page, and read a target video meeting a preset condition in a local preset storage space; the preset condition comprises at least one of a storage time condition, a video format condition and a video content condition of the target video; the first page is a front-end application page of the application program, and page content displayed by the front-end application page is front-end application content which does not comprise the target video;
the search prompt unit is configured to execute search prompt information corresponding to the target video displayed on the first page; the searching prompt information comprises an image corresponding to the target video and information to be searched;
and the search result display unit is configured to execute a search instruction for the search prompt information, respond to the search instruction, acquire the search result for the information to be searched, and switch to a second page containing the search result.
14. The apparatus of claim 13, wherein the search hint unit is configured to perform:
Displaying a floating layer on the first page, wherein the floating layer comprises an image corresponding to the target video and abstract information of information to be searched; and obtaining the information to be searched based on preset information contained in the target video.
15. The apparatus of claim 13, wherein the search hint information corresponding to the target video presented on the first page includes author information corresponding to the target video;
the apparatus further includes a first information to be searched acquisition module configured to perform:
acquiring at least one of a two-dimensional code and a watermark contained in the target video; the two-dimensional code and the watermark are generated based on the author information of the target video;
and identifying at least one of the two-dimensional code and the watermark to obtain the author information of the target video, wherein the author information is used as information to be searched.
16. The apparatus of claim 15, wherein the first information to be searched acquisition module is further configured to perform:
identifying a two-dimensional code contained in the target video to obtain first author information; identifying the watermark contained in the target video to obtain second author information;
Comparing the first author information with the second author information; and if the first author information and the first author information are consistent, determining that the first author information is the author information.
17. The apparatus of claim 16, wherein the first information to be searched acquisition module is further configured to perform:
if the two codes are inconsistent, acquiring the two-dimensional code identification accuracy and the watermark identification accuracy;
and determining the higher one of the two-dimensional code recognition accuracy and the watermark recognition accuracy, and acquiring first author information or second author information corresponding to the higher one as the author information.
18. The apparatus of claim 13, wherein the search hint information corresponding to the target video presented on the first page includes author information corresponding to the target video;
the search result presentation unit is configured to perform:
responding to the search instruction, searching based on the author information, and acquiring account information corresponding to the author information;
and switching to a second page containing the account information.
19. The apparatus of claim 13, wherein the search hint information corresponding to the target video presented on the first page includes content information corresponding to the target video;
The apparatus further includes a second information to be searched acquisition module configured to perform:
acquiring at least one video frame of the target video;
and identifying the at least one video frame to obtain the content information of the target video as the information to be searched.
20. The apparatus of claim 19, wherein the second information to be searched acquisition module is further configured to perform:
determining a reference video in the video database that matches the at least one video frame;
and obtaining the content label corresponding to the reference video to obtain the content information corresponding to the target video.
21. The apparatus of claim 13, wherein the search hint information corresponding to the target video presented on the first page includes content information corresponding to the target video;
the search result presentation unit is configured to perform:
responding to the search instruction, and acquiring a recommended video corresponding to the target video based on the content information of the target video;
and switching to a second page containing the recommended video.
22. A video-based search apparatus, comprising:
The request receiving module is configured to execute a search request of a receiving application program and acquire information to be searched corresponding to a target video carried by the search request; the target video is a video which is obtained by opening a first page and reading a preset condition from a preset storage space of local equipment when the application program responds to an operation instruction for opening the application program; the preset condition comprises at least one of a storage time condition, a video format condition and a video content condition of the target video; the first page is a front-end application page of the application program, and page content displayed by the front-end application page is front-end application content which does not comprise the target video;
and the searching and returning module is configured to execute and acquire the searching result corresponding to the information to be searched, and return the searching result so that the application program can be switched to a second page containing the searching result.
23. The apparatus of claim 22, wherein the information to be searched is obtained based on at least one of a two-dimensional code, a watermark, and a video frame contained in the target video; the apparatus further comprises:
The identification module is configured to execute an identification request responding to the application program, identify at least one of the two-dimensional code, the watermark and the video frame carried in the identification request, and take an identification result as information to be searched corresponding to the target video;
the identification result returning module is configured to execute returning of the information to be searched to the application program so that the application program can display search prompt information containing the information to be searched on the first page.
24. The apparatus of claim 23, wherein the information to be searched for corresponding to the target video includes at least one of author information and content information of the target video; the search and return module is configured to perform one of:
acquiring account information corresponding to the author information of the target video, and returning the account information;
and acquiring a recommended video corresponding to the content information, and returning the recommended video.
25. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video-based search method of any one of claims 1 to 12.
26. A storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the video-based search method of any one of claims 1 to 12.
CN202011603869.7A 2020-12-29 2020-12-29 Video-based searching method and device, electronic equipment and storage medium Active CN112667852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011603869.7A CN112667852B (en) 2020-12-29 2020-12-29 Video-based searching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011603869.7A CN112667852B (en) 2020-12-29 2020-12-29 Video-based searching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112667852A CN112667852A (en) 2021-04-16
CN112667852B true CN112667852B (en) 2023-11-21

Family

ID=75410777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011603869.7A Active CN112667852B (en) 2020-12-29 2020-12-29 Video-based searching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112667852B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742585A (en) * 2021-08-31 2021-12-03 深圳Tcl新技术有限公司 Content search method, content search device, electronic equipment and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268644A (en) * 2018-01-22 2018-07-10 上海哔哩哔哩科技有限公司 Video searching method, server and video searching system
CN108874958A (en) * 2018-06-06 2018-11-23 麒麟合盛网络技术股份有限公司 Content search method and device
CN109218750A (en) * 2018-10-30 2019-01-15 百度在线网络技术(北京)有限公司 Method, apparatus, storage medium and the terminal device of Video content retrieval

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8959108B2 (en) * 2008-06-18 2015-02-17 Zeitera, Llc Distributed and tiered architecture for content search and content monitoring

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268644A (en) * 2018-01-22 2018-07-10 上海哔哩哔哩科技有限公司 Video searching method, server and video searching system
CN108874958A (en) * 2018-06-06 2018-11-23 麒麟合盛网络技术股份有限公司 Content search method and device
CN109218750A (en) * 2018-10-30 2019-01-15 百度在线网络技术(北京)有限公司 Method, apparatus, storage medium and the terminal device of Video content retrieval

Also Published As

Publication number Publication date
CN112667852A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US9942690B2 (en) Method and device for information push
EP3561691B1 (en) Method and apparatus for displaying webpage content
US11281363B2 (en) Method and device for setting identity image
EP3561692A1 (en) Method and device for displaying web page content
US20180061423A1 (en) Friend addition method, device and medium
CN107229403B (en) Information content selection method and device
CN117390330A (en) Webpage access method and device
CN113259226B (en) Information synchronization method and device, electronic equipment and storage medium
RU2734780C1 (en) Method of presenting information, device and storage medium for information therefor
CN107402767B (en) Method and device for displaying push message
CN111427449A (en) Interface display method, device and storage medium
CN108984098B (en) Information display control method and device based on social software
CN104951522B (en) Method and device for searching
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
CN106960026B (en) Search method, search engine and electronic equipment
CN109842688B (en) Content recommendation method and device, electronic equipment and storage medium
US11284127B2 (en) Method and apparatus for pushing information in live broadcast room
CN110213062B (en) Method and device for processing message
US20220326845A1 (en) Method for acquiring historical information, storage medium, and system
CN108804181B (en) Control content obtaining method and device and storage medium
CN107526683B (en) Method and device for detecting functional redundancy of application program and storage medium
CN106126246B (en) Item display method and device
CN106843860B (en) Method, device and system for adjusting display style of search box
CN111061633A (en) Method, device, terminal and medium for detecting first screen time of webpage
CN113778385B (en) Component registration method, device, terminal and 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
GR01 Patent grant
GR01 Patent grant