Queueing scenario off-queue behavior detection method, device, medium and program product

By detecting missing targets in the queue using an image acquisition device and combining this with the analysis of potential departure areas, the actual departure area can be accurately determined. This solves the problem of abnormal queues caused by the introduction of new counters and improves the accuracy and real-time performance of queue progress updates.

CN123160847APending Publication Date: 2026-11-24ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510662460.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing queuing scenarios, the opening of new counters can cause queue anomalies, with people leaving the queue and not queuing completely. Their time data and number cannot represent those in normal queues, leading to inaccurate time estimates.

Method used

The system continuously collects images of the queue by an image acquisition device, detects disappearing targets, determines the potential departure area where the last disappearing target appeared, and accurately judges whether the potential departure area is the actual departure area by similarity matching and quantity statistics with the latest target, thereby updating the queue progress.

Benefits of technology

It enables real-time and accurate detection of actual departure areas, improves the real-time performance and accuracy of queue progress updates, reduces misjudgments, and improves the efficiency of queue management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160847A_ABST
    Figure CN123160847A_ABST
Patent Text Reader

Abstract

This application discloses a method, device, medium, and program product for detecting queue departure behavior in queuing scenarios. The method includes: detecting disappearing targets in the queue based on images continuously captured by an image acquisition device; determining the potential departure area where the last appearance of the disappearing target is located; and determining whether the potential departure area is an actual departure area based on the latest target first detected in a downstream area of ​​the queue within the potential departure area and the disappearing target. If the potential departure area is an actual departure area, the subsequent queuing status is updated based on the disappearing targets that have disappeared within the actual departure area. This solution enables real-time detection of queues using images acquired by an image acquisition device, identifies the actual departure area where a group of people are leaving the queue by disappearing targets, and adjusts the subsequent queuing progress based on the disappearing targets that have disappeared within the actual departure area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image target detection technology, and in particular to methods, devices, media and program products for detecting queuing behavior in queuing scenarios. Background Technology

[0002] In modern commerce and service industries, efficient queue management is crucial for improving customer experience and operational efficiency. In various public settings such as shopping malls, train stations, banks, airports, supermarkets, and tourist attractions, accurate queue length estimation helps manage queue lengths, enabling dynamic allocation of service windows and rational scheduling of queuing personnel. This ensures the rational allocation of resources, reduces customer waiting time, and improves service satisfaction.

[0003] Current queuing solutions often use queues based on facial or body profiles. However, when dealing with abnormal queue situations, such as people leaving the queue due to new counter openings, the time and number of those who left the queue cannot represent the normal queue, leading to inaccurate time estimates. Therefore, quickly identifying abnormal queue changes and removing those who have left the queue is becoming a crucial direction for optimizing queue management in real-world scenarios. Summary of the Invention

[0004] This application provides a method, device, medium, and program product for detecting queue departure behavior in queuing scenarios, so as to accurately identify areas where there is currently a group of targets leaving the queue, thereby facilitating the updating of the queue progress.

[0005] According to one aspect of this application, a method for detecting queue-leaving behavior in a queuing scenario is provided, the method comprising:

[0006] Based on the images continuously captured by the image acquisition device of the queuing queue, the disappearing target in the queuing queue is detected; wherein, the disappearing target is the target that disappears in the image captured within a first preset time period.

[0007] Determine the potential departure area of ​​the target where the last location of the disappeared target was found; wherein, the potential departure area is the area in the queue where targets in the queue are allowed to leave when the isolation facilities are temporarily removed.

[0008] Based on the latest target first detected in the downstream region of the queue in the potential departure area of ​​the target and the disappearing target, it is determined whether the potential departure area of ​​the target is an actual departure area. If the potential departure area of ​​the target is an actual departure area, the subsequent queuing situation is updated based on the disappearing targets that disappear in the actual departure area. The downstream region of the queue in the potential departure area of ​​the target is a preset unit area adjacent to the potential departure area of ​​the target, which is divided along the direction of the queue's movement in the area where the queue is located.

[0009] According to one aspect of this application, a device for detecting queue departure behavior in a queuing scenario is provided, the device comprising:

[0010] The disappearing target determination module is used to detect disappearing targets in the queuing queue based on the images continuously captured by the image acquisition device; wherein, the disappearing target is the target that disappears in the images captured within a first preset time period;

[0011] The target potential departure area determination module is used to determine the target potential departure area where the last location of the disappeared target is located; wherein, the target potential departure area is the area in the queuing queue where targets in the queuing queue are allowed to leave the queue when the isolation facilities are temporarily withdrawn.

[0012] The actual departure area determination module is used to determine whether the target potential departure area is an actual departure area based on the latest target first detected in the downstream area of ​​the queue in the target potential departure area and the disappearing target. If the target potential departure area is an actual departure area, the subsequent queuing situation is updated based on the disappearing target that disappeared in the actual departure area. The downstream area of ​​the queue in the target potential departure area is a preset unit area adjacent to the target potential departure area, which is divided along the queuing direction in the area where the queue is located.

