Elevator control method, system, device and storage medium
By generating a random number and motion information identification code in the elevator, and combining it with the identification code displayed on the terminal, the problem of the elevator door being open for a long time due to false detection of an electric vehicle was solved, and the normal operation of the elevator was realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHEJIANG UNIVIEW TECH CO LTD
- Filing Date
- 2024-12-18
- Publication Date
- 2026-06-19
AI Technical Summary
In the case where only a camera is installed in the elevator, there is a problem where the elevator door remains open for an extended period of time due to the false detection of an electric vehicle inside the elevator.
By generating random numbers and motion information using camera equipment, combining them with door closing commands to generate an identification code, and collecting the identification code displayed on the target object's terminal, matching and controlling the elevator door is achieved.
By installing only video equipment in the elevator, the problem of elevator doors being left open for extended periods due to false detection of electric vehicles was solved, ensuring the normal operation of the elevator.
Smart Images

Figure CN122233239A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of elevator control technology, and in particular to an elevator control method, system, device and storage medium. Background Technology
[0002] Allowing electric vehicles into elevators could lead to two problems: firstly, it could cause elevator overload, preventing passengers from boarding in time; secondly, if the electric vehicle's battery is old, short-circuited, or damaged by an impact, it could cause a fire, seriously threatening passenger safety. Therefore, it is crucial to inspect electric vehicles inside elevators.
[0003] Currently, when inspecting electric vehicles, especially when a network camera (IPC) mistakenly detects an electric vehicle inside the elevator, a network video recorder (NVR) can be used to control the elevator doors to close, thus ensuring the normal operation of the elevator.
[0004] However, if only an IPC is installed in the elevator, and the elevator door remains open for an extended period due to a false detection of an electric vehicle inside the elevator, then how to control the elevator door to close is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] This application provides an elevator control method, system, device, and storage medium to solve the problem in the prior art where, in the case of only installing camera equipment in the elevator, the elevator door remains open for a long time and cannot be closed due to the false detection of an electric motor inside the elevator, thereby ensuring the normal operation of the elevator.
[0006] This application provides an elevator control method applied to a camera device, the method comprising: If the elevator door is open for a duration exceeding a preset duration and the collected action information of the target object inside the elevator matches the preset action information, a random number is generated. A first identification code is generated based on the door closing command, the random number, and the action information; The second identification code displayed on the first terminal of the target object is collected; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number and the preset action information; If the second identification code matches the first identification code, the elevator door is controlled to close.
[0007] According to an elevator control method provided in this application, the step of generating a first identification code based on a door closing command, a random number, and motion information includes: Based on the door closing command, the random number, and the action information, a first string is generated; Based on the action information, a first key is determined, and the first string is encrypted based on the first key to obtain a first encrypted string; The first identification code is generated based on the first encrypted string.
[0008] According to an elevator control method provided in this application, when the second identification code is a partial block identification code, the step of controlling the elevator door to close when the second identification code matches the first identification code includes: The first identification code is divided into a preset number of block identification codes; The target block identification code is determined from the preset number of block identification codes based on the random number; If the partial block identification code matches the target block identification code, the elevator door is controlled to close.
[0009] This application also provides an elevator control method applied to a second terminal, the method comprising: The system receives a random number sent by a first terminal to a target object inside the elevator. The random number is generated by the camera device when it determines that the elevator door has been open for a longer period than a preset duration and the collected action information of the target object matches the preset action information. A second identification code is generated based on the door closing command, the random number, and the preset action information; The second identification code is sent to the first terminal. The second identification code is used to instruct the camera device to control the elevator door to close when the second identification code matches the first identification code when the second identification code is displayed on the first terminal. The first identification code is generated by the camera device based on the door closing command, the random number, and the action information.
[0010] According to an elevator control method provided in this application, the step of generating a second identification code based on a door closing command, a random number, and preset action information includes: A second string is generated based on the door closing command, the random number, and the preset action information; A second key is determined based on the preset action information, and the second string is encrypted based on the second key to obtain a second encrypted string; The second identification code is generated based on the second encrypted string.
[0011] According to an elevator control method provided in this application, the step of generating the second identification code based on the second encrypted string includes: An initial identification code is generated based on the second encrypted string, and the initial identification code is divided into a preset number of block identification codes; The second identification code is determined from the preset number of block identification codes based on the random number.
[0012] This application also provides an elevator control device for use with camera equipment, the device comprising: The first generation unit is used to generate random numbers when it is determined that the elevator door opening time exceeds the preset time and the collected action information of the target object inside the elevator matches the preset action information. The second generation unit is used to generate a first identification code based on the door closing command, the random number, and the action information; The acquisition unit is used to acquire the second identification code displayed by the first terminal of the target object; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number and the preset action information; The control unit is used to control the elevator door to close when the second identification code matches the first identification code.
[0013] This application also provides an elevator control device for use in a second terminal, the device comprising: The receiving unit is used to receive a random number sent by a first terminal of the target object inside the elevator. The random number is generated by the camera device when it is determined that the elevator door has been open for a longer than a preset time and the action information of the target object is matched with the preset action information. A generation unit is used to generate a second identification code based on the door closing command, the random number, and the preset action information; The sending unit is used to send the second identification code to the first terminal. The second identification code is used to instruct the camera device to control the elevator door to close when the second identification code matches the first identification code when the second identification code is displayed on the first terminal. The first identification code is generated by the camera device based on the door closing command, the random number, and the action information.
[0014] This application also provides an elevator control system, including a camera device and a first terminal; The camera device is used to generate a random number when it is determined that the elevator door is open for a longer period than a preset time and the collected action information of the target object inside the elevator matches the preset action information, and to generate a first identification code based on the door closing command, the random number and the action information. The first terminal is used to display a second identification code; wherein the second identification code is an identification code pre-stored in the first terminal of the target object, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number and the preset action information; The camera device is also used to collect the second identification code displayed on the first terminal, and to control the elevator door to close when the second identification code matches the first identification code.
[0015] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the elevator control method as described above.
[0016] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the elevator control method as described above.
[0017] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the elevator control method as described above.
[0018] The elevator control method, system, device, and storage medium provided in this application involve a camera device generating a random number when it determines that the elevator door has been open for a longer than a preset time and the collected motion information of the target object inside the elevator matches the preset motion information. The camera device then generates a first identification code based on a door-closing command, the random number, and the motion information. Finally, it collects a second identification code displayed on a first terminal of the target object. The second identification code is either a code pre-stored on the first terminal or a code received from a second terminal, and is generated by the second terminal based on the door-closing command, the random number, and the preset motion information. If the second identification code matches the first identification code, the elevator door is controlled to close. This addresses the problem in existing technologies where only a camera device is installed in the elevator, leading to the elevator door remaining open for an extended period due to a false detection of an electric vehicle. The first identification code is generated based on the door-closing command, the random number, and the motion information, and combined with the second identification code displayed on the first terminal of the target object. This ensures the normal operation of the elevator. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating an elevator control method provided in an embodiment of this application.
[0021] Figure 2 This is a flowchart illustrating a method for generating a first identification code based on a door closing command, a random number, and action information, provided in an embodiment of this application.
[0022] Figure 3 This is a flowchart illustrating another elevator control method provided in an embodiment of this application.
[0023] Figure 4 This is a flowchart illustrating a method for generating a second identification code based on a door closing command, a random number, and preset action information, provided in an embodiment of this application.
[0024] Figure 5 This is a schematic diagram of an elevator control system provided in an embodiment of this application.
[0025] Figure 6 This is an interactive schematic diagram of an elevator control method provided in an embodiment of this application.
[0026] Figure 7 This is a schematic diagram of the structure of an elevator control device provided in an embodiment of this application.
[0027] Figure 8 This is a schematic diagram of another elevator control device provided in an embodiment of this application.
[0028] Figure 9 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0030] In the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0031] The technical solution provided in this application can be adapted to elevator control scenarios. Currently, in elevator control scenarios, to ensure the safe operation of elevators, network cameras (IPCs) are typically used to detect whether there are electric vehicles inside the elevator, and the elevator doors are controlled based on the detection results. If the detection result indicates that there are no electric vehicles inside the elevator, the elevator doors can be closed; if the detection result indicates that there are electric vehicles inside the elevator, the elevator doors can be opened to ensure the normal operation of the elevator.
[0032] If the detection results falsely detect the presence of an electric vehicle inside the elevator, meaning the camera mistakenly believes there is an electric vehicle when there actually is, in order to ensure the elevator doors close properly, a network video recorder (NVR) can be added to the network camera (IPC) to control the elevator doors to close, thereby ensuring the normal operation of the elevator.
[0033] However, in some elevator control scenarios, in order to reduce costs, only IPCs are installed inside the elevator, but NVRs are not installed. If the elevator door is left open for a long time due to the false detection of an electric vehicle inside the elevator, there is currently no solution on how to control the elevator door to close.
[0034] To address the issue of elevator doors remaining open for extended periods due to the false detection of an electric vehicle inside the elevator when only a camera is installed, this application provides an elevator control method. The executing entity can be an electronic device such as a camera or a server, or an elevator control device within an electronic device. This elevator control device can be implemented through software, hardware, or a combination of both.
[0035] The elevator control method provided in this application will be described in detail below through several specific embodiments. It is understood that these specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0036] Figure 1 This is a flowchart illustrating an elevator control method provided in an embodiment of this application, applied to a camera device. For example, please refer to [link to relevant documentation]. Figure 1 As shown, the elevator control method may include: S101. If it is determined that the elevator door has been open for a longer period than the preset duration and the collected action information of the target object inside the elevator matches the preset action information, generate a random number.
[0037] The preset duration can be set according to actual needs.
[0038] For example, the motion information can be gesture information, body posture information, or head movement information, etc., and can be set according to actual needs.
[0039] Taking gesture information as an example, gesture information may include a gesture to start matching the identification code, a gesture to indicate the lifetime of the identification code, and / or a gesture to indicate the number of times the identification code can be used. The specific settings can be configured according to actual needs.
[0040] Each gesture can be converted into a corresponding number. For example, the number corresponding to the gesture for starting the identification code matching can be 3, the number corresponding to the gesture for the lifespan of the identification code can be 4, the number corresponding to the gesture for the number of times the identification code can be used can be 2, etc. The specific settings can be made according to actual needs.
[0041] If the elevator door remains open for longer than the preset duration, it indicates that the camera may be mistakenly detecting the presence of an electric vehicle inside the elevator, causing the door to remain open for an extended period. In this case, the person in question can contact the property management staff. After verifying that no electric vehicle is present in the elevator, the staff can provide the person with preset action information to initiate a code matching process to close the elevator normally. The person then performs this action. If the camera captures the person's action information and it matches the preset action information, it indicates that the person in the elevator intends to initiate a code matching process to close the elevator normally.
[0042] For example, the identification code can be a QR code or a barcode, etc., and can be set according to actual needs.
[0043] When performing the identification code matching operation, for the camera device, a random number can be generated first, and the corresponding identification code can be generated based on the pre-stored door closing command, random number and action information. In this embodiment, it can be recorded as the first identification code, that is, the following S102 is executed. The first identification code can be used as the basis for the identification code matching operation to determine whether to control the elevator to close normally.
[0044] For example, in the embodiments of this application, random numbers can be generated by a linear congruential algorithm; random numbers can be generated by a Mason swirl algorithm; or random numbers can be generated by other algorithms, such as the intermediate squaring method, etc. The specific settings can be made according to actual needs.
[0045] S102. Generate the first identification code based on the door closing command, random number and action information.
[0046] The door closing command is used to control the elevator door to close.
[0047] For example, when generating the first identification code based on the door closing command, random number, and action information, the three types of information can be fused together to generate the first identification code.
[0048] For example, in this embodiment of the application, in order to ensure the timeliness of the first identification code, when generating the first identification code, the current time information can also be combined with the door closing command, random number and action information to generate the first identification code. In this way, by combining the current time information, the problem of leakage caused by the long-term validity of the first identification code can be avoided, the timeliness of the first identification code can be guaranteed, and the accuracy of the matching results of subsequent identification codes can be further improved.
[0049] In order to control the elevator to close normally based on the identification code matching result, in addition to generating a first identification code as the basis for the identification code matching operation, the camera device also needs to collect the second identification code displayed on the first terminal of the target object, that is, to execute the following S103.
[0050] S103. Collect the second identification code displayed on the first terminal of the target object; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, random number and preset action information.
[0051] The second terminal can be understood as the terminal of the property staff in the area where the elevator is located.
[0052] For example, when the first terminal receives the second identification code from the second terminal based on a random number, it can first send the random number to the second terminal, so that the second terminal generates an identification code based on the door closing command, the random number and preset action information. This identification code can be recorded as the second identification code.
[0053] It is understood that, in the embodiments of this application, since the first identification code, which serves as the basis for the identification code matching operation, is generated by combining the random number currently generated by the camera device, when the second identification code is the identification code preset and stored by the first terminal, the random number used to generate the second identification code is usually different from the random number currently generated by the camera device, so that the second identification code does not match the first identification code.
[0054] When the second identification code is received by the first terminal from the second terminal, it indicates that the second identification code was generated by property staff after verifying that there are no electric vehicles in the elevator, and is used to control the elevator door to close. Furthermore, since the second identification code is generated by the second terminal based on the door closing command, a random number, and preset action information, it matches the first identification code.
[0055] For example, taking a QR code as the second identification code, the second identification code can be a complete QR code generated based on the door closing command, random number and preset action information, or it can be a partial block QR code in the complete QR code. The specific settings can be made according to actual needs.
[0056] It should be noted that in the embodiments of this application, there is no specific order between S102 and S103. The embodiments of this application are only used as an example of executing S102 first and then S103, but this does not mean that the embodiments of this application are limited to this.
[0057] After acquiring the second identification code displayed on the first terminal of the target object, the second identification code can be matched with the first identification code. If the second identification code does not match the first identification code, it means that the second identification code is not the identification code currently acquired in real time through the second terminal for elevator door closing control. If there is an electric vehicle in the elevator, the elevator door will continue to be opened. Conversely, if the second identification code matches the first identification code, it means that the second identification code is indeed the identification code currently acquired in real time through the second terminal for elevator door closing control. If there is no electric vehicle in the elevator, the elevator door will be closed, i.e., the following S104 will be executed to ensure the normal operation of the elevator.
[0058] S104. If the second identification code matches the first identification code, control the elevator door to close.
[0059] As can be seen, in this embodiment, when the camera device determines that the elevator door has been open for more than a preset time and the collected action information of the target object inside the elevator matches the preset action information, it generates a random number; generates a first identification code based on the door closing command, the random number, and the action information; and collects a second identification code displayed on the first terminal of the target object. The second identification code is either a code pre-stored on the first terminal or a code received from the second terminal, and is generated by the second terminal based on the door closing command, the random number, and the preset action information. When the second identification code matches the first identification code, the elevator door is controlled to close. Thus, even when only a camera device is installed in the elevator, if the elevator door remains open for an extended period due to a false detection of an electric vehicle inside, the first identification code can be generated based on the door closing command, the random number, and the action information. Combined with the second identification code displayed on the first terminal of the target object, the elevator door is controlled to close when the second identification code matches the first identification code. This solves the problem in the prior art where, even with only a camera device installed in the elevator, the elevator door remains open for an extended period due to a false detection of an electric vehicle inside, ensuring the normal operation of the elevator.
[0060] Based on the above Figure 1 The illustrated embodiment, for example, to facilitate understanding of how the first identification code is generated based on the door closing command, random number, and action information in S102 described above, will be explained below. Figure 2 The embodiments shown are described in detail below.
[0061] Figure 2 This application provides a flowchart illustrating a method for generating a first identification code based on a door closing command, a random number, and action information. For example, please refer to [link to relevant documentation]. Figure 2 As shown, the generation method may include: S201. Generate the first string based on the door closing instruction, random number, and action information.
[0062] For example, when generating the first string based on the door closing command, random number, and action information, the door closing command, random number, and action information can all be converted into string form first. Then, the string form of the door closing command, random number, and action information can be concatenated together according to a certain rule, so that the first string is only effective for a unique camera device, ensuring its uniqueness.
[0063] For example, the closing instruction, random number, and action information in string form can be concatenated into a long string in sequence, which is the first string; or, a certain encoding method can be used to combine the closing instruction, random number, and action information in string form to generate the first string, etc. The specific settings can be configured according to actual needs.
[0064] S202. Determine the first key based on the action information, and encrypt the first string based on the first key to obtain the first encrypted string.
[0065] Taking action information as gesture information, and the gesture information including the matching gesture for starting the identification code, the lifetime gesture for the identification code, and the lifetime count gesture for the identification code as an example, in this embodiment of the application, when determining the first key based on the action information, the matching gesture for starting the identification code, the lifetime gesture for the identification code, and the lifetime count gesture for the identification code can be converted into their respective corresponding numbers, and the sum of the three numbers can be calculated. The units digit of the sum can be determined as the first key; alternatively, the average of the three values can be calculated, and the units digit of the average can be determined as the first key, etc. The specific settings can be made according to actual needs.
[0066] For example, when encrypting the first string based on the first key, an XOR encryption algorithm, a substitution encryption algorithm, or a shift encryption algorithm can be used to encrypt the first string. The specific method can be set according to actual needs.
[0067] Encrypting the first string effectively improves its security, preventing the leakage of the first identification code generated based on it.
[0068] S203. Generate a first identification code based on the first encrypted string.
[0069] For example, when generating a first identification code based on a first encrypted string, the first encrypted string can be input into an identification code generation tool, and the tool can generate the corresponding first identification code; alternatively, it can be combined with an identification code generation library to generate the first identification code corresponding to the first encrypted string, etc. The specific settings can be configured according to actual needs.
[0070] Based on the above description, after generating a first identification code based on the door closing command, random number, and action information, this first identification code can be used as the basis for identification code matching, and matched with the second identification code displayed on the first terminal of the target object. If the second identification code matches the first identification code, the elevator door is controlled to close. Thus, even when only a camera is installed in the elevator, if the elevator door remains open for an extended period due to a false detection of an electric vehicle inside, the first identification code generated based on the door closing command, random number, and action information, combined with the second identification code displayed on the first terminal of the target object, allows the elevator door to close when the second identification code matches the first identification code. This solves the problem in existing technologies where, even with only a camera installed in the elevator, the elevator door remains open for an extended period due to a false detection of an electric vehicle, ensuring the normal operation of the elevator.
[0071] Based on any of the above embodiments, for example, in the above S104, when the second identification code matches the first identification code, controlling the elevator door to close may include at least two of the following possible scenarios.
[0072] In one possible scenario, the second identification code is the complete identification code displayed on the first terminal.
[0073] When the second identification code matches the first identification code, the elevator door can be closed by directly matching the second identification code with the complete first identification code generated based on the door closing command, random number and action information.
[0074] In another possible scenario, the second identification code is a partial block identification code displayed on the first terminal.
[0075] When the second identification code matches the first identification code, and the elevator door is controlled to close, after generating a complete first identification code based on the door closing command, random number, and action information, the first identification code can be further divided into a preset number of block identification codes. Then, a target block identification code is determined from the preset number of block identification codes based on a random number. When some block identification codes match the target block identification code, the elevator door is controlled to close. This method of controlling the elevator door to close based on the matching results of some block identification codes and the target block identification code can not only effectively improve the safety of elevator control but also effectively improve the efficiency of elevator control.
[0076] The preset quantity can be set according to actual needs.
[0077] Taking a preset quantity of 4 as an example, the first identification code can be divided into the top left block identification code, the top right block identification code, the bottom left block identification code, and the bottom right block identification code by combining the horizontal and vertical directions; or the first identification code can be divided into 4 blocks only in the horizontal direction; or the first identification code can be divided into 4 blocks only in the vertical direction, etc. The specific settings can be made according to actual needs.
[0078] Taking the division of the first identification code into the top left block identification code, the top right block identification code, the bottom left block identification code, and the bottom right block identification code as an example, when determining the target block identification code from a preset number of block identification codes based on a random number, the remainder of the random number and the preset number 4 can be calculated, and the block identification code corresponding to the remainder among the top left block identification code, the top right block identification code, the bottom left block identification code, and the bottom right block identification code can be determined as the target block identification code, so as to match it with the partial block identification codes displayed on the first terminal.
[0079] For example, when the remainder is 0, the corresponding block identifier can be the top-left block identifier; when the remainder is 1, the corresponding block identifier can be the top-right block identifier; when the remainder is 2, the corresponding block identifier can be the bottom-left block identifier; and when the remainder is 3, the corresponding block identifier can be the bottom-right block identifier. The specific settings can be made according to actual needs. Here, this application embodiment is only used as an example for illustration, but it does not mean that this application embodiment is limited to this.
[0080] Understandably, in this possible scenario, if the second identification code is a partial block identification code displayed on the first terminal, the partial block identification code can be directly matched with the complete first identification code generated based on the door closing command, random number, and action information, without having to divide the first identification code into blocks. The specific settings can be configured according to actual needs.
[0081] Based on the above description, if the elevator door remains open for an extended period due to the false detection of an electric vehicle inside the elevator when only a camera is installed in the elevator, a first identification code can be generated based on the door closing command, a random number, and motion information. This code, combined with a second identification code displayed on the target object's first terminal, allows the elevator door to close when the second identification code matches the first identification code. This solves the problem in the prior art where the elevator door remains open for an extended period due to the false detection of an electric vehicle inside the elevator when only a camera is installed, ensuring the normal operation of the elevator.
[0082] If the second identification code displayed on the first terminal when the camera device captures the target object is an identification code received from the second terminal, then the second terminal needs to generate a second identification code based on a random number and send the second identification code to the first terminal. The specific implementation can be found below. Figure 3The embodiment shown enables the camera device to control the elevator door to close when it determines that the second identification code matches the first identification code.
[0083] Figure 3 This is a flowchart illustrating another elevator control method provided in an embodiment of this application, applied to a second terminal. For example, please refer to... Figure 3 As shown, the elevator control method may include: S301. Receive a random number sent by the first terminal of the target object inside the elevator. The random number is generated by the camera device when it is determined that the elevator door has been open for a longer period than a preset time and the collected action information of the target object matches the preset action information.
[0084] It should be noted that the method for generating random numbers can be found in the relevant description in S101 above, and will not be repeated here in the embodiments of this application.
[0085] For example, the first terminal can send a random number to the second terminal via voice or text, etc., depending on the actual needs.
[0086] S302. Generate a second identification code based on the door closing command, random number and preset action information.
[0087] The door closing command is used to control the elevator door to close.
[0088] For example, when generating a second identification code based on a door closing command, a random number, and preset action information, these three pieces of information can be fused together to generate the second identification code.
[0089] It is understood that, in the embodiments of this application, given that the first identification code is generated based on the door closing command, random number and action information, and the second identification code is generated based on the door closing command, random number and preset action information, the first identification code and the second identification code are the same identification code when the action information matches the preset action information.
[0090] For example, in this embodiment of the application, in order to ensure the timeliness of the second identification code, when generating the second identification code, the current time information can be combined with the door closing command, random number and preset action information to generate the second identification code. In this way, by combining the current time information, the problem of leakage caused by the long-term validity of the second identification code can be avoided, the timeliness of the second identification code can be guaranteed, and the accuracy of the matching results of the subsequent identification codes can be further improved.
[0091] S303. Send the second identification code to the first terminal. The second identification code is used to instruct the camera device to control the elevator door to close when the second identification code matches the first identification code when the second identification code is displayed on the first terminal. The first identification code is generated by the camera device based on the door closing command, random number and action information.
[0092] As can be seen from this embodiment, after receiving a random number sent by the first terminal of the target object inside the elevator, the second terminal can first generate a second identification code based on the door closing command, the random number, and preset action information; send the second identification code to the first terminal, so that the camera device can collect the second identification code displayed by the first terminal of the target object, and control the elevator door to close when the second identification code matches the first identification code. Thus, even when only a camera device is installed in the elevator, if the elevator door remains open for an extended period due to a false detection of an electric vehicle inside, the second identification code generated by the second terminal can be used to control the elevator door to close when it matches the first identification code. This solves the problem in the prior art where, even with only a camera device installed in the elevator, the elevator door remains open for an extended period due to a false detection of an electric vehicle inside, ensuring the normal operation of the elevator.
[0093] Based on the above Figure 3 The illustrated embodiment, in order to facilitate understanding of how the second identification code is generated based on the door closing command, random number, and preset action information in S302 above, will be explained below. Figure 4 The embodiments shown are described in detail below.
[0094] Figure 4 A flowchart illustrating a method for generating a second identification code based on a door closing command, a random number, and preset action information, provided in this application embodiment, is shown below. For example, please refer to... Figure 4 As shown, the generation method may include: S401. Generate a second string based on the door closing command, random number, and preset action information.
[0095] It should be noted that the specific implementation of generating the second string based on the door closing command, random number and preset action information is similar to the specific implementation of generating the first string based on the door closing command, random number and action information in S201 above. Please refer to the relevant description above. Here, the embodiments of this application will not be described again.
[0096] S402. Determine the second key based on the preset action information, and encrypt the second string based on the second key to obtain the second encrypted string.
[0097] It should be noted that the specific implementation of determining the second key based on preset action information is similar to the specific implementation of determining the first key based on action information in S202 above, and can be referred to the relevant description above. Here, the embodiments of this application will not be described again.
[0098] It is understood that, in the embodiments of this application, since the first key is generated based on action information and the second key is generated based on preset action information, the first key and the second key are the same key when the action information matches the preset action information.
[0099] For example, when encrypting the second string based on the second key, an XOR encryption algorithm, a substitution encryption algorithm, or a shift encryption algorithm can be used to encrypt the second string. The specific method can be set according to actual needs.
[0100] S403. Generate a second identification code based on the second encrypted string.
[0101] For example, when generating a second identifier based on a second encrypted string, at least two of the following possible implementations can be included: In one possible implementation, the second encrypted string can be input into the identification code generation tool, which will then generate a corresponding identification code, which will be used as the second identification code. Alternatively, the identification code from the identification code generation library can be used as the second identification code. The specific settings can be configured according to actual needs.
[0102] In another possible implementation, the second encrypted string can be input into the identification code generation tool, which will generate the corresponding identification code and use it as the initial identification code; alternatively, it can be combined with the identification code from the identification code generation library and used as the initial identification code. The specific settings can be configured according to actual needs.
[0103] After generating the initial identification code, the initial identification code can be divided into a preset number of block identification codes; and a second identification code can be determined from the preset number of block identification codes based on a random number.
[0104] The initial identification code is a complete identification code, and the second identification code is a partial block identification code in the initial identification code.
[0105] It should be noted that the specific implementation of dividing the initial identification code into a preset number of block identification codes is similar to the specific implementation of dividing the first identification code into a preset number of block identification codes described above. The specific implementation of determining the second identification code from the preset number of block identification codes based on random numbers is similar to the specific implementation of determining the target block identification code from the preset number of block identification codes based on random numbers described above. Please refer to the relevant descriptions above. Here, the embodiments of this application will not be repeated.
[0106] Based on the above description, after the second terminal generates a second identification code based on the door closing command, a random number, and preset action information, it can send the second identification code to the first terminal. This allows the camera device to capture the second identification code displayed on the first terminal of the target object. If the second identification code matches the first identification code, the elevator door is controlled to close. Thus, even when only a camera device is installed in the elevator, if the elevator door remains open for an extended period due to a false detection of an electric vehicle inside, the second identification code generated by the second terminal can be used to close the elevator door when it matches the first identification code. This solves the problem in existing technologies where, even with only a camera device installed, the elevator door remains open for an extended period due to a false detection of an electric vehicle, ensuring the normal operation of the elevator.
[0107] This application also provides an elevator control system. For example, please refer to [link to example]. Figure 5 As shown, Figure 5 This is a schematic diagram of an elevator control system provided in an embodiment of this application. The elevator control system may include a camera device and a first terminal.
[0108] Among them, the camera equipment is used to generate a random number when it is determined that the elevator door is open for a longer period of time than a preset time and the action information of the target object inside the elevator matches the preset action information, and to generate a first identification code based on the door closing command, the random number and the action information. The first terminal is used to display the second identification code; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, a random number and preset action information; The camera device is also used to capture the second identification code displayed on the first terminal, and to control the elevator door to close when the second identification code matches the first identification code.
[0109] For example, if the second identification code is the identification code received by the first terminal from the second terminal, the elevator control system also includes a second terminal, which can be combined with the above. Figure 5 As shown, the camera device is also used to output random numbers; The first terminal is also used to send a random number to the second terminal when a random number is obtained.
[0110] To facilitate understanding of the elevator control method provided in the embodiments of this application, the following will be combined with the above. Figure 5 The elevator control system shown below provides a detailed description of the elevator control method provided in the embodiments of this application. Please refer to the following: Figure 6 The example shown.
[0111] Figure 6 This is an interactive schematic diagram of an elevator control method provided in an embodiment of this application, applied to the aforementioned elevator control system. The method may include: S601. When the camera device determines that the elevator door has been open for a longer period than a preset time and the collected motion information of the target object inside the elevator matches the preset motion information, it generates a random number.
[0112] S602, The camera device outputs random numbers.
[0113] For example, the camera device can output a random number via voice broadcast so that the target object can obtain the random number and input the random number to the first terminal, so that the first terminal can obtain the random number.
[0114] S603. After obtaining the random number, the first terminal sends the random number to the second terminal.
[0115] S604, the second terminal generates a second identification code based on the door closing command, random number, preset action information and current time information.
[0116] S605, the camera device generates a first identification code based on the door closing command, random number, action information and current time information.
[0117] It should be noted that in the embodiments of this application, there is no specific order between S605 and S602-S604. The embodiments of this application are only used as an example of executing S602-S604 first and then S605, but this does not mean that the embodiments of this application are limited to this.
[0118] S606, The second terminal sends the second identification code to the first terminal.
[0119] S607. The camera device collects the second identification code displayed on the first terminal, and controls the elevator door to close when the second identification code matches the first identification code.
[0120] As can be seen, when the camera device determines that the elevator door has been open for longer than a preset time and the collected action information of the target object inside the elevator matches the preset action information, it generates a random number. Based on the door closing command, the random number, and the action information, it generates a first identification code. Correspondingly, the property management staff's second terminal also generates a second identification code based on the door closing command, the random number, the preset action information, and the current time information. When the camera device determines that the second identification code matches the first identification code, it controls the elevator door to close. Thus, even with only a camera device installed in the elevator, if the elevator door remains open for an extended period due to a false detection of an electric vehicle inside, the first identification code can be generated based on the door closing command, the random number, and the action information. Combined with the second identification code displayed on the target object's first terminal, the elevator door can be controlled to close when the second identification code matches the first identification code. This solves the problem in existing technologies where, with only a camera device installed in the elevator, the elevator door remains open for an extended period due to a false detection of an electric vehicle, ensuring the normal operation of the elevator.
[0121] The elevator control device provided in this application is described below. The elevator control device described below can be referred to in correspondence with the elevator control method described above.
[0122] Figure 7 This is a schematic diagram of the structure of an elevator control device provided in an embodiment of this application, applied to a camera device. For example, please refer to [link to relevant documentation]. Figure 7 As shown, the elevator control device 70 may include: The first generation unit 701 is used to generate random numbers when it is determined that the elevator door opening time exceeds the preset time and the collected action information of the target object inside the elevator matches the preset action information. The second generation unit 702 is used to generate a first identification code based on the door closing command, the random number and the action information; The acquisition unit 703 is used to acquire the second identification code displayed by the first terminal of the target object; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number and the preset action information; Control unit 704 is used to control the elevator door to close when the second identification code matches the first identification code.
[0123] For example, in an embodiment of this application, the second generation unit 702 is used to generate a first identification code based on the door closing command, the random number, and the action information, including: Based on the door closing command, the random number, and the action information, a first string is generated; Based on the action information, a first key is determined, and the first string is encrypted based on the first key to obtain a first encrypted string; The first identification code is generated based on the first encrypted string.
[0124] For example, in an embodiment of this application, when the second identification code is a partial block identification code, the control unit 704 is used to control the elevator door to close when the second identification code matches the first identification code, including: The first identification code is divided into a preset number of block identification codes; The target block identification code is determined from the preset number of block identification codes based on the random number; If the partial block identification code matches the target block identification code, the elevator door is controlled to close.
[0125] The elevator control device 70 provided in this application embodiment can execute the technical solution of the elevator control method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the elevator control method. Please refer to the implementation principle and beneficial effects of the elevator control method. It will not be repeated here.
[0126] Figure 8 This is a schematic diagram of another elevator control device provided in an embodiment of this application, applied to a second terminal. For example, please refer to [link to relevant documentation]. Figure 8 As shown, the elevator control device 80 may include: The receiving unit 701 is used to receive a random number sent by the first terminal of the target object inside the elevator. The random number is generated by the camera device when it is determined that the elevator door has been open for a longer time than a preset time and the action information of the target object is matched with the preset action information. The generation unit 802 is used to generate a second identification code based on the door closing command, the random number, and the preset action information; The sending unit 803 is used to send the second identification code to the first terminal. The second identification code is used to instruct the camera device to control the elevator door to close when the second identification code matches the first identification code when the second identification code is displayed on the first terminal. The first identification code is generated by the camera device based on the door closing command, the random number, and the action information.
[0127] For example, in an embodiment of this application, the generation unit 802 is used to generate a second identification code based on the door closing command, the random number, and the preset action information, including: A second string is generated based on the door closing command, the random number, and the preset action information; A second key is determined based on the preset action information, and the second string is encrypted based on the second key to obtain a second encrypted string; The second identification code is generated based on the second encrypted string.
[0128] For example, in an embodiment of this application, the generation unit 802 is used to generate the second identification code based on the second encrypted string, including: An initial identification code is generated based on the second encrypted string, and the initial identification code is divided into a preset number of block identification codes; The second identification code is determined from the preset number of block identification codes based on the random number.
[0129] The elevator control device 80 provided in this application embodiment can execute the technical solution of the elevator control method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the elevator control method. Please refer to the implementation principle and beneficial effects of the elevator control method. It will not be repeated here.
[0130] Figure 9 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application, such as... Figure 9 As shown, the electronic device may include a processor 910, a communications interface 920, a memory 930, and a communication bus 940, wherein the processor 910, the communications interface 920, and the memory 930 communicate with each other via the communication bus 940. The processor 910 can call logical instructions in the memory 930 to execute an elevator control method. This method includes: generating a random number when it is determined that the elevator door opening time exceeds a preset time and the collected motion information of the target object inside the elevator matches the preset motion information; generating a first identification code based on a door closing command, the random number, and the motion information; collecting a second identification code displayed on a first terminal of the target object; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from a second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number, and the preset motion information; and controlling the elevator door to close when the second identification code matches the first identification code.
[0131] or, The processor 910 can call logic instructions in the memory 930 to execute an elevator control method, which includes: receiving a random number sent by a first terminal of a target object inside the elevator, the random number being generated by a camera device after determining that the elevator door has been open for a longer than a preset duration and that the collected motion information of the target object matches the preset motion information; generating a second identification code based on a door closing command, the random number, and the preset motion information; and sending the second identification code to the first terminal, wherein the second identification code is used to instruct the camera device to control the elevator door to close when the collected second identification code matches the first identification code, when the second identification code is displayed on the first terminal; wherein the first identification code is generated by the camera device based on the door closing command, the random number, and the motion information.
[0132] Furthermore, the logical instructions in the aforementioned memory 930 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a 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 this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0133] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the elevator control method provided by the above methods. The method includes: generating a random number when it is determined that the elevator door opening time exceeds a preset time and the collected action information of the target object inside the elevator matches the preset action information; generating a first identification code based on a door closing command, the random number, and the action information; collecting a second identification code displayed on a first terminal of the target object; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from a second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number, and the preset action information; and controlling the elevator door to close when the second identification code matches the first identification code.
[0134] or, When the computer program is executed by the processor, the computer can execute the elevator control method provided by the above methods. The method includes: receiving a random number sent by a first terminal of a target object inside the elevator, the random number being generated by a camera device when it is determined that the elevator door opening time exceeds a preset time and the collected action information of the target object matches the preset action information; generating a second identification code based on a door closing command, the random number, and the preset action information; sending the second identification code to the first terminal, the second identification code being used to instruct the camera device to control the elevator door to close when the collected second identification code matches the first identification code when the second identification code is displayed on the first terminal; wherein, the first identification code is generated by the camera device based on the door closing command, the random number, and the action information.
[0135] In another aspect, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the elevator control method provided by the above methods. The method includes: generating a random number when it is determined that the elevator door opening time exceeds a preset time and the collected motion information of a target object inside the elevator matches preset motion information; generating a first identification code based on a door closing command, the random number, and the motion information; collecting a second identification code displayed on a first terminal of the target object; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from a second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number, and the preset motion information; and controlling the elevator door to close when the second identification code matches the first identification code.
[0136] or, When executed by a processor, the computer program implements the elevator control method provided by the above methods. The method includes: receiving a random number sent by a first terminal of a target object inside the elevator, the random number being generated by a camera device after determining that the elevator door opening time exceeds a preset time and that the collected motion information of the target object matches preset motion information; generating a second identification code based on a door closing command, the random number, and the preset motion information; and sending the second identification code to the first terminal, wherein the second identification code, when displayed on the first terminal, instructs the camera device to control the elevator door to close when the collected second identification code matches a first identification code; wherein the first identification code is generated by the camera device based on the door closing command, the random number, and the motion information.
[0137] The device embodiments described above are merely illustrative. 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 network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0138] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. An elevator control method, characterized by, Applied to a camera device, the method includes: If the elevator door is open for a duration exceeding a preset duration and the collected action information of the target object inside the elevator matches the preset action information, a random number is generated. A first identification code is generated based on the door closing command, the random number, and the action information; The second identification code displayed on the first terminal of the target object is collected; wherein the second identification code is an identification code pre-stored by the first terminal, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number and the preset action information; If the second identification code matches the first identification code, the elevator door is controlled to close.
2. The elevator control method according to claim 1, characterized by, The generation of the first identification code based on the door closing command, the random number, and the action information includes: Based on the door closing command, the random number, and the action information, a first string is generated; Based on the action information, a first key is determined, and the first string is encrypted based on the first key to obtain a first encrypted string; The first identification code is generated based on the first encrypted string.
3. The elevator control method according to claim 1 or 2, characterized by When the second identification code is a partial block identification code, controlling the elevator door to close when the second identification code matches the first identification code includes: The first identification code is divided into a preset number of block identification codes; The target block identification code is determined from the preset number of block identification codes based on the random number; If the partial block identification code matches the target block identification code, the elevator door is controlled to close.
4. An elevator control method, characterized by, Applied to a second terminal, the method includes: The system receives a random number sent by a first terminal to a target object inside the elevator. The random number is generated by the camera device when it determines that the elevator door has been open for a longer period than a preset duration and the collected action information of the target object matches the preset action information. A second identification code is generated based on the door closing command, the random number, and the preset action information; The second identification code is sent to the first terminal. The second identification code is used to instruct the camera device to control the elevator door to close when the second identification code matches the first identification code when the second identification code is displayed on the first terminal. The first identification code is generated by the camera device based on the door closing command, the random number, and the action information.
5. The elevator control method according to claim 4, characterized by The generation of the second identification code based on the door closing command, the random number, and the preset action information includes: A second string is generated based on the door closing command, the random number, and the preset action information; A second key is determined based on the preset action information, and the second string is encrypted based on the second key to obtain a second encrypted string; The second identification code is generated based on the second encrypted string.
6. The elevator control method according to claim 5, characterized by The step of generating the second identification code based on the second encrypted string includes: An initial identification code is generated based on the second encrypted string, and the initial identification code is divided into a preset number of block identification codes; The second identification code is determined from the preset number of block identification codes based on the random number.
7. An elevator control system, characterized by Includes camera equipment and the first terminal; The camera device is used to generate a random number when it is determined that the elevator door is open for a longer period than a preset time and the collected action information of the target object inside the elevator matches the preset action information, and to generate a first identification code based on the door closing command, the random number and the action information. The first terminal is used to display a second identification code; wherein the second identification code is an identification code pre-stored in the first terminal of the target object, or an identification code received from the second terminal, and the identification code is generated by the second terminal based on the door closing command, the random number and the preset action information; The camera device is also used to collect the second identification code displayed on the first terminal, and to control the elevator door to close when the second identification code matches the first identification code.
8. The elevator control system of claim 7, wherein, If the second identification code is the identification code received by the first terminal from the second terminal, the elevator control system further includes the second terminal; The camera device is also used to output the random number; The first terminal is further configured to send the random number to the second terminal when the random number is obtained; The second terminal is used to generate the second identification code based on the door closing command, the random number, and the preset action information, and send the second identification code to the first terminal.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the elevator control method as described in any one of claims 1 to 3, or the elevator control method as described in any one of claims 4 to 6.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, it implements the elevator control method as described in any one of claims 1 to 3, or the elevator control method as described in any one of claims 4 to 6.