Data processing method, device, electronic device and storage medium

By carrying the positioning information of the video collection device in the video file, the problem of low video retrieval efficiency in the existing technology is solved, and efficient video file retrieval and display based on location information is realized.

CN112434186BActive Publication Date: 2024-09-24HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011320010.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-23
Publication Date
2024-09-24
Estimated Expiration
2040-11-23

AI Technical Summary

Technical Problem

When existing video retrieval solutions query video files associated with an event, they need to retrieve all video files during the time when the event occurred, resulting in low retrieval efficiency.

Method used

The positioning information is obtained by the video collection device at preset time intervals during the video collection process, carried in the encapsulated information of the video file, and extracted and saved in the back-end device to record the corresponding relationship with the video file. Based on the positioning Information display and retrieval of video files.

Benefits of technology

It improves the retrieval efficiency of event-related video files, allows rapid positioning and display of video files based on location information, and enhances retrieval support for video files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112434186B
    Figure CN112434186B
Patent Text Reader

Abstract

The present application provides a data processing method, device, electronic device and storage medium, the method comprising: receiving a video file sent by a video acquisition device, wherein the private information of the video package of the video file carries positioning information, the positioning information is obtained by the video acquisition device according to a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained; extracting the positioning information in the video file, saving the positioning information, and recording the corresponding relationship between the positioning information and the video file; displaying the video file based on the positioning information. The method can provide data support for video retrieval based on position information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video retrieval technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art

[0002] In current video retrieval solutions, video files are usually displayed in a chronological order as a list of video files, and searchers perform video searches based on time.

[0003] It is found in practice that in the above video retrieval scheme, when it is necessary to search for video files associated with an event, it is necessary to search for all video files within the time when the event occurred in order to search for video files associated with the event, and the retrieval efficiency is too low. Summary of the invention

[0004] In view of this, the present application provides a data processing method, device, electronic device and storage medium.

[0005] Specifically, the present application is implemented through the following technical solutions:

[0006] According to a first aspect of an embodiment of the present application, there is provided a data processing method, including:

[0007] Receive a video file sent by a video acquisition device, wherein the private information of the video encapsulation of the video file carries positioning information, wherein the positioning information is obtained by the video acquisition device at a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained;

[0008] Extracting the positioning information from the video file, saving the positioning information, and recording the corresponding relationship between the positioning information and the video file;

[0009] The video file is displayed based on the positioning information.

[0010] According to a second aspect of an embodiment of the present application, there is provided a data processing device, including:

[0011] A receiving unit, configured to receive a video file sent by a video acquisition device, wherein the private information of the video package of the video file carries positioning information, wherein the positioning information is obtained by the video acquisition device at a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained;

[0012] An extraction unit, used to extract positioning information from the video file;

[0013] A storage unit, used to store the positioning information and record the corresponding relationship between the positioning information and the video file;

[0014] A display unit is used to display the video file based on the positioning information.

[0015] According to a third aspect of an embodiment of the present application, an electronic device is provided, the electronic device comprising:

[0016] 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 data processing method of the first aspect.

[0017] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the data processing method of the first aspect is implemented.

[0018] The data processing method of the embodiment of the present application receives a video file sent by a video acquisition device, wherein the private information of the video encapsulation of the video file carries positioning information, and the positioning information is obtained by the video acquisition device according to a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained; extracts the positioning information in the video file, saves the positioning information, and records the correspondence between the positioning information and the video file, and then displays the video file based on the positioning information, provides data support for video retrieval based on the position information, and can improve the retrieval efficiency of event-related video files. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flowchart of a data processing method shown as an exemplary embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of a list of positioning points in a video file that records the entire video acquisition process, shown as an exemplary embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of a backend device storing a video file, shown as an exemplary embodiment of the present application;

[0022] Figure 4 A schematic diagram of a video file display interface shown as an exemplary embodiment of the present application;

[0023] Figure 5 This is a schematic diagram showing a method of controlling the playback time jump of a corresponding video file according to an exemplary embodiment of the present application;

[0024] Figure 6 A schematic diagram of the structure of a data processing device shown as an exemplary embodiment of the present application;

[0025] Figure 7 This is a schematic diagram of the structure of another data processing device according to an exemplary embodiment of the present application;

[0026] Figure 8 An exemplary embodiment of the present application is shown Figure 6 or Figure 7 Schematic diagram of the hardware structure of the device shown. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0028] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0029] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.

[0030] See also Figure 1 , is a flow chart of a data processing method provided in an embodiment of the present application, such as Figure 1 As shown, the data processing method may include the following steps:

[0031] Step S100, receiving a video file sent by a video acquisition device, wherein the private information of the video encapsulation of the video file carries positioning information, and the positioning information is obtained by the video acquisition device according to a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained.

[0032] In an embodiment of the present application, a positioning chip can be deployed on a video capture device. When performing video capture, the video capture device can obtain location information (such as longitude and latitude information) through the positioning chip based on a preset time interval (which can be set according to the actual scenario, such as 1 second), and carry the positioning information in the video file. The positioning information may include the location information obtained by the positioning chip and the time information when the location information is obtained.

[0033] Exemplarily, in order to avoid the influence of the positioning information on the decoding of the video file, the positioning information may be carried in the private information of the encapsulation information of the video file.

[0034] Step S110: extract the positioning information in the video file, save the positioning information, and record the corresponding relationship between the positioning information and the video file.

[0035] In an embodiment of the present application, when a video file sent by a video acquisition device is received, the positioning information in the video file can be extracted, the positioning information can be saved in a database, and the correspondence between the positioning information and the video file can be recorded.

[0036] Step S120: display the video file based on the positioning information.

[0037] In the embodiment of the present application, when the corresponding relationship between the positioning information and the video file is determined, the video file can be displayed based on the positioning information.

[0038] It can be seen that in Figure 1 In the method flow shown, the positioning information of the video acquisition process is obtained through the video acquisition device, and the positioning information is carried in the private information of the encapsulation information of the video file and sent to the back-end device. When the back-end device receives the video file, it can extract the positioning information in the video file, save the positioning information, and record the correspondence between the positioning information and the video file. Then, the video file is displayed based on the positioning information, which provides data support for video retrieval based on location information, and can improve the retrieval efficiency of event-related video files.

[0039] As a possible embodiment, in step S120, displaying the video file based on the positioning information may include:

[0040] Based on the positioning information corresponding to the video file, the video file is displayed in a target area of ​​the video file display interface; the target area is associated with the geographical location represented by the positioning information, and the video file information includes a video file icon and a capture start time or end time of the video file.

[0041] Exemplarily, in an embodiment of the present application, a function of displaying video files based on geographical areas may be provided so that search personnel can understand the areas covered by the video files.

[0042] Exemplarily, based on the positioning information corresponding to the video file, the geographical location represented by the positioning information can be determined, and the video file can be displayed in an area (referred to herein as a target area) associated with the geographical location in the video file display interface.

[0043] Exemplarily, the video file information may include but is not limited to a video file icon, the start time or end time of video file acquisition, etc. That is, when the video file information is displayed in the target area of ​​the video file display interface, the video file icon (used to identify the existence of the video file in the area) and the acquisition time of the video file in the target area may be displayed in the target area.

[0044] The acquisition time is usually the acquisition start time or end time of the video file, that is, when displaying a video file, the video file is usually displayed in an area associated with the geographical location where the video file acquisition starts or ends.

[0045] It should be noted that when displaying a video file, it is also possible to determine the area corresponding to the intermediate time point (i.e., the area associated with the geographical location of the video acquisition device when the system time is the intermediate time point) based on any intermediate time point between the start time and end time of the video file's acquisition, and display the video file icon and the intermediate time point in the area.

[0046] It should be noted that the above-mentioned video file information may also include the duration of the video file. At this time, since the moving route and average moving speed of the video acquisition device are known, when the start time or end time of the video file acquisition is known, and the acquisition duration (i.e. the duration of the video file) is known, the search personnel can estimate the area covered by the video file based on the video file information displayed in the target area.

[0047] For example, assuming that the video file information includes the start time and duration of the video file collection, the searcher can estimate the area that the video file may cover based on the area where the video file information is displayed in the video file display interface (the area associated with the geographical location when the video acquisition device starts to collect the video file), the duration of the video file, the moving route of the video acquisition device, and the average moving speed of the video acquisition device.

[0048] Exemplarily, the average moving speed of the video acquisition device may be determined based on the type of the video acquisition device.

[0049] For example, for a vehicle-mounted video acquisition device, such as a vehicle-mounted recorder, the average moving speed of the video acquisition device may be determined based on the average moving speed of the vehicle.

[0050] In one example, in step S120, displaying the video file based on the positioning information may include:

[0051] When a selection instruction for a target video file is received, a motion track of a process of recording the target video file is displayed in a video file display interface based on the positioning information corresponding to the target video file.

[0052] Exemplarily, the target video file does not specifically refer to a fixed video file, but may refer to any video file displayed in the video display interface.

[0053] Exemplarily, when a selection instruction for a target video file, such as a click instruction, is received, trajectory information corresponding to the positioning information can be determined based on the positioning information corresponding to the target video file, and the motion trajectory corresponding to the target video file can be displayed in the video file display interface, so that the search personnel can determine the motion trajectory of the video acquisition device corresponding to the video file during the process of recording the target video file.