[0013] According to another aspect of this application, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and

[0015] A memory that is communicatively connected to at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to execute the queuing behavior detection method in any embodiment of the present application.

[0017] According to another aspect of this application, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement the method for detecting queue departure behavior in a queuing scenario according to any embodiment of this application.

[0018] According to another aspect of this application, a computer program product is provided, which includes a computer program that, when executed by a processor, implements the method for detecting queue departure behavior in a queuing scenario according to any embodiment of this application.

[0019] The technical solution of this application embodiment detects disappearing targets in the queue based on images continuously collected by an image acquisition device. It can initially locate targets that suddenly disappear from the queue, determine the potential departure area of ​​the target where the last appearance of the disappearing target is located, accurately determine the location where the disappearing target disappeared, and also reflect the location where the actual departing target disappeared. Based on the latest target first detected in the downstream area of ​​the queue in the potential departure area and the disappearing target, it is determined whether the potential departure area is the actual departure area, thereby determining whether a target departure event has actually occurred in the potential departure area. This achieves real-time and accurate detection of the actual departure area, which facilitates accurate updates to the queue progress by referring to targets that have left the queue in the actual departure area, improving the real-time performance and accuracy of queue progress updates.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating a method for detecting queue departure behavior in a queuing scenario, provided in an embodiment of this application;

[0023] Figure 2 This is a schematic diagram of the potential off-line area provided in the embodiments of this application;

[0024] Figure 3 This is a schematic diagram of candidate potential off-line regions provided in an embodiment of this application;

[0025] Figure 4 This is a schematic diagram of mesh division provided for an embodiment of this application;

[0026] Figure 5 This is a schematic diagram of the downstream area of ​​the queue of the target potential departure area provided in the embodiments of this application;

[0027] Figure 6 Another embodiment of this application provides a flowchart of a method for detecting queue-leaving behavior in a queuing scenario;

[0028] Figure 7Another embodiment of this application provides a flowchart of a method for detecting queue-leaving behavior in a queuing scenario;

[0029] Figure 8 Another embodiment of this application provides a schematic diagram of the upstream and downstream areas of the queuing queue in the actual departure area;

[0030] Figure 9 This application provides a schematic diagram of the structure of a queuing behavior detection device in a queuing scenario.

[0031] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0032] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0033] It should be noted that the terms "first," "second," "third," "fourth," "actual," "preset," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0034] Figure 1 This flowchart illustrates a method for detecting queue departure behavior in a queuing scenario, provided by an embodiment of this application. This embodiment is applicable to situations where queue departure targets are detected in real time to update the queue. The method can be executed by a queue departure behavior detection device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0035] S110. Based on the images continuously collected by the image acquisition device from the queuing queue, detect the disappearing target in the queuing queue; wherein, the disappearing target is the target that disappears in the image collected within a first preset time period.

[0036] The image acquisition device is a device configured in a queuing scenario to acquire images of the queuing queue. The queuing queue can be a fixed queue restricted by isolation facilities, preventing members from leaving freely, such as an S-shaped queue, an L-shaped queue, or other types of queues restricted by queuing barriers at the entrance. In this embodiment, it is mainly applicable to queuing queues including corners, where the isolation facilities can be temporarily removed at the corner, allowing targets in the queue to leave. A vanished target is a target that disappears from the images acquired within a first preset time period; that is, a target that was originally continuously detectable in the queue but became undetectable within the first preset time period. A disappearing target is defined as a target that has disappeared from the images captured within a first preset time period. This means that the target was detected in images captured before the first preset time period, but no matching target was found in images captured within the first preset time period. The absence of a matching target in the images captured within the first preset time period could be due to factors such as changes in the target's angle facing the image capture device, changes in ambient lighting, or the target actually leaving the queue. Therefore, "disappearing target" here refers only to a target that disappeared from the images captured within the first preset time period, meaning no matching target was found in the images captured within that period, and does not necessarily refer to a target that actually disappeared from the queue. Disappearing targets do not include targets that normally leave the queue at the exit after the queue ends. The first preset time period can be determined based on the actual situation, generally the time interval from the current queue position to the exit, as determined by the queue progress, for example, 3 minutes.

[0037] For example, an image acquisition device positioned in a queuing scenario continuously captures images of the queuing queue, obtaining multiple frames to monitor dynamic changes in the queue. For these continuously captured frames, targets can be detected. For instance, target matching can be performed between adjacent frames to identify identical targets in each image. Detected targets are then continuously tracked to check for their presence in subsequent images. If the same target is detected in multiple consecutive frames but not in subsequent frames within a first preset time period, the target is determined to be a missing target.

[0038] S120. Determine the potential departure area of ​​the target where the last appearance of the disappeared target is located; wherein, the potential departure area is the area in the queue where the isolation facility is temporarily withdrawn when the queue is located.

