Extensible metadata associated with a target detected in a video

By dividing video target kinematic data into quantized components and residual increments, and employing different compression methods, the storage and transmission challenges caused by the complexity of metadata streams are addressed, achieving efficient storage and processing, and supporting the flexibility and compatibility of different applications.

CN123145442APending Publication Date: 2026-11-20AXIS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610672946.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-05-20
Filing Date
2026-05-15
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The increasing complexity and granularity of metadata streams generated by modern video capture systems present challenges in terms of storage requirements, transmission bandwidth, and processing efficiency.

Method used

The target kinematic data is divided into coarse quantization components and residual increments, processed using different compression methods, and these components are selectively transmitted or retained as needed to achieve flexible encoding and efficient storage management.

Benefits of technology

By processing metadata in a tiered manner, storage requirements are reduced and transmission efficiency is improved, supporting the flexibility and efficient processing of different applications, and ensuring backward compatibility and resource savings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145442A_ABST
    Figure CN123145442A_ABST
Patent Text Reader

Abstract

The present disclosure relates to extensible metadata associated with a target detected in a video, in particular to a method (400) for processing metadata (320) associated with a target detected in a video, the method comprising: obtaining (S402) kinematic data of a target detected in a first image of the video; determining (S404) first data by quantizing the kinematic data using a predefined quantization scheme; determining (S406) second data by computing a difference between the kinematic data and the quantized kinematic data; and including (S408) the first data and the second data in the metadata.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the generation of metadata for target tracking in video data, and more specifically, to the representation of kinematic information of a target within such metadata. Background Technology

[0002] Modern video capture systems are increasingly generating not only audiovisual content, but also supplementary metadata streams representing a semantic understanding of the captured scene. These metadata streams are typically generated through video analytics techniques and can include information about detected and tracked targets, such as classification, identity, and motion-related parameters.

[0003] A subset of this metadata is target kinematics, which describes the motion characteristics of the tracked target, including, for example, position, velocity, and direction of motion. Representing target kinematics in the metadata allows downstream systems to search for targets based on their motion profiles, such as identifying targets moving through specific areas, traveling at unusual speeds, or following specific paths. Furthermore, statistical analysis can be performed on the aggregated kinematic data to reveal patterns such as typical motion behaviors and target flow distribution.

[0004] With the continuous development of video processing and analysis systems, the complexity and granularity of target kinematics metadata have increased significantly. In many cases, the metadata stream may now contain more data than the corresponding video stream. This increase in metadata size presents challenges in terms of storage requirements, transmission bandwidth, and processing efficiency.

[0005] Therefore, there is a need to improve this aspect. Summary of the Invention

[0006] In view of the foregoing, it would be advantageous to resolve or at least mitigate one or more of the aforementioned disadvantages, as set forth in the appended independent patent claims.

[0007] According to a first aspect of this disclosure, a method is provided for processing metadata associated with a target detected in a video, the method comprising: obtaining kinematic data of the target detected in a first image of the video; quantizing the kinematic data using a predefined quantization scheme to determine first data; determining second data by calculating the difference between the kinematic data and the quantized kinematic data; and including the first data and the second data in metadata.

[0008] As used herein, "kinematic data" refers to motion-related parameters describing the dynamic state of a target detected in a video. Such data may include, for example, the target's position or bounding box in image coordinates (e.g., pixel positions within a video frame) or global coordinates (e.g., a world coordinate system such as GPS coordinates). In addition to position, kinematic data may include the target's velocity (including the speed and direction of motion) and, where applicable, further attributes such as acceleration or orientation. Kinematic data is typically derived from the analysis of one or more video frames and represents the motion characteristics of the target at a specific point in time or within a defined time interval.

[0009] As used in this paper, a “predefined quantization scheme” refers to a fixed and known mapping procedure that transforms continuous or high-precision kinematic values ​​into a set of discrete representative values. A quantization scheme can specify a range of allowable values, a quantization step size or resolution, and one or more rounding rules to determine how input values ​​are assigned to the quantized output values. Therefore, the purpose of applying such a scheme is to reduce the precision of kinematic data in a predetermined manner. In some cases, quantization behavior can be controlled or adjusted using quantization control (QC) values ​​that can indicate the desired quantization precision. QC values ​​can be selected based on target type, importance, or context, thereby enabling dynamic adjustment of the quantization granularity.

