A time sequence segment shunting and result aggregation method, device and equipment for mixed shelves and freezer videos and a storage medium
By extracting and filtering candidate regions from mixed videos, estimating global displacement, and generating time-series segments, this technology solves the problems of object type misjudgment and manual intervention in existing technologies, achieving automated processing and unified aggregation of results, and adapting to mobile scenarios.
Patent Information
- Application Number
- CN202611315984.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies are prone to misjudging object types and unstable segmentation when processing videos of mixed shelves and freezers. They also require additional manual intervention, making them unsuitable for mobile on-site inspections and large-scale batch processing scenarios. Furthermore, the downstream results are difficult to correspond to the original time-series segments.
By acquiring object region masks from video streams or image frame sequences, candidate regions are extracted and noise is filtered. Motion compensation is performed by estimating global displacement between adjacent frames. Temporal segments are generated based on spatial overlap and area ratio. The segment categories and boundaries are corrected according to preset priority rules and dispatched to the corresponding image processing links. Finally, the downstream results are re-associated with the original segments to form a unified result.
It enables automated processing of mixed shelf and freezer videos on mobile devices, reduces the impact of camera movement, handles category overlap and short-term misclassification, ensures the correspondence between downstream results and original time-series segments, and is suitable for on-site inspections and large-scale processing.
Smart Images

