Judgment method and device for number of users in piano room, and storage medium
Real-time monitoring of the number of users in the piano room through human body sensors and camera modules solves the problem of wastage of piano room resources, achieves efficient use of resources and improves management efficiency.
Patent Information
- Application Number
- CN202310554716.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-09-10
AI Technical Summary
The problem of wastage of piano room resources, including reservations but not used, leads to idle resources and management difficulties.
By obtaining piano room reservation orders, human body sensors and camera modules are used to identify the number of users, set idle time thresholds and user upper limit thresholds, monitor and warn overcrowding in real time, and adjust lighting to optimize the brightness of the environment to ensure accurate detection.
It effectively avoids the waste of resources, improves the efficiency of piano room management, ensures the reasonable use of reservations, and reduces the intervention of management personnel.
Abstract
Description
Technical Field
[0001] The present invention relates to a smart piano room system, and in particular to a method for determining the number of piano room users. Background Art
[0002] In the process of piano room management, it is often the case that the piano room is not used until the reserved time expires, resulting in a waste of resources. In order to avoid the waste of resources, this problem is generally solved through sign-in and inquiry.
[0003] In view of this, it is necessary to provide a method for determining the number of piano room users and a storage medium and device. Summary of the Invention
[0004] The present invention provides a method for determining the number of users in a piano room, comprising the following steps: Step 1: Get a piano room reservation order; read the piano room reservation number, reservation start time, and reservation end time in the reservation order, and set the time period between the piano room reservation start time and the reservation end time period as the piano room occupancy status; Step 2: Read the idle time threshold and the upper threshold of the number of users in the piano room in the reservation order; If no one signs in between the reservation start time and the idle time threshold, the process goes to step 3; otherwise, the sign-in succeeds and the piano room is set to be in use. From the start time of the reservation order to the idle time threshold, when the human body sensor and / or camera module recognizes a user, the camera module determines whether the number of people in the piano room meets the upper limit threshold. If the upper limit threshold is exceeded, an alarm is issued; When the number of users in the piano room exceeds the upper limit, a warning will be issued for illegal use of the piano room; Step 3: When the reserved piano room ends, sign out of the piano room and release the piano room occupancy status.
[0005] In step 2, before determining whether there are too many users in the piano room, the camera module pre-judges the camera working environment. When the working environment conditions of the camera module are not met, the human body sensor is used to detect whether there are users in the piano room.
[0006] In step 2, the brightness threshold of the piano room in the piano room reservation order is obtained, and the picture taken by the camera module is intercepted. When the brightness of the picture is less than the brightness threshold, the detection of the number of people in the piano room is suspended.
[0007] The piano room also includes a processing unit. When the brightness in the piano room is less than the brightness threshold, the processing unit first adjusts the brightness of the lights in the piano room. When the brightness in the piano room is adjusted, if the brightness in the piano room is still less than the brightness threshold, the detection of the number of people in the piano room is suspended.
[0008] When the human body sensor determines that there is a user in the piano room, and the camera module recognizes that the brightness in the piano room is greater than or equal to 80, it determines whether the number of users in the piano room exceeds the upper limit threshold. When the number of users in the piano room exceeds the upper user threshold, a warning will be issued and / or the management staff will be notified.
[0009] When it is detected that the user has set the piano room to a temporary leave state, the temporary leave threshold is obtained, and the human body sensor and the number of people in the piano room are turned off; When the user of the piano room does not resume using the piano room within the temporary absence threshold time period, the process goes to step 3.
[0010] Read the piano room reservation in the piano room order to determine whether it is a single-person piano room or a multi-person piano room, and the time threshold for the number of people in the piano room; When a piano room reservation is for multiple people, if the number of people in the room is less than 1 between the start time and the time threshold, an alert will be issued. When the piano room order is for a single room, an alert will be issued if it is detected that the number of people in the piano room is not equal to 1.
[0011] When the number of people in the piano room does not match the number of piano room users, the high-frequency time threshold in the piano room reservation order is obtained. Within the high-frequency time threshold period, the number of users in the piano room is judged at a high frequency. When the discrepancy between the number of piano room users and the number of reservation personnel is eliminated within the high-frequency time threshold, it is recorded; otherwise, it is recorded and a warning is issued.
[0012] A medium storing a method for determining the number of users in a piano room.
[0013] The invention discloses a device composed of a storage medium storing a method for determining the number of piano room users. Implementation Method
[0014] The following is a clear and complete description of the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present invention.
[0015] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. Or implicitly indicate the number of technical features indicated. Therefore, the features defined as "first" and "second" can be explicitly or implicitly indicated. In the description of the embodiments of the present disclosure, unless otherwise specified, the term "a plurality of" includes one or more of the features. Meaning is two or more.
[0016] In addition, the use of "based on" or "according to" implies openness and inclusiveness, because "based on" or "according to" one or more The processes, steps, calculations or other actions of the above conditions or values may be based on additional conditions or beyond the above conditions in practice. value. The present invention provides a method for determining the number of users in a piano room, comprising the following steps: Step 1: Get a piano room reservation order; read the piano room reservation number, reservation start time, and reservation end time in the reservation order, and set the time period between the piano room reservation start time and the reservation end time period as the piano room occupancy status; Step 2: Read the idle time threshold and the upper threshold of the number of users in the piano room in the reservation order; If no one signs in between the reservation start time and the idle time threshold, the process goes to step 3; otherwise, the sign-in succeeds and the piano room is set to be in use. From the start time of the reservation order to the idle time threshold, when the human body sensor and / or camera module recognizes a user, the camera module determines whether the number of people in the piano room meets the upper limit threshold. If the upper limit threshold is exceeded, an alarm is issued; When the number of users in the piano room exceeds the upper limit, a warning will be issued for illegal use of the piano room; Step 3: When the reserved piano room ends, sign out of the piano room and release the piano room occupancy status.
[0017] The method for judging the number of piano room users proposed in the present invention controls the maximum idle time of a reserved piano room after it is reserved through an idle time threshold. When the idle time is greater than the maximum idle time, the piano room will be set to an idle state, the reserved order will be canceled, and the reserved piano room will be placed in a queue for reservation, avoiding the problem of wasting piano room resources by reserving a piano room without actually practicing.
[0018] The users of the piano room can generally be divided into multi-person users and single-person users. Multi-person users can reserve the piano room for teaching, and single users can reserve it for multiple people to practice. In the aforementioned step 2, under abnormal circumstances, before determining whether the piano room is overcrowded, the camera working environment is pre-judged through the camera module. When the working environment conditions of the camera module are not met, the human body sensor is used to detect whether there are users in the piano room. The camera module can mainly realize the calculation of the number of people, the comparison of objects, the recognition of the brightness of the environment, etc., mainly through model training, and then through generative artificial intelligence, such as Baidu AI, Huawei AI, etc., to generate an SDK and install it on the camera's platform, which can be Android, micro system, etc.
[0019] When determining whether the camera module's operating environment conditions are met, the primary focus is determining whether the brightness of the image captured by the camera meets the required brightness. The RGB values of each point in the area are obtained. bitmap.getPixel returns ARGB values. A shift operation is performed to obtain the R, G, and B values of each point. The R, G, and B values of the aforementioned points are calculated using the formula 0.229 × R + 0.587G + 0.114B to obtain the brightness value of that point. After calculating the brightness of each point or multiple points within the area, the average brightness of all points is calculated.
[0020] The values of the points are added together and an average is taken to get the average R, G and B values, and the brightness value. You can also calculate the brightness of each point separately and finally find the average brightness value. If this value is greater than 80, the image is brighter, and if this value is less than 80, the image is darker. When the brightness in the piano room is low, it is not suitable for determining the number of users in the piano room.
[0021] Get the brightness threshold of the piano room in the piano room reservation order, intercept the picture taken by the camera module, and suspend the detection of the number of people in the piano room when the brightness of the picture is less than the brightness threshold.
[0022] When the brightness level in the piano room falls below the brightness threshold, the processing unit first adjusts the room's light intensity. If the brightness level remains below the threshold after adjusting the light intensity, the number of people in the room is temporarily suspended. This includes adjusting the light intensity, the number of lights on, and the light angles to achieve room brightness adjustment. Brightness adjustment includes both increasing and decreasing brightness.
[0023] When the human body sensor determines that there is a user in the piano room and the camera module identifies that the brightness in the piano room is greater than or equal to 80, it is determined whether the number of users in the piano room exceeds the upper limit of users. When the number of users in the piano room exceeds the upper limit of users, an alarm is issued and / or the management personnel is notified.
[0024] When it is detected that the user has set the piano room to a temporary leave state, the temporary leave threshold is obtained, and the human body sensor and the number of people in the piano room are turned off; When the user of the piano room does not resume the use of the piano room within the temporary absence threshold time period, the piano room is released and enters an idle state.
[0025] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer-executable instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more media integrated therein. Available media can be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives (SSDs)).
[0026] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention shall be covered by the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for determining the number of piano room users, characterized in that: The steps include: Step 1, obtain the piano room reservation order; read the piano room reservation number, reservation start time and reservation end time in the reservation order, and set the time period between the piano room reservation start time and the reservation end time period as the piano room occupancy status; Step 2, read the idle time threshold and the upper limit threshold of the number of users in the piano room in the reservation order; If the person fails to sign in within the time period from the reservation start time to the idle time threshold, the third step is entered; otherwise, the person signs in successfully and the piano room is set to be in use; From the start time of the reservation order to the idle time threshold time period, when the human body sensor and / or camera module recognizes that there is a user, the camera module determines whether the number of people in the piano room matches the upper limit threshold, and issues a warning when the upper limit threshold is exceeded; When the number of users in the piano room exceeds the upper limit of the user threshold, a warning will be issued for illegal use of the piano room; Step 3: When the reserved piano room ends, sign out of the piano room and release the piano room occupancy status.
2. The method for determining the number of piano room users as claimed in claim 1, characterized in that: In step 2, before determining whether there are too many users in the piano room, the camera module pre-judges the camera working environment. When the working environment conditions of the camera module are not met, the human body sensor is used to detect whether there are users in the piano room.
3. The method for determining the number of piano room users as claimed in claim 1, characterized in that: In step 2, the brightness threshold of the piano room in the piano room reservation order is obtained, and the picture taken by the camera module is intercepted. When the brightness of the picture is less than the brightness threshold, the detection of the number of people in the piano room is suspended.
4. The method for determining the number of piano room users as claimed in claim 3, characterized in that: The piano room also includes a processing unit. When the brightness in the piano room is less than the brightness threshold, the processing unit first adjusts the brightness of the lights in the piano room. When the brightness in the piano room is adjusted and the brightness in the piano room is still less than the brightness threshold, the detection of the number of people in the piano room is suspended.
5. The method for determining the number of piano room users as claimed in claim 4, characterized in that: In step 2, when the human body sensor determines that there is a user in the piano room, and the camera module recognizes that the brightness in the piano room is greater than or equal to 80, it is determined whether the number of users in the piano room exceeds the upper limit threshold of the user. When the number of users in the piano room exceeds the upper user threshold, a warning will be given and / or the management staff will be notified.
6. The method for determining the number of piano room users as claimed in claim 1, wherein: In step 2, when it is obtained that the user has set the piano room to a temporary leave state, the temporary leave threshold is obtained, and the human body sensor and the number of people in the piano room are turned off; When the user of the piano room does not resume use of the piano room within the temporary absence threshold time period, proceed to step 3.
7. The method for determining the number of piano room users as claimed in claim 1, wherein: Read whether the piano room reserved in the piano room order is a single-person piano room or a multi-person piano room, and the time threshold for the number of people in the piano room; When the piano room order is for multiple people, when the start time of the piano room reservation order reaches the piano room occupancy time threshold, if the number of people is not greater than 1, a warning will be issued; When the piano room order is for a single person, an alert will be given if it is detected that the number of people in the piano room is not equal to 1.
8. The method for determining the number of piano room users as claimed in claim 1, wherein: In step 3, when the number of people in the piano room does not match the number of piano room users, the high-frequency time threshold in the piano room reservation order is obtained, and the number of users in the piano room is judged frequently within the high-frequency time threshold period. When the discrepancy between the number of piano room users and the number of reserved persons is eliminated within the high-frequency time threshold, it is recorded; otherwise, it is recorded and a warning is given.
9. A medium storing the method for determining the number of piano room users as claimed in any one of claims 1 to 8.
10. A device assembled using the method for determining the number of piano room users as described in any one of claims 1 to 8 or the storage medium as described in claim 9.