[0010] The inventors have recognized that presenting metadata as a combination of a coarse representation (based on quantized data) and residual increments (representing the difference from the original kinematic data) offers various advantages in terms of encoding flexibility and efficient downstream processing. By dividing metadata into a primary quantized component (represented by the first data) and a supplementary incremental component (represented by the second data), the encoder and / or decoder can dynamically adapt to changing application requirements and system constraints. For example, different encoding schemes can be applied depending on available bandwidth, storage capacity, or required precision. On the receiver side, such a structure enables flexible decoding and selective retention, such as applying different reduction or aging strategies to the first and second data. Therefore, such a hierarchical approach facilitates scalable metadata management, allowing for optimized performance across a range of use cases.

[0011] In some examples, the method further includes: storing the first data and the second data as metadata in a file associated with the target; determining the time span since the first data and the second data were stored as metadata in the file; and deleting the second data from the file when the time span exceeds a threshold time span.

[0012] Advantageously, this allows stored metadata to maintain high accuracy for a finite period of time, such as for short-term analytical purposes, while reducing storage requirements by discarding residual increments after a threshold time span has elapsed. Route data can continue to be retained in files / storage for long-term purposes, such as statistical analysis.

[0013] In some examples, determining the first data includes: determining the quantized data by quantizing kinematic data using a predefined quantization scheme; and compressing the quantized data using a first lossless compression. In these examples, determining the second data includes: determining the difference data by calculating the difference between the kinematic data and the quantized data; and compressing the difference data using a second lossless compression, wherein the first lossless compression is different from the second lossless compression.

[0014] Advantageously, the overall compressibility of metadata can be improved by dividing kinematic data into quantized and differential data and applying different lossless compression methods to each type. Quantized and differential data typically exhibit different statistical properties, and these properties can be utilized more effectively using compression schemes optimized for each respective type. For example, differential data can be zero-centered while quantized data can be relatively uniform. By using a first and a second lossless compression accordingly, a lower total bandwidth or storage space can be achieved compared to applying a single lossless compression to full-resolution kinematic data.

[0015] In some examples, determining the first data includes: determining the quantized data by quantizing kinematic data using a predefined quantization scheme; and compressing the quantized data using a first lossy compression. In these examples, determining the second data includes: determining the difference data by calculating the difference between the kinematic data and the quantized data; and compressing the difference data using a first lossy compression.

[0016] Advantageously, by separating kinematic data into quantized and residual components before compression and applying the same lossy compression scheme to both, it is possible to achieve improved compression performance compared to directly applying lossy compression to full-resolution kinematic data. This separation allows lossy compression to more effectively utilize the different statistical properties of the quantized and residual data, resulting in a lower total bit rate or higher fidelity at the same bit rate.

[0017] In some examples, determining the first data includes: determining the quantized data by quantizing kinematic data using a predefined quantization scheme; and compressing the quantized data using lossless compression. In these examples, determining the second data includes: determining the difference data by calculating the difference between the kinematic data and the quantized data; and compressing the difference data using lossy compression.

[0018] Advantageously, this method achieves a hybrid coding strategy that balances accuracy and compression efficiency by selectively applying lossless and lossy compression to different components of the metadata.

[0019] In some examples, the method further includes: transmitting metadata data to the client using a standardized metadata protocol, wherein first data is added to a field in the standardized metadata protocol, the field being defined in the standardized metadata protocol as being related to the type of kinematic data, and wherein second data is added to a custom field in the standardized metadata protocol.

[0020] Advantageously, this approach ensures backward compatibility because the first data is placed in a standard field understood by compatible clients, while the second data is added to a custom field. Clients that do not recognize fields with custom residual data (the second data) will simply ignore it, resulting in the use of only a coarse metadata level (the first data) and thus achieving baseline functionality. Standardized metadata protocols could be, for example, ONVIF or VAPIX metadata protocols.

[0021] In some examples, determining the second data includes: determining the difference data by calculating the difference between the kinematic data and the quantized kinematic data; and determining the second data by quantizing the difference data using a second predefined quantization scheme, wherein the method further includes: determining the third data by calculating the difference between the kinematic data and the sum of the quantized kinematic data and the quantized difference data; and including the third data in the metadata.

