Method for calculating number of people in space, method for triggering operation and electronic system

By establishing a detection area in the room and using microwave sensors to monitor the location of personnel in real time, the problem of the existing technology being unable to accurately understand the number of people in the room is solved, and automatic counting of people and intelligent adjustment is achieved.

CN119904939APending Publication Date: 2025-04-29WUHAN GROM INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411900773.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The prior art cannot accurately and automatically know the number of people in the room, making it difficult to achieve intelligent and automated adjustments.

Method used

By pre-establishing the detection area of ​​the corresponding passage port in the space, using microwave sensors to receive and analyze the microwave signals of the personnel in real time, positioning the position coordinates of the personnel, and adjusting the count of the number of people in the space according to the direction of the personnel entering and leaving the detection area.

Benefits of technology

It realizes accurate and automatic identification of the number of people in the space, and improves the ability of intelligent and automated adjustment, such as automatically adjusting the air volume of the fresh air system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904939A_ABST
    Figure CN119904939A_ABST
Patent Text Reader

Abstract

The invention discloses a method for calculating the number of people in a space, a method for triggering operation and an electronic system. The method for calculating the number of people in the space comprises the following steps: establishing a detection area corresponding to a passing port in the space in advance; defining a passing port direction of the detection area and other directions except the passing port direction; receiving the input number of people in the current space; when it is detected that one person enters the detection area from other directions, the number of persons in the space is reduced by one; and when detecting that one person exits from other directions in the detection area, adding one to the number of persons in the space. According to the invention, the number of people in the space can be accurately and automatically obtained, and intelligence is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent technology, and in particular to a method for calculating the number of people in a space, a method for triggering an operation, and an electronic system. Background Art

[0002] As people's quality of life improves, requirements are put forward for applications such as smart homes and smart hotels. For example, in smart hotel applications, the number of people in the room is provided to carry out smart hotel control and energy consumption management. Another example is the fresh air system that transports fresh air from outdoors into the room through air ducts, and at the same time exhausts the dirty air in the room to the outside through air ducts. It would be more humane if the amount of fresh air transported could be automatically adjusted according to the number of people active in the room. However, it is currently impossible to accurately and automatically know the number of people in the room to achieve intelligent and automatic adjustment. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method for calculating the number of people in a space, a method for triggering operation and an electronic system for at least one defect of the related technology mentioned in the above background technology: the related technology cannot accurately and automatically obtain the number of people in the room.

[0004] The technical solution adopted by the present invention to solve the technical problem is: construct a method for calculating the number of people in a space, the method comprising the following steps:

[0005] Establish detection areas corresponding to the passages in the space in advance;

[0006] Define the entrance direction and other directions except the entrance direction of the detection area;

[0007] Receive the input number of people in the current space;

[0008] When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one;

[0009] When a person is detected exiting from the detection area in other directions, the number of people in the space increases by one.

[0010] In some embodiments, a detection area corresponding to a passage is pre-established in the space, including:

[0011] Microwaves are emitted in advance to the ground in the space through the transmitting antenna of the microwave sensor to establish a detection area located just in front of and close to the passage.

[0012] In some embodiments, the longitudinal length of the space entrance and exit on at least one other direction side is smaller than the longitudinal length of the boundary line of the detection area on the corresponding side, and the transverse center line of the space entrance and exit on at least one other direction side coincides with the transverse center line of the detection area.

[0013] In some embodiments, the lateral length of the passage is smaller than the lateral length of the boundary line of the detection area on the passage direction side, and the vertical center line of the passage coincides with the vertical center line of the detection area.

[0014] In some embodiments, when the detection area is rectangular, directions other than the direction of the passage in the detection area include a first direction, a second direction, and a third direction. The direction of the passage is opposite to the first direction, and the second direction is opposite to the third direction.

[0015] In some embodiments, detecting that a person enters the detection area from other directions includes:

[0016] The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to other directions of the detection area;

[0017] Detection of a person exiting the detection area from other directions, including:

[0018] The microwave sensor's receiving antenna receives and analyzes the microwave signals reflected from each person in the detection area in real time, locates and tracks the position coordinates of each person in the detection area, and locates and tracks a person's position coordinates close to other directions of the detection area and eventually disappears.