[0039] The last known location of the vanished target is its position in the image at the moment it was last detected. Since the detection here refers to the target's location within the image, all subsequent descriptions of location, area, and other geographic dimensions are uniformly based on their geographic location within the image. The potential departure area is a region within the queuing area where targets are allowed to leave the queue during temporary evacuation of isolation facilities; otherwise, departure is generally not permitted. The queuing area can contain all targets within it, such as the smallest bounding rectangle encompassing all targets or the area formed by connecting the smallest bounding rectangles of all targets.

[0040] For example, the last known location of a disappearing target in an image can be determined based on the last detected image of the disappearing target. The relative position of this location to the queue area in the image can then be determined, thereby identifying the potential departure area of ​​the target where the last known location was located. For example, as... Figure 2 As shown, for an S-shaped queue formed by isolation facilities, if a target leaves the queue, the isolation facilities are typically removed at the bend in the queue, allowing the target to leave from that bend. If the last location where the disappeared target reappeared was in the area of ​​that bend, then that area is the potential area where the target left the queue.

[0041] In this embodiment of the application, determining the potential departure area of ​​the target where the last appearance location of the disappeared target is located includes:

[0042] The candidate potential departure area into which the last location of the disappeared target fell is taken as the potential departure area of ​​the target;

[0043] The process for determining the candidate potential out-of-queue regions includes:

[0044] During the continuous image acquisition of queuing queues using an image acquisition device, the preset unit area where the last reappearance of the disappearing target is detected is taken as the target disappearance area; where the preset unit area is the area obtained by dividing the queuing queue area into units;

[0045] For each target disappearance area, count the number of times the target disappearance event occurs in the target disappearance area;

[0046] If the number of times a target disappearance event occurs exceeds a preset number, the target disappearance area will be considered as a candidate potential departure area.

[0047] This process involves pre-determining potential departure areas, reflecting regions where target departure events are more frequent. Specifically, the pre-defined unit areas can be areas obtained by dividing the queuing area into units based on actual conditions. During continuous historical image acquisition of the queuing area, the pre-defined unit area where the last appearance of the disappearing target occurred can be detected as the target disappearance area—that is, the area where a disappearing target event has occurred. For each target disappearance area, the number of times the target disappearance event occurs within that area can be counted, reflecting the frequency of target disappearance events in that area. If the same target disappears after its last appearance in the target disappearance area, then reappears and disappears again, the corresponding disappearance counts are accumulated, i.e., the count is based on the number of appearance-disappearance cycles. If the number of target disappearance events exceeds a pre-defined number, it indicates that the target disappearance event occurs more frequently in this target disappearance area, and this target disappearance area can be considered a candidate potential departure area, reflecting that this area is more likely to experience target disappearance events. Furthermore, upon detecting a disappearing target, the relative position of the last appearance location of the disappearing target to the candidate potential departure area is determined, and the candidate potential departure area into which the last appearance location of the disappearing target falls is designated as the target potential departure area. Alternatively, if the distance between the last appearance location of the disappearing target and the candidate potential departure area is less than a first preset distance, the candidate potential departure area is designated as the target potential departure area. In this embodiment, the number of disappearing events occurring in the target disappearing area closer to the exit will theoretically be higher than the preset number. However, leaving from the exit is considered a normal end to queuing, not leaving the queue during the process as referred to in this embodiment. Therefore, in determining the candidate potential departure area, target disappearing areas with a higher number of disappearing events than the preset number and a distance less than the second preset distance from the exit can be excluded and not designated as candidate potential departure areas. In other words, target disappearing areas with a higher number of disappearing events than the preset number and where departure is only permitted when the isolation facility is temporarily withdrawn can be designated as candidate potential departure areas. For example, as shown... Figure 3 As shown, it contains four candidate potential departure areas. The potential departure area of ​​the target is determined from the four candidate potential departure areas based on the last location of the vanished target.

[0048] In this embodiment of the application, the determination of the preset unit region includes:

[0049] Divide the area where the queue is located into grids to obtain grid regions;

[0050] The grid area containing at least part of the queuing line's trajectory is used as the preset unit area.

[0051] For example, the area where the queue is located can be divided into grid regions. Not all grid regions may contain the trajectory of the queue; therefore, grid regions that at least partially contain the queue's trajectory can be used as preset unit regions, such as... Figure 4 As shown, dividing the area into unit regions allows for clearer and more intuitive analysis and detection of each region, enabling accurate detection of potential out-of-team areas from the predefined unit regions.

[0052] S130. Based on the latest target first detected in the downstream area of ​​the queue in the potential departure area of ​​the target and the disappearing target, determine whether the potential departure area of ​​the target is an actual departure area, so as to update the subsequent queuing situation according to the disappearing target that disappeared in the actual departure area if the potential departure area of ​​the target is an actual departure area.

