TWI781069B - Vehicle congestion degree determination method, and vehicle congestion degree determination system - Google Patents
Vehicle congestion degree determination method, and vehicle congestion degree determination system Download PDFInfo
- Publication number
- TWI781069B TWI781069B TW111111019A TW111111019A TWI781069B TW I781069 B TWI781069 B TW I781069B TW 111111019 A TW111111019 A TW 111111019A TW 111111019 A TW111111019 A TW 111111019A TW I781069 B TWI781069 B TW I781069B
- Authority
- TW
- Taiwan
- Prior art keywords
- vehicle
- area
- image
- congestion
- aforementioned
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/04—Detecting movement of traffic to be counted or controlled using optical or ultrasonic detectors
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Traffic Control Systems (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Train Traffic Observation, Control, And Security (AREA)
Abstract
本發明之課題係提供可適當地判定輸送旅客的車輛之擁擠度的車輛之擁擠度判定方法。 An object of the present invention is to provide a method for judging the degree of congestion of vehicles that can appropriately determine the degree of congestion of vehicles transporting passengers.
解決手段為一種車輛之擁擠度判定方法,其包含:取得拍攝輸送旅客的車輛之車內101的影像的步驟;從影像偵測人P3、P4、P5,對各自偵測到的人產生包圍該人的矩形的偵測區域DA3、DA4、DA5的步驟;基於影像的對象區域Tg及偵測區域DA3、DA4、DA5,而判定車輛之擁擠度的步驟,對象區域為影像之一部分的區域,且為車輛的走道103上站立的旅客被拍攝的區域,於判定步驟,基於與對象區域重疊的偵測區域的數目,而判定車輛之擁擠度。 The solution is a method for judging the degree of congestion of a vehicle, which includes: a step of obtaining an image of the interior 101 of the vehicle transporting passengers; detecting people P3, P4, and P5 from the image, and generating an image surrounding each detected person. The steps of the detection area DA3, DA4, DA5 of the rectangle of the person; the step of determining the congestion degree of the vehicle based on the target area Tg and the detection area DA3, DA4, DA5 of the image, the object area is a part of the image, and It is the photographed area of passengers standing on the aisle 103 of the vehicle. In the determination step, the degree of congestion of the vehicle is determined based on the number of detection areas overlapping with the target area.
Description
本發明係關於車輛之擁擠度判定方法、及車輛之擁擠度判定系統。 The present invention relates to a vehicle congestion degree judging method and a vehicle congestion degree judging system.
迄今,已有監視車輛的乘車人數的裝置。在專利文獻1中,已揭示具備第一攝像裝置及處理單元,且安裝於車體內而監視車體內的乘車人數的車輛乘車人數之監視裝置。專利文獻1之動態偵測模組於影像變動值大於閾值的情形,判定為在辨識區塊中有人。 Heretofore, there have been devices for monitoring the number of occupants of a vehicle. Patent Document 1 discloses a vehicle occupancy monitoring device that includes a first imaging device and a processing unit, is installed in a vehicle body, and monitors the number of occupants in the vehicle body. The motion detection module of Patent Document 1 determines that there is a person in the identification block when the image variation value is greater than a threshold.
[先前技術文獻] [Prior Art Literature]
[專利文獻] [Patent Document]
[專利文獻1]特開2015-7953號公報 [Patent Document 1] JP-A-2015-7953
從近年來的新型冠狀病毒(COVID-19)等之感染症對策的觀點來看(有冠狀病毒感染/冠狀病毒感染之後),亦期望可適當地判定輸送旅客的車輛擁擠度的 技術。例如,較佳為即使於走道上站立多數旅客的情形,亦可基於拍攝到的車內影像,適當地判定擁擠度。 From the viewpoint of countermeasures against infectious diseases such as the new coronavirus (COVID-19) in recent years (coronavirus infection/post-coronavirus infection), it is also desirable to appropriately determine the degree of congestion of vehicles transporting passengers technology. For example, even when many passengers are standing on the aisle, it is preferable to appropriately determine the degree of congestion based on the captured in-vehicle images.
本發明之目的係提供可適當地判定輸送旅客的車輛擁擠度的車輛之擁擠度判定方法、及車輛之擁擠度判定系統。 An object of the present invention is to provide a vehicle congestion degree determination method and a vehicle congestion degree determination system which can appropriately determine the congestion degree of vehicles transporting passengers.
本發明之車輛擁擠度判定方法之特徵為包含:取得拍攝到的輸送旅客的車輛之車內影像的步驟、從前述影像偵測人並對於每個偵測到的前述人產生包圍該人的矩形的偵測區域的步驟、以及基於前述影像的對象區域及前述偵測區域而判定前述車輛的擁擠度的步驟,前述對象區域為前述影像的一部分區域,且為站立於前述車輛的走道的旅客被拍攝到的區域,於前述判定步驟,基於與前述對象區域重疊的前述偵測區域的數量,而判定前述車輛的擁擠度。 The vehicle congestion degree determination method of the present invention is characterized in that it includes: the step of obtaining the photographed interior image of the vehicle transporting passengers, detecting people from the aforementioned image, and generating a rectangle surrounding the person for each detected aforementioned person The step of detecting the detection area, and the step of determining the degree of congestion of the aforementioned vehicle based on the target area of the aforementioned image and the aforementioned detection area, the aforementioned target area is a part of the aforementioned image, and is where passengers standing on the aisle of the aforementioned vehicle are captured For the captured area, in the determining step, the degree of congestion of the vehicles is determined based on the number of the detection areas overlapping with the target area.
關於本發明的車輛之擁擠度判定方法包含:從影像偵測人並對於每個偵測到的人產生包圍該人的矩形的偵測區域的步驟、以及基於影像的對象區域及偵測區域而判定車輛的擁擠度的步驟。對象區域為影像的一部分區域,且為站立於車輛的走道的旅客被拍攝到的區域。於判定步驟,基於與對象區域重疊的偵測區域的數量,而判定車輛的擁擠度。依據關於本發明的車輛之擁擠度判定方法,達到所謂可適當地判定輸送旅客的車輛之擁擠度的效果。 The method for judging the degree of congestion of a vehicle according to the present invention includes: detecting people from an image and generating a rectangular detection area surrounding the person for each detected person; A step of determining the degree of congestion of vehicles. The target area is a part of the image, and is an area in which a passenger standing on the aisle of the vehicle is photographed. In the determining step, the degree of congestion of vehicles is determined based on the number of detection areas overlapping with the target area. According to the method of judging the degree of congestion of vehicles related to the present invention, it is possible to appropriately determine the degree of congestion of vehicles transporting passengers.
1:車輛之擁擠度判定系統 1: vehicle congestion degree judgment system
2:車載器 2: On-board device
3:攝相機 3: camera
4:門感測器 4: Door sensor
5:無線基地台 5: Wireless Base Station
6:伺服器 6: Server
7:工作站PC 7: Workstation PC
21:CPU 21:CPU
22:記憶體 22: Memory
23:GPS接收部 23:GPS receiving department
24:通訊部 24: Department of Communications
31:第一攝相機 31: First camera
32:第二攝相機 32: Second camera
71:CPU 71:CPU
71a:偵測部 71a: Detection department
71b:抽出部 71b: extraction part
71c:判定部 71c: Judgment Department
72:記憶體 72: memory
73:通訊部 73: Department of Communications
74:外部輸入介面 74: External input interface
100:車輛 100:vehicle
101:車內 101: Inside the car
102:駕駛座 102: Driver's seat
103:走道 103: aisle
104:下車門 104: get off the door
105:下車口 105: Get off the gate
106:上車門 106: on the door
107:上車口 107: boarding gate
108:後部座位 108: rear seat
109:前部座位 109: Front seat
A11~A19:區域 A11~A19: area
A21~A29:區域 A21~A29: area
C0:對象區域的計數數目 C0: Count number of target area
C15,C25,C28:區域的計數數目 C15, C25, C28: the number of counts in the area
CA:總偵測數 CA: total detections
DA0~DA5:偵測區域 DA0~DA5: detection area
G1,G2:影像 G1,G2: Image
NW:網際網路 NW: Internet
P0~P5:人 P0~P5: People
S10~S80:步驟 S10~S80: steps
圖1為關於實施形態的車輛之擁擠度判定系統的方塊圖。 FIG. 1 is a block diagram of a vehicle congestion degree judging system according to an embodiment.
圖2為顯示藉由第一攝相機所拍攝到的影像的圖。 FIG. 2 is a diagram showing images captured by the first camera.
圖3為顯示藉由第二攝相機所拍攝到的影像的圖。 FIG. 3 is a diagram showing images captured by a second camera.
圖4為針對重疊度的判定進行說明的圖。 FIG. 4 is a diagram illustrating the determination of the degree of overlap.
圖5為顯示實施形態之動作的流程圖。 Fig. 5 is a flowchart showing the operation of the embodiment.
以下,對於關於本發明之實施形態的車輛之擁擠度判定方法、及車輛之擁擠度判定系統,一邊參照圖式一邊進行詳細說明。又,本發明並未藉由此實施形態而被限定。又,下述實施形態中的構成要素中有包含所屬技術領域中具通常知識者可容易置換或實質上相同者。 Hereinafter, the vehicle congestion level judging method and the vehicle congestion level judging system according to the embodiments of the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited by this embodiment. In addition, among the components in the following embodiments, those with ordinary knowledge in the technical field may be easily substituted or those that are substantially the same are included.
〔實施形態〕 [implementation form]
參照圖1至圖5,針對實施形態進行說明。本實施形態係關於車輛之擁擠度判定方法、及車輛之擁擠度判定系統。圖1為顯示關於實施形態的車輛之擁擠度判定系統的方塊圖,圖2為顯示藉由第一攝相機所拍攝到的影像的圖,圖3為顯示藉由第二攝相機所拍攝到的影像的圖,圖4為針對重疊度的判定進行說明的圖,圖5為顯示實施形態之動作的流程圖。 Embodiments will be described with reference to FIGS. 1 to 5 . This embodiment relates to a vehicle congestion degree judging method and a vehicle congestion degree judging system. Fig. 1 is a block diagram showing a system for judging the degree of congestion of a vehicle according to an embodiment, Fig. 2 is a diagram showing images captured by a first camera, and Fig. 3 is a diagram showing images captured by a second camera In the diagram of the image, FIG. 4 is a diagram for explaining the determination of the overlapping degree, and FIG. 5 is a flow chart showing the operation of the embodiment.
如圖1所示,車輛之擁擠度判定系統1包含車載器2、攝相機3、及工作站PC7。車載器2及攝相機3安裝於輸送旅客的車輛100中。本實施形態之
車輛100為公共巴士,例如,行走預定路線的路線公車。車輛100於路線上的各停靠站使旅客上下車。車輛100除了車載器2及攝相機3,還安裝門感測器4。
As shown in FIG. 1 , a system 1 for judging the degree of congestion of a vehicle includes a vehicle-mounted
車載器2為例如記錄車輛100之運行狀況的行車記錄器或數位式行車記錄器。車載器2具有CPU21、記憶體22、GPS接收部23、及通訊部24。CPU21為進行各種演算的演算裝置。CPU21係例如按照儲存於記憶體22的程式而執行本實施形態之動作。
The on-
記憶體22為包含揮發性記憶體及不揮發性記憶體的記憶部。GPS接收部23係基於從衛星發送的訊號而算出車輛100的現在位置。通訊部24為與無線基地台5之間進行通訊的通訊模組。通訊部24按照CPU21的指令,透過車輛100的天線而與無線基地台5進行無線通訊。
The memory 22 is a memory unit including a volatile memory and a nonvolatile memory. The
攝相機3為拍攝車輛100的車內而輸出影像G1、G2的攝像裝置。攝相機3的位置及攝相機3的視角被設定成可拍攝車內的旅客。本實施形態之車輛100具有作為攝相機3之第一攝相機31及第二攝相機32。第一攝相機31拍攝車內的下車口附近。第二攝相機32拍攝車內的上車口附近。車載器2取得藉由攝相機3拍攝到的影像而儲存於記憶體22。
The
門感測器4為偵測打開及關閉車輛100的上下車口的門的狀態的感測器。門感測器4例如偵測門是否為全關狀態。門感測器4例如被各自配置於上車口門及下車口門。門感測器4之偵測結果被輸送到CPU21。
The
車載器2透過通訊部24而將判定擁擠度用的數據發送至外部。發送的數據包含例如,藉由攝相機3所拍攝到的影像、該影像的拍攝時刻、拍攝時刻中的車輛100的位置、及車輛100的識別碼等。通訊部24所發送的影像數據
為例如靜止影像的數據。發送的數據例如被保存於與網際網路NW連接的伺服器6。
The vehicle-mounted
工作站PC7,例如,由設置於企業等的工作站的通用電腦裝置而構成。工作站PC7具有管理為管理對象的車輛100之運行狀況的機能、及判定車輛100之擁擠度的機能。工作站PC7具有CPU71、記憶體72、通訊部73、及外部輸入介面74。工作站PC7透過通訊部73及網際網路NW而分別與伺服器6及無線基地台5進行通訊。工作站PC7,例如,按照從記憶體72讀取到CPU71的程式,執行運行狀況的管理及擁擠度的判定。
The workstation PC7 is constituted by, for example, a general-purpose computer device installed in a workstation of a company or the like. The workstation PC7 has a function of managing the operation status of the
在圖2中,顯示藉由第一攝相機31所拍攝到的影像G1的一例。在影像G1中,車輛100之車內101被拍攝。更詳言之,在影像G1中,駕駛座102、走道103、及下車口105被拍攝。下車口105被被置於車輛100的前部,藉由下車門104而打開及關閉。
In FIG. 2 , an example of the image G1 captured by the
在圖3中,顯示藉由第二攝相機32所拍攝到的影像G2之一例。於影像G2,車輛100之車內101被拍攝。更詳言之,於影像G2,走道103、上車口107、後部座位108、及前部座位109被拍攝。上車口107被配置於車輛100的中間部,藉由上車門106而打開及關閉。後部座位108為被配置於較上車口107更靠車輛後方的座位。後部座位108朝向車輛前方。前部座位109為被配置於較上車口107更靠車輛前方的座位。前部座位109朝向車寬方向。
In FIG. 3 , an example of the image G2 captured by the
車載器2發送旅客上下車完成後所拍攝到的影像G1、G2。例如,車載器2將於下車門104及上車門106兩者為全關狀態時拍攝到的影像G1、G2發送到網際網路NW。由旅客的流動少時拍攝到的影像G1、G2,成為可精密度佳地推定車內101之擁擠度。
The vehicle-mounted
工作站PC7由伺服器6取得用以判定車輛100之擁擠度的數據。工作站PC7透過通訊部73取得數據,並將取得的數據保存於記憶體72。CPU71具有偵測部71a、抽出部71b、及判定部71c。
The workstation PC7 acquires data for determining the degree of congestion of the
偵測部71a、抽出部71b、及判定部71c可為由CPU71執行的程式的一部分,亦可為CPU71具有的電路的一部分,或者也可為安裝在CPU71上的晶片等。即,CPU71以可執行作為偵測部71a的機能、作為抽出部71b之機能、及作為判定部71c之機能的方式構成即可。
The detecting
關於本實施形態的車輛之擁擠度判定系統基於二個指標而判定車輛100之擁擠度。第一個指標為旅客的密集度。CPU71由影像G1、G2而偵測人,算出走道103中的旅客的密集度。第二個指標為旅客的總偵測數。CPU71算出從影像G2偵測到的旅客的總數。即,密集度從影像G1、G2兩者算出,總偵測數從影像G2算出。關於本實施形態的車輛之擁擠度判定系統1可基於旅客的密集度及旅客的總偵測數,而準確度更佳地判定車輛100之擁擠度。
The vehicle congestion degree judging system of the present embodiment judges the congestion degree of the
偵測部71a從影像G1、G2而偵測人,對各自偵測的人產生偵測區域DA。例如,偵測部71a,如圖2所示,對各自偵測的人產生偵測區域DA。偵測區域DA為所謂的定界框(bounding box)。在圖2中,有偵測到三人,人P0、人P1、人P2。偵測部71a產生包圍人P0的偵測區域DA0、包圍人P1的偵測區域DA1、及包圍人P2的偵測區域DA2。偵測部71a偵測包含站立的人及坐著的人之全部人,對於偵測到的全部人,產生偵測區域DA。
The
偵測部71a,如圖3所示,對於從影像G2偵測到的P3、P4、P5,產生偵測區域DA3、DA4、DA5。又,偵測區域DA為被辨識為在影像中有拍到人的區域,有可能為不是包圍全部人的區域。
As shown in FIG. 3 , the detecting
抽出部71b係從產生的全部的偵測區域DA,抽出設為密集度的算出對象的偵測區域DA、及設為總偵測數的算出對象的偵測區域DA。車輛100的駕駛員被排除於密集度的算出對象,且亦從總偵測數的算出對象排除。於圖2偵測到的人P0,為車輛100的駕駛員。抽出部71b如以下說明,辨識駕駛員,並將駕駛員從算出對象排除。
The extraction unit 71b extracts the detection area DA to be calculated as the density and the detection area DA to be calculated as the total number of detections from all the generated detection areas DA. The driver of the
如圖2所示,影像G1被等分成A11至A19的九個區域。各區域的形狀為長方形。例示的影像G1中,各區域的影像橫向方向的像素數為240,影像縱向方向的像素數為160。即,各區域以38,400像素而構成。 As shown in FIG. 2 , the image G1 is equally divided into nine regions A11 to A19 . The shape of each area is a rectangle. In the illustrated image G1, the number of pixels in the horizontal direction of the image in each region is 240, and the number of pixels in the vertical direction of the image is 160. That is, each area is constituted by 38,400 pixels.
於影像G1,區域A11、A14、A17被設定為拍攝駕駛員的區域。於偵測區域DA的中心座標位於區域A11、A14、A17的任一位置的情形,抽出部71b判斷該偵測區域DA對應駕駛員。於圖2,偵測區域DA0的中心位於區域A14。即,可判斷對應偵測區域DA0的人A0為駕駛員。因此,抽出部71b從密集度及總偵測數的算出對象將偵測區域DA0排除。另一方面,偵測區域DA1、DA2的中心未位於區域A11、A14、A17之任一位置。抽出部71b採用偵測區域DA1、DA2作為密集度的算出對象。由於偵測區域DA1、DA2為影像G1的區域,而非總偵測數的算出對象。 In the image G1, areas A11, A14, and A17 are set as areas where the driver is photographed. When the central coordinates of the detection area DA are located in any of the areas A11, A14, and A17, the extracting unit 71b judges that the detection area DA corresponds to the driver. In FIG. 2 , the center of the detection area DA0 is located in the area A14 . That is, it can be determined that the person A0 corresponding to the detection area DA0 is the driver. Therefore, the extraction unit 71b excludes the detection area DA0 from the calculation target of the density and the total number of detections. On the other hand, the centers of the detection areas DA1, DA2 are not located in any of the areas A11, A14, A17. The extraction unit 71b uses the detection areas DA1 and DA2 as objects of density calculation. Since the detection areas DA1 and DA2 are the areas of the image G1, they are not the calculation objects of the total detection number.
如圖3所示,影像G2被等分成A21至A29的九個區域。各區域的形狀為長方形。例示的影像G2中,各區域的影像橫向方向的像素數為240,影像縱向方向的像素數為160。即,各區域以38,400像素而構成。 As shown in FIG. 3 , the image G2 is equally divided into nine regions A21 to A29 . The shape of each area is a rectangle. In the illustrated image G2, the number of pixels in the horizontal direction of the image in each region is 240, and the number of pixels in the vertical direction of the image is 160. That is, each area is constituted by 38,400 pixels.
影像G2不包含駕駛員被拍攝的區域。因此,抽出部71b對於影像G2,並不執行偵測區域DA是否對應駕駛員的判定。於影像G2,區域A23、A26、A29為坐著的旅客被拍攝的區域。於以下的說明,將坐著的旅客被拍攝 的區域稱為「第一區域」。於偵測區域DA的中心座標位於第一區域的情形,抽出部71b判斷該偵測區域DA為對應坐著的旅客的區域。於圖3,偵測區域DA5的中心位於區域A29。即,可判斷偵測的人P5為坐著的旅客。 Image G2 does not contain the area where the driver is photographed. Therefore, the extraction unit 71b does not perform the determination of whether the detection area DA corresponds to the driver for the image G2. In the image G2, the areas A23, A26, and A29 are the areas where the sitting passengers are photographed. For the following instructions, the seated passengers will be photographed is called the "first zone". When the center coordinate of the detection area DA is located in the first area, the extracting unit 71b judges that the detection area DA is an area corresponding to the seated passenger. In FIG. 3 , the center of the detection area DA5 is located in the area A29 . That is, it can be determined that the detected person P5 is a seated passenger.
坐著的旅客與走道103的密集度的關連性低。抽出部71b從密集度的算出對象中排除偵測區域DA5。另一方面,抽出部71採用偵測區域DA5作為總偵測數的算出對象。
The correlation between the sitting passengers and the density of the
偵測區域DA3、DA4的中心亦未位於區域A23、A26、A29之任一者。因此,抽出部71b採用偵測區域DA3、DA4作為密集度及總偵測數的算出對象。 The centers of the detection areas DA3, DA4 are not located in any of the areas A23, A26, A29. Therefore, the extraction unit 71b adopts the detection areas DA3 and DA4 as calculation objects of the density and the total number of detections.
判定部71c算出密集度及總偵測數,基於算出結果,判定車輛100之擁擠度。本實施形態之密集度係如以下方式算出。於圖2所示影像G1,密集度被算出的區域為區域A15。區域A15為站立於走道103中的下車口105側的端部的旅客被拍攝的區域。
The
判定部71c將區域A15設定成對象區域Tg。判定部71c針對各偵測區域DA,判定與對象區域Tg重疊的像素數是否為閾值Th1以上。例如,如圖4所示,判定部71c偵測對象區域Tg與偵測區域DA1重疊的區域Ov1。於區域Ov1的像素數為閾值Th1以上的情形,判定部71c增加於對象區域Tg的計數數目C0。計數數目C0的初期值為0。閾值Th1,例如,為1,024〔像素〕。即,區域Ov1的像素數為1,024以上的情形,偵測區域DA1被計數作為密集的構成要素之一者。
The
判定部71c對於其它偵測區域DA亦同樣地偵測與對象區域Tg重疊的區域,且若重疊的區域之像素數為閾值Th1以上,增加於對象區域Tg的計數數目C0。判定部71c對於密集度的算出對象的全部之偵測區域DA,判定與對
象區域Tg的重疊度。判定部71c將算出的計數數目C0儲存為於區域A15的計數數目C15。之後,判定部71c將計數數目C0初始化。
The
再者,判定部71c對於影像G2判定重疊度。於圖3所示的影像G2,對象區域Tg為區域A25及區域A28。區域A25及區域A28為站立於走道103中的上車口107附近的旅客被拍攝的區域。
Furthermore, the
判定部71c將一個區域A25設定為對象區域Tg。判定部71c判定於影像G2的各偵測區域DA與對象區域Tg重疊的像素數是否為閾值Th2以上。閾值Th2,例如,為3,072〔像素〕。於對象區域Tg與偵測區域DA重疊的區域的像素數為閾值Th2以上的情形,判定部71c增加於對象區域Tg的計數數目C0。判定部71c於密集度的算出對象的全部偵測區域DA,判定與對象區域Tg的重疊度。判定部71c將算出的計數數目C0儲存為於區域A25的計數數目C25。之後,判定部71c將計數數目C0初始化。
The
判定部71c將區域A28設定為對象區域Tg,同樣地算出計數數目C0。判定部71c將算出的計數數目C0儲存為於區域A28的計數數目C28。判定部71c對於影像G2,算出旅客的總偵測數。總偵測數CA為對於影像G2產生的偵測區域DA的個數。圖3所例示的影像G2中,偵測區域DA3、DA4、DA5為總偵測數的算出對象。即,總偵測數CA為3。
The
CPU71基於圖5所示的流程圖而判定擁擠度。CPU71執行取得影像G1、G2的步驟後,執行圖5的流程圖。
The
於步驟S10,偵測部71a對於影像G1、G2執行物體偵測,計算偵測區域DA。步驟S10為從影像G1、G2偵測人,對各自偵測的人,產生包圍該人的矩形的偵測區域DA的步驟。步驟S10被執行時,進展到步驟S20。
In step S10, the
於步驟S20,抽出部71b抽出設為密集度的算出對象的偵測區域DA、及設為總偵測數的算出對象的偵測區域DA。步驟S20被執行時,進展到步驟S30。 In step S20, the extraction part 71b extracts the detection area DA which is the calculation object of density|concentration, and the detection area DA which is the calculation object of the total number of detections. When step S20 is executed, proceed to step S30.
於步驟S30,判定部71c計算偵測區域DA和對象區域Tg的重複。判定部71c對於各自的區域A15、A25、A28,算出計數數目C15、C25、C28。步驟S30被執行時,進展到步驟S40。
In step S30, the
於步驟S40,判定部71c判定擁擠度的指標是否滿足水平II的條件。關於本實施形態的車輛之擁擠度判定系統1將擁擠度的水平分類成水平I、水平II、及水平III之三種。水平I為最低擁擠度的水平,水平III為最高擁擠度的水平。水平I,例如,站立的旅客為2名以下之擁擠度。又,嬰兒車、想要坐下的旅客、及公共汽車公司的員工不包含於「站立的旅客」的對象。水平II,例如,站立的旅客為3名以上,且走道103的中央部分為未使用之擁擠度。水平III,例如,走道103的中央部分有旅客站立的擁擠度。又,走道103的中央部分為例如走道103中的上車門106和下車門104之間的中間部分。
In step S40, the
將水平II的條件稱為第一條件。第一條件係下述式(1)成立的條件。即,於「區域A15的計數數目C15和區域A28的計數數目C28之合計值為2以上」的情形,判定擁擠度為水平II以上。水平I的條件為「計數數目C15和計數數目C28的合計值小於2」。判定部71c於第一條件成立的情形,於步驟S40作出肯定判定而進展到步驟S50。判定部71c,於步驟S40作出否定判定的情形,進展到步驟S80。
The condition of level II is referred to as the first condition. The first condition is a condition that the following formula (1) holds. That is, in the case of "the total value of the count number C15 of the area A15 and the count number C28 of the area A28 is 2 or more", it is determined that the degree of congestion is level II or more. The condition of the level I is "the total value of the count number C15 and the count number C28 is less than 2". When the first condition is satisfied, the
C15+C28≧2 (1) C15+C28≧2 (1)
於步驟S50,判定部71c判定擁擠度的指標是否滿足水平III的條件。水平III的條件係除了第一條件之外還要第二條件成立。第二條件為下述式(2)、式(3)、式(4)、及式(5)全部成立。即,第一條件成立,且「區域A15的計數數目C15為1以上,區域A25的計數數目C25及區域A28的計數數目C28皆為2以上,且總偵測數CA為11以上」的情形,判定擁擠度為水平III。
In step S50, the
C15≧1 (2) C15≧1 (2)
C25≧2 (3) C25≧2 (3)
C28≧2 (4) C28≧2 (4)
CA≧11 (5) CA≧11 (5)
判定部71c於第二條件成立的情形,在步驟S50作出肯定判定而進展到步驟S60。判定部71c在步驟S50作出否定判定的情形,進展到步驟S70。
When the second condition is satisfied, the
於步驟S60,判定部71c係對擁擠度的水平Lv,代入水平III的值。於步驟S60被執行時,流程圖結束。
In step S60, the
於步驟S70,判定部71c係對於擁擠度的水平Lv,代入水平II的值。於步驟S70被執行時,流程圖結束。
In step S70, the
於步驟S80,判定部71c係對於擁擠度的水平Lv代入水平I的值。步驟S80被執行時,流程圖結束。
In step S80, the
CPU71可將關於擁擠度的水平Lv的資訊發送至外部。例如,擁擠度的水平Lv,可向停靠站被無線發送。於此情形,停靠站的顯示器中顯示了從此時至到站的車輛100之擁擠度的水平Lv。例如,擁擠度的水平Lv可向使用者的行動終端被發送。於此情形,於使用者的行動終端,車輛100之擁擠度的水平Lv可藉由應用程式而顯示。例如,擁擠度的水平Lv可被發送至與車輛100
行走相同路線的其它路線公車。擁擠度的水平Lv亦可使用於包含車輛100的路線公車的運行時間表的管理。
The
如以上說明,關於本實施形態的車輛之擁擠度判定方法包含取得步驟、產生步驟、及判定步驟。在取得步驟中,取得了拍攝到輸送旅客的車輛100之車內101的影像G1、G2。在產生步驟中,從影像G1、G2偵測人,並對各自偵測到的人產生包圍該人的矩形的偵測區域DA。在圖5的流程圖中,步驟S10相當於產生步驟。
As described above, the vehicle congestion level judging method according to the present embodiment includes an acquiring step, a generating step, and a judging step. In the acquisition step, images G1 and G2 of the
在判定步驟中,基於影像G1、G2的對象區域Tg及偵測區域DA,車輛100之擁擠度被判定。在圖5的流程圖中,從步驟S30至步驟S80相當於判定步驟。對象區域Tg為影像G1、G2的一部分的區域,且為於車輛100的走道103中站立的旅客被拍攝的區域。在判定步驟中,基於與對象區域Tg重疊的偵測區域DA的數目,判定車輛100之擁擠度。
In the determining step, the congestion degree of the
與對象區域Tg重疊的偵測區域DA的數目表示在走道103站立的旅客的密集度。因此,關於本實施形態的車輛之擁擠度判定方法可適當地判定輸送旅客的車輛之擁擠度。又,藉由從廣泛影像G1、G2的全體偵測人,與從對象區域Tg偵測人的情形進行比較,可實現良好的偵測準確度。
The number of detection areas DA overlapping with the target area Tg indicates the density of passengers standing on the
如以上車輛之擁擠度判定方法,例如,由近年的新型冠狀病毒(COVID-19)等之感染症對策的觀點來看,亦為有用。例如,可以促使利用者適時地且正確地把握車輛100之擁擠度而不稠密地利用,又,對經營者亦可使不稠密的方式活用運行計畫的改善。又,關於本實施形態的車輛之擁擠度判定方法中,基於靜止影像而擁擠度被判定。因此,可抑制關於判定的各部的負荷的增加。例如,將藉由攝相機3所拍攝到的影像發送至網際網路NW的情形之通訊
量小的緣故,通訊負荷被減輕。又,於車載器2執行擁擠度的判定的情形,車載器2中的演算負荷被減輕。
The above method of judging the degree of congestion of vehicles is also useful, for example, from the viewpoint of countermeasures against infectious diseases such as the novel coronavirus (COVID-19) in recent years. For example, it is possible to prompt the user to grasp the degree of congestion of the
本實施形態之對象區域Tg為於車輛100的上下車口附近站立的旅客被拍攝的區域。車輛100為擁擠的情形,認為許多旅客站在上下車口的附近。因此,關於本實施形態的車輛之擁擠度判定方法可適當地判定車輛100之擁擠度。
The target area Tg of the present embodiment is an area where passengers standing near the entrance and exit of the
本實施形態之影像G2具有坐著的旅客被拍攝到的第一區域。於第一區域具有中心座標的偵測區域DA從與對象區域Tg重疊的偵測區域的計數數目C0的算出對象中排除。因此,關於本實施形態的車輛之擁擠度判定方法,可排除坐著的旅客而準確度良好地算出走道103的密集度。
The image G2 of this embodiment has the first area where the sitting passengers are photographed. The detection area DA having the center coordinates in the first area is excluded from the calculation target of the count number C0 of the detection area overlapping with the target area Tg. Therefore, with regard to the method for judging the degree of congestion of vehicles in this embodiment, the density of the
在關於本實施形態的車輛之擁擠度判定方法中,於判定步驟,基於與對象區域Tg重疊的偵測區域DA的計數數目與從影像G2偵測的人的總偵測數CA,判定車輛100之擁擠度。因此,基於走道103的密集度和總偵測數CA,可適當地判定車輛100之擁擠度。
In the method for judging the degree of congestion of a vehicle according to the present embodiment, in the judging step, the
在關於本實施形態的車輛之擁擠度判定方法中,於取得步驟,第一影像及第二影像被取得。第一影像對應拍攝走道103中的下車口105的附近站立的旅客的影像G1。第二影像對應拍攝走道103中的上車口107的附近站立的旅客的影像G2。於判定步驟,基於第一影像及第二影像,判定車輛100之擁擠度。基於二個影像,準確度更佳地判定車輛100之擁擠度成為可能。
In the method for judging the degree of congestion of a vehicle according to the present embodiment, in the obtaining step, the first image and the second image are obtained. The first image corresponds to an image G1 of a passenger standing near the
關於本實施形態的車輛之擁擠度判定系統1具有攝相機3、偵測部71a、及判定部71c。判定部71c根據與對象區域Tg重疊的偵測區域DA的數目
而判定車輛100之擁擠度。因此,擁擠度判定系統1可適當地判定輸送旅客的車輛之擁擠度。
The vehicle congestion degree judging system 1 of the present embodiment includes a
關於本實施形態的車輛之擁擠度判定方法及擁擠度判定系統1可準確度佳地判定車輛100之擁擠度。例如,藉由不僅以對象區域Tg為對象而且以影像G1、G2的全體為對象來偵測人,可抑制漏偵測及錯誤偵測。作為比較例,設定攝相機3的視角為確定僅拍攝對象區域Tg。於此情形,當旅客密集時,因多位人重疊拍攝,變得難以偵測到後隱藏在後面的人。相對於此,在本實施形態中,確定攝相機3的視角成為拍攝較對象區域Tg更廣範圍。據此,難以發生人的漏偵測及錯誤偵測。
The vehicle congestion level judging method and the congestion level judging system 1 according to the present embodiment can accurately judge the congestion level of the
本實施形態之的攝相機3被配置成俯瞰車內101而撮影。據此,即使於走道103有旅客密集,偵測個別旅客為容易。
The
又,攝相機3的視角被設定為不僅拍攝走道103站立的旅客,而且亦拍攝坐在座位108、109的旅客。因此,基於密集度及總偵測數兩者,高準確度之擁擠度判定成為可能。
In addition, the angle of view of the
依據關於本實施形態的車輛之擁擠度判定系統1及車輛之擁擠度判定方法,可實現車輛100之擁擠緩和。例如,若將與車輛100之擁擠度有關資訊即時提供給使用者,旅客不易向特定車輛100集中。其結果,事前防止車輛100中的旅客的密集,可抑制車內的病毒感染。
According to the system 1 for judging the degree of congestion of vehicles and the method for judging the degree of congestion of vehicles related to the present embodiment, it is possible to alleviate the congestion of the
又,判定部71c可將複數個區域一起設定成一個對象區域Tg。例如,判定部71c可於影像G2,將區域A25和區域A28一起設為一個對象區域Tg。於此情形,對象區域Tg和偵測區域DA重疊的區域的像素數為閾值Th3以上的情形,對於區域A25、A28的計數數目增加。
In addition, the
本實施形態之擁擠度判定系統1容易適用於安裝的車輛中。例如,攝相機3的位置及視角,有因應車輛100的車種及運營公司而不同的情形。本實施形態之擁擠度判定系統1可藉由從影像G1、G2具有的複數區域選擇最適對象區域Tg,而容易地調節密集度的判定準確度。又,可依閾值Th1、Th2而容易地調節密集度的判定準確度。又,藉由設定設為駕駛員的排除區域、坐在座位上的旅客的排除區域,可容易地調節密集度的判定準確度。如此,本實施形態之擁擠度判定系統1為具有高通用性的系統。
The congestion level judging system 1 of the present embodiment is easily applicable to the vehicle to be installed. For example, the position and angle of view of the
又,影像G1、G2中的區域數並未限定於例示的數目。又,影像G1、G2中的區域的形狀並未限定於例示的形狀。影像G1、G2可未被相等分割。 In addition, the number of areas in the video images G1 and G2 is not limited to the illustrated number. In addition, the shapes of the regions in the video images G1 and G2 are not limited to the illustrated shapes. The images G1, G2 may not be equally divided.
CPU71可基於影像G1、G2之任一者而判定擁擠度。例如,CPU71基於影像G1、G2之一者,可判定水平I、水平II、及水平III之任一者。
The
偵測部71a的動作、抽出部71b的動作、及判定部71c的動作中至少一者之動作,可於車載器2或雲端上的伺服器6中執行。例如,車載器2之CPU21可具有偵測部71a、抽出部71b、及判定部71c。於此情形,CPU21可將與擁擠度的水平Lv有關的資訊發送至網際網路NW。
At least one of the operation of the
上述實施形態所揭示的內容,可適當組合而執行。 The contents disclosed in the above-mentioned embodiments can be implemented in combination as appropriate.
101:車內 101: Inside the car
103:走道 103: aisle
106:上車門 106: on the door
107:上車口 107: boarding gate
108:後部座位 108: rear seat
109:前部座位 109: Front seat
A21:區域 A21: Area
A22:區域 A22: Area
A23:區域 A23: Area
A24:區域 A24: Area
A25(Tg):區域 A25(Tg): area
A26:區域 A26: Area
A27:區域 A27: Area
A28(Tg):區域 A28(Tg): area
A29:區域 A29: Area
DA3:偵測區域 DA3: Detection area
DA4:偵測區域 DA4: Detection area
DA5:偵測區域 DA5: Detection area
G2:影像 G2: Image
P3:人 P3: people
P4:人 P4: people
P5:人 P5: people
Claims (6)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021064498A JP7305698B2 (en) | 2021-04-06 | 2021-04-06 | Vehicle congestion determination method and vehicle congestion determination system |
JP2021-064498 | 2021-04-06 |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI781069B true TWI781069B (en) | 2022-10-11 |
TW202241114A TW202241114A (en) | 2022-10-16 |
Family
ID=83545842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111111019A TWI781069B (en) | 2021-04-06 | 2022-03-24 | Vehicle congestion degree determination method, and vehicle congestion degree determination system |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP7305698B2 (en) |
MX (1) | MX2023010408A (en) |
TW (1) | TWI781069B (en) |
WO (1) | WO2022215394A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110057783A1 (en) * | 2008-06-20 | 2011-03-10 | Panasonic Corporation | In-vehicle device for recording moving image data |
US20120188346A1 (en) * | 2009-08-27 | 2012-07-26 | Knorr-Bremse Systeme für Schienenfahrzeuge GmbH | Monitoring device and method for monitoring an entry or exit area of an access opening of a vehicle to a building component |
US20200273345A1 (en) * | 2019-02-26 | 2020-08-27 | Aptiv Technologies Limited | Transportation system and method |
US20200285870A1 (en) * | 2018-10-19 | 2020-09-10 | Shanghai Sensetime Intelligent Technology Co., Ltd. | Passenger state analysis method and apparatus, vehicle, electronic device and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6252349B2 (en) | 2014-05-14 | 2017-12-27 | 富士通株式会社 | Monitoring device, monitoring method and monitoring program |
JP2021003972A (en) | 2019-06-26 | 2021-01-14 | 株式会社東芝 | Information processor, station management system, station management equipment and program |
CN111079696B (en) | 2019-12-30 | 2023-03-24 | 深圳市昊岳电子有限公司 | Detection method based on vehicle monitoring personnel crowding degree |
-
2021
- 2021-04-06 JP JP2021064498A patent/JP7305698B2/en active Active
-
2022
- 2022-03-02 MX MX2023010408A patent/MX2023010408A/en unknown
- 2022-03-02 WO PCT/JP2022/008921 patent/WO2022215394A1/en active Application Filing
- 2022-03-24 TW TW111111019A patent/TWI781069B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110057783A1 (en) * | 2008-06-20 | 2011-03-10 | Panasonic Corporation | In-vehicle device for recording moving image data |
US20120188346A1 (en) * | 2009-08-27 | 2012-07-26 | Knorr-Bremse Systeme für Schienenfahrzeuge GmbH | Monitoring device and method for monitoring an entry or exit area of an access opening of a vehicle to a building component |
US20200285870A1 (en) * | 2018-10-19 | 2020-09-10 | Shanghai Sensetime Intelligent Technology Co., Ltd. | Passenger state analysis method and apparatus, vehicle, electronic device and storage medium |
US20200273345A1 (en) * | 2019-02-26 | 2020-08-27 | Aptiv Technologies Limited | Transportation system and method |
Also Published As
Publication number | Publication date |
---|---|
WO2022215394A1 (en) | 2022-10-13 |
TW202241114A (en) | 2022-10-16 |
MX2023010408A (en) | 2023-09-18 |
JP2022160020A (en) | 2022-10-19 |
JP7305698B2 (en) | 2023-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6474687B2 (en) | Elevator with image recognition function | |
US9569902B2 (en) | Passenger counter | |
JP5030983B2 (en) | Train stop detection system and train moving speed and position detection system | |
CN105390021B (en) | The detection method and device of parking space state | |
CN104724566B (en) | Elevator having image recognition function | |
CN106541968B (en) | The recognition methods of the subway carriage real-time prompt system of view-based access control model analysis | |
WO2013088620A1 (en) | Electronic device | |
JP5832749B2 (en) | In-train monitoring system and in-train monitoring method | |
JP2013025523A (en) | Monitoring system and congestion rate calculation method | |
CN111460938A (en) | Vehicle driving behavior real-time monitoring method and device | |
KR102109647B1 (en) | System for counting ride of public transportation using deep learning and method thereof | |
JP2015000807A (en) | Elevator control system and elevator control method | |
KR101737738B1 (en) | System for analysing and transmission of subway image information | |
KR20210042579A (en) | Method And Apparatus for Detecting Vehicle Occupancy | |
JP4056813B2 (en) | Obstacle detection device | |
CN114973146A (en) | Carriage congestion degree detection method and device and electronic equipment | |
TWI781069B (en) | Vehicle congestion degree determination method, and vehicle congestion degree determination system | |
KR101714723B1 (en) | Method and service server for providing crowd density information | |
JP7186749B2 (en) | Management system, management method, management device, program and communication terminal | |
US20230245461A1 (en) | Situation notification device, situation notification system, situation notificationmethod, and program storage medium | |
JP4689818B2 (en) | Ride status determination device | |
JP7347787B2 (en) | Crowd situation management device, congestion situation management system, congestion situation management method and program | |
RU121628U1 (en) | INTELLIGENT PASSENGER FLOW ANALYSIS SYSTEM USING TECHNICAL VISION | |
KR20230050534A (en) | Electric bus digital cockpit system and display method of electric bus digital cockpit | |
TWI813198B (en) | The system for counting the number of people getting on and off the bus, the method for counting the number of people getting on and off the bus, and the program for counting the number of people getting on and off the bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent |