JP7031991B2 - Position selection device, position selection method, and position selection program - Google Patents

Position selection device, position selection method, and position selection program Download PDF

Info

Publication number
JP7031991B2
JP7031991B2 JP2018142823A JP2018142823A JP7031991B2 JP 7031991 B2 JP7031991 B2 JP 7031991B2 JP 2018142823 A JP2018142823 A JP 2018142823A JP 2018142823 A JP2018142823 A JP 2018142823A JP 7031991 B2 JP7031991 B2 JP 7031991B2
Authority
JP
Japan
Prior art keywords
specified
obstacle
time
movement
candidate
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2018142823A
Other languages
Japanese (ja)
Other versions
JP2020021171A (en
Inventor
有哉 巻渕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KDDI Corp
Original Assignee
KDDI Corp
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 KDDI Corp filed Critical KDDI Corp
Priority to JP2018142823A priority Critical patent/JP7031991B2/en
Publication of JP2020021171A publication Critical patent/JP2020021171A/en
Application granted granted Critical
Publication of JP7031991B2 publication Critical patent/JP7031991B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、オブジェクトの位置を選択する位置選択装置、位置選択方法、及び位置選択プログラムに関する。 The present invention relates to a position selection device for selecting the position of an object, a position selection method, and a position selection program.

従来、マーケティングや監視等を目的として、店舗内等の所定エリアに滞在する人物等のオブジェクトを追跡することが行われている。所定エリア内に人物の移動を妨げる壁や什器等の障害物が存在する場合、障害物上を移動しない移動動線を生成することが期待される。また、障害物の位置が事前に得られている場合は、オブジェクトを高精度に追跡することが可能となる。 Conventionally, for the purpose of marketing, monitoring, etc., it has been performed to track an object such as a person who stays in a predetermined area such as in a store. When there is an obstacle such as a wall or furniture that hinders the movement of a person in a predetermined area, it is expected to generate a movement flow line that does not move on the obstacle. In addition, if the position of the obstacle is obtained in advance, it is possible to track the object with high accuracy.

例えば、特許文献1においては、パーティクルフィルタを利用してオブジェクトを追跡する際に、各パーティクルの予測位置が障害物領域上に存在する場合に、オブジェクトの予測位置を障害物領域以外の位置に修正する方式が開示されている。また、特許文献2においては、各パーティクルの予測位置に障害物の高さに応じたペナルティを付与することで、各パーティクルの障害物上の存在確度を低くする方式が開示されている。 For example, in Patent Document 1, when tracking an object using a particle filter, if the predicted position of each particle is on the obstacle area, the predicted position of the object is corrected to a position other than the obstacle area. The method of doing so is disclosed. Further, Patent Document 2 discloses a method of lowering the existence probability of each particle on an obstacle by giving a penalty to the predicted position of each particle according to the height of the obstacle.

特許5687035号公報Japanese Patent No. 5687035 特許5552069号公報Japanese Patent No. 5552069

従来、オブジェクト追跡を実現するには、カルマンフィルタやパーティクルフィルタ等の近似フィルタを用いるのが主流であった。近年、機械学習や深層学習技術(例えば、Support Vector MachineやConvolutional Neural Network)の発展に伴い、所定エリアを撮像した画像からオブジェクトを高精度に追跡する方式として、Tracking-by-Detection方式が注目を浴びている。Tracking-by-Detection方式は、オブジェクト検出器(Detection)を用いて各時刻で撮像した画像中のオブジェクトの位置を検出し、同一オブジェクト判定器(Re-Identification)を用いて各時刻で検出したオブジェクトを対応付けることにより、オブジェクトの追跡(Tracking)を実現する。 Conventionally, in order to realize object tracking, it has been the mainstream to use an approximate filter such as a Kalman filter or a particle filter. In recent years, with the development of machine learning and deep learning technologies (for example, Support Vector Machine and Convolutional Neural Network), the Tracking-by-Detection method has attracted attention as a method for tracking objects with high accuracy from images captured in a predetermined area. I'm bathing. In the Tracking-by-Detection method, the position of an object in an image captured at each time is detected using an object detector (Detection), and the object detected at each time is detected using the same object detector (Re-Identification). By associating with, tracking of an object is realized.

図15は、障害物領域が存在する所定エリア内でTracking-by-Detection方式によりオブジェクトを追跡する場合の例を示す図である。ここで、障害物領域の位置は事前に既知であるものとする。 FIG. 15 is a diagram showing an example of tracking an object by the Tracking-by-Detection method in a predetermined area where an obstacle area exists. Here, it is assumed that the position of the obstacle area is known in advance.

時刻t-1までのオブジェクトの追跡結果は、時刻t-1以前の時刻、例えば、時刻t-4、時刻t-3、時刻t-2におけるオブジェクトの検出結果を時刻t-1におけるオブジェクトの検出結果に対応付けることで生成される。当該オブジェクトを時刻tまで追跡する場合、時刻t-1までの追跡結果を、時刻tにおける検出結果、すなわち検出結果A及び検出結果Bのいずれかに対応付ける問題を解くこととなる。 The tracking result of the object up to the time t-1 is the detection result of the object at the time before the time t-1, for example, the time t-4, the time t-3, and the time t-2, and the detection of the object at the time t-1. Generated by associating with the result. When tracking the object up to time t, the problem of associating the tracking result up to time t-1 with the detection result at time t, that is, the detection result A or the detection result B is solved.

このとき、当該追跡結果に含まれる時刻t-1におけるオブジェクト位置と、時刻tにおける検出結果A及び検出結果Bのオブジェクト位置とを結ぶ線分上には、いずれも障害物領域が存在する。しかしながら、オブジェクトの位置と障害物領域との位置関係上、当該オブジェクトは、時刻tにおいて検出結果Aとして検出されている可能性が高く、当該オブジェクトの追跡結果を検出結果Bよりも検出結果Aに優先的に対応付けることが望ましい。すなわち、追跡結果と検出結果とを時系列上で単に対応付けるだけのTracking-by-Detection方式では、その途中に存在する障害物領域を考慮していないために、追跡結果と検出結果との対応関係を正しく特定することができないという課題がある。 At this time, an obstacle region exists on the line segment connecting the object position at time t-1 included in the tracking result and the object positions of the detection result A and the detection result B at time t. However, due to the positional relationship between the position of the object and the obstacle area, it is highly possible that the object is detected as the detection result A at time t, and the tracking result of the object is set to the detection result A rather than the detection result B. It is desirable to associate them preferentially. In other words, in the Tracking-by-Detection method, which simply associates the tracking result with the detection result in chronological order, the correspondence between the tracking result and the detection result is not taken into consideration because the obstacle area existing in the middle is not considered. There is a problem that it cannot be identified correctly.

これに対して、最短経路を探索する方式としてA*(エースター)アルゴリズムが知られている。図15中で、追跡結果に含まれる時刻t-1におけるオブジェクト位置を開始点、時刻tにおけるオブジェクト位置(検出結果A、Bのそれぞれ)を終点として、A*アルゴリズムを適用することで、開始点から障害物を回避して終点に到達する迂回路(最短経路)を特定することができる。したがって、時刻t-1におけるオブジェクト位置と、時刻tにおける検出結果A及び検出結果Bのオブジェクト位置との対応関係を特定する際のコスト値として当該迂回路の経路上の長さを用いることで、当該オブジェクトの追跡結果を検出結果Bよりも検出結果Aに優先的に対応付けることが可能となる。 On the other hand, the A * (Aster) algorithm is known as a method for searching the shortest path. In FIG. 15, by applying the A * algorithm with the object position at time t-1 included in the tracking result as the start point and the object position at time t (each of the detection results A and B) as the end point, the start point It is possible to identify a detour (shortest route) that avoids obstacles and reaches the end point. Therefore, by using the length on the route of the detour as a cost value for specifying the correspondence between the object position at time t-1 and the object positions of the detection result A and the detection result B at time t, It is possible to preferentially associate the tracking result of the object with the detection result A over the detection result B.

しかしながら、A*アルゴリズムは計算量が多いという課題がある。特に、Tracking-by-Detection方式において、複数のオブジェクトを同時に追跡する場合、対応関係を特定するにあたり、(時刻t-1までに追跡中のオブジェクトの数)×(時刻tで検出したオブジェクトの数)の分だけA*アルゴリズムを適用する必要があり、計算量が膨大になるという課題がある。 However, the A * algorithm has a problem that the amount of calculation is large. In particular, in the Tracking-by-Detection method, when tracking multiple objects at the same time, (the number of objects being tracked by time t-1) x (the number of objects detected at time t) when identifying the correspondence. It is necessary to apply the A * algorithm by the amount of), and there is a problem that the amount of calculation becomes enormous.

そこで、本発明はこれらの点に鑑みてなされたものであり、オブジェクトの対応関係を効率的に特定することができる位置選択装置、位置選択方法、及び位置選択プログラムを提供することを目的とする。 Therefore, the present invention has been made in view of these points, and an object of the present invention is to provide a position selection device, a position selection method, and a position selection program capable of efficiently specifying the correspondence between objects. ..

本発明の第1の態様に係る位置選択装置は、所定エリアに存在する障害物の形状に対応する障害物領域と、前記障害物領域の前記所定エリアにおける位置とを特定する障害物領域特定部と、前記所定エリアを移動するオブジェクトの第1時刻以前の位置を特定するオブジェクト位置特定部と、前記第1時刻よりも後の時刻である第2時刻における前記オブジェクトの一以上の検出位置の候補である候補位置を特定する検出位置特定部と、特定した前記第1時刻以前の前記オブジェクトの位置と、特定した一以上の前記候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、前記オブジェクトが一以上の前記候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定する移動妨害度特定部と、前記オブジェクトの前記第1時刻以前の位置から一以上の前記候補位置のそれぞれへの移動コストを前記移動妨害度に基づいて特定し、前記移動コストが相対的に小さい前記候補位置を、前記オブジェクトの前記第2時刻における位置に選択する選択部と、を備える。 The position selection device according to the first aspect of the present invention is an obstacle area specifying unit that specifies an obstacle area corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle area in the predetermined area. An object position specifying unit that specifies a position of an object moving in the predetermined area before the first time, and a candidate for one or more detection positions of the object at the second time, which is a time after the first time. The positional relationship between the detection position specifying unit that specifies the candidate position, the specified position of the object before the first time, the specified one or more candidate positions, and the specified position of the obstacle area. Based on this, a movement obstruction degree specifying unit that specifies a movement obstruction degree indicating difficulty when the object moves to each of the one or more candidate positions, and one or more from the position of the object before the first time. A selection unit that specifies the movement cost to each of the candidate positions based on the movement obstruction degree and selects the candidate position having a relatively small movement cost as the position of the object at the second time. Be prepared.

前記オブジェクト位置特定部は、前記オブジェクトの前記第1時刻以前の位置に基づいて、前記オブジェクトの前記第2時刻における位置である第1オブジェクト位置を予測し、前記移動妨害度特定部は、前記第1オブジェクト位置と、特定した一以上の前記候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、前記移動妨害度を特定してもよい。 The object position specifying unit predicts the position of the first object, which is the position of the object at the second time, based on the position of the object before the first time, and the movement obstruction degree specifying unit predicts the position of the first object. The movement obstruction degree may be specified based on the positional relationship between one object position, one or more specified candidate positions, and the specified position of the obstacle area.

前記オブジェクト位置特定部は、前記オブジェクトの第1時刻における位置を第1オブジェクト位置として特定し、前記移動妨害度特定部は、前記第1オブジェクト位置と、特定した一以上の前記候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、前記移動妨害度を特定してもよい。 The object position specifying unit specifies the position of the object at the first time as the first object position, and the movement obstruction degree specifying unit specifies the first object position and one or more specified candidate positions. The degree of movement obstruction may be specified based on the positional relationship with the position of the obstacle region.

前記移動妨害度特定部は、前記第1オブジェクト位置と、特定した一以上の前記候補位置のそれぞれとを結ぶ線分を特定し、当該線分と特定した前記障害物領域との位置関係に基づいて、特定した一以上の前記候補位置のそれぞれに対応する前記移動妨害度を特定してもよい。 The movement obstruction degree specifying unit specifies a line segment connecting the first object position and each of the specified one or more candidate positions, and is based on the positional relationship between the line segment and the specified obstacle area. Then, the movement obstruction degree corresponding to each of the specified one or more candidate positions may be specified.

前記移動妨害度特定部は、特定した一以上の前記線分のそれぞれについて、当該線分と特定した前記障害物領域との2つの交点を特定し、特定した2つの交点と、当該障害物領域との関係に基づいて前記移動妨害度を特定してもよい。 The movement obstruction degree specifying unit identifies two intersections of the line segment and the specified obstacle region for each of the specified one or more line segments, and the specified two intersections and the obstacle area. The degree of movement obstruction may be specified based on the relationship with.

前記移動妨害度特定部は、特定した2つの交点により分断される前記障害物領域の2つの輪郭線のうち、相対的に短い輪郭線の長さに基づいて前記移動妨害度を特定してもよい。
前記移動妨害度特定部は、特定した一以上の前記線分のそれぞれについて、当該線分と特定した前記障害物領域との交点が3つ以上存在する場合に、3つの交点の中から取り得る2つの交点のうち、相対的に距離が長い2つの交点を特定してもよい。
Even if the movement obstruction degree specifying unit specifies the movement obstruction degree based on the length of a relatively short contour line among the two contour lines of the obstacle region divided by the two specified intersections. good.
The movement obstruction degree specifying unit can be taken from among three intersections for each of the specified one or more line segments when there are three or more intersections between the line segment and the specified obstacle region. Of the two intersections, two intersections having a relatively long distance may be specified.