[0053] The downstream region of the queue of the target potential departure area is a pre-defined unit region adjacent to the target potential departure area, divided along the direction of the queue's movement within the queue area. First, the downstream region of the queue of the target potential departure area must be a pre-defined unit region adjacent to the target potential departure area. There may be pre-defined unit regions adjacent to the target potential departure area in multiple directions such as up, down, left, and right. The downstream region of the queue of the target potential departure area is the pre-defined unit region adjacent to the target potential departure area along the direction of the queue's movement. For example, assuming that for... Figure 4 The target potential departure area is located in the 2nd row and 11th column of the middle column, where the queue is in... Figure 4 If the movement is from right to left, then the preset cell area in row 2, column 10 is designated as the downstream area of ​​the queue for the target potential dequeue area. In the candidate potential dequeue area... Figure 3 As shown, with the four preset unit areas, and each serving as a potential departure area, the downstream area of ​​the queue in the potential departure area is as follows: Figure 5 As shown in the image.

[0054] For example, a new target that has never been detected before may be detected in the downstream area of ​​the queue in the potential departure area. This target may be a newly inserted target or one that has appeared in the queue before. However, due to the different angles of the target relative to the image acquisition device in the downstream area of ​​the queue and in the potential departure area, the image does not match, and the target is misjudged as the newest target. If the newest target is caused by the image acquisition angle change leading to image mismatch, then there should be a disappearing target that is the same actual queued target as the newest target, indicating that the disappearing target is not an actual departure target. For disappearing targets that do not reappear in the downstream area of ​​the queue in the potential departure area, they are determined to be actual departure targets. Based on this distinguishability, the actual departure targets among the disappearing targets can be identified, thereby determining whether the potential departure area is an actual departure area. If the potential departure area is an actual departure area, the number of targets in the queue can be updated based on the disappearing targets that have disappeared in the actual departure area to adaptively update the queue progress and accurately calculate the queue's advance time.

[0055] The technical solution of this application embodiment detects disappearing targets in the queue based on images continuously collected by an image acquisition device. It can initially locate targets that suddenly disappear from the queue, determine the potential departure area of ​​the target where the last appearance of the disappearing target is located, accurately determine the location where the disappearing target disappeared, and also reflect the location where the actual departing target disappeared. Based on the latest target first detected in the downstream area of ​​the queue in the potential departure area and the disappearing target, it is determined whether the potential departure area is the actual departure area, thereby determining whether a target departure event has actually occurred in the potential departure area. This achieves real-time and accurate detection of the actual departure area, which facilitates accurate updates to the queue progress by referring to targets that have left the queue in the actual departure area, improving the real-time performance and accuracy of queue progress updates.

[0056] Figure 6 This is a flowchart illustrating a method for detecting queue departure behavior in a queuing scenario, as provided in another embodiment of this application. This embodiment is an optimization based on the above embodiment; solutions not described in detail in this embodiment are found in the above embodiment. Figure 6 As shown, the method in this embodiment of the application specifically includes the following steps:

[0057] S210. Based on the images continuously collected by the image acquisition device from the queuing queue, detect the disappearing target in the queuing queue; wherein, the disappearing target is the target that disappears in the image collected within a first preset time period.

[0058] S220. Determine the potential departure area of ​​the target where the last appearance of the disappeared target is located; wherein, the potential departure area is the area in the queue where the isolation facility is temporarily withdrawn when the queue is located.

[0059] S230. Perform similarity matching between the latest target and the disappeared target to determine whether the similarity is higher than a preset similarity threshold. The preset similarity threshold is lower than the similarity threshold used when identifying the same target in a normal queue in the image acquired by the image collector. If yes, then execute S240; otherwise, execute S250.

[0060] For example, to detect whether the latest target is a reappearance of a vanished target, a similarity match can be performed between the latest target and the vanished target to determine whether they belong to the same target. Specifically, the image regions of the latest target and the vanished target are matched for similarity. Similarity matching can be performed using methods such as cosine similarity calculation, histogram comparison, feature matching, and structural similarity calculation. The similarity between the latest target and the vanished target is compared with a preset similarity threshold, and the subsequent judgment result for potential out-of-line regions of the target is adaptively determined based on the comparison result.

[0061] In this embodiment, the preset similarity threshold is lower than the similarity threshold used when identifying identical targets in a normal queue in images acquired by the image acquisition device. It can also be lower than the similarity threshold used when the latest target fails to match an existing queued target. Generally, the similarity threshold used for identifying identical targets in a normal queue is relatively high, for example, 90%. That is, if the similarity between targets in two images exceeds 90%, they are considered the same target. However, in this embodiment, since a latest target has appeared, it indicates that the latest target and the disappeared target did not match when matched according to the original similarity threshold. This situation may be because the images of the latest target and the disappeared target were acquired from different angles of the same queued target, thus the similarity did not meet the original similarity threshold requirement, but they are actually the same target. In this case, the similarity threshold can be adaptively lowered to obtain a preset similarity threshold, and the latest target and the disappeared target are compared again. For example, if the preset similarity threshold is set to 60%, and the similarity between the latest target and the disappeared target is higher than the preset similarity threshold, then the latest target and the disappeared target are determined to be the same queued target, and the previous matching failure was due to the different image acquisition angles.