[0022] Advantageously, as discussed in this paper, using multiple quantization layers, such as a second or third data layer derived from continuous differences, allows for further increased flexibility in encoding strategies, storage management, and so on. Such a hierarchical structure supports scalable metadata representation of kinematic data, and any number of such layers can be implemented depending on system requirements.

[0023] In some examples, the method further includes: obtaining metadata at the client; extracting first data from the obtained metadata; and ignoring the extraction of second data from the obtained metadata.

[0024] As used in this article, “obtaining metadata at the client” can refer to obtaining metadata in various contexts, including, for example, receiving it in real time from the encoder during field transmission and retrieving it from a memory or storage device in a batch processing scenario.

[0025] Advantageously, these examples enable metadata decoders to make informed decisions about whether to extract additional layers, such as second-level data, based on general criteria such as available processing resources, application requirements, or relevance to objectives. As a result, unnecessary parsing or decoding of higher-resolution metadata tracks can be avoided, thereby reducing computational load and improving responsiveness.

[0026] In some embodiments, ignoring the extraction of second data from received metadata includes at least one of the following: the client determines that the importance level of the target is lower than a threshold importance level; the client determines that the confidence level of the target is lower than a threshold confidence level; the client determines that the client's available computing resources are lower than a threshold; and the client determines that the second data can be ignored based on a query from the user.

[0027] In some examples, a client's decision to ignore extracting second data from received metadata may be based on a user query that limits the required level of precision. For instance, in a query such as "How many cars have turned right at this intersection in the past three months?", the client may determine that only coarse kinematic data (first data) is sufficient to satisfy the request. In such cases, extracting data with increased precision would provide limited added value, especially when querying large datasets, while significantly increasing processing costs. Conversely, for queries that are more detail-sensitive, such as "How many cars are using a specific lane?", the client may determine that finer granularity is necessary, thus requiring the extraction of second data.

[0028] In some examples, the method further includes: obtaining second kinematic data of a target detected in a second image of a video, which follows the first image in the video; quantizing the kinematic data using a predefined quantization scheme to determine fourth data; and including the fourth data in metadata.

[0029] Advantageously, by including only quantized (coarse) kinematic data of selected frames (e.g., a second image), the amount of metadata that must be transmitted or stored can be reduced, thereby saving bandwidth and storage space.

[0030] According to a second aspect of this disclosure, the above-mentioned objective is achieved by a non-transitory computer-readable storage medium having instructions stored thereon for implementing the method according to the first aspect when executed on a processing device.

[0031] According to a third aspect of this disclosure, the above objective is achieved by means of an apparatus for processing metadata associated with a target detected in a video, the apparatus being configured to: obtain kinematic data of the target detected in a first image of the video; quantize the kinematic data using a predefined quantization scheme to determine first data; determine second data by calculating the difference between the kinematic data and the quantized kinematic data; and include the first data and the second data in the metadata.

[0032] According to a fourth aspect of this disclosure, the above objective is achieved by a system for processing metadata associated with a target detected in a video, the system comprising a first means and a second means according to a third aspect, the second means being configured to: store first data and second data as metadata in a file associated with the target; determine a time span since the first data and second data were stored as metadata in the file; and delete the second data from the file when the time span exceeds a threshold time span.

[0033] According to the fifth aspect of this disclosure, the above objective is achieved by a system for processing metadata associated with a target detected in a video, the system comprising a first means according to the third aspect and a third means configured to: obtain metadata; extract first data from the obtained metadata; and ignore the extraction of second data from the obtained metadata.

[0034] The second, third, fourth, and fifth aspects usually have the same characteristics and advantages as the first aspect. Attached Figure Description

[0035] The above and additional objects, features and advantages of this disclosure will be better understood through the following illustrative and non-limiting detailed description of embodiments of the present disclosure with reference to the accompanying drawings, in which the same reference numerals will be used for similar elements, wherein:

[0036] Figure 1 This illustrates a scenario according to the first embodiment, where a target is to determine scalable metadata for it;

[0037] Figure 2 This illustrates how, according to the second embodiment, scalable metadata is determined from... Figure 1 The goal;

