IP Library › Granted Patent US 12,488,600
Granted Patent B2
US 12,488,600 · App. 18/144,769 · Granted Dec 2, 2025

Method of determining degree of congestion of compartment, electronic device and storage medium

Inventors: Yu-Kai Zhou (New Taipei, TW); Chin-Pin Kuo (New Taipei, TW)
Assignee: HON HAI PRECISION INDUSTRY CO., LTD.
G06V20/593G06V10/467G06V10/751G06V40/10
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,488,600
App. No.
18/144,769
Granted
Dec 2, 2025
Kind
B2
Abstract

A method of determining a congestion degree of a compartment applied to an electronic device is provided. The electronic device determines a remaining carrying space of the compartment according to a binarized passenger distribution image of the compartment. A predicted remaining number of passengers that can be carried in the compartment is determined according to the remaining carrying space. The electronic device determines a recommended remaining number of passengers that can be carried in the compartment based on a number of passengers currently in the compartment, the predicted remaining number of passengers, and a maximum number of passengers that can be carried in the compartment. The electronic device can determine the degree of congestion of the compartment according to the recommended remaining number of passengers that can be carried in the compartment and the maximum number of passengers that can be carried in the compartment.

Claims (54)

1 . A method for determining a degree of congestion of a compartment applied to an electronic device, the method comprising:

obtaining a binarized passenger distribution image by performing a binarization processing on a passenger distribution image of the compartment, comprising: setting a pixel value of each of pixel points in each of a plurality of first areas in the passenger distribution image to be a first pixel value, a temperature value of each of the plurality of first areas being greater than or equal to a preset temperature threshold; and setting a pixel value of each of pixel points in each of a plurality of second areas in the passenger distribution image to be a second pixel value, a temperature value of each of the plurality of second areas being less than the preset temperature threshold;

determining a remaining carrying space of the compartment according to the binarized passenger distribution image, comprising: determining a plurality of occupied areas by taking each area corresponding to the first pixel value in the passenger distribution image as an occupied area, and taking an area corresponding to the second pixel value in the passenger distribution image as a blank area; obtaining a target blank area outside the plurality of occupied areas by updating the plurality of occupied areas; and determining a total area of the target blank area as the remaining carrying space;

determining a predicted remaining number of passengers that can be carried in the compartment according to the remaining carrying space;

determining a recommended remaining number of passengers that can be carried in the compartment based on a number of passengers currently in the compartment, the predicted remaining number of passengers, and a maximum number of passengers that can be carried in the compartment; and

determining the degree of congestion of the compartment according to the recommended remaining number of passengers that can be carried in the compartment and the maximum number of passengers that can be carried in the compartment.

2 . The method according to claim 1 , wherein the passenger distribution image of the compartment is an infrared thermal image.

3 . The method according to claim 2 , wherein the performing of the binarization processing on the passenger distribution image of the compartment further comprises:

setting a pixel value of each of pixel points at a wall panel of the compartment in the passenger distribution image to the first pixel value, and setting a pixel value of each of pixel points at a door of the compartment in the passenger distribution image to the second pixel value.

4 . The method according to claim 3 , wherein the updating of the plurality of occupied areas comprises:

determining a distance between the wall panel of the compartment and any one occupied area of the plurality of occupied areas except an area corresponding to the wall panel;

in response that the distance is less than a preset distance threshold, updating an area between the any one occupied area and the wall panel of the compartment to be an occupied area;

determining an enclosing area surrounded by one or more occupied areas, and updating the enclosing area to be an occupied area when an area of the enclosing area is smaller than a preset area threshold.

5 . The method according to claim 1 , wherein the determining of the predicted remaining number of passengers that can be carried in the compartment according to the remaining carrying space comprises:

setting the predicted remaining number of passengers being proportional to the remaining carrying space

wherein the determining of the recommended remaining number of passengers that can be carried in the compartment is performed according to a formula: N1=(N2−N3+N4)/2, wherein, N1 represents the recommended remaining number of passengers, N2 represents the maximum number of passengers that can be carried in the compartment, N3 represents the number of passengers currently in the compartment, and N4 represents the predicted remaining number of passengers that can be carried in the compartment.

6 . The method according to claim 1 , further comprising:

detecting a number of passengers getting on the compartment at each station and detecting a number of passengers getting off the compartment at each station; and

determining the number of passengers currently in the compartment according to the number of passengers getting on the compartment and the number of passengers getting off the compartment at each station.

7 . The method according to claim 1 , further comprising:

displaying the recommended remaining number of passengers that can be carried in the compartment and displaying the degree of congestion.

8 . An electronic device comprising:

a storage device;

at least one processor; and

the storage device storing one or more programs, which when executed by the at least one processor, cause the at least one processor to:

obtain a binarized passenger distribution image by performing a binarization processing on a passenger distribution image of the compartment, comprising: setting a pixel value of each of pixel points in each of a plurality of first areas in the passenger distribution image to be a first pixel value, a temperature value of each of the plurality of first areas being greater than or equal to a preset temperature threshold; and setting a pixel value of each of pixel points in each of a plurality of second areas in the passenger distribution image to be a second pixel value, a temperature value of each of the plurality of second areas being less than the preset temperature threshold;

determine a remaining carrying space of the compartment according to the binarized passenger distribution image, comprising: determining a plurality of occupied areas by taking each area corresponding to the first pixel value in the passenger distribution image as an occupied area, and taking an area corresponding to the second pixel value in the passenger distribution image as a blank area; obtaining a target blank area outside the plurality of occupied areas by updating the plurality of occupied areas; and determining a total area of the target blank area as the remaining carrying space;