[0062] S240. Merge the latest target and the disappeared target into the same target, and determine that the disappeared target is not a target that has left the team.

[0063] If the similarity between the latest target and the vanished target is higher than the preset similarity threshold, then the latest target and the vanished target are determined to be the same queued target. The latest target is essentially a reappearance of the vanished target. The latest target and the vanished target are merged into the same target, and it is determined that the vanished target is not a dequeued target.

[0064] S250. Determine that the disappearing targets whose similarity to all the latest targets is less than or equal to a preset similarity threshold are the departing targets, and determine whether the potential departure area of ​​the departing targets is the actual departure area based on the departing targets.

[0065] For example, if a missing target has a similarity score less than or equal to a preset similarity threshold with all the latest targets, then the missing target is determined to be a de-teamed target. Based on the de-teamed target, it is determined whether the potential de-teaming area of ​​the target is the actual de-teaming area. Specifically, indicators such as the number of de-teamed targets and the time of de-teaming can be used to assist in the judgment.

[0066] In this embodiment of the application, determining whether the potential departure area of ​​the departing target is an actual departure area based on the departing target includes:

[0067] Count the number of departing targets among the disappearing targets that vanish within the potential departure area of ​​the target within a second preset time period;

[0068] If the number of targets leaving the formation exceeds a preset threshold, then the potential departure area of ​​the targets is determined as the actual departure area.

[0069] The second preset time can be set according to actual conditions. For example, when attracting customers to a newly opened service window, the queued individuals will typically leave the queue within the second preset time and continue queuing at the new service window. The second preset time can be set to 1 minute. The number of departing individuals disappearing from the potential departure area within the second preset time is counted. If the number of departing individuals exceeds a preset threshold, it is determined that a large number of individuals left the queue within the second preset time, indicating a mass departure event in the potential departure area. In this case, the potential departure area is determined as the actual departure area. This scheme accurately distinguishes departing individuals from the disappearing individuals and, based on the number of departing individuals within the second preset time, reflects whether a mass departure event occurred in the potential departure area. This allows for accurate determination of whether the potential departure area is the actual departure area, facilitating subsequent updates and adjustments to the queue progress based on the disappearing individuals within the actual departure area, resulting in a more accurate and real-time queue progress report.

[0070] This application provides a method for detecting de-queueing behavior in a queuing scenario. The method involves matching the latest target with a missing target based on their similarity, determining if the similarity exceeds a preset similarity threshold. This threshold is set lower than the similarity threshold used when identifying the same target in images captured by an image acquisition device. This lowers the matching standard, allowing for the identification of the same target that previously failed to match due to changes in the image acquisition angle caused by the target turning or moving. In other words, it identifies recurring targets in the downstream region of the queue where the missing target might be de-queuing, avoiding misjudgments. If the similarity between the latest target and the missing target exceeds the preset similarity threshold, they are merged into a single target, confirming that the missing target is not a de-queuing target. Otherwise, a missing target whose similarity to all latest targets is less than or equal to the preset similarity threshold is identified as a de-queuing target. Based on the de-queuing target, the method determines whether the target's potential de-queuing region is an actual de-queuing region, thus accurately identifying de-queuing targets from among the missing targets and facilitating subsequent judgment of queuing progress.

[0071] Figure 7 This is a flowchart illustrating a method for detecting queue departure behavior in a queuing scenario, as provided in another embodiment of this application. This embodiment is an optimization based on the above embodiments; solutions not described in detail in this embodiment are found in the above embodiments. Figure 7 As shown, the method in this embodiment of the application specifically includes the following steps:

[0072] S310. Based on the images continuously collected by the image acquisition device from the queuing queue, detect the disappearing target in the queuing queue; wherein, the disappearing target is the target that disappears in the image collected within a first preset time period.

[0073] S320. Determine the potential departure area of ​​the target where the last appearance of the disappeared target is located; wherein, the potential departure area is the area in the queue where the isolation facility is temporarily withdrawn when the queue is located.

[0074] S330. Based on the latest target first detected in the downstream area of ​​the queue in the potential departure area of ​​the target and the disappeared target, determine whether the potential departure area of ​​the target is an actual departure area.

[0075] S340. If the potential departure area is the actual departure area, the number of moving targets is determined based on the number of queuing targets passing through the downstream area of ​​the queue in the actual departure area and the number of queuing targets passing through the upstream area of ​​the queue in the actual departure area within a third preset time period; wherein, the downstream area of ​​the queue in the actual departure area is a preset unit area adjacent to the actual departure area, divided along the direction of the queue's movement in the area where the queue is located; the upstream area of ​​the queue in the actual departure area is a preset unit area adjacent to the actual departure area, divided along the opposite direction of the queue's movement in the area where the queue is located.