[0038] Figure 3 This illustrates a system for implementing scalable metadata according to an embodiment;

[0039] Figure 4 A flowchart illustrating a method for processing metadata associated with a target detected in a video, according to an embodiment. Detailed Implementation

[0040] Metadata is increasingly used in video systems to support various forms of target analysis and scene understanding. However, as metadata becomes more detailed, challenges arise in effectively managing its storage, transmission, and processing. This disclosure addresses these limitations through techniques for generating, processing, and storing scalable metadata associated with kinematic data of targets detected in video. The kinematic data is divided into multiple layers of detail, including a coarse quantization representation and one or more residual components. These layers can be independently compressed, selectively transmitted or extracted, or preserved based on context, thereby achieving efficient bandwidth utilization, adaptive coding, efficient processing, and flexible long-term storage strategies. This will now be combined with... Figures 1 to 4 Implementation examples of these technologies are described.

[0041] Figure 1 The illustration shows scene 100 captured by a video recording system. The scene depicts a road intersection where vehicle 102 is making a right turn. Vehicle 102 is being tracked by a target tracking application analyzing the video. Kinematic data associated with vehicle 102 can be exported from the captured image frames of the video. Depending on the configuration and requirements of the target tracking application, this kinematic data can be updated for each image frame or a selected subset of image frames.

[0042] Kinematic data may include, for example, the position, velocity, and direction of motion of vehicle 102. In addition to motion-related parameters, target tracking applications may associate the vehicle with auxiliary metadata such as target identifiers, classifications (e.g., vehicle type), detection confidence levels, or tracking status. Kinematic data and auxiliary metadata may be further indexed, for example, using timestamps or frame numbers, to identify which image frame the data is associated with.

[0043] exist Figure 1 In the example illustrated in the diagram, the kinematic data includes a bounding box associated with target 102. The bounding box may define, for example, the pixel coordinates of a rectangular region that spatially encloses target 102 within a specific image frame of the video, referred to herein as the first image. For example, the bounding box may be defined by... Figure 1 The coordinates of the four corners of the rotating rectangle that spatially surrounds the target 102 are defined at the pixel level within the image frame. This can be represented as four (x, y) coordinate pairs corresponding to the corners of the bounding box, such as (1023, 752), (1237, 726), (1349, 1111), and (1136, 1138). Note that these figures are purely illustrative and provided for the purpose of explaining concepts related to scalable metadata representation, and do not reflect any specific measurement or limitation of this disclosure.

[0044] As discussed in this paper, kinematic data can be represented as hierarchical metadata associated with the target. To produce a coarse approximation of the original bounding box, the kinematic data is quantized using a predefined quantization scheme. The resulting quantized (coarse) bounding box is... Figure 1 The rough bounding box 106 is shown as a dashed rectangle. For ease of illustration, the rough bounding box 106 is shown as uniformly larger than the actual bounding box. However, in reality, depending on the quantization scheme and geometric properties of the original bounding box, the rough bounding box can be larger, smaller, or shaped differently.

[0045] For example, to produce a coarse approximation, each coordinate can be quantized to the nearest multiple of 16. This is achieved by rounding each value to the nearest integer divisible by 16. The quantized coordinates become: (1024, 752), (1232, 720), (1344, 1112), and (1136, 1136). This new bounding box forms the first set of data representing a coarse approximation of the original bounding box 104. The difference between each original coordinate and the quantized coordinate can then be calculated and stored as the second set of data, enabling scalable reconstruction when higher precision is required. In this example, the second set of data is the set of coordinate residuals: (-1, 0), (+5, +6), (+5, -1), (0, +2).

[0046] Therefore, metadata can be used to define the bounding box of target 102 at coarse level 106 and detailed level 104 (corresponding to the actual bounding box in this example).

[0047] In some examples, the hierarchical structure includes three layers. This is in Figure 2 The diagram is shown schematically. (And...) Figure 1 Similarly, for ease of visualization, each of the resulting bounding boxes 104, 106, 202 (using three layers) is shown as having a progressively larger size.