前記移動妨害度特定部は、特定した2つの交点を結ぶ線分の長さに対する、特定した2つの交点により分断される前記障害物領域の輪郭線の長さの比率に基づいて前記移動妨害度を特定してもよい。
前記移動妨害度特定部は、特定した2つの交点のそれぞれと、特定した前記障害物領域の基準点と結ぶ二本の線分のなす角度を特定し、当該角度に基づいて前記移動妨害度を特定してもよい。
The movement obstruction degree specifying unit is based on the ratio of the length of the contour line of the obstacle region divided by the two specified intersections to the length of the line segment connecting the two specified intersections. May be specified.
The movement obstruction degree specifying unit specifies the angle formed by each of the two specified intersections and the two line segments connecting the specified obstacle region reference point, and determines the movement obstruction degree based on the angle. It may be specified.

前記移動妨害度特定部は、特定した前記障害物領域を構成する辺のうち、特定した2つの交点のいずれかが存在する2辺を特定し、当該2辺の間に存在する2つの辺群のうち、相対的に辺の数が少ない辺群に含まれる辺の数に基づいて前記移動妨害度を特定してもよい。
前記移動妨害度特定部は、特定した線分との交点が存在する前記障害物領域が複数存在する場合に、当該複数の障害物領域を1つの障害物領域に近似してもよい。
The movement obstruction degree specifying unit identifies two sides in which any of the two specified intersections exists among the sides constituting the specified obstacle area, and two side groups existing between the two sides. Of these, the degree of movement interference may be specified based on the number of sides included in the side group having a relatively small number of sides.
When there are a plurality of the obstacle regions having intersections with the specified line segments, the movement obstruction degree specifying unit may approximate the plurality of obstacle regions to one obstacle region.

前記オブジェクト位置特定部は、前記第1オブジェクト位置が前記障害物領域内に存在する場合に、当該第1オブジェクト位置を前記障害物領域外の位置に修正してもよい。
前記障害物領域特定部は、前記障害物の形状が非凸形状の場合に、当該障害物に対応する障害物領域を、凸形状の障害物領域に近似してもよい。
前記障害物領域特定部は、前記障害物領域を複数特定した場合において、特定した複数の障害物領域が隣接又は重複している場合に、当該複数の障害物領域を、当該複数の障害物領域の和領域に近似してもよい。
前記検出位置特定部は、特定した前記候補位置が前記障害物領域内に存在する場合に、当該候補位置を前記障害物領域外の位置に修正してもよい。
When the first object position exists in the obstacle area, the object position specifying unit may modify the first object position to a position outside the obstacle area.
When the shape of the obstacle is non-convex, the obstacle region specifying portion may approximate the obstacle region corresponding to the obstacle to the convex obstacle region.
When a plurality of the specified obstacle areas are specified and the specified plurality of obstacle areas are adjacent to each other or overlapped with each other, the obstacle area specifying unit can use the plurality of obstacle areas as the plurality of obstacle areas. It may be approximated to the sum region of.
When the specified candidate position exists in the obstacle region, the detection position specifying unit may modify the candidate position to a position outside the obstacle region.

前記選択部は、特定した前記第1時刻以前の位置に対応するオブジェクトと、特定した一以上の前記候補位置のそれぞれに対応するオブジェクトとの所定の対応関係における類似度を特定し、当該類似度と、特定した前記移動妨害度とに基づいて、前記第1時刻以前の位置から一以上の前記候補位置のそれぞれへの移動コストを特定してもよい。 The selection unit specifies the degree of similarity in a predetermined correspondence between the specified object corresponding to the position before the first time and the object corresponding to each of the specified one or more candidate positions, and the degree of similarity. And, based on the specified movement obstruction degree, the movement cost from the position before the first time to each of the one or more candidate positions may be specified.

前記選択部は、相対的に小さい前記移動コストが第1の閾値を超える場合に、前記候補位置を選択しないように制御してもよい。
前記選択部は、特定した前記移動妨害度が第2の閾値を超える前記候補位置について、前記移動コストを前記第1の閾値を超える値に設定してもよい。
The selection unit may control not to select the candidate position when the relatively small movement cost exceeds the first threshold value.
The selection unit may set the movement cost to a value exceeding the first threshold value for the candidate position where the specified movement interference degree exceeds the second threshold value.

前記位置選択装置は、前記オブジェクトの前記第1時刻における位置と、前記選択部が選択した前記オブジェクトの前記候補位置とを関連付けることにより、前記オブジェクトの移動動線を生成する動線生成部をさらに備えてもよい。 The position selection device further provides a flow line generation unit that generates a movement line of the object by associating the position of the object at the first time with the candidate position of the object selected by the selection unit. You may prepare.

本発明の第2の態様に係る位置選択方法は、コンピュータが実行する、所定エリアに存在する障害物の形状に対応する障害物領域と、前記障害物領域の前記所定エリアにおける位置とを特定するステップと、前記所定エリアを移動するオブジェクトの第1時刻以前の位置を特定するステップと、前記第1時刻よりも後の時刻である第2時刻における前記オブジェクトの一以上の検出位置の候補である候補位置を特定するステップと、特定した前記第1時刻以前の前記オブジェクトの位置と、特定した一以上の前記候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、前記オブジェクトが一以上の前記候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定するステップと、前記オブジェクトの前記第1時刻以前の位置から一以上の前記候補位置のそれぞれへの移動コストを前記移動妨害度に基づいて特定し、前記移動コストが相対的に小さい前記候補位置を、前記オブジェクトの前記第2時刻における位置に選択するステップと、を備える。 The position selection method according to the second aspect of the present invention specifies an obstacle area corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle area in the predetermined area, which is executed by a computer. A step, a step of specifying a position of an object moving in a predetermined area before the first time, and a candidate for one or more detection positions of the object at a second time, which is a time after the first time. The object is based on the positional relationship between the step of specifying the candidate position, the position of the object before the specified first time, the specified one or more candidate positions, and the position of the specified obstacle area. The step of specifying the degree of movement obstruction indicating the difficulty when moving to each of the one or more candidate positions, and the cost of moving the object from the position before the first time to each of the one or more candidate positions. Is specified based on the degree of movement obstruction, and includes a step of selecting the candidate position where the movement cost is relatively small as the position of the object at the second time.

本発明の第3の態様に係る位置選択プログラムは、コンピュータを、所定エリアに存在する障害物の形状に対応する障害物領域と、前記障害物領域の前記所定エリアにおける位置とを特定する障害物領域特定部、前記所定エリアを移動するオブジェクトの第1時刻以前の位置を特定するオブジェクト位置特定部、前記第1時刻よりも後の時刻である第2時刻における前記オブジェクトの一以上の検出位置の候補である候補位置を特定する検出位置特定部、特定した前記第1時刻以前の前記オブジェクトの位置と、特定した一以上の前記候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、前記オブジェクトが一以上の前記候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定する移動妨害度特定部、及び、前記オブジェクトの前記第1時刻以前の位置から一以上の前記候補位置のそれぞれへの移動コストを前記移動妨害度に基づいて特定し、前記移動コストが相対的に小さい前記候補位置を、前記オブジェクトの前記第2時刻における位置に選択する選択部、として機能させる。 The position selection program according to the third aspect of the present invention causes a computer to identify an obstacle area corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle area in the predetermined area. Area specifying unit, object position specifying unit that specifies the position of the object moving in the predetermined area before the first time, and one or more detection positions of the object at the second time, which is a time after the first time. The positional relationship between the detection position specifying unit that specifies the candidate position that is a candidate, the position of the object that was specified before the first time, the specified one or more candidate positions, and the position of the specified obstacle area. Based on this, the movement obstruction degree specifying unit that specifies the movement obstruction degree indicating the difficulty when the object moves to each of the one or more candidate positions, and one or more from the position of the object before the first time. As a selection unit, which specifies the movement cost to each of the candidate positions based on the movement obstruction degree, and selects the candidate position where the movement cost is relatively small as the position of the object at the second time. Make it work.

本発明によれば、オブジェクトの対応関係を効率的に特定することができるという効果を奏する。 According to the present invention, there is an effect that the correspondence between objects can be efficiently specified.

本実施形態に係る動線生成装置の概要を説明する図である。It is a figure explaining the outline of the flow line generation apparatus which concerns on this embodiment. 本実施形態に係る動線生成装置の構成を示す図である。It is a figure which shows the structure of the flow line generation apparatus which concerns on this embodiment. 第1時刻におけるオブジェクトの位置及び候補位置が特定された例を示す図である。It is a figure which shows the example which specified the position and the candidate position of the object at the 1st time. 第1オブジェクト位置と、一以上の候補位置のそれぞれとを結ぶ線分が特定された例を示す図である。It is a figure which shows the example which specified the line segment which connects the 1st object position and each of one or more candidate positions. 第1オブジェクト位置と候補位置とを結ぶ線分と、矩形として特定された障害物領域との交点が特定された例を示す図である。It is a figure which shows the example which specified the intersection of the line segment connecting the 1st object position and the candidate position, and the obstacle area specified as a rectangle. 特定した2点の交点により分断される障害物領域の2つの輪郭線の例を示す図である。It is a figure which shows the example of two contour lines of the obstacle area divided by the intersection of two specified points. 2つの交点を結ぶ線分の長さに対する輪郭線の長さの比率を算出する例を示す図である。It is a figure which shows the example of calculating the ratio of the length of the contour line to the length of the line segment connecting two intersections. 特定した2つの交点のそれぞれと、特定した障害物領域の基準点と結ぶ二本の線分のなす角度を特定する例を示す図である。It is a figure which shows the example which specifies the angle formed by each of the two specified intersections, and the two line segments connecting with the reference point of the specified obstacle area. 辺の数に基づいて移動妨害度を特定する例を示す図である。It is a figure which shows the example which specifies the movement obstruction degree based on the number of sides. 複数の障害物領域を1つの障害物領域に近似する例を示す図である。It is a figure which shows the example which approximates a plurality of obstacle areas to one obstacle area. 第1時刻以前のオブジェクトの位置と、候補位置との対応関係を特定した例を示す図である。It is a figure which shows the example which specified the correspondence relation between the position of the object before the 1st time, and the candidate position. 2つの交点を結ぶ線分の長さに対する輪郭線の長さの比率に基づいて移動妨害度を算出する例を示す図である。It is a figure which shows the example which calculates the movement obstruction degree based on the ratio of the length of the contour line to the length of the line segment connecting two intersections. 第2時刻に対応する確定位置を特定した例を示す図である。It is a figure which shows the example which specified the fixed position corresponding to the 2nd time. 本実施形態に係る動線生成装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process in the flow line generation apparatus which concerns on this embodiment. 障害物領域が存在する所定エリア内でTracking-by-Detection方式によりオブジェクトを追跡する場合の例を示す図である。It is a figure which shows the example of the case where the object is tracked by the Tracking-by-Detection method in the predetermined area where the obstacle area exists.

[動線生成装置1の概要]
図1は、本実施形態に係る動線生成装置1の概要を説明する図である。動線生成装置1は、所定エリアを移動するオブジェクトの各時刻における位置を示す動線情報を生成するコンピュータであり、オブジェクトの候補位置から、オブジェクトの位置を選択する位置選択装置として機能する。
[Overview of flow line generator 1]
FIG. 1 is a diagram illustrating an outline of a flow line generation device 1 according to the present embodiment. The flow line generation device 1 is a computer that generates flow line information indicating the position of an object moving in a predetermined area at each time, and functions as a position selection device that selects the position of the object from the candidate positions of the object.

ここで、所定エリアは、例えば店舗のフロアである。所定エリアには、動きを分析する対象の所定のオブジェクトとして、店員等の人物が存在する。なお、以下の説明では、所定のオブジェクトを単にオブジェクトという。 Here, the predetermined area is, for example, the floor of a store. In the predetermined area, a person such as a clerk exists as a predetermined object to be analyzed for movement. In the following description, a predetermined object is simply referred to as an object.

動線生成装置1は、所定エリアに存在する障害物の形状に対応する障害物領域と、障害物領域の所定エリアにおける位置とを特定する。動線生成装置1は、所定エリアを移動するオブジェクトの第1時刻以前の位置を特定し、第1時刻よりも後の時刻である第2時刻におけるオブジェクトの一以上の検出位置の候補である候補位置を特定する。図1では、動線生成装置1が、2つの候補位置P2A及びP2Bを特定した例が示されている。 The flow line generation device 1 specifies an obstacle region corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle region in the predetermined area. The flow line generator 1 identifies a position of an object moving in a predetermined area before the first time, and is a candidate for one or more detection positions of the object at the second time, which is a time after the first time. Identify the location. FIG. 1 shows an example in which the flow line generator 1 identifies two candidate positions P2A and P2B.

動線生成装置1は、特定した第1時刻以前のオブジェクトの位置と、特定した一以上の候補位置と、特定した障害物領域の位置との位置関係に基づいて、オブジェクトが第1時刻以前における位置から一以上の候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定する。図1に示す例では、動線生成装置1は、候補位置P2Aの移動妨害度を、候補位置P2Bの移動妨害度よりも低いものと特定する。 In the flow line generator 1, the object is set before the first time based on the positional relationship between the specified position of the object before the first time, the specified one or more candidate positions, and the position of the specified obstacle area. Identify the degree of obstruction that indicates the difficulty of moving from one position to each of one or more candidate positions. In the example shown in FIG. 1, the flow line generation device 1 specifies that the movement obstruction degree of the candidate position P2A is lower than the movement obstruction degree of the candidate position P2B.

