Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEMS AND METHODS FOR OBJECT DETECTION IN AN ENVIRONMENT
Document Type and Number:
WIPO Patent Application WO/2023/141380
Kind Code:
A1
Abstract:
Aspects of the present disclosure relate generally to a vision system that detects persons exiting an environment, comprising detecting, by a processor using a plurality of image frames from at least one sensor, persons that exited the environment during a first period of time. The vision system further determines, by the processor, an exit count for the first period of time and retrieves, from a database, historical egress data comprising a detected historic exit count and a corrected historic exit count of the environment for a second period of time corresponding to the first period of time. The vision system calculates an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count, determines and stores a corrected exit count for the first period of time by adjusting the exit count using the error rate.

Inventors:
STEWART MICHAEL C (US)
ASTUDILLO NATASHA MISHELL (US)
MOTKA HARSH GAURANGBHAI (US)
CELI JOSEPH (US)
Application Number:
PCT/US2023/060424
Publication Date:
July 27, 2023
Filing Date:
January 10, 2023
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SENSORMATIC ELECTRONICS LLC (US)
International Classes:
G06V20/52; G06V10/98; G06V40/10
Foreign References:
US20210374426A12021-12-02
KR20210088075A2021-07-14
Attorney, Agent or Firm:
BINDSEIL, James J. et al. (US)
Download PDF:
Claims:
CLAIMS

What is claimed is:

1. A vision system for detecting persons exiting an environment, comprising: at least one sensor; a memory; and a processor communicatively coupled with the memory and the at least one sensor and configured to: detect, using the at least one sensor, persons that exited the environment during a first period of time; determine an exit count for the first period of time; retrieve, from a database in the memory, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment; calculate an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count; determine a corrected exit count for the first period of time by adjusting the exit count using the error rate; and store the corrected exit count in the database.

2. The vision system of claim 1, wherein the processor is further configured to determine the corrected exit count by: determining an occupancy count of the environment during the first period of time, wherein the occupancy count is a difference between a total entry count and the exit count; determining whether the adjusting the exit count using the error rate will cause the occupancy count to become a negative value; and in response to determining that the occupancy count will become a negative value, adjusting the exit count such that the occupancy count becomes zero.

3. The vision system of claim 1, wherein the first period of time and the second period of time are at a same time of day across different days.

4. The vision system of claim 3, wherein the different days are a same day across different weeks.

5. The vision system of claim 1, wherein the processor is further configured to: transmit an alert to a user indicating the corrected exit count.

6. A vision system for detecting persons entering an environment, comprising: at least one sensor; a memory; and a processor communicatively coupled with the memory and the at least one sensor and configured to: detect, using a first sensor of the at least one sensor, persons that enter the environment during a period of time by: identifying moving objects in a plurality of image frames captured by the first sensor during the period of time; and determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection; increment an entry count of the period of time for each distinct person detected; determine a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts; and store the corrected entry count in a database.

7. The vision system of claim 6, wherein the processor is configured to increment the entry count in response to determining that a threshold number of consecutive image frames are associated with likelihoods indicative of at least one person being detected.

8. The vision system of claim 7, wherein the processor is configured to identify a ghost detection by: identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count equal to or greater than the threshold number of consecutive image frames; determining that an object classified as a person in at least one of the set of consecutive image frames is not a person; updating the frame count of the set of consecutive image frames by removing counts of obj ects that are not persons; and identifying the ghost detection in response to determining that the updated frame count is less than the threshold number of consecutive image frames.

9. The vision system of claim 7, wherein the processor is configured to identify a missed detection by: identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count less than the threshold number of consecutive image frames; determining that a person identified in the set of consecutive image frames appears in non-consecutive image frames captured by the first sensor during the period of time; calculating a sum of frame counts between the set of consecutive image frames and the non-consecutive image frames; and identifying the missed detection in response to determining that the sum is not less than the threshold number of consecutive image frames.

10. The vision system of claim 6, wherein the processor is configured to identifying a missed detection by: detecting, by the first sensor, a first amount of persons entering the environment during the period of time; detecting, by a second sensor of the at least one sensor, a second amount of persons in the environment during the period of time; identifying the missed detection in response to determining that the second amount of persons is greater than the first amount of persons.

11. The vision system of claim 6, wherein the processor is further configured to: transmit an alert to the user indicating the corrected entry count.

12. The vision system of claim 6, wherein the processor is further configured to: re-train an object detection model using identified ghost detections and missed detections, wherein the object detection model detects the persons entering the environment.

13. A vision system for detecting persons exiting an environment, comprising: at least one sensor; a memory; and a processor communicatively coupled with the memory and the at least one sensor and configured to: detect, using the at least one sensor, persons that enter the environment during a first period of time by: identifying moving objects in a plurality of image frames captured by the at least one sensor during the first period of time; and determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection; increment an entry count of the first period of time for each distinct person detected; determine a corrected entry count for the first period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts; detect, using the at least one sensor, persons that exited the environment during the first period of time; determine an exit count for the first period of time; retrieve, from a database in the memory, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment; calculate an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count; determine a corrected exit count for the first period of time by adjusting the exit count using the error rate; and store the corrected exit count and the corrected entry count in the database.