[0076] For example, when the potential departure area is determined to be the actual departure area, the above results can be further verified based on the dynamic changes of the queuing target to improve the accuracy of the judgment. Specifically, the upstream area of ​​the queue and the downstream area of ​​the queue can be determined. The downstream area of ​​the queue is a preset unit area adjacent to the actual departure area, divided along the direction of the queue's movement within the queue area. The upstream area of ​​the queue is a preset unit area adjacent to the actual departure area, divided in the opposite direction of the queue's movement within the queue area. For example, as... Figure 8 As shown, the preset unit areas distributed along the forward direction of the queue are the upstream area of ​​the queue where the actual departure area is located, the actual departure area, and the downstream area of ​​the queue where the actual departure area is located.

[0077] The number of queued targets passing through the downstream area of ​​the actual departure area within the third preset time period, and the number of queued targets passing through the upstream area of ​​the actual departure area within the third preset time period, can be counted separately. The absolute value of the difference between the number of queued targets passing through the downstream area of ​​the actual departure area within the third preset time period and the number of queued targets passing through the upstream area of ​​the actual departure area within the third preset time period is taken as the number of flowing targets. The number of flowing targets actually reflects the number of departing targets that have left the queue within the actual departure area.

[0078] S350. Detect the number of disappearing targets that fail to match the similarity of the latest target among the disappearing targets that disappeared in the actual departure area within a third preset time.

[0079] For example, the number of departing targets is detected in another dimension. Specifically, among the disappearing targets that vanished into the actual departure area within a third preset time period, the number of disappearing targets that failed to match the latest target in similarity is detected. In other words, the number of disappearing targets that did not reappear among the disappearing targets also reflects the number of departing targets.

[0080] S360. Determine whether the difference between the number of flowing targets and the number of disappearing targets is less than a preset difference. If yes, execute S370-S380; otherwise, execute S390.

[0081] S370. Determine the actual departure area as the final actual departure area.

[0082] The number of moving targets is analyzed from the perspective of the number of queuing targets that can be actually detected, while the number of disappearing targets is analyzed from the perspective of the number of queuing targets that have disappeared. Theoretically, the number of moving targets and the number of disappearing targets should be the same or have a small difference. If the difference between the number of moving targets and the number of disappearing targets is less than a preset difference, then the actual departure area is determined as the final actual departure area.

[0083] S380, All targets that disappear within the actual departure area within the fourth preset time are excluded from the queuing queue, and the queuing time of the upstream queuing queue is updated based on the number of targets in the queuing queue after excluding all disappearing targets; wherein, the upstream queuing queue is the queuing queue that moves in the opposite direction from the actual departure area.

[0084] For example, after further determining the actual departure area, all targets disappearing within this area can be considered as targets leaving the queue in a group due to the opening of a new service window. These disappearing targets are then excluded from the queue, and the queuing time of the upstream queue is updated based on the remaining number of targets in the queue. Specifically, when all disappearing targets within the actual departure area have left the queue, there is no impact on the queuing progress of the downstream queue, but only on the queuing progress of the upstream queue, accelerating its progress. Therefore, only the queuing time of the upstream queue is updated. The upstream queue is the queue that moves in the opposite direction from the actual departure area. Figure 8 As shown, the upstream queue is Figure 8 Queues that are actually outside the designated area.

[0085] S390, Exclude the actual area where the team left the formation.

[0086] For example, if the difference between the number of moving targets and the number of disappearing targets is greater than or equal to a preset difference, then the number of departing targets reflected by the number of disappearing targets is inconsistent with the actual number of departing targets presented, the actual departing area verification fails, and the actual departing area is excluded.

[0087] This application provides a method for detecting queue departure behavior in a queuing scenario. The method determines the number of moving targets based on the number of queuing targets passing through the downstream area of ​​the queue in the actual departure area and the number of queuing targets passing through the upstream area of ​​the queue in the actual departure area within a third preset time period. It then detects the number of disappearing targets that fail to match the latest target's similarity among the disappearing targets that vanish within the potential departure area of ​​the target within the third preset time period. If the difference between the number of moving targets and the number of disappearing targets is less than a preset difference, the actual departure area is determined as the final actual departure area; otherwise, the actual departure area is excluded. By determining the departing targets from different dimensions—theoretical calculation and actual detection—the method verifies the actual departure area, thereby further improving the accuracy of the finally determined actual departure area.

[0088] Figure 9 This is a schematic diagram of a queuing behavior detection device provided in an embodiment of this application. This device can execute the queuing behavior detection method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the method. Figure 9 As shown, the device includes:

[0089] The disappearing target determination module 410 is used to detect disappearing targets in the queuing queue based on the images continuously collected by the image acquisition device; wherein, the disappearing target is the target that disappears in the image collected within a first preset time period;

[0090] The target potential departure area determination module 420 is used to determine the target potential departure area where the last location of the disappeared target is located; wherein, the target potential departure area is the area in the queuing queue where targets in the queuing queue are allowed to leave the queue when the isolation facilities are temporarily withdrawn.