[0048] For example, using the same example of kinematic data associated with target 102, namely four (x, y) coordinate pairs: (1023, 752), (1237, 726), (1349, 1111), and (1136, 1138), the following can be achieved. First, the kinematic data is quantized using a first predefined quantization scheme, for example, rounded to the nearest multiple of 16 pixels. This results in a coarse approximation of the first data with the following quantized coordinates: (1024, 752), (1232, 720), (1344, 1112), and (1136, 1136).

[0049] The difference between the original kinematic data and the first data is then calculated ((-1, 0), (+5, +6), (+5, 1), (0, +2)) and quantized using a second predefined quantization scheme (e.g., rounding to the nearest multiple of 8 pixels). This produces the second data consisting of the residuals quantized as follows: (0, 0), (8, 8), (8, 0), and (0, 0).

[0050] To achieve further refinement, the third data is determined by calculating the difference between the original kinematic data and the sum of the quantized kinematic data and the quantized difference data. This third data captures the remaining fine-grained residual values ​​and is defined by the following coordinates: (-1, 0), (-3, -2), (-3, -1), and (0, +2).

[0051] Therefore, the three-level metadata can be used to define the bounding box of target 102 at the coarse level 106, the more detailed level 104, and the finest level 202 (in this example, corresponding to the actual bounding box of target 102).

[0052] While the examples above focus on bounding box coordinates, it should be noted that the same scalable approach can be applied to any type of kinematic data related to a target. This includes, but is not limited to, position, velocity, acceleration, orientation, and angular velocity. The hierarchical structure allows for variations in the level of precision to be represented, depending on application requirements. The predefined quantization scheme used in each layer can be chosen based on the nature of the data and system constraints, and is not limited to fixed schemes such as rounding to multiples of 16 or 8. For example, in the case of target location, a coarse level of metadata could simply indicate which quadrant of the image frame the target occupies. In the next enhancement layer, that quadrant could be subdivided into smaller regions, and in further layers, precise pixel-level locations could be defined.

[0053] Figure 3 A system 300 configured to implement techniques for determining and processing scalable metadata representing kinematic data of detected targets in a video, as described herein, is illustrated by way of example. This will now be combined with… Figure 4 Flowchart 400 in the diagram describes embodiments of these technologies.

[0054] System 300 includes a metadata processing device 310. The metadata processing device 310 is configured to obtain kinematic data 302 of a target detected in a first image of the video in step S402. The metadata processing device 310 can be integrated within a target tracking device, allowing it to obtain the kinematic data 302 directly from an internal tracking algorithm. In other examples, the metadata processing device 310 can be externally connected to the target tracking device and obtain the kinematic data 302 via a communication interface. Alternatively, the metadata processing device 310 can obtain the kinematic data 302 from other sources such as a storage system or a database.

[0055] The metadata processing device 310 includes a partitioning component 312. The partitioning component 312 can be configured to determine first data (S404) by quantizing kinematic data using a predefined quantization scheme and to determine second data (S406) by calculating the difference between the kinematic data and the quantized kinematic data. The first data can be included, for example, as a base layer 324 in the target-associated metadata 320 (S408). The second data can be included, for example, as an enhancement layer 326 in the target-associated metadata 320 (S408).

[0056] The component 312 can be divided to provide more than two layers of metadata as described above, so that multiple enhancement layers 326 (second data, third data, etc.) are included in the metadata 320 associated with the target.

[0057] Metadata 320 may further include identification data 322, such as frame identifiers, timestamps, target identifiers, etc., that enable the kinematic data represented in metadata 320 to be associated with a specific target at a specific point in time within the video (i.e., associated with the first frame of the video).

[0058] When included in metadata 320, first data 324 and second data 326 can be encoded. For this purpose, metadata processing apparatus 310 may include encoding component 314. As discussed herein, encoding component 314 may encode the first and second data in various ways.

[0059] For example, in some embodiments, the first data 324 and the second data 326 are compressed using different lossless compression schemes. This allows the encoding to take advantage of the different statistical properties of each layer 324, 326. The first data 324, which is quantized and is generally more uniform or bounded, can be efficiently compressed using time coding techniques such as run-length encoding (RLE) or incremental encoding. The second data 326, representing smaller and generally zero-centered residuals, can instead benefit from Huffman coding, entropy coding, or arithmetic coding, which better handle this type of non-uniform distribution.