[0054] In an example, after displaying the motion track of the target video file recording process in the video file display interface, the following may also be included:

[0055] When a selection instruction for a target track point in the motion track is detected, the play time of the target video file is jumped to the time corresponding to the target track point for play, and the target track point is any point on the motion track.

[0056] Exemplarily, the target trajectory point does not specifically refer to a fixed trajectory point in the motion trajectory corresponding to the target video file, but may refer to any trajectory point in the motion trajectory corresponding to the target video file.

[0057] Exemplarily, when a selection instruction, such as a click instruction, is detected for a target trajectory point in a motion trajectory corresponding to a target video file, the playback time of the target video file can be jumped to the time corresponding to the target trajectory point based on the time information corresponding to the trajectory point for playback, so that the search personnel can quickly locate the video screen at a specific location.

[0058] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, the technical solutions provided by the embodiments of the present application are described below in conjunction with specific embodiments.

[0059] In this embodiment, a video file map search (also referred to as a video recording map search) is taken as an example, that is, a map is used as a background in the video file display interface, and video file information is displayed on the map.

[0060] In this embodiment, the implementation process of video file map retrieval is as follows:

[0061] 1. During the video acquisition process (recording process), the video acquisition device (also called the recording device) obtains the location information (taking the latitude and longitude information as an example) of the current location of the video acquisition device through the deployed positioning chip every 1 second (taking the preset time interval of 1 second as an example), and writes the positioning information including the obtained location information and the time information of obtaining the location information (such as the current system time) into the private information of the video package (so that the positioning information does not affect the player playing the standard video file). Therefore, the video file (also called the recording file) can record the list of positioning points in the entire video acquisition process, and its schematic diagram can be shown as follows: Figure 2 shown.

[0062] 2. The back-end device receives the video file with positioning information sent by the video acquisition device, extracts the positioning information by parsing the private information encapsulated in the video, saves it to the database, and records the corresponding relationship between the positioning information and the video file. The schematic diagram can be as follows: Figure 3 shown.

[0063] For example, taking the identification of a video file by its name as an example, assuming that the positioning information carried in the video file sp1 includes: (T0, A0), (T0+1s, A1)…, (T0+Ns, AN)). Among them, A0 is the position information in the first positioning information included in the video file, and T0 is the time of obtaining the position information. Then the back-end device can record the correspondence between sp1 and (T0, A0), (T0+1s, A1)…, (T0+Ns, AN)).

[0064] 3. The back-end device can provide the function of displaying video files based on geographic areas, so that the search personnel can understand the movement trajectory of the video file during the recording process, and thus determine whether it is necessary to watch the video file in detail.

[0065] For example, Figure 4 As shown, the video file display interface uses a map as the background. For any video file, the area for displaying the video file information can be determined based on the location information in the first positioning information corresponding to the video file, and the video file information corresponding to the video file is displayed in the area. The video file information includes the video file icon and the acquisition start time of the video file.

[0066] Still taking the above example, the backend device may determine the area corresponding to A0, and display the video file information corresponding to the video file sp1 in the area on the map.

[0067] 4. When a click instruction (i.e., a selection instruction) for a video file icon is detected, the motion trajectory of the video file during recording is displayed so that search personnel can determine the motion trajectory (which can be called the recording trajectory) of the video acquisition device corresponding to the video file during the process of acquiring the video file. The schematic diagram can be as follows: Figure 4 shown.

[0068] Still taking the previous example, when the back-end device detects an operation instruction to click the video file icon corresponding to the video file sp1, the back-end device can determine the movement trajectory of the video acquisition device in the process of acquiring the video file sp1 based on the location information included in the positioning information corresponding to the video file sp1, namely A0, A1, ...AN, and display it on the map.

[0069] 5. When a click instruction (ie, a selection instruction) for a track point in the motion track is detected, the playback time of the corresponding video file can be controlled to jump to the time corresponding to the track point for playback.

[0070] Exemplarily, the backend device can calculate the playback offset position of the video file based on the time information included in the positioning information corresponding to the track point and the acquisition start time of the video file, and control the playback time of the corresponding video file to jump to the time corresponding to the track point for playback. The schematic diagram can be as follows: Figure 5 shown.

[0071] Taking the above example, assuming that the positioning information corresponding to the selected trajectory point is (T0+ks, Ak) and the acquisition start time of the video file sp1 is T', then the playback time corresponding to the trajectory point is (T0+kT')s, and the back-end device can control the playback time of the video file sp1 to jump to the corresponding time for playback.