そして、動線生成装置1は、第1時刻における位置から一以上の候補位置のそれぞれへの移動コストを移動妨害度に基づいて特定し、移動コストが相対的に小さい候補位置を、オブジェクトの第2時刻における位置に選択する。図1に示す例では、動線生成装置1は、候補位置P2Aへの移動コストを、候補位置P2Bへの移動コストよりも低く特定し、候補位置P2Aを、オブジェクトの第2時刻における位置として選択する。このようにすることで、動線生成装置1は、A*等の追跡アルゴリズムを使用して第1時刻における位置から複数の候補位置のそれぞれへの最短経路を特定する場合に比べて効率的に候補位置を選択することができる。 Then, the flow line generation device 1 specifies the movement cost from the position at the first time to each of the one or more candidate positions based on the degree of movement obstruction, and the candidate position where the movement cost is relatively small is the first object. Select the position at 2 time. In the example shown in FIG. 1, the flow line generator 1 specifies the movement cost to the candidate position P2A to be lower than the movement cost to the candidate position P2B, and selects the candidate position P2A as the position of the object at the second time. do. By doing so, the flow line generator 1 is more efficient than the case where the shortest path from the position at the first time to each of the plurality of candidate positions is specified by using a tracking algorithm such as A *. Candidate positions can be selected.

[動線生成装置1の構成]
続いて、動線生成装置1の構成を説明する。図2は、本実施形態に係る動線生成装置1の構成を示す図である。図2に示すように、動線生成装置1は、記憶部11と、制御部12とを備える。
[Structure of flow line generator 1]
Subsequently, the configuration of the flow line generation device 1 will be described. FIG. 2 is a diagram showing a configuration of a flow line generation device 1 according to the present embodiment. As shown in FIG. 2, the flow line generation device 1 includes a storage unit 11 and a control unit 12.

記憶部11は、ROM(Read Only Memory)及びRAM(Random Access Memory)等を含む記憶媒体である。記憶部11は、制御部12が実行するプログラムを記憶している。例えば、記憶部11は、動線生成装置1を、障害物領域特定部121、オブジェクト位置特定部122、検出位置特定部123、移動妨害度特定部124、選択部125、及び動線生成部126として機能させる、位置選択プログラムとしての動線生成プログラムを記憶している。 The storage unit 11 is a storage medium including a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. The storage unit 11 stores a program executed by the control unit 12. For example, the storage unit 11 uses the flow line generation device 1 as an obstacle area identification unit 121, an object position identification unit 122, a detection position identification unit 123, a movement obstruction degree identification unit 124, a selection unit 125, and a flow line generation unit 126. It stores a flow line generation program as a position selection program that functions as a position selection program.

制御部12は、例えばCPU(Central Processing Unit)である。制御部12は、記憶部11に記憶された動線生成プログラムを実行することにより、障害物領域特定部121、オブジェクト位置特定部122、検出位置特定部123、移動妨害度特定部124、選択部125、及び動線生成部126として機能する。 The control unit 12 is, for example, a CPU (Central Processing Unit). By executing the flow line generation program stored in the storage unit 11, the control unit 12 executes the obstacle area identification unit 121, the object position identification unit 122, the detection position identification unit 123, the movement obstruction degree identification unit 124, and the selection unit. It functions as 125 and a flow line generator 126.

障害物領域特定部121は、所定エリアに存在する障害物の形状に対応する障害物領域と、障害物領域の所定エリアにおける位置とを特定する。例えば、記憶部11には、障害物領域の形状及び障害物領域の所定エリアにおける位置を示す障害物領域情報が一以上記憶されている。障害物領域情報は、例えば、障害物領域の形状を示す多角形の各頂点の、所定エリアにおける位置(グローバル位置)を示す情報である。多角形領域が矩形の場合には、障害物領域情報は、矩形領域の中央位置を示す位置座標と、横幅及び縦幅とを示す情報であってもよい。障害物領域特定部121は、障害物領域情報を参照することにより、障害物領域と、障害物領域の所定エリアにおける位置とを特定する。 The obstacle area specifying unit 121 identifies an obstacle area corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle area in the predetermined area. For example, the storage unit 11 stores one or more obstacle area information indicating the shape of the obstacle area and the position of the obstacle area in a predetermined area. The obstacle area information is, for example, information indicating the position (global position) of each vertex of the polygon indicating the shape of the obstacle area in a predetermined area. When the polygonal area is rectangular, the obstacle area information may be position coordinates indicating the center position of the rectangular area and information indicating the horizontal width and the vertical width. The obstacle area specifying unit 121 identifies the obstacle area and the position of the obstacle area in a predetermined area by referring to the obstacle area information.

障害物領域特定部121は、特定した障害物の形状が非凸形状の場合に、当該障害物に対応する障害物領域を、凸形状の障害物領域に近似してもよい。また、障害物領域特定部121は、障害物領域を複数特定した場合において、特定した複数の障害物領域が隣接又は重複している場合に、当該複数の障害物領域を、当該複数の障害物領域の和領域に近似してもよい。ここで、障害物領域特定部121は、壁も障害物として特定してもよい。そして、壁とその他の障害物とが接している場合、障害物領域特定部121は、これらの障害物領域を、これらの障害物領域の和領域である1つの障害物領域に近似してもよい。このようにすることで、動線生成装置1は、障害物領域の形状を単純化することができ、処理負荷を軽減できる。 When the shape of the specified obstacle is non-convex, the obstacle region specifying unit 121 may approximate the obstacle region corresponding to the obstacle to the convex obstacle region. In addition, when a plurality of obstacle areas are specified, the obstacle area identification unit 121 can use the plurality of obstacle areas as the plurality of obstacles when the specified plurality of obstacle areas are adjacent to each other or overlap with each other. It may be approximated to the sum region of the regions. Here, the obstacle area specifying unit 121 may also specify the wall as an obstacle. When the wall is in contact with other obstacles, the obstacle area specifying unit 121 may approximate these obstacle areas to one obstacle area which is the sum area of these obstacle areas. good. By doing so, the flow line generation device 1 can simplify the shape of the obstacle region and reduce the processing load.

オブジェクト位置特定部122は、所定エリアを移動するオブジェクトの第1時刻以前の位置を特定する。例えば、記憶部11には、所定エリアを移動するオブジェクトの各時刻における位置を示す動線情報が一以上記憶されている。動線情報は、時刻と、当該時刻におけるオブジェクトの所定エリアにおける位置を示す位置情報とを関連付けた時系列情報である。位置情報は、例えば、メートルやセンチメートルを単位とした2次元座標である。 The object position specifying unit 122 specifies the position of the object moving in the predetermined area before the first time. For example, the storage unit 11 stores one or more flow line information indicating the position of an object moving in a predetermined area at each time. The flow line information is time-series information in which the time is associated with the position information indicating the position of the object in a predetermined area at the time. The position information is, for example, two-dimensional coordinates in units of meters or centimeters.

なお、動線情報に含まれる位置情報は、所定エリアの位置を示すグローバル位置を特定することが可能な情報であってもよく、例えば、所定エリアを撮像した撮像画像における位置を示すローカル位置情報と、当該位置をグローバル位置に変換するための変換用情報とを含むものであってもよい。ローカル位置情報は、例えば、ピクセルを単位としたオブジェクトの位置を示す2次元座標と、オブジェクトの幅及び高さとから構成される矩形情報である。 The position information included in the flow line information may be information capable of specifying a global position indicating the position of a predetermined area. For example, local position information indicating a position in a captured image obtained by capturing a predetermined area. And information for conversion for converting the position to a global position may be included. The local position information is, for example, rectangular information composed of two-dimensional coordinates indicating the position of an object in pixels and the width and height of the object.

オブジェクト位置特定部122は、第1時刻までの位置情報を含む一以上の動線情報を特定し、当該動線情報において第1時刻に関連付けられている位置情報を特定することにより、一以上のオブジェクトの第1時刻における位置を特定する。なお、オブジェクト位置特定部122は、第1時刻を含まず、第1時刻よりも前の時刻に対応する位置情報のみを含む動線情報を特定してもよい。そして、オブジェクト位置特定部122は、特定した動線情報において最も新しい時刻に関連付けられている位置情報を特定することにより、オブジェクトの第1時刻以前の位置を特定してもよい。 The object position specifying unit 122 identifies one or more flow line information including the position information up to the first time, and by specifying the position information associated with the first time in the flow line information, one or more. Specify the position of the object at the first time. The object position specifying unit 122 may specify the flow line information that does not include the first time and includes only the position information corresponding to the time before the first time. Then, the object position specifying unit 122 may specify the position of the object before the first time by specifying the position information associated with the latest time in the specified flow line information.

また、オブジェクト位置特定部122は、所定エリアを撮像する撮像装置が第1時刻に撮像した撮像画像に基づいて、第1時刻におけるオブジェクトの位置を特定してもよい。この場合、オブジェクト位置特定部122は、撮像画像に基づいてオブジェクトの位置を検出するオブジェクト検出装置に、第1時刻に撮像された撮像画像を入力する。そして、オブジェクト位置特定部122は、オブジェクト検出装置から、第1時刻に撮像された撮像画像に写る一以上のオブジェクトの位置を示す位置情報を取得し、取得した位置情報が示す位置を、第1時刻におけるオブジェクトの位置として特定する。ここで、オブジェクト検出装置は、機械学習や深層学習を用いたものであってもよい。また、オブジェクト検出装置は、赤外線を利用した3Dセンサ等を用いたものであってもよい。 Further, the object position specifying unit 122 may specify the position of the object at the first time based on the captured image captured at the first time by the image pickup device that images the predetermined area. In this case, the object position specifying unit 122 inputs the captured image captured at the first time to the object detection device that detects the position of the object based on the captured image. Then, the object position specifying unit 122 acquires position information indicating the position of one or more objects reflected in the captured image captured at the first time from the object detection device, and first obtains the position indicated by the acquired position information. Specify as the position of the object at the time. Here, the object detection device may be one using machine learning or deep learning. Further, the object detection device may be one using a 3D sensor or the like using infrared rays.

検出位置特定部123は、第1時刻よりも後の時刻である第2時刻におけるオブジェクトの一以上の検出位置の候補である候補位置を特定する。例えば、検出位置特定部123は、オブジェクト検出装置に、第2時刻に撮像された撮像画像を入力する。そして、検出位置特定部123は、オブジェクト検出装置から、第2時刻に撮像された撮像画像に写る一以上のオブジェクトの位置を示す位置情報を取得することにより、一以上の候補位置を特定する。 The detection position specifying unit 123 identifies a candidate position that is a candidate for one or more detection positions of the object at the second time, which is a time after the first time. For example, the detection position specifying unit 123 inputs the captured image captured at the second time to the object detection device. Then, the detection position specifying unit 123 identifies one or more candidate positions by acquiring position information indicating the positions of one or more objects reflected in the captured image captured at the second time from the object detection device.

検出位置特定部123は、特定した候補位置が障害物領域内に存在する場合に、当該候補位置を障害物領域外の位置に修正してもよい。例えば、検出位置特定部123は、特定した候補位置が障害物領域内に存在する場合に、障害物領域の輪郭を示す複数の位置のうち、当該候補位置に最も近い位置を、修正後の候補位置とする。なお、動線生成装置1は、オブジェクト検出装置が、オブジェクトの位置として障害物領域の内部の位置を検出しないようにオブジェクト検出装置を制御するようにしてもよい。 When the specified candidate position exists in the obstacle area, the detection position specifying unit 123 may correct the candidate position to a position outside the obstacle area. For example, when the specified candidate position exists in the obstacle area, the detection position specifying unit 123 selects the position closest to the candidate position among the plurality of positions showing the outline of the obstacle area as the corrected candidate. Position. The flow line generation device 1 may control the object detection device so that the object detection device does not detect the position inside the obstacle area as the position of the object.

図3は、第1時刻以前のオブジェクトの位置及び候補位置が特定された例を示す図である。図3に示す例では、動線T1に対応する最新のオブジェクト位置P1Aと、動線T2に対応する最新のオブジェクト位置P1Bとが特定され、候補位置P2A、P2B及びP2Cが特定されていることが確認できる。動線T1に対応する最新のオブジェクト位置P1Aは、第1時刻におけるオブジェクトの位置であり、動線T2に対応する最新のオブジェクト位置P1Bは、第1時刻以前の時刻におけるオブジェクトの位置である。 FIG. 3 is a diagram showing an example in which the position and the candidate position of the object before the first time are specified. In the example shown in FIG. 3, the latest object position P1A corresponding to the flow line T1 and the latest object position P1B corresponding to the flow line T2 are specified, and the candidate positions P2A, P2B and P2C are specified. You can check it. The latest object position P1A corresponding to the flow line T1 is the position of the object at the first time, and the latest object position P1B corresponding to the flow line T2 is the position of the object at the time before the first time.

移動妨害度特定部124は、オブジェクト位置特定部122が特定した第1時刻以前のオブジェクトの位置と、検出位置特定部123が特定した一以上の候補位置と、障害物領域特定部121が特定した障害物領域の位置との位置関係に基づいて、オブジェクトが一以上の候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定する。 The movement obstruction degree specifying unit 124 has specified the position of the object before the first time specified by the object position specifying unit 122, one or more candidate positions specified by the detection position specifying unit 123, and the obstacle area specifying unit 121. Based on the positional relationship with the position of the obstacle area, the degree of movement obstruction indicating the difficulty when the object moves to each of one or more candidate positions is specified.

まず、オブジェクト位置特定部122は、特定した動線情報が示すオブジェクトの第1時刻以前の位置に基づいて、当該オブジェクトの第2時刻における位置である第1オブジェクト位置を予測する。例えば、オブジェクト位置特定部122は、カルマンフィルタやパーティクルフィルタ等の近似フィルタを用いて第1オブジェクト位置を予測する。 First, the object position specifying unit 122 predicts the position of the first object, which is the position of the object at the second time, based on the position of the object indicated by the specified flow line information before the first time. For example, the object position specifying unit 122 predicts the position of the first object by using an approximate filter such as a Kalman filter or a particle filter.