14. A method for detecting persons exiting an environment, comprising: detecting, using at least one sensor, persons that exited the environment during a first period of time; determining an exit count for the first period of time; retrieving, from a database, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment; calculating an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count; determining a corrected exit count for the first period of time by adjusting the exit count using the error rate; and storing the corrected exit count in the database.

15. The method of claim 14, wherein determining the corrected exit count further comprises: determining an occupancy count of the environment during the first period of time, wherein the occupancy count is a difference between a total entry count and the exit count; determining whether the adjusting the exit count using the error rate will cause the occupancy count to become a negative value; and in response to determining that the occupancy count will become a negative value, adjusting the exit count such that the occupancy count becomes zero.

16. The method of claim 14, wherein the first period of time and the second period of time are at a same time of day across different days.

17. The method of claim 16, wherein the different days are a same day across different weeks.

18. The method of claim 14, further comprising: transmitting an alert to a user indicating the corrected exit count.

19 A method for detecting persons entering an environment, comprising: detecting, using a first sensor of at least one sensor, persons that enter the environment during a period of time by: identifying moving objects in a plurality of image frames captured by the first sensor during the period of time; and determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection; incrementing an entry count of the period of time for each distinct person detected; determining a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts; and storing the corrected entry count in a database.

20. The method of claim 19, wherein incrementing the entry count is in response to determining that a threshold number of consecutive image frames are associated with likelihoods indicative of at least one person being detected.

21. The method of claim 20, wherein identifying a ghost detection further comprises: identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count equal to or greater than the threshold number of consecutive image frames; determining that an object classified as a person in at least one of the set of consecutive image frames is not a person; updating the frame count of the set of consecutive image frames by removing counts of objects that are not persons; and identifying the ghost detection in response to determining that the updated frame count is less than the threshold number of consecutive image frames.

22. The method of claim 20, wherein identifying a missed detection further comprises: identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count less than the threshold number of consecutive image frames; determining that a person identified in the set of consecutive image frames appears in non-consecutive image frames captured by the first sensor during the period of time; calculating a sum of frame counts between the set of consecutive image frames and the non-consecutive image frames; and identifying the missed detection in response to determining that the sum is not less than the threshold number of consecutive image frames.

23. The method of claim 19, wherein identifying a missed detection further comprises: detecting, by the first sensor, a first amount of persons entering the environment during the period of time; detecting, by a second sensor of the at least one sensor, a second amount of persons in the environment during the period of time; identifying the missed detection in response to determining that the second amount of persons is greater than the first amount of persons.

24. The method of claim 19, further comprising: transmitting an alert to the user indicating the corrected entry count.

25. The method of claim 19, further comprising: re-training an object detection model using identified ghost detections and missed detections, wherein the object detection model detects the persons entering the environment.

T1

Description:
SYSTEMS AND METHODS FOR OBJECT DETECTION IN AN ENVIRONMENT

CROSS REFERENCE TO RELATED APPLICATION

[0001] This application claims the benefit of U.S. Non-Provisional Application Serial No. 17/580,023, and filed on January 20, 2022, which is expressly incorporated by reference herein in its entirety

TECHNICAL FIELD

[0002] The described aspects relate to security systems that comprise object detection features.

BACKGROUND

[0003] Aspects of the present disclosure relate generally to vision systems that may be used for security, and more particularly to object detection.

[0004] Vision systems may be used to detect objects, such as people, in an environment. In some implementations, for example, vision systems may be used for determining occupancy counts, which is important for fields such as security, marketing, and health. For example, a user of a security system may be interested in knowing how many people have entered/exited a theater with a fire code occupancy limit. An owner of a shopping mall may be interested in knowing how many people enter different stores to evaluate popularity. Office personnel may be interested in knowing how many people have entered an office to enforce health-based regulations (e.g., limit the occupancy count to prevent the spread of a virus).

[0005] Conventional systems, however, often fail to provide accurate detection and/or counts due to sub-par detection algorithms, aging/corrupted hardware, and different exit/entry scenarios (e.g., visual/physical obstacles, unorthodox entry/exit movement by people, etc.). Accordingly, there exists a need for improvements in such vision systems with object detection/counting capabilities.

SUMMARY

[0006] The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.

[0007] An example implementation includes a method for detecting persons exiting an environment, comprising detecting, by a processor using a plurality of image frames from at least one sensor, persons that exited the environment during a first period of time. The method further includes determining, by the processor, an exit count for the first period of time. Additionally, the method further includes retrieving, by the processor from a database in a memory, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment. Additionally, the method further includes calculating, by the processor, an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count. Additionally, the method further includes determining, by the processor, a corrected exit count for the first period of time by adjusting the exit count using the error rate. Additionally, the method further includes storing, by the processor, the corrected exit count in the database.

