Calibration method and system for virtual buttons, elevator and storage medium
A calibration method and system for virtual buttons, an elevator, and a storage medium. The method includes: receiving a first designation regarding a layout of the virtual buttons in a virtual keypad zone; receiving a second designation regarding a number of the virtual buttons; and determining a position of each of the virtual buttons in the virtual keypad zone according to the first designation and the second designation.
1 . A calibration method for virtual buttons, comprising:
receiving a first designation regarding a layout of the virtual buttons in a virtual keypad zone;
receiving a second designation regarding a number of the virtual buttons, wherein the second designation comprises a designation of two adjacent virtual buttons in any column of the virtual buttons and/or a designation of two adjacent virtual buttons in any row of the virtual buttons; and
determining a position of each of the virtual buttons in the virtual keypad zone according to the first designation and the second designation.
2 . The method of claim 1 , wherein the virtual keypad zone comprising a rectangular keypad zone, and the first designation comprising a third designation for the layout of the virtual buttons in the rectangular keypad zone.
3 . The method of claim 2 , wherein the third designation comprising at least a designation for vertex virtual buttons in the rectangular keypad zone.
4 . The method of claim 2 , wherein the virtual keypad zone further comprising a derived keypad zone in addition to the rectangular keypad zone, and the first designation further comprising a fourth designation for the layout of the virtual buttons in the derived keypad zone.
5 . The method of claim 4 , wherein the fourth designation comprising a designation for each of the virtual buttons in the derived keypad zone.
6 . The method of claim 1 , wherein the first designation is performed in accordance with the order of floor numbers.
7 . The method of claim 1 , wherein determining the position of each of the virtual buttons in the virtual keypad zone comprising:
determining midpoints of the corresponding virtual buttons of the first designation according to the first designation;
determining a midpoint of each of the virtual buttons according to the second designation; and
estimating a position of each of the virtual buttons according to the midpoints of the virtual buttons.
8 . A computer-readable storage medium having instructions stored therein, wherein the instructions, when executed by a processor, cause the processor to execute the method of claim 1 .
9 . A calibration system for virtual buttons, comprising:
a camera configured to collect depth images;
a memory configured to store instructions;
a processor configured to execute the instructions to perform the following operations:
controlling the camera to receive a first designation regarding a layout of the virtual buttons in a virtual keypad zone;
controlling the camera to receive a second designation regarding a number of the virtual buttons in the virtual keypad zone, wherein the second designation comprises a designation of two adjacent virtual buttons in any column of the virtual buttons and/or a designation of two adjacent virtual buttons in any row of the virtual buttons; and
determining a position of each of the virtual buttons in the virtual keypad zone according to the first designation and the second designation.
10 . An elevator comprising: the computer-readable storage medium of claim 8 .
11 . An elevator comprising virtual buttons, wherein the virtual buttons are calibrated in accordance with the calibration method for virtual buttons of claim 1 .
12 . The elevator of claim 11 , further comprising a camera collecting depth images, which is configured to collect user's operations of the virtual buttons.