そして、移動妨害度特定部124は、第1オブジェクト位置と、特定した一以上の候補位置と、特定した障害物領域の位置との位置関係に基づいて移動妨害度を特定する。具体的には、移動妨害度特定部124は、特定した第1オブジェクト位置と、特定した一以上の候補位置のそれぞれとを結ぶ線分を特定し、当該線分と特定した障害物領域との位置関係に基づいて、オブジェクトが第1オブジェクト位置から、特定した一以上の候補位置のそれぞれに移動するときの移動妨害度を特定する。 Then, the movement obstruction degree specifying unit 124 specifies the movement obstruction degree based on the positional relationship between the position of the first object, the specified one or more candidate positions, and the position of the specified obstacle area. Specifically, the movement obstruction degree specifying unit 124 specifies a line segment connecting each of the specified first object position and one or more specified candidate positions, and the line segment and the specified obstacle area are defined. Based on the positional relationship, the degree of movement obstruction when the object moves from the first object position to each of the specified one or more candidate positions is specified.

なお、オブジェクト位置特定部122は、第1オブジェクト位置を、第1時刻以前の位置に基づいて予測された第2時刻におけるオブジェクトの位置であることとしたが、これに限らない。例えば、オブジェクト位置特定部122は、オブジェクトの第1時刻における位置を第1オブジェクト位置として特定してもよい。そして、移動妨害度特定部124は、オブジェクト位置特定部122が特定した第1オブジェクト位置と、特定した一以上の候補位置と、特定した障害物領域の位置との位置関係に基づいて移動妨害度を特定してもよい。このようにすることで、動線生成装置1は、第2時刻におけるオブジェクトの位置を予測することなく、第2時刻におけるオブジェクトの位置を特定することができる。 The object position specifying unit 122 determines that the first object position is the position of the object at the second time predicted based on the position before the first time, but the present invention is not limited to this. For example, the object position specifying unit 122 may specify the position of the object at the first time as the first object position. Then, the movement obstruction degree specifying unit 124 has a movement obstruction degree based on the positional relationship between the first object position specified by the object position specifying unit 122, one or more specified candidate positions, and the position of the specified obstacle area. May be specified. By doing so, the flow line generation device 1 can specify the position of the object at the second time without predicting the position of the object at the second time.

また、オブジェクト位置特定部122は、特定した第1オブジェクト位置が障害物領域内に存在する場合に、当該第1オブジェクト位置を障害物領域外の位置に修正してもよい。このようにすることで、動線生成装置1は、第1オブジェクトの位置が障害物領域内に存在することにより移動妨害度の特定精度が落ちることを防止することができる。 Further, when the specified first object position exists in the obstacle area, the object position specifying unit 122 may correct the first object position to a position outside the obstacle area. By doing so, the flow line generation device 1 can prevent the position of the first object from being present in the obstacle area, thereby reducing the accuracy of specifying the degree of movement obstruction.

図4は、第1オブジェクト位置と、一以上の候補位置のそれぞれとを結ぶ線分が特定された例を示す図である。図4では、動線T1及び動線T2のそれぞれに対して、第2時刻に対応する第1オブジェクト位置PPA及びPPBが特定され、これらの第1オブジェクト位置から、一以上の候補位置P2A、P2B及びP2Cに対する6本の線分が特定されていることが確認できる。 FIG. 4 is a diagram showing an example in which a line segment connecting each of the first object position and one or more candidate positions is specified. In FIG. 4, first object positions PPA and PPB corresponding to the second time are specified for each of the flow line T1 and the flow line T2, and one or more candidate positions P2A and P2B are specified from these first object positions. And it can be confirmed that 6 line segments for P2C have been specified.

以下、移動妨害度特定部124による移動妨害度の特定方法を複数説明する。移動妨害度特定部124は、一以上の特定方法の少なくともいずれかに基づいて、一以上の第1オブジェクト位置のそれぞれから、一以上の候補位置のそれぞれに移動するときの移動妨害度を特定する。例えば、移動妨害度特定部124は、複数の特定方法の少なくともいずれかを組み合わせることにより、1つの第1オブジェクト位置から1つの候補位置に移動するときに対応する1つの移動妨害度を特定してもよい。移動妨害度特定部124は、1つの第1オブジェクト位置から1つの候補位置に移動するときに対応する1つの移動妨害度を特定する場合に、複数の特定方法のそれぞれに従って複数の移動妨害度を特定し、各々の処理方法により特定した複数の移動妨害度の積や重み付き和等を用いて、1つの移動妨害度を特定してもよい。 Hereinafter, a plurality of methods for specifying the movement obstruction degree by the movement obstruction degree specifying unit 124 will be described. The movement obstruction degree specifying unit 124 specifies the movement obstruction degree when moving from each of one or more first object positions to each of one or more candidate positions based on at least one of one or more identification methods. .. For example, the movement obstruction degree specifying unit 124 specifies one movement obstruction degree corresponding to when moving from one first object position to one candidate position by combining at least one of a plurality of identification methods. May be good. When moving from one first object position to one candidate position, the movement obstruction degree specifying unit 124 specifies a plurality of movement obstruction degrees according to each of the plurality of identification methods. One movement obstruction degree may be specified by using the product of a plurality of movement obstruction degrees specified by each processing method, a weighted sum, or the like.

移動妨害度特定部124は、特定した一以上の線分のそれぞれについて、当該線分と、特定された障害物領域との2つの交点を特定する。図5は、第1オブジェクト位置と候補位置とを結ぶ線分と、矩形として特定された障害物領域との交点が特定された例を示す図である。図5に示すように、第1オブジェクト位置PPAと候補位置P2A及びP2Bとを結ぶ2つの線分と、矩形として特定された障害物領域の辺(輪郭)との交点として、交点i1A、i1B、i2A、及びi2Bが特定されていることが確認できる。障害物領域が凸形状の場合、第1オブジェクト位置と候補位置とを通る1つの線分と、障害物領域の輪郭との交点は2点となる。なお、線分が障害物領域の頂点と交差する場合には、交点は1点となるが、この場合には、移動妨害度特定部124は、2点の交点を同一の点として特定してもよい。 The movement obstruction degree specifying unit 124 identifies two intersections of the line segment and the specified obstacle area for each of the specified one or more line segments. FIG. 5 is a diagram showing an example in which the intersection of the line segment connecting the first object position and the candidate position and the obstacle area specified as a rectangle is specified. As shown in FIG. 5, the intersections i1A and i1B are the intersections of the two line segments connecting the first object position PPA and the candidate positions P2A and P2B and the sides (contours) of the obstacle region specified as a rectangle. It can be confirmed that i2A and i2B have been specified. When the obstacle region has a convex shape, there are two intersections between one line segment passing through the first object position and the candidate position and the contour of the obstacle region. When the line segment intersects the apex of the obstacle region, the intersection becomes one point. In this case, the movement obstruction degree specifying unit 124 specifies the intersection of the two points as the same point. May be good.

また、障害物領域が非凸形状の場合、特定した一以上の線分のそれぞれについて、当該線分と障害物領域との交点が3つ以上存在する場合がある。この場合、移動妨害度特定部124は、3つの交点の中から取り得る2つの交点のうち、相対的に距離が長い2つの交点を、移動妨害度の特定に用いる2つの交点として特定する。このようにすることで、動線生成装置1は、障害物領域が非凸形状であっても、移動妨害度を精度良く特定することができる。 Further, when the obstacle region has a non-convex shape, there may be three or more intersections between the line segment and the obstacle region for each of the specified one or more line segments. In this case, the movement obstruction degree specifying unit 124 specifies two intersections having a relatively long distance from the two possible intersections among the three intersections as two intersections used for specifying the movement obstruction degree. By doing so, the flow line generation device 1 can accurately specify the degree of movement obstruction even if the obstacle region has a non-convex shape.

移動妨害度特定部124は、特定した2つの交点と、当該障害物領域との関係に基づいて移動妨害度を特定する。例えば、移動妨害度特定部124は、特定した2点の交点により分断される障害物領域の2つの輪郭線のうち、相対的に短い輪郭線の長さに基づいて移動妨害度を特定する。 The movement obstruction degree specifying unit 124 specifies the movement obstruction degree based on the relationship between the two specified intersections and the obstacle area. For example, the movement obstruction degree specifying unit 124 specifies the movement obstruction degree based on the length of the relatively short contour line among the two contour lines of the obstacle region divided by the intersection of the two specified points.

図6は、特定した2点の交点により分断される障害物領域の2つの輪郭線の例を示す図である。図6には、第1オブジェクト位置PPAと候補位置P2Aとを結ぶ線分により障害物領域が分断されたときの2つの輪郭線LA及びLBが示されていることが確認できる。図6に示す例では、輪郭線LAが、輪郭線LBに比べて短いことが確認できる。移動妨害度特定部124は、図6に示す例において、輪郭線LAの長さに基づいて、オブジェクトが第1オブジェクト位置PPAから候補位置P2Aに移動するときの移動妨害度を特定する。例えば、移動妨害度特定部124は、輪郭線LAの長さを移動妨害度として算出する。同様に、移動妨害度特定部124は、第1オブジェクト位置PPAと候補位置P2Bとを結ぶ線分により障害物領域が分断されたときの短い方の輪郭線を求め、オブジェクトが第1オブジェクト位置PPAから候補位置P2Bに移動するときの移動妨害度を特定する。 FIG. 6 is a diagram showing an example of two contour lines of an obstacle region divided by an intersection of two specified points. It can be confirmed that FIG. 6 shows two contour lines LA and LB when the obstacle area is divided by the line segment connecting the first object position PPA and the candidate position P2A. In the example shown in FIG. 6, it can be confirmed that the contour line LA is shorter than the contour line LB. In the example shown in FIG. 6, the movement obstruction degree specifying unit 124 specifies the movement obstruction degree when the object moves from the first object position PPA to the candidate position P2A based on the length of the contour line LA. For example, the movement obstruction degree specifying unit 124 calculates the length of the contour line LA as the movement obstruction degree. Similarly, the movement obstruction degree specifying unit 124 obtains the shorter contour line when the obstacle area is divided by the line segment connecting the first object position PPA and the candidate position P2B, and the object is the first object position PPA. The degree of movement obstruction when moving from to the candidate position P2B is specified.

また、移動妨害度特定部124は、特定した2つの交点を結ぶ線分の長さに対する、特定した2つの交点により分断される障害物領域の輪郭線の長さの比率に基づいて移動妨害度を特定してもよい。例えば、移動妨害度特定部124は、第1オブジェクト位置と、1つの候補位置とを結ぶ線分により障害物領域が分断されたときの2つの輪郭線のうち、相対的に短い輪郭線を特定する。そして、移動妨害度特定部124は、例えば、当該輪郭線に対応する2つの交点を結ぶ線分の長さに対する当該輪郭線の長さの比率を移動妨害度として算出する。 Further, the movement obstruction degree specifying unit 124 has a movement obstruction degree based on the ratio of the length of the contour line of the obstacle region divided by the two specified intersections to the length of the line segment connecting the two specified intersections. May be specified. For example, the movement obstruction degree specifying unit 124 specifies a relatively short contour line among the two contour lines when the obstacle area is divided by a line segment connecting the first object position and one candidate position. do. Then, the movement obstruction degree specifying unit 124 calculates, for example, the ratio of the length of the contour line to the length of the line segment connecting the two intersections corresponding to the contour line as the movement obstruction degree.

図7は、2つの交点を結ぶ線分の長さに対する輪郭線の長さの比率を算出する例を示す図である。図7には、第1オブジェクト位置PPAと候補位置P2Aとを結ぶ線分により障害物領域が分断されたときの相対的に短い輪郭線LAと、第1オブジェクト位置PPAと候補位置P2Bとを結ぶ線分により障害物領域が分断されたときの相対的に短い輪郭線LCとが示されている。 FIG. 7 is a diagram showing an example of calculating the ratio of the length of the contour line to the length of the line segment connecting the two intersections. FIG. 7 shows a relatively short contour line LA when the obstacle area is divided by a line segment connecting the first object position PPA and the candidate position P2A, and connecting the first object position PPA and the candidate position P2B. A relatively short contour line LC when the obstacle area is divided by a line segment is shown.

図7に示す例において、移動妨害度特定部124は、輪郭線LAに対応する2つの交点i1A及びi2Aを結ぶ線分の長さに対する輪郭線LAの長さの比率を、オブジェクトが第1オブジェクト位置PPAから候補位置P2Aに移動するときの移動妨害度として特定する。また、移動妨害度特定部124は、輪郭線LCに対応する2つの交点i1B及びi2Bを結ぶ線分の長さに対する輪郭線LCの長さの比率を、オブジェクトが第1オブジェクト位置PPAから候補位置P2Bに移動するときの移動妨害度として特定する。 In the example shown in FIG. 7, the movement obstruction degree specifying unit 124 sets the ratio of the length of the contour line LA to the length of the line segment connecting the two intersections i1A and i2A corresponding to the contour line LA as the first object. It is specified as the degree of movement obstruction when moving from the position PPA to the candidate position P2A. Further, the movement obstruction degree specifying unit 124 sets the ratio of the length of the contour line LC to the length of the line segment connecting the two intersections i1B and i2B corresponding to the contour line LC, from the first object position PPA to the candidate position. It is specified as the degree of movement obstruction when moving to P2B.

また、移動妨害度特定部124は、特定した2つの交点のそれぞれと、特定した障害物領域の基準点と結ぶ二本の線分のなす角度を特定し、当該角度に基づいて移動妨害度を特定してもよい。ここで、障害物領域の基準点は、例えば、障害物領域の中心点である。 Further, the movement obstruction degree specifying unit 124 specifies the angle formed by the two line segments connecting each of the two specified intersections and the reference point of the specified obstacle region, and determines the movement obstruction degree based on the angle. It may be specified. Here, the reference point of the obstacle region is, for example, the center point of the obstacle region.