[0008] Another example implementation includes an apparatus for detecting persons exiting an environment, comprising a memory and a processor in communication with the memory. The processor is configured to detect, using a plurality of image frames from at least one sensor, persons that exited the environment during a first period of time. The processor is further configured to determine an exit count for the first period of time. Additionally, the processor further configured to retrieve, from a database in a memory, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment. Additionally, the processor further configured to calculate an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count. Additionally, the processor further configured to determine a corrected exit count for the first period of time by adjusting the exit count using the error rate. Additionally, the processor further configured to store the corrected exit count in the database.

[0009] Another example implementation includes an apparatus for detecting persons exiting an environment, comprising means for detecting, using a plurality of image frames from at least one sensor, persons that exited the environment during a first period of time. The apparatus further includes means for determining an exit count for the first period of time. Additionally, the apparatus further includes means for retrieving, from a database in a memory, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment. Additionally, the apparatus further includes means for calculating an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count. Additionally, the apparatus further includes means for determining a corrected exit count for the first period of time by adjusting the exit count using the error rate. Additionally, the apparatus further includes means for storing the corrected exit count in the database.

[0010] Another example implementation includes a computer-readable medium storing instructions for detecting persons exiting an environment, executable by a processor to detect a plurality of image frames from at least one sensor, persons that exited the environment during a first period of time. The instructions are further executable to determine an exit count for the first period of time. Additionally, the instructions are further executable to retrieve, from a database in a memory, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment. Additionally, the instructions are further executable to calculate an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count. Additionally, the instructions are further executable to determine a corrected exit count for the first period of time by adjusting the exit count using the error rate. Additionally, the instructions are further executable to store the corrected exit count in the database.

[0011] An example implementation includes a method for detecting persons entering an environment, comprising detecting, by a processor using a plurality of image frames from a first sensor, persons that enter the environment during a period of time by: identifying objects in the plurality of image frames captured by the first sensor during the period of time; and determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection. Additionally, the method further includes incrementing, by the processor, an entry count of the period of time for each distinct person detected. Additionally, the method further includes determining, by the processor, a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts. Additionally, the method further includes storing, by the processor, the corrected entry count in a database.

[0012] Another example implementation includes an apparatus for detecting persons entering an environment, comprising a memory and a processor in communication with the memory. The processor is configured to detect, using a plurality of image frames from a first sensor, persons that enter the environment during a period of time by: identifying objects in the plurality of image frames captured by the first sensor during the period of time; and determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection. Additionally, the processor further configured to increment an entry count of the period of time for each distinct person detected. Additionally, the processor further configured to determine a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts. Additionally, the processor further configured to store the corrected entry count in a database.

[0013] Another example implementation includes an apparatus for detecting persons entering an environment, comprising means for detecting, using a plurality of image frames from a first sensor, persons that enter the environment during a period of time by: identifying objects in the plurality of image frames captured by the first sensor during the period of time; and determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection. Additionally, the apparatus further includes means for incrementing an entry count of the period of time for each distinct person detected. Additionally, the apparatus further includes means for determining a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts. Additionally, the apparatus further includes means for storing the corrected entry count in a database.

[0014] Another example implementation includes a computer-readable medium storing instructions for detecting persons entering an environment, executable by a processor to detect, using a plurality of image frames from a first sensor, persons that enter the environment during a period of time by:. The instructions are further executable to identify objects in the plurality of image frames captured by the first sensor during the period of time. Additionally, the instructions are further executable to determine, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection. Additionally, the instructions are further executable to increment an entry count of the period of time for each distinct person detected. Additionally, the instructions are further executable to determine a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts. Additionally, the instructions are further executable to store the corrected entry count in a database.

[0015] To the accomplishment of the foregoing and related ends, the one or more aspects comprise the features hereinafter fully described and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail certain illustrative features of the one or more aspects. These features are indicative, however, of but a few of the various ways in which the principles of various aspects may be employed, and this description is intended to include all such aspects and their equivalents.

BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate one or more example aspects of the present disclosure and, together with the detailed description, serve to explain their principles and implementations.

[0017] Fig. 1 is an example image frame captured by a camera used to detect objects in an environment, in accordance with exemplary aspects of the present disclosure.

[0018] Fig. 2 is a diagram depicting a flow map for occupancy count correction, in accordance with exemplary aspects of the present disclosure.

[0019] Fig. 3 is a block diagram of a computing device executing an occupancy count correction (OCC) component, in accordance with exemplary aspects of the present disclosure.

[0020] Fig. 4 is a flowchart illustrating a method of detecting objects exiting an environment, in accordance with exemplary aspects of the present disclosure.

[0021] Fig. 5 is a flowchart illustrating a method of correcting an exit count, in accordance with exemplary aspects of the present disclosure.

