Audio and video retrieval method and device, electronic equipment and storage medium
By combining primary and secondary search tables, audio and video data can be quickly located and retrieved, solving the problem of slow audio and video file retrieval speed in existing technologies and achieving efficient audio and video data retrieval.
Patent Information
- Application Number
- CN202210209965.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-04
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-03-04
AI Technical Summary
Existing technologies have low speeds for retrieving audio and video files, resulting in excessively long retrieval times.
A combination of primary and secondary search tables is used. The primary search table is used to quickly locate the secondary data volume, and the statistical information in the data block is retrieved based on the secondary search table. The target vehicle information and audio/video data are retrieved only when the target statistical information meets the current search conditions.
It greatly reduces retrieval time and improves retrieval speed and accuracy.
Smart Images

Figure CN114610789B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of audio and video technology, and in particular to an audio and video retrieval method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the widespread use of electronic devices, audio and video recording and playback are being used in more and more scenarios; at the same time, users are demanding higher and higher speeds and accuracy in searching audio and video files.
[0003] In existing technologies, audio and video files are typically read one by one according to different search dimensions to determine whether there are audio and video files that meet the search criteria, and a corresponding list is generated based on the audio and video files that meet the search criteria.
[0004] As the number of stored audio and video files continues to increase, the existing method of reading each file one by one will result in excessively long retrieval times, thereby reducing retrieval speed. Summary of the Invention
[0005] This invention provides an audio and video retrieval method, apparatus, electronic device, and storage medium to address the shortcomings of low retrieval speed in existing technologies.
[0006] This invention provides an audio and video retrieval method, comprising:
[0007] Get the current search criteria;
[0008] Each secondary data body is retrieved based on a primary search table; each secondary data body corresponds to a secondary search table, and each secondary data body includes at least one data block; each data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information;
[0009] Statistical information in each data block of the corresponding secondary data body is retrieved based on each of the secondary retrieval tables;
[0010] When target statistical information that meets the current search conditions is retrieved, and it is determined that there is target vehicle information corresponding to the current search conditions in the target data block corresponding to the target statistical information, the audio and video data corresponding to the target vehicle information is determined as the target audio and video data corresponding to the current search conditions.
[0011] According to an audio / video retrieval method provided by the present invention, before obtaining the current retrieval conditions, the method further includes:
[0012] For each of the secondary data volumes, a corresponding secondary retrieval table is constructed based on the location information of each data block in the secondary data volume, and each secondary retrieval table and the corresponding secondary data volume constitute a primary data volume;
[0013] The first-level retrieval table is constructed based on the location information of each of the second-level data volumes.
[0014] According to an audio / video retrieval method provided by the present invention, the step of retrieving each secondary data body based on a primary retrieval table includes:
[0015] Each secondary data body is retrieved based on the location information of each secondary data body recorded in the primary retrieval table.
[0016] According to an audio / video retrieval method provided by the present invention, the step of retrieving statistical information in each data block of the corresponding secondary data body based on each of the secondary retrieval tables includes:
[0017] Based on the location information of each data block recorded in each of the secondary retrieval tables, the statistical information in each data block of the corresponding secondary data body is retrieved.
[0018] According to an audio and video retrieval method provided by the present invention, the method further includes: storing a primary retrieval backup table and a secondary retrieval backup table in a preset storage space.
[0019] According to an audio and video retrieval method provided by the present invention, the vehicle information includes at least one of the following: vehicle travel time, vehicle travel speed, vehicle travel area, switch status, and alarm information; the current retrieval conditions include at least one of the following: time, speed, area, switch status, and alarm information.
[0020] According to an audio and video retrieval method provided by the present invention, the statistical information includes at least one of the following: threshold information of vehicle driving speed, threshold information of vehicle driving area, information on the presence or absence of switch signals, and information on the presence or absence of alarms.
[0021] The present invention also provides an audio and video retrieval device, comprising:
[0022] The retrieval unit is used to retrieve the current search criteria;
[0023] The first retrieval unit is used to retrieve each secondary data body based on the primary retrieval table; each secondary data body corresponds to a secondary retrieval table, and the secondary data body includes at least one data block; the data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information;
[0024] The second retrieval unit is used to retrieve statistical information in each data block of the corresponding secondary data body based on each of the secondary retrieval tables;
[0025] The determining unit is configured to, when it retrieves target statistical information that satisfies the current search conditions, and determines that there is target vehicle information corresponding to the current search conditions in the target data block corresponding to the target statistical information, determine the audio and video data corresponding to the target vehicle information as the target audio and video data corresponding to the current search conditions.
[0026] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the audio and video retrieval method described above.
[0027] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the audio and video retrieval method as described above.
[0028] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the audio and video retrieval method described above.
[0029] The present invention provides an audio and video retrieval method, device, electronic device, and storage medium. When the current retrieval conditions are obtained, statistical information in each data block is retrieved based on a primary retrieval table and a secondary retrieval table. Only when target statistical information that meets the current retrieval conditions is found, the corresponding target vehicle information and target audio and video data are further retrieved based on the target statistical information. There is no need to retrieve vehicle information and audio and video data corresponding to statistical information that does not meet the current retrieval conditions, which greatly reduces retrieval time and improves retrieval speed. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0031] Figure 1 This is one of the flowcharts illustrating the audio and video retrieval method provided by the present invention;
[0032] Figure 2 This is the second flowchart of the audio and video retrieval method provided by the present invention;
[0033] Figure 3 This is a schematic diagram of the data structure provided by the present invention;
[0034] Figure 4 This is a schematic diagram of the data block structure provided by the present invention;
[0035] Figure 5 This is the third flowchart illustrating the audio and video retrieval method provided by this invention;
[0036] Figure 6 This is a schematic diagram of the audio and video retrieval device provided by the present invention;
[0037] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0039] The subject of this invention can be any electronic device with the function of recording audio and video data, such as a vehicle video recorder, mobile phone, computer, etc.
[0040] The following is combined with Figures 1-5 The audio and video retrieval method of the present invention is described.
[0041] Figure 1 This is one of the flowcharts illustrating the audio and video retrieval method provided by the present invention, such as... Figure 1 As shown, the audio and video retrieval method includes the following steps:
[0042] Step 101: Obtain the current search criteria.
[0043] The current search criteria can include vehicle travel time, speed, area, switch status, and alarm information. The area can be the city or road segment where the vehicle is traveling, such as **highway**; switch status can be reverse, left turn, right turn, reverse, etc.; alarm information can be overspeed alarm, illegal parking alarm, low oil pressure alarm, etc.
[0044] For example, the current search criteria can be entered by the user or obtained by the electronic device from other devices.
[0045] Step 102: Retrieve each secondary data body based on the primary search table.
[0046] Each of the secondary data volumes corresponds to a secondary retrieval table, and each secondary data volume includes at least one data block; each data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information.
[0047] Specifically, the primary search table in this invention stores the start and end positions of the secondary data bodies, thus allowing the location of the secondary data bodies to be determined through the primary search table. Each secondary data body corresponds to a secondary search table, and each secondary data body includes at least one data block. The secondary search table stores the start and end positions of each data block, allowing the location of the data block to be determined through the secondary search table, thereby querying at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information contained within the data block.
[0048] It should be noted that the data body involved in this invention is a storage space for a segment of data, used to store related data.
[0049] Step 103: Retrieve statistical information from each data block in the corresponding secondary data body based on each of the secondary retrieval tables.
[0050] It is understandable that although each data block includes an audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information, the amount of statistical information of vehicle information is relatively small. Therefore, in order to speed up the retrieval and save the retrieval time, this invention first retrieves the statistical information in each data block of the corresponding secondary data body based on each secondary retrieval table.
[0051] Step 104: When target statistical information that meets the current search conditions is retrieved, and it is determined that there is target vehicle information corresponding to the current search conditions in the target data block corresponding to the target statistical information, the audio and video data corresponding to the target vehicle information is determined as the target audio and video data corresponding to the current search conditions.
[0052] Specifically, since each data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information, after retrieving the target statistical information that meets the current search conditions, the target vehicle information corresponding to the current search conditions can be retrieved in the data block corresponding to the target statistical information. Then, the audio / video data corresponding to the target vehicle information is determined as the target audio / video data. For data blocks corresponding to statistical information that do not meet the current search conditions, there is no need to search, which can reduce search time and improve search speed.
[0053] For example, the current search criteria can be one or a combination of the above search criteria.
[0054] For example, if the current search condition is to retrieve audio and video data with a speed greater than 90 kilometers per hour (km / h), the stored statistical information for the audio and video data includes statistics for speeds less than 60 km / h, statistics for speeds greater than 60 km / h and less than 90 km / h, and statistics for speeds greater than 90 km / h. Among these, the vehicle information corresponding to the statistics for speeds less than 60 km / h includes vehicle speed, and the corresponding audio and video data includes audio and video data 1; the vehicle information corresponding to the statistics for speeds greater than 60 km / h and less than 90 km / h includes vehicle speed and on / off status, and the corresponding audio and video data includes audio and video data 2. The vehicle information corresponding to the statistical information greater than 90 km / h includes driving speed, and the corresponding audio and video data includes audio and video data 3 and audio and video data 4. Thus, when the current search condition is to search for audio and video data greater than 90 km / h, it can be seen that only the audio and video data corresponding to the statistical information greater than 90 km / h meets the current search condition. Therefore, only the vehicle information corresponding to the statistical information greater than 90 km / h is searched. It can be seen that the vehicle information corresponding to the statistical information greater than 90 km / h includes driving speed, which meets the condition. Therefore, the audio and video data 3 and audio and video data 4 corresponding to driving speed are determined as the target audio and video data.
[0055] For example, the current search criteria are: the vehicle travel time is between 18:02 and 18:12, and the travel speed is greater than 90 km / h. Unlike the example above, the statistical information corresponding to the stored audio and video data also includes the vehicle travel time between 17:30 and 18:00, 18:00 and 18:30, and 18:30 and 19:00. According to the search results, only audio and video data corresponding to the statistical information of the vehicle travel time between 18:00 and 18:30 and the statistical information of the vehicle travel speed greater than 90 km / h meets the current search criteria. Among them, the vehicle information corresponding to the statistical information of greater than 90 km / h can include vehicle speed, travel time, switch status, etc. Then, it is searched to see if there is vehicle information about vehicle speed and travel time. If so, the audio and video data that meets the current search criteria is used as the target audio and video data.
[0056] For example, the current search criteria could be: retrieve audio and video data of a vehicle driving on the xx1 highway section and reversing. The stored statistical information corresponding to the audio and video data includes statistics on the vehicle driving on the xx1 highway section, the xx2 highway section, and the xx3 highway section, etc. Among them, the audio and video data corresponding to the statistical information of the xx1 highway section includes audio and video data 1, the audio and video data corresponding to the statistical information of the xx2 highway section includes audio and video data 2, and the audio and video data corresponding to the statistical information of the xx3 highway section includes audio and video data 3. Then, the search process is as follows: only audio and video data corresponding to the statistical information of the vehicle driving on the xx1 highway section and having switch signals meet the current search criteria. The vehicle information corresponding to the switch signal statistics can include the vehicle reversing, turning left, turning right, and reversing, etc. Then, it searches for information about reversing vehicles. If there is, the audio and video data that meets the current search criteria is used as the target audio and video data.
[0057] The audio and video retrieval method provided by this invention, when the current retrieval conditions are obtained, retrieves statistical information in each data block based on the first-level retrieval table and the second-level retrieval table. Only when the target statistical information that meets the current retrieval conditions is retrieved, the corresponding target vehicle information and target audio and video data are further retrieved based on the target statistical information. There is no need to retrieve vehicle information and audio and video data corresponding to statistical information that does not meet the current retrieval conditions, which greatly reduces retrieval time and improves retrieval speed.
[0058] Optionally, Figure 2 This is the second flowchart illustrating the audio and video retrieval method provided by this invention, as shown below. Figure 2 As shown, before obtaining the current search criteria, the method further includes the following steps:
[0059] Step 105: For each of the secondary data volumes, construct a corresponding secondary retrieval table based on the location information of each data block in the secondary data volume. Each secondary retrieval table and the corresponding secondary data volume constitute a primary data volume.
[0060] Step 106: Construct the first-level retrieval table based on the location information of each of the secondary data volumes.
[0061] Figure 3 This is a schematic diagram of the data structure provided by the present invention, such as... Figure 3 As shown, the data structure is as follows:
[0062] The primary search table and primary data body are stored accordingly. Each primary data body stores a secondary search table and a secondary data body. Each secondary data body stores multiple data blocks. Each data block stores audio and video data, vehicle information, and statistical information about vehicle information.
[0063] Figure 4 This is a schematic diagram of the data block structure provided by the present invention, as shown below. Figure 4 As shown, the specific structure of this data block is as follows:
[0064] Audio and video data and vehicle information are stored accordingly. Optionally, audio and video data and vehicle information are stored in chronological order.
[0065] The vehicle information statistics are written once when the data block is changed. The vehicle information statistics are a summary of the vehicle information. For example, after the audio and video data and vehicle information in the data block are stored, the vehicle information in the data block is summarized and stored in the data block.
[0066] The audio and video retrieval method provided by this invention constructs a primary retrieval table based on the location information of each secondary data body. After obtaining the current retrieval conditions, the storage location of the secondary data body can be quickly located through the primary retrieval table, reducing the time spent on retrieval and improving the retrieval speed.
[0067] Similarly, a corresponding secondary retrieval table is constructed based on the location information of each data block in the secondary data body. After locating the storage location of the secondary data body, the data block that meets the current search criteria is quickly located based on the secondary retrieval table, and then the statistical information in the data block is retrieved. This can further reduce the time spent on retrieval and location, and improve the retrieval speed.
[0068] Optionally, the audio and video retrieval method provided by the present invention, wherein retrieving each secondary data body based on the primary retrieval table includes:
[0069] Each secondary data body is retrieved based on the location information of each secondary data body recorded in the primary retrieval table.
[0070] In other words, the present invention can quickly locate the position information of the secondary data body based on the primary search table, reducing the time spent in the search process.
[0071] Optionally, the audio and video retrieval method provided by the present invention, wherein retrieving statistical information in each data block of the corresponding secondary data body based on each of the secondary retrieval tables includes:
[0072] Based on the location information of each data block recorded in each of the secondary retrieval tables, the statistical information in each data block of the corresponding secondary data body is retrieved.
[0073] In other words, the present invention can quickly locate the location information of data blocks based on a two-level search table, further reducing the time spent in the search process.
[0074] Optionally, the audio and video retrieval method provided by the present invention further includes:
[0075] Store the primary search backup table and the secondary search backup table in the preset storage space.
[0076] The content stored in the first-level search backup table is the same as that stored in the first-level search table, and the content stored in the second-level search backup table is the same as that stored in the second-level search table.
[0077] This invention, by storing a primary search backup table and a secondary search backup table, ensures that fast retrieval can still be achieved even when the primary and secondary search tables fail.
[0078] Optionally, the audio and video retrieval method provided by the present invention includes at least one of the following vehicle information: vehicle travel time, vehicle travel speed, vehicle travel area, switch status, and alarm information; and the current retrieval conditions include at least one of the following: time, speed, area, switch status, and alarm information.
[0079] This invention, by incorporating multi-dimensional vehicle information, can diversify the tags of audio and video data to provide users with diverse search criteria. Furthermore, based on these diverse search criteria, this invention can retrieve the audio and video data needed by users from multiple perspectives, thereby finding audio and video data that better meets their needs.
[0080] Optionally, the audio and video retrieval method provided by the present invention includes at least one of the following statistical information: threshold information of vehicle driving speed, threshold information of vehicle driving area, information on the presence or absence of switch quantity, and information on the presence or absence of alarm.
[0081] This invention, by setting multi-dimensional statistical information, can be matched with diverse search conditions to retrieve the audio and video data required by users from multiple perspectives, thereby further improving the accuracy of the search.
[0082] Figure 5 This is the third flowchart of the audio and video retrieval method provided by the present invention, as shown below. Figure 5 As shown, the specific retrieval process of this audio and video retrieval method is as follows:
[0083] The electronic device acquires the current search criteria, which are a combination of one or more of time, vehicle speed, area location, alarm, and switch quantity. These criteria are mapped to a secondary search table through a primary search table. Based on each secondary search table, statistical information is retrieved from each data block in the corresponding secondary data body. When target statistical information that meets the current search criteria is found, the target data block containing the target statistical information is further searched. If target vehicle information that matches the current search criteria exists in the target data block, the audio and video data corresponding to the target vehicle information is determined as the target audio and video data corresponding to the current search criteria.
[0084] The audio and video retrieval device provided by the present invention is described below. The audio and video retrieval device described below and the audio and video retrieval method described above can be referred to in correspondence.
[0085] Figure 6 This is a schematic diagram of the audio and video retrieval device provided by the present invention, as shown below. Figure 6 As shown, the audio and video retrieval device includes an acquisition unit 601, a first retrieval unit 602, a second retrieval unit 603, and a determination unit 604; wherein:
[0086] The acquisition unit 601 is used to acquire the current search conditions;
[0087] The first retrieval unit 602 is used to retrieve each secondary data body based on the primary retrieval table; each secondary data body corresponds to a secondary retrieval table, and the secondary data body includes at least one data block; the data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information;
[0088] The second retrieval unit 603 is used to retrieve statistical information in each data block of the corresponding secondary data body based on each of the secondary retrieval tables;
[0089] The determining unit 604 is used to determine the audio and video data corresponding to the target vehicle information as the target audio and video data corresponding to the current search condition when the target statistical information that satisfies the current search condition is retrieved, and it is determined that there is target vehicle information corresponding to the current search condition in the target data block corresponding to the target statistical information.
[0090] The audio and video retrieval device provided by this invention, when obtaining the current retrieval conditions, retrieves statistical information in each data block based on the primary and secondary retrieval tables. Only when the target statistical information that meets the current retrieval conditions is retrieved, does it further retrieve the corresponding target vehicle information and target audio and video data based on the target statistical information. There is no need to retrieve vehicle information and audio and video data corresponding to statistical information that does not meet the current retrieval conditions, which greatly reduces retrieval time and improves retrieval speed.
[0091] Based on any of the above embodiments, the audio and video retrieval device further includes:
[0092] The construction unit is used to construct a corresponding secondary retrieval table for each secondary data body based on the location information of each data block in the secondary data body, and each secondary retrieval table and the corresponding secondary data body constitute a primary data body; the primary retrieval table is constructed based on the location information of each secondary data body.
[0093] Based on any of the above embodiments, the first retrieval unit 602 is specifically used for:
[0094] Each secondary data body is retrieved based on the location information of each secondary data body recorded in the primary retrieval table.
[0095] Based on any of the above embodiments, the second retrieval unit 603 is specifically used for:
[0096] Based on the location information of each data block recorded in each of the secondary retrieval tables, the statistical information in each data block of the corresponding secondary data body is retrieved.
[0097] Based on any of the above embodiments, the audio and video retrieval device further includes:
[0098] The storage unit is used to store the primary search backup table and the secondary search backup table within a preset storage space.
[0099] Based on any of the above embodiments, the vehicle information includes at least one of the following: vehicle travel time, vehicle travel speed, vehicle travel area, switch status, and alarm information; the current search conditions include at least one of the following: time, speed, area, switch status, and alarm information.
[0100] Based on any of the above embodiments, the statistical information includes at least one of the following: threshold information of vehicle driving speed, threshold information of vehicle driving area, information on the presence or absence of switch quantity, and information on the presence or absence of alarm.
[0101] Figure 7 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 7 As shown, the electronic device may include a processor 710, a communications interface 720, a memory 730, and a communication bus 740, wherein the processor 710, the communications interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute an audio / video retrieval method, which includes: obtaining the current search criteria;
[0102] Each secondary data body is retrieved based on a primary search table; each secondary data body corresponds to a secondary search table, and each secondary data body includes at least one data block; each data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information;
[0103] Statistical information in each data block of the corresponding secondary data body is retrieved based on each of the secondary retrieval tables;
[0104] When target statistical information that meets the current search conditions is retrieved, and it is determined that there is target vehicle information corresponding to the current search conditions in the target data block corresponding to the target statistical information, the audio and video data corresponding to the target vehicle information is determined as the target audio and video data corresponding to the current search conditions.
[0105] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0106] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer is able to execute the audio and video retrieval methods provided by the above methods, the method including: obtaining the current retrieval conditions;
[0107] Each secondary data body is retrieved based on a primary search table; each secondary data body corresponds to a secondary search table, and each secondary data body includes at least one data block; each data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information;
[0108] Statistical information in each data block of the corresponding secondary data body is retrieved based on each of the secondary retrieval tables;
[0109] When target statistical information that meets the current search conditions is retrieved, and it is determined that there is target vehicle information corresponding to the current search conditions in the target data block corresponding to the target statistical information, the audio and video data corresponding to the target vehicle information is determined as the target audio and video data corresponding to the current search conditions.
[0110] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the audio and video retrieval methods provided by the above methods, the method comprising: obtaining current retrieval conditions;
[0111] Each secondary data body is retrieved based on a primary search table; each secondary data body corresponds to a secondary search table, and each secondary data body includes at least one data block; each data block includes at least one audio / video data, vehicle information corresponding to each audio / video data, and statistical information corresponding to the vehicle information;
[0112] Statistical information in each data block of the corresponding secondary data body is retrieved based on each of the secondary retrieval tables;
[0113] When target statistical information that meets the current search conditions is retrieved, and it is determined that there is target vehicle information corresponding to the current search conditions in the target data block corresponding to the target statistical information, the audio and video data corresponding to the target vehicle information is determined as the target audio and video data corresponding to the current search conditions.
[0114] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0115] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An audio-video search method, characterized by, The method comprises the following steps: acquiring a current search condition; searching each secondary data body based on a primary search table; each secondary data body corresponds to a secondary search table, and the secondary data body comprises at least one data block; the data block comprises at least one audio and video data, vehicle information corresponding to each audio and video data, and statistical information corresponding to the vehicle information; the statistical information of the vehicle information is written once when the data block is replaced; the statistical information of the vehicle information is a summary of the vehicle information, and the data amount of the statistical information of the vehicle information is relatively small; searching the statistical information in each data block in the corresponding secondary data body based on each secondary search table; the step of searching the statistical information in each data block in the corresponding secondary data body based on each secondary search table comprises the following step: when target statistical information meeting the current search condition is searched and it is determined that there is target vehicle information corresponding to the current search condition in a target data block corresponding to the target statistical information, determining audio and video data corresponding to the target vehicle information as target audio and video data corresponding to the current search condition.
2. The audio-video retrieval method of claim 1, wherein, Before the step of acquiring the current search condition, the method further comprises the following steps: for each secondary data body, constructing a corresponding secondary search table based on position information of each data block in the secondary data body; each secondary search table and the corresponding secondary data body form a primary data body; constructing the primary search table based on position information of each secondary data body.
3. The audio-video retrieval method of claim 2, wherein, the step of searching each secondary data body based on the primary search table comprises the following step: searching each secondary data body based on position information of each secondary data body recorded in the primary search table.
4. The audio-video retrieval method of claim 1, wherein, The method further comprises the following steps: storing a primary search backup table and a secondary search backup table in a preset storage space.
5. The audio-video retrieval method of claim 1, wherein, The vehicle information comprises at least one of the following: vehicle driving time, vehicle driving speed, vehicle driving area, on-off value and alarm information; the current search condition comprises at least one of the following: time, speed, area, on-off value and alarm information.
6. The audio-video retrieval method of claim 1, wherein, The statistical information comprises at least one of the following: threshold information of vehicle driving speed, threshold information of vehicle driving area, information of whether the on-off value exists, and information of whether the alarm exists.
7. An audio / video search apparatus, characterized by comprising: The method comprises the following steps: an acquisition unit is configured to acquire a current search condition; a first search unit is configured to search each secondary data body based on a primary search table; each secondary data body corresponds to a secondary search table, and the secondary data body comprises at least one data block; the data block comprises at least one audio and video data, vehicle information corresponding to each audio and video data, and statistical information corresponding to the vehicle information; the statistical information of the vehicle information is written once when the data block is replaced; the statistical information of the vehicle information is a summary of the vehicle information, and the data amount of the statistical information of the vehicle information is relatively small; a second retrieving unit, configured to retrieve statistical information in each data block in a corresponding secondary data body based on each secondary retrieval table; a determining unit, configured to determine target audio and video data corresponding to the current retrieval condition when target statistical information satisfying the current retrieval condition is retrieved and it is determined that target vehicle information corresponding to the current retrieval condition is in a target data block corresponding to the target statistical information.
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the audio and video retrieval method according to any one of claims 1 to 6 when executing the program. 9.A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program implements the audio and video retrieval method according to any one of claims 1 to 6 when executed by the processor.
Citation Information
Patent Citations
Method, device and system for retrieving video data
CN102129474A
Method and device for data acquisition and analysis through combination of vehicle driving states
CN105761484A
Audio playing control method and device, equipment and storage medium
CN113535111A