[0019] In some embodiments, the method further comprises:

[0020] When a person is detected entering the detection area from the direction of the entrance and exiting from the detection area from other directions, the number of people in the space increases by one.

[0021] In some embodiments, detecting that a person enters the detection area from the direction of the entrance includes:

[0022] The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to the direction of the entrance of the detection area.

[0023] The present invention also constructs a method for triggering an operation, the method comprising the following steps:

[0024] Establish detection areas corresponding to the passages in the space in advance;

[0025] Define the entrance direction and other directions except the entrance direction of the detection area;

[0026] Receive the input number of people in the current space;

[0027] When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one;

[0028] When a person is detected exiting from the detection area in other directions, the number of people in the space increases by one;

[0029] Trigger corresponding actions in real time based on the number of people in the space.

[0030] The present invention also constructs an electronic system, including a processor and a microwave sensor; the processor is used to implement the method for calculating the number of people in a space as described in any of the above items, or to implement the method for triggering the operation.

[0031] By implementing the present invention, the following beneficial effects are achieved:

[0032] The present invention establishes a detection area corresponding to a passage in the space in advance, defines the passage direction and other directions except the passage direction of the detection area, and then receives the input of the number of people in the current space. When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one, and when a person is detected exiting the detection area from other directions, the number of people in the space is increased by one. In this way, the number of people in the space can be accurately and automatically known, thereby improving intelligence. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0034] Figure 1 A flow chart showing an embodiment of a method for calculating the number of people in a space of the present invention;

[0035] Figure 2 A logical structure diagram of a space in an embodiment of a method for calculating the number of people in a space of the present invention is shown;

[0036] Figure 3 A flow chart of an embodiment of a method for triggering an operation of the present invention is shown;

[0037] Figure 4 A logical structure diagram of an embodiment of the electronic system of the present invention is shown. DETAILED DESCRIPTION

[0038] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

[0039] It should be noted that the flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0040] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0041] like Figure 1 and Figure 2 As shown, some embodiments of the present invention disclose a method for calculating the number of people in a space, the method comprising the following steps:

[0042] Establish detection areas corresponding to the passages in the space in advance;

[0043] Define the entrance direction and other directions except the entrance direction of the detection area;

[0044] When there are people in the space, the number of people in the current space is received, for example, input by a service staff in the background, manual or voice input by the occupants, etc.;

[0045] When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one;

[0046] When a person is detected exiting from the detection area in other directions, the number of people in the space increases by one.

[0047] By implementing the method for calculating the number of people in a space of this embodiment, the number of people in the space can be accurately and automatically known, thereby improving intelligence. For example, if the space is a room, and the detection area is the area that people must pass through when leaving the room, when a person is detected entering the detection area from another direction, it indicates that someone wants to leave the room. At this time, the processor determines that the person has left the room, and the number of people is reduced by one. Then, when a person is detected exiting the detection area from another direction, it indicates that someone wants to return to the room or go to other places such as the bathroom. At this time, the processor determines that the person has returned to the room, and the number of people is increased by one.

[0048] In some embodiments, a detection area corresponding to a passage is pre-established in the space, specifically including:

[0049] Microwaves are transmitted to the ground in the space through the transmitting antenna of the microwave sensor in advance to establish a detection area located in front of and close to the passage. The microwave sensor includes at least one transmitting antenna and at least one receiving antenna. It can be understood that the at least one antenna can be one, two, three or any number.

[0050] In some embodiments, Figure 2 As shown, when the detection area is a rectangle, the other directions in the detection area except the direction of the passage include the first direction a, the second direction b and the third direction c. The direction of the passage is opposite to the first direction a, and the second direction b is opposite to the third direction c. For example, taking the direction of people going out as an example, the direction of the passage is up, the first direction a is down, the second direction b is left, and the third direction c is right. The lower part of the detection area is the living room, the left part is the toilet, and the right part is the cloakroom. The rectangle, up, down, left, and right here are only examples and are not intended to limit the present application. Other specific directions are also possible.