[0022] Fig. 6 is a flowchart illustrating a method of detecting objects entering an environment, in accordance with exemplary aspects of the present disclosure. [0023] Fig. 7 is a flowchart illustrating a method of identifying a ghost detection, in accordance with exemplary aspects of the present disclosure.

[0024] Fig. 8 is a flowchart illustrating a method of identifying a missed detection, in accordance with exemplary aspects of the present disclosure.

[0025] Fig. 9 is a flowchart illustrating a method of identifying a missed detection using multiple sensors, in accordance with exemplary aspects of the present disclosure.

DETAILED DESCRIPTION

[0026] Various aspects are now described with reference to the drawings. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more aspects. It may be evident, however, that such aspect(s) may be practiced without these specific details.

[0027] The present disclosure describes implementations of improving vision systems that include occupancy counting features. Vision systems often fail to provide accurate counts of objects due to object detection issues. To address these shortcomings, the present disclosure describes how to improve occupancy counts using historical object detection data.

[0028] Vision systems that are used for occupancy counting (e.g., foot traffic counting systems) rely on accurate counts of persons and accurate identification of the time when those persons enter/leave an environment (e.g., an office). To achieve a favorable accuracy, the vision system may be periodically tuned. For example, the vision system may include a component that accepts feedback. This feedback may be described as "tuning," "training," "correction," or "calibration."

[0029] In some cases, the feedback involves the system receiving correction inputs from a user based on a manual review of entries or exits. For example, if a person is entering the environment and the vision system does not detect the person, the user may manually increase the entry count by one and may identify the undetected person. In one approach, the vision system may then adjust its object detection algorithm using this feedback such that the person is detected from then on. Although manual review is helpful, it is not always available, time efficient, or free from human error. The present disclosure thus describes systems and methods that reduce the amount of manual configuration required to achieve favorable accuracy, while saving cost and time to install and deploy the system. Said systems and methods specifically utilize historic error rates and secondary sensors to confirm exit and entry counts. [0030] Fig. 1 is an example image frame 100 captured by a camera used to detect objects in an environment 101, such as to monitor occupancy of the environment 101, in accordance with exemplary aspects of the present disclosure. The environment 101 may be indoors or outdoors. Access point 102 may be an entry and exit point of the environment 101. For example, access point 102 is a door or a gate or an opening to an area or any defined real or virtual boundary. Persons 104, 106, and 108 may enter and exit the environment 101 via the access point 102. Their entry and exits may be captured by different sensors present in the environment 101. One sensor may be the camera that captured image frame 100. Other example sensors may be a depth sensor, a laser detector, an IR sensor, a video camera, etc. Using any combination of sensors and computer vision techniques (e.g. facial detection, segmentation, edge detection, object detection, etc.), an occupancy counting system may determine how many people have entered and exited the environment 101. For example, a visual boundary including the access point 102 may be generated in the image frame. Depending on the trajectory of each detected person relative to the access point 102 and/or the environment 101, the system may increment an entry/exit count for detected persons in the environment 101. [0031] Suppose that person 104 enters the environment 101 via the access point 102. The occupancy counting system (see Fig. 3) may increment the occupancy count from 3 (including previously present person 106 and previously present persons 108) to 4. Suppose that person 106 then leaves the environment 101. The occupancy counting system may then decrease the occupancy count back to 3. As previously explained, certain entries and exits may be missed. For example, persons 108 may exit the environment 101, which should account for two exits. However, the occupancy counting system/camera may not detect two people because of their close proximity (e g., one person may block the view of the camera as persons 108 exit). The occupancy count correction (OCC) component 315 of the occupancy counting system described in Fig. 3 is configured to correct these issues. For example, the OCC component 315 may make correction 110 (subtracting 2 from the occupancy count) based on a previous day’s error rate and/or ghost detections. Thus, the exit count would be 2 (instead of 1) and the occupancy count would be 1 (instead of 2). Historic exit/entry counts are useful because environments tend to have consistent average entry and exit counts (e.g., the same amount of employees, the same amount of shoppers, etc.) over a long period of time. [0032] In some aspects, with this corrected information, the occupancy counting system may execute different commands depending on a goal set by an administrator. For example, if the administrator is seeking to limit the amount of entries to a maximum occupancy count, when the corrected occupancy count reaches the maximum occupancy count, the system may transmit an alert (e.g., generate and send an email or text message via a wired or wireless network) to the administrator or automatically prevent further entries (e g., disable access point 102 access by activating a lock or deactivating entry motion detection if access point 102 are motion-detection-based). In other aspects, the administrator may seek to determine the amount of time people spend in the environment to determine an open/close schedule (e g., close the store at 8:00 pm instead of 7:00 pm due to the high traffic at 6:45 pm).

[0033] The occupancy count at a given time is given by the difference in entry counts and exit counts. For example, if in a given time period five people enter and two people exit the environment 101, the occupancy counting system determines that the occupancy count is the previous occupancy count plus the difference. For instance, if the occupancy count was previously 0, the new occupancy count is three. Ideally, both the entry and exit counts are accurate. If even one of them is incorrect, the occupancy count is also incorrect.

[0034] As discussed previously, there are many reasons why the entry and exit counts may be incorrect. Occupancy counting solutions without a means for error correction will suffer from accumulated accuracy loss over time. The presented aspects of realtime occupancy counting corrections using the described approach is unique. Observed typical prior approaches either utilize correlation with hardware devices or do not provide a real-time and active learning approach proposed by the present disclosure.

[0035] Fig. 2 is a diagram depicting flow map 200 for occupancy count correction, in accordance with exemplary aspects of the present disclosure.

[0036] In the present disclosure, a combination of supervised and unsupervised machine leaning is used. Supervised machine learning is used to train a model of error rates in detection based on the environmental factors that primarily contribute to errors (e.g., lighting, occlusion, etc.). As indicated in Fig. 2, lighting and occlusion have high variance that can contribute to errors. For example, a person may be blocked by any other object (including another person) and not get counted. Likewise, a light such as a gleam from the sun may obscure a portion of a frame from where the person can be spotted, causing the person to not get counted. This makes detection difficult for conventional counting systems. In Fig. 2, detection, tracking, occupancy count and other agents are identified as observable because they are measurable data provided by the existing computer vision system (e.g., person presence likelihood can be measured, their movements can be measured, the amount of persons in an environment can be measured, and other data points from other agents can be measured).

[0037] Unsupervised machine learning is used to train general models based on features directly dependent on error processes (i.e., aspects of the machine learning components which produce count errors). For entry and exit, simply identifying a person in a frame is not enough because the person may be standing idle in an egress/ingress point. This makes tracking the person and their traversal important. Because there are multiple frames in which the person will be seen, tracking is made possible by analyzing changes in location across a plurality of frames. In addition, ghost detections can be identified (i.e., a non-person is detected as a person for a less than a threshold number of frames). Based on the detection and tracking of a person, an occupancy count is updated.

[0038] In some aspects, additional agents may be used to confirm the occupancy count. For example, if a sensor (e g., a camera elsewhere in the environment) observes a person when the entry counter has not, the vision system may determine that the entry counter has recently missed a person entering the environment. All this data can later be used to automatically calibrate a specific instance of an environment when the similar data is observed again. Other agents may also include sensors such as biometric scanners, thermal sensors, ID badge readers, etc. For example, if a person scans their badge to enter an office environment, the true occupancy count may be at least one. If the camera fails to detect and track the person and the entry counter states that no one is in the office environment, this may be identified as a misclassification by the entry counter by the OCC component.

[0039] Fig. 3 is a block diagram of computing device 300 executing an occupancy count correction (OCC) component 315, in accordance with exemplary aspects of the present disclosure. Fig. 4 is a flowchart illustrating method 400 of detecting objects exiting an environment, in accordance with exemplary aspects of the present disclosure. Referring to Fig. 3 and Fig. 4, in operation, computing device 300 may perform method 400 of correcting an exit count in an environment via execution of OCC component 315 by processor 305 and/or memory 310.

[0040] At block 402, the method 400 includes detecting, using a plurality of image frames from at least one sensor, persons that exited the environment during a first period of time. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or detecting component 320 may be configured to or may comprise means for detecting, using a plurality of image frames (e.g., image frame 100) from at least one sensor (e.g., a camera), persons that exited the environment during a first period of time (e.g., between 1:00 pm and 2:00 pm on Monday). Detecting component 320 may include an object detection/tracking algorithm.

[0041] For example, the detecting at block 402 may include identifying a first set of pixels that depict a person in a first frame. Detecting component 320 may monitor the plurality of image frames for additional sets of pixels that match the person of the first set of pixels. In response to identifying the additional sets of pixels, detecting component 320 may determine the relative location of each set of pixels in its respective frame. By determining a plurality of relative locations, detecting component 320 tracks the movement of a given person across a plurality of image frames. If the movement matches a trajectory that indicates an exit from the environment (i.e., a trajectory towards and outside a door), detecting component 320 determines that the given person has exited the environment.

[0042] At block 404, the method 400 includes determining an exit count for the first period of time. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 325 may be configured to or may comprise means for determining an exit count for the first period of time.

[0043] For example, for each person that has a movement that matches an exit trajectory, determining component 325 may increment an exit count. The period of time may be an hour, a set of hours, a day, a week, etc. For example, the first period of time may be an hour between 1:00 pm and 2:00 pm on a Monday. Determining component 325 may determine that the exit count for the first period of time is the amount of increments that occurred in the first period of time. For example, if the exit count was incremented by one, 100 times, the exit count for the first period of time is 100.

[0044] At block 406, the method 400 includes retrieving, from a database in a memory, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment;. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or retrieving component 330 may be configured to or may comprise means for retrieving, from a database in memory 310, historical egress data for a second period of time corresponding to the first period of time, wherein the historical egress data comprises a detected historic exit count and a corrected historic exit count of the environment.

[0045] In an aspect, the first period of time and the second period of time are at a same time of day across different days. For example, if the first period of time is 1 :00 pm to 2:00 pm on a Monday, the second period of time may be 1:00 pm to 2:00 pm on a Friday. In an aspect, the different days are a same day across different weeks. For example, the second period of time may be 1 :00 pm to 2:00 pm on a Monday from a prior week.

[0046] The database comprising historical egress data may be divided into a plurality of time periods. For each time period, there may be an exit count determined using the sensor and respective corrected exit count that is generated either manually, with the use of other sensors, or using statistics. An example data structure that holds historical egress data may be:

[0047] At block 408, the method 400 includes calculating an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or calculating component 335 may be configured to or may comprise means for calculating an error rate for the second period of time based on a ratio of the detected historic exit count and the corrected historic exit count.

[0048] Referring to the table above, for example, the first period of time may be 1:00 pm to 2:00 pm on Monday 1/10/2022. Calculating component 335 may identify the second period of time as being Monday 1/3/2022 between 1 :00 pm and 2:00 pm. The error rate for the second period of time may be determined by the equation:

Error Rate = | (Corrected_Exit_Count - Exit Count) | / Exit Count Accordingly, for the second period of time, the error rate is (15-11)/11 = 0.3636. [0049] At block 410, the method 400 includes determining a corrected exit count for the first period of time by adjusting the exit count using the error rate. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 340 may be configured to or may comprise means for determining a corrected exit count for the first period of time by adjusting the exit count using the error rate. For example, according to the error rate, about 36.36% of exits were missed by the exit counter (e.g., detecting component 320). Determining component 340 may thus calculate a value equal to 36.36% of the current exit count and add the value to the current exit count. For example, if the current exit count is 17, determining component 340 determines the corrected exit count as 23 (17 + 6; where the corrected exit count of 6 is based on (17 * .3636)).

[0050] At block 412, the method 400 includes storing the corrected exit count in the database.. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or storing component 345 may be configured to or may comprise means for storing the corrected exit count in the database (e.g., in the field “corrected exit count”).

[0051] It should be noted that the error rate is dependent on the second period of time. For example, the second period of time may be an entire day, entire week, or the total time that corrections have been entered into the database. Accordingly, the error rate may be a daily error rate, a weekly error rate, or a global error rate, or an error rate based on any configured time period.

[0052] In an optional or additional aspect, subsequent to block 410, the method 400 may further include transmitting an alert to a user indicating the corrected exit count. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or transmitting component 378 may be configured to or may comprise means for transmitting an alert to a user indicating the corrected exit count. For example, transmitting component 378 may send a text, an email, and/or a custom message on a user interface for access by a user (e.g., a security officer).

[0053] Referring to Fig. 5, in an optional aspect, at block 502, the method 400 may further include determining an occupancy count of the environment during the first period of time, wherein the occupancy count is a difference between a total entry count and the exit count. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 376 may be configured to or may comprise means for determining an occupancy count of the environment during the first period of time, wherein the occupancy count is a difference between a total entry count and a total exit count.

[0054] For example, the total number of entries till 1:00 pm may be 100 and the total number of exits may be 80. Accordingly, the occupancy count is determined to be 20 at 1:00 pm.

[0055] In this optional aspect, at block 504, the method 400 may further include determining whether the adjusting the exit count using the error rate will cause the occupancy count to become a negative value. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 377 may be configured to or may comprise means for determining whether the adjusting the exit count using the error rate will cause the occupancy count to become a negative value.

[0056] Suppose that no new entries occurred in the environment after 1:00 pm and the occupancy count is 20. If the exit count between 1:00 pm and 2:00 pm is greater than 20 (after correction), the occupancy count would become a negative value. Because this is not physically possible, the correction is not valid.

[0057] In this optional aspect, at block 506, the method 400 may further include, in response to determining that the occupancy count will become a negative value, adjusting the exit count such that the occupancy count becomes zero. For example, if the corrected exit count is originally set to 21, upon determining that the occupancy count will become a negative value, the corrected exit count is adjusted to 20 (yielding an occupancy count of 0) by determining component 377.

[0058] Fig. 6 is a flowchart illustrating method 600 of detecting objects entering an environment, in accordance with exemplary aspects of the present disclosure. Referring to Fig. 3 and Fig. 6, in operation, computing device 300 may perform method 600 of correcting an entry count in an environment via execution of OCC component 315 by processor 305 and/or memory 310.

[0059] At block 602, the method 600 includes detecting, using a plurality of image frames from a first sensor, persons that enter the environment during a period of time. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or detecting component 350 may be configured to or may comprise means for detecting, using a plurality of image frames from a first sensor, persons that enter the environment during a period of time.

[0060] As described before, detecting component 350 may use computer vision techniques and object detection to identify persons in a frame and track the movement of the identified persons across a plurality of image frames. If the movement corresponds to a movement indicative of entering an environment, detecting component 350 may determine that an entry has occurred. Blocks 604 and 606 are detailed steps of detection.

[0061] At block 604, the method 600 includes identifying moving objects in the plurality of image frames captured by the first sensor during the period of time. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or identifying component 355 may be configured to or may comprise means for identifying moving objects in the plurality of image frames captured by the first sensor during the period of time. In some aspects, the identified movements of the objects are particularly along a trajectory indicative of an entry into the environment.

[0062] At block 606, the method 600 includes determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 360 may be configured to or may comprise means for determining, for each respective object, a likelihood that the respective object is a person, wherein a likelihood greater than a threshold likelihood is indicative of a person detection. For example, determining component 360 assign a confidence score (e.g., 70%) that represents how close the object matches to a representation of a person. This confidence score is the likelihood. The threshold likelihood may be a predetermined value such as 75%. If the likelihood is greater than the threshold likelihood, determining component 360 determines that the moving object is a person. [0063] In some aspects, the confidence score is built-in to the object classification model. For example, if a computer vision technique involves matching key points, the confidence score may be the amount of key points out of a total amount of key points that match between a sample image of a person and an input image. If machine learning is used, the confidence score may be given by the weighted value that is compared with a classification threshold. For example, in neural networks, the value of the final layer prior to binary classification is the confidence score.

[0064] At block 608, the method 600 includes incrementing an entry count of the period of time for each distinct person detected. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or incrementing component 365 may be configured to or may comprise means for incrementing, an entry count of the period of time for each distinct person detected.

[0065] For example, for each person identified, OCC component 315 may assign a unique identifier that is used to track the person across a plurality of image frames. The unique identifier may be a distinct attribute of the person (e.g., a vector representation of the face of the person). Incrementing component 365 may track the person as he/she enters and exits a plurality of frames and increments the entry count when a complete entry motion is performed by the person (e.g., the person enters a door and is no longer visible in the plurality of image frames).

[0066] At block 610, the method 600 includes determining a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 370 may be configured to or may comprise means for determining a corrected entry count for the period of time by, without manual input from a user, removing ghost detection counts and adding missed detection counts.

[0067] At times, detecting component 350 may increment the entry count when a person is not there or is not entering (i.e., a ghost detection). This is further discussed in Fig 7. At times, detecting component 350 may not increment the entry count even though a person has entered the environment (i.e., a missed detection). This is further discussed in Figs. 8 and 9.

[0068] In some aspects, subsequent to identifying the ghost detections and the missed detections, OCC component 315 may re-train an object detection model executed by detecting component 350. For example, OCC component 315 may retrieve frames with the ghost detections and classify them as non-persons and may retrieve frames with the missed detections and classify them as persons. These frames are added to a training dataset, that is used to improve the object detection model.

[0069] At block 612, the method 600 includes storing the corrected entry count in a database. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or storing component 375 may be configured to or may comprise means for storing the corrected entry count in a database. In some aspects, transmitting component 378 may transmit an alert to the user indicating the corrected entry count.

[0070] Fig. 7 is a flowchart illustrating a method of identifying a ghost detection, in accordance with exemplary aspects of the present disclosure. Referring to Fig. 7, in an optional aspect, at block 702, the method 600 may further include identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count equal to or greater than the threshold number of consecutive image frames. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or identifying component 379 may be configured to or may comprise means for identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count equal to or greater than the threshold number of consecutive image frames.

[0071] When a person moves in front of a camera, assuming that the person constantly remains in the line of sight of the camera, the person should appear in a consecutive set of image frames. If the person is walking behind obstructions, the person may appear in a few frames, then disappear behind the obstruction for a few frames, and then reappear in another set of frames. Entry detection may additionally evaluate whether the person appears in a threshold number of consecutive frames to classify their motion as an entry. If the person appears in too few frames (i.e., less than the threshold number), it is possible that the person did not enter the environment and was simply passing by (e.g., a ghost entry detection). In some cases, it is possible that the person is misclassified entirely and a person did not exist.

[0072] The threshold number of consecutive frames may be pre-determined. For example, if the camera captures 60 frames per second and it would physically take a person 3 seconds to enter the environment based on the view of the camera (e.g., walk across a foyer into a door in the view of the camera), then the person should appear in 180 consecutive frames. Accordingly, the threshold number may be set to 180. If this number is exceeded and the moving object is classified as a person, the entry is counted. [0073] In this optional aspect, at block 704, the method 600 may further include determining that an object classified as a person in at least one of the set of consecutive image frames is not a person. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 380 may be configured to or may comprise means for determining that an object classified as a person in at least one of the set of consecutive image frames is not a person.

[0074] For example, a second object detection model may be used to determine that the person in some of the frames is not a person at all. For example, the moving object may be a misclassified as a person due to obstructions or light conditions (e.g., gleam of sunlight).

[0075] In this optional aspect, at block 706, the method 600 may further include updating the frame count of the set of consecutive image frames by removing counts of objects that are not persons. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or updating component 381 may be configured to or may comprise means for updating the frame count of the set of consecutive image frames by removing counts of objects that are not persons.