determine a predicted remaining number of passengers that can be carried in the compartment according to the remaining carrying space;

determine a recommended remaining number of passengers that can be carried in the compartment based on a number of passengers currently in the compartment, the predicted remaining number of passengers, and a maximum number of passengers that can be carried in the compartment; and

determine the degree of congestion of the compartment according to the recommended remaining number of passengers that can be carried in the compartment and the maximum number of passengers that can be carried in the compartment.

9 . The electronic device according to claim 8 , wherein the passenger distribution image of the compartment is an infrared thermal image.

10 . The electronic device according to claim 9 , wherein the at least one processor performs the binarization processing on the passenger distribution image of the compartment further by:

setting a pixel value of each of pixel points at a wall panel of the compartment in the passenger distribution image to the first pixel value, and setting a pixel value of each of pixel points at a door of the compartment in the passenger distribution image to the second pixel value.

11 . The electronic device according to claim 10 , wherein the at least one processor updates the plurality of occupied areas by:

determining a distance between the wall panel of the compartment and any one occupied area of the plurality of occupied areas except an area corresponding to the wall panel;

in response that the distance is less than a preset distance threshold, updating an area between the any one occupied area and the wall panel of the compartment to be an occupied area;

determining an enclosing area surrounded by one or more occupied areas, and updating the enclosing area to be an occupied area when an area of the enclosing area is smaller than a preset area threshold.

12 . The electronic device according to claim 8 , wherein the at least one processor determines the predicted remaining number of passengers that can be carried in the compartment according to the remaining carrying space by:

setting the predicted remaining number of passengers being proportional to the remaining carrying space

wherein the determining of the recommended remaining number of passengers that can be carried in the compartment is performed according to a formula: N1=(N2−N3+N4)/2, wherein, N1 represents the recommended remaining number of passengers, N2 represents the maximum number of passengers that can be carried in the compartment, N3 represents the number of passengers currently in the compartment, and N4 represents the predicted remaining number of passengers that can be carried in the compartment.

13 . The electronic device according to claim 8 , wherein the at least one processor is further caused to:

detect a number of passengers getting on the compartment at each station and detect a number of passengers getting off the compartment at each station; and

determine the number of passengers currently in the compartment according to the number of passengers getting on the compartment and the number of passengers getting off the compartment at each station.

14 . The electronic device according to claim 8 , wherein the at least one processor is further caused to:

display the recommended remaining number of passengers that can be carried in the compartment and displaying the degree of congestion.

15 . A non-transitory storage medium having instructions stored thereon, when the instructions are executed by a processor of an electronic device, the processor is caused to perform a method of determining a degree of congestion of a compartment, wherein the method comprises:

obtaining a binarized passenger distribution image by performing a binarization processing on a passenger distribution image of the compartment, comprising: setting a pixel value of each of pixel points in each of a plurality of first areas in the passenger distribution image to be a first pixel value, a temperature value of each of the plurality of first areas being greater than or equal to a preset temperature threshold; and setting a pixel value of each of pixel points in each of a plurality of second areas in the passenger distribution image to be a second pixel value, a temperature value of each of the plurality of second areas being less than the preset temperature threshold;

determining a remaining carrying space of the compartment according to the binarized passenger distribution image, comprising: determining a plurality of occupied areas by taking each area corresponding to the first pixel value in the passenger distribution image as an occupied area, and taking an area corresponding to the second pixel value in the passenger distribution image as a blank area; obtaining a target blank area outside the plurality of occupied areas by updating the plurality of occupied areas; and determining a total area of the target blank area as the remaining carrying space;

determining a predicted remaining number of passengers that can be carried in the compartment according to the remaining carrying space;

determining a recommended remaining number of passengers that can be carried in the compartment based on a number of passengers currently in the compartment, the predicted remaining number of passengers, and a maximum number of passengers that can be carried in the compartment; and

determining the degree of congestion of the compartment according to the recommended remaining number of passengers that can be carried in the compartment and the maximum number of passengers that can be carried in the compartment.

16 . The non-transitory storage medium according to claim 15 , wherein the passenger distribution image of the compartment is an infrared thermal image.

17 . The non-transitory storage medium according to claim 16 , wherein the performing of the binarization processing on the passenger distribution image of the compartment further comprises:

setting a pixel value of each of pixel points at a wall panel of the compartment in the passenger distribution image to the first pixel value, and setting a pixel value of each of pixel points at a door of the compartment in the passenger distribution image to the second pixel value.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 9, 2023
From: ZHOU, YU-KAI; KUO, CHIN-PIN
To: HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 063587/0446 →
Priority Claims (1)
CN 202211529899.7 · Nov 30, 2022 · national
Continuity (1)
Related Publication 20240177502A1 · May 30, 2024
References Cited (8)
US 11631259B2 · Burzo · 2023 [cited by examiner]
US 20220391717A1 · Liu · 2022 [cited by examiner]
US 20230110200A1 · Uchiyama · 2023 [cited by examiner]
US 20230196221A1 · Kuwahara · 2023 [cited by examiner]
CN 105564461 · 2016 [cited by applicant]
CN 113505671 · 2021 [cited by applicant]
CN 113505671A · 2021 [cited by examiner]
EP 4332626A1 · 2024 [cited by examiner]