[0060] In other embodiments, both the first data 324 and the second data 326 are compressed using the same lossy compression scheme. This approach simplifies implementation and is particularly suitable when system 300 is primarily focused on reducing bandwidth or storage, and slight distortion in all layers 324, 326 is acceptable. For example, both the coarsest representation of the kinematic data (first data) and the residual values ​​(second data, third data, etc.) can be encoded using a common transform-based codec such as quantization, like JPEG.

[0061] In some other embodiments, the encoding component 314 may apply a hybrid compression strategy. For example, the first data 324 may be compressed using lossless compression, while the second data 326 may be compressed using lossy compression. This approach is advantageous when it is necessary to accurately preserve the coarse representation (first data 324) while allowing higher-precision details (second data 326) to be stored more compactly, thus accepting some loss. For example, the first data 324 may be encoded using time-coding techniques, while the second data 326 may be encoded using a transform-based codec. This strategy is particularly beneficial when the first data is relatively smooth or predictable and can be effectively losslessly encoded, while the second data captures finite but high-frequency deviations, such as positional noise with limited amplitude, which are better suited to lossy encoding.

[0062] In some examples, the metadata processing device 310 can be further configured to include only first data, i.e., coarse kinematic data, in the metadata associated with a specific frame of the video. For example, in a second frame of the video, the metadata associated with the target may contain only the first data, omitting the second data or any enhancement layers. This can be beneficial for reducing bandwidth or storage requirements when high-precision kinematic data for every frame is not needed. In some embodiments, during subsequent analysis, the omitted second data for such frames can be interpolated or estimated based on available second data from other frames, such as those containing residual data, in previous or subsequent frames.

[0063] It should be noted that, as used in this article, the terms "first frame" and "second frame" are used only to refer to different frames within a video and do not imply any particular order. The second frame may or may not immediately follow the first frame.

[0064] In some examples, the metadata 320 is then transmitted via interface 330 to a metadata storage device 340, which can be configured to store and / or retrieval the metadata 320 stored in a storage device 350 such as a database. The metadata storage device 340 may be implemented within the same physical device as the metadata processing device 310, or it may be a separate device that communicates with the metadata processing device 310 via a network 330 or a local interface 330.

[0065] In some examples, metadata storage device 340 can be configured to store both first data 324 and second data 326 as part of the stored metadata in a target-related file, which is stored in storage device 350. Storage device 350 can be implemented within the same physical device as metadata storage device 340, or it can be a separate storage device / database 350 that communicates with metadata storage device 340 via network 352 or local interface 352.

[0066] The saving can be implemented, for example, by the metadata saver component 342. The metadata storage device 340 can then determine the time span since the data was saved (S412), and when the time span exceeds a predefined threshold, it performs deletion / reduction (S414) of the second data 326 from the file (e.g., via the metadata pruning component 344) while retaining the first data 324. This achieves metadata lifecycle management, in which high-precision information (the second data) is temporarily stored in the storage device 350, for example, to facilitate detailed analysis of recent activities, while coarse metadata (the first data) is retained in the storage device 350 for long-term use, such as for trend analysis or compliance purposes.

[0067] System 300 may further include a metadata extractor device 360 ​​configured to retrieve and interpret metadata 320 associated with a target detected in the video. The metadata extractor device 360 ​​includes a metadata selector 362 responsible for extracting relevant metadata from available sources. The metadata selector 362 is configured to extract first data 324, i.e., coarse, quantized kinematic data, for a specific target and image frame, and, depending on the operational context, extract second data 326, i.e., residual or enhancement layer data.

[0068] The decision to extract second data can be based on several factors, including system constraints, target-specific metadata attributes, or user-defined queries. For example, when performing high-level statistical analysis (e.g., determining "how many vehicles turned right at the intersection in the past three months" when coarse location data is sufficient and efficient analysis of large amounts of metadata is a priority), the metadata selector 362 may extract only the first data 324. Conversely, for tasks more sensitive to precision, such as determining "how many vehicles use a specific lane," the selector 362 may also extract second data to enable detailed analysis of the target's bounding box or trajectory.

[0069] The metadata extractor device 360 ​​further includes a decoding component 364 for decoding the extracted metadata according to an encoding format applied by the metadata processing device 310. This may include various lossless or lossy compression schemes for encoding the first data 324 and the second data 326.