図8は、特定した2つの交点のそれぞれと、特定した障害物領域の基準点とを結ぶ二本の線分のなす角度を特定する例を示す図である。図8には、第1オブジェクト位置PPAと候補位置P2Aとを結ぶ線分により障害物領域を分断したときの2つの交点i1A及びi2Aと、第1オブジェクト位置PPAと候補位置P2Bとを結ぶ線分により障害物領域を分断したときの2つの交点i1B及びi2Bとが示されている。 FIG. 8 is a diagram showing an example of specifying the angle formed by two line segments connecting each of the two specified intersections and the reference point of the specified obstacle region. FIG. 8 shows a line segment connecting the two intersections i1A and i2A when the obstacle area is divided by the line segment connecting the first object position PPA and the candidate position P2A, and the first object position PPA and the candidate position P2B. The two intersections i1B and i2B when the obstacle area is divided by the above are shown.

図8に示す例において、移動妨害度特定部124は、候補位置P2Aに対応する2つの交点i1A及びi2Aと、中心点Oとの角度θAを特定する。そして、移動妨害度特定部124は、当該角度θAを、オブジェクトが第1オブジェクト位置PPAから候補位置P2Aに移動するときの移動妨害度とする。また、移動妨害度特定部124は、候補位置P2Bに対応する2つの交点i1B及びi2Bと、中心点Oとの角度θBを特定する。そして、移動妨害度特定部124は、当該角度θBを、オブジェクトが第1オブジェクト位置PPAから候補位置P2Bに移動するときの移動妨害度とする。 In the example shown in FIG. 8, the movement obstruction degree specifying unit 124 specifies the angle θA between the two intersections i1A and i2A corresponding to the candidate positions P2A and the center point O. Then, the movement obstruction degree specifying unit 124 sets the angle θA as the movement obstruction degree when the object moves from the first object position PPA to the candidate position P2A. Further, the movement obstruction degree specifying unit 124 specifies the angle θB between the two intersections i1B and i2B corresponding to the candidate positions P2B and the center point O. Then, the movement obstruction degree specifying unit 124 sets the angle θB as the movement obstruction degree when the object moves from the first object position PPA to the candidate position P2B.

また、移動妨害度特定部124は、特定した障害物領域を構成する辺のうち、特定した2つの交点のいずれかが存在する2辺を特定し、当該2辺の間に存在する2つの辺群のうち、相対的に辺の数が少ない辺群に含まれる辺の数に基づいて移動妨害度を特定してもよい。 Further, the movement obstruction degree specifying unit 124 identifies two sides in which any of the two specified intersections exists among the sides constituting the specified obstacle area, and the two sides existing between the two sides. The degree of movement obstruction may be specified based on the number of sides included in the side group having a relatively small number of sides in the group.

図9は、辺の数に基づいて移動妨害度を特定する例を示す図である。図9に示す障害物領域は八角形であり、辺E1~E8を備える。図9には、第1オブジェクト位置PPAと候補位置P2Aとを結ぶ線分により障害物領域を分断したときの2つの交点i1A及びi2Aが示されている。図9に示す例では、移動妨害度特定部124は、2つの交点i1A及びi2Aのいずれかが存在する2辺として、辺E3及びE6を特定する。当該辺E3及びE6の間には、辺E4及びE5を含む第1の辺群と、辺E1、E2、E7及びE8を含む第2の辺群とが存在する。移動妨害度特定部124は、相対的に辺の数が少ない第1の辺群に含まれる辺の数(2個)に基づいて、オブジェクトが第1オブジェクト位置PPAから候補位置P2Aに移動するときの移動妨害度を特定する。例えば、移動妨害度特定部124は、相対的に辺の数が少ない第1の辺群に含まれる辺の数を移動妨害度とする。 FIG. 9 is a diagram showing an example of specifying the movement obstruction degree based on the number of sides. The obstacle area shown in FIG. 9 is octagonal and includes sides E1 to E8. FIG. 9 shows two intersections i1A and i2A when the obstacle area is divided by a line segment connecting the first object position PPA and the candidate position P2A. In the example shown in FIG. 9, the movement obstruction degree specifying unit 124 specifies the sides E3 and E6 as two sides where any of the two intersections i1A and i2A exists. Between the sides E3 and E6, there is a first side group including the sides E4 and E5 and a second side group including the sides E1, E2, E7 and E8. When the object moves from the first object position PPA to the candidate position P2A, the movement obstruction degree specifying unit 124 is based on the number of sides (two) included in the first side group having a relatively small number of sides. Identify the degree of movement obstruction. For example, the movement obstruction degree specifying unit 124 uses the number of sides included in the first side group, which has a relatively small number of sides, as the movement obstruction degree.

また、移動妨害度特定部124は、特定した線分との交点が存在する障害物領域が複数存在する場合に、当該複数の障害物領域を1つの障害物領域に近似してもよい。 Further, when there are a plurality of obstacle regions having intersections with the specified line segments, the movement obstruction degree specifying unit 124 may approximate the plurality of obstacle regions to one obstacle region.

図10は、複数の障害物領域を1つの障害物領域に近似する例を示す図である。図10では、複数の障害物領域として、障害物領域X、Y、Zが存在しており、第1オブジェクト位置PPAと候補位置P2Aとを結ぶ線分によりこれらの障害物領域を分断したときの6つの交点i1A~i6Aが示されている。この場合、移動妨害度特定部124は、3つの障害物領域を1つの障害物領域SAに近似する。このようにすることで、移動妨害度特定部124は、これらの障害物領域を1つの障害物領域として扱うことができるので、移動妨害度を特定するときの負荷を削減することができる。 FIG. 10 is a diagram showing an example of approximating a plurality of obstacle regions to one obstacle region. In FIG. 10, obstacle regions X, Y, and Z exist as a plurality of obstacle regions, and these obstacle regions are divided by a line segment connecting the first object position PPA and the candidate position P2A. Six intersections i1A to i6A are shown. In this case, the movement obstruction degree specifying unit 124 approximates the three obstacle regions to one obstacle region SA. By doing so, the movement obstruction degree specifying unit 124 can treat these obstacle areas as one obstacle area, so that the load when specifying the movement obstruction degree can be reduced.

選択部125は、オブジェクトの第1時刻以前の位置から一以上の候補位置のそれぞれへの移動コストを移動妨害度に基づいて特定し、移動コストが相対的に小さい候補位置を、当該オブジェクトの第2時刻における位置に選択する。 The selection unit 125 specifies the movement cost from the position before the first time of the object to each of one or more candidate positions based on the degree of movement obstruction, and the candidate position where the movement cost is relatively small is the first candidate position of the object. Select the position at 2 time.

選択部125は、オブジェクト位置特定部122が特定した第1時刻以前の位置に対応するオブジェクトと、検出位置特定部123が特定した一以上の候補位置のそれぞれに対応するオブジェクトとの所定の対応関係における類似度を示す類似度コストを特定する。そして、選択部125は、当該類似度コストと、移動妨害度特定部124が特定した移動妨害度とに基づいて、第1時刻以前の位置から一以上の候補位置のそれぞれへの移動コストを特定する。 The selection unit 125 has a predetermined correspondence relationship between the object corresponding to the position before the first time specified by the object position identification unit 122 and the object corresponding to each of the one or more candidate positions specified by the detection position identification unit 123. Identify the similarity cost that indicates the similarity in. Then, the selection unit 125 specifies the movement cost from the position before the first time to each of one or more candidate positions based on the similarity cost and the movement interference degree specified by the movement interference degree specifying unit 124. do.

選択部125は、第1時刻におけるオブジェクトの位置を特定できた場合には、当該位置に対応するオブジェクトと、一以上の候補位置のそれぞれに対応するオブジェクトとの類似度コストを特定し、第1時刻におけるオブジェクトの位置を特定できなかった場合には、第1時刻よりも前のうち、最新の時刻に対応するオブジェクトの位置に対応するオブジェクトと、一以上の候補位置のそれぞれに対応するオブジェクトとの類似度コストを特定する。 When the position of the object at the first time can be specified, the selection unit 125 specifies the similarity cost between the object corresponding to the position and the object corresponding to each of the one or more candidate positions, and first. If the position of the object at the time cannot be specified, the object corresponding to the position of the object corresponding to the latest time and the object corresponding to each of one or more candidate positions before the first time are selected. Identify the similarity cost of.

本実施形態では、類似度コストが小さければ小さいほど、第1時刻以前のオブジェクトと、候補位置に対応するオブジェクトとが類似しているものとする。選択部125は、例えば、所定エリアの位置に対応するグローバル座標系における第1時刻以前のオブジェクトの位置と、一以上の候補位置のそれぞれとの直線距離又は最短距離を類似度コストとして算出する。また、選択部125は、撮像部が撮像した撮像画像上の位置に対応する座標系であるローカル座標系における、オブジェクトに対応する投影領域間の重複率(IoU:Intersection over Union)を算出し、重複率を1から引いた値を類似度コストとして特定してもよい。 In the present embodiment, the smaller the similarity cost, the more similar the object before the first time and the object corresponding to the candidate position are. The selection unit 125 calculates, for example, the linear distance or the shortest distance between the position of the object before the first time in the global coordinate system corresponding to the position of the predetermined area and each of the one or more candidate positions as the similarity cost. Further, the selection unit 125 calculates the overlap ratio (IoU: Intersection over Union) between the projection regions corresponding to the objects in the local coordinate system which is the coordinate system corresponding to the position on the captured image captured by the imaging unit. The value obtained by subtracting the duplication rate from 1 may be specified as the similarity cost.

また、選択部125は、撮像装置により撮像された所定エリアの撮像画像から抽出されたオブジェクトを示すオブジェクト画像が存在する場合には、オブジェクト画像の類似度に基づいて類似度コストを特定してもよい。 Further, if there is an object image showing an object extracted from the captured image of a predetermined area captured by the imaging device, the selection unit 125 may specify the similarity cost based on the similarity of the object images. good.

例えば、撮像装置により第1時刻に撮像された所定エリアの撮像画像から特定した、第1時刻におけるオブジェクトの位置に対応するオブジェクト画像を第1オブジェクト画像とし、第2時刻に撮像された所定エリアの撮像画像から特定した、一以上の候補位置のそれぞれに対応するオブジェクト画像を第2オブジェクト画像とする。この場合、選択部125は、第1オブジェクト画像と、一以上の第2オブジェクト画像のそれぞれとを、同一人物判定装置(不図示)に入力し、同一人物判定装置から判定スコアを取得する。ここで、第1オブジェクト画像に対応する人物と、第2オブジェクト画像に対応する人物とが同一である可能性が高ければ高いほど、判定スコアの値が高くなるものとする。選択部125は、例えば、同一人物判定装置から取得した判定スコアの逆数を類似度コストと特定してもよい。 For example, the object image corresponding to the position of the object at the first time, which is identified from the captured image of the predetermined area captured at the first time by the imaging device, is set as the first object image, and the predetermined area captured at the second time. The object image corresponding to each of the one or more candidate positions identified from the captured image is referred to as a second object image. In this case, the selection unit 125 inputs each of the first object image and one or more second object images to the same person determination device (not shown), and acquires a determination score from the same person determination device. Here, it is assumed that the higher the possibility that the person corresponding to the first object image and the person corresponding to the second object image are the same, the higher the value of the determination score. The selection unit 125 may specify, for example, the reciprocal of the determination score obtained from the same person determination device as the similarity cost.

また、選択部125は、第1オブジェクト画像の特徴を示す特徴ベクトルと第2オブジェクト画像の特徴を示す特徴ベクトルに基づいて、類似度コストを特定してもよい。例えば、選択部125は、特徴量抽出装置(不図示)に、第1オブジェクト画像と、一以上の第2オブジェクト画像とを入力し、特徴量抽出装置から、これらのオブジェクト画像の特徴ベクトルを示す情報を取得する。そして、選択部125は、第1オブジェクト画像の特徴ベクトルと、一以上の第2オブジェクト画像のそれぞれに対応する特徴ベクトルとのなす角度により定まるコサイン類似度を算出する。選択部125は、一以上の第2オブジェクト画像のそれぞれについて、算出したコサイン類似度を1から引いた値を、当該第2オブジェクト画像に対応する類似度コストとして特定する。 Further, the selection unit 125 may specify the similarity cost based on the feature vector showing the features of the first object image and the feature vector showing the features of the second object image. For example, the selection unit 125 inputs a first object image and one or more second object images to the feature amount extraction device (not shown), and displays the feature vectors of these object images from the feature amount extraction device. Get information. Then, the selection unit 125 calculates the cosine similarity determined by the angle formed by the feature vector of the first object image and the feature vector corresponding to each of the one or more second object images. The selection unit 125 specifies a value obtained by subtracting the calculated cosine similarity from 1 for each of the one or more second object images as the similarity cost corresponding to the second object image.

ここで、同一人物判定装置や特徴量抽出装置には、機械学習や深層学習を用いることができる。なお、選択部125は、上述した複数の類似度コストの特定方法の少なくともいずれかを組み合わせることにより、第1時刻以前の位置に対応するオブジェクトと、1つの候補位置に対応するオブジェクトとの類似度コストを特定してもよい。 Here, machine learning or deep learning can be used for the same person determination device and the feature amount extraction device. By combining at least one of the plurality of similarity cost specifying methods described above, the selection unit 125 has a similarity between the object corresponding to the position before the first time and the object corresponding to one candidate position. You may specify the cost.

例えば、選択部125は、第1時刻以前の位置に対応するオブジェクトと、1つの候補位置に対応するオブジェクトとについて、複数の類似度コストの特定方法のそれぞれに従って類似度コストを特定する。そして、選択部125は、各々の特定方法により特定した類似度コストの積や重み付き和等を用いて、第1時刻以前の位置に対応するオブジェクトと、1つの候補位置に対応するオブジェクトとに対応する1つの類似度コストを特定する。 For example, the selection unit 125 specifies the similarity cost for the object corresponding to the position before the first time and the object corresponding to one candidate position according to each of the plurality of similarity cost specifying methods. Then, the selection unit 125 uses the product of the similarity costs specified by each specific method, the weighted sum, and the like to create an object corresponding to the position before the first time and an object corresponding to one candidate position. Identify one corresponding similarity cost.

