Retrieval result display method and apparatus, and device
By dividing the time intervals in the video file search results display and generating the target video file, combining the timeline and search result structure, the problems of poor user experience and low performance in the video file display method are solved, and efficient video file display and search result display are achieved.
Patent Information
- Application Number
- PCT/CN2024/135570
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-28
- Filing Date
- 2024-11-29
- Publication Date
- 2025-07-03
AI Technical Summary
In the prior art, the display method of video file search results has poor user experience and low display performance, and it is impossible to effectively integrate and display the search results of a large number of video file.
By obtaining the video clip time, dividing multiple time intervals, combining the initial video files within the time interval to generate the target video file, and displaying the search result structure and target time axis in the target display interface, linking the time axis and search results to improve user experience and display performance.
It realizes the time distribution and search results of the video file simultaneously displayed in the target display interface, improves user experience and display performance, and solves the problem that the overall storage status of the video file cannot be sensed when the large data volume is loaded.
Smart Images

Figure CN2024135570_03072025_PF_FP_ABST
Abstract
Description
Search result display method, device and equipment Technical Field
[0001] The present disclosure relates to the field of information display, and in particular to a method, device and apparatus for displaying search results. Background Art
[0002] The video file retrieval process requires providing search conditions and obtaining corresponding search results. For example, the search conditions can include the recording time period, the recording area, and the search target (such as a vehicle or a person). Based on the search conditions, the video files corresponding to the search conditions can be found from all video files, and the search results are determined based on the information of these video files.
[0003] After obtaining the video file search results, the search results can also be displayed through the target display interface. For example, during the video file search process, multiple channels can be searched concurrently, that is, a large number of video files from multiple channels can be retrieved and the search results of the large number of video files can be displayed through the target display interface.
[0004] However, there is no effective way to display the search results of a large number of video files through the target display interface in the relevant technology, which leads to problems such as poor user experience and low display performance. Summary of the Invention
[0005] The present disclosure provides a retrieval result display method, which includes: obtaining retrieval results corresponding to retrieval conditions, wherein the retrieval results include multiple initial video files and a channel identifier, a start time, and an end time of each of the multiple initial video files; dividing the time intervals into multiple time intervals based on the length of the acquired video clips; for each of the multiple time intervals, based on the start time and end time of all initial video files corresponding to the same channel identifier, generating a target video file based on one or more initial video files in the time interval; and displaying a retrieval result structure on a target display interface, wherein the retrieval result structure includes multiple data items, and each of the multiple data items includes retrieval data corresponding to the target video file.
[0006] The present disclosure provides a retrieval result display device, which includes: an acquisition module, used to acquire retrieval results corresponding to retrieval conditions, wherein the retrieval results include multiple initial video files and a channel identifier, a start time, and an end time of each of the multiple initial video files; a processing module, used to divide the acquired video clip into multiple time intervals based on the length of the acquired video clip; for each of the multiple time intervals, based on the start time and end time of all initial video files corresponding to the same channel identifier, a target video file is generated based on one or more initial video files in the time interval; and a display module, used to display a retrieval result structure on a target display interface, wherein the retrieval result structure includes multiple data items, each of the multiple data items includes retrieval data corresponding to the target video file.
[0007] The present disclosure provides a client device, comprising: a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the retrieval result display method of the above example of the present disclosure.
[0008] As can be seen from the above technical solutions, in the embodiment of the present disclosure, multiple time intervals can be divided based on the length of the video clip, one or more initial video files within the time interval can be combined to obtain a target video file, and the retrieval data of the target video file can be displayed, thereby integrating the video files within the time interval, and displaying the video files with the time interval as the granularity, thereby improving the user experience and display performance. The retrieval result structure and the target timeline can be displayed simultaneously on the target display interface, so that the target timeline and the retrieval result structure can be linked, and the time distribution of the overall retrieval results can be displayed through the target timeline (that is, the target timeline includes multiple time intervals and display marks corresponding to each time interval, and the display mark indicates whether the target video file exists in the time interval or not), and the retrieval results of the video file can be displayed through the retrieval result structure (that is, the retrieval result structure includes multiple data items, and each data item includes retrieval data corresponding to a target video file). In this way, you can view the time distribution of the overall retrieval results and the retrieval results of the video files, thereby improving the user experience and display performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] FIG1 is a flow chart of a method for displaying search results in one embodiment of the present disclosure.
[0010] FIG2 is a flow chart of a method for displaying search results in another embodiment of the present disclosure.
[0011] FIG3A is a schematic diagram of a search result list in one embodiment of the present disclosure.
[0012] FIG3B is a schematic diagram of a search result list and a target timeline in one embodiment of the present disclosure.
[0013] 3C, 3D, and 3E are schematic diagrams of a target timeline in one embodiment of the present disclosure.
[0014] FIG4 is a flow chart of a search result display method in yet another embodiment of the present disclosure.
[0015] FIG5A is a schematic diagram of a thumbnail of search results in one embodiment of the present disclosure.
[0016] FIG5B is a schematic diagram of a search result thumbnail and a target timeline in one embodiment of the present disclosure.
[0017] FIG6 is a schematic structural diagram of a search result display device in one embodiment of the present disclosure.
[0018] FIG. 7 is a hardware structure diagram of a client device in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms "a," "an," "the," and "the" used in the present disclosure and claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to any or all possible combinations of one or more associated listed items.
[0020] The disclosed embodiments provide a method for displaying search results, which can be applied to a client device, i.e., an electronic device equipped with a client. The client is any client that supports displaying search results, and there are no restrictions on the type of client. The electronic device can be a PC (personal computer), a laptop, a smartphone, a camera, an NVR (network video recorder), a storage device, a display device, a management device, or the like, and there are no restrictions on the type of electronic device.
[0021] 1 , which is a flow chart of the search result display method, the method may include steps 101 to 104 .
[0022] Step 101: Obtain search results corresponding to the search conditions, wherein the search results may include multiple initial video files (such as unique file identifiers of the initial video files), channel identifiers of each initial video file, start time of each initial video file, and end time of each target video file.
[0023] Step 102: Divide the acquired video clip into multiple time intervals based on the duration of the video clip.
[0024] Step 103: For each of the multiple time intervals, based on the start time and end time of all initial video files corresponding to the same channel identifier, a target video file is generated based on one or more initial video files in the time interval. That is, the initial video files corresponding to the same channel identifier in the time interval are combined into the target video file.
[0025] Step 104: Display the search result structure on the target display interface, wherein the search result structure may include multiple data items, each of which includes search data corresponding to a target video file.
[0026] Exemplarily, for each of the multiple time intervals, based on the start and end times of all initial video files corresponding to the same channel identifier, a target video file is generated based on one or more initial video files in the time interval. This may include, but is not limited to: if there is an initial video file with a start time earlier than the time interval and an end time within the time interval, a first sub-video file is extracted from the initial video file, where the start time of the first sub-video file may be the start time of the time interval, and the end time of the first sub-video file may be the end time of the initial video file; and the target video file is generated based on the first sub-video file. If there is an initial video file with an end time later than the time interval and a start time within the time interval, a second sub-video file is extracted from the initial video file, where the start time of the second sub-video file may be the start time of the initial video file, and the end time of the second sub-video file may be the end time of the time interval; and the target video file is generated based on the second sub-video file. If an initial video file exists whose start time is earlier than the time interval and whose end time is later than the time interval, a third sub-video file is extracted from the initial video file. The start time of the third sub-video file can be the start time of the time interval, and the end time of the third sub-video file can be the end time of the time interval; the target video file is generated based on the third sub-video file. If an initial video file exists whose start time is within the time interval and whose end time is within the time interval, the target video file is generated based on the initial video file.
[0027] Exemplarily, if the display mode of the client device is a list display mode, the retrieval result structure is a retrieval result list, and for each target video file, the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the start time of the target video file, the end time of the target video file, and the duration of the target video file; wherein, the start time of the target video file is the earliest time of all (one or more) initial video files corresponding to the target video file, the end time of the target video file is the latest time of all initial video files corresponding to the target video file, and the duration of the target video file is the sum of the durations of all initial video files corresponding to the target video file. Alternatively, if the display mode of the client device is a thumbnail display mode, the retrieval result structure is a retrieval result thumbnail, and for each target video file, the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the thumbnail of the target video file, and the start time of the target video file; wherein, the thumbnail of the target video file is the video screen at the start time of the target video file.
[0028] Exemplarily, dividing the time intervals based on the acquired video clip length may include but is not limited to: obtaining the total time axis length of the target time axis and determining a first preset video clip length corresponding to the total time axis length; dividing the total time axis length into multiple time intervals based on the first preset video clip length.
[0029] Exemplarily, a target timeline may also be displayed on the target display interface. The length of the target timeline is the total length of the timeline. The target timeline includes multiple time intervals and a display mark corresponding to each time interval. The display mark indicates whether there is a target video file in the time interval.
[0030] If a floating operation instruction is received for a first time interval in which target video files exist, the channel identifiers and / or start times of all target video files corresponding to the first time interval are displayed.
[0031] If a click operation instruction for the first target video file corresponding to the first time interval is received, the screen of the first target video file can be played, and / or the search result structure displayed on the target display interface can be jumped to the data item corresponding to the first target video file.
[0032] Exemplarily, for each target video file, the start time of the target video file is converted into the start time of the target time zone, and the end time of the target video file is converted into the end time of the target time zone. Based on the start time of the target time zone and the end time of the target time zone of the target video file, the time interval to which the target video file belongs on the target time axis is determined. When the start time of all target video files corresponding to the first time interval is displayed, the start time of the target time zone of all target video files corresponding to the first time interval is displayed. Alternatively, for each target video file, based on the start time of the original time zone of the target video file and the end time of the original time zone, the time interval to which the target video file belongs on the target time axis is determined; when the start time of all target video files corresponding to the first time interval is displayed, the start time of the original time zone of all target video files corresponding to the first time interval is displayed.
[0033] Exemplarily, if a zoom operation instruction for the target timeline is received, the total length of the timeline after the change that matches the zoom operation instruction is obtained; wherein, if the zoom operation instruction is a zoom-in operation instruction, the total length of the timeline of the target timeline is increased to obtain the total length of the timeline after the change; if the zoom operation instruction is a zoom-out operation instruction, the total length of the timeline of the target timeline is reduced to obtain the total length of the timeline after the change.
[0034] Obtain a second preset video segment duration corresponding to the changed total timeline length, and divide the changed total timeline length into multiple time intervals based on the second preset video segment duration; wherein, the longer the changed total timeline length is, the longer the second preset video segment duration is.
[0035] For example, when the search result structure is displayed on the target display interface, if a click operation instruction is received for the data item of the second target video file, the screen of the second target video file is played. Furthermore, the time interval to which the second target video file belongs on the target timeline can be determined based on the start and end times of the second target video file. A played mark is set for the time interval on the target timeline; the played mark indicates that a target video file is currently playing in that time interval.
[0036] Exemplarily, jumping the retrieval result structure displayed on the target display interface to the data item corresponding to the first target video file may include, but is not limited to: determining the first sort position of the last target video file currently loaded in the retrieval result structure, and the second sort position of the first target video file; wherein the sort position is used to indicate the positional relationship of the data item of the target video file among the data items of all target video files (i.e., indicating the order of the data item among the data items of all target video files); determining the number of jump interval pages based on the number of interval positions between the second sort position and the first sort position, and the number of data items loaded per page of the retrieval result structure; and jumping the retrieval result structure to the data item corresponding to the first target video file based on the number of jump interval pages, so as to load and display the data item corresponding to the first target video file.
[0037] Exemplarily, obtaining retrieval results corresponding to the retrieval conditions includes, but is not limited to: obtaining multiple retrieval video files corresponding to the retrieval conditions; determining the multiple retrieval video files as initial video files; or, obtaining a target channel identifier of a channel of interest; based on the channel identifier of each retrieval video file, selecting a retrieval video file that matches the target channel identifier from all retrieval video files as the initial video file.
[0038] As can be seen from the above technical solutions, in the disclosed embodiment, multiple time intervals can be divided based on the length of the video clip, the initial video files within the time interval can be combined to obtain the target video file, and the retrieval data of the target video file can be displayed, thereby integrating the video files within the time interval, and displaying the video files with the time interval as the granularity, thereby improving the user experience and display performance. The retrieval result structure and the target timeline can be displayed simultaneously on the target display interface, so that the target timeline and the retrieval result structure can be linked, and the time distribution of the overall retrieval results can be displayed through the target timeline (that is, the target timeline includes multiple time intervals and display marks corresponding to each time interval, and the display mark indicates whether the target video file exists in the time interval), and the retrieval results of the video file can be displayed through the retrieval result structure (that is, the retrieval result structure includes multiple data items, and each data item includes retrieval data corresponding to a target video file). In this way, you can view the time distribution of the overall retrieval results and the retrieval results of the video file, thereby improving the user experience and display performance.
[0039] The above technical solutions of the embodiments of the present disclosure are described below in conjunction with specific application scenarios.
[0040] In an embodiment of the present disclosure, a method for displaying search results is proposed. The method can be applied to a client device. FIG2 is a flow chart of the method for displaying search results. As shown in FIG2 , the method can include the following steps 201 to 207 .
[0041] Step 201: Obtain search results corresponding to the search conditions.
[0042] Exemplarily, for each camera, during the process of the camera collecting the video files of the target scene (i.e., the field of view of the camera), if a specified type of event occurs in the target scene (such as a vehicle entry event, a human entry event, etc.), the start time and end time of the specified type of event will be stored in the database, and the unique file identifier of the video file will be stored in the database, and the channel identifier of the video file (i.e., the unique identifier of this camera, different cameras can correspond to different channels) will be stored in the database, that is, the start time and end time of the specified type of event, the unique file identifier of the video file, the channel identifier of the video file, and the mapping relationship between them are stored in the database.
[0043] For example, during the video file retrieval process, retrieval conditions may be obtained. These retrieval conditions may include, but are not limited to, at least one of the following: a recording time period, a recording area, and a retrieval target (e.g., a vehicle target or a human target). These retrieval conditions are not limited. The recording time period indicates a retrieval of all video files within that recording time period. The recording area indicates a retrieval of video files from all channels (i.e., all cameras) within that recording area. The retrieval target indicates whether the retrieval target exists within any video file.
[0044] Exemplarily, a search result corresponding to the search condition can be obtained, and the search result can include multiple initial video files (such as a unique file identifier of the initial video file), a channel identifier of each initial video file, a start time of each initial video file, and an end time of each initial video file.
[0045] For example, if the recording time period is recording time period A, the recording area is recording area B, and the search target is a vehicle target, then the recording file for recording time period A, recording area B, and vehicle target can be retrieved (recorded as the initial recording file). Obviously, for the retrieved initial recording file, the initial recording file is located in recording time period A, the initial recording file is a recording file captured by the camera in recording area B, and the vehicle target is contained in the initial recording file (that is, the specified event type is a vehicle entry event, and the recording file of the target vehicle entry event is retrieved from the database).
[0046] For the retrieved initial video file, the unique file identifier of the initial video file, the channel identifier of the initial video file, the start time of the initial video file (i.e. the start time of the vehicle entry event), and the end time of the initial video file (i.e. the end time of the vehicle entry event) can be queried from the database.
[0047] At this point, the search results corresponding to the search conditions can be obtained. During the video file search process, concurrent searches of multiple channels can be supported, that is, video files of multiple channels can be searched simultaneously based on the search conditions. Therefore, in the search results corresponding to the search conditions, the search results can include multiple initial video files (such as the unique file identifiers of the initial video files), the channel identifier of each initial video file, the start time of each initial video file, and the end time of each initial video file.
[0048] In one possible implementation, the search results can be filtered to support secondary filtering of multiple channels, that is, when a channel of interest is selected, the thumbnails, lists, and timelines will only display the video files of the selected channel. Based on this, the search results corresponding to the search conditions can also be obtained in the following manner.
[0049] Method 1: Acquire multiple search video files corresponding to the search condition, and determine the multiple search video files as initial video files, that is, obtain multiple initial video files corresponding to the search condition.
[0050] For example, if the recording time period is recording time period A, the recording area is recording area B, and the search target is a vehicle, then the video files for recording time period A, recording area B, and the vehicle target can be retrieved. These video files are referred to as searched video files. Based on this, these searched video files can be used as initial video files, thus obtaining multiple initial video files. The unique file identifier, channel identifier, start time, and end time of each initial video file can then be obtained, thus obtaining the search results.
[0051] Method 2: Obtain multiple search video files corresponding to the search conditions and obtain the target channel identifier of the channel of interest. Based on the channel identifier of each search video file, the search video file that matches the target channel identifier can be selected from all search video files as the initial video file.
[0052] For example, if the recording time period is recording time period A, the recording area is recording area B, and the search target is a vehicle target, then the recording files for recording time period A, recording area B, and vehicle target can be retrieved. These recording files are referred to as retrieval recording files. In addition, the target channel identifier of the channel of interest can be obtained (the channel identifier of the channel of interest is referred to as the target channel identifier). The target channel identifier can be a user-configured channel identifier, that is, a channel identifier used to implement secondary filtering.
[0053] On this basis, based on the channel identifier of each retrieved video file, if the channel identifier of the retrieved video file is the same as the target channel identifier, then the retrieved video file is used as the initial video file. If the channel identifier of the retrieved video file is different from the target channel identifier, then the retrieved video file is not used as the initial video file. At this point, multiple initial video files can be obtained. Then, the unique file identifier of each initial video file, the channel identifier of each initial video file, the start time of each initial video file, and the end time of each initial video file can be obtained, that is, the search results can be obtained.
[0054] Step 202: Divide the acquired video clip into multiple time intervals based on the duration of the acquired video clip. For example, for each time interval, the length of the time interval (ie, the duration) may be the duration of the video clip.
[0055] For example, a pre-configured video clip duration (e.g., a user-configured video clip duration) can be obtained and multiple time intervals can be divided based on the video clip duration. For example, the target display interface can include a control related to the video clip duration, and the user can operate the control to set the video clip duration. For another example, the total timeline length of the target timeline can be obtained, and the video clip duration corresponding to the total timeline length can be determined. Based on the video clip duration, the total timeline length can be divided into multiple time intervals. Of course, the above is only an example, and there is no limitation on the method of obtaining the video clip duration.
[0056] For example, in determining the duration of a video clip based on the total length of a target timeline, the total length of the target timeline can be determined first. For example, multiple candidate duration values for the target timeline can be pre-configured. These candidate duration values can be any duration, such as 7 days, 48 hours, 24 hours, 12 hours, 6 hours, etc. Multiple candidate duration values can be configured arbitrarily.
[0057] Then, based on the retrieval conditions (such as the recording time period in the retrieval conditions), the total length of the time axis is selected from multiple candidate duration values, and the total length of the time axis needs to be greater than or equal to the length of the recording time period. For example, assuming that the length of the recording time period in the retrieval conditions is greater than 48 hours and less than or equal to 7 days, the candidate duration value "7 days" can be used as the total length of the time axis of the target time axis. Assuming that the length of the recording time period is greater than 24 hours and less than or equal to 48 hours, the candidate duration value "48 hours" can be used as the total length of the time axis of the target time axis, or the candidate duration value "7 days" can be used as the total length of the time axis of the target time axis. As long as the total length of the time axis is greater than 24 hours, usually, the one closest to the length of the recording time period will be selected, such as the candidate duration value "48 hours" as the total length of the time axis, and so on.
[0058] If the duration of the recording time period is greater than 7 days, that is, greater than the maximum candidate duration value, the user may be prompted that the search range is exceeded and the duration of the recording time period needs to be controlled within 7 days. In this way, the user re-enters the search conditions and retrieves data based on the search conditions. For this process, see step 201.
[0059] For example, after obtaining the total length of the timeline, the duration of the video clip corresponding to the total length of the timeline can be determined. For example, the correspondence between candidate duration values and video clip durations can be pre-configured. This correspondence is not restricted and can be configured based on experience, such that the longer the candidate duration value, the longer the video clip duration. For example, if the candidate duration value is 7 days, the video clip duration can be 3 hours, 2 hours, 1 hour, etc., without restrictions. If the candidate duration value is 24 hours, the video clip duration can be 30 minutes, 25 minutes, or 20 minutes, without restrictions. If the candidate duration value is 12 hours, the video clip duration can be 20 minutes, 15 minutes, or 10 minutes, without restrictions. If the candidate duration value is 6 hours, the video clip duration can be 10 minutes, 8 minutes, or 5 minutes, without restrictions. Of course, the above are just a few examples of the relationship between candidate duration values and video clip durations; video clip durations can be configured arbitrarily.
[0060] On this basis, if the total length of the timeline is 7 days, the length of the video clip corresponding to the total length of the timeline can be 3 hours. If the total length of the timeline is 24 hours, the length of the video clip corresponding to the total length of the timeline can be 30 minutes, and so on, so that the length of the video clip can be obtained.
[0061] After obtaining the duration of the video clip corresponding to the total length of the timeline, you can divide the total length of the timeline into multiple time intervals based on the duration of the video clip. For example, if the total length of the timeline is 24 hours and the video clip is 30 minutes long, you can divide it into 48 time intervals, each 30 minutes long. For example, the first time interval is 0:00-0:30, the second time interval is 0:30-1:00, the third time interval is 1:00-1:30, and so on, up to the 48th time interval 23:30-24:00. For another example, if the total length of the timeline is 12 hours and the video clip is 20 minutes long, you can divide it into 36 time intervals, each 20 minutes long. For another example, if the total length of the timeline is 6 hours and the video clip is 10 minutes long, you can divide it into 36 time intervals, each 10 minutes long, and so on. In this way, you can obtain multiple time intervals.
[0062] Step 203: For each time interval, based on the start and end times of all initial video files corresponding to the same channel identifier, a target video file is generated based on one or more initial video files in the time interval. That is, the initial video files corresponding to the same channel identifier in the time interval are combined into the target video file.
[0063] For example, using the channel identifier as the granularity, determine all the initial video files corresponding to each channel identifier, for example, find all the initial video files corresponding to the channel identifier AAA, all the initial video files corresponding to the channel identifier BBB, all the initial video files corresponding to the channel identifier CCC, and so on.
[0064] Based on the start and end times of all initial video files corresponding to the same channel identifier, such as the start and end times of all initial video files corresponding to channel identifier AAA, for each time interval, a target video file is generated based on the initial video files in that time interval. For example, assuming that channel identifier AAA corresponds to initial video files a1 and a2 in the time interval "0:00-0:30", target video file b1 corresponding to the time interval "0:00-0:30" is generated based on initial video files a1 and a2; assuming that channel identifier AAA corresponds to initial video files a3, a4, and a5 in the time interval "0:30-1:00", target video file b2 corresponding to the time interval "0:30-1:00" is generated based on initial video files a3, a4, and a5; assuming that channel identifier AAA does not correspond to an initial video file in the time interval "1:00-1:30", there is no target video file corresponding to the time interval "1:00-1:30", and so on.
[0065] At this point, at least one target video file corresponding to channel ID AAA is obtained. Each target video file corresponds to a time interval. If 48 time intervals are divided, the number of target video files corresponding to channel ID AAA is less than or equal to 48, meaning that some time intervals may not correspond to target video files.
[0066] In a possible implementation, for each time interval, taking the time interval "0:30-1:00" as an example, if there is an initial video file whose start time is earlier than the time interval and whose end time is within the time interval, for example, the start time of the initial video file is 0:20 and the end time is 0:35, then a first sub-video file is intercepted from the initial video file. The start time of the first sub-video file may be 0:30, and the end time of the first sub-video file may be 0:35, and the target video file includes the first sub-video file.
[0067] If there is an initial video file whose end time is later than the time interval and whose start time is within the time interval, for example, the start time of the initial video file is 0:55 and the end time is 1:35, then a second sub-video file is captured from the initial video file. The start time of the second sub-video file can be 0:55 and the end time of the second sub-video file can be 1:00, and the target video file includes the second sub-video file.
[0068] If there is an initial video file whose start time is earlier than the time interval and whose end time is later than the time interval, for example, the start time of the initial video file is 0:20 and the end time is 1:05, then a third sub-video file is captured from the initial video file. The start time of the third sub-video file can be 0:30 and the end time of the third sub-video file can be 1:00, and the target video file includes the third sub-video file.
[0069] If there is an initial video file whose start time is within the time interval and whose end time is within the time interval, for example, the start time of the initial video file is 0:40 and the end time is 0:45, the target video file includes the initial video file.
[0070] For ease of description, let's take a target video file as an example: it includes an initial video file (first sub-video file) with a start time of 0:30 and an end time of 0:35, an initial video file (0:40 and an end time of 0:45), and an initial video file (second sub-video file) with a start time of 0:55 and an end time of 1:00. The target video file is then spliced together. During the splicing process, the image at 0:35 is spliced with the image at 0:40, and the image at 0:45 is spliced with the image at 0:55.
[0071] Step 204: Display the search result list on the target display interface. For example, if the display mode of the client device is list display mode, the search result list is displayed on the target display interface.
[0072] Exemplarily, the search result list may include multiple data items. For each data item in the search result list, the data item includes search data corresponding to a target video file. The search data may include, but is not limited to, at least one of the following: the channel identifier of the target video file, the start time of the target video file, the end time of the target video file, and the duration of the target video file. In addition to the aforementioned content, the search data may also include the number of target video files corresponding to the channel identifier, etc., which is not limited to this.
[0073] The start time of the target video file is the earliest time of all the corresponding initial video files, the end time of the target video file is the latest time of all the corresponding initial video files, and the duration of the target video file is the sum of the durations of all the corresponding initial video files. For example, if the target video file corresponds to an initial video file with a start time of 0:30 and an end time of 0:35, an initial video file with a start time of 0:40 and an end time of 0:45, and an initial video file with a start time of 0:55 and an end time of 1:00, the start time is the earliest time of these video files, 0:30, and the end time is the latest time of these video files, 1:00, and the duration is 15 minutes (5+5+5). For another example, if the target video file corresponds to an initial video file with a start time of 0:30 and an end time of 0:33, and an initial video file with a start time of 0:40 and an end time of 0:45, the start time is the earliest time of these video files, 0:30, and the end time is the latest time of these video files, 0:45, and the duration is 8 minutes.
[0074] For example, see FIG3A , which shows an example of the search result list. As can be seen from FIG3A , channel identifier AAA corresponds to 6 target video files, the start time of the first target video file is 2023 / 11 / 10 12:10:10, the end time of the first target video file is 2023 / 11 / 10 12:30:10, the duration of the first target video file is 20 minutes, the channel identifier of the first target video file is channel identifier AAA, and the first target video file represents a data item in the search result list, and so on. Channel identifier BBB corresponds to 8 target video files, the start time of the first target video file is 2023 / 11 / 11 10:10:10, the end time of the first target video file is 2023 / 11 / 11 10:35:10, the duration of the first target video file is 25 minutes, the channel identifier of the first target video file is channel identifier BBB, and the first target video file represents a data item in the search result list, and so on.
[0075] In one possible implementation, when the search result list is displayed on the target display interface, K data items are initially loaded into the search result list. K can be a positive integer, such as 100, 150, 200, etc. For example, if K is 150, 150 data items are initially loaded into the search result list. That is, the search result list shown in FIG3A displays 150 data items. In subsequent processes, the remaining data items can be incrementally loaded by scrolling. For example, when scrolling down the search result list, the remaining data items can be incrementally loaded. When scrolling down the search result list, the 151st data item, the 152nd data item, and so on are loaded sequentially.
[0076] Step 205: Display the target timeline on the target display interface. For example, if the display mode of the client device is a list display mode, the search result list and the target timeline are displayed simultaneously on the target display interface.
[0077] For example, the target timeline may be the total length of the timeline, and the total length of the timeline may be divided into multiple time intervals. Therefore, the target timeline may include multiple time intervals and a display mark corresponding to each time interval, and the display mark indicates whether the target video file exists in the time interval or not. For example, the target timeline may include the time interval 0:00-0:30, the time interval 0:30-1:00, the time interval 1:00-1:30, ..., and so on, without limitation.
[0078] For example, for multiple time intervals on the target timeline, each time interval can correspond to a display mark. If a target video file exists in a certain time interval, that is, the start time and end time of the target video file are within the time interval, then a display mark is configured for the time interval, and the display mark indicates that the target video file exists in the time interval. If no target video file exists in a certain time interval, that is, the start time and end time of all target video files do not fall within the time interval, then a display mark is configured for the time interval, and the display mark indicates that no target video file exists in the time interval.
[0079] The display mark can be a color display mark, such as a gray display mark or a black display mark indicating that the target video file exists in the time interval, and a white display mark indicating that the target video file does not exist in the time interval. The display mark can be a shape display mark, such as a rectangular display mark or a square display mark indicating that the target video file exists in the time interval, and a circular display mark indicating that the target video file does not exist in the time interval. The display mark can be a digital display mark, such as the number 1 indicating that the target video file exists in the time interval, and the number 2 indicating that the target video file does not exist in the time interval. The display mark can be a symbol display mark, such as a period indicating that the target video file exists in the time interval, and a question mark indicating that the target video file does not exist in the time interval. Of course, the above are just a few examples of display marks, and there is no limitation to this display mark.
[0080] For example, see Figure 3B, which shows a schematic diagram of a target display interface simultaneously displaying a search result list and a target timeline. For example, a target timeline including 12 time intervals is used for illustration. The first time interval is 0:00-1:00, and a gray mark indicates that a target video file exists in that time interval. The second time interval is 1:00-2:00, and a gray mark indicates that a target video file exists in that time interval. The third time interval is 2:00-3:00, and a white mark indicates that a target video file does not exist in that time interval. This process can be repeated to display the existence of target video files in all 12 time intervals.
[0081] In summary, the target timeline may include multiple time intervals and a display mark corresponding to each time interval, and the display mark indicates whether there is a target video file in the time interval.
[0082] In one possible implementation, target video files of different channels can be distinguished by using different color markings on the target time axis. For example, the display mark can be a color display mark, such as a gray display mark indicating that a target video file corresponding to the channel identifier AAA exists in the time interval, a black display mark indicating that a target video file corresponding to the channel identifier BBB exists in the time interval, a red display mark indicating that a target video file corresponding to the channel identifier CCC exists in the time interval, a purple display mark indicating that a target video file corresponding to the channel identifier DDD exists in the time interval, and a white display mark indicating that no target video file exists in the time interval. On this basis, if a target video file corresponding to the channel identifier CCC exists in a certain time interval, a red display mark is configured for the time interval. If a target video file corresponding to the channel identifier CCC and a target video file corresponding to the channel identifier DDD exist in a certain time interval, a red display mark and a purple display mark are configured for the time interval, that is, a display mark after the red and purple colors are merged. Of course, the above is just an example, and different color display marks can be used to distinguish target video files corresponding to different channel identifiers.
[0083] In one possible implementation, the target timeline can also support scaling time accuracy (i.e., scaling the total length of the timeline), and then automatically recombining all video files according to the accuracy of the target timeline. The higher the accuracy of the target timeline, the shorter the duration of the corresponding video file.
[0084] For example, if a zoom operation instruction is received for a target timeline, the total length of the timeline after the change that matches the zoom operation instruction can be obtained. If the zoom operation instruction is a zoom operation instruction, such as a mouse wheel down operation (or mouse wheel up operation) or an upward press of the zoom button, the zoom operation instruction can be triggered. Under the zoom operation instruction, the total length of the timeline can be increased to obtain the changed total length of the timeline, and then the second preset video segment duration corresponding to the changed total length of the timeline can be obtained. Based on the second preset video segment duration, the changed total length of the timeline is divided into multiple time intervals, i.e., the time interval changes. When the time interval changes, the target video file will also change synchronously. For example, based on the changed time interval, the target video file will be generated based on the initial video file in the time interval. When the time interval changes, the displayed target timeline will also change synchronously. The longer the total length of the changed timeline, the longer the second preset video segment duration.
[0085] For example, if the current timeline length is 24 hours, using the zoom command increases the timeline length to 7 days, and the video clip length increases from 30 minutes to 3 hours. In this way, the target video file is regenerated based on the 3-hour period, and the target timeline is redisplayed. The implementation method is similar to the above steps and will not be repeated here. For another example, if the current timeline length is 12 hours, using the zoom command increases the timeline length to 24 hours, and the video clip length increases from 20 minutes to 30 minutes.
[0086] For example, if a zoom operation instruction is received for a target timeline, the total length of the timeline after the change that matches the zoom operation instruction can be obtained. If the zoom operation instruction is a zoom-out instruction, such as an upward (or downward) mouse wheel operation or a downward press of the zoom button, the zoom-out instruction can be triggered. In response to the zoom-out instruction, the total length of the timeline can be reduced to obtain the changed total length of the timeline. A second preset video segment duration corresponding to the changed total length of the timeline can then be obtained. Based on the second preset video segment duration, the changed total length of the timeline is divided into multiple time intervals, i.e., the time intervals are changed. When the time intervals change, the target video file is also changed synchronously. For example, based on the changed time intervals, a target video file is generated based on the initial video file within the time interval. When the time intervals change, the displayed target timeline also changes synchronously. For example, if the current total length of the timeline is 24 hours, a zoom-out instruction reduces the total length of the timeline to 12 hours, and the video segment duration is reduced from 30 minutes to 20 minutes.
[0087] For example, as shown in FIG3C , the target timeline may include a zoom button. Clicking the plus sign (+) indicates pressing the zoom button upward, triggering a zoom-in instruction, i.e., increasing the total length of the timeline. Clicking the minus sign (-) indicates pressing the zoom button downward, triggering a zoom-out instruction, i.e., decreasing the total length of the timeline. In FIG3C , when the total length of the timeline is 12 hours, the length of the video clip is 1 hour. This is for convenience only; in actual applications, the length of the video clip may be 20 minutes.
[0088] As shown in FIG3C , by pressing the zoom button upward or downward, the total length of the time axis can be controlled to be 7 days (3 hours of video clip length), 24 hours (30 minutes of video clip length), 12 hours (20 minutes of video clip length), or 6 hours (10 minutes of video clip length). Of course, these are just a few examples of the total length of the time axis, and there is no limit to the total length of the time axis.
[0089] For example, as shown in FIG3D , the target timeline may also display a search time range (e.g., 2023 / 11 / 8 12:10:10—2023 / 11 / 12 12:10:10), a midpoint date (e.g., 2023 / 11 / 10 12:10:10), a zoom button, and other content. There are no restrictions on the display content of this target timeline. The search time range is the search time range of the search condition, the midpoint date is the midpoint date of the search time range, and the zoom button is used to provide an upward and downward push button. By pressing the zoom button upward and downward, the total length of the target timeline can be controlled to be 7 days, 24 hours, 12 hours, 6 hours, etc.
[0090] In each time interval of the target timeline, the target video files of all channels can be spliced together, and the video clip length of the target video file can be automatically divided according to the fixed length corresponding to the total length of the timeline.
[0091] The total length of the target time axis can also be adaptively adjusted according to the search time range. For example, if the search time range is 1 day, the total length of the target time axis will be automatically adjusted to 24 hours. If the search time range is greater than 1 day, the total length of the target time axis will be automatically adjusted to 7 days.
[0092] When long pressing and dragging the target timeline, if the total length of the target timeline exceeds the selected search time range, a prompt may appear indicating that the selected search time range has been exceeded and that the user should reselect the search time range.
[0093] In one possible implementation, the start time of the target video file is the start time of the camera's time zone (i.e., the channel time zone), and the end time of the target video file is the end time of the camera's time zone. However, the camera's time zone may be different from the client device's time zone. Based on this, the following approach can be adopted:
[0094] Method 1: For each target video file, the start time of the target video file (i.e., the start time under the time zone of the camera, the time zone of the camera can be called the original time zone) can be converted to the start time of the target time zone (the target time zone can be the time zone of the client device, or a fixed time zone can be used as the target time zone), and the end time of the target video file (i.e., the end time of the original time zone) can be converted to the end time of the target time zone. On this basis, the time interval to which the target video file belongs on the target time axis can be determined based on the start time of the target time zone and the end time of the target time zone of the target video file. For example, if the start time of the target time zone of the target video file and / or the end time of the target time zone are located in a certain time interval of the target time axis, then the target video file belongs to that time interval.
[0095] Obviously, based on the above processing, target video files in different time zones can be uniformly converted into the target time zone of the client device, and then displayed based on the start time and / or end time of the target time zone.
[0096] Method 2: For each target video file, the time interval to which the target video file belongs on the target timeline can be determined based on the start time and end time of the target video file's original time zone. For example, if the start time and / or end time of the target video file's original time zone fall within a certain time interval on the target timeline, the target video file belongs to that time interval.
[0097] Obviously, in method 2, there is no need to uniformly convert the target video files in different time zones into the target time zone of the client device. Instead, based on the original time zone of the target video file (i.e., the time zone of the camera), the start time and / or end time of the original time zone are displayed on the target timeline.
[0098] Step 206: If a floating operation instruction is received for a first time interval in which target video files exist, the channel identifiers and / or start times of all target video files corresponding to the first time interval are displayed.
[0099] For example, after the search result list and target timeline are displayed on the target display interface, the user can view the target timeline to determine which time intervals contain target video files and which time intervals do not. For example, time intervals marked with gray display indicate target video files, while time intervals marked with white display indicate target video files. Based on this, if the user wishes to view relevant information about target video files corresponding to a specific time interval, they can hover the mouse over the time interval on the target timeline, and the time interval on the target timeline can be recorded as the first time interval. Obviously, the first time interval can be any time interval where the target video files exist.
[0100] If a floating operation instruction for the first time interval is received (such as floating the mouse over the first time interval), the channel identifiers and start times of all target video files corresponding to the first time interval can be displayed, that is, the channel identifiers and start times of all target video files corresponding to the first time interval can be popped up.
[0101] For example, after displaying the channel identifiers and start times of all target video files corresponding to the first time interval, the user can check which target video files are in the first time interval.
[0102] In one possible implementation, if the time interval to which the target video file belongs on the target time axis is determined based on the start time and end time of the target time zone of the target video file, the start time of the target time zone of all target video files corresponding to the first time interval may be displayed when the start time of all target video files corresponding to the first time interval is displayed. If the time interval to which the target video file belongs on the target time axis is determined based on the start time and end time of the original time zone of the target video file, the start time of the original time zone of all target video files corresponding to the first time interval may be displayed when the start time of all target video files corresponding to the first time interval is displayed.
[0103] Step 207: If a click operation instruction is received for the first target video file (any target video file) corresponding to the first time interval, the screen of the first target video file is played, and / or the search result list displayed on the target display interface is jumped to the data item corresponding to the first target video file.
[0104] For example, after the channel identifiers and start times of all target video files corresponding to the first time interval are displayed on the target display interface, the user can view which target video files are within the first time interval. If the user wishes to view detailed information about a target video file (i.e., any target video file within the first time interval, which is referred to as the first target video file), the user can click the channel identifier of the first target video file, or click the start time of the first target video file.
[0105] If a click operation instruction for the first target video file is received (such as clicking the channel identifier or start time of the first target video file), the screen of the first target video file can be played, that is, the screen of the first target video file pops up to display the first target video file to the user. There is no restriction on this process.
[0106] If a click operation instruction is received for the first target video file, the search result list displayed on the target display interface can jump to the data item corresponding to the first target video file, that is, the data item corresponding to the first target video file can be loaded to the first page of the search result list for display. Obviously, if a click operation instruction is received for the first target video file, and the search result list has not yet loaded the data item corresponding to the first target video file, the data can be directly incrementally loaded to the page where the data item corresponding to the first target video file is located, thereby achieving the effect of rapid linkage positioning between the target timeline and the search result list.
[0107] In a possible implementation, in order to jump the search result list displayed on the target display interface to the data item corresponding to the first target video file, the following method can also be used:
[0108] First, the first sort position of the last target video file currently loaded in the search result list is determined, and the second sort position of the first target video file is determined; wherein the sort position is used to represent the position relationship of the data item of the target video file among the data items of all target video files.
[0109] For example, when a search result corresponding to a search condition is obtained, the search result includes multiple target video files, and the search result list needs to display the data items of these target video files. At this time, the order of the data items of these target video files has been determined. If the search result list has already loaded 100 data items, the first sort position of the last target video file currently loaded in the search result list is 100.
[0110] For example, assuming that the second sorting position of the first target video file is determined to be 450, it means that the data item of the first target video file is the 450th data item among the data items of all target video files.
[0111] Then, the number of interval positions between the second sort position and the first sort position and the number of data items loaded per page of the search result list are obtained. For example, the number of interval positions can be the difference between the second sort position and the first sort position, such as 350. For example, the number of data items loaded per page of the search result list is used to indicate how many data items are displayed per page of the search result list, such as 100 data items per page.
[0112] Then, the number of pages to jump to is determined based on the number of interval positions between the second sort position and the first sort position and the number of data items loaded per page of the search result list. For example, the number of pages to jump to can be determined by dividing the number of interval positions by the number of data items loaded per page and then rounding down. For example, 350 can be divided by 100 and then rounded down to obtain a number of pages to jump to, which is 3.
[0113] Then, based on the jump interval page number, the search result list is jumped to the data item corresponding to the first target video file, thereby loading and displaying the data item corresponding to the first target video file. For example, the search result list can jump to page 4 after a jump interval of 3 pages (i.e., the jump interval page number), thereby jumping to the page where the data item corresponding to the first target video file is located, and then loading and displaying the data item corresponding to the first target video file. For example, the first page of the interval contains data items 101-200 (these items do not need to be loaded at this time), the second page of the interval contains data items 201-300 (these items do not need to be loaded at this time), and the third page of the interval contains data items 301-400 (these items do not need to be loaded at this time). Obviously, the fourth page jumped to contains data items 401-500 (these items do need to be loaded at this time). That is, the search result list displayed on the target display interface displays data items 401-500, and these data items include the data item corresponding to the first target video file (i.e., data item 450), and thus this data item is displayed.
[0114] At this point, the search result list displayed on the target display interface is successfully jumped to the data item corresponding to the first target video file, thereby achieving the effect of rapid linkage positioning of the target time axis and the search result list.
[0115] In one possible implementation, when the retrieval result list is displayed on the target display interface, the retrieval result list includes data items of multiple target video files, and the data items include the channel identifier, start time, end time, and other contents of the target video files, and the user can view the data items of these target video files.
[0116] If the user wishes to view detailed information of a target video file (i.e., any target video file, which is recorded as a second target video file), the user clicks the channel identifier of the second target video file, or the start time of the second target video file, or the end time of the second target video file. If a click operation instruction is received for a data item of the second target video file, the screen of the second target video file is played, i.e., the screen of the second target video file pops up to display the second target video file to the user.
[0117] On this basis, in order to link the retrieval result list with the target timeline, when playing the screen of the second target video file based on the retrieval result list, the time interval to which the second target video file belongs on the target timeline can also be determined based on the start time and end time of the second target video file (that is, the start time and / or end time of the second target video file is within this time interval).
[0118] Then, a played mark is set for the time interval on the target timeline. The played mark indicates that there is a target video file being played in the time interval. In this way, when the second target video file in the search result list is clicked to play the video file, the target timeline will also be marked as playing, thereby linking the search result list with the target timeline.
[0119] For example, if the display mark is a color display mark, the played mark can also be a color played mark. The color played mark needs to be different from the color display mark, such as the played mark needs to be distinguished from the gray display mark and the white display mark. For example, as shown in Figure 3E, 3:00-4:00 corresponds to the played mark, which indicates that the target video file is currently playing during this time period. For another example, if the display mark is a shape display mark, the played mark can also be a shape played mark. The shape played mark needs to be different from the shape display mark, and so on. There are no restrictions on the played mark.
[0120] In one possible implementation, when playing another target video file (referred to as a third target video file), for example, automatically playing the screen of the third target video file after the second target video file is played, or playing the screen of the third target video file upon receiving a click operation instruction for a data item of the third target video file, the following method may be used: determining the time interval to which the third target video file belongs on the target timeline based on the start time and end time of the third target video file, setting a played mark for the time interval, and deleting the played mark set for the time interval to which the second target video file belongs, thereby automatically adjusting the played mark from the second target video file to the third target video file.
[0121] As can be seen from the above technical solutions, in the disclosed embodiments, multiple time intervals are divided based on the duration of a video clip. One or more initial video files within the time interval are combined to obtain a target video file, and the search data for the target video file is displayed. This integrates the video files within the time interval and displays the video files at the time interval granularity, improving user experience and display performance. The search results list and the target timeline can be displayed simultaneously on the target display interface, thereby linking the target timeline and the search results list. The target timeline displays the temporal distribution of the overall search results, while the search results for the video files are displayed in the search results list. This allows users to view both the temporal distribution of the overall search results and the search results for the video files, thereby improving user experience and display performance. This solves the problem of large data volumes being loaded in pages, resulting in an inability to perceive the overall storage status of the video files. It also solves the problem of being unable to identify the required video files due to excessively large video files. A solution has been designed that balances performance with support for paged data loading and convenient and quick video file segmentation. This solution displays the complete data of all channels in the current search on the target timeline, and automatically segments the search results video files by zooming in and out of the timeline.
[0122] In an embodiment of the present disclosure, a method for displaying search results is proposed. The method can be applied to a client device. FIG4 is a flow chart of the method for displaying search results. As shown in FIG4 , the method can include the following steps 401 to 407 .
[0123] Step 401: Obtain search results corresponding to the search conditions.
[0124] Step 402: Divide the acquired video clip into multiple time intervals based on the duration of the video clip.
[0125] Step 403: For each of the multiple time intervals, based on the start time and end time of all initial video files corresponding to the same channel identifier, a target video file is generated based on one or more initial video files in the time interval, that is, the initial video files corresponding to the same channel identifier in the time interval are combined into the target video file.
[0126] Illustratively, steps 401 to 403 are similar to steps 201 to 203 and are not described again here.
[0127] Step 404: Display the search result thumbnails on the target display interface. For example, if the display mode of the client device is thumbnail display mode, the search result thumbnails are displayed on the target display interface.
[0128] Exemplarily, the search result thumbnail may include multiple data items. For each data item in the search result thumbnail, the data item includes search data corresponding to a target video file. The search data may include, but is not limited to, at least one of the following: a channel identifier of the target video file, a thumbnail of the target video file (e.g., a picture at the start time of the target video file), and the start time of the target video file. Of course, in addition to the above content, the search data may also include other content, which is not limited to this. The start time of the target video file is the earliest time of all the initial video files corresponding to the target video file.
[0129] For example, see FIG5A , which shows an example of the retrieval result thumbnail. As can be seen from FIG5A , the channel identifier AAA can correspond to 6 target video files, the start time of the first target video file is 2023 / 11 / 10 12:10:10, and the thumbnail of the first target video file is shown. The channel identifier of the first target video file is the channel identifier AAA, and the first target video file represents a data item of the retrieval result thumbnail, and so on. The channel identifier BBB can correspond to 8 target video files, the start time of the first target video file is 2023 / 11 / 11 10:10:10, and the thumbnail of the first target video file is shown. The channel identifier of the first target video file is the channel identifier BBB, and the first target video file represents a data item of the retrieval result thumbnail, and so on.
[0130] In one possible implementation, when displaying the search result thumbnails on the target display interface, the search result thumbnails initially load K data items, where K can be a positive integer. For example, if K is 150, the search result thumbnails initially load 150 data items, i.e., the search result thumbnails shown in FIG5A display 150 data items. Subsequently, the remaining data items can be incrementally loaded via scrolling.
[0131] Step 405: Display the target timeline on the target display interface. For example, if the client device's display mode is thumbnail display mode, the target display interface simultaneously displays the search result thumbnails and the target timeline. The target timeline may include multiple time intervals and a display mark corresponding to each time interval, with the display mark indicating whether the target video file exists in that time interval or not.
[0132] Step 406: If a floating operation instruction is received for a first time interval in which target video files exist, the channel identifiers and / or start times of all target video files corresponding to the first time interval are displayed.
[0133] Step 407: If a click operation instruction is received for the first target video file (any target video file) corresponding to the first time interval, the screen of the first target video file is played, and / or the search result list displayed on the target display interface is jumped to the data item corresponding to the first target video file.
[0134] Steps 405 to 407 are similar to steps 205 to 207, except that the search result list is replaced with search result thumbnails. For example, see Figure 5B, which is a schematic diagram of simultaneously displaying the search result thumbnails and the target timeline on the target display interface. Steps 405 to 407 will not be repeated.
[0135] As can be seen from the above technical solutions, in the disclosed embodiments, multiple time intervals are divided based on the duration of video clips. Initial video files within the time intervals are combined to obtain target video files, and the search data for the target video files is displayed. This integrates the video files within the time interval and displays the video files at the time interval granularity, improving user experience and display performance. The target display interface simultaneously displays the search result thumbnails and the target timeline, linking the target timeline and the search result thumbnails. The target timeline displays the temporal distribution of the overall search results, while the search result thumbnails display the search results for the video files. This allows users to view both the temporal distribution of the overall search results and the search results for the video files, improving user experience and display performance. This solution can solve the problem of large data volumes being loaded in pages, resulting in an inability to perceive the overall storage status of the video files. It can also solve the problem of being unable to identify the required video files due to excessively large video files. A solution has been designed that balances performance, supports paged data loading, and facilitates quick and convenient video file segmentation. This solution displays the complete data of all channels retrieved in the current search on the target timeline, and automatically segments the search result video files by zooming in and out of the timeline.
[0136] Based on the same application concept as the above method, a search result display device is proposed in the embodiment of the present disclosure. See Figure 6, which is a structural diagram of the device. The device may include: an acquisition module 61, a processing module 62 and a display module 63.
[0137] An acquisition module 61 is used to obtain retrieval results corresponding to the retrieval conditions, wherein the retrieval results include multiple initial video files and the channel identifier, start time and end time of each initial video file in the multiple initial video files; a processing module 62 is used to divide the video clip into multiple time intervals based on the length of the acquired video clip; for each of the multiple time intervals, based on the start time and end time of all initial video files corresponding to the same channel identifier, a target video file is generated based on one or more initial video files in the time interval; a display module 63 is used to display the retrieval result structure on the target display interface, wherein the retrieval result structure includes multiple data items, and each of the multiple data items includes retrieval data corresponding to a target video file.
[0138] Exemplarily, the processing module 62 generates a target video file based on the start time and end time of all initial video files corresponding to the same channel identifier and based on one or more initial video files in the time interval. Specifically, if there is an initial video file whose start time is earlier than the time interval and whose end time is in the time interval, a first sub-video file is intercepted from the initial video file, where the start time of the first sub-video file is the start time of the time interval and the end time of the first sub-video file is the end time of the initial video file; the target video file is generated based on the first sub-video file; if there is an initial video file whose end time is later than the time interval and whose start time is in the time interval, a second sub-video file is intercepted from the initial video file. file, the start time of the second sub-recording file is the start time of the initial recording file, and the end time of the second sub-recording file is the end time of the time interval; the target recording file is generated based on the second sub-recording file; if there is an initial recording file whose start time is earlier than the time interval and whose end time is later than the time interval, a third sub-recording file is intercepted from the initial recording file, the start time of the third sub-recording file is the start time of the time interval, and the end time of the third sub-recording file is the end time of the time interval; the target recording file is generated based on the third sub-recording file; if there is an initial recording file whose start time is within the time interval and whose end time is within the time interval, the target recording file is generated based on the initial recording file.
[0139] Exemplarily, if the display mode is a list display mode, the retrieval result structure is a retrieval result list, and the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the start time of the target video file, the end time of the target video file, and the duration of the target video file; wherein, the start time of the target video file is the earliest time of all (one or more) initial video files corresponding to the target video file, the end time of the target video file is the latest time of all initial video files corresponding to the target video file, and the duration of the target video file is the sum of the durations of all initial video files corresponding to the target video file; or, if the display mode is a thumbnail display mode, the retrieval result structure is a retrieval result thumbnail, and the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the thumbnail of the target video file, and the start time of the target video file; wherein, the thumbnail of the target video file is the video screen at the start time of the target video file.
[0140] Exemplarily, when the processing module 62 divides the acquired video clip length into multiple time intervals, it is specifically used to: obtain the total time axis length of the target time axis, determine the first preset video clip length corresponding to the total time axis length; and divide the total time axis length into multiple time intervals based on the first preset video clip length.
[0141] Exemplarily, the display module 63 is also used to display the target timeline on the target display interface, the length of the target timeline is the total length of the timeline, and the target timeline includes the multiple time intervals and a display mark corresponding to each time interval in the multiple time intervals, and the display mark indicates whether there is a target video file in the time interval; the processing module 62 is also used to: if a floating operation instruction for a first time interval is received, then display the channel identifier and / or start time of all target video files corresponding to the first time interval, wherein the first time interval is any time interval in the multiple time intervals in which the display mark indicates the existence of a target video file; if a click operation instruction for a first target video file corresponding to the first time interval is received, then play the picture of the first target video file, and / or jump the search result structure displayed on the target display interface to the data item corresponding to the first target video file, wherein the first target video file is any target video file within the first time interval.
[0142] Exemplarily, the processing module 62 is further used to: for each target video file, convert the start time of the target video file into the start time of the target time zone, and convert the end time of the target video file into the end time of the target time zone; determine the time interval to which the target video file belongs on the target time axis based on the start time of the target time zone and the end time of the target time zone of the target video file; when displaying the start time of all target video files corresponding to the first time interval, display the start time of the target time zone of all target video files corresponding to the first time interval; or, for each target video file, determine the time interval to which the target video file belongs on the target time axis based on the start time and the end time of the original time zone of the target video file; when displaying the start time of all target video files corresponding to the first time interval, display the start time of the original time zone of all target video files corresponding to the first time interval.
[0143] Exemplarily, the processing module 62 is further used for: if a zoom operation instruction for the target time axis is received, obtaining the total length of the time axis after the change that matches the zoom operation instruction; wherein, if the zoom operation instruction is a zoom-in operation instruction, increasing the total length of the time axis of the target time axis to obtain the total length of the time axis after the change; if the zoom operation instruction is a zoom-out operation instruction, reducing the total length of the time axis of the target time axis to obtain the total length of the time axis after the change; obtaining the second preset video clip length corresponding to the total length of the time axis after the change, and dividing the total length of the time axis after the change into multiple time intervals based on the second preset video clip length; wherein, the longer the total length of the time axis after the change, the longer the second preset video clip length.
[0144] Exemplarily, when the processing module 62 jumps the retrieval result structure displayed on the target display interface to the data item corresponding to the first target video file, it is specifically used to: determine the first sorting position of the last target video file currently loaded in the retrieval result structure, and the second sorting position of the first target video file; wherein, the first sorting position is used to represent the positional relationship of the data item of the last target video file among the data items of all target video files, and the second sorting position is used to represent the positional relationship of the target video file among the data items of all target video files; based on the number of interval positions between the second sorting position and the first sorting position, and the number of data items loaded per page of the retrieval result structure, determine the jump interval page number; based on the jump interval page number, jump the retrieval result structure to the data item corresponding to the first target video file, so as to load and display the data item corresponding to the first target video file.
[0145] Based on the same application concept as the above method, a client device is proposed in an embodiment of the present disclosure, as shown in Figure 7, the client device includes: a processor 71 and a machine-readable storage medium 72, the machine-readable storage medium 72 stores machine-executable instructions that can be executed by the processor 71; the processor 71 is used to execute the machine-executable instructions to implement the retrieval result display method disclosed in the above example of the present disclosure.
[0146] Based on the same application concept as the above method, an embodiment of the present disclosure further provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the search result display method disclosed in the above example of the present disclosure can be implemented.
[0147] The machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, a storage drive (such as a hard disk drive), a solid-state drive, any type of storage disk (such as a CD, DVD, etc.), or similar storage media, or a combination thereof.
[0148] The foregoing is merely an embodiment of the present disclosure and is not intended to limit the present disclosure. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure are intended to be included within the scope of the claims of the present disclosure.
Claims
1. A retrieval result display method, comprising: Obtaining a retrieval result corresponding to a retrieval condition, wherein the retrieval result includes a plurality of initial video files and the channel identifier, start time, and end time of each initial video file in the plurality of initial video files; Dividing a plurality of time intervals based on the obtained video segment duration; For each of the plurality of time intervals, based on the start time and end time of all initial video files corresponding to the same channel identifier, generating a target video file based on one or more initial video files within this time interval; Displaying a retrieval result structure on a target display interface, wherein the retrieval result structure includes a plurality of data items, and each data item in the plurality of data items includes retrieval data corresponding to one of the target video files.
2. The method according to claim 1, characterized in that, The generating a target video file based on the start time and end time of all initial video files corresponding to the same channel identifier and based on one or more initial video files within this time interval includes at least one of the following: If there is an initial video file whose start time is earlier than this time interval and whose end time is within this time interval, intercepting a first sub-video file from this initial video file, the start time of the first sub-video file being the start time of this time interval, and the end time of the first sub-video file being the end time of this initial video file; generating a target video file based on the first sub-video file; If there is an initial video file whose end time is later than this time interval and whose start time is within this time interval, intercepting a second sub-video file from this initial video file, the start time of the second sub-video file being the start time of this initial video file, and the end time of the second sub-video file being the end time of this time interval; generating a target video file based on the second sub-video file; If there is an initial video file whose start time is earlier than this time interval and whose end time is later than this time interval, intercepting a third sub-video file from this initial video file, the start time of the third sub-video file being the start time of this time interval, and the end time of the third sub-video file being the end time of this time interval; generating a target video file based on the third sub-video file; If there is an initial video file whose start time is within this time interval and whose end time is within this time interval, generating a target video file based on this initial video file.
3. The method according to claim 1 or 2, wherein If the display mode is the list display mode, the retrieval result structure is a retrieval result list, and the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the start time of the target video file, the end time of the target video file, and the duration of the target video file; wherein, the start time of the target video file is the earliest time of all the initial video files corresponding to the target video file, the end time of the target video file is the latest time of all the initial video files corresponding to the target video file, and the duration of the target video file is the sum of the durations of all the initial video files corresponding to the target video file. Alternatively, if the display mode is the thumbnail display mode, the retrieval result structure is a retrieval result thumbnail, and the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the thumbnail of the target video file, and the start time of the target video file; wherein, the thumbnail of the target video file is the video frame at the start time of the target video file.
4. The method according to claim 1, wherein The dividing of the multiple time intervals based on the obtained duration of the video segment includes: Obtaining the total length of the time axis of the target time axis; Determining a first preset video segment duration corresponding to the total length of the time axis; Dividing the total length of the time axis into multiple time intervals based on the first preset video segment duration.
5. The method according to claim 4, characterized in that The method further includes: Displaying the target time axis on the target display interface, the length of the target time axis being the total length of the time axis, the target time axis including the multiple time intervals and a display marker corresponding to each time interval in the multiple time intervals, the display marker indicating whether there is a target video file in that time interval.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: If a floating operation instruction for a first time interval is received, then display the channel identifier and / or the start time of all the target video files corresponding to the first time interval, wherein the first time interval is any one of the multiple time intervals in which the display marker indicates the existence of a target video file; If a click operation instruction for a first target video file corresponding to the first time interval is received, then play the video frame of the first target video file, and / or, jump the retrieval result structure displayed on the target display interface to the data item corresponding to the first target video file, wherein the first target video file is any one of the target video files in the first time interval.
7. The method according to claim 6, characterized in that, The method further includes: For each target video file, convert the start time of the target video file into the start time in the target time zone, and convert the end time of the target video file into the end time in the target time zone; Based on the start time and the end time in the target time zone of the target video file, determine the time interval to which the target video file belongs on the target time axis. When displaying the start times of all target video files corresponding to the first time interval, display the start time of the target time zone of all target video files corresponding to the first time interval; Or, For each target video file, based on the start time and end time of the original time zone of the target video file, determine the time interval to which the target video file belongs on the target timeline; When displaying the start times of all target video files corresponding to the first time interval, display the start time of the original time zone of all target video files corresponding to the first time interval.
8. The method according to claim 4, wherein The method further includes: If a zoom operation instruction for the target timeline is received, obtain the changed total timeline length that matches the zoom operation instruction; wherein, if the zoom operation instruction is a zoom-in operation instruction, increase the total timeline length of the target timeline to obtain the changed total timeline length; if the zoom operation instruction is a zoom-out operation instruction, reduce the total timeline length of the target timeline to obtain the changed total timeline length; Obtain the second preset video segment duration corresponding to the changed total timeline length, and divide the changed total timeline length into multiple time intervals based on the second preset video segment duration; Wherein, the longer the changed total timeline length is, the longer the second preset video segment duration is.
9. The method according to claim 6, wherein The operation of jumping the retrieval result structure displayed on the target display interface to the data item corresponding to the first target video file includes: Determine the first sorting position of the last target video file currently loaded in the retrieval result structure and the second sorting position of the first target video file; wherein, the first sorting position is used to represent the positional relationship of the data item of the last target video file among the data items of all target video files, and the second sorting position is used to represent the positional relationship of the target video file among the data items of all target video files; Based on the number of interval positions between the second sorting position and the first sorting position and the number of data items loaded per page of the retrieval result structure, determine the number of jump interval pages; Based on the number of jump interval pages, jump the retrieval result structure to the data item corresponding to the first target video file to load and display the data item corresponding to the first target video file.
10. A retrieval result display device, the device includes: An acquisition module, configured to acquire a retrieval result corresponding to a retrieval condition, wherein the retrieval result includes a plurality of initial video files and the channel identifier, start time, and end time of each initial video file in the plurality of initial video files; A processing module, configured to: divide a plurality of time intervals based on the acquired video segment duration; for each time interval of the plurality of time intervals, based on the start time and end time of all initial video files corresponding to the same channel identifier, generate a target video file based on one or more initial video files within the time interval; A display module, configured to: display a retrieval result structure on a target display interface, where the retrieval result structure includes a plurality of data items, and each data item in the plurality of data items includes retrieval data corresponding to one of the target video files.
11. The device according to claim 10, characterized in that, When generating a target video file based on start times and end times of all initial video files corresponding to the same channel identifier and based on one or more initial video files within this time interval, the processing module is specifically configured to: If there is an initial video file whose start time is earlier than this time interval and end time is within this time interval, intercept a first sub-video file from this initial video file, where the start time of the first sub-video file is the start time of this time interval, and the end time of the first sub-video file is the end time of this initial video file; generate a target video file based on the first sub-video file; If there is an initial video file whose end time is later than this time interval and start time is within this time interval, intercept a second sub-video file from this initial video file, where the start time of the second sub-video file is the start time of this initial video file, and the end time of the second sub-video file is the end time of this time interval; generate a target video file based on the second sub-video file; If there is an initial video file whose start time is earlier than this time interval and end time is later than this time interval, intercept a third sub-video file from this initial video file, where the start time of the third sub-video file is the start time of this time interval, and the end time of the third sub-video file is the end time of this time interval; generate a target video file based on the third sub-video file; If there is an initial video file whose start time is within this time interval and end time is within this time interval, generate a target video file based on this initial video file.
12. The apparatus according to claim 10, wherein If the display mode is a list display mode, the retrieval result structure is a retrieval result list, and the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the start time of the target video file, the end time of the target video file, and the duration of the target video file; where the start time of the target video file is the earliest time of all initial video files corresponding to the target video file, the end time of the target video file is the latest time of all initial video files corresponding to the target video file, and the duration of the target video file is the sum of the durations of all initial video files corresponding to the target video file; or, If the display mode is a thumbnail display mode, the retrieval result structure is a retrieval result thumbnail, and the retrieval data corresponding to the target video file includes at least one of the following: the channel identifier of the target video file, the thumbnail of the target video file, and the start time of the target video file; where the thumbnail of the target video file is the video frame at the start time of the target video file.
13. The device according to claim 10, wherein When the processing module divides multiple time intervals based on the duration of the acquired video clip, the processing module is specifically configured to: Obtain the total length of the time axis of the target time axis, and determine a first preset video clip duration corresponding to the total length of the time axis; Divide the total length of the time axis into multiple time intervals based on the first preset video clip duration; Wherein, the display module is further configured to display the target time axis on the target display interface, the length of the target time axis is the total length of the time axis, and the target time axis includes the multiple time intervals and a display mark corresponding to each time interval in the multiple time intervals, and the display mark indicates whether there is a target video file in this time interval.
14. The device according to any one of claims 10-13, wherein The processing module is further configured to: if a suspension operation instruction for a first time interval is received, display the channel identifier and / or start time of all target video files corresponding to the first time interval, where the first time interval is any time interval in the multiple time intervals where the display mark indicates that there is a target video file; if a click operation instruction for a first target video file corresponding to the first time interval is received, play the picture of the first target video file, and / or, jump the retrieval result structure displayed on the target display interface to the data item corresponding to the first target video file, where the first target video file is any target video file in the first time interval; or The processing module is further configured to: for each target video file, convert the start time of the target video file into the start time of the target time zone, and convert the end time of the target video file into the end time of the target time zone; based on the start time of the target time zone and the end time of the target time zone of the target video file, determine the time interval to which the target video file belongs on the target time axis; when displaying the start times of all target video files corresponding to the first time interval, display the start times of the target time zones of all target video files corresponding to the first time interval; or, for each target video file, determine the time interval to which the target video file belongs on the target time axis based on the start time and end time of the original time zone of the target video file; when displaying the start times of all target video files corresponding to the first time interval, display the start times of the original time zones of all target video files corresponding to the first time interval; or The processing module is further configured to: if a zoom operation instruction for the target timeline is received, obtain the total length of the changed timeline that matches the zoom operation instruction; wherein, if the zoom operation instruction is a zoom-in operation instruction, increase the total length of the target timeline to obtain the total length of the changed timeline; if the zoom operation instruction is a zoom-out operation instruction, reduce the total length of the target timeline to obtain the total length of the changed timeline; obtain the second preset video clip duration corresponding to the total length of the changed timeline, and divide the total length of the changed timeline into multiple time intervals based on the second preset video clip duration; wherein, the longer the total length of the changed timeline, the longer the second preset video clip duration; or, When the processing module jumps the retrieved result structure displayed on the target display interface to the data item corresponding to the first target video file, it is specifically configured to: determine the first sorting position of the last target video file currently loaded in the retrieved result structure, and the second sorting position of the first target video file; wherein, the first sorting position is used to represent the positional relationship of the data item of the last target video file among the data items of all target video files, and the second sorting position is used to represent the positional relationship of the target video file among the data items of all target video files; determine the jump interval number of pages based on the number of interval positions between the second sorting position and the first sorting position, and the number of data items loaded per page of the retrieved result structure; based on the jump interval number of pages, jump the retrieved result structure to the data item corresponding to the first target video file to load and display the data item corresponding to the first target video file.
15. A client device, comprising: A processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; The processor is configured to execute the machine-executable instructions to implement the method according to any one of claims 1-9.
Citation Information
Patent Citations
Method for quickly searching for videotape fragments
CN102567370A
Video file playback method and device
CN104639862A
Video file browsing method and device
CN105336347A
Video file playback method and device
CN108174132A
Quick video retrieval method and system based on time axis
CN115348477A