[0051] In some embodiments, when there are space entrances and exits on other sides, such as the entrance and exit of the toilet and the entrance and exit of the cloakroom, Figure 2 As shown, in order to reduce the error in judging the direction of people entering and exiting the detection area, the longitudinal length of the space entrance and exit on at least one other direction side is smaller than the longitudinal length of the boundary line of the detection area on the corresponding side, and the transverse center line of the space entrance and exit on at least one other direction side coincides with the transverse center line X of the detection area.

[0052] The lateral length of the passage is smaller than the lateral length of the boundary line of the detection area on the passage direction side, and the vertical center line of the passage coincides with the vertical center line Y of the detection area.

[0053] In addition, the boundary line of the space entrance and exit on at least one other direction side is aligned or overlapped with the boundary line of the detection area on the corresponding side, and the boundary line of the passage is aligned or overlapped with the boundary line of the detection area on the passage direction side. It can be understood that the at least one other direction can be one direction, two directions, three directions or other numbers among the other directions.

[0054] Exemplarily, when the detection area is rectangular, the longitudinal length of the space inlet and outlet on the second direction b and / or the third direction c side is less than the longitudinal length of the boundary line of the detection area on the second direction b and / or the third direction c side, and the transverse center line of the space inlet and outlet on the second direction b and / or the third direction c side coincides with the transverse center line X of the detection area. The boundary line of the space inlet and outlet on the second direction b and / or the third direction c side fits or coincides with the boundary line of the detection area on the second direction b and / or the third direction c side.

[0055] In some embodiments, detecting that a person enters the detection area from other directions specifically includes:

[0056] The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to other directions of the detection area.

[0057] In some embodiments, determining that the initial position coordinates of the person are close to other directions of the detection area specifically includes:

[0058] It is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the other direction side is less than the preset distance threshold. For example, the preset distance threshold is 30cm. If it is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the first direction a side is 20cm, the distance between the initial position coordinates of the person and the boundary line of the detection area on the second direction b side is 40cm, and the distance between the initial position coordinates of the person and the boundary line of the detection area on the third direction c side is 60cm, then it is determined that the initial position coordinates of the person are close to the first direction a of the detection area, and the person enters the detection area from the first direction a. Subsequently, the movement of the person in the detection area will be continuously located and tracked, and all position coordinates, including the initial position coordinates, will be recorded.

[0059] In some embodiments, detecting that a person exits the detection area from other directions specifically includes:

[0060] The microwave sensor's receiving antenna receives and analyzes the microwave signals reflected from each person in the detection area in real time, locates and tracks the position coordinates of each person in the detection area, and locates and tracks a person's position coordinates close to other directions of the detection area and eventually disappears.

[0061] In some embodiments, the location coordinates of a person tracked by positioning are close to other directions of the detection area and eventually disappear, specifically including:

[0062] The distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the other direction side is less than the preset distance threshold and the position coordinates eventually disappear. For example, the preset distance threshold is 30cm. If the distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the second direction b side is 20cm, the distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the first direction a side is 40cm, and the distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the third direction c side is 80cm, then the position coordinates of a person tracked by positioning are close to the second direction b of the detection area. When the position coordinates finally disappear, it is determined that the person exits the detection area from the second direction b.

[0063] It should be noted that in order to better and more accurately determine the direction in which a person enters or exits the detection area, the preset distance threshold may be set as small as possible.

[0064] In some embodiments, the method further comprises:

[0065] When a person is detected entering the detection area from the direction of the entrance and exiting from the detection area from other directions, the number of people in the space increases by one.

[0066] Accordingly, when it is detected that a person enters the detection area from the direction of the entrance and exits from the direction of the entrance within the detection area, the number of people in the space does not increase or decrease.

[0067] In some embodiments, detecting that a person enters the detection area from the direction of the passage specifically includes:

[0068] The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to the direction of the entrance of the detection area.

[0069] In some embodiments, determining that the initial position coordinates of the person are close to the direction of the entrance of the detection area specifically includes:

[0070] It is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the side of the passage is less than the preset distance threshold. For example, if the preset distance threshold is 30cm, if it is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the side of the passage is 20cm, it is considered that the person entered the detection area from the direction of the passage, that is, entered the door, and the person's movement in the detection area will be continuously located and tracked, and all position coordinates, including the initial position coordinates, will be recorded.

[0071] In some embodiments, detecting that a person exits from a direction of a passage in a detection area specifically includes:

[0072] The microwave sensor's receiving antenna receives and analyzes the microwave signals reflected from each person in the detection area in real time, locates and tracks the position coordinates of each person in the detection area, and locates and tracks the position coordinates of a person close to the entrance of the detection area and eventually disappears.

[0073] In some embodiments, the location coordinates of a person tracked are close to the direction of the entrance of the detection area and eventually disappear, specifically including:

[0074] The distance between the position coordinates of a person tracked by the positioning and the boundary line of the detection area on the side of the passage is less than the preset distance threshold and the position coordinates eventually disappear. For example, if the preset distance threshold is 30cm, if the distance between the position coordinates of a person tracked by the positioning and the boundary line of the detection area on the side of the passage is 20cm, the position coordinates of a person tracked by the positioning are close to the passage direction of the detection area, and when the position coordinates eventually disappear, it is determined that the person exited the detection area from the passage direction.

[0075] like Figure 2 and Figure 3 As shown, some embodiments of the present invention also disclose a method for triggering an operation, the method comprising the following steps:

[0076] Establish detection areas corresponding to the passages in the space in advance;

[0077] Define the entrance direction and other directions except the entrance direction of the detection area;

[0078] When there are people in the space, the number of people in the current space is received, for example, input by a service staff in the background, manual or voice input by the occupants, etc.;

[0079] When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one;

[0080] When a person is detected exiting from the detection area in other directions, the number of people in the space increases by one;

[0081] Trigger corresponding actions in real time based on the number of people in the space.

[0082] In some embodiments, the operation may be a reminder operation, and when the number of people in the space reaches a threshold, the background may be reminded.

[0083] In some embodiments, the operation may be an adjustment operation of a home appliance to realize intelligent and automatic adjustment of the home appliance. For example, if the home appliance is an air conditioner, the adjustment operation of the air conditioner temperature and air volume may be triggered in real time according to the number of people in the space.

[0084] In some embodiments, a detection area corresponding to a passage is pre-established in the space, specifically including:

[0085] Microwaves are transmitted to the ground in the space through the transmitting antenna of the microwave sensor in advance to establish a detection area located in front of and close to the passage. The microwave sensor includes at least one transmitting antenna and at least one receiving antenna. It can be understood that the at least one antenna can be one, two, three or any number.

[0086] In some embodiments, Figure 2As shown, when the detection area is a rectangle, the other directions in the detection area except the direction of the passage include the first direction a, the second direction b and the third direction c. The direction of the passage is opposite to the first direction a, and the second direction b is opposite to the third direction c. For example, taking the direction of people going out as an example, the direction of the passage is up, the first direction a is down, the second direction b is left, and the third direction c is right. The lower part of the detection area is the living room, the left part is the toilet, and the right part is the cloakroom. The rectangle, up, down, left, and right are only examples and are not intended to limit the present application. Other specific directions are also possible.

[0087] In some embodiments, when there are space entrances and exits on other sides, such as the entrance and exit of the toilet and the entrance and exit of the cloakroom, Figure 2 As shown, in order to reduce the error in judging the direction of people entering and exiting the detection area, the longitudinal length of the space entrance and exit on at least one other direction side is smaller than the longitudinal length of the boundary line of the detection area on the corresponding side, and the transverse center line of the space entrance and exit on at least one other direction side coincides with the transverse center line X of the detection area.

[0088] The lateral length of the passage is smaller than the lateral length of the boundary line of the detection area on the passage direction side, and the vertical center line of the passage coincides with the vertical center line Y of the detection area.

[0089] In addition, the boundary line of the space entrance and exit on at least one other direction side is aligned or overlapped with the boundary line of the detection area on the corresponding side, and the boundary line of the passage is aligned or overlapped with the boundary line of the detection area on the passage direction side. It can be understood that the at least one other direction can be one direction, two directions, three directions or other numbers among the other directions.

[0090] Exemplarily, when the detection area is rectangular, the longitudinal length of the space inlet and outlet on the second direction b and / or the third direction c side is less than the longitudinal length of the boundary line of the detection area on the second direction b and / or the third direction c side, and the transverse center line of the space inlet and outlet on the second direction b and / or the third direction c side coincides with the transverse center line X of the detection area. The boundary line of the space inlet and outlet on the second direction b and / or the third direction c side fits or coincides with the boundary line of the detection area on the second direction b and / or the third direction c side.