[0070] exist Figure 3 In the example, the metadata selector 362 is connected via interface 374 to a user-facing or client device 370 that can be configured to display extracted metadata associated with the video or to further process it in an analytics pipeline. An operator of device 370 can interact with the metadata selector 362 via user interface 372, issuing queries that define the scope and level of detail required for the metadata 320 (transmitted to the metadata extractor device 360 ​​via interface 376). Based on this query (e.g., whether only a rough target location is needed or whether precise motion and shape information is required), the metadata selector 362 adaptively determines whether to extract only the first data 324 or to include one or more enhancement layers 326, such as second data.

[0071] Metadata selector device 362 and user-oriented device 370 can be implemented in a single device or separate devices.

[0072] Metadata selector 362 can be directly connected to metadata processing device 310 via interface 332 to support real-time metadata processing, for example, during real-time monitoring. Additionally or alternatively, metadata selector 362 can access metadata stored in storage device 350 via interface 354 to support batch or retrospective analysis.

[0073] In some examples, interfaces 330 and 332 used for transferring metadata 320 between devices (e.g., between metadata processing device 310 and metadata extractor device 360 ​​or metadata storer device 340) can conform to standardized metadata protocols such as ONVIF. In such an implementation, first data 324 can be included in a field defined by the standardized metadata protocol, which corresponds to kinematic information of an identified type, such as location, bounding box, or direction of motion. This ensures compatibility with existing ONVIF-compatible clients and systems.

[0074] Second data 326, representing enhanced or residual data not covered by a standardized metadata protocol, can be included in a custom field of that protocol. This ensures that systems unaware of the custom extensions can still process metadata using only the standardized fields, while allowing systems capable of interpreting the second data 326 to access detailed information, thus maintaining backward compatibility with various clients.

[0075] Furthermore, depending on system requirements and interoperability goals, metadata 320 itself can be qualified using structured data formats such as JSON or XML. These formats allow for flexible encoding of both standard and custom fields and are well-suited for real-time transmission and storage.

[0076] It should be noted that, such as Figure 3 The division of devices and components illustrated herein is provided by way of example only to illustrate the functions described. Various devices such as metadata processing device 310, metadata extractor device 360, and their associated components 312, 314, 342, 344, 362, 364, can be combined, distributed, or reorganized in other configurations without departing from the scope of the technology described herein. For example, two or more devices 310, 340, 360 can be integrated into a single physical or logical device, or a single device 310, 340, 360 or component 312, 314, 342, 344, 362, 364 can be distributed across multiple computing nodes or services. Similarly, depending on system requirements, functional blocks such as partitioning component 312 or metadata selector 362 can be implemented in hardware, software, or a combination thereof. Therefore, Figure 3 The architecture described herein is not intended to limit the implementation methods, and other architectural variations may be used to achieve the same or equivalent functionality.

[0077] Process 400 and any other methods described herein can be implemented as standalone routines or as part of a larger video analytics, target tracking, or metadata generation and processing system. In some implementations, process 400 and any other methods or techniques described herein are implemented by instructions executable by one or more processors, which may reside within a single device or be distributed across multiple devices in a networked system. The instructions for performing the method may be stored on one or more non-transitory computer-readable media such as flash memory, ROM, hard disk drives, or solid-state storage devices.

[0078] Suitable processors for executing method steps include, for example, general-purpose or special-purpose microprocessors that can be implemented as single-core or multi-core architectures. These processors can operate independently or collaboratively to perform combined... Figures 1 to 4 The described sequence of steps. In some embodiments, this functionality may be accelerated or fully implemented using application-specific integrated circuits (ASICs), digital signal processors (DSPs), field-programmable gate arrays (FPGAs), or other dedicated hardware accelerators optimized for efficient kinematic data processing, metadata encoding, and scalable transmission or storage.

[0079] The above embodiments should be understood as illustrative examples of this disclosure. Further embodiments of this disclosure are contemplated. It should be understood that any feature described with respect to any embodiment may be used alone or in combination with other features described, and may also be used in combination with one or more features of any other embodiment or any combination of any other embodiment. Furthermore, equivalents and modifications not described above may be employed without departing from the scope of this disclosure as defined by the appended claims.