[0091] The actual departure area determination module 430 is used to determine whether the target potential departure area is an actual departure area based on the latest target first detected in the downstream area of ​​the queue in the target potential departure area and the disappearing target. If the target potential departure area is an actual departure area, the subsequent queuing situation is updated based on the disappearing target that disappears in the actual departure area. The downstream area of ​​the queue in the target potential departure area is a preset unit area adjacent to the target potential departure area, which is divided along the queuing direction in the area where the queue is located.

[0092] In this embodiment of the application, the target potential departure area determination module 420 determines the target potential departure area where the last appearance location of the disappeared target is located, including:

[0093] The candidate potential departure area into which the last location of the disappeared target fell is taken as the potential departure area of ​​the target;

[0094] The device further includes:

[0095] The target disappearance area determination module is used to detect the preset unit area where the last appearance of the disappearing target is located during the continuous image acquisition of the queuing queue by the image acquisition device in history, and to use this preset unit area as the target disappearance area; wherein, the preset unit area is the area obtained by dividing the area where the queuing queue is located into units;

[0096] The disappearance count determination module is used to count the number of times a target disappearance event occurs in each target disappearance area.

[0097] The candidate potential departure area determination module is used to identify the target disappearance area as a candidate potential departure area if the number of target disappearance events exceeds a preset number.

[0098] In this embodiment of the application, the device further includes:

[0099] The grid area determination module is used to divide the area where the queuing queue is located into grids to obtain the grid area;

[0100] The preset unit area determination module is used to determine the grid area containing at least part of the queuing queue trajectory as the preset unit area.

[0101] In this embodiment of the application, the actual departure area determination module 430 determines whether the potential departure area is an actual departure area based on the latest target first detected in the downstream area of ​​the queue in the potential departure area and the disappeared target, including:

[0102] The latest target is matched with the disappeared target to determine whether the similarity is higher than a preset similarity threshold; wherein the preset similarity threshold is lower than the similarity threshold used when identifying the same target in images acquired by the image acquisition device;

[0103] If so, the latest target and the disappeared target are merged into the same target, and it is determined that the disappeared target is not a target that has left the team;

[0104] If not, then the disappearing target whose similarity to all the latest targets is less than or equal to the preset similarity threshold is identified as the departing target, and the potential departure area of ​​the target is determined as the actual departure area based on the departing target.

[0105] In this embodiment of the application, the actual departure area determination module 430 determines whether the potential departure area of ​​the target is an actual departure area based on the departure target, including:

[0106] Count the number of departing targets among the disappearing targets that vanish within the potential departure area of ​​the target within a second preset time period;

[0107] If the number of targets leaving the formation exceeds a preset threshold, then the potential departure area of ​​the targets is determined as the actual departure area.

[0108] In this embodiment of the application, after determining that the potential departure area is the actual departure area, the device further includes:

[0109] The moving target quantity determination module is used to determine the moving target quantity based on the number of queuing targets passing through the downstream area of ​​the queuing queue in the actual leaving area and the number of queuing targets passing through the upstream area of ​​the queuing queue in the actual leaving area within a third preset time period; wherein, the downstream area of ​​the queuing queue in the actual leaving area is a preset unit area adjacent to the actual leaving area, divided along the direction of the queuing queue's movement in the area where the queuing queue is located; the upstream area of ​​the queuing queue in the actual leaving area is a preset unit area adjacent to the actual leaving area, divided along the opposite direction of the queuing queue's movement in the area where the queuing queue is located.

[0110] The module for determining the number of missing targets is used to detect the number of missing targets that fail to match the similarity of the latest target among the missing targets that disappear in the actual departure area within a third preset time.

[0111] The first judgment module is used to determine the actual departure area as the final actual departure area if the difference between the number of moving targets and the number of disappearing targets is less than a preset difference.

[0112] The second judgment module is used to exclude the actual off-line area if otherwise.

[0113] In this embodiment of the application, after determining that the potential departure area is the actual departure area, the device further includes:

[0114] The queueing time update module is used to exclude all disappearing targets that disappear in the actual departure area within a fourth preset time from the queueing queue, and update the queuing time of the upstream queueing queue based on the number of targets in the queueing queue after excluding all disappearing targets; wherein, the upstream queueing queue is the queueing queue that moves in the opposite direction from the actual departure area.

[0115] The queue departure detection device provided in this application embodiment can execute the queue departure detection method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method.

[0116] Figure 10 A schematic diagram of an electronic device 10, which can be used to implement embodiments of this application, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.

[0117] like Figure 10 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0118] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of monitors, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, transceiver for detecting queuing behavior in wireless queuing scenarios, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0119] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods for detecting de-queue behavior in queuing scenarios.

[0120] In some embodiments, the method for detecting queue-leaving behavior in a queuing scenario can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for detecting queue-leaving behavior in a queuing scenario described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method for detecting queue-leaving behavior in a queuing scenario by any other suitable means (e.g., by means of firmware).