[0091] In some embodiments, detecting that a person enters the detection area from other directions specifically includes:

[0092] The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to other directions of the detection area.

[0093] In some embodiments, determining that the initial position coordinates of the person are close to other directions of the detection area specifically includes:

[0094] It is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the other direction side is less than the preset distance threshold. For example, the preset distance threshold is 30cm. If it is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the first direction a side is 20cm, the distance between the initial position coordinates of the person and the boundary line of the detection area on the second direction b side is 40cm, and the distance between the initial position coordinates of the person and the boundary line of the detection area on the third direction c side is 60cm, then it is determined that the initial position coordinates of the person are close to the first direction a of the detection area, and the person enters the detection area from the first direction a. Subsequently, the movement of the person in the detection area will be continuously located and tracked, and all position coordinates, including the initial position coordinates, will be recorded.

[0095] In some embodiments, detecting that a person exits the detection area from other directions specifically includes:

[0096] The microwave sensor's receiving antenna receives and analyzes the microwave signals reflected from each person in the detection area in real time, locates and tracks the position coordinates of each person in the detection area, and locates and tracks a person's position coordinates close to other directions of the detection area and eventually disappears.

[0097] In some embodiments, the location coordinates of a person tracked by positioning are close to other directions of the detection area and eventually disappear, specifically including:

[0098] The distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the other direction side is less than the preset distance threshold and the position coordinates eventually disappear. For example, the preset distance threshold is 30cm. If the distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the second direction b side is 20cm, the distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the first direction a side is 40cm, and the distance between the position coordinates of a person tracked by positioning and the boundary line of the detection area on the third direction c side is 80cm, then the position coordinates of a person tracked by positioning are close to the second direction b of the detection area. When the position coordinates finally disappear, it is determined that the person exits the detection area from the second direction b.

[0099] It should be noted that in order to better and more accurately determine the direction in which a person enters or exits the detection area, the preset distance threshold may be set as small as possible.

[0100] In some embodiments, the method further comprises:

[0101] When a person is detected entering the detection area from the direction of the entrance and exiting from the detection area from other directions, the number of people in the space increases by one.

[0102] Accordingly, when it is detected that a person enters the detection area from the direction of the entrance and exits from the direction of the entrance within the detection area, the number of people in the space does not increase or decrease.

[0103] In some embodiments, detecting that a person enters the detection area from the direction of the passage specifically includes:

[0104] The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to the direction of the entrance of the detection area.

[0105] In some embodiments, determining that the initial position coordinates of the person are close to the direction of the entrance of the detection area specifically includes:

[0106] It is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the side of the passage is less than the preset distance threshold. For example, if the preset distance threshold is 30cm, if it is determined that the distance between the initial position coordinates of the person and the boundary line of the detection area on the side of the passage is 20cm, it is considered that the person entered the detection area from the direction of the passage, that is, entered the door, and the person's movement in the detection area will be continuously located and tracked, and all position coordinates, including the initial position coordinates, will be recorded.

[0107] In some embodiments, detecting that a person exits from a direction of a passage in a detection area specifically includes:

[0108] The microwave sensor's receiving antenna receives and analyzes the microwave signals reflected from each person in the detection area in real time, locates and tracks the position coordinates of each person in the detection area, and locates and tracks the position coordinates of a person close to the entrance of the detection area and eventually disappears.

[0109] In some embodiments, the location coordinates of a person tracked are close to the direction of the entrance of the detection area and eventually disappear, specifically including:

[0110] The distance between the position coordinates of a person tracked by the positioning and the boundary line of the detection area on the side of the passage is less than the preset distance threshold and the position coordinates eventually disappear. For example, if the preset distance threshold is 30cm, if the distance between the position coordinates of a person tracked by the positioning and the boundary line of the detection area on the side of the passage is 20cm, the position coordinates of a person tracked by the positioning are close to the passage direction of the detection area, and when the position coordinates eventually disappear, it is determined that the person exited the detection area from the passage direction.