[0072] The method provided by the present application is described above. The device provided by the present application is described below:

[0073] See also Figure 6 , is a structural diagram of a data processing device provided in an embodiment of the present application, such as Figure 6 As shown, the data processing device may include:

[0074] The receiving unit 610 is used to receive a video file sent by a video acquisition device, wherein the private information of the video package of the video file carries positioning information, and the positioning information is obtained by the video acquisition device according to a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained;

[0075] An extraction unit 620, configured to extract positioning information from the video file;

[0076] A storage unit 630 is used to store the positioning information and record the corresponding relationship between the positioning information and the video file;

[0077] The display unit 640 is configured to display the video file based on the positioning information.

[0078] In some embodiments, the display unit 640 is specifically used to display video file information in a target area of ​​the video file display interface based on the positioning information corresponding to the video file; the target area is associated with the geographic location represented by the positioning information, and the video file information includes a video file icon and a start time or end time of video file acquisition.

[0079] In some embodiments, the display unit 640 is further used to display the motion trajectory of the process of recording the target video file in the video file display interface based on the positioning information corresponding to the target video file when a selection instruction for the target video file is received.

[0080] In some embodiments, Figure 7 As shown, the data processing device may further include:

[0081] The control unit 650 is used to jump the playback time of the target video file to the time corresponding to the target trajectory point for playback when a selection instruction for the target trajectory point in the motion trajectory is detected. The target trajectory point is any point on the motion trajectory.

[0082] Correspondingly, the present application also provides Figure 6 or Figure 7 The hardware structure of the device shown. Figure 8 The hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.

[0083] Based on the same application concept as the above method, an embodiment of the present application also 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 method disclosed in the above example of the present application can be implemented.

[0084] Exemplarily, the above-mentioned machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.

[0085] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0086] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A data processing method, characterized in that: The method is applied to a back-end device of a video acquisition device, including: Receive a video file sent by a video acquisition device; the video file is encapsulated with encapsulation information before being sent, the encapsulation information includes private information, the private information carries positioning information, the positioning information is obtained by the video acquisition device according to a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained; Parsing the private information to extract the positioning information in the video file, saving the positioning information in a database, and recording the corresponding relationship between the positioning information and the video file; When receiving a selection instruction for a video file, based on the positioning information corresponding to the video file, displaying the motion trajectory of the process of recording the target video file in the video file display interface; Based on the geographic location represented by the first location information among the multiple positioning information corresponding to the video file, a target area is determined in the video file display interface, and the video file information is displayed in the target area, wherein the video file information includes the video file icon, the start time or end time of video file acquisition, and the acquisition duration of the video file, so that the search personnel can determine the area covered by the video file based on the moving route and average moving speed of the video acquisition device, the start time or end time of the video file acquisition, and the acquisition duration of the video file.

2. The method according to claim 1, characterized in that: After displaying the motion trajectory of the video file recording process in the video file display interface, the method further includes: When a selection instruction for a target track point in the motion track is detected, the playback time of the video file is jumped to the time corresponding to the target track point for playback, and the target track point is any point on the motion track.

3. A data processing device, characterized in that: The device is a back-end device of a video acquisition device, including: A receiving unit, configured to receive a video file sent by a video acquisition device; the video file is encapsulated with encapsulation information before being sent, the encapsulation information includes private information, the private information carries positioning information, the positioning information is obtained by the video acquisition device at a preset time interval during the video acquisition process, and the positioning information includes the position information obtained by positioning and the time information when the position information is obtained; an extraction unit, configured to parse the private information to extract the positioning information in the video file; A storage unit, used to store the positioning information in a database and record the corresponding relationship between the positioning information and the video file; The display unit is further configured to display the motion track of the process of recording the target video file in the video file display interface based on the positioning information corresponding to the video file when receiving a selection instruction for the video file; Based on the geographic location represented by the first location information among the multiple positioning information corresponding to the video file, a target area is determined in the video file display interface, and the video file information is displayed in the target area, wherein the video file information includes the video file icon, the start time or end time of video file acquisition, and the acquisition duration of the video file, so that the search personnel can determine the area covered by the video file based on the moving route and average moving speed of the video acquisition device, the start time or end time of the video file acquisition, and the acquisition duration of the video file.

4. The device according to claim 3, characterized in that The device also includes: A control unit is used to jump the playback time of the video file to the time corresponding to the target trajectory point for playback when a selection instruction for the target trajectory point in the motion trajectory is detected, and the target trajectory point is any point on the motion trajectory.

5. An electronic device, characterized in that: The electronic device includes: 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 method steps of any one of claims 1-2.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.