選択部125は、特定した類似度コストと、移動妨害度特定部124が特定した移動妨害度と少なくともいずれかに基づいて、移動コストを特定する。選択部125は、例えば、類似度コストと移動妨害度との積や重み付き和を算出することにより移動コストを特定する。 The selection unit 125 specifies the movement cost based on at least one of the specified similarity cost and the movement interference degree specified by the movement interference degree specifying unit 124. The selection unit 125 specifies the movement cost by, for example, calculating the product of the similarity cost and the movement obstruction degree and the weighted sum.

選択部125は、オブジェクト位置特定部122が特定した一以上のオブジェクトと、検出位置特定部123が検出した一以上の候補位置のそれぞれに対応するオブジェクトとの対応関係を特定するにあたり、移動コストを要素とするコスト行列を生成する。 The selection unit 125 determines the movement cost in specifying the correspondence between the one or more objects specified by the object position identification unit 122 and the objects corresponding to each of the one or more candidate positions detected by the detection position identification unit 123. Generate a cost matrix as an element.

図4に示す例の場合、選択部125は、オブジェクト位置特定部122が特定した動線T1及びT2に対応する最新のオブジェクト位置P1A及びP1Bを各行とし、候補位置P2A、P2B及びP2Cを各列とした、2行3列のコスト行列を生成する。行列の各要素には、図4中の各線分が示す対応関係から特定される移動コスト値を含む。選択部125は、当該行列にハンガリアン法を適用することにより、コスト値が最小となる第1時刻以前のオブジェクトの位置と、候補位置との対応関係を特定する。 In the case of the example shown in FIG. 4, the selection unit 125 has the latest object positions P1A and P1B corresponding to the flow lines T1 and T2 specified by the object position identification unit 122 as each column, and the candidate positions P2A, P2B and P2C as each column. To generate a cost matrix with 2 rows and 3 columns. Each element of the matrix contains a travel cost value identified from the correspondence shown by each line segment in FIG. By applying the Hungarian method to the matrix, the selection unit 125 specifies the correspondence between the position of the object before the first time when the cost value is minimized and the candidate position.

図11は、第1時刻以前のオブジェクトの位置と、候補位置との対応関係を特定した例を示す図である。図11は、図4に示される最新のオブジェクト位置P1A及びP1Bと、候補位置P2A、P2B及びP2Cとに対して、ハンガリアン法を適用したときの位置の対応関係として、最新のオブジェクト位置P1Aと候補位置P2A、最新のオブジェクト位置P1Bと候補位置P2Bという2つの対応関係が特定された場合の例を示している。なお、候補位置P2Cは、複数の最新のオブジェクトの位置のいずれとも対応関係が得られていないことが確認できる。 FIG. 11 is a diagram showing an example in which the correspondence between the position of the object before the first time and the candidate position is specified. FIG. 11 shows the latest object positions P1A and candidates as the correspondence between the latest object positions P1A and P1B shown in FIG. 4 and the candidate positions P2A, P2B and P2C when the Hungarian method is applied. An example is shown in the case where two correspondences of the position P2A, the latest object position P1B, and the candidate position P2B are specified. It can be confirmed that the candidate position P2C does not have a correspondence with any of the positions of the plurality of latest objects.

上述した例では、コスト行列として非正方行列(2行3列の行列)を用いるため、候補位置P2Cのように対応関係が特定されない候補位置が生じるが、正方行列を用いる場合には、全ての最新のオブジェクトの位置及び候補位置について対応関係が得られる。このような場合でも、得られた対応関係が必ずしも正しいものとは限らない。 In the above example, since a non-square matrix (matrix of 2 rows and 3 columns) is used as the cost matrix, a candidate position such as the candidate position P2C in which the correspondence is not specified occurs, but when a square matrix is used, all the candidate positions are generated. Correspondence is obtained about the position of the latest object and the candidate position. Even in such a case, the obtained correspondence is not always correct.

また、移動妨害度は、障害物に基づく移動コストを簡易的に特定した値であることから、例えば、移動距離という観点では、移動妨害度の大小関係は常に正しいとは限らない。これに対し、移動距離の観点から最適な対応関係を特定するためには、計算量の多い最短経路探索アルゴリズムを用いる必要がある。また、コスト行列に含める移動コストを特定するにあたり、類似度コストに移動妨害度を反映させる必要があるが、重み付き和を用いる場合は、適切な重みパラメータの事前設定が困難な場合が多い。 Further, since the movement obstruction degree is a value that simply specifies the movement cost based on the obstacle, for example, from the viewpoint of the movement distance, the magnitude relation of the movement obstruction degree is not always correct. On the other hand, in order to specify the optimum correspondence from the viewpoint of the travel distance, it is necessary to use the shortest path search algorithm with a large amount of calculation. Further, in specifying the movement cost to be included in the cost matrix, it is necessary to reflect the movement interference degree in the similarity cost, but when the weighted sum is used, it is often difficult to preset an appropriate weight parameter.

そこで、選択部125は、得られた対応関係に対応する移動コストに対して閾値処理を施すことにより、対応関係を高精度に特定してもよい。具体的には、選択部125は、最新のオブジェクトの位置と、一以上の候補位置のそれぞれとの移動コストのうち、相対的に小さい移動コストが第1の閾値を超える場合に、当該オブジェクトに対応する候補位置を選択しないように制御してもよい。 Therefore, the selection unit 125 may specify the correspondence relationship with high accuracy by performing the threshold value processing on the movement cost corresponding to the obtained correspondence relationship. Specifically, the selection unit 125 determines the object when the relatively small movement cost of the movement cost between the latest object position and each of the one or more candidate positions exceeds the first threshold value. It may be controlled not to select the corresponding candidate position.

また、選択部125は、移動妨害度特定部124が特定した移動妨害度が第2の閾値を超える候補位置について、当該候補位置に対応する移動コストを、第1の閾値を超える値に設定してもよい。 Further, the selection unit 125 sets the movement cost corresponding to the candidate position to a value exceeding the first threshold value for the candidate position where the movement interference degree specified by the movement interference degree specifying unit 124 exceeds the second threshold value. You may.

図12は、2つの交点を結ぶ線分の長さに対する輪郭線の長さの比率に基づいて移動妨害度を算出する例を示す図である。例えば、図12に示すように、第1オブジェクト位置PPAと、候補位置P2A、P2B、P2C及びP2Dとが特定された場合に、移動妨害度特定部124が、2つの交点を結ぶ線分の長さに対する輪郭線の長さの比率により移動妨害度を特定したとする。 FIG. 12 is a diagram showing an example of calculating the movement interference degree based on the ratio of the length of the contour line to the length of the line segment connecting the two intersections. For example, as shown in FIG. 12, when the first object position PPA and the candidate positions P2A, P2B, P2C and P2D are specified, the movement obstruction degree specifying unit 124 is the length of the line segment connecting the two intersections. It is assumed that the degree of movement obstruction is specified by the ratio of the length of the contour line to the height.

候補位置P2Aに対応する移動妨害度をDA、候補位置P2Bに対応する移動妨害度をDB、候補位置P2Cに対応する移動妨害度をDC、候補位置P2Dに対応する移動妨害度をDDとすると、DA<DB<<DD<DCという大小関係となる。当該大小関係に従うと、候補位置P2Aは候補位置P2Bに比べて優先的に第1オブジェクト位置PPAに対応付けられ、候補位置P2Dは候補位置P2Cに比べて優先的に第1オブジェクト位置PPAに対応付けられることとなる。しかしながら、対応付けを行うにあたり、必ずしも当該大小関係が正しいとはいえない。 Assuming that the movement obstruction degree corresponding to the candidate position P2A is DA, the movement obstruction degree corresponding to the candidate position P2B is DB, the movement obstruction degree corresponding to the candidate position P2C is DC, and the movement obstruction degree corresponding to the candidate position P2D is DD. The magnitude relationship is DA <DB << DD <DC. According to the magnitude relationship, the candidate position P2A is preferentially associated with the first object position PPA over the candidate position P2B, and the candidate position P2D is associated with the first object position PPA preferentially over the candidate position P2C. Will be. However, it cannot be said that the magnitude relationship is always correct when making the correspondence.

選択部125は、移動妨害度が第2の閾値を超える候補位置について、移動コストを第1の閾値を超える値に設定する。例えば、選択部125は、移動妨害度が第2の閾値以下の場合は、類似度コストを移動コストとし、第2の閾値を超える場合は、第1の閾値を超える値を移動コストとする。 The selection unit 125 sets the movement cost to a value exceeding the first threshold value for the candidate position where the movement interference degree exceeds the second threshold value. For example, the selection unit 125 uses the similarity cost as the movement cost when the movement interference degree is equal to or less than the second threshold value, and sets the value exceeding the first threshold value as the movement cost when the movement interference degree exceeds the second threshold value.

また、選択部125は、移動妨害度が第2の閾値以下の場合は、移動妨害度を1とし、移動妨害度が第2の閾値を超える場合には、移動妨害度を著しく大きい値としてもよい。そして、選択部125は、移動妨害度と類似度コストとの積を、移動コストとしてもよい。このようにすることで、第1オブジェクト位置に対する候補位置の移動妨害度が第2の閾値を超える場合は、当該第1オブジェクトに対応する候補位置として、当該候補位置が選択されないように制御することができる。 Further, the selection unit 125 sets the movement obstruction degree to 1 when the movement obstruction degree is equal to or less than the second threshold value, and sets the movement obstruction degree to a significantly large value when the movement obstruction degree exceeds the second threshold value. good. Then, the selection unit 125 may use the product of the movement obstruction degree and the similarity cost as the movement cost. By doing so, when the movement obstruction degree of the candidate position with respect to the first object position exceeds the second threshold value, the candidate position is controlled so as not to be selected as the candidate position corresponding to the first object. Can be done.

図12に示す例では、選択部125は、第2の閾値を、移動妨害度DBよりも大きく、移動妨害度DDよりも小さい値に設定する。このようにすることで、選択部125は、図12に示す例において、第1オブジェクト位置PPAに対して、候補位置P2C及び候補位置P2Dが選択されないようにし、第1オブジェクト位置PPAに対して、候補位置P2A及びP2Bのうち、類似度コストが小さい候補位置を対応付けることができる。 In the example shown in FIG. 12, the selection unit 125 sets the second threshold value to a value larger than the movement interference degree DB and smaller than the movement interference degree DD. By doing so, in the example shown in FIG. 12, the selection unit 125 prevents the candidate position P2C and the candidate position P2D from being selected with respect to the first object position PPA, and the selection unit 125 with respect to the first object position PPA. Of the candidate positions P2A and P2B, the candidate positions having the smaller similarity cost can be associated with each other.

動線生成部126は、オブジェクトの第1時刻における位置と、選択部125が選択した当該オブジェクトの候補位置とを関連付けることにより、当該オブジェクトの移動動線を生成する。例えば、動線生成部126は、オブジェクト位置特定部122が特定した動線情報に、第2時刻と、選択部125が選択した候補位置を示す位置情報と関連付けて追加することにより、当該動線情報を更新する。 The flow line generation unit 126 generates a movement flow line of the object by associating the position of the object at the first time with the candidate position of the object selected by the selection unit 125. For example, the flow line generation unit 126 adds the flow line to the flow line information specified by the object position specifying unit 122 in association with the second time and the position information indicating the candidate position selected by the selection unit 125. Update the information.

なお、動線生成部126は、選択部125が選択した候補位置を近似フィルタの観測値として用いてもよい。すなわち、動線生成部126は、第2時刻における予測位置としての第1オブジェクト位置を、選択部125が選択した候補位置に基づいて修正することにより、第2時刻におけるオブジェクトの確定位置としてもよい。図13は、第2時刻に対応する確定位置を特定した例を示す図である。図13では、第1オブジェクト位置PPAと、候補位置P2Aとの関係に基づいて、第2時刻tにおける確定位置PFAが特定され、第1オブジェクト位置PPBと、候補位置P2Bとの関係に基づいて、第2時刻tにおける確定位置PFBが特定されていることが確認できる。このようにすることで、動線生成装置1は、第2時刻tにおけるオブジェクトの位置を精度良く特定することができる。 The flow line generation unit 126 may use the candidate position selected by the selection unit 125 as an observation value of the approximate filter. That is, the flow line generation unit 126 may set the position of the first object as the predicted position in the second time to the fixed position of the object in the second time by modifying the position of the first object based on the candidate position selected by the selection unit 125. .. FIG. 13 is a diagram showing an example in which a fixed position corresponding to the second time is specified. In FIG. 13, the fixed position PFA at the second time t is specified based on the relationship between the first object position PPA and the candidate position P2A, and based on the relationship between the first object position PPB and the candidate position P2B, It can be confirmed that the fixed position PFB at the second time t is specified. By doing so, the flow line generation device 1 can accurately specify the position of the object at the second time t.

[動線生成装置1における処理の流れ]
続いて、動線生成装置1における処理の流れについて説明する。図14は、本実施形態に係る動線生成装置1における処理の流れを示すフローチャートである。
[Process flow in the flow line generator 1]
Subsequently, the flow of processing in the flow line generation device 1 will be described. FIG. 14 is a flowchart showing a processing flow in the flow line generation device 1 according to the present embodiment.

まず、障害物領域特定部121は、所定エリアに存在する障害物の形状に対応する障害物領域と、障害物領域の所定エリアにおける位置とを特定する(S1)。
続いて、オブジェクト位置特定部122は、所定エリアを移動する一以上のオブジェクトの第1時刻以前の位置を特定する(S2)。具体的には、オブジェクト位置特定部122は、第1時刻までの位置情報又は第1時刻以前の時刻までの位置情報を含む一以上の動線情報を特定し、当該動線情報において最新の時刻に関連付けられている位置情報を特定することにより、一以上のオブジェクトの第1時刻以前の位置を特定する。
First, the obstacle area specifying unit 121 identifies an obstacle area corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle area in the predetermined area (S1).
Subsequently, the object position specifying unit 122 specifies the positions of one or more objects moving in the predetermined area before the first time (S2). Specifically, the object position specifying unit 122 specifies one or more flow line information including the position information up to the first time or the position information up to the time before the first time, and the latest time in the flow line information. By specifying the position information associated with, the position of one or more objects before the first time is specified.