[0111] like Figure 4As shown, some embodiments of the present invention further disclose an electronic system, including a processor and a microwave sensor, such as a 60G microwave sensor, which includes at least one receiving antenna and at least one transmitting antenna. The 60G microwave sensor here is only an example and is not intended to limit the present application. It can also be other.

[0112] The processor is used to implement the method for calculating the number of people in the space as described in the above embodiment, or to implement the method for triggering the operation as described in the above embodiment, which will not be described in detail here.

[0113] By implementing the present invention, the following beneficial effects are achieved:

[0114] The present invention establishes a detection area corresponding to a passage in the space in advance, defines the passage direction and other directions except the passage direction of the detection area, and then receives the input of the number of people in the current space. When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one, and when a person is detected exiting the detection area from other directions, the number of people in the space is increased by one. In this way, the number of people in the space can be accurately and automatically known, thereby improving intelligence.

[0115] It is understandable that the above embodiments only express some implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the patent scope of the present invention. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present invention, the above embodiments or technical features can be freely combined, and several deformations and improvements can be made, which all belong to the protection scope of the present invention, that is, the embodiments described in "some embodiments" can be freely combined with any of the above and below embodiments. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the scope of the claims of the present invention.

Claims

1. A method for calculating the number of people in a space, characterized in that: The method comprises the following steps: Establish detection areas corresponding to the passages in the space in advance; Define the entrance direction and other directions except the entrance direction of the detection area; Receive the input number of people in the current space; When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one; When a person is detected exiting from the detection area in other directions, the number of people in the space increases by one.

2. The method for calculating the number of people in a space according to claim 1, characterized in that: Establish detection areas corresponding to the passages in the space in advance, including: Microwaves are emitted in advance to the ground in the space through the transmitting antenna of the microwave sensor to establish a detection area located just in front of and close to the passage.

3. The method for calculating the number of people in a space according to claim 1, characterized in that: The longitudinal length of the space entrance and exit on at least one other direction side is smaller than the longitudinal length of the boundary line of the detection area on the corresponding side, and the transverse center line of the space entrance and exit on at least one other direction side coincides with the transverse center line of the detection area.

4. The method for calculating the number of people in a space according to claim 1, characterized in that: The lateral length of the passage is smaller than the lateral length of the boundary line of the detection area on the passage direction side, and the vertical center line of the passage coincides with the vertical center line of the detection area.

5. The method for calculating the number of people in a space according to claim 1, characterized in that: When the detection area is rectangular, directions other than the direction of the passage in the detection area include a first direction, a second direction and a third direction. The direction of the passage is opposite to the first direction, and the second direction is opposite to the third direction.

6. The method for calculating the number of people in a space according to claim 1, characterized in that: Detects a person entering the detection area from other directions, including: The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to other directions of the detection area; Detection of a person exiting the detection area from other directions, including: The microwave sensor's receiving antenna receives and analyzes the microwave signals reflected from each person in the detection area in real time, locates and tracks the position coordinates of each person in the detection area, and locates and tracks a person's position coordinates close to other directions of the detection area and eventually disappears.

7. The method for calculating the number of people in a space according to claim 1, characterized in that: The method further includes: When a person is detected entering the detection area from the direction of the entrance and exiting from the detection area from other directions, the number of people in the space increases by one.

8. The method for calculating the number of people in a space according to claim 7, characterized in that: Detection of a person entering the detection area from the entrance direction, including: The microwave sensor receives and analyzes the microwave signal reflected by a person in real time through the receiving antenna of the microwave sensor, locates the initial position coordinates of the person, and determines whether the initial position coordinates of the person are close to the direction of the entrance of the detection area.

9. A method for triggering an operation, characterized in that: The method comprises the following steps: Establish detection areas corresponding to the passages in the space in advance; Define the entrance direction and other directions except the entrance direction of the detection area; Receive the input number of people in the current space; When a person is detected entering the detection area from other directions, the number of people in the space is reduced by one; When a person is detected exiting from the detection area in other directions, the number of people in the space increases by one; Trigger corresponding actions in real time based on the number of people in the space.

10. An electronic system, characterized in that: It comprises a processor and a microwave sensor; the processor is used to implement the method for calculating the number of people in a space as described in any one of claims 1 to 8, or to implement the method for triggering an operation as described in claim 9.