Elevator dispatching method and device, electronic equipment and storage medium
By using cameras and image processing technology in the elevator car, the remaining space of the elevator and the floors that need to be parked are accurately judged, which solves the problem that the elevator cannot accurately determine whether it is overloaded in the existing technology, and improves the elevator operation efficiency.
Patent Information
- Application Number
- CN202510168245.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-04-15
AI Technical Summary
When the existing elevator dispatching system determines the remaining space of the elevator, due to the influence of the passenger's body shape and the items carried, the elevator cannot accurately determine whether it is overloaded, which in turn affects the operating efficiency of the elevator.
By installing cameras in the elevator car, video information is collected, and image processing technology, including grid processing and edge identification, the remaining space of the elevator and the target floor that needs to be docked. Based on this information, scheduling instructions are generated to instruct the elevator not to stop on floors other than the target floor.
It improves the accuracy of the elevator when judging whether it is overloaded, reduces the time for the elevator to stay on non-target floors, and thus improves the operating efficiency of the elevator.
Smart Images

Figure CN119822181A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of elevator dispatching, and in particular to an elevator dispatching method and device, electronic equipment and storage medium. Background Art
[0002] Elevator dispatching systems are usually based on a simple destination request model, mainly managing the operation of multiple elevators through routes and priority rules to ensure a quick response to passenger needs.
[0003] In the elevator dispatching process of the related technology, it is necessary to judge whether the elevator is overloaded by the load in the elevator car. However, due to the influence of the passenger's body shape and the items they carry, the elevator may accept new passengers on the middle floor even though it is not overloaded and cannot accommodate more passengers, which seriously affects the operation efficiency of the elevator. Summary of the invention
[0004] The present disclosure provides an elevator dispatching method and device, electronic equipment and storage medium. The main purpose is to solve the problem that due to the influence of passengers' body shape and the items they carry, the elevator will not be overloaded and cannot accommodate more passengers, but will accept new passengers on the middle floor, which will seriously affect the operation efficiency of the elevator.
[0005] According to a first aspect of the present disclosure, there is provided an elevator dispatching method, comprising:
[0006] receiving first video information and floor demand information corresponding to passengers in the elevator car to be dispatched through a reservation network;
[0007] Determine the remaining elevator space corresponding to the elevator to be scheduled based on the first video information, and determine the target floor where the elevator to be scheduled needs to stop based on the floor demand information;
[0008] When it is determined that the remaining space of the elevator is less than a predetermined remaining space threshold, a target dispatching instruction corresponding to the elevator to be dispatched is generated, and the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at floors other than the target floor.
[0009] Optionally, determining the remaining elevator space corresponding to the elevator to be scheduled based on the first video information includes:
[0010] Extracting a target frame image corresponding to the closing moment of the car of the elevator to be scheduled from the first video information;
[0011] Performing gridding processing on the target frame image, and identifying from the gridded image a first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled, and a second grid number occupied by the passengers in the elevator car on the bottom surface of the interior of the elevator car;
[0012] The remaining space of the elevator is determined based on the first grid number and the second grid number.
[0013] Optionally, the gridding process is performed on the target frame image, and a first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled and a second grid number occupied by passengers in the interior of the elevator car are identified from the gridded image, including:
[0014] Performing image preprocessing on the target frame image to obtain an image to be recognized that meets a predetermined image condition;
[0015] Identify, from the image to be identified, first edge information corresponding to the bottom surface of the interior of the car and second edge information corresponding to the passenger inside the car;
[0016] Based on the first edge information and the second edge information, the interior bottom surface of the car in the image to be identified is gridded to obtain the first grid number and the second grid number occupied by the passengers inside the car in the interior bottom surface of the car.
[0017] Optionally, the step of identifying, from the image to be identified, first edge information corresponding to the bottom surface of the interior of the car and second edge information corresponding to the passenger in the car, comprises:
[0018] Performing edge recognition on the image to be recognized based on a predetermined edge detection function;
[0019] If it is determined that the passenger inside the car obstructs the bottom surface of the car, the preset internal edge reference line of the car corresponding to the internal bottom surface of the car is identified to obtain the third edge information corresponding to the preset internal edge reference line of the car, and based on the mapping relationship between the internal bottom surface of the car and the preset internal edge reference line of the car, the first edge information is determined through the third edge information.
[0020] Optionally, performing image preprocessing on the target frame image to obtain an image to be recognized that meets a predetermined image condition includes:
[0021] Performing image dimensionality reduction processing on the target frame image to obtain a one-dimensional grayscale image corresponding to the target frame image;
[0022] The one-dimensional grayscale image is subjected to image denoising and binarization processing to obtain the image to be identified.
[0023] Optionally, determining the remaining elevator space based on the first grid number and the second grid number includes:
[0024] Determine a ratio of the second number of grids to the first number of grids, and determine the product of the ratio and the rated area corresponding to the bottom surface of the interior of the car as the occupied area of the passengers inside the car;
[0025] The difference between the rated area and the area occupied by passengers inside the car is determined as the elevator remaining space.
[0026] Optionally, the method further includes:
[0027] receiving second video information and riding demand information corresponding to passengers in the waiting area of each floor through a reservation network, wherein the riding demand information indicates that the riding demand of the passengers in the waiting area is to take an elevator up and / or to take an elevator down;
[0028] Determine the number of dispatchable elevators other than the elevator to be dispatched in the elevator system where the elevator to be dispatched is located, and determine, based on the second video information, a target waiting area floor where the number of waiting passengers corresponding to the waiting area is greater than or equal to a predetermined waiting passenger threshold;
[0029] Based on the riding demand information and the number of the dispatchable elevators, a unified dispatch instruction corresponding to the dispatchable elevators is generated, and the unified dispatch instruction is used to dispatch the dispatchable elevators to the target waiting area floor.
[0030] According to a second aspect of the present disclosure, there is provided an elevator dispatching device, comprising:
[0031] A receiving unit, used for receiving first video information and floor demand information corresponding to passengers in the car of the elevator to be dispatched through a predetermined network;
[0032] a determination unit, configured to determine the remaining elevator space corresponding to the elevator to be scheduled based on the first video information, and determine the target floor where the elevator to be scheduled needs to stop based on the floor demand information;
[0033] A generating unit is used to generate a target dispatching instruction corresponding to the elevator to be dispatched when it is determined that the remaining space of the elevator is less than a predetermined remaining space threshold, wherein the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at a floor other than the target floor.
[0034] Optionally, the determining unit includes:
[0035] An extraction module, used to extract a target frame image corresponding to the closing moment of the car of the elevator to be scheduled from the first video information;
[0036] A processing module, used for performing grid processing on the target frame image, and identifying from the grid-processed image a first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled, and a second grid number occupied by the passengers in the elevator car on the bottom surface of the interior of the elevator car;
[0037] A determination module is used to determine the remaining space of the elevator based on the first grid number and the second grid number.
[0038] Optionally, the processing module is further configured to:
[0039] Performing image preprocessing on the target frame image to obtain an image to be recognized that meets a predetermined image condition;
[0040] Identify, from the image to be identified, first edge information corresponding to the bottom surface of the interior of the car and second edge information corresponding to the passenger inside the car;
[0041] Based on the first edge information and the second edge information, the interior bottom surface of the car in the image to be identified is gridded to obtain the first grid number and the second grid number occupied by the passengers inside the car in the interior bottom surface of the car.
[0042] Optionally, the processing module is further configured to:
[0043] Performing edge recognition on the image to be recognized based on a predetermined edge detection function;
[0044] If it is determined that the passenger inside the car obstructs the bottom surface of the car, the preset internal edge reference line of the car corresponding to the internal bottom surface of the car is identified to obtain the third edge information corresponding to the preset internal edge reference line of the car, and based on the mapping relationship between the internal bottom surface of the car and the preset internal edge reference line of the car, the first edge information is determined through the third edge information.
[0045] Optionally, the processing module is further configured to:
[0046] Performing image dimensionality reduction processing on the target frame image to obtain a one-dimensional grayscale image corresponding to the target frame image;
[0047] The one-dimensional grayscale image is subjected to image denoising and binarization processing to obtain the image to be identified.
[0048] Optionally, the determining module is further configured to:
[0049] Determine a ratio of the second number of grids to the first number of grids, and determine the product of the ratio and the rated area corresponding to the bottom surface of the interior of the car as the occupied area of the passengers inside the car;
[0050] The difference between the rated area and the area occupied by passengers inside the car is determined as the elevator remaining space.
[0051] Optionally, the generating unit further includes:
[0052] A receiving module, used for receiving second video information and riding demand information corresponding to passengers in the waiting area of each floor through a reservation network, wherein the riding demand information indicates that the riding demand of the passengers in the waiting area is to take an elevator up and / or take an elevator down;
[0053] a determination module, configured to determine the number of dispatchable elevators other than the elevator to be dispatched in the elevator system where the elevator to be dispatched is located, and to determine, based on the second video information, a target waiting area floor where the number of waiting passengers corresponding to the waiting area is greater than or equal to a predetermined waiting passenger threshold;
[0054] A generation module is used to generate a unified dispatch instruction corresponding to the dispatchable elevators based on the riding demand information and the number of the dispatchable elevators, and the unified dispatch instruction is used to dispatch the dispatchable elevators to the target waiting area floor.
[0055] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0056] at least one processor; and
[0057] a memory communicatively connected to the at least one processor; wherein,
[0058] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0059] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0060] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.
[0061] The elevator dispatching method and device, electronic device and storage medium provided by the present disclosure receive the first video information and floor demand information corresponding to the passengers in the car of the elevator to be dispatched through a predetermined network; determine the remaining space of the elevator corresponding to the elevator to be dispatched based on the first video information, and determine the target floor where the elevator to be dispatched needs to stop based on the floor demand information; if it is determined that the remaining space of the elevator is less than the predetermined remaining space threshold, generate a target dispatching instruction corresponding to the elevator to be dispatched, and the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at floors other than the target floor. Compared with the related art, the embodiment of the present disclosure determines the remaining space in the elevator and the target floor to be stopped based on the first video information in the elevator car, so that when there is no remaining space in the elevator to accommodate more passengers, the server can instruct the elevator to stop stopping at other floors except the target floor, thereby shortening the single operation time of the elevator and increasing the operation efficiency of the elevator.
[0062] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0065] Figure 1 A flowchart of an elevator dispatching method provided by an embodiment of the present disclosure;
[0066] Figure 2 A schematic diagram of an example structure provided for an embodiment of the present disclosure;
[0067] Figure 3 A schematic diagram of an example provided for an embodiment of the present disclosure;
[0068] Figure 4 A flowchart of an elevator dispatching method provided by an embodiment of the present disclosure;
[0069] Figure 5 A schematic diagram of an example provided for an embodiment of the present disclosure;
[0070] Figure 6 A schematic diagram of an example provided for an embodiment of the present disclosure;
[0071] Figure 7 A schematic diagram of an example process provided for an embodiment of the present disclosure;
[0072] Figure 8 A schematic diagram of the structure of an elevator dispatching device provided in an embodiment of the present disclosure;
[0073] Fig. 9 A schematic diagram of the structure of an elevator dispatching device provided in an embodiment of the present disclosure;
[0074] Fig.10 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0075] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0076] The elevator dispatching method and device, electronic device and storage medium according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0077] Figure 1 A flowchart of an elevator dispatching method provided in an embodiment of the present disclosure is provided.
[0078] like Figure 1 As shown, the method is applied in a server, and the method comprises the following steps:
[0079] Step 101, receiving first video information and floor demand information corresponding to passengers in a car of an elevator to be scheduled through a predetermined network.
[0080] It should be noted that the execution subject of the present disclosure may be a server, specifically an edge server, wherein an edge server may be a type of server located at the edge of a network, close to a data source or information consumer. They are mainly used to process and store data that requires a quick response to reduce latency and improve application performance. Edge computing is a complementary form of cloud computing that enables data processing to be performed closer to where the data is generated, rather than transmitting all of it to a central data center or cloud for processing. Specifically, Figure 2 As shown, if the server used in this application is an edge server, the server can transmit data with the elevator through a network transmission system.
[0081] In the embodiment of the present application, the predetermined network may be a network whose transmission speed reaches a certain speed threshold, for example Figure 3 As shown, in the present disclosure, the transmission of the first video information and the floor demand information between the server and the elevator can be carried out through a switch, wherein the switch can receive the video information and the floor demand information collected on the elevator to be scheduled through a gigabit network cable, and transmit it to the edge server for analysis through a fiber optic high-speed network; using a network with a transmission speed that reaches a certain speed threshold through the switch can increase the transmission rate, thereby improving the scheduling efficiency of the elevator.
[0082] In some examples, the first video information may be video data of the interior of an elevator car collected by the elevator to be dispatched. By collecting the first video information of the interior of the elevator car, the passenger situation in the elevator car can be obtained, and then the remaining space in the elevator car can be determined; the corresponding floor demand information may be the target floor information selected by the passengers in the car. For example, the elevator car includes passengers A, B and C. If passenger A selects the 8th floor as the target floor in the car, passenger B selects the 10th floor as the target floor in the car, and passenger C selects the 14th floor as the target floor in the car, then the corresponding floor demand information of the passengers can be determined as the 8th, 10th and 14th floors, and so on. Examples are not given one by one here.
[0083] It should be noted that the embodiment of the present disclosure can quickly receive the first video information and floor demand information corresponding to the passengers inside the car of the elevator to be dispatched through a predetermined network, so that the server can quickly obtain the passenger status of the elevator to be dispatched, and the floor information to which the elevator to be dispatched needs to run. Then, the processor can quickly analyze the situation of the elevator to be dispatched based on the first video information and the floor demand information, so that the elevator to be dispatched can run the corresponding instructions.
[0084] Step 102, determining the remaining elevator space corresponding to the elevator to be scheduled based on the first video information, and determining the target floor at which the elevator to be scheduled needs to stop based on the floor demand information.
[0085] For this embodiment, the remaining space of the elevator can be the remaining space after the passengers enter the elevator. Accordingly, the target floor to be stopped can be the command triggered by the passenger pressing a button in the elevator car, thereby selecting the target floor to be reached.
[0086] Exemplarily, based on the example in step 101, if the floor demand information corresponding to the passenger is the 8th, 10th and 14th floors, the target floors that the elevator to be dispatched needs to stop at can be the 8th, 10th and 14th floors, and so on, and examples are not given one by one here.
[0087] It should be noted that due to the differences in passengers' body shapes and the amount of items they carry, the elevator often does not reach its full load weight even when there is no remaining space. As a result, the elevator cannot accommodate more passengers and still needs to stop when other floors need to be called for. This leads to low elevator operation efficiency. In the disclosed embodiment, the remaining space in the elevator is determined based on the first video information in the elevator car. In this way, when there is no remaining space in the elevator to accommodate more passengers, the server can instruct the elevator not to stop at other floors before completing the floor instructions of the passengers in the current car, thereby increasing the elevator operation efficiency.
[0088] Step 103, when it is determined that the remaining space of the elevator is less than the predetermined remaining space threshold, a target dispatching instruction corresponding to the elevator to be dispatched is generated.
[0089] The target dispatch instruction is used to instruct the elevator to be dispatched not to stop at floors other than the target floor.
[0090] In the embodiment of the present application, the predetermined remaining space threshold may be a pre-set space that can accommodate one passenger. It should be noted that the predetermined remaining space threshold may be set according to demand or experience, and the specific value of the predetermined space threshold is not limited in the embodiment of the present application.
[0091] In some examples, the target scheduling instruction can be an instruction generated by the server and sent to the elevator to be scheduled for execution. Specifically, through the target scheduling instruction, the server can control the elevator to be scheduled not to stop at floors other than the target floor when the remaining space is less than a predetermined remaining space threshold.
[0092] For example, if there are 5 passengers entering elevator A on the first floor, among them, 3 passengers carry other items, resulting in the elevator not reaching the full load weight but unable to accommodate another passenger to enter elevator A, the target floors for the 5 passengers are the 7th and 11th floors; after receiving the video data of elevator A, the server determines that the remaining space of elevator A is less than the predetermined remaining space threshold, then the server sends a target scheduling instruction to elevator A, controlling elevator A not to stop at floors other than the 7th and 11th floors during this scheduling process, that is, if there are passengers on the 8th floor who need to go up, elevator A will not stop when passing the 8th floor.
[0093] The elevator dispatching method provided by the present disclosure receives the first video information and floor demand information corresponding to the passengers in the car of the elevator to be dispatched through a predetermined network; determines the remaining space of the elevator corresponding to the elevator to be dispatched based on the first video information, and determines the target floor where the elevator to be dispatched needs to stop based on the floor demand information; and generates a target dispatching instruction corresponding to the elevator to be dispatched when it is determined that the remaining space of the elevator is less than the predetermined remaining space threshold, and the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at floors other than the target floor. Compared with the related art, the embodiment of the present disclosure determines the remaining space in the elevator and the target floor to be stopped based on the first video information in the elevator car, so that when there is no remaining space in the elevator to accommodate more passengers, the server can instruct the elevator to stop stopping at other floors except the target floor, thereby shortening the single operation time of the elevator and increasing the operation efficiency of the elevator.
[0094] As a refinement of step 101, when determining the remaining elevator space corresponding to the elevator to be scheduled based on the first video information, the following methods may be used but are not limited to: Figure 4 As shown, including:
[0095] Step 201: extracting a target frame image corresponding to the closing moment of the car of the elevator to be scheduled from the first video information.
[0096] In an embodiment of the present application, the closing moment of the elevator car to be scheduled may be the moment when the car door closes after the passengers have entered the elevator car. By determining the image of the car closing moment in the first video information as the target frame image, the server can accurately determine the space occupied by the passengers in the elevator to be scheduled, thereby avoiding the situation where the passenger occupied area is inaccurately calculated due to the passenger not fully entering the car, thereby improving the accuracy of server processing.
[0097] Step 202, gridding the target frame image, and identifying from the gridded image the first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled, and the second grid number occupied by the passengers in the bottom surface of the interior of the car.
[0098] For this embodiment, gridding the image may be performed by dividing an image into a plurality of small, regularly arranged sub-regions (ie, grids). For the disclosed embodiment, the target frame image may be gridded.
[0099] In the disclosed embodiment, the image can be processed by the Open Source Computer Vision Library (OpenCV), which is an open source computer vision and machine learning software library. OpenCV provides a large number of image processing and computer vision algorithms and is widely used in image processing, video capture, computer vision and other fields.
[0100] As an optional method, the target frame image can be gridded by using OpenCV, and then the number of first grids corresponding to the bottom surface of the car interior and the number of second grids corresponding to the passengers in the car in the target frame image can be identified.
[0101] Step 203, determining the remaining space of the elevator based on the first grid number and the second grid number.
[0102] By using the first grid number and the second grid number, the server can more quickly determine the area of the bottom surface of the car and the area occupied by the passengers in the target frame image, and then determine the remaining space of the elevator, so that the server has a higher processing efficiency, thereby improving the dispatching efficiency of the elevator.
[0103] As a refinement of step 202, when performing gridding processing on the target frame image and identifying the first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled and the second grid number occupied by the passengers in the bottom surface of the interior of the car from the gridded image, it can be implemented in but not limited to the following ways, including: performing image preprocessing on the target frame image to obtain an image to be identified that meets predetermined image conditions; identifying first edge information corresponding to the bottom surface of the interior of the car and second edge information corresponding to the passengers in the car from the image to be identified; based on the first edge information and the second edge information, gridding the bottom surface of the interior of the car in the image to be identified to obtain the first grid number and the second grid number occupied by the passengers in the bottom surface of the interior of the car.
[0104] In an embodiment of the present application, the predetermined image condition may be an image condition corresponding to a preprocessing process. Meeting the predetermined image condition may improve the server's recognition speed of the image, so that the server may more quickly identify the first edge information of the bottom surface of the car and the second edge information of the passenger inside the car.
[0105] In some examples, the first edge information may be the edge of the bottom surface of the interior of the car identified in the image to be identified that meets the predetermined image conditions, and correspondingly, the second edge information may be the edge of the area occupied by the passengers inside the car on the bottom surface of the interior of the car identified in the image to be identified that meets the predetermined image conditions.
[0106] As a refinement of the above embodiment, when identifying the first edge information corresponding to the inner bottom surface of the car and the second edge information corresponding to the passenger inside the car from the image to be identified, it can be implemented in but not limited to the following ways, including: performing edge recognition on the image to be identified based on a predetermined edge detection function; if it is determined that the inner bottom surface of the car is blocked by the passenger inside the car, then identifying the preset inner edge reference line of the car corresponding to the inner bottom surface, obtaining the third edge information corresponding to the preset inner edge reference line of the car, and determining the first edge information through the third edge information based on the mapping relationship between the inner bottom surface of the car and the preset inner edge reference line of the car.
[0107] In the embodiments of the present application, Figure 5 As shown in the figure, due to the influence of the position of the passengers, the bottom edge of the elevator may be blocked by the passengers, and the edge of the elevator cannot be accurately identified. Therefore, 4 reference lines are added at higher positions on the walls around the elevator. Since the positions of the reference lines and the bottom line of the elevator are relatively fixed, the positions of the 4 edge lines at the bottom of the elevator can be obtained through the proportional relationship.
[0108] It should be noted that the number of preset car internal edge reference lines can be 4 or 2, and the specific number of preset reference lines is not specifically limited in the embodiments of the present application.
[0109] As a refinement of the above embodiment, when performing image preprocessing on the target frame image to obtain an image to be identified that meets predetermined image conditions, it can be implemented by but not limited to the following methods, including: performing image dimensionality reduction processing on the target frame image to obtain a one-dimensional grayscale image corresponding to the target frame image; performing image denoising and binarization processing on the one-dimensional grayscale image to obtain the image to be identified.
[0110] In the embodiment of the present application, the image dimension reduction processing can be to reduce the dimension of the three-dimensional target frame image to obtain a one-dimensional grayscale image. Specifically, in the image processing process, the three-dimensional target frame image is an RGB image composed of three components R, G, and B, which will lead to a large amount of calculation and reduce the server processing efficiency. Therefore, before further processing, it is necessary to convert the color image into a one-dimensional grayscale image, which can improve the processing efficiency of the server.
[0111] In some examples, due to the influence of camera pixels and environment, grayscale images often contain multiple noise points. Using the median filter method, all pixel values in the neighborhood can be sorted and the middle value can be used as the pixel value, which can effectively reduce noise interference.
[0112] For the embodiment of the present application, as long as the bottom of the elevator and the passengers can be distinguished, the grayscale value of the image is meaningless to the server processing. Therefore, it is necessary to perform binary processing on the image, that is, to make the image only present two colors: pure black and pure white. Binarization can greatly reduce the complexity of image processing and improve the processing speed of the server.
[0113] In some examples, the FindContours function in the opencv algorithm library can be used to find the bottom of the car and the edge of the passenger to make a distinction. Specifically, through findContours, the boundary point set of all white areas can be found from the binary image and returned as a series of contours. Each contour consists of a series of points, indicating the location of the boundary. Since the camera shoots from top to bottom, the head is the most obvious feature of the passenger. By taking advantage of the difference in color between the waiting area floor and the passenger, a pure black and white image of the head feature is obtained after grayscale and binarization processing, and then the opencv edge detection function and counting function are used for counting.
[0114] As a refinement of the above embodiment, when determining the remaining space of the elevator based on the first grid number and the second grid number, it can be implemented by but not limited to the following methods, including: determining the ratio of the second grid number to the first grid number, and determining the product of the ratio and the rated area corresponding to the bottom surface of the interior of the car as the occupied area of the passengers inside the car; determining the difference between the rated area and the occupied area of the passengers inside the car as the remaining space of the elevator.
[0115] In the embodiment of the present application, the grid method is used to divide the bottom of the car into 总 =i*j grids, calculate the number of grids occupied by passengers P 乘 In addition, since the total area of the bottom of the car is a constant Stotal, the remaining area in the elevator is S 剩 It can be calculated by the following formula:
[0116]
[0117] It should be noted that the denser the grid division, the more accurate the calculation. In image processing, the maximum grid division can be based on pixel points. In the opencv library, the ContourArea function is used to calculate the remaining area.
[0118] As an extension of the above-mentioned embodiment, the method of this embodiment also includes: receiving second video information and riding demand information corresponding to passengers in the waiting area of each floor through a predetermined network, determining the number of dispatchable elevators other than the elevator to be dispatched in the elevator system where the elevator to be dispatched is located, and, based on the second video information, determining the target waiting area floor where the number of waiting passengers corresponding to the waiting area passengers is greater than or equal to the predetermined waiting passenger threshold; based on the riding demand information and the number of dispatchable elevators, generating a unified dispatch instruction corresponding to the dispatchable elevators.
[0119] Among them, the riding demand information indicates that the riding demand of the passengers in the waiting area is to take the elevator up and / or take the elevator down; the unified dispatching instruction is used to dispatch the dispatchable elevators to the target waiting area floor.
[0120] It should be noted that if Figure 6 As shown, the elevator in the embodiment of the present application includes not only the basic operating functions of a traditional elevator, but also adds the function of collecting video data inside the elevator and in the waiting area, and sends the video stream to the server in real time through a high-speed network transmission system. The video stream collected by the camera inside the elevator will be used to analyze the remaining space inside the elevator, and the video stream collected by the camera in the waiting area will be used to analyze the number of people waiting for the elevator on that floor.
[0121] For example, if the remaining area in the elevator car is calculated to be unable to accommodate another passenger during the upward phase, and there are still many passengers who need to go up on this floor, the server will mobilize other idle elevators to undertake the upward task until all elevators are fully loaded. Suppose the floors of the building are m1, m2, ..., mn. When the m1 elevator is fully loaded and there are no passengers in the elevator to the m2 floor, the passengers on the m2 floor need to go up, and the elevator will not stop. After all passengers are transported, the downward task begins. When the elevator goes down, it stops at the floors where the passengers are located from top to bottom. If the elevator is identified as fully loaded, it will give priority to transporting the passengers in the car to the target floor, and then make the next decision.
[0122] In order to better understand the elevator dispatching method in the related art, Figure 7 As shown, the server can process the collected video information of each elevator subsystem and the elevator call response information in a unified manner, and obtain information such as the space that can be accommodated inside the elevator, the number of people waiting on each floor, and the arrival of passengers in the elevator car at the target floor, so as to quickly obtain the stop floor of each elevator and send control instructions. The specific processing process may include first obtaining the video information transmitted by the elevator through the network, and obtaining the key frames in the elevator car from the video information, and then performing noise reduction, binarization and boundary extraction on the key frames, and finally calculating the remaining area in the elevator car, and controlling the elevator based on the remaining area.
[0123] In summary, the embodiments of the present disclosure can achieve the following effects:
[0124] The embodiment of the present disclosure calculates the remaining elevator space corresponding to the elevator to be dispatched and the target floor at which the elevator to be dispatched needs to stop through a server, and when it is determined that the remaining elevator space is less than a predetermined remaining space threshold, controls the elevator to be dispatched not to stop at floors other than the target floor through a target control instruction. The present disclosure can use the elevator car accommodating space as a standard to determine whether the elevator is fully loaded, on the premise that the rated weight of the elevator is not exceeded. The present disclosure can obtain data such as the flow of people in the elevator car and the waiting area through the first video information and the second video information. At the same time, the server is used as the control center to process the real-time acquired data and make corresponding elevator control decisions through calculation. In addition, the present disclosure uses the image data collected by the surveillance camera to meet the computing use of the server, without bringing too much additional cost to the use of the present disclosure.
[0125] Corresponding to the above elevator dispatching method, the present invention also provides an elevator dispatching device. Since the device embodiment of the present invention corresponds to the above method embodiment, details not disclosed in the device embodiment can be referred to the above method embodiment, and will not be described in detail in the present invention.
[0126] Figure 8 A schematic diagram of an elevator dispatching device provided by an embodiment of the present disclosure, wherein the device is applied to a server, such as Figure 8 As shown, including:
[0127] A receiving unit 31 is used to receive first video information and floor demand information corresponding to passengers in the car of the elevator to be scheduled through a predetermined network;
[0128] A determination unit 32 is used to determine the remaining elevator space corresponding to the elevator to be scheduled based on the first video information, and to determine the target floor where the elevator to be scheduled needs to stop based on the floor demand information;
[0129] The generating unit 33 is used to generate a target dispatching instruction corresponding to the elevator to be dispatched when it is determined that the remaining space of the elevator is less than a predetermined remaining space threshold, wherein the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at a floor other than the target floor.
[0130] The elevator dispatching device provided by the present disclosure receives the first video information and floor demand information corresponding to the passengers in the car of the elevator to be dispatched through a predetermined network; determines the remaining space of the elevator corresponding to the elevator to be dispatched based on the first video information, and determines the target floor where the elevator to be dispatched needs to stop based on the floor demand information; and generates a target dispatching instruction corresponding to the elevator to be dispatched when it is determined that the remaining space of the elevator is less than the predetermined remaining space threshold, and the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at floors other than the target floor. Compared with the related art, the embodiment of the present disclosure determines the remaining space in the elevator and the target floor to be stopped based on the first video information in the elevator car, so that when there is no remaining space in the elevator to accommodate more passengers, the server can instruct the elevator to stop stopping at other floors except the target floor, thereby shortening the single operation time of the elevator and increasing the operation efficiency of the elevator.
[0131] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Figure 8 As shown, the determining unit 32 includes:
[0132] An extraction module 321 is used to extract a target frame image corresponding to the closing moment of the car of the elevator to be scheduled from the first video information;
[0133] The processing module 322 is used to perform grid processing on the target frame image, and identify the first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled and the second grid number occupied by the passengers in the interior of the elevator car in the bottom surface of the interior of the elevator car from the grid-processed image;
[0134] The determination module 323 is used to determine the remaining space of the elevator based on the first grid number and the second grid number. Further, in a possible implementation of the embodiment of the present disclosure, as Fig. 9 As shown, the processing module 322 is also used for:
[0135] Performing image preprocessing on the target frame image to obtain an image to be recognized that meets a predetermined image condition;
[0136] Identify, from the image to be identified, first edge information corresponding to the bottom surface of the interior of the car and second edge information corresponding to the passenger inside the car;
[0137] Based on the first edge information and the second edge information, the interior bottom surface of the car in the image to be identified is gridded to obtain the first grid number and the second grid number occupied by the passengers inside the car in the interior bottom surface of the car.
[0138] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig. 9 As shown, the processing module 322 is also used for:
[0139] Performing edge recognition on the image to be recognized based on a predetermined edge detection function;
[0140] If it is determined that the passenger inside the car obstructs the bottom surface of the car, the preset internal edge reference line of the car corresponding to the internal bottom surface of the car is identified to obtain the third edge information corresponding to the preset internal edge reference line of the car, and based on the mapping relationship between the internal bottom surface of the car and the preset internal edge reference line of the car, the first edge information is determined through the third edge information.
[0141] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig. 9 As shown, the processing module 322 is also used for:
[0142] Performing image dimensionality reduction processing on the target frame image to obtain a one-dimensional grayscale image corresponding to the target frame image;
[0143] The one-dimensional grayscale image is subjected to image denoising and binarization processing to obtain the image to be identified.
[0144] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig. 9 As shown, the determination module 323 is also used for:
[0145] Determine a ratio of the second number of grids to the first number of grids, and determine the product of the ratio and the rated area corresponding to the bottom surface of the interior of the car as the occupied area of the passengers inside the car;
[0146] The difference between the rated area and the area occupied by passengers inside the car is determined as the elevator remaining space.
[0147] Furthermore, in a possible implementation of the embodiment of the present disclosure, as Fig. 9 As shown, the generating unit 33 includes:
[0148] The receiving module 331 is used to receive the second video information and riding demand information corresponding to the passengers in the waiting area of each floor through the reservation network, wherein the riding demand information indicates that the riding demand of the passengers in the waiting area is to take the elevator up and / or take the elevator down;
[0149] A determination module 332 is used to determine the number of dispatchable elevators other than the elevator to be dispatched in the elevator system where the elevator to be dispatched is located, and determine, based on the second video information, a target waiting area floor where the number of waiting passengers corresponding to the waiting area is greater than or equal to a predetermined waiting passenger threshold;
[0150] The generating module 333 is used to generate a unified dispatching instruction corresponding to the dispatchable elevators based on the riding demand information and the number of the dispatchable elevators, and the unified dispatching instruction is used to dispatch the dispatchable elevators to the target waiting area floor.
[0151] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.
[0152] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0153] Fig.10 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0154] like Fig.10 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 to a RAM (Random Access Memory) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O (Input / Output) interface 405 is also connected to the bus 404.
[0155] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0156] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as a redundant testing method for hot plugging of a device. For example, in some embodiments, the redundant testing method for hot plugging of a device may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the aforementioned device hot-plugging redundancy testing method in any other appropriate manner (eg, by means of firmware).
[0157] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0158] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0159] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0160] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0161] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0162] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0163] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0164] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0165] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An elevator dispatching method, characterized in that: include: receiving first video information and floor demand information corresponding to passengers in the car of the elevator to be dispatched through a reservation network; Determine the remaining elevator space corresponding to the elevator to be scheduled based on the first video information, and determine the target floor where the elevator to be scheduled needs to stop based on the floor demand information; When it is determined that the remaining space of the elevator is less than a predetermined remaining space threshold, a target dispatching instruction corresponding to the elevator to be dispatched is generated, and the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at floors other than the target floor.
2. The method according to claim 1, characterized in that The determining, based on the first video information, the remaining elevator space corresponding to the elevator to be scheduled includes: Extracting a target frame image corresponding to the closing moment of the car of the elevator to be scheduled from the first video information; Performing gridding processing on the target frame image, and identifying from the gridded image a first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled, and a second grid number occupied by the passengers in the elevator car on the bottom surface of the interior of the elevator car; The remaining space of the elevator is determined based on the first grid number and the second grid number.
3. The method according to claim 2, characterized in that The gridding process is performed on the target frame image, and the first grid number corresponding to the bottom surface of the interior of the elevator car to be scheduled and the second grid number occupied by the passengers in the elevator car on the bottom surface of the interior of the elevator car are identified from the gridded image, including: Performing image preprocessing on the target frame image to obtain an image to be recognized that meets a predetermined image condition; Identify, from the image to be identified, first edge information corresponding to the bottom surface of the interior of the car and second edge information corresponding to the passenger inside the car; Based on the first edge information and the second edge information, the interior bottom surface of the car in the image to be identified is gridded to obtain the first grid number and the second grid number occupied by the passengers inside the car in the interior bottom surface of the car.
4. The method according to claim 3, characterized in that The step of identifying first edge information corresponding to the bottom surface of the interior of the car and second edge information corresponding to the passenger in the car from the image to be identified includes: Performing edge recognition on the image to be recognized based on a predetermined edge detection function; If it is determined that the passenger inside the car obstructs the bottom surface of the car, the preset internal edge reference line of the car corresponding to the internal bottom surface of the car is identified to obtain the third edge information corresponding to the preset internal edge reference line of the car, and based on the mapping relationship between the internal bottom surface of the car and the preset internal edge reference line of the car, the first edge information is determined through the third edge information.
5. The method according to claim 3, characterized in that: The performing image preprocessing on the target frame image to obtain an image to be recognized that meets a predetermined image condition includes: Performing image dimensionality reduction processing on the target frame image to obtain a one-dimensional grayscale image corresponding to the target frame image; The one-dimensional grayscale image is subjected to image denoising and binarization processing to obtain the image to be identified.
6. The method according to claim 2, characterized in that The determining the remaining elevator space based on the first grid number and the second grid number includes: Determine a ratio of the second number of grids to the first number of grids, and determine the product of the ratio and the rated area corresponding to the bottom surface of the interior of the car as the occupied area of the passengers inside the car; The difference between the rated area and the area occupied by passengers inside the car is determined as the elevator remaining space.
7. The method according to claim 1, characterized in that The method further comprises: receiving second video information and riding demand information corresponding to passengers in the waiting area of each floor through a reservation network, wherein the riding demand information indicates that the riding demand of the passengers in the waiting area is to take an elevator up and / or to take an elevator down; Determine the number of dispatchable elevators other than the elevator to be dispatched in the elevator system where the elevator to be dispatched is located, and determine, based on the second video information, a target waiting area floor where the number of waiting passengers corresponding to the waiting area is greater than or equal to a predetermined waiting passenger threshold; Based on the riding demand information and the number of the dispatchable elevators, a unified dispatch instruction corresponding to the dispatchable elevators is generated, and the unified dispatch instruction is used to dispatch the dispatchable elevators to the target waiting area floor.
8. An elevator dispatching device, characterized in that: include: A receiving unit, used for receiving first video information and floor demand information corresponding to passengers in the car of the elevator to be dispatched through a predetermined network; a determination unit, configured to determine the remaining elevator space corresponding to the elevator to be scheduled based on the first video information, and determine the target floor where the elevator to be scheduled needs to stop based on the floor demand information; A generating unit is used to generate a target dispatching instruction corresponding to the elevator to be dispatched when it is determined that the remaining space of the elevator is less than a predetermined remaining space threshold, wherein the target dispatching instruction is used to instruct the elevator to be dispatched not to stop at a floor other than the target floor.
9. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.