[go: up one dir, main page]

HK40006044B - User detection system - Google Patents

User detection system Download PDF

Info

Publication number
HK40006044B
HK40006044B HK19129567.4A HK19129567A HK40006044B HK 40006044 B HK40006044 B HK 40006044B HK 19129567 A HK19129567 A HK 19129567A HK 40006044 B HK40006044 B HK 40006044B
Authority
HK
Hong Kong
Prior art keywords
boundary
detection unit
door
user
threshold
Prior art date
Application number
HK19129567.4A
Other languages
Chinese (zh)
Other versions
HK40006044A (en
Inventor
Noda Shuhei
Yokoi Kentaro
Tamura Satoshi
Kimura Sayumi
Original Assignee
Toshiba Elevator Kabushiki Kaisha
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Elevator Kabushiki Kaisha filed Critical Toshiba Elevator Kabushiki Kaisha
Publication of HK40006044A publication Critical patent/HK40006044A/en
Publication of HK40006044B publication Critical patent/HK40006044B/en

Links

Description

利用者检测系统User Detection System

本申请以日本专利申请2017-240799(申请日期:12/15/2017)为基础,根据该申请而享受优先权。本申请通过参考该申请而包含该申请的全部内容。This application is based on and claims the benefit of priority from Japanese Patent Application No. 2017-240799 (filing date: December 15, 2017), the entire contents of which are incorporated herein by reference.

技术领域Technical Field

本发明的实施方式涉及一种利用者检测系统。An embodiment of the present invention relates to a user detection system.

背景技术Background Art

近年来,开发有用于防止人或物被电梯的门或者自动门夹住的技术。例如开发有如下技术:利用摄像机来拍摄门近旁,根据拍摄到的图像(拍摄图像)来检测有被门夹住之虞的人或物,并使该检测的结果反映到门的开闭控制中。In recent years, technologies have been developed to prevent people or objects from being trapped in elevator doors or automatic doors. For example, a technology has been developed that uses a camera to capture images near the door, detects people or objects at risk of being trapped based on the captured images (captured images), and reflects these detection results in the door's opening and closing control.

在上述技术中,首先,事先准备好人或物没有被门夹住之虞的状态的图像来作为基准图像。继而,将该基准图像与由摄像机拍摄到的拍摄图像进行比较,由此来检测有被门夹住之虞的人或物。In this technology, an image of a person or object without risk of being caught by a door is first prepared as a reference image. This reference image is then compared with the image captured by the camera to detect people or objects at risk of being caught by the door.

发明内容Summary of the Invention

然而,在上述技术中,拍摄到基准图像时的照明条件与拍摄到拍摄图像时的照明条件有时候不一样。在该情况下,无法跟随照明条件的变化,从而有可能发生无法正常检测有被门夹住之虞的人或物这一不良情况。此外,上述技术须事先准备好基准图像,因此还可能发生较为费事这一不良情况。However, with this technique, the lighting conditions when the reference image is captured may differ from those when the captured image is captured. In such cases, the system cannot adapt to changes in lighting conditions, potentially preventing proper detection of people or objects at risk of being trapped by the door. Furthermore, this technique requires the preparation of the reference image in advance, which can be time-consuming.

本发明要解决的问题在于,提供一种能够检测有被门夹住之虞的人或物而不被摄像机的图像拍摄时的照明条件所左右的利用者检测系统。The problem to be solved by the present invention is to provide a user detection system that can detect a person or object that is likely to be caught by a door without being affected by the lighting conditions when the camera captures the image.

根据一实施方式,利用者检测系统具备:摄像机,设置在门近旁,能够拍摄所述门在开闭时行走的行走区域和所述门周边;交界检测部,根据由所述摄像机拍摄到的图像来检测处于所述门周边的第1结构物与第2结构物的交界;利用者检测部,根据所述交界检测部的检测结果来检测所述行走区域内的利用者的有无;以及控制部,根据所述利用者检测部的检测结果来控制所述门的开闭动作。According to one embodiment, a user detection system comprises: a camera, which is arranged near a door and can capture the walking area and the periphery of the door when the door is opened and closed; a boundary detection unit, which detects the boundary between a first structure and a second structure located around the door based on the image captured by the camera; a user detection unit, which detects the presence or absence of a user in the walking area based on the detection result of the boundary detection unit; and a control unit, which controls the opening and closing action of the door based on the detection result of the user detection unit.

根据上述构成的利用者检测系统,能够检测有被门夹住之虞的人或物而不被摄像机的图像拍摄时的照明条件所左右。According to the user detection system configured as described above, a person or object that is likely to be caught by a door can be detected without being affected by the lighting conditions when the camera captures the image.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1表示第1实施方式所涉及的利用者检测系统的构成。FIG1 shows the configuration of a user detection system according to a first embodiment.

图2为表示该实施方式所涉及的与轿厢门槛相对应的检测区域的设定处理的次序的一例的流程图。FIG2 is a flowchart showing an example of a procedure for setting a detection area corresponding to a car door sill according to the embodiment.

图3为用于说明该实施方式所涉及的三维坐标的图。FIG. 3 is a diagram for explaining three-dimensional coordinates according to this embodiment.

图4表示该实施方式所涉及的与轿厢门槛相对应的检测区域的一例。FIG. 4 shows an example of a detection area corresponding to a car door sill according to this embodiment.

图5为表示该实施方式所涉及的与候梯厅门槛相对应的检测区域的设定处理的次序的一例的流程图。FIG5 is a flowchart showing an example of a procedure for setting a detection area corresponding to an elevator hall threshold according to the embodiment.

图6表示该实施方式所涉及的与候梯厅门槛相对应的检测区域的一例。FIG6 shows an example of a detection area corresponding to the elevator hall threshold according to this embodiment.

图7表示该实施方式所涉及的与轿厢门槛与候梯厅门槛之间相对应的检测区域的一例。FIG7 shows an example of a detection area corresponding to the space between the car threshold and the hall threshold according to this embodiment.

图8表示该实施方式所涉及的拍摄图像的二值图像的一例。FIG. 8 shows an example of a binary image of a captured image according to this embodiment.

图9为表示该实施方式所涉及的利用者检测处理的次序的一例的流程图。FIG. 9 is a flowchart showing an example of the procedure of the user detection process according to this embodiment.

图10为用于详细说明图9所示的流程图的一部分处理的流程图。FIG. 10 is a flowchart for explaining in detail a part of the processing in the flowchart shown in FIG. 9 .

图11为用于补充说明图10所示的流程图的图。FIG. 11 is a diagram for supplementing the explanation of the flowchart shown in FIG. 10 .

图12表示判断不存在有被门夹住之虞的利用者的情况下的累积像素值的变化的一例。FIG. 12 shows an example of changes in the cumulative pixel value when it is determined that there is no user who is likely to be caught by the door.

图13表示判断存在有被门夹住之虞的利用者的情况下的累积像素值的变化的一例。FIG. 13 shows an example of changes in the cumulative pixel value when determining that there is a user who is at risk of being caught by a door.

图14为表示第2实施方式所涉及的与轿厢门的顶端相对应的检测区域的设定处理的次序的一例的流程图。FIG. 14 is a flowchart showing an example of a procedure for setting a detection area corresponding to the distal end of a car door according to the second embodiment.

图15表示该实施方式所涉及的与门的顶端相对应的检测区域的一例。FIG. 15 shows an example of a detection area corresponding to the top end of a door according to this embodiment.

图16表示该实施方式所涉及的与门的顶端相对应的检测区域的另一例。FIG. 16 shows another example of the detection area corresponding to the top end of the door according to this embodiment.

图17表示判断不存在有被门夹住之虞的利用者的情况下的累积像素值的变化的一例。FIG. 17 shows an example of changes in the cumulative pixel value when it is determined that there is no user who is likely to be caught by the door.

图18表示判断存在有被门夹住之虞的利用者的情况下的累积像素值的变化的一例。FIG. 18 shows an example of changes in the cumulative pixel value when determining that there is a user who is at risk of being caught by a door.

具体实施方式DETAILED DESCRIPTION

下面,参考附图,对实施方式进行说明。揭示的只是一例,并不会因以下实施方式记载的内容而限定发明。本领域技术人员能够容易地想到的变形当然包含在揭示的范围内。为了使得说明更加明确,附图中,有时会针对实际的实施方式来变更各部分的尺寸、形状等而示意性地加以表示。多个附图中,有时还会对对应的要素标注相同参考数字而省略详细说明。Below, the embodiment is described with reference to the accompanying drawings. What is disclosed is only an example, and the invention is not limited by the contents described in the following embodiment. Deformations that can be easily thought of by those skilled in the art are of course included in the scope of the disclosure. In order to make the description clearer, the dimensions, shapes, etc. of each part are sometimes changed according to the actual embodiment and are schematically represented in the accompanying drawings. In multiple drawings, corresponding elements are sometimes marked with the same reference numerals and detailed descriptions are omitted.

此外,作为有人或物被夹住之虞的门,以下是列举电梯的门作为一例对各种处理进行说明。但以下所说明的各种处理不仅可运用于电梯的门,也可运用于自动门等。In addition, as a door that may trap people or objects, the various treatments will be described below using an elevator door as an example. However, the various treatments described below can be applied not only to elevator doors but also to automatic doors, etc.

再者,以下将电梯称为“轿厢”来进行说明。In addition, the elevator is referred to as a "car" in the following description.

<第1实施方式><First embodiment>

图1表示第1实施方式所涉及的利用者检测系统的构成。再者,此处是以1台轿厢为例进行说明,但多台轿厢也是同样的构成。Fig. 1 shows the configuration of a user detection system according to the first embodiment. Note that, although one car is used as an example here, a plurality of cars can also have the same configuration.

在本实施方式所涉及的利用者检测系统中,在轿厢11的出入口上部设置有摄像机12。具体而言,摄像机12以将轿厢11的整个门槛(门坎)包含在拍摄范围内的朝向设置在轿厢11的覆盖出入口上部的楣板11a中。换句话说,以将门在开闭时行走的行走区域和该门周边包含在拍摄范围内的朝向来设置摄像机12。摄像机12例如为车载摄像机等小型监视用摄像机,具有广角透镜,可以连续拍摄1秒钟数帧(例如30帧/秒)的图像。In the user detection system of this embodiment, a camera 12 is installed above the entrance and exit of the car 11. Specifically, the camera 12 is installed in the lintel 11a covering the upper portion of the entrance and exit of the car 11 in an orientation such that the entire door sill of the car 11 is included in the imaging range. In other words, the camera 12 is installed in an orientation such that the area where the door moves when opening and closing and the surrounding area of the door are included in the imaging range. The camera 12 is a small surveillance camera such as an in-vehicle camera, equipped with a wide-angle lens, and can continuously capture images at a rate of several frames per second (e.g., 30 frames per second).

摄像机12在轿厢11的移动速度不到规定值时启动。具体而言,当轿厢11为了停在规定楼层而开始减速、移动速度变得不到规定值时,摄像机12启动并开始拍摄。也就是说,在以下期间持续进行摄像机12的拍摄:从轿厢11为了停在规定楼层而开始减速、移动速度变得不到规定值开始,也包括轿厢11停在规定楼层的期间,直到轿厢11为了从该规定楼层去往别的楼层而开始加速、移动速度变为规定值以上为止。The camera 12 is activated when the speed of the car 11 falls below a specified value. Specifically, the camera 12 is activated and begins recording when the car 11 begins to decelerate in order to stop at a specified floor and its speed falls below the specified value. In other words, the camera 12 continuously records images from the moment the car 11 begins to decelerate in order to stop at a specified floor and its speed falls below the specified value, including while the car 11 is stopped at a specified floor, until the car 11 begins to accelerate in order to travel from that specified floor to another floor and its speed exceeds the specified value.

在各楼层的候梯厅15,在轿厢11的到达口开闭自如地设置有候梯厅门14。候梯厅门14在轿厢11到达时与轿厢门13卡合而进行开闭动作。再者,动力源(门马达)处于轿厢11侧,候梯厅门14只是跟随轿厢门13进行开闭。在以下的说明中,设定轿厢门13打开时候梯厅门14也打开、轿厢门13关闭时候梯厅门14也关闭。In the elevator lobby 15 on each floor, a hall door 14 is provided at the entrance to the car 11 so that it can be opened and closed freely. When the car 11 arrives, the hall door 14 engages with the car door 13 and opens and closes. The power source (door motor) is on the car 11 side, and the hall door 14 opens and closes simply following the car door 13. In the following description, it is assumed that the hall door 14 opens when the car door 13 opens, and closes when the car door 13 closes.

由摄像机12连续拍摄到的各图像(影像)通过图像处理装置20(利用者检测装置)而被实时地解析处理。再者,图1中,为了方便而将图像处理装置20从轿厢11中取出来展示,但实际上图像处理装置20是与摄像机12一起收纳在楣板11a中。The images (videos) continuously captured by the camera 12 are analyzed and processed in real time by the image processing device 20 (user detection device). In FIG1 , the image processing device 20 is shown removed from the car 11 for convenience, but in reality, the image processing device 20 is housed in the lintel 11a along with the camera 12.

图像处理装置20中配备有存储部21和检测部22。图像处理装置20获取由摄像机12拍摄到的图像。存储部21逐次保存由摄像机12拍摄到的图像,而且具有用于暂时保存检测部22的处理所需的数据的缓冲区。再者,也可在存储部21中保存实施了作为针对拍摄图像的预处理的失真校正或放大缩小、局部剪切等处理的图像。进而,也可在存储部21中存放由未图示的CPU执行的程序。The image processing device 20 includes a storage unit 21 and a detection unit 22. The image processing device 20 acquires images captured by the camera 12. The storage unit 21 sequentially stores images captured by the camera 12 and includes a buffer for temporarily storing data required for processing by the detection unit 22. Furthermore, the storage unit 21 may store images that have undergone pre-processing such as distortion correction, enlargement and reduction, and partial cropping as pre-processing of the captured images. Furthermore, the storage unit 21 may also store programs executed by a CPU (not shown).

检测部22检测始终位于轿厢11的门近旁的规定形状的结构物的轮廓(边缘),根据该检测到的边缘的形状来检测有被门夹住之虞的利用者的有无(存在)。检测部22在检测到有被门夹住之虞的利用者的存在的情况下,将与该检测的结果关联起来的信号(指示)输出至轿厢控制装置30。The detection unit 22 detects the outline (edge) of a structure of a predetermined shape that is always located near the door of the car 11, and detects the presence (or the existence) of a user who is at risk of being pinched by the door based on the shape of the detected edge. If the detection unit 22 detects the presence of a user who is at risk of being pinched by the door, it outputs a signal (indication) associated with the detection result to the car control device 30.

再者,作为始终位于轿厢11的门近旁的结构物,可列举门槛(门坎)作为一例。所谓门槛,是指门开闭用的槽,通常,轿厢门13用的轿厢门槛13a和候梯厅门14用的候梯厅门槛14a分别设置在门近旁。Furthermore, a door sill is one example of a structure that is always located near the door of the car 11. The door sill is a groove for opening and closing the door. Usually, a car door sill 13a for the car door 13 and a hall door sill 14a for the hall door 14 are respectively provided near the door.

轿厢控制装置30对设置在轿厢11内部的各种装置(目标楼层按钮、照明等)的动作进行控制。此外,轿厢控制装置30还进行与从检测部22输出的信号相应的动作的控制。例如,轿厢控制装置30根据从检测部22输出的信号对设置在轿厢11内的未图示的通知部的动作进行控制,进行对于有被门夹住之虞的利用者的提醒注意等。The car control device 30 controls the operation of various devices (such as destination floor buttons and lighting) installed inside the car 11. Furthermore, the car control device 30 controls operations in accordance with signals output from the detection unit 22. For example, the car control device 30 controls the operation of a notification unit (not shown) installed inside the car 11 based on signals output from the detection unit 22, thereby providing a warning to users who are in danger of being trapped by the door.

此外,轿厢控制装置30配备有门开闭控制部31,门开闭控制部31控制轿厢门13的门开闭动作。除了平常的门开闭控制以外,门开闭控制部31还控制与从检测部22输出的信号相应的轿厢门13的门开闭动作(开门维持、调转开门)。The car control device 30 is also equipped with a door opening and closing control unit 31, which controls the door opening and closing operation of the car door 13. In addition to the normal door opening and closing control, the door opening and closing control unit 31 controls the door opening and closing operation (maintaining the door open, reversing the door open) of the car door 13 in response to the signal output from the detection unit 22.

如图1所示,检测部22具备交界检测部22a和利用者检测部22b。下面,对这些功能部进行详细说明。再者,交界检测部22a及利用者检测部22b可通过由图像处理装置20内的未图示的CPU执行存储部21中存放的程序(也就是软件)来实现,也可通过硬件来实现,也可通过软件及硬件的组合来实现。As shown in Figure 1, the detection unit 22 includes a boundary detection unit 22a and a user detection unit 22b. These functional units are described in detail below. Furthermore, the boundary detection unit 22a and the user detection unit 22b can be implemented by a CPU (not shown) within the image processing device 20 executing a program (i.e., software) stored in the storage unit 21, or by hardware, or by a combination of software and hardware.

交界检测部22a获取存储部21中保存的拍摄图像中的最新的1张拍摄图像,根据这1张拍摄图像来设定在利用者检测部22b中检测有被门夹住之虞的利用者用的检测区域。该检测区域被设定在拍摄图像上推测映有轿厢门槛13a及候梯厅门槛14a的位置。推测映有轿厢门槛13a及候梯厅门槛14a的位置是根据轿厢11的尺寸和摄像机12固有的值、具体为下述条件(a)~(e)来算出的。The boundary detection unit 22a obtains the most recent image from the captured images stored in the storage unit 21 and, based on this image, sets a detection area for the user detection unit 22b to detect users at risk of being trapped by the door. This detection area is set at the locations where the car threshold 13a and the hall threshold 14a are estimated to be reflected in the captured image. The locations where the car threshold 13a and the hall threshold 14a are estimated to be reflected are calculated based on the dimensions of the car 11 and the values inherent to the camera 12, specifically, the following conditions (a) to (e).

(a)轿厢门槛13a及候梯厅门槛14a的宽度(a) Width of the car threshold 13a and the elevator lobby threshold 14a

(b)轿厢门13及候梯厅门14的高度(b) Height of car door 13 and hall door 14

(c)三维空间内的摄像机12相对于轿厢门槛13a及候梯厅门槛14a的相对位置(c) Relative position of the camera 12 in three-dimensional space relative to the car threshold 13a and the lobby threshold 14a

(d)摄像机12的3个轴的角度(d) Angles of the three axes of the camera 12

(e)摄像机12的视场角及焦点距离(e) Field of view and focal length of camera 12

此处,参考图2的流程图和图3及图4的示意图,对由交界检测部22a执行的与轿厢门槛13a相对应的检测区域的设定处理的次序的一例进行说明。Here, an example of a procedure for setting a detection area corresponding to the car door sill 13a, which is executed by the boundary detection section 22a, will be described with reference to the flowchart of FIG. 2 and the schematic diagrams of FIG. 3 and FIG. 4 .

首先,交界检测部22a根据轿厢门槛13a的宽度(条件a)和三维空间内的摄像机12相对于轿厢门槛13a的相对位置(条件c)来算出存在于地面的轿厢门槛13a的两端的三维坐标(步骤S1)。First, the boundary detection unit 22a calculates the three-dimensional coordinates of the two ends of the car door sill 13a on the ground based on the width of the car door sill 13a (condition a) and the relative position of the camera 12 relative to the car door sill 13a in three-dimensional space (condition c) (step S1).

所谓三维坐标,如图3所示,是将与轿厢门13水平的方向设为X轴、将轿厢门13的中心到候梯厅15的方向(与轿厢门13垂直的方向)设为Y轴、将轿厢11的高度方向设为Z轴的情况下的坐标。也就是说,上述地面在三维空间内高度为0(换句话说就是Z坐标为0)。As shown in FIG3 , the three-dimensional coordinates are defined by setting the X-axis horizontal to the car door 13, the Y-axis from the center of the car door 13 to the elevator lobby 15 (a direction perpendicular to the car door 13), and the Z-axis at the height of the car 11. In other words, the ground is at a height of 0 in three-dimensional space (in other words, the Z coordinate is 0).

然后,交界检测部22a将步骤S1中算出的轿厢门槛13a的两端的三维坐标射影至拍摄图像上的2维坐标,从而算出与轿厢门槛13a的两端相对应的二维坐标。具体而言,交界检测部22a算出图4所示的将拍摄图像的横向设为X轴、将纵向设为Y轴的情况下的点PA1、PA2的二维坐标(步骤S2)。Then, the boundary detection unit 22a projects the three-dimensional coordinates of the two ends of the car door sill 13a calculated in step S1 onto the two-dimensional coordinates on the captured image, thereby calculating the two-dimensional coordinates corresponding to the two ends of the car door sill 13a. Specifically, the boundary detection unit 22a calculates the two-dimensional coordinates of points PA1 and PA2, as shown in FIG4 , with the horizontal direction of the captured image being the X-axis and the vertical direction being the Y-axis (step S2).

接着,交界检测部22a分别算出(确定)2点PA3、PA4,该2点PA3、PA4像图4所示那样与由步骤S2中算出的二维坐标确定的2点PA1、PA2所处的各像素在垂直方向上相距规定像素(例如5像素)(步骤S3)。上述垂直方向相当于二维坐标的Y轴负方向。再者,此处是算出(确定)与点PA1、PA2相距规定像素的点来作为点PA3、PA4。但也可算出(确定)例如在三维坐标上于垂直方向上与点PA1、PA2相距50mm的点作为点PA3、PA4。再者,该情况下的垂直方向相当于三维坐标的Y轴负方向。Next, the boundary detection unit 22a calculates (determines) two points PA3 and PA4, respectively, which are spaced a predetermined number of pixels (e.g., 5 pixels) vertically from the pixels at which the two points PA1 and PA2, determined by the two-dimensional coordinates calculated in step S2, are located, as shown in FIG4 (step S3). The vertical direction corresponds to the negative direction of the Y axis of the two-dimensional coordinates. Furthermore, here, points PA3 and PA4 are calculated (determined) as being spaced a predetermined number of pixels from points PA1 and PA2. However, points PA3 and PA4 may also be calculated (determined) as being spaced 50 mm vertically from points PA1 and PA2 in the three-dimensional coordinates. Furthermore, the vertical direction in this case corresponds to the negative direction of the Y axis of the three-dimensional coordinates.

其后,交界检测部22a将像图4所示那样由连结点PA1与点PA2而形成的线段LA1、连结点PA1与点PA3而形成的线段LA2、连结点PA2与点PA4而形成的线段LA3、以及连结点PA3与点PA4而形成的线段LA4围住的区域设定为与轿厢门槛13a相对应的检测区域E1(步骤S4),并结束设定处理。Thereafter, the boundary detection unit 22a sets the area enclosed by the line segment LA1 formed by connecting point PA1 and point PA2, the line segment LA2 formed by connecting point PA1 and point PA3, the line segment LA3 formed by connecting point PA2 and point PA4, and the line segment LA4 formed by connecting point PA3 and point PA4 as shown in Figure 4 as the detection area E1 corresponding to the car door sill 13a (step S4), and ends the setting process.

接着,参考图5的流程图和图6的示意图,对由交界检测部22a执行的与候梯厅门槛14a相对应的检测区域的设定处理的次序的一例进行说明。Next, an example of a procedure for setting a detection area corresponding to the hall threshold 14a, which is executed by the boundary detection unit 22a, will be described with reference to the flowchart of FIG. 5 and the schematic diagram of FIG. 6 .

首先,交界检测部22a根据候梯厅门槛14a的宽度(条件a)和三维空间内的摄像机12相对于候梯厅门槛14a的相对位置(条件c),算出存在于地面的候梯厅门槛14a的两端的三维坐标(步骤S11)。First, the boundary detection unit 22a calculates the three-dimensional coordinates of the two ends of the elevator lobby threshold 14a on the ground based on the width of the elevator lobby threshold 14a (condition a) and the relative position of the camera 12 relative to the elevator lobby threshold 14a in three-dimensional space (condition c) (step S11).

然后,交界检测部22a将步骤S11中算出的候梯厅门槛14a的两端的三维坐标射影至拍摄图像上的二维坐标,从而算出与候梯厅门槛14a的两端相对应的二维坐标。具体而言,交界检测部22a算出图6所示的将拍摄图像的横向设为X轴、将纵向设为Y轴的情况下的点PB1、PB2的二维坐标(步骤S12)。The boundary detection unit 22a then projects the three-dimensional coordinates of the two ends of the elevator hall threshold 14a calculated in step S11 onto the two-dimensional coordinates on the captured image, thereby calculating the two-dimensional coordinates corresponding to the two ends of the elevator hall threshold 14a. Specifically, the boundary detection unit 22a calculates the two-dimensional coordinates of points PB1 and PB2, as shown in FIG6 , with the horizontal direction of the captured image being the X-axis and the vertical direction being the Y-axis (step S12).

接着,交界检测部22a分别算出2点PB3、PB4,该2点PB3、PB4像图6所示那样与由步骤S12中算出的二维坐标确定的2点PB1、PB2所处的各像素在垂直方向上相距规定像素(例如5像素)(步骤S13)。上述垂直方向相当于二维坐标的Y轴正方向。Next, the boundary detection unit 22a calculates two points PB3 and PB4, each of which is spaced a predetermined number of pixels (e.g., 5 pixels) vertically from the pixels where the two points PB1 and PB2, identified by the two-dimensional coordinates calculated in step S12, are located, as shown in FIG6 (step S13). The vertical direction corresponds to the positive Y-axis direction of the two-dimensional coordinates.

其后,交界检测部22a将像图6所示那样由连结点PB1与点PB2而形成的线段LB1、连结点PB1与点PB3而形成的线段LB2、连结点PB2与点PB4而形成的线段LB3、以及连结点PB3与点PB4而形成的线段LB4围住的区域设定为与候梯厅门槛14a相对应的检测区域E2(步骤S14),并结束设定处理。Thereafter, the boundary detection unit 22a sets the area enclosed by the line segment LB1 formed by connecting point PB1 and point PB2, the line segment LB2 formed by connecting point PB1 and point PB3, the line segment LB3 formed by connecting point PB2 and point PB4, and the line segment LB4 formed by connecting point PB3 and point PB4 as shown in Figure 6 as the detection area E2 corresponding to the elevator hall threshold 14a (step S14), and ends the setting process.

进而,参考图7的示意图,对由交界检测部22a执行的与轿厢门槛13a和候梯厅门槛14a之间(的间隙)相对应的检测区域的设定进行说明。7, the setting of the detection area corresponding to (the gap between) the car threshold 13a and the hall threshold 14a performed by the boundary detection unit 22a will be described.

交界检测部22a将像图7所示那样由连结上述步骤S2中算出的点PA1与点PA2而形成的线段LA1、连结上述步骤S12中算出的点PB1与点PB2而形成的线段LB1、连结点PA1与点PB1而形成的线段LC1、以及连结点PA2与点PB2而形成的线段LC2围住的区域设定为与轿厢门槛13a和候梯厅门槛14a之间(的间隙)相对应的检测区域E3。The boundary detection unit 22a sets the area enclosed by the line segment LA1 formed by connecting the point PA1 and the point PA2 calculated in the above step S2, the line segment LB1 formed by connecting the point PB1 and the point PB2 calculated in the above step S12, the line segment LC1 formed by connecting the point PA1 and the point PB1, and the line segment LC2 formed by connecting the point PA2 and the point PB2 as shown in Figure 7 as the detection area E3 corresponding to (the gap between) the car threshold 13a and the elevator hall threshold 14a.

再者,此处,如图4、图6及图7所示,例示的是与轿厢门槛13a、候梯厅门槛14a及间隙相对应的检测区域各设定1个的情况。但是,例如在轿厢门槛13a及候梯厅门槛14a被分割成多个的情况下,也可针对分割后的各门槛设定检测区域。也就是说,也可分别设定与轿厢门槛13a相对应的多个检测区域、与候梯厅门槛14a相对应的多个检测区域、与间隙相对应的多个检测区域。Furthermore, as shown in Figures 4, 6, and 7, examples are shown in which one detection area is set for each of the car threshold 13a, the hall threshold 14a, and the gap. However, if the car threshold 13a and the hall threshold 14a are divided into multiple parts, a detection area may be set for each of the divided thresholds. In other words, multiple detection areas may be set for each of the car threshold 13a, multiple detection areas for each of the hall threshold 14a, and multiple detection areas for each of the gaps.

通过像上述那样设定检测区域E1~E3,可以将后文叙述的检测交界的区域限缩为仅该检测区域E1~E3。By setting the detection areas E1 to E3 as described above, the area for detecting a boundary described later can be limited to only the detection areas E1 to E3.

再次返回至交界检测部22a的功能的说明。Let's return to the description of the function of the boundary detection unit 22a.

交界检测部22a从拍摄图像中检测(提取)人或物的轮廓(边缘),并像图8所示那样将拍摄图像二值化(“0(无边缘)”或“1(有边缘)”)。由此,能够检测轿厢门槛13a与地板的交界、候梯厅门槛14a与地板的交界、轿厢门槛13a及候梯厅门槛14a与上述间隙的交界等。The boundary detection unit 22a detects (extracts) the outline (edge) of a person or object from the captured image and binarizes the captured image ("0 (no edge)" or "1 (edge)") as shown in FIG8. This makes it possible to detect the boundary between the car threshold 13a and the floor, the boundary between the elevator hall threshold 14a and the floor, and the boundary between the car threshold 13a and the elevator hall threshold 14a and the aforementioned gap.

图8的白色部分相当于检测到的边缘,图8的黑色部分相当于未检测到边缘的部分。再者,图8例示的是从拍摄图像中检测到全部的人或物的边缘的情况,但交界检测部22a只要从拍摄图像中至少检测位于上述检测区域E1~E3近旁的人或物的边缘即可。The white portions in FIG8 correspond to detected edges, and the black portions in FIG8 correspond to portions where no edges are detected. Furthermore, FIG8 illustrates a case where all edges of people or objects are detected from the captured image. However, the boundary detection unit 22a only needs to detect at least the edges of people or objects located near the detection areas E1 to E3 from the captured image.

作为检测边缘的方法,例如使用对规定像素与邻接于该规定像素的像素的像素值进行比较的方法。也就是说,交界检测部22a对规定像素与邻接于该规定像素的像素的像素值进行比较,在这些像素值的差分为预先设定的阈值以上的情况下,会检测到边缘,在该差分不到预先设定的阈值的情况下,不会检测到边缘。As a method for detecting an edge, for example, a method of comparing the pixel values of a predetermined pixel with those of pixels adjacent to the predetermined pixel is used. That is, the boundary detection unit 22a compares the pixel values of a predetermined pixel with those of pixels adjacent to the predetermined pixel. If the difference between these pixel values is greater than a preset threshold, an edge is detected. If the difference is less than the preset threshold, no edge is detected.

或者,交界检测部22a也可对规定像素与自该规定像素相距规定像素(规定宽度)的像素的像素值进行比较,由此来检测边缘的有无。或者,交界检测部22a也可对由多个像素构成的像素组的平均亮度值与不同于(邻接于)该像素组的其他像素组的平均亮度值进行比较,在这些平均亮度值的差分为预先设定的阈值以上的情况下,会检测到边缘,在该差分不到预先设定的阈值的情况下,不会检测到边缘。Alternatively, the boundary detection unit 22a may detect the presence of an edge by comparing the pixel values of a predetermined pixel with the pixel values of a pixel that is a predetermined pixel (predetermined width) away from the predetermined pixel. Alternatively, the boundary detection unit 22a may compare the average brightness value of a pixel group consisting of a plurality of pixels with the average brightness value of another pixel group that is different from (adjacent to) the pixel group. If the difference between these average brightness values is greater than a predetermined threshold, an edge is detected. If the difference is less than the predetermined threshold, an edge is not detected.

再者,作为检测边缘的方法,除了上述的各种方法以外,也可使用公知的任意方法。In addition, as a method of detecting an edge, in addition to the various methods described above, any known method can be used.

此外,上文中,交界检测部22a为了检测轿厢门槛13a与地板的交界、候梯厅门槛14a与地板的交界、轿厢门槛13a及候梯厅门槛14a与上述间隙的交界,从拍摄图像中检测人或物的边缘并将拍摄图像二值化。但交界检测部22a也可通过公知的任意方法来检测每一像素的亮度梯度的强度(换句话说就是边缘的强度)而检测上述各种交界。或者,交界检测部22a也可将拍摄图像分割为大量小区域来分析纹理并检测被不同纹理划分的像素,由此来检测上述各种交界。Furthermore, in the above description, the boundary detection unit 22a detects the edges of people or objects from the captured image and binarizes the captured image to detect the boundaries between the car threshold 13a and the floor, the elevator lobby threshold 14a and the floor, and the boundaries between the car threshold 13a and the elevator lobby threshold 14a and the aforementioned gaps. However, the boundary detection unit 22a may also detect the aforementioned various boundaries by detecting the intensity of the brightness gradient of each pixel (in other words, the intensity of the edge) using any known method. Alternatively, the boundary detection unit 22a may segment the captured image into a large number of small areas, analyze the texture, and detect pixels divided by different textures to detect the aforementioned various boundaries.

接着,对利用者检测部22b的功能进行说明。Next, the function of the user detection unit 22b will be described.

利用者检测部22b根据经由交界检测部22a二值化之后的拍摄图像(以下记作“二值图像”)和由交界检测部22a检测到的各种交界,来判定是否存在有被门夹住之虞的利用者。The user detection unit 22b determines whether there is a user who may be caught by the door based on the captured image binarized by the boundary detection unit 22a (hereinafter referred to as "binary image") and various boundaries detected by the boundary detection unit 22a.

此处,参考图9的流程图,对由利用者检测部22b执行的利用者检测处理的次序的一例进行说明。Here, an example of the procedure of the user detection process executed by the user detection unit 22b will be described with reference to the flowchart of FIG. 9 .

首先,利用者检测部22b从交界检测部22a获取表示二值图像的图像数据(步骤S21)。再者,表示二值图像的图像数据也可从存储部21获取。然后,利用者检测部22b从获取到的图像数据所示的二值图像中分别提取检测区域E1~E3部分(步骤S22)。First, the user detection unit 22b acquires image data representing a binary image from the boundary detection unit 22a (step S21). Alternatively, the image data representing a binary image can be acquired from the storage unit 21. The user detection unit 22b then extracts detection areas E1 to E3 from the binary image represented by the acquired image data (step S22).

接着,利用者检测部22b参考提取到的检测区域E1~E3部分的各图像(以下记作“检测区域图像”)来判定由交界检测部22a检测到的各种交界中的任一方是否发生了中断(步骤S23)。详细而言,利用者检测部22b参考提取到的与检测区域E1相对应的检测区域图像来判定轿厢门槛13a与地板的交界是否发生了中断。此外,利用者检测部22b参考提取到的与检测区域E2相对应的检测区域图像来判定候梯厅门槛14a与地板的交界是否发生了中断。进而,利用者检测部22b参考提取到的与检测区域E3相对应的检测区域图像来判定轿厢门槛13a及候梯厅门槛14a与上述间隙的交界是否发生了中断。Next, the user detection unit 22b refers to the extracted images of the detection areas E1 to E3 (hereinafter referred to as "detection area images") to determine whether any of the various boundaries detected by the boundary detection unit 22a is interrupted (step S23). In detail, the user detection unit 22b refers to the extracted detection area image corresponding to the detection area E1 to determine whether the boundary between the car door sill 13a and the floor is interrupted. In addition, the user detection unit 22b refers to the extracted detection area image corresponding to the detection area E2 to determine whether the boundary between the elevator hall door sill 14a and the floor is interrupted. Furthermore, the user detection unit 22b refers to the extracted detection area image corresponding to the detection area E3 to determine whether the boundary between the car door sill 13a and the elevator hall door sill 14a and the above-mentioned gap is interrupted.

再者,在判定各种交界均未发生中断的情况下(步骤S23的否),利用者检测部22b判断不存在有被门夹住之虞的利用者,从而结束利用者检测处理。Furthermore, when it is determined that none of the boundaries are interrupted (No in step S23), the user detection unit 22b determines that there is no user who is likely to be caught by the door, and ends the user detection process.

另一方面,在判定各种交界中的任一方发生了中断的情况下(步骤S23的是),利用者检测部22b判断存在有被门夹住之虞的利用者(步骤S24),从而将与该判断的结果关联起来的信号输出至轿厢控制装置30(步骤S25),并结束利用者检测处理。On the other hand, when it is determined that an interruption has occurred at any one of the various boundaries (yes in step S23), the user detection unit 22b determines that there is a user who is in danger of being pinched by the door (step S24), and outputs a signal associated with the result of the judgment to the car control device 30 (step S25), thereby ending the user detection processing.

接着,参考图10的流程图和图11的示意图,对上述步骤S23的处理进行更详细的说明。Next, the processing of step S23 will be described in more detail with reference to the flowchart of FIG10 and the schematic diagram of FIG11 .

首先,利用者检测部22b着眼于上述步骤S22中提取到的检测区域图像中包含的大量像素当中位于第x列的多个像素(步骤S31)。First, the user detection unit 22 b focuses on a plurality of pixels located in the x-th column among a large number of pixels included in the detection area image extracted in step S22 (step S31 ).

检测区域图像中包含大量像素,例如包含m×n个像素。即,如图11所示,在检测区域图像中,在图像水平方向上排列有m个(m列)像素(像素列),在图像垂直方向上排列有n个(n行)像素(像素行)。也就是说,对上述的步骤S31的x依序代入1~m的值。The detection area image contains a large number of pixels, for example, m×n pixels. Specifically, as shown in Figure 11, the detection area image has m pixels (m columns) arranged horizontally, and n pixels (n rows) arranged vertically. In other words, values 1 to m are substituted into x in step S31 above.

然后,利用者检测部22b算出所着眼的第x列上排列的n个像素(像素组)的值的合计值(以下记作“累积像素值”)(步骤S32)。Then, the user detection unit 22 b calculates the total value (hereinafter referred to as “accumulated pixel value”) of the values of n pixels (pixel group) arranged on the x-th column of interest (step S32 ).

检测区域图像是从二值图像中提取检测区域部分而得的图像,因此,该检测区域图像中包含的像素的值为0或1。如上所述,在二值图像中,白色部分的像素的值为1,黑色部分的像素的值为0,因此,利用者检测部22b据此算出第x列上排列的n个像素的累积像素值。The detection area image is an image obtained by extracting the detection area portion from the binary image. Therefore, the pixel values contained in the detection area image are either 0 or 1. As described above, in a binary image, the value of pixels in white areas is 1, and the value of pixels in black areas is 0. Therefore, the user detection unit 22b calculates the cumulative pixel value of the n pixels arranged in the x-th column based on this.

接着,利用者检测部22b判定算出的累积像素值是否为0(步骤S33)。再者,在判定累积像素值为0的情况下(步骤S33的是),利用者检测部22b判定交界发生了中断(步骤S34),其后,执行上述步骤S24的处理。Next, the user detection unit 22b determines whether the calculated cumulative pixel value is 0 (step S33). If the cumulative pixel value is 0 (yes in step S33), the user detection unit 22b determines that a boundary interruption has occurred (step S34), and then executes the process of step S24 described above.

另一方面,在判定累积像素值不为0的情况下(步骤S33的否),利用者检测部22b判定是否已着眼于所有的列(步骤S35)。On the other hand, when it is determined that the cumulative pixel value is not 0 (No in step S33 ), the user detection unit 22 b determines whether attention has been paid to all the columns (step S35 ).

再者,在判定已着眼于所有的列的情况下,也就是说,在判定x=m的情况下(步骤S35的是),利用者检测部22b判定交界未发生中断(步骤S36)。也就是说,利用者检测部22b判断不存在有被门夹住之虞的利用者,从而结束利用者检测处理。If it is determined that all columns have been considered, that is, if x = m (YES in step S35), the user detection unit 22b determines that no boundary interruption has occurred (step S36). In other words, the user detection unit 22b determines that there is no user who is likely to be trapped by the door, and the user detection process ends.

另一方面,在判定尚未着眼于所有的列的情况下,也就是说,在判定x≠m的情况下(步骤S35的否),利用者检测部22b对x加1,将该值设为新的x(步骤S37)。其后,返回至上述步骤S31的处理,重复执行上述各种处理。On the other hand, if it is determined that not all columns have been considered, that is, if it is determined that x≠m (No in step S35), the user detection unit 22b adds 1 to x and sets this value as a new x (step S37). Thereafter, the process returns to step S31 and the various processes described above are repeated.

图12及图13均表示经由交界检测部22a二值化之后的二值图像、从该二值图像中提取到的与检测区域E2相对应的检测区域图像、以及对该检测区域图像运用了图10所示的一系列处理的情况下的结果的一例。12 and 13 each show an example of a binary image after binarization by the boundary detection unit 22a, a detection area image corresponding to the detection area E2 extracted from the binary image, and a result of applying the series of processing shown in FIG. 10 to the detection area image.

对从图12的(a)的二值图像中提取到的图12的(b)的检测区域图像运用了上述图10所示的一系列处理的情况下的各列的累积像素值为图12的(c)的样子。图12的(c)中,纵轴表示累积像素值,横轴表示用于识别各列的编号(或者图像水平方向的坐标)。When the series of processes shown in FIG10 are applied to the detection area image ( FIG12(b) ) extracted from the binary image ( FIG12(a) ), the cumulative pixel values for each column are shown in FIG12(c) In FIG12(c) , the vertical axis represents the cumulative pixel values, and the horizontal axis represents the number (or horizontal coordinate in the image) used to identify each column.

在该情况下,如图12的(c)所示,没有累积像素值为0的列,因此,利用者检测部22b判定与检测区域E2相对应的交界也就是候梯厅门槛14a与地板的交界未发生中断。于是,利用者检测部22b判断检测区域E2内不存在有被门夹住之虞的利用者。In this case, as shown in FIG12(c), there are no columns with cumulative pixel values of 0. Therefore, the user detection unit 22b determines that the boundary corresponding to detection area E2, that is, the boundary between the hall threshold 14a and the floor, is not interrupted. Therefore, the user detection unit 22b determines that there are no users in detection area E2 who are at risk of being trapped by the door.

另一方面,对从图13的(a)的二值图像中提取到的图13的(b)的检测区域图像运用了上述图10所示的一系列处理的情况下的各列的累积像素值为图13的(c)的样子。在该情况下,在图13的(c)的被虚线围住的列中,累积像素值为0,因此,利用者检测部22b判定与检测区域E2相对应的交界也就是候梯厅门槛14a与地板的交界发生了中断。于是,利用者检测部22b判断检测区域E2内存在有被门夹住之虞的利用者。On the other hand, when the series of processes shown in FIG10 are applied to the detection area image ( FIG13(b) ) extracted from the binary image ( FIG13(a) ), the cumulative pixel values for each column are as shown in FIG13(c) . In this case, the cumulative pixel values in the column enclosed by the dotted line in FIG13(c) are 0. Therefore, the user detection unit 22b determines that the boundary corresponding to detection area E2, namely, the boundary between the hall threshold 14a and the floor, has been interrupted. Therefore, the user detection unit 22b determines that a user who is at risk of being trapped by the door is present within detection area E2.

再者,此处是以与检测区域E2相对应的检测区域图像为例来进行的说明,但与检测区域E1、E3相对应的检测区域图像也是一样的。Note that, although the description here is made by taking the detection area image corresponding to the detection area E2 as an example, the same applies to the detection area images corresponding to the detection areas E1 and E3.

此外,此处是通过判定是否存在累积像素值为0的列来判定各种交界是否发生了中断。但是,例如也可算出累积像素值为1以上的列的比例(=[累积像素值为1以上的列的数量]/m),并判定该算出的比例是否不到预先设定的阈值(例如不到95%),由此来判定各种交界是否发生了中断。再者,判定是否存在累积像素值为0的列的方法与将上述阈值设定为100%的情况相同。Here, the presence of columns with cumulative pixel values of 0 is used to determine whether various boundaries are discontinuous. However, for example, the ratio of columns with cumulative pixel values of 1 or greater (= [number of columns with cumulative pixel values of 1 or greater]/m) can be calculated, and then the ratio can be determined to be less than a predetermined threshold (e.g., less than 95%) to determine whether various boundaries are discontinuous. Furthermore, the method for determining the presence of columns with cumulative pixel values of 0 is the same as when the threshold is set to 100%.

或者,作为判定各种交界是否发生了中断的方法,也可使用标记法、霍夫变换等公知的方法从检测区域图像中检测直线并判定该检测到的直线是否发生了中断,由此来判定各种交界是否发生了中断。Alternatively, as a method for determining whether various boundaries are interrupted, known methods such as labeling and Hough transform can be used to detect straight lines from the detection area image and determine whether the detected straight lines are interrupted, thereby determining whether various boundaries are interrupted.

此外,在为了检测各种交界而使用了每一像素的亮度梯度的强度的情况下,利用者检测部22b能以与上述相同的方式算出检测区域图像的每一列的累积像素值,在存在该算出的累积像素值不到预先设定的阈值的列的情况下、判定各种交界发生了中断。或者,也可在累积像素值不到预先设定的阈值的列的比例为预先设定的阈值以上(例如5%以上)的情况下、判定各种交界发生了中断。再者,使用了阈值的该方法也能运用于为了检测各种交界而检测人或物的边缘并将拍摄图像二值化的情况。Furthermore, when the intensity of the brightness gradient of each pixel is used to detect various boundaries, the user detection unit 22b can calculate the cumulative pixel value for each column of the detection area image in the same manner as described above. If there are columns whose calculated cumulative pixel value is less than a predetermined threshold, the various boundaries can be determined to be interrupted. Alternatively, if the proportion of columns whose cumulative pixel values are less than the predetermined threshold is greater than a predetermined threshold (e.g., 5% or more), the various boundaries can be determined to be interrupted. Furthermore, this method using a threshold can also be applied to detecting the edges of people or objects and binarizing the captured image to detect various boundaries.

此外,利用者检测部22a也可在数帧间(例如从该拍摄图像的拍摄帧起5帧间)保持针对1张拍摄图像的利用者检测处理的检测结果,在该5帧间获得了存在有被门夹住之虞的利用者这一内容的检测结果的比例为预先设定的阈值(例如50%)以上的情况下,正式判断存在有被门夹住之虞的利用者,并将与该判断关联起来的信号输出至轿厢控制装置30。In addition, the user detection unit 22a can also maintain the detection results of the user detection processing for one captured image between several frames (for example, 5 frames from the captured frame of the captured image). When the proportion of the detection results that indicate that there is a risk of users being pinched by the door obtained between the 5 frames is above a predetermined threshold (for example, 50%), it is formally judged that there is a risk of users being pinched by the door, and a signal associated with the judgment is output to the car control device 30.

再者,在本实施方式中,是将检测对象设为有被门夹住之虞的利用者,但检测对象只要为在门的开闭时有导致事故之虞的利用者即可,例如,也可将有与门碰撞之虞的利用者设为检测对象。Furthermore, in this embodiment, the detection object is set as a user who is at risk of being pinched by the door, but the detection object can be any user who is at risk of causing an accident when the door is opened or closed. For example, a user who is at risk of colliding with the door can also be set as the detection object.

此外,在本实施方式中,例示的是在门为全开状态的情况下设定检测区域而执行利用者检测处理的情况,但是,例如也可在门的关门过程中或者门的开门过程中执行上述利用者检测处理。在该情况下,交界检测部22a根据门的开量来调整检测区域的宽度(图像水平方向的长度)、之后设定检测区域即可。此外,交界检测部22a也可针对每一拍摄帧而根据门的开量来调整检测区域的宽度。也就是说,交界检测部22a也可动态地改变检测区域。Furthermore, while this embodiment illustrates the case where the detection area is set and user detection is performed when the door is fully open, the user detection process can also be performed while the door is closing or opening. In this case, the boundary detection unit 22a can simply adjust the width of the detection area (the horizontal length of the image) based on the door opening and then set the detection area. Furthermore, the boundary detection unit 22a can also adjust the width of the detection area based on the door opening for each captured frame. In other words, the boundary detection unit 22a can also dynamically change the detection area.

根据以上说明过的第1实施方式,图像处理装置20具备检测部22,所述检测部22能够根据1张拍摄图像来检测有被门夹住之虞的利用者的有无。由此,可以实现能够省去事先准备基准图像的工夫、而且还不会被照明条件所左右的利用者检测处理。也就是说,可以提供一种安全性高的利用者检测系统。According to the first embodiment described above, the image processing device 20 includes a detection unit 22 capable of detecting the presence of a user at risk of being trapped by a door based on a single captured image. This eliminates the need for preparing a reference image and enables user detection processing that is not affected by lighting conditions. This provides a highly secure user detection system.

此外,由于本实施方式所涉及的利用者检测处理中仅使用1张拍摄图像,因此,能够缩短检测到有被门夹住之虞的利用者的有无为止所耗费的时间。也就是说,能够缩短利用者检测处理所耗费的时间。Furthermore, since only one captured image is used in the user detection process according to this embodiment, the time required to detect the presence of a user who may be caught by the door can be shortened. In other words, the time required for the user detection process can be shortened.

<第2实施方式><Second embodiment>

接着,对第2实施方式进行说明。在上述第1实施方式中,检测区域是设定在拍摄图像上推测映有轿厢门槛13a及候梯厅门槛14a的位置。而在本实施方式中,检测区域是设定在拍摄图像上推测映有轿厢门13及候梯厅门14的顶端的位置。再者,轿厢门13及候梯厅门14的顶端也可称为轿厢门13及候梯厅门14的两端中的位于关门方向的那一端。或者,也可称为轿厢门13及候梯厅门14的两端中的位于门档侧的那一端。以下,对具有与第1实施方式相同的功能的功能部标注同一符号并省略其详细说明。以下,主要是对与第1实施方式不同的部分进行说明。Next, the second embodiment will be described. In the above-mentioned first embodiment, the detection area is set at the position where the car door sill 13a and the elevator hall door sill 14a are estimated to be reflected on the captured image. In the present embodiment, the detection area is set at the position where the top ends of the car door 13 and the elevator hall door 14 are estimated to be reflected on the captured image. Furthermore, the top ends of the car door 13 and the elevator hall door 14 can also be referred to as the end of the car door 13 and the elevator hall door 14 that is located in the door closing direction. Alternatively, it can also be referred to as the end of the car door 13 and the elevator hall door 14 that is located on the door stop side. Hereinafter, the functional parts having the same functions as those in the first embodiment are marked with the same symbols and their detailed descriptions are omitted. Hereinafter, the parts that are different from the first embodiment will be mainly described.

再者,在本实施方式中,是设想摄像机12设置于单开式电梯中的情况,因此,轿厢门13及候梯厅门14的顶端为1个,设定的检测区域的数量也为1个。而在摄像机12设置于中开式电梯中的情况下,轿厢门13及候梯厅门14的顶端为2个,因此,设定的检测区域的数量也为2个。但检测区域的设定方法在两种形式的电梯中都是一样的,因此,此处省略摄像机12设置于中开式电梯中的情况下的检测区域的设定相关的说明。Furthermore, in this embodiment, the camera 12 is installed in a single-swing elevator. Therefore, there is one camera located at the top of each of the car doors 13 and the hall door 14, and the number of detection areas set is also one. However, if the camera 12 is installed in a center-swing elevator, there are two cameras located at the top of each of the car doors 13 and the hall door 14, and the number of detection areas set is also two. However, the method for setting detection areas is the same for both types of elevators, so the description of setting detection areas for the case of the camera 12 installed in a center-swing elevator will be omitted here.

如上所述,交界检测部22a在拍摄图像上推测映有轿厢门13及候梯厅门14的顶端的位置设定检测区域。推测映有轿厢门13及候梯厅门14的顶端的位置是根据上述条件(a)~(e)和当前的轿厢门13的开量来算出。As described above, the boundary detection unit 22a sets the detection area by estimating the positions where the top ends of the car door 13 and the hall door 14 are reflected on the captured image. The positions where the top ends of the car door 13 and the hall door 14 are estimated are calculated based on the above-mentioned conditions (a) to (e) and the current opening amount of the car door 13.

再者,交界检测部22a可通过与轿厢控制装置30进行通信来获取表示当前的轿厢门13的开量的信息本身。Furthermore, the boundary detection unit 22 a can acquire the information indicating the current opening amount of the car door 13 by communicating with the car control device 30 .

或者,交界检测部22a也可首先与轿厢控制装置30进行通信,由此获取表示轿厢门13从全闭状态开始开门这一情况的信号或者表示轿厢门13从全开状态开始关门这一情况的信号。其后,交界检测部22a根据从获取到这些信号的时刻起的经过时间和轿厢门13的门开闭速度来算出当前的轿厢门13的开量。Alternatively, the boundary detection unit 22a may first communicate with the car control device 30 to obtain a signal indicating that the car door 13 has opened from a fully closed state, or a signal indicating that the car door 13 has closed from a fully open state. The boundary detection unit 22a then calculates the current opening amount of the car door 13 based on the elapsed time from the time these signals were obtained and the door opening and closing speed of the car door 13.

或者,交界检测部22a也可通过对获取到的拍摄图像实施公知的图像解析处理来算出当前的轿厢门13的开量。Alternatively, the boundary detection unit 22a may calculate the current opening amount of the car door 13 by performing a known image analysis process on the acquired captured image.

此处,参考图14的流程图和图15的示意图,对由交界检测部22a执行的与轿厢门13的顶端相对应的检测区域的设定处理的次序的一例进行说明。Here, an example of a procedure for setting a detection area corresponding to the top end of the car door 13 performed by the boundary detection unit 22a will be described with reference to the flowchart of FIG. 14 and the schematic diagram of FIG. 15 .

首先,交界检测部22a根据当前的轿厢门13的开量、三维空间中摄像机12相对于轿厢门13的顶端与地面相接触(抵接)的位置(以下记作“顶端下部”)的相对位置、以及从该顶端下部到摄像机12的高度(或者轿厢门13的高度)来算出顶端下部的三维坐标和在垂直方向上延伸从该顶端下部到摄像机12的高度(或者轿厢门13的高度)程度的位置(以下记作“顶端上部”)的三维坐标(步骤S41)。First, the intersection detection unit 22a calculates the three-dimensional coordinates of the lower top portion and the three-dimensional coordinates of the position extending vertically from the lower top portion to the height of the camera 12 (or the height of the car door 13) (hereinafter referred to as the "upper top portion") based on the current opening of the car door 13, the relative position of the camera 12 in three-dimensional space relative to the position where the top end of the car door 13 contacts (abuts) the ground (hereinafter referred to as the "lower top portion"), and the height from the lower top portion to the camera 12 (or the height of the car door 13) (step S41).

然后,交界检测部22a将步骤S41中算出的顶端下部及顶端上部的三维坐标射影至拍摄图像上的二维坐标来算出与顶端下部及顶端上部相对应的二维坐标。具体而言,交界检测部22a算出图15所示的拍摄图像的点PD1、PD2的二维坐标(步骤S42)。The boundary detection unit 22a then projects the three-dimensional coordinates of the top lower portion and the top upper portion calculated in step S41 onto the two-dimensional coordinates on the captured image to calculate the two-dimensional coordinates corresponding to the top lower portion and the top upper portion. Specifically, the boundary detection unit 22a calculates the two-dimensional coordinates of points PD1 and PD2 in the captured image shown in FIG15 (step S42).

其后,交界检测部22a将像图15所示那样的如下区域设定为与轿厢门13的顶端相对应的检测区域E4,该区域包含位于与连结由步骤S42中算出的二维坐标确定的2点PD1与PD2而形成的线段LD1(位于线段LD1上的各像素)相距规定像素(例如5像素)的部分(步骤S43),并结束设定处理。再者,在上述第1实施方式的检测区域的设定中也能运用该方法。也就是说,也可不确定4点而仅确定2点、之后像该方法这样设定检测区域E1~E3。Thereafter, the boundary detection unit 22a sets the following area as shown in FIG. 15 as the detection area E4 corresponding to the top end of the car door 13, including the portion located a predetermined number of pixels (e.g., 5 pixels) from the line segment LD1 formed by connecting the two points PD1 and PD2 identified by the two-dimensional coordinates calculated in step S42 (each pixel located on the line segment LD1) (step S43), and the setting process ends. Furthermore, this method can also be applied to the setting of the detection area in the first embodiment described above. In other words, instead of determining four points, only two points can be determined, and then the detection areas E1 to E3 can be set using this method.

再者,图15例示的是轿厢门13为全开状态(轿厢门13的当前的开量最大)时的检测区域的设定,而轿厢门13为关门状态时的检测区域的设定也是一样的,在该情况下,设定图16所示那样的检测区域E4。Furthermore, Figure 15 illustrates the setting of the detection area when the car door 13 is fully open (the current opening of the car door 13 is the largest), and the setting of the detection area when the car door 13 is closed is the same. In this case, the detection area E4 shown in Figure 16 is set.

此外,如上所述,在摄像机12设置于中开式电梯中的情况下,分别以左右2个门为对象来执行上述的图14所示的一系列处理,由此针对每一门来设定检测区域,详情从略。As described above, when the camera 12 is installed in a center-opening elevator, the series of processing shown in FIG. 14 is performed for each of the left and right doors, thereby setting a detection area for each door. Details are omitted.

设定上述检测区域E4之后执行的检测各种交界的处理与上述第1实施方式相同。即,交界检测部22a至少检测位于检测区域E4近旁的人或物的边缘来检测交界。The process of detecting various boundaries executed after setting the detection area E4 is the same as that of the first embodiment. That is, the boundary detection unit 22a detects at least the edge of a person or object located near the detection area E4 to detect the boundary.

再者,由交界检测部22a检测的交界根据轿厢门13的当前的门开闭状态(轿厢门13的当前的开量)而不同。例如,在轿厢门13处于全开状态(轿厢门13的当前的开量最大)的情况下,会检测到轿厢门13的顶端与设置在轿厢门13近旁的出入口柱的交界。此外,在轿厢门13处于关门状态的情况下,会检测到轿厢门13的顶端与背景(候梯厅15的地板)的交界。Furthermore, the boundary detected by the boundary detection unit 22a varies depending on the current door opening/closing state (current opening amount of the car door 13) of the car door 13. For example, when the car door 13 is fully open (the current opening amount of the car door 13 is at its maximum), the boundary between the top end of the car door 13 and the entrance/exit pillar provided near the car door 13 is detected. Alternatively, when the car door 13 is closed, the boundary between the top end of the car door 13 and the background (the floor of the elevator lobby 15) is detected.

由利用者检测部22b执行的利用者检测处理也与上述第1实施方式相同。即,利用者检测部22b参考与检测区域E4相对应的检测区域图像来判定由交界检测部22a检测到的交界是否发生了中断,从而检测有被门夹住之虞的利用者的有无。The user detection process performed by the user detection unit 22b is also the same as that in the first embodiment described above. Specifically, the user detection unit 22b refers to the detection area image corresponding to the detection area E4 to determine whether the boundary detected by the boundary detection unit 22a is interrupted, thereby detecting the presence of a user who is at risk of being trapped by the door.

图17及图18均表示经由交界检测部22a二值化之后的二值图像、从该二值图像中提取到的与检测区域E4相对应的检测区域图像、以及对该检测区域图像运用了图10所示的一系列处理的情况下的结果。17 and 18 both show a binary image after binarization by the boundary detection unit 22a, a detection area image corresponding to the detection area E4 extracted from the binary image, and the result of applying the series of processing shown in FIG. 10 to the detection area image.

对从图17的(a)的二值图像中提取到的图17的(b)的检测区域图像运用了第1实施方式中说明过的图10所示的一系列处理的情况下的各列的累积像素值为图17的(c)的样子。在该情况下,如图17的(c)所示,没有累积像素值为0的列,因此,利用者检测部22b判定与检测区域E4相对应的交界未发生中断,在该情况下,由于轿厢门13为全开状态,因此是判定轿厢门13的顶端与设置在轿厢门13近旁的出入口柱的交界未发生中断。于是,利用者检测部22b判断检测区域E4内不存在有被门夹住之虞的利用者。When the series of processes shown in FIG. 10 described in the first embodiment are applied to the detection area image ( FIG. 17(b) ) extracted from the binary image ( FIG. 17(a) ), the cumulative pixel values of each column are as shown in FIG. 17(c) . In this case, as shown in FIG. 17(c) , there are no columns with cumulative pixel values of 0. Therefore, the user detection unit 22b determines that the boundary corresponding to the detection area E4 is not interrupted. In this case, since the car door 13 is fully open, the boundary between the top end of the car door 13 and the entrance post located near the car door 13 is not interrupted. Therefore, the user detection unit 22b determines that there is no user in the detection area E4 who is at risk of being pinched by the door.

另一方面,对从图18的(a)的二值图像中提取到的图18的(b)的检测区域图像运用了第1实施方式中说明过的图10所示的一系列的处理的情况下的各列的累积像素值为图18的(c)的样子。在该情况下,如图18的(a)所示,由于存在利用者的手,所以图18的(c)的被虚线围住的列中累积像素值为0,因此,利用者检测部22b判定与检测区域E4相对应的交界发生了中断,在该情况下,由于轿厢门13为全开状态,因此是判定轿厢门13的顶端与设置在轿厢门13近旁的出入口柱的交界发生了中断。于是,利用者检测部22b判断检测区域E4内存在有被门夹住之虞的利用者。On the other hand, when the series of processes shown in FIG. 10 described in the first embodiment are applied to the detection area image ( FIG. 18(b) ) extracted from the binary image ( FIG. 18(a) ), the cumulative pixel values of each column are as shown in FIG. 18(c) . In this case, as shown in FIG. 18(a) , due to the presence of the user's hand, the cumulative pixel values in the column enclosed by the dotted line in FIG. 18(c) are 0. Therefore, the user detection unit 22b determines that the boundary corresponding to the detection area E4 has been interrupted. In this case, since the car door 13 is fully open, the boundary between the top end of the car door 13 and the entrance and exit pillars located near the car door 13 has been interrupted. Therefore, the user detection unit 22b determines that a user who is at risk of being pinched by the door is present within the detection area E4.

再者,与上述第1实施方式一样,也可算出累积像素值为1以上的列的比例并判定该算出的比例是否不到预先设定的阈值,由此来判定交界是否发生了中断。或者,也可使用标记法或霍夫变换等公知的方法从检测区域图像中检测直线并判定该检测到的直线是否发生了中断,由此来判定交界是否发生了中断。Furthermore, similar to the first embodiment, the proportion of columns with cumulative pixel values of 1 or greater may be calculated, and then a determination may be made as to whether the calculated proportion is less than a preset threshold value, thereby determining whether the boundary is interrupted. Alternatively, a known method such as a labeling method or a Hough transform may be used to detect straight lines from the detection area image, and then a determination may be made as to whether the detected straight lines are interrupted, thereby determining whether the boundary is interrupted.

进而,为了检测交界,也可使用每一像素的亮度梯度的强度而不是边缘。在该情况下,与上述第1实施方式一样,可算出检测区域图像的每一列的累积像素值,在存在该算出的累积像素值不到预先设定的阈值的列的情况下判定交界发生了中断。或者,也可在累积像素值不到预先设定的阈值的列的比例为预先设定的阈值以上的情况下判定交界发生了中断。Furthermore, the intensity of the brightness gradient of each pixel can be used instead of the edge to detect the boundary. In this case, as in the first embodiment described above, the cumulative pixel value of each column of the detection area image can be calculated, and if there are columns whose calculated cumulative pixel value is less than a predetermined threshold, the boundary is determined to be interrupted. Alternatively, the boundary can be determined to be interrupted if the proportion of columns whose cumulative pixel values are less than the predetermined threshold is greater than or equal to the predetermined threshold.

此外,与上述第1实施方式一样,利用者检测部22a也可在数帧间(例如从该拍摄图像的拍摄帧起5帧间)保持针对1张拍摄图像的利用者检测处理的检测结果,在该5帧间获得了存在有被门夹住之虞的利用者这一内容的检测结果的比例为预先设定的阈值(例如50%)以上的情况下,正式判断存在有被门夹住之虞的利用者,并将与该判断关联起来的信号输出至轿厢控制装置30。In addition, as in the first embodiment described above, the user detection unit 22a can also maintain the detection results of the user detection processing for one captured image between several frames (for example, 5 frames from the captured frame of the captured image). When the proportion of the detection results that indicate that there is a risk of users being pinched by the door obtained between the 5 frames is above a predetermined threshold value (for example, 50%), it is formally determined that there is a risk of users being pinched by the door, and a signal associated with the determination is output to the car control device 30.

根据以上说明过的第2实施方式,图像处理装置20具备检测部22,所述检测部22不仅设定与门槛相对应的检测区域E1~E3,还设定与轿厢门13的顶端相对应的检测区域E4,在检测区域E4部分也能检测有被门夹住之虞的利用者的有无。由此,能在更大范围内检测有被门夹住之虞的利用者的有无。也就是说,可以提供一种安全性更高的利用者检测系统。According to the second embodiment described above, the image processing device 20 includes a detection unit 22. This detection unit 22 is configured not only with detection areas E1 to E3 corresponding to the door sills, but also with a detection area E4 corresponding to the top end of the car door 13. This allows detection of users at risk of being trapped by the door even within detection area E4. This allows detection of users at risk of being trapped by the door over a wider range. This provides a safer user detection system.

根据以上说明过的至少1种实施方式,可以提供一种能够检测有被门夹住之虞的人或物而不被摄像机的图像拍摄时的照明条件所左右的利用者检测系统。According to at least one embodiment described above, a user detection system can be provided that can detect a person or object that is likely to be caught by a door without being affected by lighting conditions when the camera captures an image.

再者,虽然对本发明的若干实施方式进行了说明,但这些实施方式是作为例子呈现的,并非意欲限定发明的范围。这些新颖的实施方式能以其他各种形态加以实施,可以在不脱离发明的主旨的范围内进行各种省略、替换、变更。这些实施方式及其变形包含在发明的范围和主旨内,而且包含在权利要求书中记载的发明及其均等的范围内。Furthermore, although several embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments may be implemented in various other forms and may be omitted, replaced, or modified without departing from the spirit of the invention. These embodiments and their variations are intended to be within the scope and spirit of the invention and are within the scope of the invention set forth in the claims and their equivalents.

Claims (10)

1.一种利用者检测系统,其特征在于,具备:1. A user detection system, characterized in that it comprises: 摄像机,以轿厢的门槛被包含在拍摄范围内的方式设置在门近旁,能够拍摄所述门在开闭时行走的行走区域和包含所述门槛的所述门周边;A camera is positioned near the door such that the threshold of the car is included in the shooting range, and is capable of shooting the walking area of the door when it is opened and closed and the perimeter of the door including the threshold. 交界检测部,根据由所述摄像机拍摄到的图像来检测处于所述门周边的第1结构物与第2结构物的交界;The boundary detection unit detects the boundary between the first structure and the second structure located around the door based on the image captured by the camera. 利用者检测部,根据所述交界检测部的检测结果来检测所述行走区域内的利用者的有无;以及The user detection unit detects the presence or absence of a user within the walking area based on the detection results of the boundary detection unit; and 控制部,根据所述利用者检测部的检测结果来控制所述门的开闭动作,The control unit controls the opening and closing of the door based on the detection results from the user detection unit. 所述交界检测部将检测区域设定在拍摄图像上推测映有所述门槛的位置,The boundary detection unit sets the detection area on the captured image at the location where the threshold is predicted. 推测映有所述门槛的位置是根据所述轿厢的尺寸以及所述摄像机的固有值来算出的。It is speculated that the position of the threshold is calculated based on the dimensions of the car and the inherent value of the camera. 2.根据权利要求1所述的利用者检测系统,其特征在于,2. The user detection system according to claim 1, characterized in that, 所述交界检测部检测所述第1结构物与所述第2结构物的直线状的交界,The boundary detection unit detects the straight-line boundary between the first structure and the second structure. 所述利用者检测部根据由所述交界检测部检测到的直线状的交界是否发生了中断来检测所述行走区域内的利用者的有无。The user detection unit detects the presence or absence of a user within the walking area based on whether the straight boundary detected by the boundary detection unit is interrupted. 3.根据权利要求2所述的利用者检测系统,其特征在于,3. The user detection system according to claim 2, characterized in that, 在所述直线状的交界发生了中断的情况下,所述利用者检测部判断所述行走区域内存在利用者。When the straight-line intersection is interrupted, the user detection unit determines that a user exists in the walking area. 4.根据权利要求1所述的利用者检测系统,其特征在于,4. The user detection system according to claim 1, characterized in that, 所述交界检测部根据所述门固有的参数来设定检测区域,将检测所述交界的区域限缩为该检测区域。The boundary detection unit sets the detection area based on the inherent parameters of the gate, thus narrowing the area for detecting the boundary to this detection area. 5.根据权利要求1所述的利用者检测系统,其特征在于,5. The user detection system according to claim 1, characterized in that, 所述交界检测部根据由所述摄像机拍摄到的1张图像来检测所述交界。The boundary detection unit detects the boundary based on an image captured by the camera. 6.根据权利要求1所述的利用者检测系统,其特征在于,6. The user detection system according to claim 1, characterized in that, 所述交界检测部将所述门的门开闭用的槽即门槛作为所述第1结构物、将地板作为所述第2结构物来检测所述交界。The boundary detection unit uses the door opening and closing groove, i.e., the threshold, as the first structure and the floor as the second structure to detect the boundary. 7.根据权利要求1所述的利用者检测系统,其特征在于,7. The user detection system according to claim 1, characterized in that, 所述交界检测部将所述门的顶端作为所述第1结构物、将设置在所述门近旁的出入口柱作为所述第2结构物来检测所述交界。The boundary detection unit uses the top of the door as the first structure and the entrance/exit column located near the door as the second structure to detect the boundary. 8.根据权利要求1所述的利用者检测系统,其特征在于,8. The user detection system according to claim 1, characterized in that, 所述交界检测部将所述门的顶端作为所述第1结构物、将地板作为所述第2结构物来检测所述交界。The boundary detection unit detects the boundary by using the top of the door as the first structure and the floor as the second structure. 9.根据权利要求1所述的利用者检测系统,其特征在于,9. The user detection system according to claim 1, characterized in that, 所述交界检测部为了检测所述第1结构物与所述第2结构物的交界而将由所述摄像机拍摄到的图像二值化,The boundary detection unit binarizes the image captured by the camera in order to detect the boundary between the first structure and the second structure. 所述利用者检测部着眼于构成所述二值化之后的图像的大量像素当中位于第x列的像素组,算出所着眼的所述像素组的像素值的合计值,根据算出的所述合计值是否为0来检测所述行走区域内的利用者的有无。The user detection unit focuses on the pixel group located in the xth column among the large number of pixels constituting the binarized image, calculates the total value of the pixel values of the focused pixel group, and detects the presence or absence of a user in the walking area based on whether the calculated total value is 0. 10.根据权利要求1所述的利用者检测系统,其特征在于,10. The user detection system according to claim 1, characterized in that, 所述交界检测部为了检测所述第1结构物与所述第2结构物的交界而将由所述摄像机拍摄到的图像二值化,The boundary detection unit binarizes the image captured by the camera in order to detect the boundary between the first structure and the second structure. 所述利用者检测部依序着眼于所述二值化之后的图像的水平方向及垂直方向上排列的大量像素当中沿所述水平方向排列的像素列,依序算出所着眼的所述像素列的像素值的合计值,根据所述算出的合计值为1以上的像素列的比例是否不到阈值来检测所述行走区域内的利用者的有无。The user detection unit sequentially focuses on a large number of pixels arranged in the horizontal and vertical directions of the binarized image, and calculates the total pixel value of the focused pixel column in sequence. The presence or absence of a user in the walking area is detected based on whether the proportion of pixel columns with a total value of 1 or higher is less than a threshold.
HK19129567.4A 2017-12-15 2019-09-12 User detection system HK40006044B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017-240799 2017-12-15

Publications (2)

Publication Number Publication Date
HK40006044A HK40006044A (en) 2020-05-15
HK40006044B true HK40006044B (en) 2022-03-18

Family

ID=

Similar Documents

Publication Publication Date Title
JP6657167B2 (en) User detection system
JP4859879B2 (en) Object detection device and gate device using it
EP2919189B1 (en) Pedestrian tracking and counting method and device for near-front top-view monitoring video
JP2007241500A (en) Face authentication apparatus and face authentication method
JP2003524813A (en) Obstacle detection device
JP6139729B1 (en) Image processing device
CN109035278A (en) The detection method of fire exit door and its switch state based on image
JP6199216B2 (en) Elevator monitoring device
JP7074161B2 (en) Image processing device and image processing method
JP3914447B2 (en) Image-type vehicle detection system and image-type vehicle detection method
CN112429609B (en) User detection system for elevator
HK40006044B (en) User detection system
JP6922951B2 (en) Image processing device and image processing method
KR101998256B1 (en) Moving Object Tracking System and Method
JPH05300516A (en) Animation processor
JP7077437B2 (en) Elevator user detection system
KR101958927B1 (en) Method And Apparatus for Providing Adaptive Counting People
JP7187629B1 (en) Elevator user detection system
CN113428750B (en) User detection system for elevator
CN116040432A (en) Method, system and storage medium for processing elevator images
JP6874796B2 (en) Elevator door control device and control method
JP7358606B1 (en) elevator system
JP4184133B2 (en) Image processing device
HK40006044A (en) User detection system
JPH1013821A (en) Video surveillance tracking device