[0121] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0122] Computer programs used to implement the methods of this application can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable queuing behavior detection device, such that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0123] In the context of this application, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0124] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0125] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0126] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0127] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the method for detecting queue departure behavior in a queuing scenario as provided in any embodiment of this application.

[0128] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0129] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired information of the technical solution of this application can be achieved, and this is not limited herein.

[0130] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for detecting queue-leaving behavior in a queuing scenario, characterized in that, The method includes: Based on the images continuously captured by the image acquisition device of the queuing queue, the disappearing target in the queuing queue is detected; wherein, the disappearing target is the target that disappears in the image captured within a first preset time period. Determine the potential departure area of ​​the target where the last location of the disappeared target was found; wherein, the potential departure area is the area in the queue where targets in the queue are allowed to leave when the isolation facilities are temporarily removed. Based on the latest target first detected in the downstream region of the queue in the potential departure area of ​​the target and the disappearing target, it is determined whether the potential departure area of ​​the target is an actual departure area. If the potential departure area of ​​the target is an actual departure area, the subsequent queuing situation is updated based on the disappearing targets that disappear in the actual departure area. The downstream region of the queue in the potential departure area of ​​the target is a preset unit area adjacent to the potential departure area of ​​the target, which is divided along the direction of the queue's movement in the area where the queue is located.

2. The method according to claim 1, characterized in that, Determining the potential out-of-team area where the last reappearance location of the vanished target is located includes: The candidate potential departure area into which the last location of the disappeared target fell is taken as the potential departure area of ​​the target; The process for determining the candidate potential out-of-queue regions includes: During the continuous image acquisition of queuing queues using an image acquisition device, the preset unit area where the last reappearance of the disappearing target is detected is taken as the target disappearance area; where the preset unit area is the area obtained by dividing the queuing queue area into units; For each target disappearance area, count the number of times the target disappearance event occurs in the target disappearance area; If the number of times a target disappearance event occurs exceeds a preset number, the target disappearance area will be considered as a candidate potential departure area.

3. The method according to claim 1 or 2, characterized in that, The determination of the preset unit region includes: Divide the area where the queue is located into grids to obtain grid regions; The grid area containing at least part of the queuing line's trajectory is used as the preset unit area.

4. The method according to claim 1, characterized in that, Determining whether the potential departure area is an actual departure area based on the latest target first detected in the downstream area of ​​the queue in the potential departure area and the disappeared target includes: The latest target is matched with the disappeared target to determine whether the similarity is higher than a preset similarity threshold; wherein the preset similarity threshold is lower than the similarity threshold used when identifying the same target in a normal queue in an image acquired by the image acquisition device; If so, the latest target and the disappeared target are merged into the same target, and it is determined that the disappeared target is not a target that has left the team; If not, then the disappearing target whose similarity to all the latest targets is less than or equal to the preset similarity threshold is identified as the departing target, and the potential departure area of ​​the target is determined as the actual departure area based on the departing target.

5. The method according to claim 4, characterized in that, Determining whether the potential departure area of ​​the target is the actual departure area based on the departure target includes: Count the number of departing targets among the disappearing targets that vanish within the potential departure area of ​​the target within a second preset time period; If the number of targets leaving the formation exceeds a preset threshold, then the potential departure area of ​​the targets is determined as the actual departure area.

6. The method according to claim 1, characterized in that, After determining that the potential departure area of ​​the target is the actual departure area, the method further includes: The number of moving targets is determined based on the number of queuing targets passing through the downstream area of ​​the queue in the actual departure area and the number of queuing targets passing through the upstream area of ​​the queue in the actual departure area within a third preset time period; wherein, the downstream area of ​​the queue in the actual departure area is a preset unit area adjacent to the actual departure area, divided along the direction of the queue's movement within the area where the queue is located; the upstream area of ​​the queue in the actual departure area is a preset unit area adjacent to the actual departure area, divided along the opposite direction of the queue's movement within the area where the queue is located. Detect the number of disappearing targets that fail to match the latest target's similarity among the disappearing targets that disappear into the actual departure area within a third preset time; If the difference between the number of moving targets and the number of disappearing targets is less than a preset difference, then the actual departure area is determined to be the final actual departure area. Otherwise, exclude the area where the team actually left the platoon.

7. The method according to claim 1, characterized in that, After determining that the potential departure area of ​​the target is the actual departure area, the method further includes: All targets that disappear within the actual departure area within the fourth preset time will be excluded from the queue, and the queuing time of the upstream queue will be updated based on the number of targets in the queue after excluding all disappearing targets; wherein, the upstream queue is the queue that moves in the opposite direction from the actual departure area.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method for detecting queuing behavior in a queuing scenario as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the method for detecting queue departure behavior in any one of claims 1-7.

10. A computer program product, characterized in that, The method includes a computer program that, when executed by a processor, implements the method for detecting out-of-queue behavior in a queuing scenario as described in any one of claims 1-7.