Passenger counting device, system, method and program, and vehicle movement amount calculation device, method and program
The erroneous detection determination system acquires a movement amount of a vehicle. The erroneous detection determination system calculates, based on the movement amount of the vehicle, distances in a depth direction of objects detected as faces of passengers of the vehicle from an image of the vehicle. The erroneous detection determination system determines whether the detected objects include an object that has been erroneously detected, based on the distances in the depth direction of the objects.
1. An erroneous detection determination system comprising:
at least one memory storing instructions; and
at least one processor coupled to the at least one memory and configured to execute the instructions to:
acquire a movement amount of a vehicle;
calculate, based on the movement amount of the vehicle, distances in a depth direction of objects detected as faces of passengers of the vehicle from an image of the vehicle; and
determine whether the detected objects include an object that has been erroneously detected, based on the distances in the depth direction of the objects.
2. The erroneous detection determination system according to claim 1 , wherein the at least one processor is configured to
calculate the distances in the depth direction of the objects based on the movement amount of the vehicle and two or more images which include objects, the two or more images being generated by imaging the vehicle two or more times.
3. The erroneous detection determination system according to claim 1 , wherein the at least one processor is configured to
determine that the detected objects include an object that has been erroneously detected when a distance in the depth direction between two or more detected objects out of the detected objects is shorter than a predetermined threshold value.
4. The erroneous detection determination system according to claim 1 , wherein the at least one processor is further configured to
determine a number obtained by subtracting the number of an erroneously-detected object from the number of the detected objects to be a number of passengers of the vehicle.
5. The erroneous detection determination system according to claim 1 , wherein the at least one processor is further configured to
acquire the movement amount of the vehicle by calculating the movement amount based on change in a position of a specific part of the vehicle, the specific part being chosen from: a door knob; a door outer handle; a tire; a window frame; a door; a tail lamp, a door mirror; a side mirror; a license plate; and a light of the vehicle.
6. The erroneous detection determination system according to claim 1 , wherein the at least one processor is further configured to:
estimate a value indicating an error of the acquired movement amount based on positions of specific parts of a face of a person in the vehicle, the specific parts being selected from: a nose; an inner corner of an eye; an outer corner of an eye; and a mouth; and
correct the acquired movement amount using the estimated value.
7. An erroneous detection method comprising:
acquiring a movement amount of a vehicle;
calculating, based on the movement amount of the vehicle, distances in a depth direction of objects detected as faces of passengers of the vehicle from an image of the vehicle; and
determining whether the detected objects include an object that has been erroneously detected, based on the distances in the depth direction of the objects.
8. The erroneous detection method according to claim 7 , comprising
calculating the distances in the depth direction of the objects based on the movement amount of the vehicle and two or more images which include objects, the two or more images being generated by imaging the vehicle two or more times.
9. The erroneous detection method according to claim 7 , comprising
determining that the detected objects include an object that has been erroneously detected when a distance in the depth direction between two or more detected objects out of the detected objects is shorter than a predetermined threshold value.
10. The erroneous detection method according to claim 7 , further comprising
determining a number obtained by subtracting the number of an erroneously-detected object from the number of the detected objects to be a number of passengers of the vehicle.
11. The erroneous detection method according to claim 7 , further comprising
acquiring the movement amount of the vehicle by calculating the movement amount based on change in a position of a specific part of the vehicle, the specific part being chosen from: a door knob; a door outer handle; a tire; a window frame; a door; a tail lamp, a door mirror; a side mirror; a license plate; and a light of the vehicle.
12. The erroneous detection method according to claim 7 , further comprising:
estimating a value indicating an error of the acquired movement amount based on positions of specific parts of a face of a person in the vehicle, the specific parts being selected from: a nose; an inner corner of an eye; an outer corner of an eye; and a mouth; and
correcting the acquired movement amount using the estimated value.
13. A non-transitory computer-readable storage medium storing a program that causes a computer to perform:
acquiring a movement amount of a vehicle;
calculating, based on the movement amount of the vehicle, distances in a depth direction of objects detected as faces of passengers of the vehicle from an image of the vehicle; and
determining whether the detected objects include an object that has been erroneously detected, based on the distances in the depth direction of the objects.
14. The storage medium according to claim 13 , wherein the program causes the computer to perform:
calculating the distances in the depth direction of the objects based on the movement amount of the vehicle and two or more images which include objects, the two or more images being generated by imaging the vehicle two or more times.
15. The storage medium according to claim 13 , wherein the program causes the computer to perform:
determining that the detected objects include an object that has been erroneously detected when a distance in the depth direction between two or more detected objects out of the detected objects is shorter than a predetermined threshold value.
16. The storage medium according to claim 13 , wherein the program further causes the computer to perform:
determining a number obtained by subtracting the number of an erroneously-detected object from the number of the detected objects to be a number of passengers of the vehicle.
17. The storage medium according to claim 13 , wherein the program further causes the computer to perform:
acquiring the movement amount of the vehicle by calculating the movement amount based on change in a position of a specific part of the vehicle, the specific part being chosen from: a door knob; a door outer handle; a tire; a window frame; a door; a tail lamp, a door mirror; a side mirror; a license plate; and a light of the vehicle.
18. The storage medium according to claim 13 , wherein the program further causes the computer to perform:
estimating a value indicating an error of the acquired movement amount based on positions of specific parts of a face of a person in the vehicle, the specific parts being selected from: a nose; an inner corner of an eye; an outer corner of an eye; and a mouth; and
correcting the acquired movement amount using the estimated value.