Room management method and apparatus, and electronic device

By deploying LiDAR at the room entrance, user entry and exit information can be identified and the number of users can be determined, thus solving the accuracy problem of intelligent room management and realizing dynamic equipment control and energy consumption optimization.

CN122335962APending Publication Date: 2026-07-03SHANGHAI HANZHONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI HANZHONG TECH CO LTD
Filing Date
2026-03-09
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately identify the number of people in a room without infringing on privacy, resulting in low accuracy in intelligent room management.

Method used

By deploying LiDAR at the room entrance, information on users entering and exiting the room in a preset three-dimensional space is obtained. The radar point cloud data is used to identify the direction of user movement and counting information, dynamically monitor the number of users, and determine the number of users in the room by combining the initial number of users and the entry and exit information. Based on the number of users, the corresponding control mode is selected.

Benefits of technology

It enables accurate identification of user numbers without covering the entire room, improving the accuracy and efficiency of room management, and dynamically adjusting equipment control strategies to optimize energy consumption and comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122335962A_ABST
    Figure CN122335962A_ABST
Patent Text Reader

Abstract

This invention discloses a room management method, device, and electronic device. The method includes: acquiring user entry and exit information within a preset three-dimensional space at the room entrance; determining the number of users inside the room based on the user entry and exit information; determining a target control mode from multiple preset control modes based on the number of users inside the room, wherein different numbers of users inside the room correspond to different preset control modes; and executing room management operations corresponding to the target control mode. This invention solves the technical problem of low accuracy in intelligent room management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automation technology, and more specifically, to a room management method, apparatus, and electronic device. Background Technology

[0002] In the field of intelligent room management, it is necessary to accurately identify the actual number of people in a room without infringing on privacy in order to achieve intelligent room management. Related technical solutions, such as using infrared sensors to identify users in a room, struggle to distinguish between stationary and moving users, lack the ability to count people, and are prone to missing detections due to users sitting still or sleeping, making it difficult to support the needs of intelligent room management.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This invention provides a room management method, apparatus, and electronic device to at least address the technical problem of low accuracy in intelligent room management.

[0005] According to one aspect of the present invention, a room management method is provided, comprising: acquiring user entry and exit information in a preset three-dimensional space at the room entrance; determining the number of users inside the room based on the user entry and exit information; determining a target control mode from a plurality of preset control modes based on the number of users inside the room, wherein different numbers of users inside the room correspond to different preset control modes; and performing a room management operation corresponding to the target control mode.

[0006] Furthermore, obtaining user entry and exit information within a preset three-dimensional space at the room entrance includes: obtaining user movement direction information within the preset three-dimensional space, and user movement count information corresponding to the user movement direction information, wherein the user movement direction information is used to represent whether the user enters or exits the room; and determining user entry and exit information based on the user movement direction information and the user movement count information.

[0007] Furthermore, acquiring user movement direction information within a preset three-dimensional space, as well as user movement count information corresponding to the user movement direction information, includes: using a lidar pre-installed at the room entrance to collect radar point cloud data within a preset three-dimensional space; and determining user movement direction information and user movement count information based on the radar point cloud data.

[0008] Furthermore, based on user entry and exit information, the number of users inside the room is determined, including: obtaining the initial number of users in the room; and determining the number of users inside the room based on the initial number of users and user entry and exit information.

[0009] Furthermore, the method also includes: in the case of a hotel room, in response to a user checking in, determining the initial number of users to be a preset number.

[0010] Furthermore, based on the initial number of users and user entry / exit information, the number of users inside the room is determined, including: responding to user movement direction information in the user entry / exit information to indicate that a user has entered the room, determining the number of users added inside the room based on user movement count information corresponding to the user movement direction information; responding to user movement direction information to indicate that a user has exited the room, determining the number of users removed inside the room based on user movement count information corresponding to the user movement direction information; and determining the total number of users inside the room based on the initial number of users, the number of users added inside the room, and the number of users removed inside the room.

[0011] Furthermore, based on the number of users in the room, a target control mode is determined from multiple preset control modes, including: based on the number of users in the room, determining a room energy-saving management mode corresponding to the number of users in the room from multiple preset control modes, wherein the room energy-saving management mode is used to represent a control mode for energy-saving management of at least one smart device in the room; and determining the target control mode based on the room energy-saving management mode.

[0012] Furthermore, the method also includes: when the room is a hotel room, obtaining the number of registered guests; determining the room security management mode based on the comparison between the number of users in the room and the number of registered guests; and determining the target control mode based on the room security management mode and the room energy-saving management mode.

[0013] According to another aspect of the present invention, a room management device is also provided, comprising: an acquisition module for acquiring user entry and exit information within a preset three-dimensional space at the room entrance; a first determination module for determining the number of users inside the room based on the user entry and exit information; a second determination module for determining a target control mode from a plurality of preset control modes based on the number of users inside the room, wherein different numbers of users inside the room correspond to different control modes; and an execution module for executing a room intelligent management operation corresponding to the target control mode.