Claims

1. A method for processing metadata associated with a target detected in a video, the method comprising: Obtain the kinematic data of the target detected in the first image of the video; The first data is determined by quantizing the kinematic data using a predefined quantization scheme; The second data is determined by calculating the difference between the kinematic data and the quantified kinematic data; as well as The first data and the second data are included in the metadata.

2. The method according to claim 1, further comprising: The first data and the second data are stored as metadata in a file associated with the target; Determine the time span since the first data and the second data were saved as metadata in the file; as well as When the time span exceeds the threshold time span, the second data is deleted from the file.

3. The method according to claim 1, in, Determining the first data includes: The kinematic data is determined by quantizing the kinematic data using the predefined quantization scheme; and The quantized data is compressed using a first lossless compression method. The determination of the second data includes: The difference data is determined by calculating the difference between the kinematic data and the quantized data; and The difference data is compressed using a second lossless compression method. The first lossless compression is different from the second lossless compression.

4. The method according to claim 1, in, Determining the first data includes: The kinematic data is determined by quantizing the kinematic data using the predefined quantization scheme; and The quantized data is compressed using a first lossy compression method. The determination of the second data includes: The difference data is determined by calculating the difference between the kinematic data and the quantized data; and The difference data is compressed using the first lossy compression method.

5. The method according to claim 1, in, Determining the first data includes: The kinematic data is determined by quantizing the kinematic data using the predefined quantization scheme; and The quantized data is compressed using lossless compression. The determination of the second data includes: The difference data is determined by calculating the difference between the kinematic data and the quantized data; and The poor data is compressed using lossy compression.

6. The method of claim 1, further comprising: The metadata is transmitted to the client using a standardized metadata protocol. Wherein, the first data is added to a field in the standardized metadata protocol, the field being defined in the standardized metadata protocol as being related to the type of the kinematic data; and The second data is added to a custom field in the standardized metadata protocol.

7. The method according to claim 6, wherein, The standardized metadata protocol is the ONVIF metadata protocol.

8. The method according to claim 1, wherein, Determining the second data includes: The difference data is determined by calculating the difference between the kinematic data and the quantified kinematic data; and The second data is determined by quantizing the difference data using a second predefined quantization scheme. The method further includes: The third data is determined by calculating the difference between the kinematic data and the sum of the quantized kinematic data and the quantized difference data; and The third data is included in the metadata.

9. The method of claim 1, further comprising: Obtain the metadata at the client end; Extract the first data from the obtained metadata; as well as Ignore the extraction of the second data from the obtained metadata.

10. The method according to claim 8, wherein, Ignoring the extraction of the second data from the received metadata includes at least one of the following: The client determines that the importance level of the target is lower than the threshold importance level; The client determines that the confidence level of the target is lower than the threshold confidence level; The client determines that its available computing resources are below a threshold. as well as The client determines that the second data can be ignored based on a query from the user.

11. The method of claim 1, further comprising: Obtain second kinematic data of the target detected in a second image of the video, the second image being after the first image in the video; The fourth data is determined by quantifying the kinematic data using the predefined quantization scheme. as well as The fourth data is included in the metadata.

12. A non-transitory computer-readable storage medium having instructions stored thereon for implementing the method of claim 1 when executed on one or more means having processing capabilities.

13. An apparatus for processing metadata associated with a target detected in a video, the apparatus being configured to: Obtain the kinematic data of the target detected in the first image of the video; The first data is determined by quantizing the kinematic data using a predefined quantization scheme; The second data is determined by calculating the difference between the kinematic data and the quantified kinematic data; as well as The first data and the second data are included in the metadata.

14. A system for processing metadata associated with a target detected in a video, the system comprising a first means according to claim 13 and a second means, the second means being configured to: The first data and the second data are stored as metadata in a file associated with the target; Determine the time span since the first data and the second data were saved as metadata in the file; as well as When the time span exceeds the threshold time span, the second data is deleted from the file (S414).

15. A system for processing metadata associated with a target detected in a video, the system comprising a first means according to claim 13 and a third means, the third means being configured to: Obtain the aforementioned metadata; Extract the first data from the obtained metadata; as well as Ignore the extraction of the second data from the obtained metadata.