続いて、検出位置特定部123は、第1時刻よりも後の時刻である第2時刻におけるオブジェクトの一以上の検出位置の候補である候補位置を特定する(S3)。
続いて、移動妨害度特定部124は、一以上の第1オブジェクト位置の、一以上の候補位置のそれぞれに対する移動妨害度を特定する(S4)。
Subsequently, the detection position specifying unit 123 identifies a candidate position that is a candidate for one or more detection positions of the object at the second time, which is a time after the first time (S3).
Subsequently, the movement obstruction degree specifying unit 124 specifies the movement obstruction degree for each of the one or more candidate positions of one or more first object positions (S4).

続いて、選択部125は、一以上のオブジェクトの、一以上の候補位置のそれぞれに対応するオブジェクトとの類似度を特定する(S5)。
続いて、選択部125は、S4において特定された移動妨害度と、S5において特定された類似度とに基づいて、一以上のオブジェクトの、一以上の候補位置のそれぞれに対応する移動コストを特定する(S6)。
Subsequently, the selection unit 125 specifies the degree of similarity of one or more objects with the objects corresponding to each of the one or more candidate positions (S5).
Subsequently, the selection unit 125 identifies the movement cost corresponding to each of the one or more candidate positions of one or more objects based on the movement obstruction degree specified in S4 and the similarity specified in S5. (S6).

続いて、選択部125は、S6において特定された、一以上のオブジェクトの、一以上の候補位置のそれぞれに対応する移動コストに基づいて、一以上のオブジェクトと、一以上の候補位置との対応関係を特定する(S7)。 Subsequently, the selection unit 125 corresponds to one or more objects and one or more candidate positions based on the movement cost corresponding to each of the one or more candidate positions of one or more objects specified in S6. Identify the relationship (S7).

続いて、動線生成部126は、S2において特定した一以上の動線情報のそれぞれに、第2時刻と、当該動線情報が示すオブジェクトに対して特定された候補位置が示す位置情報とを関連付けて格納することにより、当該動線情報を更新する(S8)。 Subsequently, the flow line generation unit 126 sets the second time and the position information indicated by the candidate position specified for the object indicated by the flow line information to each of the one or more flow line information specified in S2. The flow line information is updated by associating and storing it (S8).

[本実施形態における効果]
以上説明したように、本実施形態に係る動線生成装置1は、所定エリアに対応する障害物領域の所定エリアにおける位置を特定し、所定エリアを移動するオブジェクトの第1時刻以前の位置を特定するとともに、第1時刻よりも後の時刻である第2時刻における当該オブジェクトの一以上の候補位置を特定する。動線生成装置1は、特定した第1時刻以前のオブジェクトの位置と、特定した一以上の候補位置と、特定した障害物領域の位置との位置関係に基づいて、オブジェクトが一以上の候補位置のそれぞれに移動するときの移動妨害度を特定する。そして、動線生成装置1は、当該オブジェクトの第1時刻以前の位置から一以上の候補位置のそれぞれへの移動コストを移動妨害度に基づいて特定し、移動コストが相対的に小さい候補位置を、当該オブジェクトの第2時刻における位置に選択する。このようにすることで、動線生成装置1は、オブジェクトの対応関係を効率的に特定することができる。
[Effects in this embodiment]
As described above, the flow line generation device 1 according to the present embodiment specifies the position of the obstacle area corresponding to the predetermined area in the predetermined area, and specifies the position of the object moving in the predetermined area before the first time. At the same time, one or more candidate positions of the object at the second time, which is a time after the first time, are specified. In the flow line generator 1, the object is one or more candidate positions based on the positional relationship between the specified position of the object before the first time, the specified one or more candidate positions, and the specified position of the obstacle area. Specify the degree of obstruction when moving to each of the above. Then, the flow line generation device 1 specifies the movement cost of the object from the position before the first time to each of the one or more candidate positions based on the degree of movement obstruction, and selects the candidate position where the movement cost is relatively small. , Select the position of the object at the second time. By doing so, the flow line generation device 1 can efficiently specify the correspondence between the objects.

以上、本発明を実施形態を用いて説明したが、本発明の技術的範囲は上記実施形態に記載の範囲には限定されない。上記実施形態に、多様な変更又は改良を加えることが可能であることが当業者に明らかである。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. It will be apparent to those skilled in the art that various changes or improvements can be made to the above embodiments.

また、特に、装置の分散・統合の具体的な実施形態は以上に図示するものに限られず、その全部又は一部について、種々の付加等に応じて、又は、機能負荷に応じて、任意の単位で機能的又は物理的に分散・統合して構成することができる。 Further, in particular, the specific embodiment of the distribution / integration of the apparatus is not limited to those shown above, and all or a part thereof may be arbitrary according to various additions or the like, or according to the functional load. It can be functionally or physically distributed / integrated in units.

1・・・動線生成装置、11・・・記憶部、12・・・制御部、121・・・障害物領域特定部、122・・オブジェクト位置特定部、123・・・検出位置特定部、124・・・移動妨害度特定部、125・・・選択部、126・・・動線生成部
1 ... Flow line generator, 11 ... Storage unit, 12 ... Control unit, 121 ... Obstacle area identification unit, 122 ... Object position identification unit, 123 ... Detection position identification unit, 124 ... Movement obstruction degree specifying part, 125 ... Selection part, 126 ... Flow line generation part

Claims (21)

所定エリアに存在する障害物の形状に対応する障害物領域と、前記障害物領域の前記所定エリアにおける位置とを特定する障害物領域特定部と、
前記所定エリアを移動する複数のオブジェクトの第1時刻以前の位置を特定するオブジェクト位置特定部と、
前記第1時刻よりも後の時刻である第2時刻における前記複数のオブジェクトそれぞれに対応する複数の検出位置の候補である複数の候補位置を特定する検出位置特定部と、
特定した前記第1時刻以前の前記複数のオブジェクトの位置のそれぞれに対し、当該オブジェクトの位置と、特定した前記複数の候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、当該オブジェクトが、前記複数の候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定することにより、前記複数のオブジェクトのそれぞれが前記複数の候補位置のそれぞれに移動するときの前記移動妨害度を特定する移動妨害度特定部と、
前記オブジェクト位置特定部が特定した前記第1時刻以前の前記複数のオブジェクトそれぞれの位置から、前記複数の候補位置のそれぞれに移動したときの前記移動妨害度に基づく移動コストを示すコスト値を要素とするコスト行列を生成し、生成した前記コスト行列にハンガリアン法を適用することにより、前記第1時刻以前の前記複数のオブジェクトそれぞれの位置から前記複数の候補位置のいずれかに移動した場合の前記コスト値の総和が相対的に小さい、前記オブジェクトと前記候補位置との複数の組み合わせを前記候補位置が重複しないように特定し、特定した前記組み合わせが示す前記複数のオブジェクトそれぞれに対応する前記候補位置を、前記第2時刻における前記複数のオブジェクトそれぞれの位置に選択する選択部と、
を備える位置選択装置。
An obstacle area corresponding to the shape of an obstacle existing in a predetermined area, an obstacle area specifying portion for specifying a position of the obstacle area in the predetermined area, and an obstacle area specifying portion.
An object position specifying unit that specifies the positions of a plurality of objects moving in the predetermined area before the first time, and
A detection position specifying unit that identifies a plurality of candidate positions that are candidates for a plurality of detection positions corresponding to each of the plurality of objects at the second time, which is a time after the first time.
For each of the positions of the plurality of objects before the first time specified, based on the positional relationship between the position of the object, the specified plurality of candidate positions, and the position of the specified obstacle area. The movement when each of the plurality of objects moves to each of the plurality of candidate positions by specifying the degree of movement obstruction indicating the difficulty when the object moves to each of the plurality of candidate positions. The movement obstruction degree specification part that specifies the obstruction degree, and the movement obstruction degree identification part,
The element is a cost value indicating the movement cost based on the movement obstruction degree when the object position specifying unit moves from the position of each of the plurality of objects before the first time to each of the plurality of candidate positions. By generating a cost matrix to be generated and applying the Hungarian method to the generated cost matrix, the cost when the object is moved from the position of each of the plurality of objects before the first time to one of the plurality of candidate positions. A plurality of combinations of the object and the candidate position having a relatively small sum of values are specified so that the candidate positions do not overlap, and the candidate positions corresponding to each of the plurality of objects indicated by the specified combination are specified. , A selection unit selected at the position of each of the plurality of objects at the second time,
A position selection device comprising.
前記オブジェクト位置特定部は、前記オブジェクトの前記第1時刻以前の位置に基づいて、前記オブジェクトの前記第2時刻における位置である第1オブジェクト位置を予測し、
前記移動妨害度特定部は、前記オブジェクトに対して予測した前記第1オブジェクト位置と、前記オブジェクトに対して特定した前記複数の候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、前記オブジェクトに対応する前記移動妨害度を特定する、
請求項1に記載の位置選択装置。
The object position specifying unit predicts the position of the first object, which is the position of the object at the second time, based on the position of the object before the first time.
The movement obstruction degree specifying unit is based on the positional relationship between the first object position predicted for the object, the plurality of candidate positions specified for the object, and the position of the specified obstacle region. To identify the movement obstruction degree corresponding to the object,
The position selection device according to claim 1.
前記オブジェクト位置特定部は、前記オブジェクトの第1時刻における位置を第1オブジェクト位置として特定し、
前記移動妨害度特定部は、前記オブジェクトに対して特定した前記第1オブジェクト位置と、特定した前記複数の候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、前記オブジェクトに対応する前記移動妨害度を特定する、
請求項1に記載の位置選択装置。
The object position specifying unit specifies the position of the object at the first time as the first object position.
The movement obstruction degree specifying unit attaches to the object based on the positional relationship between the position of the first object specified for the object, the specified plurality of candidate positions, and the position of the specified obstacle area. Identify the corresponding movement obstruction,
The position selection device according to claim 1.
前記移動妨害度特定部は、前記オブジェクトに対応する前記第1オブジェクト位置と、特定した前記複数の候補位置のそれぞれとを結ぶ線分を特定し、当該線分と特定した前記障害物領域との位置関係に基づいて、前記オブジェクトに対して、特定した前記複数の候補位置のそれぞれに対応する前記移動妨害度を特定する、
請求項2又は3に記載の位置選択装置。
The movement obstruction degree specifying unit specifies a line segment connecting the first object position corresponding to the object and each of the specified plurality of candidate positions, and the line segment and the specified obstacle area. Based on the positional relationship, the movement obstruction degree corresponding to each of the specified plurality of candidate positions is specified for the object.
The position selection device according to claim 2 or 3.
前記移動妨害度特定部は、特定した複数の前記線分のそれぞれについて、当該線分と特定した前記障害物領域との2つの交点を特定し、特定した2つの交点と、当該障害物領域との関係に基づいて、前記オブジェクトに対応する前記移動妨害度を特定する、
請求項4に記載の位置選択装置。
The movement obstruction degree specifying unit identifies two intersections of the line segment and the specified obstacle area for each of the specified plurality of line segments, and the specified two intersections and the obstacle area. To identify the movement obstruction degree corresponding to the object, based on the relationship of
The position selection device according to claim 4.
前記移動妨害度特定部は、特定した2つの交点により分断される前記障害物領域の2つの輪郭線のうち、相対的に短い輪郭線の長さに基づいて前記移動妨害度を特定する、
請求項5に記載の位置選択装置。
The movement obstruction degree specifying unit specifies the movement obstruction degree based on the length of a relatively short contour line among the two contour lines of the obstacle region divided by the two specified intersections.
The position selection device according to claim 5.
前記移動妨害度特定部は、特定した複数の前記線分のそれぞれについて、当該線分と特定した前記障害物領域との交点が3つ以上存在する場合に、3つの交点の中から取り得る2つの交点のうち、相対的に距離が長い2つの交点を特定する、
請求項5又は6に記載の位置選択装置。
The movement obstruction degree specifying unit can be taken from among the three intersections when there are three or more intersections between the line segment and the specified obstacle region for each of the specified plurality of the line segments. Identify two intersections with relatively long distances,
The position selection device according to claim 5 or 6.
前記移動妨害度特定部は、特定した2つの交点を結ぶ線分の長さに対する、特定した2つの交点により分断される前記障害物領域の輪郭線の長さの比率に基づいて前記移動妨害度を特定する、
請求項5から7のいずれか1項に記載の位置選択装置。
The movement obstruction degree specifying unit is based on the ratio of the length of the contour line of the obstacle region divided by the two specified intersections to the length of the line segment connecting the two specified intersections. To identify,
The position selection device according to any one of claims 5 to 7.
前記移動妨害度特定部は、特定した2つの交点のそれぞれと、特定した前記障害物領域の基準点と結ぶ二本の線分のなす角度を特定し、当該角度に基づいて前記移動妨害度を特定する、
請求項5から8のいずれか1項に記載の位置選択装置。
The movement obstruction degree specifying unit specifies the angle formed by each of the two specified intersections and the two line segments connecting the specified obstacle region reference point, and determines the movement obstruction degree based on the angle. Identify,
The position selection device according to any one of claims 5 to 8.
前記移動妨害度特定部は、特定した前記障害物領域を構成する辺のうち、特定した2つの交点のいずれかが存在する2辺を特定し、当該2辺の間に存在する2つの辺群のうち、相対的に辺の数が少ない辺群に含まれる辺の数に基づいて前記移動妨害度を特定する、
請求項5から9のいずれか1項に記載の位置選択装置。
The movement obstruction degree specifying unit identifies two sides in which any of the two specified intersections exists among the sides constituting the specified obstacle area, and two side groups existing between the two sides. Of these, the degree of movement obstruction is specified based on the number of sides included in the side group having a relatively small number of sides.
The position selection device according to any one of claims 5 to 9.
前記移動妨害度特定部は、特定した線分との交点が存在する前記障害物領域が複数存在する場合に、当該複数の障害物領域を1つの障害物領域に近似する、
請求項5から10のいずれか1項に記載の位置選択装置。
When there are a plurality of obstacle regions having intersections with the specified line segments, the movement obstruction degree specifying unit approximates the plurality of obstacle regions to one obstacle region.
The position selection device according to any one of claims 5 to 10.
前記オブジェクト位置特定部は、前記第1オブジェクト位置が前記障害物領域内に存在する場合に、当該第1オブジェクト位置を前記障害物領域外の位置に修正する、
請求項2から11のいずれか1項に記載の位置選択装置。
When the first object position exists in the obstacle area, the object position specifying unit corrects the first object position to a position outside the obstacle area.
The position selection device according to any one of claims 2 to 11.
前記障害物領域特定部は、前記障害物の形状が非凸形状の場合に、当該障害物に対応する障害物領域を、凸形状の障害物領域に近似する、
請求項1から12のいずれか1項に記載の位置選択装置。
When the shape of the obstacle is non-convex, the obstacle region specifying portion approximates the obstacle region corresponding to the obstacle to the convex obstacle region.
The position selection device according to any one of claims 1 to 12.
前記障害物領域特定部は、前記障害物領域を複数特定した場合において、特定した複数の障害物領域が隣接又は重複している場合に、当該複数の障害物領域を、当該複数の障害物領域の和領域に近似する、
請求項1から13のいずれか1項に記載の位置選択装置。
When a plurality of the specified obstacle areas are specified and the specified plurality of obstacle areas are adjacent to each other or overlapped with each other, the obstacle area specifying unit can use the plurality of obstacle areas as the plurality of obstacle areas. Approximate to the sum region of
The position selection device according to any one of claims 1 to 13.
前記検出位置特定部は、特定した前記候補位置が前記障害物領域内に存在する場合に、当該候補位置を前記障害物領域外の位置に修正する、
請求項1から14のいずれか1項に記載の位置選択装置。
When the specified candidate position exists in the obstacle area, the detection position specifying unit corrects the candidate position to a position outside the obstacle area.
The position selection device according to any one of claims 1 to 14.
前記選択部は、特定した前記第1時刻以前の位置に対応するオブジェクトと、特定した前記複数の候補位置のそれぞれに対応するオブジェクトとの所定の対応関係における類似度を特定し、当該類似度と、特定した前記移動妨害度とに基づいて、前記第1時刻以前の位置から前記複数の候補位置のそれぞれへの移動コストを特定する、
請求項1から15のいずれか1項に記載の位置選択装置。
The selection unit specifies the degree of similarity in a predetermined correspondence between the specified object corresponding to the position before the first time and the object corresponding to each of the specified plurality of candidate positions, and the degree of similarity and the object. Based on the identified movement obstruction degree, the movement cost from the position before the first time to each of the plurality of candidate positions is specified.
The position selection device according to any one of claims 1 to 15.
前記選択部は、相対的に小さい前記移動コストが第1の閾値を超える場合に、前記候補位置を選択しないように制御する、
請求項1から16のいずれか1項に記載の位置選択装置。
The selection unit controls so that the candidate position is not selected when the relatively small movement cost exceeds the first threshold value.
The position selection device according to any one of claims 1 to 16.
前記選択部は、特定した前記移動妨害度が第2の閾値を超える前記候補位置について、前記移動コストを前記第1の閾値を超える値に設定する、
請求項17に記載の位置選択装置。
The selection unit sets the movement cost to a value exceeding the first threshold value for the candidate position whose specified movement interference degree exceeds the second threshold value.
The position selection device according to claim 17.
前記オブジェクトの前記第1時刻における位置と、前記選択部が選択した前記オブジェクトの前記候補位置とを関連付けることにより、前記オブジェクトの移動動線を生成する動線生成部をさらに備える、
請求項1から18のいずれか1項に記載の位置選択装置。
A flow line generation unit that generates a movement flow line of the object by associating the position of the object at the first time with the candidate position of the object selected by the selection unit is further provided.
The position selection device according to any one of claims 1 to 18.
コンピュータが実行する、
所定エリアに存在する障害物の形状に対応する障害物領域と、前記障害物領域の前記所定エリアにおける位置とを特定するステップと、
前記所定エリアを移動する複数のオブジェクトの第1時刻以前の位置を特定するステップと、
前記第1時刻よりも後の時刻である第2時刻における前記複数のオブジェクトそれぞれに対応する複数の検出位置の候補である複数の候補位置を特定するステップと、
特定した前記第1時刻以前の前記複数のオブジェクトの位置のそれぞれに対し、当該オブジェクトの位置と、特定した前記複数の候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、当該オブジェクトが、前記複数の候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定することにより、前記複数のオブジェクトのそれぞれが前記複数の候補位置のそれぞれに移動するときの前記移動妨害度を特定するステップと、
特定された前記第1時刻以前の前記複数のオブジェクトそれぞれの位置から、前記複数の候補位置のそれぞれに移動したときの前記移動妨害度に基づく移動コストを示すコスト値を要素とするコスト行列を生成するステップと、
生成された前記コスト行列にハンガリアン法を適用することにより、前記第1時刻以前の前記複数のオブジェクトそれぞれの位置から前記複数の候補位置のいずれかに移動した場合の前記コスト値の総和が相対的に小さい、前記オブジェクトと前記候補位置との複数の組み合わせを前記候補位置が重複しないように特定し、特定した前記組み合わせが示す前記複数のオブジェクトそれぞれに対応する前記候補位置を、前記第2時刻における前記複数のオブジェクトそれぞれの位置に選択するステップと、
を備える位置選択方法。
Computer runs,
A step of specifying an obstacle area corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle area in the predetermined area.
A step of identifying the positions of a plurality of objects moving in the predetermined area before the first time, and
A step of specifying a plurality of candidate positions that are candidates for a plurality of detection positions corresponding to each of the plurality of objects at the second time, which is a time after the first time,
For each of the positions of the plurality of objects before the first time specified, based on the positional relationship between the position of the object, the specified plurality of candidate positions, and the position of the specified obstacle area. The movement when each of the plurality of objects moves to each of the plurality of candidate positions by specifying the degree of movement obstruction indicating the difficulty when the object moves to each of the plurality of candidate positions. Steps to identify the degree of interference and
From the positions of the plurality of objects before the first time specified, a cost matrix having a cost value indicating the movement cost based on the movement obstruction degree when moving to each of the plurality of candidate positions is generated as an element. Steps to do and
By applying the Hungarian method to the generated cost matrix, the sum of the cost values when moving from the position of each of the plurality of objects before the first time to any of the plurality of candidate positions is relative. A plurality of small combinations of the object and the candidate position are specified so that the candidate positions do not overlap, and the candidate positions corresponding to each of the plurality of objects indicated by the specified combination are set at the second time. Steps to select at each position of the multiple objects,
Position selection method.
コンピュータを、
所定エリアに存在する障害物の形状に対応する障害物領域と、前記障害物領域の前記所定エリアにおける位置とを特定する障害物領域特定部、
前記所定エリアを移動する複数のオブジェクトの第1時刻以前の位置を特定するオブジェクト位置特定部、
前記第1時刻よりも後の時刻である第2時刻における前記複数のオブジェクトそれぞれに対応する複数の検出位置の候補である複数の候補位置を特定する検出位置特定部、
特定した前記第1時刻以前の前記複数のオブジェクトの位置のそれぞれに対し、当該オブジェクトの位置と、特定した前記複数の候補位置と、特定した前記障害物領域の位置との位置関係に基づいて、当該オブジェクトが、前記複数の候補位置のそれぞれに移動するときの困難さを示す移動妨害度を特定することにより、前記複数のオブジェクトのそれぞれが前記複数の候補位置のそれぞれに移動するときの前記移動妨害度を特定する移動妨害度特定部、及び、
前記オブジェクト位置特定部が特定した前記第1時刻以前の前記複数のオブジェクトそれぞれの位置から、前記複数の候補位置のそれぞれに移動したときの前記移動妨害度に基づく移動コストを示すコスト値を要素とするコスト行列を生成し、生成した前記コスト行列にハンガリアン法を適用することにより、前記第1時刻以前の前記複数のオブジェクトそれぞれの位置から前記複数の候補位置のいずれかに移動した場合の前記コスト値の総和が相対的に小さい、前記オブジェクトと前記候補位置との複数の組み合わせを前記候補位置が重複しないように特定し、特定した前記組み合わせが示す前記複数のオブジェクトそれぞれに対応する前記候補位置を、前記第2時刻における前記複数のオブジェクトそれぞれの位置に選択する選択部、
として機能させる位置選択プログラム。
Computer,
An obstacle area specifying portion that specifies an obstacle area corresponding to the shape of an obstacle existing in a predetermined area and a position of the obstacle area in the predetermined area.
An object position specifying unit that specifies the positions of a plurality of objects moving in the predetermined area before the first time.
A detection position specifying unit that identifies a plurality of candidate positions that are candidates for a plurality of detection positions corresponding to each of the plurality of objects at the second time, which is a time after the first time.
For each of the positions of the plurality of objects before the first time specified, based on the positional relationship between the position of the object, the specified plurality of candidate positions, and the position of the specified obstacle area. The movement when each of the plurality of objects moves to each of the plurality of candidate positions by specifying the degree of movement obstruction indicating the difficulty when the object moves to each of the plurality of candidate positions. Movement obstruction degree specification part that specifies the obstruction degree, and
The element is a cost value indicating the movement cost based on the movement obstruction degree when the object position specifying unit moves from the position of each of the plurality of objects before the first time to each of the plurality of candidate positions. By generating a cost matrix to be generated and applying the Hungarian method to the generated cost matrix, the cost when the object is moved from the position of each of the plurality of objects before the first time to one of the plurality of candidate positions. A plurality of combinations of the object and the candidate position having a relatively small sum of values are specified so that the candidate positions do not overlap, and the candidate positions corresponding to each of the plurality of objects indicated by the specified combination are specified. , A selection unit selected at the position of each of the plurality of objects at the second time,
A position selection program that functions as.
JP2018142823A 2018-07-30 2018-07-30 Position selection device, position selection method, and position selection program Active JP7031991B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018142823A JP7031991B2 (en) 2018-07-30 2018-07-30 Position selection device, position selection method, and position selection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018142823A JP7031991B2 (en) 2018-07-30 2018-07-30 Position selection device, position selection method, and position selection program

Publications (2)

Publication Number Publication Date
JP2020021171A JP2020021171A (en) 2020-02-06
JP7031991B2 true JP7031991B2 (en) 2022-03-08

Family

ID=69589834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018142823A Active JP7031991B2 (en) 2018-07-30 2018-07-30 Position selection device, position selection method, and position selection program

Country Status (1)

Country Link
JP (1) JP7031991B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009019920A (en) 2007-07-10 2009-01-29 Toyota Central R&D Labs Inc Route search device, traffic simulation apparatus, pedestrian behavior prediction system, and program
JP5687035B2 (en) 2010-11-18 2015-03-18 セコム株式会社 Person tracking device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009019920A (en) 2007-07-10 2009-01-29 Toyota Central R&D Labs Inc Route search device, traffic simulation apparatus, pedestrian behavior prediction system, and program
JP5687035B2 (en) 2010-11-18 2015-03-18 セコム株式会社 Person tracking device

Also Published As

Publication number Publication date
JP2020021171A (en) 2020-02-06

Similar Documents

Publication Publication Date Title
KR101708659B1 (en) Apparatus for recognizing location mobile robot using search based correlative matching and method thereof
Saeedi et al. Vision-based 3-D trajectory tracking for unknown environments
KR101776621B1 (en) Apparatus for recognizing location mobile robot using edge based refinement and method thereof
JP5950122B2 (en) Calibration apparatus, calibration method, and calibration program
KR101784183B1 (en) APPARATUS FOR RECOGNIZING LOCATION MOBILE ROBOT USING KEY POINT BASED ON ADoG AND METHOD THEREOF
US11688081B2 (en) Method of performing simultaneous localization and mapping with respect to a salient object in an image
US11703334B2 (en) Mobile robots to generate reference maps for localization
US11554495B2 (en) Method of localization using multi sensor and robot implementing same
JP7314411B2 (en) Obstacle information sensing method and device for mobile robot
JP5251987B2 (en) Person determination device, method and program
US11960297B2 (en) Robot generating map based on multi sensors and artificial intelligence and moving based on map
JP2004171165A (en) Moving apparatus
US11500391B2 (en) Method for positioning on basis of vision information and robot implementing same
US20200311970A1 (en) Mobile robot control method
US11562524B2 (en) Mobile robots to generate occupancy maps
KR102369062B1 (en) Moving robot and method for control of the moving robot
Ferguson et al. A 2d-3d object detection system for updating building information models with mobile robots
JP7031991B2 (en) Position selection device, position selection method, and position selection program
Sun et al. Real-time and fast RGB-D based people detection and tracking for service robots
JP6686411B2 (en) Map making method
Macias-Garcia et al. Cnn based perception system for collision avoidance in mobile robots using stereo vision
CN113405557A (en) Path planning method and related device, electronic equipment and storage medium
JP6991958B2 (en) Object tracking device, object tracking method, and object tracking program
Vasconcelos et al. Socially acceptable robot navigation in the presence of humans
Kaneko et al. Fast obstacle detection for monocular autonomous mobile robots

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210622

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220207

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220222

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220222

R150 Certificate of patent or registration of utility model

Ref document number: 7031991

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150