The present invention relates to a counting system, a counting method, and a program for counting persons in an object area.
In an area where a large number of persons exist such as a shopping district, an event site, or a facility, it is necessary to count the number of persons in order to appropriately cope with marketing, guiding of persons, and securities in such an area. For example, Patent Literature 1 discloses performing image processing based on a frame image captured by a fixed camera to estimate the number of persons passing through the imaging area.
However, in an area such as a shopping district, an event site, or a facility, a plurality of entrances and exits may exist. Therefore, capturing images with cameras at all entrances and exits and counting the number of persons is difficult and costly. This causes a problem that it is difficult to count the number of persons more accurately.
Meanwhile, in order to count the number of persons more accurately, it can also be considered to image the entire object area with cameras. However, imaging the entire object area is difficult and costly. Further, in the case of a shopping district described above, there are shops therein, and persons may exist in the shops. Therefore, even if the entire object area is imaged with cameras, it is impossible to measure the persons existing in the shops, so that it is difficult to count the accurate number of persons. Such a problem may be caused in any areas such as event sites and facilities.
It is also considered to count the number of persons by identifying the persons existing in an area. However, since identifying persons may cause a privacy problem, it is difficult to realize.
As a result, there is a problem that it is difficult to count the number of persons existing in an object area more accurately, while suppressing a problem of personal privacy and a problem of cost increase. In view of the above, an object of the present invention is to provide a counting system capable of solving such problems.
A counting method according to one aspect of the present invention is configured to include
acquiring a captured image obtained by capturing an imaging area that is a partial area of an object area;
detecting a person existing in the imaging area from the captured image;
on the basis of a detection result of the person, measuring a staying time that is a period of time in which the person stays in the imaging area; and
on the basis of the detection result of the person and the staying time, calculating the number of persons existing in the object area.
A counting system according to one aspect of the present invention is configured to include
an image acquisition means for acquiring a captured image obtained by capturing an imaging area that is a partial area of an object area;
a detection means for detecting a person existing in the imaging area from the captured image;
a measurement means for, on the basis of a detection result of the person, measuring a staying time that is a period of time in which the person stays in the imaging area; and
a calculation means for, on the basis of the detection result of the person and the staying time, calculating the number of persons existing in the object area.
A program according to one aspect of the present invention is configured to cause a processor of an information processing device to execute processing to:
acquire a captured image obtained by capturing an imaging area that is a partial area of an object area;
detect a person existing in the imaging area from the captured image;
on the basis of a detection result of the person, measure a staying time that is a period of time in which the person stays in the imaging area; and
on the basis of the detection result of the person and the staying time, calculate the number of persons existing in the object area.
With the configurations described above, the present invention enables counting the number of persons existing in an object area, while suppressing a problem of personal privacy and a problem of cost increase.
A first exemplary embodiment of the present invention will be described with reference to
The counting system of the present invention is a system whose object area is a shopping district and which is used for counting the number of persons visiting the shopping district. In particular, the counting system of the present invention is configured to count the number of persons in the entire shopping district using a captured image of a partial area, without capturing images of the entire area of the shopping district. However, the area in which the number of persons is counted by the counting system of the present invention is not limited to a shopping district. Objects of the system may be any areas in which a large number of persons visit, such as event sites and facilities.
[Configuration]
As illustrated in
Among the cameras C1, C2, and C3, the cameras C1 and C3 capture images of imaging areas set as sample areas that are partial areas in the shopping district. The camera C2 captures images of a specific area near the entrance of a shop T existing in the shopping district. Specifically, as illustrated in
Next, the counting device 1 will be described. The counting device 1 is configured of one or a plurality of information processing devices each having an arithmetic device (processor) and a storage device. As illustrated in
The image acquisition unit 11 (image acquisition means) receives images captured by the cameras C1 and C2 as described above, and stores them in the image storage unit 15. Specifically, the image acquisition unit 11 receives, from the camera C1, the sample area image G1 as illustrated in
The image acquisition unit 11 also receives sample area images and shop images captured by cameras installed in other sample areas (not illustrated), and stores them in association with each other for each sample area in the image storage unit 15.
The detection unit 12 (detection means) reads the captured images G1 and G2 captured by the cameras C1 and C2 as described above from the image storage unit 15, and performs detection processing to detect persons from the captured images G1 and G2. Specifically, the detection unit 12 first detects persons from the sample area image G1 within a certain time such as one minute for example, and counts the number of the persons. The detection unit 12 detects persons from the features such as movements, shapes, and colors of objects in the sample area image G1. Then, the detection unit 12 counts the number of persons detected within a certain time, and stores the number of persons together with time information in the person information storage unit 16.
The detection unit 12 also detects states of persons shown in the sample area image G1 and stores them in the person information storage unit 16. Specifically, when detecting a person who newly appears in the sample area image G1, that is, when detecting a person who newly moves in the frame of the sample area image G1, the detection unit 12 stores the time when the person is detected in association with the person information. Further, when detecting that a person disappears from the sample area image G1, that is, when detecting a person who moves out of the frame of the sample area image G1, the detection unit 12 stores the time when the person disappears in association with the person information. For example, as illustrated in
As similar to the above, the detection unit 12 also detects the state of a person shown in the shop image G2 and stores it in the person information storage unit 16. Specifically, when detecting that a person disappears from the shop image G2, the detection unit stores the time when the person disappears in association with the person information, and when detects a person who newly appears in the shop image G2, the detection unit 12 stores the time when the person is detected in association with the person information. For example, when the person P2 disappears from the state illustrated in
The measurement unit 13 (measurement means) uses the detection result of the person described above to measure the staying time that the person stays in the shopping district. At that time, the measurement unit 13 calculates an area staying time (imaging area staying time) that is a period of time in which a person stays in the sample area A1, and a shop staying time (specific area staying time) that is a period of time in which a person stays at the shop T. Specifically, the measurement unit 13 first reads, from the person information storage unit 16, the time when a person enters the sample area A1 (the time newly detected in the sample area image G1) and the time when the person leaves the sample area A1 (the time when the person disappears from the sample area image G1), and uses the difference as an area staying time of the person. Then, by calculating and adding the area staying times of a plurality of persons, the measurement unit 13 calculates the total staying time in the sample area of the plurality of persons, and by dividing it by the total number of persons, the measurement unit 13 calculates the area staying time per person.
The measurement unit 13 also reads, from the person information storage unit 16, the time when a person enters the shop T (the time when the person disappears from the shop image G2) and the time when the person leaves the shop T (the time when the person appears in the shop image G2), and uses the difference as the shop staying time of the person. Then, by calculating and adding the shop staying times of a plurality of persons, the measurement unit 13 calculates the total staying time in the shop of the plurality of persons, and by dividing it by the total number of persons, the measurement unit 13 calculates the shop staying time per person.
The calculation unit 14 (calculation means) calculates the number of persons existing in the entire shopping district that is the object area, by using the area staying time and the shop staying time described above. Specifically, the calculation unit 14 calculates the number of persons existing in the entire shopping district according to the procedure described below.
First, the calculation unit 14 subtracts the shop staying time from the area staying time to calculate the walking time of a person in the sample area A1.
Walking time=area staying time−shop staying time
Then, the calculation unit 14 calculates the walking time ratio of the person in the sample area A1 by dividing the calculated walking time by the area staying time.
Walking time ratio=walking time/area staying time
Then, the calculation unit 14 handles the calculated walking time ratio as a walking time ratio of the persons in the entire shopping district that is the object area, rather than within the sample area A1. Then, the calculation unit 14 calculates the walking time (object area walking time) of the person in the entire shopping district, by multiplying the staying time of the person in the shopping district that is the object area by the walking time ratio.
Walking time of person in the entire shopping district=staying time of person in the entire shopping district×walking time ratio
Here, the calculation unit 14 calculates the staying time of the person in the entire shopping district required for calculating the walking time of the person in the entire shopping district as described below. At that time, the calculation unit 14 estimates the staying time of the person in another area in the shopping district from the area staying time calculated as described above from section estimation, and obtains the staying time of the person in the entire shopping district. Specifically, the calculation unit 14 divides the entire shopping district into some sections, handles some sections similarly to the sample area as described above, and calculates the area staying time of the sample area. Then, the calculation unit 14 calculates an average value of the area staying time of some sample areas by section estimation, uses the average value as the area staying time of another section that is not used as a sample area, and adds the area staying times of all sections including the sample area to calculate the staying time in the entire shopping district. However, the calculation unit 14 may perform calculation by any method, not limited to calculating the staying time of the person in the entire shopping district by the method described above. For example, the calculation unit 14 may use the area staying time in the sample area, described above, as it is as a value of another section to obtain the entire staying time.
Then, the calculation unit 14 calculates the total number of persons existing in the entire shopping district (the number of object area persons). At that time, the calculation unit 14 uses the number of persons detected in a certain time period in the sample area A1. Specifically, the calculation unit 14 first estimates the number of persons in a predetermined region from the walking speed of a person and a time interval for counting the number of persons. For example, when the walking speed of a person is assumed to be 0.8 m/s and the detected number of persons in one minute is 100 persons, as illustrated in
Note that since detection is performed regularly without specifying a person from the sample area image G1 captured by the camera C1, the same person is counted in duplicate. Therefore, the number of persons existing in the entire shopping district calculated by using the number of persons detected in a certain time period in the sample area A as described above is the total number of person.
Then, the calculation unit 14 calculates the actual number of persons in the entire shopping district by dividing the total number of persons existing in the entire shopping district by the walking time of a person in the entire shopping district calculated as described above.
Actual number of persons in the entire shopping district=total number of persons existing in the entire shopping district/walking time of a person in the entire shopping district
Here, the actual number of persons in the entire shopping district calculated as described above does not taking into account the number of persons staying at the shop T. Therefore, the calculation unit 14 first calculates the shop staying time ratio representing the ratio of the staying time at the shop T to the staying time in the shopping district of a person. At that time, the calculation unit 14 may calculate, as the shop staying time ratio, a value obtained by dividing the shop staying time in the sample area A1 by the area staying time, and use such a value as it is as the shop staying time ratio in the entire shopping district. However, the calculation unit 14 may use, as the shop staying time ratio in the entire shopping district, an average value of the values obtained by dividing the shop staying time in a plurality of sample areas by the area staying time, or may calculate the shop staying time ratio by a still another calculation method.
Then, the calculation unit 14 calculates a correction value for the number of persons in the entire shopping district by using the following expression:
Correction value for the actual number of persons in the entire shopping district=the actual number of persons in the entire shopping district/(1−shop staying time ratio)
Thereby, the number of visitors of the shopping district in a day, including the number of persons staying at the shop, can be calculated.
[Operation]
Next, operation of the counting system in the present embodiment will be described with reference to the flowcharts of
Further, the counting device 1 stores the time when a person newly appears in the sample area image G1 is detected and the time when disappearance of such a person from the sample area image G1 is detected. Then, from these times, the counting device 1 calculates the area staying time that is a period of time in which the person stays in the sample area A1 (step S4 of
The counting device 1 also acquires the shop image G2 as illustrated in
Then, the counting device 1 performs processing to calculate the number of persons in the entire shopping district. First, the counting device 1 calculates the total number of persons existing in the entire shopping district (the number of object area persons) (step S21 of
Then, the counting device 1 subtracts the shop staying time from the area staying time to calculate the walking time of a person in the sample area A1 (step S22 of
Then, the counting device 1 estimates the staying time of a person in another area in the shopping district from the area staying time in the sample area A1 by section estimation, and calculates the staying time of a person in the entire shopping district (step S23 of
Then, the counting device 1 calculates the actual number of persons in the entire shopping district by dividing the total number of persons existing in the entire shopping district by the walking time of a persons in the entire shopping district (step S25 of
As described above, in the present invention, it is possible to calculate the number of persons in the entire shopping district using a captured image in a sample area that is a partial area, without imaging the entire object area such as a shopping district, and without specifying persons. In particular, in the present invention, by calculating the walking time of a person in the object area, it is possible to calculate the number of persons accurately. Further, in the present invention, it is possible to calculate the number of persons more accurately by taking into account the number of persons stopping by a particular area such as a shop existing in the shopping district. As a result, it is possible to count the number of persons existing in an object area more accurately, while suppressing a problem of personal privacy and a problem of cost increase.
Next, a second exemplary embodiment of the present invention will be described with reference to
First, a hardware configuration of the counting system 100 in the present embodiment will be described with reference to
The counting system 100 can construct, and can be equipped with, an image acquisition means 121, a detection means 122, a measurement means 123, and a calculation means 124 illustrated in
Note that
The counting system 100 executes the counting method illustrated in the flowchart of
As illustrated in
acquires a captured image obtained by capturing an imaging area that is a partial area of an object area (step S101),
detects a person existing in the imaging area from the captured image (step S102),
on the basis of a detection result of the person, measuring a staying time that is a period of time in which the person stays in the imaging area (step S103), and
on the basis of the detection result of the person and the staying time, calculates the number of persons existing in the object area (step S104).
Since the present embodiment is configured as described above, it is possible to calculate the number of persons in the object area using a captured image of a partial area without imaging the entire object area, and without identifying the persons. As a result, it is possible to count the number of persons existing in the object area more accurately, while suppressing a problem of personal privacy and a problem of cost increase.
<Supplementary Notes>
The whole or part of the exemplary embodiments disclosed above can be described as the following supplementary notes. Hereinafter, outlines of the configurations of a counting system, a counting method, and a program, according to the present invention, will be described. However, the present invention is not limited to the configurations described below.
A counting method comprising:
acquiring a captured image obtained by capturing an imaging area that is a partial area of an object area;
detecting a person existing in the imaging area from the captured image;
on a basis of a detection result of the person, measuring a staying time that is a period of time in which the person stays in the imaging area; and
on a basis of the detection result of the person and the staying time, calculating a number of persons existing in the object area.
The counting method according to supplementary note 1, further comprising
measuring the staying time on a basis of a state in which the person is shown in the captured image.
The counting method according to supplementary note 2, further comprising
measuring the staying time on a basis of a time when the person appears in the captured image and a time when the person disappears from the captured image.
The counting method according to any of supplementary notes 1 to 3, further comprising
as the staying time, measuring an imaging area staying time that is a period of time in which the person stays in the imaging area, and a specific area staying time that is a period of time in which the person stays in a predetermined specific area within the imaging area.
The counting method according to supplementary note 4, further comprising:
acquiring a walking area image obtained by capturing an area in which the person walks within the imaging area, and a specific area image obtained by capturing the specific area, as the captured images;
detecting the person from the walking area image and detecting the person from the specific area image; and
measuring the imaging area staying time on a basis of the detection result of the person from the walking area image, and measuring the specific area staying time on a basis of the detection result of the person from the specific area image.
The counting method according to any of supplementary notes 1 to 5, further comprising:
detecting a number of the persons existing in the imaging area; and
calculating the walking time of the person on a basis of the staying time, and calculating the number of persons staying in the object area on a basis of the number of the persons existing in the imaging area and the walking time.
The counting method according to supplementary note 4 or 5, further comprising:
detecting a number of the persons existing in the imaging area; and
calculating the walking time of the person on a basis of the imaging area staying time and the specific area staying time, and calculating the number of persons existing in the object area on a basis of the number of the persons existing in the imaging area and the walking time.
The counting method according to supplementary note 7, further comprising
calculating a number of object area persons representing the number of the persons existing in the object area on a basis of the number of the persons existing in the imaging area, calculating an object area walking time representing the walking time of the person in the object area on a basis of the walking time, and calculating the number of the persons existing in the object area by dividing the number of the object area persons by the object area walking time.
The counting method according to supplementary note 7 or 8, further comprising:
calculating a ratio of a time in which the person stays at the specific area to a time in which the person stays in the imaging area on a basis of the specific area staying time, and further calculating the number of the persons on a basis of the ratio and a calculation result of the number of the persons existing in the object area.
A counting system comprising:
image acquisition means for acquiring a captured image obtained by capturing an imaging area that is a partial area of an object area;
detection means for detecting a person existing in the imaging area from the captured image;
measurement means for, on a basis of a detection result of the person, measuring a staying time that is a period of time in which the person stays in the imaging area; and
calculation means for, on a basis of the detection result of the person and the staying time, calculating a number of persons existing in the object area.
The counting system according to supplementary note 10, wherein
the measurement means measures the staying time on a basis of a state in which the person is shown in the captured image.
The counting system according to supplementary note 11, wherein
the measurement means measures the staying time on a basis of a time when the person appears in the captured image and a time when the person disappears from the captured image.
The counting system according to any of supplementary notes 10 to 12, wherein
as the staying time, the measurement means measures an imaging area staying time that is a period of time in which the person stays in the imaging area, and a specific area staying time that is a period of time in which the person stays in a predetermined specific area within the imaging area.
The counting system according to supplementary note 13, wherein
the image acquisition means acquires a walking area image obtained by capturing an area in which the person walks within the imaging area, and a specific area image obtained by capturing the specific area, as the captured images,
the detection means detects the person from the walking area image and detects the person from the specific area image, and
the measurement means measures the imaging area staying time on a basis of the detection result of the person from the walking area image, and measures the specific area staying time on a basis of the detection result of the person from the specific area image.
The counting system according to any of supplementary notes 10 to 14, wherein
the detection means detects a number of the persons existing in the imaging area, and
the calculation means calculates the walking time of the person on a basis of the staying time, and calculates the number of persons staying in the object area on a basis of the number of the persons existing in the imaging area and the walking time.
The counting system according to supplementary note 13 or 14, wherein
the detection means detects a number of the persons existing in the imaging area, and
the calculation means calculates the walking time of the person on a basis of the imaging area staying time and the specific area staying time, and calculates the number of persons existing in the object area on a basis of the number of the persons existing in the imaging area and the walking time.
The counting system according to supplementary note 16, wherein
the calculation means calculates a number of object area persons representing the number of the persons existing in the object area on a basis of the number of the persons existing in the imaging area, calculates an object area walking time representing the walking time of the person in the object area on a basis of the walking time, and calculates the number of the persons existing in the object area by dividing the number of the object area persons by the object area walking time.
The counting system according to supplementary note 16 or 17, wherein
the calculation means calculates a ratio of a time in which the person stays at the specific area to a time in which the person stays in the imaging area on a basis of the specific area staying time, and further calculates the number of the persons on a basis of the ratio and a calculation result of the number of the persons existing in the object area.
A computer-readable storage medium storing thereon a program for causing a processor of an information processing device to execute processing to:
acquire a captured image obtained by capturing an imaging area that is a partial area of an object area;
detect a person existing in the imaging area from the captured image;
on a basis of a detection result of the person, measure a staying time that is a period of time in which the person stays in the imaging area; and
on a basis of the detection result of the person and the staying time, calculate a number of persons existing in the object area.
Note that the program described above can be supplied to a computer by being stored on a non-transitory computer-readable medium of any type. Non-transitory computer-readable media include tangible storage media of various types. Examples of non-transitory computer-readable media include magnetic storage media (for example, flexible disk, magnetic tape, and hard disk drive), magneto-optical storage media (for example, magneto-optical disk), a CD-ROM (Read Only Memory), a CD-R, a CD-R/W, and semiconductor memories (for example, a mask ROM, a PROM (Programmable ROM), an EPROM (Erasable PROM), a flash ROM, and a RAM (Random Access Memory)). Note that the program may be supplied to a computer by being stored in a transitory computer-readable medium of any type. Examples of transitory computer-readable media include electric signals, optical signals, and electromagnetic waves. A transitory computer-readable medium can be supplied to a computer via a wired communication channel such as a wire and an optical fiber, or a wireless communication channel.
While the present invention has been described with reference to the exemplary embodiments described above, the present invention is not limited to the above-described embodiments. The form and details of the present invention can be changed within the scope of the present invention in various manners that can be understood by those skilled in the art.
The present invention is based upon and claims the benefit of priority from Japanese patent application No. 2019-228949, filed on Dec. 19, 2019, the disclosure of which is incorporated herein in its entirety by reference.
Number | Date | Country | Kind |
---|---|---|---|
2019-228949 | Dec 2019 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2020/040642 | 10/29/2020 | WO |