[0014] According to another aspect of the present invention, an electronic device is also provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the program, when executed, implements the methods of various embodiments of the present application.

[0015] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.

[0016] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.

[0017] According to another aspect of the embodiments of this application, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.

[0018] According to another aspect of the embodiments of this application, a computer program is also provided, which, when executed by a processor, implements the methods of the various embodiments of this application.

[0019] In this embodiment of the invention, user entry and exit information within a preset three-dimensional space at the room entrance is acquired; based on the user entry and exit information, the number of users inside the room is determined; based on the number of users inside the room, a target control mode is determined from multiple preset control modes, wherein different numbers of users inside the room correspond to different preset control modes; and room management operations corresponding to the target control mode are executed. This embodiment of the application, by deploying a LiDAR at the room entrance and setting a preset three-dimensional space at the room entrance, identifies user movement trajectories and directions, and combines this with a counting method to count the number of people entering and exiting. This achieves the goal of dynamically monitoring the number of people in the room without needing to cover the entire room, requiring only a single-point deployment of LiDAR, thereby achieving the technical effect of effective room management and solving the technical problem of low accuracy in intelligent room management. Attached Figure Description

[0020] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0021] Figure 1 This is a flowchart of a room management method according to an embodiment of the present invention;

[0022] Figure 2 This is a schematic diagram of an optional lidar installation according to an embodiment of the present invention;

[0023] Figure 3 This is a schematic diagram of an optional room control logic according to an embodiment of the present invention;

[0024] Figure 4 This is a schematic diagram of an optional room management system according to an embodiment of the present invention;

[0025] Figure 5This is a schematic diagram of another optional room management system according to an embodiment of the present invention;

[0026] Figure 6 This is a schematic diagram of a room management device according to an embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] According to an embodiment of the present invention, an embodiment of a room management method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0030] Figure 1 This is a flowchart of a room management method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0031] Step S102: Obtain information on users entering and exiting the room within a preset three-dimensional space at the room entrance.

[0032] The aforementioned room entrance can refer to the door frame area and the surrounding defined physical space within the room. It is the only passageway for users to enter or leave the room, and the room entrance location has the characteristics of spatial enclosure and concentrated behavior.

[0033] The aforementioned preset three-dimensional space can refer to a three-dimensional spatial area with clear boundaries defined at the entrance of a room by software algorithms based on the detection field of view and effective ranging range of lidar.

[0034] The aforementioned user entry and exit information can refer to the point cloud data sequence obtained by continuous scanning of a preset three-dimensional space using LiDAR, and the information on the changing trend of the number of people, the direction of movement, and the trajectory of crossing after processing by an algorithm. This includes dynamic records of people entering the room from the outside and decrementing the count when they leave the room from the inside.

[0035] In one optional embodiment, at least one lidar is deployed within a pre-defined three-dimensional space at the entrance, aligning the lidar with the pedestrian path and covering the pre-defined three-dimensional space at the room entrance. The lidar periodically emits modulated infrared pulse signals and receives echo signals reflected from objects in the space, calculating the round-trip time of the light signals point by point to construct a continuous three-dimensional point cloud dataset. Spatial filtering and target clustering are performed on the point cloud dataset to identify moving targets conforming to human morphological characteristics. Further analysis of the user's movement trajectory in the three-dimensional coordinate system determines whether the user has crossed the boundary of the pre-defined three-dimensional space; if the trajectory direction is from the outside in, it is determined as "entering"; if from the inside out, it is determined as "leaving".

[0036] For example, when a user moves from the corridor toward the door, the lidar detects a continuous point cloud target moving from the outside to the inside through a preset three-dimensional space within a height range of 0.8 meters to 2.2 meters above the entrance. The room intelligent management system determines that the user has entered the room and increments the number of users in the room by 1.

[0037] When a user turns around inside the room and returns to the door, the lidar detects the same target moving from the inside out through a preset three-dimensional space, and the trajectory is opposite to the direction of entry. The room's intelligent management system determines that the user has left the room, and the number of users in the room is reduced by 1.

[0038] When two users enter the room one after the other, the lidar detects two independent point cloud targets passing through the preset three-dimensional space in sequence within 0.5 seconds. Based on the differences in the spatial distribution of the point cloud and the timing of the movement, the room's intelligent management system determines that two people have entered, and the number of users in the room increases by 2.

[0039] When a user carrying a suitcase passes through the doorway, the lidar detects that the vertical height difference between the user's body point cloud data and the suitcase point cloud data is greater than 0.4 meters and their movement trajectories are synchronized. The room's intelligent management system recognizes this as a single person carrying luggage, only incrementing the number of users in the room by 1, without misjudging it as two people.

[0040] When someone briefly stops outside the door and does not cross the preset three-dimensional space, the lidar detects the existence of point clouds, but does not trigger the entry / exit threshold judgment. The room intelligent management system does not update the number of users inside the room to avoid false counting.

[0041] This application embodiment obtains user entry and exit information within a preset three-dimensional space at the room entrance, thus achieving the goal of narrowing the information acquisition area and improving the accuracy of identifying the status of people entering and exiting the room by only needing to obtain user entry and exit information within a preset area at the room entrance.

[0042] Step S104: Determine the number of users inside the room based on user entry and exit information.

[0043] The number of users inside the room mentioned above can refer to the total number of people currently inside the room, calculated based on the cumulative changes in user entry and exit information. The value is the algebraic difference between the total number of people entering the room and the total number of people leaving the room.

[0044] In one optional embodiment, in response to user entry / exit information, a corresponding increment / decrement operation is performed on the user counter in the room. When the user entry / exit information indicates that a user has entered the room, the current value of the counter is incremented by one; when the user entry / exit information indicates that a user has left the room, the current value of the counter is decremented by one. The initial value of the counter is set to zero based on the initial state of the room.

[0045] For example, the initial number of users in the room is 0. When the room's intelligent management system detects the first user crossing the preset three-dimensional space from the outside, the number of users in the room is updated to 1.

[0046] If a second user subsequently enters the room and traverses the preset three-dimensional space, the number of users in the room is updated from 1 to 2.

[0047] If one user who has entered the room leaves and moves outward through the preset three-dimensional space, the number of users in the room decreases from 2 to 1.

[0048] If there are 2 users in the room, and the room's intelligent management system detects that two users are moving outwards at the same time and passing through the preset three-dimensional space in sequence, the number of users in the room will decrease by 2 continuously until it reaches zero.

[0049] If there is only 1 user in the room, and the system detects that the same user repeatedly enters and exits the fenced area (e.g., to retrieve an item), and the time interval between the two crossings is less than 1.5 seconds, the room intelligent management system will determine it as an invalid round trip, and the number of users in the room will remain unchanged.

[0050] If the number of users inside the room is 0, the room intelligent management system detects that the point cloud data outside the room stays at the door for a long time but does not cross the preset three-dimensional space, so the number of users inside the room remains 0 and does not trigger false counting.

[0051] This application embodiment determines the number of users in a room by using user entry and exit information. By using user entry and exit information, it achieves high-precision, low-latency, and interference-resistant dynamic quantification of the real-time number of people in a room, improving the reliability and data consistency of personnel status identification.

[0052] Step S106: Based on the number of users in the room, determine the target control mode from multiple preset control modes, wherein different numbers of users in the room correspond to different preset control modes.

[0053] The number of users inside the room mentioned above can refer to the total number of people currently inside the room, calculated cumulatively based on user entry and exit information. It is an integer state value, and the value is determined only by the algebraic difference between the entry and exit events.

[0054] The aforementioned preset control mode can refer to a set of equipment operation strategies pre-configured in the room control system, corresponding one-to-one with the number of users in a specific room.

[0055] For example, preset control modes include, but are not limited to, combinations of control parameters such as air conditioning temperature setting, light brightness and zone opening, socket on / off status, and ventilation device start / stop. Each mode improves the balance between energy consumption and comfort for different number of people in the room. For example, when the number of users in the room is 0, it corresponds to the energy-saving off mode; when it is 1 or 2, it corresponds to the standard comfort mode; and when it is greater than the preset number of people in the room, it corresponds to the abnormal alarm mode.

[0056] The aforementioned target control mode can refer to a device control strategy that is uniquely selected from multiple preset control modes based on the current number of users in the room, through table lookup matching or state machine determination, and is applicable to the current state of the people in the room.

[0057] In one optional embodiment, in response to the current number of users in the room, a preset user number and control mode mapping table is queried. The mapping table stores multiple discrete user number ranges and their corresponding control modes. Based on the current number of users in the room, a corresponding preset control mode is matched in the mapping table, and this preset control mode is output as the target control mode. When the number of users in the room changes, the room intelligent management system re-executes the matching operation to dynamically switch to the new target control mode. If no match is found, the room intelligent management system maintains the previous effective control mode to ensure the stability of its operation.

[0058] In another optional embodiment, a target mode is selected from multiple preset control modes based on the number of users in the room. These different control modes include, but are not limited to, energy efficiency improvement mode, comfort priority mode, security lock mode, or standby mode. The room intelligent management system further dynamically adjusts the control mode mapping relationship corresponding to each user number range based on the room's historical usage habits. During the operation of the room intelligent management system, user feedback behavior regarding the control modes is recorded, including but not limited to manual intervention, mode switching frequency, or device usage duration. Based on the feedback data, the mapping table is updated to ensure that the determination process of the target control mode aligns with actual user preferences.

[0059] For example, when there are 0 users in the house, the "full power saving mode" is triggered, turning off the power supply to the air conditioner, lighting, TV, water heater and sockets, and keeping only the gateway, door lock and security sensor running at low power, with an energy saving rate of over 85%.

[0060] When there is only one user in the room, the "single-person energy-saving mode" is triggered, turning on basic lighting and temperature-controlled air conditioning (e.g., set to 26℃), and turning off the TV and electric kettle to maintain a balance between comfort and energy saving.

[0061] When there are 2 users in the room, the "Double Comfort Mode" is triggered. The air conditioner is set to 24°C, all the lights in the room are turned on, and the TV, minibar, and bedside sockets are powered on to meet the basic needs of two people.

[0062] When the number of users in the room is greater than or equal to 3, the "multi-user high load mode" is triggered, the air conditioner runs at full power, all smart devices are powered on, and the ventilation device is activated to ensure that the air quality and energy consumption in the space are acceptable.

[0063] When the number of users in the room exceeds the preset number (e.g., the preset number is 2 people, but there are actually 3 people), the "security alarm linkage mode" is triggered. While maintaining the "multi-person high load mode" operation, the system automatically pushes an abnormal alarm to the management terminal and records the time and number of people logs.

[0064] Based on the number of users in the room, the present application determines the target control mode from multiple preset control modes, thereby achieving the matching of the optimal control mode according to the accurate number of people and improving the accuracy of the matching between the control mode and actual usage needs.

[0065] Step S108: Execute the room management operation corresponding to the target control mode.

[0066] The aforementioned room management operations can refer to physical control actions sent by the room's intelligent system to various electrical devices based on target control mode commands.

[0067] For example, room management operations include, but are not limited to: adjusting the air conditioner's set temperature and fan speed, turning bedroom and bathroom lights on or off, and starting or stopping ventilation devices. The executing entities are smart appliances, temperature control modules, and lighting controllers connected to the room gateway.

[0068] In one optional embodiment, in response to the determination of the target control mode, the room intelligent management system retrieves the device control strategy associated with the target control mode. Based on the device control strategy, corresponding command signals are sent to the intelligent devices in the room to control their operating status. Intelligent devices include, but are not limited to, lighting devices, air conditioning devices, ventilation devices, power sockets, or curtain drive units. According to the received commands, the intelligent devices perform operations such as start / stop, brightness adjustment, temperature setting, fan speed adjustment, or position switching. During execution, the room intelligent management system maintains real-time monitoring of the device status to ensure that all operations are completed according to the requirements of the target control mode without conflicts or abnormal responses.

[0069] For example, when the target control mode is "full power saving mode" and the number of people in the room is 0, the room intelligent management system automatically turns off the air conditioner compressor, all lights, television, electric kettle, and curtain motor, and only maintains the door lock sensor and lidar in low-power standby mode. After a 30-second delay, the backup power is cut off, and the energy-saving state takes effect.

[0070] When the target control mode is "single-person energy-saving mode", that is, when there is 1 person in the room, the room intelligent management system turns on the soft lighting in the corridor and bedside, the air conditioner is set to a constant temperature mode of 26°C, the socket only retains the mobile phone charging interface for power supply, and the ventilation system runs at a low speed to maintain air circulation.

[0071] When the target control mode is "Double Comfort Mode" and there are 2 people in the room, the room's intelligent management system turns on the main lighting and ambient lighting, sets the air conditioner to 24°C, automatically turns on the TV to the playback screen, starts the minibar refrigerator to cool, and connects the bedside dual Universal Serial Bus (USB) ports and hair dryer socket, while simultaneously pushing out a "Welcome to Check-in" voice prompt.

[0072] When the target control mode is "multi-person high-load mode", that is, when the number of people in the room is greater than or equal to 3, the air conditioner runs at maximum air volume, all the lights in the room are on, all sockets are powered, the ventilation system ventilates at full speed, and the smart curtains open automatically to allow light. The room intelligent management system records the "high-load operation" log and notifies the front desk to prepare for service.

[0073] When the target control mode is "safety alarm linkage mode", that is, when the number of people is greater than the number of registered people, the room intelligent management system will automatically send a red alarm message while maintaining the operation of "multi-person high load mode", "the actual number of people in room [X] [3] exceeds the preset number of people [2], please check".

[0074] This application embodiment executes room management operations corresponding to the target control mode, realizing the triggering of device control commands based on the accurate number of room users, thereby improving the accuracy of room management operations.

[0075] In this embodiment of the invention, user entry and exit information within a preset three-dimensional space at the room entrance is acquired; based on the user entry and exit information, the number of users inside the room is determined; based on the number of users inside the room, a target control mode is determined from multiple preset control modes, wherein different numbers of users inside the room correspond to different preset control modes; and room management operations corresponding to the target control mode are executed. This embodiment of the application, by deploying a LiDAR at the room entrance and setting a preset three-dimensional space at the room entrance, identifies user movement trajectories and directions, and combines this with a counting method to count the number of people entering and exiting. This achieves the goal of dynamically monitoring the number of people in the room without needing to cover the entire room, requiring only a single-point deployment of LiDAR, thereby achieving the technical effect of effective room management and solving the technical problem of low accuracy in intelligent room management.

[0076] Optionally, obtaining user entry and exit information within a preset three-dimensional space at the room entrance includes: obtaining user movement direction information within the preset three-dimensional space, and user movement count information corresponding to the user movement direction information, wherein the user movement direction information is used to represent whether the user enters or exits the room; and determining user entry and exit information based on the user movement direction information and the user movement count information.

[0077] The aforementioned user movement direction information may refer to the binary determination result obtained by the lidar sensor based on continuous point cloud displacement data analysis, which represents the direction of the human body's center of gravity traversing a preset three-dimensional space.

[0078] For example, the binary determination result is "entering the room" or "exiting the room". It is determined by calculating the sign of the motion vector of the centroid of the point cloud on the Z-axis of the coordinate system. It does not rely on attitude recognition or feature matching, but only performs logical classification based on the direction of spatial traversal.

[0079] The coordinate system described above is established with the lidar mounting surface as the origin. The X-axis is horizontal, parallel to the edge of the door frame, representing the left and right position of the personnel. The Y-axis is horizontal, perpendicular to the door frame and pointing into the room, representing the front, back, near, and far positions. The Z-axis is vertical, pointing upwards, representing height.

[0080] The aforementioned user movement count information can refer to discrete event counts bound to each user movement direction information. It is an integer increment, and the counter for the corresponding direction is incremented by one each time a valid directional crossing event is detected.

[0081] In one optional embodiment, continuous point cloud data within a preset three-dimensional space of the entrance area is collected. The trajectory change trend of the moving target in each frame of point cloud data is analyzed to determine whether the target's movement direction penetrates the preset three-dimensional space. If the movement direction is from the outside to the inside, an entry counting signal is generated. If the movement direction is from the inside to the outside, an exit counting signal is generated. The room intelligent management system records the direction determination results and the corresponding counting signals to generate complete user entry and exit information for the room and outputs it to the subsequent processing module.

[0082] This application embodiment accurately determines user entry and exit information by acquiring user movement direction information and corresponding counting information within a preset three-dimensional space, thereby improving the accuracy of personnel entry and exit behavior recognition and event traceability.

[0083] Optionally, acquiring user movement direction information within a preset three-dimensional space, and user movement count information corresponding to the user movement direction information, includes: using a lidar pre-installed at the room entrance to collect radar point cloud data within a preset three-dimensional space; and determining user movement direction information and user movement count information based on the radar point cloud data.

[0084] The aforementioned lidar can refer to an active optical sensor based on the ranging principle. It accurately measures the round-trip time of light for each pixel by emitting infrared pulses and receiving echoes, generating a three-dimensional point cloud containing distance and intensity information. Its output is a set of discrete spatial coordinates and does not contain image or facial features.

[0085] The radar point cloud data mentioned above can refer to a dynamic data set consisting of several three-dimensional spatial coordinate points collected by lidar within a unit of time. Each point contains X, Y, Z three-dimensional coordinates and reflection intensity values, which are used to characterize the geometric contour and positional changes of objects in a preset three-dimensional space. Its data structure is a time series frame.

[0086] In one optional embodiment, the room intelligent management system utilizes a pre-installed LiDAR at the room entrance to continuously collect radar point cloud data within a preset three-dimensional space in the entrance area. The system performs spatial clustering on each frame of point cloud data to isolate independent moving targets. By tracking the positional changes of each target in consecutive frames, a three-dimensional motion vector is calculated. Based on the relative relationship between the direction component of the motion vector and the preset three-dimensional space, it determines whether the target is entering or exiting. Based on this direction determination result, the system increments or decrements the corresponding counter to generate user movement count information corresponding to the direction information.

[0087] This application embodiment uses LiDAR to collect radar point cloud data in a preset three-dimensional space, and determines the user's movement direction information and user movement count information based on the radar point cloud data. This enables the accurate identification of the direction and number of times people enter and exit using sensors, improving detection accuracy and reducing deployment complexity.

[0088] Optionally, the number of users in a room can be determined based on user entry and exit information, including: obtaining the initial number of users in the room; and determining the number of users in the room based on the initial number of users and user entry and exit information.

[0089] The initial number of users mentioned above can refer to the number of registered users in a room when the room is in occupancy, synchronized from the hotel management system to the guest room gateway. This is an integer parameter representing the baseline number of users in the room before the counting system starts, and is only updated when the occupancy status changes. Alternatively, the initial number of users can refer to the initial maximum capacity of the room.

[0090] In one optional embodiment, the initial number of users is based on the initial number of guests synchronized to the guest rooms by the hotel management system, or it can be set to the maximum initial capacity of the room. The room intelligent management system responds to each user entry / exit message by performing a corresponding increment or decrement operation on the initial number of users. When the user entry / exit message indicates that a user is entering, the room intelligent management system increments the current number of users by one; when the user entry / exit message indicates that a user is exiting, the room intelligent management system decrements the current number of users by one. The room intelligent management system updates and stores the number of users after each operation.

[0091] This application embodiment obtains the initial number of users in the room, and further determines the number of users in the room based on the initial number of users and user entry and exit information, thereby achieving a high degree of accuracy in people identification.

[0092] Optionally, the method further includes: in the case of a hotel room, in response to a user checking in, determining the initial number of users to be a preset number.

[0093] The aforementioned hotel rooms can refer to independent, enclosed spaces used for accommodation services, equipped with independent entrances, power control units, and gateway interfaces for communication with the hotel management system.

[0094] The aforementioned user check-in process can refer to the hotel front desk or self-service terminal completing the accommodation registration process and triggering the hotel management system to update the room status to "occupied," which is the triggering condition for starting the counting logic in this application embodiment.

[0095] The aforementioned preset quantity can refer to a fixed value that is explicitly entered and issued by the hotel management system during the check-in process and is bound to the room.

[0096] In one optional embodiment, the room intelligent management system responds to the confirmation signal that the user has completed the check-in process, obtains the user registration information bound to the room, and automatically sets the initial number of users in the room to the corresponding value based on the expected user scale contained in the registration information.

[0097] In this embodiment of the application, when the room is a hotel room, the initial number of users is determined to be a preset number in response to the user's check-in, which ensures the reliability of the starting point for subsequent calculation of the number of users in the room and the consistency of the overall system data.

[0098] Optionally, the number of users inside the room is determined based on the initial number of users and user entry / exit information, including: responding to user movement direction information in the user entry / exit information to indicate that a user has entered the room, determining the number of users added inside the room based on user movement count information corresponding to the user movement direction information; responding to user movement direction information to indicate that a user has exited the room, determining the number of users removed inside the room based on user movement count information corresponding to the user movement direction information; and determining the number of users inside the room based on the initial number of users, the number of users added inside the room, and the number of users removed inside the room.

[0099] The aforementioned increase in the number of users inside the room can refer to the incremental increase in the number of people added based on the user movement count information corresponding to the user movement direction information when the user movement direction information represents "entering the room". The incremental increase in the number of people is a non-negative integer, which is equal to the sum of the user movement count information of all "entering the room" events.

[0100] The aforementioned reduction in the number of users inside the room can refer to the reduction in personnel count based on the user movement count information corresponding to the user movement direction information when the user movement direction information indicates "exiting the room". The reduction in personnel count is a non-negative integer, which is equal to the sum of the user movement count information of all "exiting the room" events.

[0101] In one optional embodiment, the room intelligent management system, in response to user movement direction information corresponding to user entry / exit information indicating a user entering a room, extracts user movement count information corresponding to the user movement direction information and identifies it as a valid entry event. The room intelligent management system performs an accumulation operation on the increase indicated by the user movement count information and the initial value in the current number of users in the room. In response to user movement direction information indicating a user leaving a room, the room intelligent management system extracts the corresponding user movement count information and identifies it as a valid exit event. The room intelligent management system performs a decrement operation on the decrease indicated by the user movement count information from the current number of users in the room. After completing the increase and decrease operations, the room intelligent management system calculates the number of users in the room by combining the current initial value, the increase, and the decrease, and stores the number of users in the room.

[0102] This application embodiment classifies and accumulates the increase and decrease of indoor users based on user movement direction information, and performs linear calculations in combination with the initial number of users to achieve accurate, real-time, and error-free statistics on the number of indoor users.

[0103] Optionally, based on the number of users in the room, a target control mode is determined from multiple preset control modes, including: based on the number of users in the room, determining a room energy-saving management mode corresponding to the number of users in the room from multiple preset control modes, wherein the room energy-saving management mode is used to represent a control mode for energy-saving management of at least one smart device in the room; and determining the target control mode based on the room energy-saving management mode.

[0104] The aforementioned room energy-saving management mode can refer to a specific control strategy used to implement energy-saving power-off operation for at least one smart device in the room among multiple preset control modes.

[0105] The aforementioned smart devices may refer to one or more of the following electrical devices that can be remotely controlled to switch on and off: air conditioners, lighting fixtures, televisions, curtain motors, power sockets, water heaters, ventilation devices, smart door lock power supply modules, or environmental sensor power supply units.

[0106] In one optional embodiment, the room intelligent management system, based on the current number of users in the room, iterates through a list of multiple preset control modes, each corresponding to a range of user numbers. The room intelligent management system compares the current number of users in the room with the matching conditions associated with each mode, identifying the uniquely matching energy-saving management configuration. When identification is successful, the room intelligent management system uses that energy-saving management mode as the target control mode.

[0107] This embodiment of the application is based on the room energy-saving management mode that matches the number of users in the room, so as to realize the hierarchical energy-saving control of smart devices, ensure energy saving when no one is around and maintain normal operation when someone is around, improve energy utilization efficiency, and avoid the decline in experience caused by accidental device shutdown.

[0108] Optionally, the method further includes: if the room is a hotel room, obtaining the number of registered guests; determining a room security management mode based on the comparison between the number of users in the room and the number of registered guests; and determining a target control mode based on the room security management mode and the room energy-saving management mode.

[0109] The aforementioned number of registered guests can refer to the total number of registered guests whose identities have been verified, as recorded by the hotel management system when users check in and synchronized to the guest room intelligent management system.

[0110] The aforementioned guest room security management mode refers to a preset security response strategy triggered based on a comparison between the number of occupants in the room and the number of registered guests. When the number of occupants in the room exceeds the number of registered guests, the guest room security management system activates an anomaly alarm mode. When the two numbers are equal or less, the guest room security management system maintains the normal mode.

[0111] In one optional embodiment, the room intelligent management system obtains the number of registered guests and continuously monitors the current number of users in the room. The system compares these figures in real time to identify any abnormal situations where the number of users in the room exceeds the registered number. When such an abnormal situation is detected, the system activates a guest room security management mode. This mode restricts the operation of at least one smart device in the room, including disabling remote door lock control, turning off lighting adjustment functions, or locking access to modify environmental parameters. After the security management mode is activated, the system integrates it with the current room energy-saving management mode, adopting safety constraints as the underlying constraint rules for the target control mode to ensure that safety takes precedence over energy saving.

[0112] In the hotel room scenario, this application embodiment automatically identifies the risk of over-occupancy by comparing the number of users in the room with the number of registered guests. It then links the safety management mode and the energy-saving management mode to achieve coordinated decision-making for safety warning and energy-saving control, thereby improving the hotel's operational compliance and energy efficiency.

[0113] Figure 2 This is a schematic diagram of an optional lidar installation according to an embodiment of the present invention, such as... Figure 2 As shown, there is room 202, a preset 3D space 204, and a room entrance 206. A lidar is installed at the room entrance, with a detection range covering the preset 3D space. By detecting the movement of people using the lidar, an algorithm calculates the number of people and their direction of movement. Based on user entry and exit information within the preset 3D space at the room entrance, the final number of people in the room is determined.

[0114] Figure 3 This is a schematic diagram of an optional room control logic according to an embodiment of the present invention, such as... Figure 3 As shown, during check-in, the hotel room occupancy status is reset to zero, and the number of guests (X) is recorded. The room gateway synchronizes the room occupancy status with the hotel management system. Once the room occupancy status changes to "occupated," the lidar counter is reset to zero, and the room enters a "awaiting occupancy" state. The number of guests is continuously counted, and the lidar is constantly counting. When the number of guests entering increases by n, the count value N increases; when the number of guests leaving decreases by n, the count value N decreases. The number of guests in the room is constantly changing.

[0115] When the number of people (N) in the guest room is greater than 0, the guest room power is turned on and the normal power-on mode is activated. The air conditioner and lights are turned on according to the default settings, and all electrical equipment in the guest room is unaffected.

[0116] When the number of people N in the guest room is 0, the guest room power is turned off and the energy-saving mode is activated. Except for the agreed-upon reserved power-on equipment, all other equipment is in the power-off energy-saving state.

[0117] When the number of people N in a guest room is greater than X (number of guests), the guest room security is abnormal, and an alarm is triggered. This alarm can directly notify the hotel operations staff to initiate corresponding measures.

[0118] This lidar personnel counting device is applied to hotel rooms, working in conjunction with the hotel management system and intelligent room system to achieve online security and energy management, thereby improving hotel operational efficiency.

[0119] Figure 4 This is a schematic diagram of an optional room management system according to an embodiment of the present invention, such as... Figure 4 As shown, the intelligent room management system first acquires user movement direction information within a preset three-dimensional space at the room entrance and simultaneously records the corresponding user movement count information. Then, by analyzing the temporal characteristics of the movement direction (such as crossing a preset fence plane from the outside in or from the inside out), and combining the cumulative changes in movement counts with the spatial consistency of the point cloud trajectory, it intelligently distinguishes whether a user is entering or leaving the room. Finally, based on a joint criterion of user movement direction information and user movement count information, it determines whether the user has entered or exited the room.

[0120] Figure 5 This is a schematic diagram of another optional room management system according to an embodiment of the present invention, such as... Figure 5 As shown, the intelligent room management system first obtains user entry and exit information within a preset three-dimensional space at the room entrance, and then obtains the initial number of users in the room. In the scenario of a hotel room, when the intelligent room management system detects that a user has completed the check-in process, it automatically sets the initial number of users to the preset number of guests registered by the hotel management system. Subsequently, based on this initial number, it adds or subtracts the user entry and exit information identified by the LiDAR, updates and determines the current number of users in the room, and achieves synchronous calibration between the check-in status and the real-time number of guests.

[0121] According to another aspect of the present invention, a room management device embodiment is also provided. It should be noted that the device can be used to perform the above-described room management method. Figure 6 This is a schematic diagram of a room management device according to an embodiment of the present invention, such as... Figure 6 As shown: Acquisition module 602, first determination module 604, second determination module 606, execution module 608.

[0122] The acquisition module 602 is used to acquire user entry and exit information in a preset three-dimensional space at the room entrance; the first determination module 604 is used to determine the number of users in the room based on the user entry and exit information; the second determination module 606 is used to determine a target control mode from multiple preset control modes based on the number of users in the room, wherein different numbers of users in the room correspond to different preset control modes; and the execution module 608 is used to execute the room management operation corresponding to the target control mode.

[0123] The acquisition module is also used to acquire user movement direction information within a preset three-dimensional space, as well as user movement count information corresponding to the user movement direction information. The user movement direction information is used to represent whether the user enters or exits the room. Based on the user movement direction information and the user movement count information, the user's entry and exit information is determined.

[0124] The acquisition module is also used to collect radar point cloud data in a preset three-dimensional space using a lidar pre-set at the entrance of the room; based on the radar point cloud data, it determines the user's movement direction information and user movement count information.

[0125] The determination module is also used to obtain the initial number of users in the room; based on the initial number of users and user entry and exit information, the number of users in the room is determined.

[0126] The determination module is also used to determine the initial number of users to a preset number in response to user check-in when the room is a hotel room.

[0127] The determination module is also used to respond to the user movement direction information in the user entering and leaving room information to indicate that the user has entered the room, and to determine the number of users added in the room based on the user movement count information corresponding to the user movement direction information; respond to the user movement direction information to indicate that the user has left the room, and to determine the number of users removed in the room based on the user movement count information corresponding to the user movement direction information; and to determine the number of users in the room based on the initial number of users, the number of users added in the room, and the number of users removed in the room.

[0128] The second determining module is further configured to determine, based on the number of users in the room, a room energy-saving management mode corresponding to the number of users in the room from multiple preset control modes, wherein the room energy-saving management mode is used to represent a control mode for energy-saving management of at least one smart device in the room; and to determine a target control mode based on the room energy-saving management mode.

[0129] The device also includes: when the room is a hotel room, obtaining the number of registered guests; determining the room security management mode based on the comparison between the number of users in the room and the number of registered guests; and determining the target control mode based on the room security management mode and the room energy-saving management mode.

[0130] Embodiments of this application also provide an electronic device, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of this application when it runs.

[0131] Embodiments of this application also provide a computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.

[0132] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.

[0133] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium for storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.

[0134] Embodiments of this application also provide a computer program that, when executed by a processor, implements the methods described in the various embodiments of this application.

[0135] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0136] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0137] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0138] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0139] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0140] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A room management method characterized by, include: Obtain information on users entering and exiting the room within a preset three-dimensional space at the room entrance; Based on the user entry and exit information, determine the number of users inside the room; Based on the number of users in the room, a target control mode is determined from multiple preset control modes, wherein different numbers of users in the room correspond to different preset control modes; Perform the room management operation corresponding to the target control mode.

2. The room management method according to claim 1, characterized in that, Obtain user entry and exit information within a preset three-dimensional space at the room entrance, including: The user movement direction information within the preset three-dimensional space is obtained, as well as the user movement count information corresponding to the user movement direction information, wherein the user movement direction information is used to indicate whether the user enters the room or exits the room; Based on the user's movement direction information and the user's movement count information, the user's entry and exit information for the room is determined.

3. The room management method according to claim 2, characterized in that, Acquiring user movement direction information within the preset three-dimensional space, and user movement count information corresponding to the user movement direction information, including: Using a lidar pre-installed at the entrance of the room, radar point cloud data within the preset three-dimensional space is collected; Based on the radar point cloud data, the user's movement direction information and the user's movement count information are determined.

4. The room management method according to claim 1, characterized in that, Based on the user entry and exit information, the number of users inside the room is determined, including: Obtain the initial number of users in the room; The number of users inside the room is determined based on the initial number of users and the information on users entering and leaving the room.

5. The room management method according to claim 4, characterized in that, The method further includes: If the room is a hotel room, in response to the user checking in, the initial number of users is determined to be a preset number.

6. The room management method according to claim 4, characterized in that, Based on the initial number of users and the user entry and exit information, the number of users inside the room is determined, including: In response to the user movement direction information in the user entering / exiting room information, which is used to represent the user entering the room, the number of users added in the room is determined based on the user movement count information corresponding to the user movement direction information. In response to the user movement direction information used to indicate that a user has left the room, the number of users in the room is reduced based on the user movement count information corresponding to the user movement direction information. The number of users inside the house is determined based on the initial number of users, the increase in the number of users inside the house, and the decrease in the number of users inside the house.

7. The room management method according to any one of claims 1 to 6, characterized in that, Based on the number of users inside the room, a target control mode is determined from multiple preset control modes, including: Based on the number of users in the room, a room energy-saving management mode corresponding to the number of users in the room is determined from the plurality of preset control modes. The room energy-saving management mode is used to represent a control mode for energy-saving management of at least one smart device in the room. Based on the room energy-saving management mode, the target control mode is determined.

8. The room management method according to claim 7, characterized in that, The method further includes: If the room is a hotel room, obtain the number of registered guests in the room; Based on the comparison between the number of users in the room and the number of registered guests, a guest room security management model is determined; Based on the guest room security management mode and the room energy-saving management mode, the target control mode is determined.

9. A room management device, characterized in that, include: The acquisition module is used to acquire information about users entering and exiting the room within a preset three-dimensional space at the room entrance; The first determining module is used to determine the number of users in the room based on the user entry and exit information; The second determining module is used to determine a target control mode from multiple preset control modes based on the number of users in the room, wherein different numbers of users in the room correspond to different control modes. The execution module is used to perform intelligent room management operations corresponding to the target control mode.

10. An electronic device, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program, when running, performs the room management method according to any one of claims 1 to 8.