Figure CN123182099A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of video content analysis technology, and in particular to a method, apparatus, device, and storage medium for time-series segment splitting and result aggregation of mixed shelf and freezer videos. Background Technology
[0002] In real-world retail inspection scenarios, staff often use the same mobile device to continuously film videos along the store's customer flow. A single continuous video may capture multiple shelves, multiple freezers, or even both types of objects simultaneously within the same time window. Such videos inherently feature mixed targets, multiple instance switching, and complex shooting paths.
[0003] There are generally two common approaches in existing technologies: one is to directly feed the entire mixed video into a single algorithm for processing; the other is to have a human observe the video first, then manually cut the video into shelf segments and freezer segments before feeding them into different algorithms. The former is prone to misjudging object types, unstable segmentation, or abnormal downstream output; the latter requires additional human intervention and is difficult to adapt to mobile on-site inspection and large-scale batch processing scenarios.
[0004] Furthermore, the subsequent image processing links used for shelf videos and freezer videos differ. Shelf segments can enter a processing link suitable for continuously scanned images, while freezer segments can enter a processing link suitable for freezer images. If the entire mixed video is sent to the same processing link, the segment categories and processing methods cannot correspond, and the resulting images or recognition results are easily interfered with by non-target segments.
[0005] After segmentation and splitting, it is also necessary to determine the correspondence between downstream results and the original time-series segments. If only the downstream returned fields are summarized without retaining the segment identifier, category, and start and end frame positions, the upper-layer system will find it difficult to determine the source of the results. Therefore, it is necessary to re-associate the downstream results with the original segments during aggregation and form result items that can be read uniformly.
[0006] It should be noted that this section is intended to provide background or context for the technical solutions of this disclosure as set forth in the claims. The description herein does not constitute an admission that it is prior art simply because it is included in this section. Summary of the Invention
[0007] The purpose of this disclosure is to provide a method, apparatus, device, and storage medium for time-series segment splitting and result aggregation of mixed shelf and freezer video, thereby overcoming at least to some extent one or more problems caused by the limitations and defects of related technologies.
[0008] According to a first aspect of the present disclosure, a method for time-series segment splitting and result aggregation of mixed shelf and freezer video is provided, comprising: Step S1: Obtain a video stream or a sequence of continuous image frames containing shelf-type objects and / or freezer-type objects, and obtain an object region mask; wherein, the object region mask includes at least one of a class object region mask and a freezer-type object region mask; Step S2: Extract candidate regions from the non-empty object region mask, and filter edge noise based on boundary contact relationship, area ratio, aspect ratio, width ratio, height ratio, and whether it is a thin strip. Step S3: Estimate the global displacement between adjacent frames, perform motion compensation on the position of the candidate region in the previous frame based on the global displacement, and obtain the predicted region in the current frame; Step S4: Perform temporal correlation based on the spatial overlap, area ratio and center distance between the predicted region and the same candidate region in the current frame to form candidate trajectories, and generate initial temporal segments based on the candidate trajectories; Step S5: Based on the area ratio of the candidate region, the number of frames of the segment, the temporal overlap relationship of different types of segments, and the motion continuity, the object category and / or start and end frame positions of the initial time segment are corrected according to the preset priority rules to handle category conflicts and / or temporal boundary conflicts, and the corrected time segment is obtained; wherein, the corrected time segment includes shelf-type time segment and freezer-type time segment. Step S6: Based on the correspondence between the corrected time segment, object category, and target image processing link, generate dispatch tasks and dispatch the dispatch tasks to the corresponding image processing links respectively; wherein, the image processing link includes model entry and / or parameter configuration; Step S7: Receive the segment processing results returned by each image processing link after processing the video frame window or sampled frame in the dispatch task. Based on the temporal segment identifier, object category, and start and end frame positions, re-associate the segment processing results with the corresponding corrected temporal segments and convert them into an aggregated result composed of unified result items. The unified result item records at least the temporal segment identifier, object category, target image processing link, start and end frame positions, and downstream result references.
[0009] Further, in step S2, candidate regions are extracted from at least one of the shelf-type object region mask and the freezer-type object region mask. When there is no corresponding object category, the corresponding mask is empty or no candidate region of that category is generated. Connectivity analysis is performed on the non-empty object region mask to obtain candidate regions, and candidate regions that touch the edge of the screen and whose width ratio, height ratio, area ratio or aspect ratio does not meet the corresponding threshold are removed. The remaining candidate regions are sorted by area, and the dominant candidate and the candidates whose area reaches the preset proportion of the dominant candidate are retained.
[0010] Further, in step S3, the global displacement includes lateral global displacement and longitudinal global displacement; wherein, The phase correlation method is used to estimate the horizontal and vertical global displacements of adjacent frames, and the candidate region of the previous frame is translated according to the horizontal and vertical global displacements to obtain the prediction region. The area ratio is the ratio of the smaller area of the predicted region to the larger area of the current candidate region, and the image scale is the length of the image diagonal. The current candidate region is determined as an associable candidate when the area ratio is not less than 0.35, the ratio of center distance to image scale is not higher than 0.35, and one of the following conditions is met: the intersection-union ratio of the two is not less than 0.05; or the ratio of center distance to image scale is not higher than 0.175.
[0011] Furthermore, in step S4, the temporal correlation uses the intersection-union ratio, area ratio, and center distance ratio of the predicted region and the current candidate regions of the same type as correlation conditions; The area ratio is the ratio of the smaller area to the larger area of the two objects, and the center distance ratio is the ratio of the center distance between the two objects to the length of the diagonal of the image. The end of a candidate trajectory is determined by the number of consecutive unmatched frames.
[0012] Further, in step S4, the frame corresponding to the candidate region with the largest area is selected from the candidate trajectory as the representative frame. The start and end times are determined according to the start and end frames of the candidate trajectory and the video frame rate. The positions of the sampling frames contained in the candidate trajectory are recorded to form an initial time segment.
[0013] Furthermore, in step S5, correcting the initial timing segment includes at least one of the following: When a shelf-type time segment is located after the main shelf-type time segment, the number of consecutive frames and the frame span do not exceed the corresponding thresholds, and the area and height of the candidate region representing the frame reach the corresponding thresholds, the shelf-type time segment is corrected to a freezer-type time segment. When the time intervals of shelf-type time segments and freezer-type time segments overlap, remove the sampled frames that fall within the time interval of freezer-type time segments and their boundary margins from the shelf-type time segments, and reconstruct the remaining continuous sampled frames into shelf-type time segments. The main shelf-type time segment is the shelf-type time segment with the largest number of continuous frames in the same video. When the number of continuous frames of the main shelf-type time segment is not less than a preset multiple of the sum of the number of continuous frames of other shelf-type time segments, the other shelf-type time segments are processed. Among them, if the sampled frame is located between the boundaries of adjacent freezer-type time segments and meets the time continuity condition with the main shelf-type time segment, the sampled frame is merged into the main shelf-type time segment and the start and end frames, sampled frame positions and representative frames are updated. The remaining shelf-type time segments are suppressed.
[0014] Furthermore, step S6 specifically includes: The modified time-series segments are sorted according to their start frame, end frame, and object category, and dispatch tasks containing the modified time-series segments and their corresponding video frame windows or sampling frame positions are generated. Among them, shelf-type time-series segments are dispatched to shelf-type image processing links, and freezer-type time-series segments are dispatched to freezer-type image processing links. The shelf-type image processing links and freezer-type image processing links are distinguished by different model entry points and / or different parameter configurations. The target image processing link extracts the input frame from the video frame window or sampling frame position and performs link processing according to the corresponding model entry point and / or parameter configuration to obtain the segment processing result.
[0015] According to a second aspect of the present disclosure, a time-series segment splitting and result aggregation apparatus for mixed shelf and freezer video is provided, comprising: The candidate extraction module is used to acquire a video stream or a continuous image frame sequence containing shelf-type objects and / or freezer-type objects, and to acquire an object region mask; wherein the object region mask includes at least one of a class object region mask and a freezer-type object region mask; The noise filtering module is used to extract candidate regions from non-empty object region masks and filter edge noise based on boundary contact relationship, area ratio, aspect ratio, width ratio, height ratio, and whether it is a thin strip. The global displacement estimation and motion compensation module is used to estimate the global displacement between adjacent frames, perform motion compensation on the position of the candidate region in the previous frame based on the global displacement, and obtain the predicted region in the current frame. The temporal correlation module is used to perform temporal correlation based on the spatial overlap, area ratio and center distance between the predicted region and the same candidate region in the current frame, form candidate trajectories, and generate initial temporal segments based on the candidate trajectories; The segment generation and correction module is used to correct the object category and / or start and end frame positions of the initial time segment according to the area ratio of the candidate region, the number of frames of the segment, the temporal overlap relationship of different types of segments and the motion continuity, and according to the preset priority rules, so as to handle category conflicts and / or temporal boundary conflicts, and obtain the corrected time segment; wherein, the corrected time segment includes shelf-type time segment and freezer-type time segment; The image processing link routing module is used to generate dispatch tasks based on the correspondence between the corrected time segment, object category and target image processing link, and dispatch the dispatch tasks to the corresponding image processing links respectively; wherein, the image processing link includes model entry and / or parameter configuration; The result association and aggregation module is used to receive the segment processing results returned by each image processing link after processing the video frame window or sampled frame in the dispatch task. Based on the temporal segment identifier, object category and start and end frame positions, the segment processing results are re-associated with the corresponding corrected temporal segments and converted into an aggregated result composed of unified result items. The unified result item records at least the temporal segment identifier, object category, target image processing link, start and end frame positions and downstream result references.
[0016] According to a third aspect of the present disclosure, an electronic device is provided, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When executed by the processor, the computer program implements the steps of the time-series segment splitting and result aggregation method for mixed shelf and freezer video described in any of the above embodiments.
[0017] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the method for time-series segment splitting and result aggregation of mixed shelf and freezer video as described in any of the above embodiments.
[0018] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: In the embodiments of this disclosure, the above-described method and apparatus, on the one hand, extracts candidates from at least one of the object region masks for shelf-type and freezer-type objects and filters edge noise; estimates the global displacement of adjacent frames, performs motion compensation on the candidate positions of the previous frame to form a prediction region, and then associates candidates of the same type based on spatial overlap, area ratio, and center distance to generate an initial temporal segment. The system corrects the segment category or boundary according to a preset priority rule based on the candidate area, segment duration, overlap relationship of different types of segments, and motion continuity, and dispatches the corrected segment to the corresponding image processing link. The downstream results are re-associated with the original segments according to the segment identifier, object category, and start and end frame positions to form a unified aggregation result. On the other hand, global displacement is used to compensate for the candidate positions of the previous frame to reduce the impact of camera motion on cross-frame association; category overlap and short-term misclassification are handled through determined segment correction rules; image processing links are selected according to the corrected categories; and the correspondence between the downstream results and the original temporal segments is preserved during aggregation. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0020] Figure 1 The diagram illustrates the steps of a method for splitting and aggregating time-series video clips from mixed shelving and freezer displays, as shown in an exemplary embodiment of this disclosure. Figure 2 This diagram illustrates the overall flowchart of hybrid video temporal segment splitting and result aggregation in an exemplary embodiment of this disclosure; Figure 3 This diagram illustrates candidate extraction and noise filtering in an exemplary embodiment of the present disclosure. Figure 4 This diagram illustrates global motion compensation and timing correlation in an exemplary embodiment of this disclosure. Figure 5 This diagram illustrates the generation and post-processing correction of timing segments in an exemplary embodiment of this disclosure. Figure 6 This diagram illustrates how time segments of shelf and freezer classes are routed to different image processing links in an exemplary embodiment of this disclosure. Figure 7 This diagram illustrates the correlation and unified aggregation of fragment processing results in an exemplary embodiment of this disclosure. Detailed Implementation
[0021] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0022] Furthermore, the accompanying drawings are merely illustrative diagrams of embodiments of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0023] This example implementation first provides a method for time-series segment splitting and result aggregation of video from mixed shelves and freezers. (Reference) Figure 1 As shown, the method may include: Step S1: Obtain a video stream or a sequence of continuous image frames containing shelf-type objects and / or freezer-type objects, and obtain an object region mask; wherein, the object region mask includes at least one of a class object region mask and a freezer-type object region mask; Step S2: Extract candidate regions from the non-empty object region mask, and filter edge noise based on boundary contact relationship, area ratio, aspect ratio, width ratio, height ratio, and whether it is a thin strip. Step S3: Estimate the global displacement between adjacent frames, perform motion compensation on the position of the candidate region in the previous frame based on the global displacement, and obtain the predicted region in the current frame; Step S4: Perform temporal correlation based on the spatial overlap, area ratio and center distance between the predicted region and the same candidate region in the current frame to form candidate trajectories, and generate initial temporal segments based on the candidate trajectories; Step S5: Based on the area ratio of the candidate region, the number of frames of the segment, the temporal overlap relationship of different types of segments, and the motion continuity, the object category and / or start and end frame positions of the initial time segment are corrected according to the preset priority rules to handle category conflicts and / or temporal boundary conflicts, and the corrected time segment is obtained; wherein, the corrected time segment includes shelf-type time segment and freezer-type time segment. Step S6: Based on the correspondence between the corrected time segment, object category, and target image processing link, generate dispatch tasks and dispatch the dispatch tasks to the corresponding image processing links respectively; wherein, the image processing link includes model entry and / or parameter configuration; Step S7: Receive the segment processing results returned by each image processing link after processing the video frame window or sampled frame in the dispatch task. Based on the temporal segment identifier, object category, and start and end frame positions, re-associate the segment processing results with the corresponding corrected temporal segments and convert them into an aggregated result composed of unified result items. The unified result item records at least the temporal segment identifier, object category, target image processing link, start and end frame positions, and downstream result references.
[0024] The above method, on the one hand, extracts candidates from at least one of the object region masks for shelf and freezer categories and filters edge noise; estimates the global displacement of adjacent frames, performs motion compensation on the candidate positions of the previous frame to form a predicted region, and then associates candidates of the same type based on spatial overlap, area ratio, and center distance to generate initial temporal segments. The system corrects the segment category or boundary according to preset priority rules based on candidate area, segment duration, overlap relationship of different types of segments, and motion continuity, and dispatches the corrected segments to the corresponding image processing links. Downstream results are re-associated with the original segments according to segment identifier, object category, and start and end frame positions to form a unified aggregation result. On the other hand, global displacement is used to compensate for the candidate positions of the previous frame to reduce the impact of camera motion on cross-frame association; category overlap and short-term misclassification are handled through determined segment correction rules; image processing links are selected according to the corrected categories; and the correspondence between downstream results and original temporal segments is preserved during aggregation.
[0025] Below, we will refer to Figures 1 to 7 The steps of the method described above in this example embodiment will be explained in more detail.
[0026] The input to this application can be local video or continuously fed sample frames. The system first performs temporal segmentation on the mixed video, then selects the corresponding image processing link according to the segment category, and finally re-associates the downstream results to the original segments.
[0027] For ease of explanation, a candidate region is a connected region extracted from an object region mask that may correspond to a shelf object or a freezer object; a candidate trajectory is a sequence of related candidates of the same type in the time dimension; a temporal segment is a processing unit generated from candidate trajectories and can be independently dispatched; and a unified result item is an aggregation unit that retains the segment identifier, category, start and end frame positions, and downstream result references.
[0028] The input can be a local video file on the terminal or a continuous stream of frames input during the shooting process. When processing local video, the system establishes a frame index and generates a segment plan offline; when processing continuous frame streams, the system accumulates candidate trajectories during the acquisition process and submits them to the corresponding image processing link after the time segment meets the dispatch conditions.
[0029] In the following embodiments, the object region mask represents the region distribution of shelf-type or freezer-type objects in the current frame; the horizontal global displacement and the vertical global displacement represent the overall translation estimation between adjacent frames; the representative frame represents the frame corresponding to the state with the largest candidate area in the time segment; and the sampled frame position represents the set of frame indexes contained in the candidate trajectory.
[0030] In one embodiment, the processing sequentially includes candidate construction and noise filtering, global displacement estimation and motion compensation, temporal correlation and segment generation, segment correction, image processing link splitting, and result back correlation and aggregation. Each stage maintains a correspondence through segment identifiers and start and end frame positions.
[0031] It can also provide intermediate states before the end of shooting, including the number of completed shelf-type segments, the number of freezer-type segments, candidate stable states, and abnormal transition prompts. On-site operators can adjust shooting actions accordingly.
[0032] The overall processing flow is as follows Figure 2 As shown, the system receives video containing shelf objects, freezer objects, or a combination of both. For each frame, it extracts candidate regions from a non-empty object region mask, generates motion-compensated predicted regions, and forms similar candidate trajectories over time. After generating temporal segments of the candidate trajectories, they are dispatched to the shelf or freezer image processing link according to the object category.
[0033] It can handle videos with mixed objects, as well as videos containing only shelf objects or only freezer objects. Single-category inputs can directly generate time-series clips and dispatch tasks for the corresponding category without performing cross-category conflict correction.
[0034] Furthermore, in automatic mode, the algorithm prioritizes determining whether the current input is closer to a single shelf, a single freezer, or a mixed scene based on candidate statistics, scene coverage, number of segments, and category distribution. If it is determined that only one type of object appears throughout the entire video and the temporal sequence is good, a single path can be directly used. If it is determined that multiple shelf segments, multiple freezer segments, or alternating shelves and freezers appear sequentially within a video, the route segmentation and splitting logic is automatically activated to prevent the entire video from being incorrectly sent to a single algorithm path.
[0035] In store inspection scenarios, the photographer might first photograph ambient temperature shelves, then move to island displays or upright freezers. The camera's perspective, movement direction, and object shape change accordingly. Without temporal segmentation, different object sequences would enter the same image processing loop, leading to a mismatch between segment categories and processing methods. This application generates and corrects temporal segments before downstream processing, then segments them according to object category.
[0036] The overall process may also include task initialization, session end processing, and result archiving. The task initialization phase sets the input source, frame rate cue, video direction, and output position; the session end phase converts the activity candidate trajectory into time-series segments; and the result archiving phase saves the segment plan, aggregation result summary, and processing log.
[0037] In a preferred embodiment, a unified task context is also maintained at the overall process level. This task context may include at least a task identifier, input video path, total number of frames, shooting direction, current scene mode, number of segments formed, and downstream dispatch status. With this unified context, the front-end interface, routing module, and downstream algorithms can exchange information around the same task identifier, thereby avoiding inconsistencies in state when multiple modules collaborate.
[0038] In one specific embodiment, candidates are constructed from object segmentation output. Freezer-type objects preferentially use a freezer-type object region mask; if this mask is unavailable, the corresponding region can be recovered from the category distribution mask. Shelf-type objects use a shelf-type object region mask. Connectivity analysis is performed on each mask to obtain the bounding box, pixel area, and candidate score of the candidate region.
[0039] like Figure 3As shown, noise is filtered based on edge contact relationships, area proportion, aspect ratio, width proportion, height proportion, and candidate shape. Slender candidates that contact the left and right edges and have a small width proportion, or candidates that contact the top and bottom edges and have a small height proportion, can be classified as edge noise. For shelf-type candidates, narrow end regions can be eliminated based on a combination of width and height proportions. All proportions are calculated using the current frame's width, height, or area normalized.
[0040] Let the width of the current frame be W and the height be H. Let the width, height, and pixel area of the candidate region bounding box be w, h, and A, respectively. Then, what is the area percentage of the candidate region? Width percentage height percentage Aspect Ratio Candidate filtering is performed using the aforementioned normalized values and edge contact relationships.
[0041] After candidate extraction, tail noise filtering can also be performed. Candidates are sorted in descending order of pixel area, and the candidate with the largest area is selected as the dominant candidate. The dominant candidate and other candidates whose areas reach a preset proportion of the dominant candidate are retained, and the remaining candidates are not included in the temporal correlation.
[0042] In one embodiment, candidate extraction does not simply accept all segmentation outputs, but prioritizes constructing candidate regions with business interpretability. For example, in a freezer scenario, it focuses on regions with stable vertical structures, clear borders, and a large screen area; in a shelf scenario, it focuses on regions with significant horizontal extension, visible shelf structures, and a relatively moderate overall height. By incorporating object geometry priors in the candidate stage, this application can eliminate a batch of obviously unreliable regions before entering temporal tracking, reducing the probability of downstream missegmentation.
[0043] In another embodiment, several auxiliary attributes can be attached to the candidate, including contact left boundary identifier, contact right boundary identifier, contact top boundary identifier, contact bottom boundary identifier, area as a percentage of the whole frame, aspect ratio, center point position, and relative stability with the candidate in the previous frame. These attributes can be used for noise filtering and for subsequent determination of whether a candidate is more like a real shelf, the front of a freezer, or a pseudo-target composed only of reflections, column edges, or parts of a promotional sign.
[0044] In a typical abnormal scenario, freezer borders, shelf price tags, store advertising signs, or shelf end posts can all form prominently highlighted, elongated regions in the segmentation image. Treating these regions directly as real objects can easily lead to incorrect segmentation. This application employs a combined strategy of "edge contact + area proportion + shape ratio + tail noise filtering" to eliminate most of these false edge targets during the candidate stage, preventing them from further contaminating subsequent time-series links.
[0045] In one embodiment, if multiple large candidates exist simultaneously in the same frame, they are not all directly considered as final valid objects. Instead, their geometric stability, area proportion, and center distribution position are further compared. Candidates that are significantly deviated from the main shooting object and only appear sporadically in a very few frames can be marked as auxiliary candidates or candidates to be observed, and are not immediately included in the dominant temporal chain. This hierarchical candidate strategy can effectively reduce misclassification caused by multiple targets mixed in complex store environments.
[0046] Candidate filtering can also incorporate terminal shooting direction and historical frame statistics. When the dominant object is determined to be a freezer for multiple consecutive frames and the shooting direction is stable, the priority of smaller, shorter-duration shelf-type candidates can be reduced; the opposite rule is applied when the dominant object is a shelf. This constraint utilizes cross-frame information to suppress short-term category jumps.
[0047] In one embodiment, adjacent frames are first grayscaled and size normalized, then phase correlation is used to estimate the lateral and longitudinal global displacements. The candidate region of the previous frame is translated according to the displacements to obtain the predicted region in the current frame. The global displacement is used directly for candidate association here, rather than just as an additional observation.
[0048] Let the preprocessed images of frame t-1 and frame t be respectively... and The global displacement is obtained through phase correlation calculation. If the candidate region of the previous frame is represented as Then the prediction region after motion compensation is represented as .
[0049] like Figure 4 As shown, candidate trajectories for freezer and shelf activities are maintained separately. For any activity trajectory, the candidate region of the previous state is first translated based on global displacement to obtain the predicted region. Then, the intersection-union ratio, area ratio, and center distance ratio between the predicted region and the current candidate region of the same type are calculated. In one implementation example, if the area ratio is not less than 0.35, the ratio of the center distance to the diagonal length of the screen is not greater than 0.35, and the intersection-union ratio is not less than 0.05 or the center distance ratio is not greater than 0.175, the current candidate enters the set of associable candidates.
[0050] For associative candidates, one implementation uses the sum of 0.65 times the intersection-union ratio, 0.20 times the area ratio, and 0.15 times the center distance score as the matching score, where the center distance score decreases as the center distance ratio increases. The candidate with the highest score is selected to update the trajectory; if the current frame does not match, the number of consecutive unmatched frames is incremented by one, and the trajectory is terminated when it exceeds two. The above values are used to illustrate one implementation parameter and can be adjusted according to video resolution and sampling interval.
[0051] Specifically, let the predicted region be B_p and the current candidate regions of the same type be B_c, then the intersection-union ratio (IUU) Area ratio Center distance ratio Center distance score Under the above implementation parameters, the matching score Each weight and normalization threshold can be adjusted based on the input resolution, frame rate, or sampling interval.
[0052] In one embodiment, frame-level signals, in addition to being used for continuous trajectory association, can also be used to determine the dominant object type of the current video segment. For example, when freezer_count remains consistently above zero, freezer_area_ratio remains stably high, and the change in motion_dy is more consistent with vertical scanning characteristics within a certain time window, the confidence that the window belongs to a freezer segment can be enhanced; conversely, when the candidate has a larger horizontal span, a more gradual area distribution, and global motion is closer to horizontal translation, the judgment of shelf segments can be enhanced.
[0053] Candidates are allowed to be missing for a short period of time without immediately ending the candidate trajectory. The trajectory is retained as long as the number of consecutive unmatched frames does not exceed a threshold; when the threshold is exceeded, the trajectory is terminated and a segment boundary is formed.
[0054] In a preferred embodiment, historical center point trajectories, historical area sequences, and historical motion direction summaries can also be maintained for continuous trajectories to more accurately determine whether a candidate still belongs to the original continuous trajectory when it reappears. Especially in complex store scenes where multiple similar candidates appear alternately, simply relying on the current frame position may not be sufficient to achieve stable association, while introducing historical states can significantly improve the robustness of continuous tracking.
[0055] In one embodiment, if a continuous trajectory experiences multiple category shifts within a short period—for example, initially classified as a shelf candidate, then briefly as a freezer candidate, and then back to a shelf candidate—then the continuous trajectory can be smoothly interpreted by combining historical area trends, center movement trajectories, and the dominant objects of preceding and following segments, instead of immediately and frequently changing segment categories based on single-frame results. This helps reduce category jitter in locally cluttered scenes.
[0056] In another embodiment, frame-level signals can also be used for quality diagnosis. When motion_mag suddenly increases abnormally, the number of candidates fluctuates drastically, or the area ratio jumps significantly for several consecutive frames, the interval can be marked as an unstable period, and corresponding prompts can be added in the subsequent segment generation or result aggregation stages so that the upper layer can identify that there may be shooting abnormalities in this segment of input.
[0057] After all observation frames have been processed, the active trajectory and the completed trajectory enter the segment generation stage together. For each trajectory, the frame corresponding to the state with the largest candidate area is selected as the representative frame. The start and end times are calculated based on the start and end frames and the video frame rate, and the sampling frame positions of each state in the trajectory are recorded to form the initial time sequence segment.
[0058] Let F be the set of frame indices contained in the candidate trajectory, and B_f be the candidate region corresponding to frame f. Then, the representative frame is... If the start and end frames of the segment are f_s and f_e respectively, and the video frame rate is q, then the start and end times are respectively... and .
[0059] In one embodiment, before generating the initial time segment, the candidate trajectories for freezer-type objects can be boundary-corrected. Trajectories of the same type that are temporally adjacent or overlapping and have continuous motion can be merged; the trajectory status can be filtered according to the dominant direction of the longitudinal global displacement; when multiple freezer-type candidates appear within the same time window and a switch of the dominant candidate occurs, the segmentation position can be determined based on the candidate area, center position, and temporal continuity.
[0060] It can also trim states at the end of candidate trajectories that no longer conform to the dominant motion direction. When the time intervals of multiple similar trajectories overlap, the trajectory boundaries are adjusted based on the degree of overlap of the candidate regions, motion continuity, and start and end frame positions.
[0061] like Figure 5 As shown, after the initial temporal segment is generated, it is corrected in the order of category promotion, overlap pruning, and secondary segment suppression or absorption. In a resolution-dependent implementation example, the main shelf-type segment must contain at least 100 states and start at least four sampling intervals later than the main shelf-type segment, and the total number of freezer-type states in the video must not exceed 16. Shelf-type segments following the main shelf-type segment must have a total frame count not exceeding 12 and a frame span not exceeding 36. Furthermore, if the candidate region of its representative frame satisfies the following conditions: area not less than 350,000 pixels and height not less than 900 pixels, or area not less than 1,500,000 pixels, or width not less than 1,800 pixels and height not less than 1,500 pixels, then the segment is promoted to a freezer-type segment. The pixel threshold can be converted into area percentage, width percentage, and height percentage according to the input resolution.
[0062] As dispatchable processing units, time-series segments record the start and end frames, duration, representative frame, sampling frame position, target image processing chain, and category before and after correction. Segment identification is used throughout the dispatch and result retrieval processes.
[0063] For shelf-type and freezer-type segments with overlapping time intervals, in one implementation example, using twice the sampling interval as the boundary margin, sampled frames falling within the start and end intervals of the freezer-type segment and its boundary margin are removed from the shelf-type segment. The remaining sampled frames are then reconstructed continuously; the reconstructed segment retains at least two sampling points. This process is used to eliminate category overlap within the same time interval.
[0064] Let the frame intervals of two different types of segments be respectively and Then the number of overlapping frames When L_ov is greater than 0, the interval to be clipped can be represented by combining the boundary margin m. And adjust the sampling frame set and start and end frame positions of the corresponding segment according to the preset priority.
[0065] The main shelf segment is the shelf segment with the longest continuous frame count. In one implementation, the main shelf segment has a continuous frame count of at least 100, and other individual shelf segments have a continuous frame count of at least 54. If the continuous frame count of the main shelf segment is at least 100, which is the larger of four times the total continuous frame count of the other shelf segments, then the other shelf segments are processed one by one. If the sampled frames of other shelf segments are located between the boundaries of adjacent freezer segments and satisfy the temporal continuity condition with the main shelf segment, then the sampled frames are merged into the main shelf segment, and the start and end frames, sampled frame positions, and representative frames are updated; the remaining segments are suppressed. The above values are implementation parameters.
[0066] It can record the duration of frames, category correction status, overlap pruning status, tail pruning status, and category boosting status for each time segment, which can be read during quality inspection.
[0067] In another embodiment, if a continuous trajectory exists but its duration is extremely short, its area is extremely small, or it only occurs during periods of abnormal fluctuation, it can be marked as an edge segment or a low-priority segment and selectively suppressed in the final plan. This avoids incorrectly sending extremely short object segments triggered only by occasional noise downstream, improving the stability of the overall routing plan.
[0068] After obtaining the final segment plan, the segments are sorted by their start frame, end frame, and object category, and a dispatch task is generated for each segment. The dispatch task includes the time segment and the corresponding video frame window or sampling frame position.
[0069] like Figure 6 As shown, shelf-type time-series segments are dispatched to the shelf-type image processing link, and freezer-type time-series segments are dispatched to the freezer-type image processing link. The two types of links use different model inputs and / or different parameter configurations; each link only receives the video frame window or sampling frame position covered by the corresponding segment.
[0070] In a streaming implementation, the latest segment plan can be periodically read during the streaming process, and asynchronous dispatch can be performed on newly emerging time-series segments that have not yet been submitted, enabling downstream processing and continuous observation to proceed in parallel.
[0071] Different object categories have different image structures and processing requirements. The processing link for shelf-type images can use model entry points and parameters suitable for continuously scanned images, while the processing link for freezer-type images can use model entry points and parameters suitable for freezer images. The splitting module only maintains the mapping between fragment categories and target links, without limiting the specific processing steps within downstream links.
[0072] Task assignment can specify several input frames by sampling frame positions, or it can specify continuous input by a window of video frames near the representative frame. The target image processing link selects one of these methods based on its own input requirements.
[0073] In one embodiment, the target image processing link receives the video frame window or sampling frame position in the dispatched task, extracts the corresponding input frame, and performs image preprocessing, image correction or combination, and target detection or recognition according to the model entry and / or parameter configuration adapted to the object category. The shelf-type image processing link can perform inter-frame registration, image combination, and shelf target recognition on consecutive scan frames; the freezer-type image processing link can perform candidate frame selection, image correction or combination, and freezer target recognition. One or more of the above processing steps can be used, and are not limited to a fixed order or fixed algorithm.
[0074] After the image processing link completes its processing, it returns the segment processing result using the time segment identifier as the association key. The segment processing result may include the processing status, and at least one of the following: result image, recognition statistics, structured recognition data, and result file reference; fields not generated by the corresponding link can be empty. Let the i-th dispatch task be represented as... Where id_i is the fragment identifier, c_i is the object category, Let F_i be the start and end frame interval, F_i be the input frame set, and T(c_i) be the target link. Then the aggregation result can be expressed as: , where O_i is the segment processing result returned by the corresponding link or a reference thereto.
[0075] In one example scenario, the first half of the video consists of a continuous scan of a long shelf, while the second half sequentially captures multiple freezers. The first half is generated into a shelf-type time sequence segment, and the second half into a freezer-type time sequence segment, which are then dispatched to the corresponding image processing links.
[0076] In one embodiment, if a segment is determined to meet the minimum dispatch condition, it can be sent downstream first without waiting for the entire video to be processed. This observation-as-you-go dispatch mechanism is particularly suitable for long video scenarios, allowing the downstream processing of the first half of the shelf segment to be carried out in parallel with the routing observation of the second half of the freezer segment, thereby improving the overall throughput efficiency.
[0077] You can also set states for dispatch tasks, such as pending dispatch, dispatched, processing, collected, and aggregation completed. Timeout, failure, or retry processing is performed according to the stated state.
[0078] During the result aggregation phase, the segment processing results returned by each image processing link are received. Each result is first re-associated with the original segment based on the temporal segment identifier, object category, and start and end frame positions, and then written into a unified result item; the image path, recognition statistics, or downstream result file are saved as downstream result references for this result item.
[0079] like Figure 7 As shown, the aggregation result consists of one or more unified result items. Each result item records at least the temporal segment identifier, object category, target image processing link, start and end frame positions, and downstream result references; it may also record the representative frame, sampled frame position, and processing status. Field names and serialization formats can be determined by the interface implementation and are not used as the basis for segment back association.
[0080] The upper layer reads the shelf and freezer segment results according to the unified result items, and can locate the source of the result in the original video by segment identifier and start and end frame position.
[0081] When different image processing links return different result types, the aggregation module saves them in the downstream result reference of the corresponding unified result item. Result fields not generated by a particular link can be empty, without needing to change the fragment identifier, object category, or start and end frame positions.
[0082] The unified result item retains the source information. When an anomaly is detected in the recognition result, the original video segment and its dispatch task can be traced back based on the time segment identifier, object category, and start and end frame positions.
[0083] It can also record the total number of segments, the number of segments in each category, the start and end intervals of segments, the correction status, and the dispatch status. This information serves as debugging aids and does not change the correspondence between the unified result item and the original segments.
[0084] The aggregation phase checks whether each dispatched segment has returned a result. If a result is missing, a unified result item for the corresponding segment is retained and its processing status is marked to prevent the results of the remaining segments from being out of order.
[0085] The aggregation results can be serialized into database records, interface response messages, or local structured files. Regardless of the format, time segment identifiers, object categories, and start and end frame positions are used to maintain the source relationships of the results.
[0086] In one example scenario, the worker first scans horizontally along the ambient temperature shelf, then photographs the upright freezer, and then photographs the short shelf on the other side. After motion compensation and temporal correlation of the candidates, shelf-type, freezer-type, and shelf-type temporal segments are formed in sequence, and then dispatched to the corresponding image processing links.
[0087] In another example scenario, reflections from the freezer door frame caused instability in the segmentation results for two to three frames. If the number of consecutive unmatched frames did not exceed a threshold, the original candidate trajectory was retained; if the threshold was exceeded, the trajectory was terminated, and the segment boundaries were formed accordingly.
[0088] In the store end area, the image may simultaneously include the end of the shelf and the side of the freezer. The segment category is determined based on the candidate area, continuous duration, time overlap, and motion continuity, and category conflicts are handled in a preset order to reduce short-term category switching.
[0089] In another example scenario, the photographer first scans a long shelf horizontally, then raises the camera to capture a tag or store decoration, before turning to the front of the freezer. The boundaries between preceding and following segments are determined based on global displacement, candidate geometric changes, and temporal continuity; abnormal transition frames are not merged into the main segments of the shelf or freezer category.
[0090] When the scene contains both some shelves and some freezers, the initial segments are generated based on the candidate area, segment duration, temporal overlap, and motion continuity. The segment categories are then determined in the order of category promotion, overlap cropping, and secondary segment suppression or absorption.
[0091] The candidate filtering threshold, candidate association threshold, maximum number of consecutive unmatched frames, minimum segment length, and post-processing correction conditions can be configured according to the terminal's computing power. Devices with higher computing power can use denser frame sampling; devices with limited computing power can reduce the input resolution or the number of activity trajectories.
[0092] When people pass by, shopping carts move through, there are sudden changes in lighting, occlusion, or brief defocusing in the video, abnormal areas are first filtered in the candidate layer, and then the continuity of the object is determined based on the historical trajectory status. When the duration of the abnormality reaches the termination condition, the current candidate trajectory is terminated and a new time segment is generated.
[0093] Candidate association thresholds and segment correction rules can be configured based on the sampling interval, resolution, and object region stability of the input video. Parameter changes do not alter the processing order of candidate extraction, motion-compensated association, segment correction, link splitting, and result re-association.
[0094] The image scaling size, phase correlation calculation resolution, candidate area threshold, and maximum number of active candidate trajectories can be configured according to the terminal's computing power. When the input resolution or the number of active trajectories is reduced, the candidate filtering threshold and center distance normalization scale are adjusted accordingly.
[0095] The aggregation results can retain core statistical fields and downstream result reference fields as needed by the interface, and can also include fragment summaries, processing status, and debugging records. The number of output fields does not change the correspondence between time series fragments and downstream results.
[0096] This embodiment also provides a temporal segment splitting and result aggregation device for mixed shelf and freezer video, including a candidate extraction and noise filtering module, a global displacement estimation and motion compensation module, a temporal association module, a segment generation and correction module, an image processing link splitting module, and a result back-association and aggregation module. The candidate extraction and noise filtering module constructs candidates from an object region mask; the global displacement estimation and motion compensation module generates prediction regions; the temporal association module forms candidate trajectories; the segment generation and correction module generates and corrects temporal segments; the image processing link splitting module generates dispatch tasks; and the result back-association and aggregation module associates downstream results with the original segments.
[0097] The device may further include a quality assessment submodule and a debug archiving submodule. The quality assessment submodule checks the category switching and aggregation results integrity of the fragment plan; the debug archiving submodule saves the fragment plan, dispatch records, aggregation summaries, and debug logs.
[0098] In another embodiment, the electronic device can be a mobile phone, tablet, industrial handheld terminal, edge computing box, or other terminal device with video processing capabilities. The processor can be a central processing unit, graphics processing unit, neural network processing unit, or a combination thereof; the memory can be random access memory, flash memory, embedded memory chips, or external storage media. Different hardware configurations only affect the deployment form and execution efficiency, and do not change the method of this application itself.
[0099] The device also includes a task management submodule and a result collection submodule. The task management submodule records the status of task creation, fragment generation, downstream dispatch, and aggregation completion; the result collection submodule receives and binds downstream results based on the time-series fragment identifier, object category, and start and end frame positions.
[0100] In another embodiment, the program stored on the computer-readable storage medium can be deployed and executed directly on the terminal, or the main routing logic can be executed on the edge device, and the aggregation results can be returned to the front end for display. As long as the program can complete the candidate extraction, time-series segmentation, fragment splitting, and unified aggregation steps described in this specification after execution, it should be considered to fall within the protection scope of this application.
[0101] Regarding the system in the above embodiments, the specific methods by which each module performs its operations have been described in detail in the embodiments related to the method, and will not be repeated here. It should be noted that the above module division is a functional division and does not necessarily correspond to independent physical units. In actual deployment, the above two or more modules can be implemented on the same processor, or they can be implemented collaboratively by multiple processors, multiple threads, or multiple software components.
[0102] This application generates temporal segments based on motion-compensated candidate associations, selects the corresponding image processing links after category and boundary correction, and completes back association according to segment identifier, object category and start and end frame positions when the results are returned.
[0103] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
[0104] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
Claims
1. A method for time-series segment splitting and result aggregation of video from mixed shelves and freezers, characterized in that, include: Step S1: Obtain a video stream or a sequence of continuous image frames containing shelf-type objects and / or freezer-type objects, and obtain an object region mask; wherein, the object region mask includes at least one of a class object region mask and a freezer-type object region mask; Step S2: Extract candidate regions from the non-empty object region mask, and filter edge noise based on boundary contact relationship, area ratio, aspect ratio, width ratio, height ratio, and whether it is a thin strip. Step S3: Estimate the global displacement between adjacent frames, perform motion compensation on the position of the candidate region in the previous frame based on the global displacement, and obtain the predicted region in the current frame; Step S4: Perform temporal correlation based on the spatial overlap, area ratio and center distance between the predicted region and the same candidate region in the current frame to form candidate trajectories, and generate initial temporal segments based on the candidate trajectories; Step S5: Based on the area ratio of the candidate region, the number of frames of the segment, the temporal overlap relationship of different types of segments, and the motion continuity, the object category and / or start and end frame positions of the initial time segment are corrected according to the preset priority rules to handle category conflicts and / or temporal boundary conflicts, and the corrected time segment is obtained; wherein, the corrected time segment includes shelf-type time segment and freezer-type time segment. Step S6: Based on the correspondence between the corrected time segment, object category, and target image processing link, generate dispatch tasks and dispatch the dispatch tasks to the corresponding image processing links respectively; wherein, the image processing link includes model entry and / or parameter configuration; Step S7: Receive the segment processing results returned by each image processing link after processing the video frame window or sampled frame in the dispatch task. Based on the temporal segment identifier, object category, and start and end frame positions, re-associate the segment processing results with the corresponding corrected temporal segments and convert them into an aggregated result composed of unified result items. The unified result item records at least the temporal segment identifier, object category, target image processing link, start and end frame positions, and downstream result references.
2. The method for time-series segment splitting and result aggregation of video from mixed shelves and freezers according to claim 1, characterized in that, In step S2, candidate regions are extracted from at least one of the shelf object region mask and the freezer object region mask. When there is no corresponding object category, the corresponding mask is empty or no candidate region of that category is generated. Connectivity analysis is performed on the non-empty object region mask to obtain candidate regions, and candidate regions that touch the edge of the screen and whose width ratio, height ratio, area ratio or aspect ratio does not meet the corresponding threshold are removed. The remaining candidate regions are sorted by area, and the dominant candidate and the candidates whose area reaches the preset ratio of the dominant candidate are retained.
3. The method for time-series segment splitting and result aggregation of video from mixed shelves and freezers according to claim 2, characterized in that, In step S3, the global displacement includes lateral global displacement and longitudinal global displacement; wherein, The phase correlation method is used to estimate the horizontal and vertical global displacements of adjacent frames, and the candidate region of the previous frame is translated according to the horizontal and vertical global displacements to obtain the prediction region. The area ratio is the ratio of the smaller area of the predicted region to the larger area of the current candidate region, and the image scale is the length of the image diagonal. The current candidate region is determined as an associable candidate when the area ratio is not less than 0.35, the ratio of center distance to image scale is not higher than 0.35, and one of the following conditions is met: the intersection-union ratio of the two is not less than 0.05; or the ratio of center distance to image scale is not higher than 0.
175.
4. The method for time-series segment splitting and result aggregation of video from mixed shelves and freezers according to claim 3, characterized in that, In step S4, the temporal correlation uses the intersection-union ratio, area ratio, and center distance ratio of the predicted region and the current candidate regions of the same type as the correlation conditions; The area ratio is the ratio of the smaller area to the larger area, and the center distance ratio is the ratio of the center distance to the length of the diagonal of the image. The end of a candidate trajectory is determined by the number of consecutive unmatched frames.
5. The method for time-series segment splitting and result aggregation of video from mixed shelves and freezers according to claim 4, characterized in that, In step S4, the frame corresponding to the candidate region with the largest area is selected from the candidate trajectory as the representative frame. The start and end times are determined according to the start and end frames of the candidate trajectory and the video frame rate. The positions of the sampling frames contained in the candidate trajectory are recorded to form the initial time sequence segment.
6. The method for time-series segment splitting and result aggregation of video from mixed shelves and freezers according to claim 5, characterized in that, In step S5, correcting the initial timing segment includes at least one of the following: When a shelf-type time segment is located after the main shelf-type time segment, the number of consecutive frames and the frame span do not exceed the corresponding thresholds, and the area and height of the candidate region representing the frame reach the corresponding thresholds, the shelf-type time segment is corrected to a freezer-type time segment. When the time intervals of shelf-type time segments and freezer-type time segments overlap, remove the sampled frames that fall within the time interval of freezer-type time segments and their boundary margins from the shelf-type time segments, and reconstruct the remaining continuous sampled frames into shelf-type time segments. The main shelf-type time segment is the shelf-type time segment with the largest number of continuous frames in the same video. When the number of continuous frames of the main shelf-type time segment is not less than a preset multiple of the sum of the number of continuous frames of other shelf-type time segments, the other shelf-type time segments are processed. Among them, if the sampled frame is located between the boundaries of adjacent freezer-type time segments and meets the time continuity condition with the main shelf-type time segment, the sampled frame is merged into the main shelf-type time segment and the start and end frames, sampled frame positions and representative frames are updated. The remaining shelf-type time segments are suppressed.
7. The method for time-series segment splitting and result aggregation of video from mixed shelves and freezers according to claim 6, characterized in that, Step S6 specifically includes: The modified time-series segments are sorted according to their start frame, end frame, and object category, and dispatch tasks containing the modified time-series segments and their corresponding video frame windows or sampling frame positions are generated. Among them, shelf-type time-series segments are dispatched to shelf-type image processing links, and freezer-type time-series segments are dispatched to freezer-type image processing links. The shelf-type image processing links and freezer-type image processing links are distinguished by different model entry points and / or different parameter configurations. The target image processing link extracts the input frame from the video frame window or sampling frame position and performs link processing according to the corresponding model entry point and / or parameter configuration to obtain the segment processing result.
8. A device for time-series segment splitting and result aggregation of video from mixed shelves and freezers, characterized in that, include: The candidate extraction module is used to acquire a video stream or a continuous image frame sequence containing shelf-type objects and / or freezer-type objects, and to acquire an object region mask; wherein the object region mask includes at least one of a class object region mask and a freezer-type object region mask; The noise filtering module is used to extract candidate regions from non-empty object region masks and filter edge noise based on boundary contact relationship, area ratio, aspect ratio, width ratio, height ratio, and whether it is a thin strip. The global displacement estimation and motion compensation module is used to estimate the global displacement between adjacent frames, perform motion compensation on the position of the candidate region in the previous frame based on the global displacement, and obtain the predicted region in the current frame. The temporal correlation module is used to perform temporal correlation based on the spatial overlap, area ratio and center distance between the predicted region and the same candidate region in the current frame, form candidate trajectories, and generate initial temporal segments based on the candidate trajectories; The segment generation and correction module is used to correct the object category and / or start and end frame positions of the initial time segment according to the area ratio of the candidate region, the number of frames of the segment, the temporal overlap relationship of different types of segments and the motion continuity, and according to the preset priority rules, so as to handle category conflicts and / or temporal boundary conflicts, and obtain the corrected time segment; wherein, the corrected time segment includes shelf-type time segment and freezer-type time segment; The image processing link routing module is used to generate dispatch tasks based on the correspondence between the corrected time segment, object category and target image processing link, and dispatch the dispatch tasks to the corresponding image processing links respectively; wherein, the image processing link includes model entry and / or parameter configuration; The result association and aggregation module is used to receive the segment processing results returned by each image processing link after processing the video frame window or sampled frame in the dispatch task. Based on the temporal segment identifier, object category and start and end frame positions, the segment processing results are re-associated with the corresponding corrected temporal segments and converted into an aggregated result composed of unified result items. The unified result item records at least the temporal segment identifier, object category, target image processing link, start and end frame positions and downstream result references.
9. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, it implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 7.