[0076] For example, updating component 381 may determine that the non-person object appears starting from the 30 th frame and continues to appear until the 60 th frame. If the “person” originally appeared in 200 frames, which is greater than the threshold number of 180, the new numbers of consecutive frame appears are 29 frames and 139 frames.

[0077] In this optional aspect, at block 708, the method 600 may further include identifying the ghost detection in response to determining that the updated frame count is less than the threshold number of consecutive image frames. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or identifying component 382 may be configured to or may comprise means for identifying the ghost detection in response to determining that the updated frame count is less than the threshold number of consecutive image frames.

[0078] For example, because neither of the updated consecutive frame counts exceeds 180, identifying component 382 determines that a ghost detection has occurred.

[0079] Fig. 8 is a flowchart illustrating a method of identifying a missed detection, in accordance with exemplary aspects of the present disclosure. Referring to Fig. 8, in an optional aspect, at block 802, the method 600 may further include identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count less than the threshold number of consecutive image frames. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or identifying component 383 may be configured to or may comprise means for identifying a set of consecutive image frames that have likelihoods indicative of at least one person and have a frame count less than the threshold number of consecutive image frames.

[0080] For example, suppose that a person was detected in 30 consecutive frames and then 150 consecutive frames. Neither frame count exceeds the threshold number of consecutive image frames and therefore an entry count is not incremented. However, it is possible that for a certain set of frames, the line of sight between the camera and the person was simply blocked by an obstruction (e.g., another person).

[0081] In this optional aspect, at block 804, the method 600 may further include determining that a person identified in the set of consecutive image frames appears in non-consecutive image frames captured by the first sensor during the period of time. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or determining component 384 may be configured to or may comprise means for determining that a person identified in the set of consecutive image frames appears in non-consecutive image frames captured by the first sensor during the period of time. For example, the initial set of consecutive image frames may be 30 and the additional set may be 150. These together are non-consecutive image frames with a total count of 180.

[0082] In this optional aspect, at block 806, the method 600 may further include calculating a sum of frame counts between the set of consecutive image frames and the non-consecutive image frames. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or calculating component 385 may be configured to or may comprise means for calculating a sum of frame counts between the set of consecutive image frames and the non-consecutive image frames. For example, the initial set of consecutive image frames may be 30 and the additional set may be 150 (these are considered non-consecutive because they are not immediately after the initial set). The sum of both image frame sets is 180.

[0083] In this optional aspect, at block 808, the method 600 may further include identifying the missed detection in response to determining that the sum is not less than the threshold number of consecutive image frames. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or identifying component 386 may be configured to or may comprise means for identifying the missed detection in response to determining that the sum is not less than the threshold number of consecutive image frames.

[0084] Originally, because the person did not appear in at least a threshold number of consecutive frames, the object detection model may fail to classify the person as entering the environment. However, a missed detection is identified when despite not appearing for consecutive image frames, the person appears in enough frames equal to the threshold number.

[0085] Fig. 9 is a flowchart illustrating a method of identifying a missed detection using multiple sensors, in accordance with exemplary aspects of the present disclosure. Referring to Fig. 9, in an optional aspect, at block 902, the method 600 may further include detecting, by the first sensor, a first amount of persons entering the environment during the period of time. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or detecting component 350 may be configured to or may comprise means for detecting, by the first sensor, a first amount of persons entering the environment during the period of time. For example, the first sensor may be a camera and detecting component 350 may track objects using computer vision.

[0086] In this optional aspect, at block 904, the method 600 may further include detecting, by a second sensor of the at least one sensor, a second amount of persons in the environment during the period of time. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or detecting component 387 may be configured to or may comprise means for detecting, by a second sensor of the at least one sensor, a second amount of persons in the environment during the period of time.

[0087] Suppose that the environment is an office and employees are entering during the period of time being observed. The second sensor may be a ID badge scanner that the employees need to interact with (e.g., swipe their ID) in order to enter. If there are 40 employees that swiped their badge, the entry count should be at least 40.

[0088] In this optional aspect, at block 906, the method 600 may further include identifying the missed detection in response to determining that the second amount of persons is greater than the first amount of persons.. For example, in an aspect, computing device 300, processor 305, memory 310, OCC component 315, and/or identifying component 386 may be configured to or may comprise means for identifying the missed detection in response to determining that the second amount of persons is greater than the first amount of persons. For example, using the first sensor, only 38 people may have been detected entering the environment. Because the second sensor detected two more people in the example given, there is a discrepancy in the entry count. In this case, identifying component 386 determines that there are two missed detections.

[0089] While the foregoing disclosure discusses illustrative aspects and/or embodiments, it should be noted that various changes and modifications could be made herein without departing from the scope of the described aspects and/or embodiments as defined by the appended claims. Furthermore, although elements of the described aspects and/or embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated. Additionally, all or a portion of any aspect and/or embodiment may be utilized with all or a portion of any other aspect and/or embodiment, unless stated otherwise.