JP6568772B2 - Image processing apparatus, image processing system, operation method of image processing apparatus, and control program - Google Patents
Image processing apparatus, image processing system, operation method of image processing apparatus, and control program Download PDFInfo
- Publication number
- JP6568772B2 JP6568772B2 JP2015219138A JP2015219138A JP6568772B2 JP 6568772 B2 JP6568772 B2 JP 6568772B2 JP 2015219138 A JP2015219138 A JP 2015219138A JP 2015219138 A JP2015219138 A JP 2015219138A JP 6568772 B2 JP6568772 B2 JP 6568772B2
- Authority
- JP
- Japan
- Prior art keywords
- ellipse
- graphic
- image
- image processing
- processing apparatus
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 389
- 230000008569 process Effects 0.000 claims description 363
- 230000010354 integration Effects 0.000 description 145
- 238000000926 separation method Methods 0.000 description 41
- 230000008034 disappearance Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 21
- 240000004050 Pentaglottis sempervirens Species 0.000 description 18
- 235000004522 Pentaglottis sempervirens Nutrition 0.000 description 18
- 230000004048 modification Effects 0.000 description 18
- 238000012986 modification Methods 0.000 description 18
- 239000013598 vector Substances 0.000 description 17
- 238000000605 extraction Methods 0.000 description 8
- 238000002372 labelling Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 230000007423 decrease Effects 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000004140 cleaning Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 241000251468 Actinopterygii Species 0.000 description 1
- 241001494479 Pecora Species 0.000 description 1
- 241000283080 Proboscidea <mammal> Species 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 238000009360 aquaculture Methods 0.000 description 1
- 244000144974 aquaculture Species 0.000 description 1
- 230000008602 contraction Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000012447 hatching Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Description
本発明は、画像処理に関する。 The present invention relates to image processing.
特許文献1〜6に記載されているように、従来から様々な画像処理装置が提案されている。
As described in
さて、画像処理装置では、その処理負荷の低減が望まれている。 In the image processing apparatus, it is desired to reduce the processing load.
そこで、本発明は上述の点に鑑みて成されたものであり、画像処理装置の処理負荷を低減することが可能な技術を提供することを目的とする。 Therefore, the present invention has been made in view of the above points, and an object thereof is to provide a technique capable of reducing the processing load of an image processing apparatus.
画像処理装置の一態様は、互いに異なる時刻での対象物が写る複数枚の入力画像のそれぞれについて、当該入力画像に写る当該対象物に対して図形を当てはめる当てはめ処理を行う第1処理部と、前記当てはめ処理の結果に基づいて、前記入力画像上での前記図形の位置を追跡することによって、前記入力画像での前記対象物の位置を追跡する追跡処理を行う第2処理部とを備え、前記第1処理部は、前記入力画像に写る前記対象物に対して図形を当てはめる第3処理部と、前記第3処理部において、一つの前記対象物に対して複数の図形が当てはめられた場合には、当該複数の図形を統合して得られる一つの新たな図形を、当該複数の図形の代わりに採用する第4処理部とを有する。 An aspect of the image processing apparatus includes: a first processing unit that performs a fitting process for applying a figure to each of the plurality of input images in which the objects are captured at different times; A second processing unit that performs a tracking process for tracking the position of the object in the input image by tracking the position of the graphic on the input image based on the result of the fitting process ; The first processing unit applies a figure to the object shown in the input image, and the third processing unit applies a plurality of figures to one object. Includes a fourth processing unit that employs one new figure obtained by integrating the plurality of figures in place of the plurality of figures .
また、画像処理装置の一態様では、前記追跡処理の結果に基づいて、前記入力画像に写る前記対象物の数を求める第5処理部がさらに設けられている。 In one aspect of the image processing apparatus, a fifth processing unit is further provided for determining the number of the objects appearing in the input image based on the result of the tracking process.
また、画像処理装置の一態様では、前記第2処理部は、前記図形に関する図形情報を生成し、前記第2処理部は、前記当てはめ処理の結果に基づいて、前記図形情報を更新する更新処理を行う。 In one aspect of the image processing apparatus, the second processing unit generates graphic information related to the graphic, and the second processing unit updates the graphic information based on a result of the fitting process. I do.
また、画像処理装置の一態様では、前記図形情報は、前記図形の状態を示す状態情報と、前記図形を特定するための図形特定情報とを含む。 In one aspect of the image processing apparatus, the graphic information includes state information indicating a state of the graphic and graphic specifying information for specifying the graphic.
また、画像処理装置の一態様では、前記第2処理部は、第1時刻での前記対象物が写る第1入力画像についての前記当てはめ処理において得られた各第1図形について、当該第1時刻よりも後の第2時刻での前記対象物が写る第2入力画像についての前記当てはめ処理において得られた、当該第1図形に対応する対応第2図形を特定する対応特定処理を行い、前記第2処理部は、前記対応特定処理の結果に基づいて前記更新処理を行う。 Further, in one aspect of the image processing apparatus, the second processing unit performs the first time for each first graphic obtained in the fitting process for the first input image in which the object is captured at the first time. A correspondence specifying process for specifying a corresponding second graphic corresponding to the first graphic obtained in the fitting process for the second input image in which the object is captured at a second time later than the second time; The two processing units perform the update process based on the result of the correspondence specifying process.
また、画像処理装置の一態様では、前記第2処理部は、前記第1図形に対応する前記対応第2図形を特定する際には、前記第2入力画像についての前記当てはめ処理において得られた第2図形のうち、前記第1図形に最も位置が近い第2図形であって、前記第1図形との第1距離が第1しきい値以下あるいは未満の第2図形である近傍第2図形を、前記対応第2図形として特定する。 In one aspect of the image processing device, the second processing unit is obtained in the fitting process for the second input image when specifying the corresponding second graphic corresponding to the first graphic. Among the second graphics, the second graphics that are closest to the first graphics, and are second graphics whose first distance from the first graphics is equal to or less than a first threshold value. Is specified as the corresponding second graphic.
また、画像処理装置の一態様では、前記第2処理部は、前記対応特定処理において、前記第1及び第2入力画像についての前記当てはめ処理の結果に基づいて、前記第1入力画像についての前記当てはめ処理において得られた複数の第1図形が当てはめられた複数の対象物に対して、前記第2入力画像についての前記当てはめ処理において一つの第2図形が当てはめられたか否かを判定する。 Further, in one aspect of the image processing device, the second processing unit is configured to determine the first input image based on a result of the fitting process for the first and second input images in the correspondence specifying process. It is determined whether or not one second graphic is applied in the fitting process for the second input image with respect to a plurality of objects to which the plurality of first graphics obtained in the fitting process is applied.
また、画像処理装置の一態様では、前記第2処理部は、前記第1図形に対応する前記対応第2図形を特定する際には、前記第2入力画像についての前記当てはめ処理において得られた第2図形のうち、前記第1図形に最も位置が近い第2図形であって、前記第1図形との第1距離が第1しきい値以下あるいは未満の第2図形である近傍第2図形を、前記対応第2図形として特定し、前記第2処理部は、前記近傍第2図形が前記対応第2図形として特定されなかった前記第1図形である未特定第1図形が存在する場合には、当該未特定第1図形との第2距離が第2しきい値以下あるいは未満である前記対応第2図形が存在するとき、当該対応第2図形に対応する前記第1図形が当てはめられた前記対象物だけではなく、当該未特定第1図形が当てはめられた前記対象物に対しても、当該対応第2図形が当てはめられたと判定する。 In one aspect of the image processing device, the second processing unit is obtained in the fitting process for the second input image when specifying the corresponding second graphic corresponding to the first graphic. Among the second graphics, the second graphics that are closest to the first graphics, and are second graphics whose first distance from the first graphics is equal to or less than a first threshold value. Is specified as the corresponding second graphic, and the second processing unit determines that there is an unspecified first graphic that is the first graphic in which the neighboring second graphic is not specified as the corresponding second graphic. When the second distance to the unspecified first graphic is less than or less than the second threshold value, the first graphic corresponding to the corresponding second graphic is applied. Not only the object but also the unspecified first figure Even for the object to be fitted, it is determined that the corresponding second figure is fitted.
また、画像処理装置の一態様では、前記第2処理部は、前記第1図形に対応する前記対応第2図形を特定する際には、前記第2入力画像についての前記当てはめ処理において得られた第2図形のうち、前記第1図形に最も位置が近い第2図形であって、前記第1図形との第1距離が第1しきい値以下あるいは未満の第2図形である近傍第2図形を、前記対応第2図形として特定し、前記第2処理部は、前記近傍第2図形が前記対応第2図形として特定されなかった前記第1図形である未特定第1図形が存在する場合には、当該未特定第1図形の少なくとも一部の領域を内包する前記対応第2図形が存在するとき、当該対応第2図形に対応する前記第1図形が当てはめられた前記対象物だけではなく、当該未特定第1図形が当てはめられた前記対象物に対しても、当該対応第2図形が当てはめられたと判定する。 In one aspect of the image processing device, the second processing unit is obtained in the fitting process for the second input image when specifying the corresponding second graphic corresponding to the first graphic. Among the second graphics, the second graphics that are closest to the first graphics, and are second graphics whose first distance from the first graphics is equal to or less than a first threshold value. Is specified as the corresponding second graphic, and the second processing unit determines that there is an unspecified first graphic that is the first graphic in which the neighboring second graphic is not specified as the corresponding second graphic. Is not only the object to which the first graphic corresponding to the corresponding second graphic is applied, when there is the corresponding second graphic including at least a part of the region of the unspecified first graphic, The above-mentioned unidentified first figure is applied Even for elephants it was determined that the corresponding second figure is fitted.
また、画像処理装置の一態様では、前記第2処理部は、前記近傍第2図形が前記対応第2図形として特定されなかった前記第1図形である未特定第1図形が存在する場合には、当該未特定第1図形との第2距離が第2しきい値以下あるいは未満であって、当該未特定第1図形の少なくとも一部の領域を内包する前記対応第2図形が存在するとき、当該対応第2図形に対応する前記第1図形が当てはめられた前記対象物だけではなく、当該未特定第1図形が当てはめられた前記対象物に対しても、当該対応第2図形が当てはめられたと判定する。 In one aspect of the image processing apparatus, the second processing unit may be configured to include an unspecified first graphic that is the first graphic in which the neighboring second graphic is not specified as the corresponding second graphic. When the second distance to the unspecified first graphic is less than or less than a second threshold value and there is the corresponding second graphic including at least a part of the region of the unspecified first graphic, The corresponding second graphic is applied not only to the object to which the first graphic corresponding to the corresponding second graphic is applied, but also to the object to which the unspecified first graphic is applied. judge.
また、画像処理装置の一態様では、前記入力画像は、前記対象物を撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、前記第2処理部は、前記第1図形の位置が、前記第1入力画像における、前記カメラの位置に対応する対応位置から離れるほど、当該第1図形に対応する前記対応第2図形を特定する際に使用される前記第1しきい値を小さく設定する。 In one aspect of the image processing device, the input image is an image obtained by image processing of a captured image captured by a camera that captures the object, and the second processing unit includes: As the position of the first graphic moves away from the corresponding position corresponding to the position of the camera in the first input image, the first graphic used for identifying the corresponding second graphic corresponding to the first graphic is used. 1 Set a small threshold value.
また、画像処理装置の一態様では、前記第2処理部は、前記未特定第1図形の位置が、前記第1入力画像上において、前記カメラの位置に対応する対応位置から離れるほど、前記第2しきい値を小さく設定する。 Further, in one aspect of the image processing device, the second processing unit causes the first processing unit to move away from a corresponding position corresponding to the position of the camera on the first input image. 2 Set the threshold value small.
また、画像処理装置の一態様では、前記第2処理部は、前記対応特定処理において、前記第1及び第2入力画像についての前記当てはめ処理の結果に基づいて、前記第1入力画像についての前記当てはめ処理において得られた一つの第1図形が当てはめられた複数の対象物に対して、前記第2入力画像についての前記当てはめ処理において複数の第2図形が当てはめられた否かを判定する。 Further, in one aspect of the image processing device, the second processing unit is configured to determine the first input image based on a result of the fitting process for the first and second input images in the correspondence specifying process. It is determined whether or not a plurality of second graphics are applied in the fitting process for the second input image with respect to a plurality of objects to which one first graphic obtained in the fitting process is applied.
また、画像処理装置の一態様では、前記第2処理部は、前記一つの第1図形の大きさから、当該一つの第1図形に最も位置が近い、前記第2入力画像についての前記当てはめ処理において得られた第2図形の大きさを差し引いて得られる差分値が第3しきい値よりも大きいあるいは当該第3しきい値以上であって、かつ、当該一つの第1図形において、前記第2入力画像についての前記当てはめ処理において得られた複数の第2図形のそれぞれの少なくとも一部の領域が内包される場合には、前記一つの第1図形に対応する複数の対象物に対して、当該複数の第2図形が当てはめられたと判定する。 In one aspect of the image processing apparatus, the second processing unit may perform the fitting process on the second input image that is closest in position to the first graphic from the size of the first graphic. The difference value obtained by subtracting the size of the second graphic obtained in step is larger than the third threshold value or greater than or equal to the third threshold value. In the case where at least a part of each of the plurality of second graphics obtained in the fitting process for the two-input image is included, for a plurality of objects corresponding to the one first graphics, It is determined that the plurality of second graphics are applied.
また、画像処理装置の一態様では、前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、前記第2処理部は、前記一つの第1図形の位置が、前記第1入力画像上において、前記撮影画像に写る人の撮影俯角が前記撮影画像で最大となる位置に対応する対応位置から離れるほど、前記第3しきい値を大きく設定する。 In one aspect of the image processing apparatus, the input image is an image obtained by performing image processing on a captured image captured by a camera that captures an overhead view of the object, and the second processing unit includes: As the position of the one first figure moves away from the corresponding position corresponding to the position where the photographing depression angle of the person appearing in the photographed image becomes the maximum in the photographed image on the first input image, the third image is displayed. Increase the threshold value.
また、画像処理装置の一態様では、前記第2処理部は、前記一つの第1図形の位置が、前記対応位置から第1所定範囲内に存在する場合には、前記一つの第1図形の位置が前記対応位置から離れるほど前記第3しきい値を大きく設定し、前記一つの第1図形の位置が前記第1所定範囲外に存在する場合には、前記一つの第1図形の位置が前記対応位置から離れるほど前記第3しきい値を小さく設定する。 Further, in one aspect of the image processing apparatus, the second processing unit, when the position of the one first graphic is within a first predetermined range from the corresponding position, The third threshold value is set to be larger as the position is farther from the corresponding position, and when the position of the first graphic is outside the first predetermined range, the position of the first graphic is The third threshold value is set smaller as the distance from the corresponding position increases.
また、画像処理装置の一態様では、前記第2処理部は、前記対応特定処理において、前記入力画像に写らなくなった前記対象物に当てはめられた前記図形である第3図形に対応する、前記第2入力画像についての前記当てはめ処理において得られた第2図形を特定し、その特定結果に基づいて、当該第3図形についての前記図形情報を更新し、前記第2処理部は、前記入力画像に写らなくなった前記対象物に当てはめられた前記第3図形についての前記図形情報を、前記対象物が前記入力画像に写らなくなってから所定時間経過した後に消去する。 Further, in one aspect of the image processing device, the second processing unit corresponds to the third graphic that is the graphic applied to the object that is no longer included in the input image in the correspondence specifying process. The second graphic obtained in the fitting process for the two input images is identified, and the graphic information for the third graphic is updated based on the identification result, and the second processing unit adds the second graphic to the input image. The graphic information about the third graphic applied to the object that is no longer captured is erased after a predetermined time has elapsed since the object is not captured in the input image.
また、画像処理装置の一態様では、前記第4処理部は、前記第3処理部で得られた2つの図形の間の第3距離が第4しきい値以下あるいは未満であり、かつ当該2つの図形を統合して得られる一つの新たな図形の大ききが第5しきい値以下あるいは未満の場合、当該2つの図形が一つの前記対象物に対して当てはめられたと判断して、当該新たな図形を当該2つの図形の代わりに採用する。 In one aspect of the image processing apparatus, the fourth processing unit has a third distance between two figures obtained by the third processing unit that is less than or less than a fourth threshold value, and the 2 If the size of one new figure obtained by integrating two figures is less than or less than the fifth threshold value, it is determined that the two figures have been applied to one object, and the new figure A simple figure is used instead of the two figures.
また、画像処理装置の一態様では、前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、前記第4処理部は、前記第3処理部で得られた2つの図形が、前記入力画像上において、前記撮影画像に写る人の撮影俯角が前記撮影画像で最大となる位置に対応する対応位置から延びる1本の第1直線上に位置し、かつ当該2つの図形の間の前記第3距離が前記第4しきい値以下あるいは未満であり、かつ当該2つの図形を統合して得られる一つの新たな図形の大ききが前記第5しきい値以下あるいは未満の場合、当該2つの図形が一つの前記対象物に対して当てはめられたと判断して、当該新たな図形を当該2つの図形の代わりに採用する。 In one aspect of the image processing device, the input image is an image obtained by performing image processing on a captured image captured by a camera that captures an overhead view of the object, and the fourth processing unit includes: The two figures obtained by the third processing unit are one second extending from the corresponding position corresponding to the position where the shooting depression angle of the person appearing in the captured image is maximum in the captured image on the input image. The size of one new figure which is located on one straight line and the third distance between the two figures is less than or less than the fourth threshold and is obtained by integrating the two figures If the threshold is less than or less than the fifth threshold value, it is determined that the two figures are applied to the one object, and the new figure is adopted instead of the two figures.
また、画像処理装置の一態様では、前記図形は楕円であって、前記第4処理部は、前記第3処理部で得られた2つの楕円のうちの一方の楕円の中心から、当該2つの楕円のうちの他方の楕円の中心までを結ぶ第2直線が当該一方の楕円と交わる第1交点と、当該第2直線が当該他方の楕円と交わる第2交点との間の距離を、前記第3距離とする。
Further, in one aspect of the image processing apparatus, the figure is an ellipse, and the fourth processing unit is configured to determine the two ellipses from the center of one of the two ellipses obtained by the third processing unit. The distance between the first intersection point where the second straight line connecting to the center of the other ellipse of the ellipse intersects the one ellipse and the second intersection point where the second straight line intersects the
また、画像処理装置の一態様では、前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、前記第4処理部は、2つの図形の間の前記第3距離と比較される前記第4しきい値を、当該2つの図形を統合して得られる新たな図形の位置が、前記撮影画像において撮影俯角が最大となる位置に対応する入力画像での対応位置から離れるほど大きく設定する。 In one aspect of the image processing device, the input image is an image obtained by performing image processing on a captured image captured by a camera that captures an overhead view of the object, and the fourth processing unit includes: The position of the new figure obtained by integrating the two figures with the fourth threshold value compared with the third distance between the two figures has the largest shooting depression angle in the photographed image. The larger the distance from the corresponding position in the input image corresponding to the position, the larger the setting.
また、画像処理装置の一態様では、前記第4処理部は、2つの図形を統合して得られる新たな図形の位置が前記対応位置から第2所定範囲内に存在する場合には、当該2つの図形の間の前記第3距離と比較される前記第4しきい値を、当該新たな図形の位置が前記対応位置から離れるほど大きく設定し、2つの図形を統合して得られる新たな図形の位置が前記第2所定範囲外に存在する場合には、当該2つの図形の間の前記第3距離と比較される前記第4しきい値を、当該新たな図形の位置が前記対応位置から離れるほど小さく設定する。 Further, according to one aspect of the image processing device, the fourth processing unit is configured to perform the processing when the position of a new figure obtained by integrating two figures is within the second predetermined range from the corresponding position. A new figure obtained by integrating the two figures by setting the fourth threshold value to be compared with the third distance between the two figures so that the position of the new figure is farther from the corresponding position. Is located outside the second predetermined range, the fourth threshold value to be compared with the third distance between the two figures is set to the position of the new figure from the corresponding position. Set smaller as you move away.
また、画像処理装置の一態様では、前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、前記第4処理部は、2つの図形を統合して得られる新たな図形の大ききと比較される前記第5しきい値を、当該新たな図形の位置が、前記撮影画像において撮影俯角が最大となる位置に対応する入力画像での対応位置から離れるほど大きく設定する。 In one aspect of the image processing device, the input image is an image obtained by performing image processing on a captured image captured by a camera that captures an overhead view of the object, and the fourth processing unit includes: The fifth threshold value to be compared with the size of a new figure obtained by integrating two figures corresponds to the position where the new figure has the maximum shooting depression angle in the photographed image. The larger the distance from the corresponding position in the input image, the larger the setting.
また、画像処理装置の一態様では、前記第4処理部は、2つの図形を統合して得られる新たな図形の位置が前記対応位置から第2所定範囲内に存在する場合には、当該新たな図形の大きさと比較される前記第5しきい値を、当該新たな図形の位置が前記対応位置から離れるほど大きく設定し、2つの図形を統合して得られる新たな図形の位置が前記第2所定範囲外に存在する場合には、当該新たな図形の大きさと比較される前記第5しきい値を、当該新たな図形の位置が前記対応位置から離れるほど小さく設定する。 Further, in one aspect of the image processing device, the fourth processing unit, when the position of a new figure obtained by integrating two figures is within the second predetermined range from the corresponding position, The fifth threshold value to be compared with the size of a new figure is set to increase as the position of the new figure moves away from the corresponding position, and the position of the new figure obtained by integrating two figures is the first value. 2 If it is outside the predetermined range, the fifth threshold value to be compared with the size of the new figure is set to be smaller as the position of the new figure is farther from the corresponding position.
また、画像処理装置の一態様では、前記第4処理部は、2つの図形を統合して得られる一つの新たな図形の位置と前記対応位置との差が第6しきい値以下あるいは未満の場合には、当該2つの図形が前記第1直線上に位置するか否かにかかわらず、当該2つの図形の間の前記第3距離が前記第4しきい値以下あるいは未満であり、かつ当該新たな図形の大ききが前記第5しきい値以下あるいは未満のとき、当該2つの図形が一つの前記対象物に対して当てはめられたと判断して、当該新たな図形を当該2つの図形の代わりに採用する。 Moreover, in one aspect of the image processing apparatus, the fourth processing unit has a difference between the position of one new figure obtained by integrating two figures and the corresponding position being less than or less than a sixth threshold value. The third distance between the two figures is less than or less than the fourth threshold value, regardless of whether the two figures are located on the first straight line, and When the size of the new figure is less than or less than the fifth threshold value, it is determined that the two figures have been applied to the one object, and the new figure is substituted for the two figures. To adopt.
また、画像処理装置の一態様では、前記対象物を撮影するカメラで撮影された撮影画像に対して画像処理を行って前記入力画像を生成する第6処理部がさらに設けられている。 In one aspect of the image processing apparatus, a sixth processing unit that performs image processing on a captured image captured by a camera that captures the object and generates the input image is further provided.
また、画像処理システムの一態様は、上記の画像処理装置と、前記画像処理装置の前記第6処理部が前記画像処理を行う前記撮影画像を撮影するカメラとを備える。 An aspect of the image processing system includes the above-described image processing apparatus and a camera that captures the captured image on which the sixth processing unit of the image processing apparatus performs the image processing.
また、画像処理装置の動作方法は、互いに異なる時刻での対象物が写る複数枚の入力画像のそれぞれについて、当該入力画像に写る当該対象物に対して図形を当てはめる当てはめ処理を行う第1工程と、前記当てはめ処理の結果に基づいて、前記入力画像での前記図形の位置を追跡することによって、前記入力画像での前記対象物の位置を追跡する追跡処理を行う第2工程とを備え、前記第1工程において、一つの前記対象物に対して複数の図形が当てはめられた場合には、当該複数の図形を統合して得られる一つの新たな図形を、当該複数の図形の代わりに採用する。 The operation method of the image processing apparatus includes a first step of performing a fitting process for applying a figure to each of the plurality of input images in which the objects are captured at different times, with respect to the object in the input images. , based on a result of the fitting process, by tracking the position of the graphic in the input image, and a second step of performing tracking processing for tracking a position of the object in the input image, the In the first step, when a plurality of figures are applied to one object, one new figure obtained by integrating the plurality of figures is employed instead of the plurality of figures. .
また、画像処理装置を制御するための制御プログラムは、前記画像処理装置に、互いに異なる時刻での対象物が写る複数枚の入力画像のそれぞれについて、当該入力画像に写る当該対象物に対して図形を当てはめる当てはめ処理を行う第1工程と、前記当てはめ処理の結果に基づいて、前記入力画像での前記図形の位置を追跡することによって、前記入力画像での前記対象物の位置を追跡する追跡処理を行う第2工程とを実行させ、前記第1工程において、一つの前記対象物に対して複数の図形が当てはめられた場合には、当該複数の図形を統合して得られる一つの新たな図形を、当該複数の図形の代わりに採用する処理を実行させるためのものである。
Further, a control program for controlling the image processing apparatus is configured such that, for each of a plurality of input images in which objects at different times are captured, the image processing apparatus is configured to display a graphic for the object captured in the input image. And a tracking process for tracking the position of the object in the input image by tracking the position of the figure in the input image based on the result of the fitting process. And when a plurality of figures are applied to one object in the first step, one new figure obtained by integrating the plurality of figures and those of the order to execute the process employed in place of the plurality of figures.
画像処理装置の処理負荷を低減することができる。 The processing load on the image processing apparatus can be reduced.
<画像処理システムの構成>
図1は画像処理システム1の構成を示す図である。画像処理システム1は、画像処理を用いて、対象物の位置を追跡するシステムである。画像処理システム1は、例えば、オフィス、学校等に導入される。画像処理システム1は、オフィス等の室内での人の位置を追跡する。なお、位置を追跡する対象物は人以外であっても良い。
<Configuration of image processing system>
FIG. 1 is a diagram showing a configuration of the
図1に示されるように、画像処理システム1は、カメラ2及び画像処理装置3を備える。カメラ2は、図2に示されるように、例えば、室内300内の天井310に取り付けられる。カメラ2は、例えば全方位カメラであって、室内300を俯瞰撮影する。したがって、カメラ2の撮影範囲は室内300となる。カメラ2は、所定のフレームレート(例えば30fps)で、画像を撮影して出力する。カメラ2から順次出力される撮影画像100は、画像処理装置3に順次入力される。なお、図2には、室内300に存在する人(対象物)200も示されている。
As shown in FIG. 1, the
本例では、撮影画像100はグレースケール画像であるが、カラー画像であっても良い。また、カメラ2は、天井310以外に取り付けられても良い。また、カメラ2は全方位カメラ以外であっても良い。
In this example, the captured
図3は撮影画像100の一例を示す図である。撮像画像100は魚眼画像とも呼ばれる。図3に示されるように、撮影画像100に写る室内300の床320の上には、複数の机330と複数の椅子340とが配置されている。室内300には複数の人200が存在する。具体的には、室内300には、壁350の傍に立っている2人の人200a,200bと、椅子340に座っている1人の人200cが存在している。したがって、撮影画像100には、3人の人200a,200b,200cが写っている。
FIG. 3 is a diagram illustrating an example of the captured
画像処理装置3は、入力される撮影画像100に基づいて、室内300での人200の位置を追跡する。言い換えれば、画像処理装置3は、入力される撮影画像100に基づいて、カメラ2の撮影範囲での人200の位置を追跡する。さらに言い換えれば、画像処理装置3は、入力される撮影画像100に基づいて、撮影画像100での人200の位置を追跡する。
The
画像処理装置3は、例えば、一種のコンピュータであって、図1に示されるように、CPU4(Central Processing Unit)及び記憶部5を備えている。記憶部5は、ROM(Read Only Memory)及びRAM(Random Access Memory)等の、CPU4が読み取り可能な非一時的な記録媒体で構成されている。記憶部5には、画像処理装置3(コンピュータ)を制御するための制御プログラム6が記憶されている。CPU4が記憶部5内の制御プログラム6を実行することによって、画像処理装置3には様々な機能ブロックが形成される。
The
なお、画像処理装置3の機能の一部又は全部は、その機能の実現のためにプログラム(ソフトフェア)が不要な、論理回路等を含むハードウェア回路で実現しても良い。また記憶部5は、ROM及びRAM以外の、コンピュータが読み取り可能な非一時的な記録媒体を備えていても良い。記憶部5は、例えば、小型のハードディスクドライブ及びSSD(Solid State Drive)等を備えていても良い。
Note that some or all of the functions of the
<画像処理装置の構成>
図4は画像処理装置3の構成を示す図である。図4に示されるように、画像処理装置3は、画像処理部10、当てはめ処理部11、追跡処理部12及びカウント部13を備えている。画像処理部10は、撮影画像100に対して画像処理を行い、それによって得られた画像を入力画像140として出力する。入力画像140には、人200が写っており、人200を示す画像が含まれている。以後、人200を示す画像を「人領域」と呼ぶことがある。
<Configuration of image processing apparatus>
FIG. 4 is a diagram illustrating the configuration of the
当てはめ処理部11は、入力画像140に写る人200に対して図形を当てはめる当てはめ処理を行う。当てはめ処理は、入力画像140に含まれる人領域に対して図形を当てはめる処理であると言える。また、当てはめ処理は、入力画像140に含まれる人領域を図形で表す処理であるとも言える。本例では、当てはめ処理部11は、当てはめ処理において、入力画像140に写る人200に対して、例えば楕円を当てはめる。ここで、本願発明での楕円とは、円(真円)を含む概念である。以後、特に断らない限り、「楕円」と言えば、当てはめ処理部11が、入力画像140に写る人200に対して当てはめた楕円を意味する。
The
追跡処理部12は、当てはめ処理部11での当てはめ処理の結果に基づいて、入力画像140上での楕円の位置を追跡することによって、入力画像140上での人200の位置を追跡する追跡処理を行う。追跡処理は、入力画像140上での楕円の位置を追跡することによって、カメラ2の撮影領域(室内300)での人200の位置を追跡する処理であると言える。
The
カウント部13は、追跡処理部12での追跡処理の結果に基づいて、入力画像140に写る人200の数を求めるカウント処理を行う。言い換えれば、カウント部13は、追跡処理部12での追跡処理の結果に基づいて、撮影画像100に写る人200の数を求める。さらに言い換えれば、カウント部13は、追跡処理部12での追跡処理の結果に基づいて、カメラ2の撮影範囲内(室内300)に存在する人200の数を求める。
The
図5は画像処理装置3の動作を示すフローチャートである。図5に示されるように、ステップs1において、画像処理装置3がカメラ2から撮影画像100を取得すると、画像処理部10は、ステップs2において、撮影画像100に対して画像処理を行って、入力画像140を生成する。ステップs2での具体的処理について後で説明する。
FIG. 5 is a flowchart showing the operation of the
ステップs2の後、ステップs3において、当てはめ処理部11は、ステップs2で生成された入力画像140に写る人200に対して楕円を当てはめる当てはめ処理を行う。その後、ステップs4において、追跡処理部12は、ステップs3での当てはめ処理の結果に基づいて入力画像140上での楕円の位置を追跡することによって、入力画像140上での人200の位置を追跡する追跡処理を行う。その後、ステップs5において、カウント部13は、ステップs4での追跡処理の結果に基づいて、ステップs2で生成された入力画像140に映る人200の数を求めるカウント処理を行う。つまり、カウント部13は、ステップs4での追跡処理の結果に基づいて、ステップs1で取得させた撮影画像100に映る人200の数を求める。
After step s2, in step s3, the
その後、再度ステップs1が実行されて、新たな撮影画像100(次のフレームの撮像画像100)が画像処理装置3で取得されると、画像処理装置3は、ステップs2〜s5までの処理を同様に実行する。画像処理装置3は、撮影画像100が取得されるたびに(撮影画像100が入力されるたびに)、取得された撮影画像100を用いてステップs2〜s5までの処理を実行する。
After that, when step s1 is executed again and a new captured image 100 (the captured
以後、画像処理装置3が現在処理している入力画像140を「現フレームの入力画像140」と呼ぶことがある。また、画像処理装置3において、現フレームの入力画像140よりも一つ前に生成された入力画像140を「前フレームの入力画像140」と呼ぶことがある。
Hereinafter, the
<画像処理部の詳細>
図6は画像処理部10の構成を示す図である。画像処理部10は、撮影画像100に対して複数種類の画像処理を実行して入力画像140を生成する。図6に示されるように、画像処理部10は、リサイズ部20、第1ノイズ除去部21、背景差分画像生成部22及び第2ノイズ除去部23を備えている。
<Details of image processing unit>
FIG. 6 is a diagram illustrating a configuration of the
リサイズ部20は、撮影画像100のサイズを縮小し、縮小後の撮影画像100を処理画像110として出力する。リサイズ部20は、例えば、撮影画像100の縦及び横の画素数を0.5倍に設定する。以後、縮小後の撮影画像100である処理画像110を「撮影画像110」と呼ぶことがある。撮影画像110に写る内容は、撮影画像100に写る内容と同じである。したがって、上述の図3は、撮影画像110の一例を示す図であるとも言える。
The resizing
第1ノイズ除去部21は、処理画像110に対して所定の画像処理を行って、処理画像110に含まれるノイズを除去する。第1ノイズ除去部21は、例えば、処理画像110に対してガウシアンフィルタを行って、処理画像110を平滑化する。これにより、処理画像110に含まれるノイズが除去される。第1ノイズ除去部21は、ノイズ除去後の処理画像110を処理画像120として出力する。
The first
なお、撮影画像100の画素数が小さいなどの理由で撮影画像100をリサイズする必要が無い場合には、リサイズ部20は不要となる。この場合には、第1ノイズ除去部21は、撮影画像100に対してガウシアンフィルタを行い、処理後の撮影画像100を処理画像120として出力する。
In addition, when there is no need to resize the captured
背景差分画像生成部22は、処理画像120と、撮影画像100の背景だけを示す背景画像との差分を示す背景差分画像130を生成する。本例では、背景画像は、人200が存在しない室内300をカメラ2が撮影することによって得られる画像を、処理画像120と同じサイズまで縮小することによって得られる画像である。背景差分画像生成部22は、各画素について、処理画像120の画素値と背景画像の画素値との差分を求めて、それによって得られる各画素の差分値を2値化することによって背景差分画像130を生成する。したがって、背景差分画像130は2値化画像である。
The background difference
第2ノイズ除去部23は、背景差分画像130に所定の画像処理を行って、背景差分画像130に含まれるノイズを除去する。第2ノイズ除去部23は、例えば、背景差分画像130に対して膨張処理及び収縮処理を繰り返し行って、背景差分画像130に含まれるノイズを除去する。第2ノイズ除去部23は、ノイズ除去後の背景差分画像130を入力画像140として出力する。
The second
図7は入力画像140(ノイズ除去された背景差分画像130)の一例を示す図である。図7の例では、画素値が“1”の部分(高輝度領域)が黒色で示されており、画素値が“0”の部分(低輝度領域)が白色で示されている。図7に示される入力画像140は、上述の図3に示される撮影画像100(撮影画像110)に対応している。つまり、図7に示される入力画像140は、図3に示される撮影画像100(撮影画像110)に基づいて生成された処理画像120と背景画像との差分を示している。
FIG. 7 is a diagram illustrating an example of the input image 140 (
図7に示される入力画像140には、3人の人200が写っており、3つの人領域230が含まれている。具体的には、入力画像140には、図3に示される人200a,200b,200cをそれぞれ示す人領域230a,230b,230cが含まれている。人領域230a,230b,230cは高輝度領域である。入力画像140には、背景画像が含まれていないことから、画像処理部10は、入力画像140を生成することにより、室内300の人を検出していると言える。
The
以上のような構成を有する画像処理部10では、画像処理装置3が撮影画像100を取得すると、上述の図5に示されるように、ステップs21において、リサイズ部20が撮影画像100をリサイズして処理画像110を生成する。そして、ステップs22において、第1ノイズ除去部21が処理画像110に含まれるノイズを除去して処理画像120を生成する。その後、ステップs23において、背景差分画像生成部22が、処理画像120と背景画像との差分を示す背景差分画像130を生成する。そして、ステップs24において、第2ノイズ除去部23が、背景差分画像130に含まれるノイズを除去して入力画像140を生成する。ステップs24において入力画像140が生成されると、上述のようにしてステップs3〜s5が順次実行される。
In the
以後、現フレームの入力画像140の元になる撮影画像110を「現フレームの撮影画像110」と呼ぶことがある。また、前フレームの入力画像140の元になる撮影画像110を「前フレームの撮影画像110」と呼ぶことがある。
Hereinafter, the captured
<当てはめ処理部の詳細>
図8は当てはめ処理部11の構成を示す図である。図9は上述のステップs3での当てはめ処理の詳細を示すフローチャートである。図8に示されるように、当てはめ処理部11は、ラベリング部30、輪郭抽出部31、楕円当てはめ部32及び楕円統合部33を備えている。図9に示されるように、当てはめ処理では、まずステップs31においてラベリング部30での処理が実行され、その後、ステップs32において輪郭抽出部31での処理が実行される。次にステップs33において楕円当てはめ部32での処理が実行され、最後に楕円統合部33での処理が実行される。以下に各構成での具体的処理について説明する。
<Details of fitting processing section>
FIG. 8 is a diagram illustrating the configuration of the
ラベリング部30は、入力画像140に含まれる高輝度領域に対して、4連結あるいは8連結等を用いたラベリングを行う。そして、ラベリング部30は、ラベリングによって得られた独立領域(連結領域)のうち、大きさがしきい値よりも小さい独立領域、あるいは大きさがしきい値以下の独立領域を除去する。これにより、入力画像140に含まれる小さい独立領域が除去される。つまり、入力画像140に含まれるノイズが除去される。ラベリング部30は、ノイズが除去された入力画像140を処理画像150として出力する。
The
輪郭抽出部31は、処理画像150に含まれる高輝度領域の輪郭抽出を行い、処理画像150に含まれる高輝度領域の輪郭を示す輪郭抽出画像160を生成する。つまり、輪郭抽出部31は、処理画像150に含まれる各人領域の輪郭抽出を行い、処理画像150に含まれる各人領域の輪郭を示す輪郭抽出画像160を生成する。以後、人領域の輪郭を「人輪郭」と呼ぶ。
The
楕円当てはめ部32は、輪郭抽出画像160に含まれる人輪郭に対して楕円を当てはめる。これにより、入力画像140に写る人200に対して楕円が当てはめられる。言い換えれば、入力画像140に含まれる人領域230に対して楕円が当てはめられる。楕円当てはめ部32は、例えば、最小二乗法を用いて輪郭抽出画像160に含まれる人輪郭に対して楕円を当てはめる。
The
図10は、図7に示される入力画像140から生成された輪郭抽出画像160に含まれる人輪郭に対して当てはめられた楕円250を、当該入力画像140に重ねた様子を示す図である。図11は、楕円250を、図3に示される撮影画像100をリサイズして得られる撮影画像110に重ねた様子を示す図である。
FIG. 10 is a diagram illustrating a state in which an
図10に示されるように、入力画像140に写る3人の人に対して楕円250が当てはめられる。具体的には、入力画像140に含まれる、人200aを示す人領域230aには楕円250aが当てはめられる。また、入力画像140に含まれる、人200bを示す人領域230bには楕円250bが当てはめられる。そして、入力画像140に含まれる、人200cを示す人領域230cには楕円250c1,250c2が当てはめられる。これにより、図11に示されるように、撮影画像110に写る人200aに対して楕円250aが当てはめられ、撮影画像110に写る人200bに対して楕円250bが当てはめられ、撮影画像110に写る人200cに対して楕円250c1,250c2が当てはめられる。
As shown in FIG. 10, an
楕円統合部33は、楕円当てはめ部32において、入力画像140に写る1人の人200に対して複数の楕円250が当てはめられた場合には、当該複数の楕円を統合して一つの新たな楕円を生成し、生成した新たな楕円を、当該1人の人200に対して当てはめ直す。つまり、楕円統合部33は、楕円当てはめ部32において、入力画像140に写る1人の人200に対して複数の楕円250が当てはめられた場合には、当該複数の楕円を統合して一つの新たな楕円を生成し、生成した新たな楕円を、当該複数の楕円の代わりに採用する。
When the
ここで、楕円当てはめ部32では、1人の人200に対して複数の楕円250が当てはめられることがある。例えば、人200の上着の色が背景の色と同じである場合には、人200の頭に対して1つの楕円250が当てはめられ、当該人200の下半身に対して1つの楕円250が当てはめられることがある。上述の図10,11の例では、椅子に座っている人200cの上半身及び下半身に対して2つの楕円250c1,250c2がそれぞれ当てはめられている。
Here, in the
一方で、後述の説明から理解できるように、追跡処理部12は、基本的には、1つの楕円250については、1人の人200に対応するものとして取り扱う。したがって、追跡処理部12は、当てはめ処理部11において1人の人200に対して複数の楕円250が当てはめられる場合には、当該複数の楕円250には複数の人200がそれぞれ対応するものとして取り扱うことになる。その結果、室内300での人200の位置の追跡が正しく行われない可能性がある。
On the other hand, as can be understood from the following description, the
そこで、楕円統合部33は、楕円当てはめ部32において、1人の人200に対して複数の楕円250が当てはめられた場合には、当該複数の楕円250を統合して得られる一つの新たな楕円を、当該複数の楕円250の代わりに採用する。これにより、楕円当てはめ部32において、1人の人200に対して複数の楕円250が当てはめられた場合であっても、最終的には、当該1人の1人200に対して1つの楕円を当てはめることが可能となる。
Therefore, the
図12は、図11に示される、人200cに当てはめられた複数の楕円250c1,250c2を統合して得られる新たな楕円250cを、人200cに対して当てはめ直した様子を示す図である。図12に示されるように、楕円統合部33の働きによって、人200cに対して、一つの楕円250cが当てはめられる。
FIG. 12 is a diagram illustrating a state where a
当てはめ処理部11は、楕円当てはめ部32での楕円250の当てはめの結果と、楕円統合部33での新たな楕円の再当てはめの結果とに基づいて、入力画像140に写る人200に対して最終的に当てはめられた楕円を特定するための楕円特定情報を、当てはめ処理結果として追跡処理部12に出力する。楕円特定情報には、楕円の中心座標、長軸長、短軸長及び傾きが含まれている。したがって、楕円特定情報から、楕円の位置及び形状を特定することができる。楕円特定情報に含まれる楕円の中心座標は、入力画像140上での楕円の中心座標である。楕円特定情報に含まれる楕円の中心座標は、撮影画像110上での楕円の中心座標であるとも言える。楕円特定情報に含まれる楕円の中心座標は、入力画像140(撮影画像110)に写る、当該楕円に対応する人の位置を示している。
Based on the result of fitting the
<楕円統合処理の詳細>
次に楕円統合部33での楕円統合処理(ステップs34の処理)について詳細に説明する。本例では、楕円統合部33は、2つの楕円が第1〜第3条件のすべてを満たす場合に、当該2つの楕円が1人の人に当てはめられたと判断して、当該2つの楕円を統合して得られる一つの新たな楕円を、当該2つの楕円の代わりに採用する。以後、当該新たな楕円を「統合楕円」と呼ぶことがある。
<Details of ellipse integration processing>
Next, the ellipse integration process (the process of step s34) in the
第1条件は、2つの楕円間の距離が第1しきい値以下であるという条件である。1人の人に対して2つの楕円が当てはめられている場合には、当該2つの楕円間の距離は小さい。そのため、2つの楕円が第1条件を満たす場合には、当該2つの楕円は1人の人に当てはめられている可能性がある。なお、第1条件は、2つの楕円間の距離が第1しきい値未満であるという条件であっても良い。第1条件の判定方法の具体例については後で詳細に説明する。 The first condition is a condition that the distance between the two ellipses is not more than the first threshold value. When two ellipses are fitted to one person, the distance between the two ellipses is small. Therefore, when two ellipses satisfy the first condition, there is a possibility that the two ellipses are applied to one person. The first condition may be a condition that the distance between the two ellipses is less than the first threshold value. A specific example of the determination method for the first condition will be described later in detail.
第2条件は、2つの楕円の位置が、入力画像140上において、特定の位置から延びる1本の直線上に存在するという条件である。この特定の位置は、入力画像140上において、撮影画像110(撮影画像100)に写る人の俯瞰角度が撮影画像110(撮影画像100)で最大となる位置に対応する対応位置である。
The second condition is a condition that the positions of two ellipses are on one straight line extending from a specific position on the
ここで、撮影画像に写る人の俯瞰角度とは、その人がどのような俯瞰角度(俯角)で俯瞰したように写っているかを示している。言い換えれば、撮影画像に写る人の俯瞰角度とは、その人がある俯瞰角度で俯瞰したように写っている場合の当該ある俯瞰角度を意味している。したがって、撮影画像に写る人の俯瞰角度は、撮影画像に写る人の角度(撮影画像での人の見え方)を意味しているのであって、カメラの角度(姿勢)を意味しているのではない。撮影画像において、人が真上から俯瞰したように写っている場合には、撮影画像に写るその人の俯瞰角度は最大の90度となる。 Here, the bird's-eye view angle shown in the photographed image indicates what kind of bird's-eye view angle (the depression angle) the person looks like. In other words, the bird's-eye view angle in the captured image means the certain bird's-eye view angle when the person is seen as if seen from a certain bird's-eye view angle. Therefore, the bird's-eye view angle shown in the photographed image means the angle of the person shown in the photographed image (how the person looks in the photographed image), and means the angle (posture) of the camera. is not. In the captured image, when a person is seen as if seen from directly above, the overhead angle of the person appearing in the photographed image is 90 degrees at the maximum.
俯瞰撮影された撮影画像では、画像位置によって人の俯瞰角度が異なる。本例では、カメラ2は、室内300の天井310に取り付けられた全方位カメラであることから、撮影画像110の中心が、撮影画像110での人の俯瞰角度が最大となる位置となる。つまり、撮影画像110の中心において人の俯瞰角度が90度となる。そして、撮影画像110では、中心から離れるほど人の俯瞰角度が小さくなる。そのため、図13に示されるように、撮影画像110においては、中心111から離れて位置する人200(200a〜200c)は、中心111から外側に向かう方向112に沿って延びるように写る。
In the captured image obtained by the overhead view, the overhead angle of the person varies depending on the image position. In this example, since the
また、本例では、撮影画像110の中心が、人の俯瞰角度が最大となる最大位置となることから、入力画像140において、当該最大位置に対応する対応位置は、入力画像140の中心(2つの対角線の交点)となる。したがって、本例では、第2条件は、2つの楕円が、入力画像140上において、その中心から延びる1本の直線上に位置するという条件となる。別の見方をすれば、第2条件は、2つの楕円が、入力画像140から生成される輪郭抽出画像160上において、その中心から延びる1本の直線上に位置するという条件とも言える。また、さらに別の見方をすれば、第2条件は、2つの楕円が、撮影画像110上において、その中心から延びる1本の直線上に位置するという条件とも言える。以後、撮像画像110において、人の俯瞰角度が最大となる最大位置を「俯瞰角度最大位置」と呼ぶことがある。
In this example, since the center of the captured
撮影画像110においては、人200は、撮影画像110の中心111から外側に向かう方向112に沿って延びるように写ることから、入力画像140から得られた2つの楕円が、入力画像140上において、その中心から外側に向かう方向に沿って並んでいる場合には、当該2つ楕円は、1人の人に対して当てはめられている可能性がある(図10の例では、人200cに当てはめられた2つの楕円250c1,250c2が、入力画像140上において、その中心から外側に向かう方向に沿って並んでいる)。つまり、入力画像140から得られた2つの楕円が、入力画像140上において、その中心から延びる1本の直線上に位置する場合には、当該2つ楕円は、入力画像140に写る1人の人に対して当てはめられている可能性がある。よって、2つの楕円が第2条件を満たす場合には、当該2つの楕円は1人の人に当てはめられている可能性がある。第2条件の判定方法の具体例については後で詳細に説明する。
In the photographed
第3条件は、2つの楕円を統合して得られる統合楕円の大きさが第2しきい値以下であるという条件である。統合楕円の大きさとしては、例えば、統合楕円の面積が採用される。2つの楕円が1人の人に対して当てはめられている場合には、当該2つの楕円を統合して得られる統合楕円の大きさは、入力画像140に写る人の大きさに近くなる。したがって、2つの楕円を統合して得られる統合楕円の大きさがあまりにも大きい場合には、当該2つの楕円は別々の人に当てはめられている可能性が高い。よって、2つの楕円が第3条件を満たす場合には、当該2つの楕円は1人の人に当てはめられている可能性がある。なお、第3条件は、2つの楕円を統合して得られる統合楕円の大きさが第2しきい値未満であるという条件であっても良い。第3条件の判定方法の具体例については後で詳細に説明する。
The third condition is a condition that the size of the integrated ellipse obtained by integrating the two ellipses is not more than the second threshold value. As the size of the integrated ellipse, for example, the area of the integrated ellipse is adopted. When two ellipses are applied to one person, the size of the integrated ellipse obtained by integrating the two ellipses is close to the size of the person shown in the
本例では、カメラ2は、室内300の天井310に取り付けられた全方位カメラであることから、撮像画像110の中心は、撮像画像110における、カメラ2の位置に対応する位置であるとも言える。同様に、入力画像140の中心は、入力画像140における、カメラ2の位置に対応する位置であるとも言える。
In this example, since the
<楕円統合処理のフロー>
図14は楕円統合処理(ステップs34の処理)を示すフローチャートである。図14に示されるように、楕円統合処理では、まずステップs341において、楕円統合部33は、楕円当てはめ部32で得られた複数の楕円を第1楕円群とし、当該第1楕円群に楕円が2つ以上存在するか否かを判定する。楕円統合部33は、第1楕円群に楕円が2つ以上存在すると判定すると、ステップs342において、第1楕円群から、処理対象となる第1対象楕円を決定する。そして、ステップs343において、楕円統合部33は、第1楕円群から、ステップs342で決定した第1対象楕円を削除する。一方で、ステップs341において、楕円統合部33は、Noと判定すると、楕円統合処理を終了する。
<Flow of ellipse integration processing>
FIG. 14 is a flowchart showing the ellipse integration process (the process of step s34). As shown in FIG. 14, in the ellipse integration process, first in step s341, the
ステップs343の後、楕円統合部33は、ステップs344において、現在の第1楕円群を第2楕円群とし、第2楕円群から第2対象楕円を決定する。第2楕円群には、ステップs342で決定された第1対象楕円が含まれていない。したがって、ステップs344での第2対象楕円は、ステップs342での第1対象楕円とは異なる楕円となる。ステップs344の後、楕円統合部33は、ステップs345において、第2楕円群から、ステップs344で決定した第2対象楕円を削除する。
After step s343, in step s344, the
次にステップs346において、楕円統合部33は、第1及び第2対象楕円が第1条件を満たすか否かを判定する。つまり、楕円統合部33は、第1及び第2対象楕円の間の距離が第1しきい値以下であるか否かを判定する。
Next, in step s346, the
楕円統合部33は、第1及び第2対象楕円が第1条件を満たしていると判定すると、ステップs347において、第1及び第2対象楕円が第2条件を満たすか否かを判定する。つまり、楕円統合部33は、第1及び第2対象楕円が、入力画像140上において、その中心から延びる1本の直線上に位置しているか否かを判定する。一方で、楕円統合部33は、第1及び第2対象楕円が第1条件を満たしていないと判定すると、つまり、第1及び第2対象楕円の間の距離が第1しきい値よりも大きいと判定すると、後述するステップs351を実行する。
If the
楕円統合部33は、第1及び第2対象楕円が第2条件を満たしていると判定すると、ステップs348において、第1及び第2対象楕円が第3条件を満たすか否かを判定する。つまり、楕円統合部33は、第1及び第2対象楕円を統合して得られる統合楕円の大きさが第2しきい値以下か否かを判定する。一方で、楕円統合部33は、第1及び第2対象楕円が第2条件を満たしていないと判定すると、つまり、第1及び第2対象楕円が、入力画像140上において、その中心から延びる1本の直線上に位置していないと判定すると、ステップs351を実行する。
If the
楕円統合部33は、第1及び第2対象楕円が第3条件を満たしていると判定すると、つまり、第1及び第2対象楕円が第1〜第3条件のすべてを満たしていると判定すると、ステップs349において、第1及び第2対象楕円が1人の人に対して当てはめられたと判断して、第1及び第2対象楕円を統合して得られる統合楕円を、第1及び第2対象楕円の代わりに採用する。その後、ステップs350において、楕円統合部33は、第1楕円群を更新する。具体的には、楕円統合部33は、第1楕円群から第2対象楕円を削除するとともに、第1楕円群にステップs349で採用した統合楕円を追加する。
If the
ステップs350の後、楕円統合部33は、再度ステップs341を実行して、更新後の第1楕円群に楕円が2つ以上存在するか否かを判定する。楕円統合部33は、Noと判定すると、楕円統合処理を終了する。一方で、楕円統合部33は、Yesと判定すると、ステップs342において、第1楕円群から新たな第1対象楕円を決定する。そして、楕円統合部33は、ステップs343において、第1楕円群から新たに決定した第1対象楕円を削除する。次に楕円統合部33は、ステップs344において、現在の第1楕円群を第2楕円群とし、第2楕円群から新たな第2対象楕円を決定する。楕円統合部33は以後同様に動作する。
After step s350, the
ステップs346,s347,s348においてNoと判定される場合に実行されるステップs351では、楕円統合部33は、第2楕円群に楕円が存在するか否かを判定する。楕円統合部33は、第2楕円群に楕円が存在すると判定すると、ステップs344を実行して、第2楕円群から新たな第2対象楕円を決定する。一方で、楕円統合部33は、第2楕円群に楕円が存在しないと判定すると、ステップs341を実行する。以後、楕円統合部33は同様に動作する。
In step s351 executed when it is determined No in steps s346, s347, and s348, the
楕円統合部33が以上のように動作することによって、楕円当てはめ部32が入力画像140に写る1人の人に対して当てはめられた複数の楕円が一つの新たな楕円に統合される。そして、当該新たな楕円が、当該複数の楕円の代わりに採用され、当該1人の人に対して当てはめ直される。
As the
<楕円統合処理の一例>
次に、楕円当てはめ部32において図15に示される複数の楕円250が得られた場合を例に挙げて、図14に示される楕円統合処理の一例を説明する。図15では、楕円当てはめ部32において得られた複数の楕円250e〜250iが入力画像140上に配置されている。図15では、説明の便宜上、入力画像140に含まれる人領域が示されていない。以後、図において、入力画像140に含まれる人領域が説明に不要な場合には、人領域を削除して入力画像140を示す。
<Example of ellipse integration processing>
Next, an example of the ellipse integration process shown in FIG. 14 will be described by taking as an example the case where the
楕円統合部33は、まず、楕円当てはめ部32で得られた複数の楕円250e〜250iを第1楕円群とし、第1楕円群に楕円が2つ以上存在するか否かを判定する(ステップs341)。ここでは、第1楕円群には、5つの楕円250e〜250iが存在することから、Yesと判定される。
First, the
次に楕円統合部33は、第1楕円群から第1対象楕円を決定する(ステップs342)。ここでは、例えば、楕円250eが第1対象楕円250eとされる。そして、楕円統合部33は、第1楕円群から第1対象楕円250eを削除する(ステップs343)。
Next, the
次に楕円統合部33は、現在の第1楕円群(楕円250f〜250i)を第2楕円群とし、第2楕円群から第2対象楕円を決定する(ステップs344)。ここでは、例えば、楕円250fが第2対象楕円250fとされる。そして、楕円統合部33は、第2楕円群から第2対象楕円250fを削除する(ステップs345)。
Next, the
次に楕円統合部33は、第1対象楕円250e及び第2対象楕円250fが第1条件を満たすか否かを判定する(ステップs346)。図16に示されるように、第1対象楕円250eと第2対象楕円250fの間の距離は小さいことから、第1条件は満たされる(Yes判定)。
Next, the
次に楕円統合部33は、第1対象楕円250e及び第2対象楕円250fが第2条件を満たすか否かを判定する(ステップs347)。図16に示されるように、第1対象楕円250e及び第2対象楕円250fは、入力画像140上において、その中心141から延びる2本の直線142上にそれぞれ位置することから、つまり、中心141から外側に向かう方向に沿って並んでいないことから、第2条件は満たされない(No判定)。
Next, the
次に楕円統合部33は、第2楕円群に楕円が存在するかを判定する(ステップs351)。ここでは、第2楕円群には楕円250g〜250iが存在することから、楕円統合部33はYesと判定する。
Next, the
次に楕円統合部33は、楕円250g〜250iから成る第2楕円群から、新たな第2対象楕円を決定する(ステップs344)。ここでは、例えば、楕円250gが第2対象楕円250gとされる。そして、楕円統合部33は、第2楕円群から第2対象楕円250gを削除する(ステップs345)。
Next, the
次に楕円統合部33は、第1対象楕円250e及び第2対象楕円250gが第1条件を満たすか否かを判定する(ステップs346)。図17に示されるように、第1対象楕円250eと第2対象楕円250gの間の距離は大きいことから、第1条件は満たされない(No判定)。
Next, the
次に楕円統合部33は、第2楕円群に楕円が存在するか否かを判定する(ステップs351)。ここでは、第2楕円群には楕円250h,250iが存在することから、楕円統合部33はYesと判定する。
Next, the
以後、楕円統合部33は、同様に動作して、ステップs351において、第2楕円群に楕円が存在しないと判定すると、第1楕円群に楕円が2つ以上存在するか否かを判定する(ステップs341)。ここでは、第1楕円群には4つの楕円250f〜250iが存在することからYesと判定される。
Thereafter, when the
次に楕円統合部33は、楕円250f〜250iから成る第1楕円群から第1対象楕円を決定する(ステップs342)。ここでは、例えば、楕円250fが第1対象楕円250fとされる。そして、楕円統合部33は、第1楕円群から第1対象楕円250fを削除する(ステップs343)。
Next, the
次に楕円統合部33は、現在の第1楕円群(楕円250g〜250i)を第2楕円群とし、第2楕円群から第2対象楕円を決定する(ステップs344)。ここでは、例えば、楕円250gが第2対象楕円250gとされる。そして、楕円統合部33は、第2楕円群から第2対象楕円250gを削除する(ステップs345)。
Next, the
次に楕円統合部33は、第1対象楕円250f及び第2対象楕円250gが第1条件を満たすか否かを判定する(ステップs346)。図18に示されるように、第1対象楕円250fと第2対象楕円250gの間の距離は大きいことから、第1条件は満たされない(No判定)。
Next, the
次に楕円統合部33は、第2楕円群に楕円が存在するかを判定する(ステップs351)。ここでは、第2楕円群には楕円250h,250iが存在することからYesと判定される。
Next, the
以後、楕円統合部33は、同様に動作して、ステップs351において、第2楕円群に楕円が存在しないと判定すると、第1楕円群に楕円が2つ以上存在するかを判定する(ステップs341)。ここでは、第1楕円群には3つの楕円250g〜250iが存在することからYesと判定される。
Thereafter, when the
次に楕円統合部33は、楕円250g〜250iから成る第1楕円群から第1対象楕円を決定する(ステップs342)。ここでは、例えば、楕円250gが第1対象楕円250gとされる。そして、楕円統合部33は、第1楕円群から第1対象楕円250gを削除する(ステップs343)。
Next, the
次に楕円統合部33は、現在の第1楕円群(楕円250h,250i)を第2楕円群とし、第2楕円群から第2対象楕円を決定する(ステップs344)。ここでは、例えば、楕円250hが第2対象楕円250hとされる。そして、楕円統合部33は、第2楕円群から第2対象楕円250hを削除する(ステップs345)。
Next, the
次に楕円統合部33は、第1対象楕円250g及び第2対象楕円250hが第1条件を満たすか否かを判定する(ステップs346)。図19に示されるように、第1対象楕円250gと第2対象楕円250hの間の距離は小さいことから、第1条件は満たされる(Yes判定)。
Next, the
次に楕円統合部33は、第1対象楕円250g及び第2対象楕円250hが第2条件を満たすか否かを判定する(ステップs347)。図19に示されるように、第1対象楕円250g及び第2対象楕円250hは、入力画像140上において、その中心141から延びる1本の直線142上に位置することから、つまり、中心141から外側に向かう方向に沿って並んでいることから、第2条件は満たされる(Yes判定)。
Next, the
次に楕円統合部33は、第1対象楕円250g及び第2対象楕円250hが第3条件を満たすか否かを判定する(ステップs348)。図20に示されるように、第1対象楕円250g及び第2対象楕円250hを統合して得られる統合楕円250jの大きさは小さいことから、第3条件は満たされる(Yes判定)。
Next, the
楕円統合部33は、第3条件が満たされると判定すると、第1対象楕円250g及び第2対象楕円250hが1人の人に対して当てはめられたと判断する(ステップs349)。そして、楕円統合部33は、統合楕円250jを、第1対象楕円250g及び第2対象楕円250hの代わりに採用する(ステップs349)。
When determining that the third condition is satisfied, the
次に楕円統合部33は、第1楕円群から第2対象楕円250hを削除する(ステップs350)。また、楕円統合部33は、第1楕円群に対して統合楕円250jを追加する(ステップs350)。
Next, the
次に楕円統合部33は、第1楕円群に楕円が2つ以上存在するか否かを判定する(ステップs341)。ここでは、第1楕円群には2つの楕円250i,250jが存在することからYesと判定される。
Next, the
次に楕円統合部33は、楕円250i,250jから成る第1楕円群から新たな第1対象楕円を決定する(ステップs342)。ここでは、例えば、楕円250j(統合楕円250j)が第1対象楕円250jとされる。そして、楕円統合部33は、第1楕円群から第1対象楕円250jを削除する(ステップs343)。
Next, the
次に楕円統合部33は、現在の第1楕円群(楕円250i)を第2楕円群とし、第2楕円群から第2対象楕円を決定する(ステップs344)。ここでは、楕円250iが第2対象楕円250iとされる。そして、楕円統合部33は、第2楕円群から第2対象楕円250iを削除する(ステップs345)。
Next, the
次に楕円統合部33は、第1対象楕円250j及び第2対象楕円250iが第1条件を満たすか否かを判定する(ステップs346)。図21に示されるように、第1対象楕円250jと第2対象楕円250iの間の距離は小さいことから、第1条件は満たされる(Yes判定)。
Next, the
次に楕円統合部33は、第1対象楕円250j及び第2対象楕円250iが第2条件を満たすか否かを判定する(ステップs347)。図21に示されるように、第1対象楕円250j及び第2対象楕円250iは、入力画像140上において、その中心141から延びる1本の直線142上に位置することから、つまり、中心141から外側に向かう方向に沿って並んでいることから、第2条件は満たされる(Yes判定)。
Next, the
次に楕円統合部33は、第1対象楕円250j及び第2対象楕円250iが第3条件を満たすか否かを判定する(ステップs348)。図22に示されるように、第1対象楕円250j及び第2対象楕円250iを統合して得られる統合楕円250kの大きさは小さいことから、第3条件は満たされる(Yes判定)。
Next, the
次に楕円統合部33は、第1対象楕円250j及び第2対象楕円250iが1人の人に対して当てはめられたと判断する(ステップs349)。そして、楕円統合部33は、統合楕円250kを、第1対象楕円250j及び第2対象楕円250iの代わりに採用する(ステップs349)。
Next, the
次に楕円統合部33は、第1楕円群から第2対象楕円250iを削除する(ステップs350)。また楕円統合部33は、第1楕円群に対して統合楕円250kを追加する(ステップs350)。そして、楕円統合部33は、第1楕円群に楕円が2つ以上存在するか否かを判定する(ステップs341)。ここでは、第1楕円群には1つの楕円250kしか存在しないことからNoと判定される。楕円統合部33は、Noと判定すると楕円統合処理を終了する。
Next, the
図15〜22の例では、1人の人に当てはめられていた3つの楕円250g〜250iが統合され、それによって得られる新たな楕円250kが、当該3つの楕円250g〜250iの代わりに採用される。したがって、楕円統合処理後には、図22に示されるように、楕円250eと、楕円250fと、楕円250kとが残ることになる。当てはめ処理部11は、楕円250e,250f,250kに関する楕円特定情報を含む当てはめ処理結果を追跡処理部12に出力する。
15-22, three
<第1条件の判定方法の詳細>
楕円統合部33は、2つの楕円が第1条件を満足するか否かを判定する場合には、当該2つの楕円のうちの一方の楕円の中心から、当該2つの楕円のうちの他方の楕円の中心までを結ぶ第2直線が、当該一方の楕円と交わる第1交点と、当該第2直線が当該他方の楕円と交わる第2交点との間の距離を、当該2つの楕円間の距離として求める。
<Details of first condition determination method>
When the
例えば、図23に示される2つの楕円250m,250n間の距離を求める場合を考える。楕円統合部33は、楕円250mの中心251mから楕円250nの中心251nまでを結ぶ直線(線分)260を求める。そして、楕円統合部33は、直線260と楕円250mとの交点252mと、直線260と楕円250nとの交点252nとの間の距離dxを、楕円250m,250n間の距離とする。楕円統合部33は、ステップs346において、距離dxが第1しきい値以下か否かを判定することによって、楕円250m,250nが第1条件を満足するか否かを判定する。
For example, consider a case where the distance between two
なお、2つの楕円間の距離として、当該2つの楕円の中心間の距離を採用しても良い。この場合には、2つの楕円が互いに近くに存在するにもかかわらず、第1条件が満足されないことがある。例えば、上述の図23に示されるように、2つの楕円250m,250nのうち、少なくとも一方の楕円250nにおける、中心251nと交点252nとの間の距離dnが大きい場合、中心251m,251n間の距離dmnが大きくなる。そのため、楕円250m,250nが互いに近くに存在するにもかかわらず、第1条件が満足されないことがある。一方で、上述の距離dxを楕円250m,250n間の距離として採用する場合には、そのようなことなく、楕円250m,250nが互いに近くに存在することを適切に判定することができる。よって、楕円250m,250nが1人の人に当てはめられているか否かをより正しく判定することができる。
Note that the distance between the centers of the two ellipses may be adopted as the distance between the two ellipses. In this case, the first condition may not be satisfied even though the two ellipses are close to each other. For example, as shown in FIG. 23 described above, when the distance dn between the
<第2条件の判定方法の詳細>
図24は、楕円統合部33が、2つの楕円が、入力画像140上において、その中心から延びる1本の直線上に位置しているか否かを判定する方法の一例を説明するための図である。図24では入力画像140上に2つの楕円250p,250qが配置されている。
<Details of second condition determination method>
FIG. 24 is a diagram for explaining an example of a method by which the
楕円統合部33は、2つの楕円250p,250qが、入力画像140上において、その中心141から延びる1本の直線上に位置しているか否かを判定する場合には、入力画像140上において、中心141から、2つの楕円250p,250qのうちの一方の楕円250の中心まで延びる第1ベクトルを求める。また、楕円統合部33は、入力画像140上において、当該一方の楕円250の中心から、2つの楕円250p,250qのうちの他方の楕円250の中心まで延びる第2ベクトルを求める。図24の例では、中心141から楕円250qの中心251qまで延びるベクトルを第1ベクトル271としている。また、楕円250qの中心251qから、楕円250pの中心251pまで延びるベクトルを第2ベクトル272としている。
When the
次に楕円統合部33は、第1ベクトル271と第2ベクトル272とが成す角度αを求める。図25は角度αを示す図である。次に楕円統合部33は、角度αが90度以下であるか否かを判定する。楕円統合部33は、α≦90度であれば、角度αを判定角度βとする。一方で、楕円統合部33は、α>90度であれば、(180°−α)を判定角度βとする。図25に示される角度αは90度以下であることから、角度αがそのまま判定角度βとなる。
Next, the
次に楕円統合部33は、判定角度βが第3しきい値以下であるか否かを判定する。第3しきい値は例えば数度以下に設定される。楕円統合部33は、判定角度βが第3しきい値以下であれば、2つの楕円250p,250qが、入力画像140上において、中心141から延びる1本の直線上に位置していると判定する。つまり、楕円統合部33は、2つの楕円250p,250qが、入力画像140上において、中心141から外側に向かう方向に沿って並んでいると判定する。一方で、楕円統合部33は、判定角度βが第3しきい値よりも大きければ、2つの楕円250p,250qが、入力画像140上において、中心141から延びる1本の直線上に位置していないと判定する。つまり、楕円統合部33は、2つの楕円250p,250qが、入力画像140上において、中心141から外側に向かう方向に沿って並んでいないと判定する。図24,25の例では、判定角度βは第3しきい値以下となり、図26に示されるように、2つの楕円250p,250qが、入力画像140上において、中心141から延びる1本の直線142上に位置していると判定される。つまり、2つの楕円250p,250qの第2条件が満足されると判定される。
Next, the
なお、楕円統合部33は、判定角度βが第3しきい値未満であれば、2つの楕円250p,250qが、入力画像140上において、中心141から延びる1本の直線上に位置していると判定し、判定角度βが第3しきい値以上であれば、2つの楕円250p,250qが、入力画像140上において、中心141から延びる1本の直線上に位置していないと判定しても良い。
In the
また、図27に示されるように、中心141から楕円250pの中心251pまで延びるベクトルを第1ベクトル271とし、楕円250pの中心251pから、楕円250qの中心251qまで延びるベクトルを第2ベクトル272としても良い。この場合には、図28に示されるように、第1ベクトル271と第2ベクトル272との成す角度αは90度よりも大きくなる。したがって、判定角度βは(180度−α)となる。
27, a vector extending from the
また、上記の例では、第1ベクトル271及び第2ベクトル272が成す角度αから判定角度βを決定していたが、図29に示されるように、入力画像140の中心141から、2つの楕円250p,250qの中心251p,251qまでそれぞれ延びる2つのベクトル273が成す、180°以下の角度を、判定角度βとして採用しても良い。
In the above example, the determination angle β is determined from the angle α formed by the
<第3条件の判定方法の詳細>
図30は、楕円統合部33が2つの楕円を統合する方法の一例を説明するための図である。図30には、2つの楕円250r,250s(破線)と、それらが統合して得られる統合楕円250t(実線)とが示されている。
<Details of third condition determination method>
FIG. 30 is a diagram for explaining an example of a method by which the
楕円統合部33は、2つの楕円250r,250sを統合する際には、楕円250r,250sの中心251r,251sを通る直線280を求める。そして、楕円統合部33は、楕円250rと直線280とが交わる2つの交点のうち、楕円250s側とは反対側の交点253s(楕円250sに対して遠い側の交点)を求める。また、楕円統合部33は、楕円250sと直線280とが交わる2つの交点のうち、楕円250r側とは反対側の交点253s(楕円250rに対して遠い側の交点)を求める。そして、楕円統合部33は、交点253rと交点253sとを結ぶ線分を長軸255tとする楕円250tを求める。このとき、楕円統合部33は、長軸255tの長さの所定割合を、楕円250tの短軸256tの長さとする。この所定割合は、例えば、一般的な人の身幅に対する背の高さの割合と同じ値に設定される。楕円統合部33は、求めた楕円250tを、2つの楕円250s,250rの統合楕円とする。なお、統合楕円の求め方はこれ以外であっても良い。
When integrating the two
楕円統合部33は、求めた楕円250tの大きさが第2しきい値以上であるか否かを判定することによって、2つの楕円250r,250sが第3条件を満足するか否かを判定する。楕円統合部33は、楕円250tの大きさとして、楕円250tの面積を採用する。また楕円統合部33は、楕円250tの大きさとして、楕円250tの長軸長を採用しても良い。
The
<追跡処理部の詳細>
次に追跡処理部12について詳細に説明する。図31は、追跡処理部12の構成を示す図である。図31に示されるように、追跡処理部12は、対応特定部40及び更新部44を備えている。対応特定部40は、1次特定部41、2次特定部42及び3次特定部43を備えている。追跡処理部12は、追跡処理において、当てはめ処理部11で得られる当てはめ処理結果170に基づいて記憶部5内の追跡情報50を更新することによって、入力画像140上での楕円の位置を追跡する。追跡情報50はフレームごとに更新される。つまり、追跡情報50は、カメラ2から画像処理装置3に撮影画像100が入力されるたびに、言い換えれば、画像処理部10で入力画像140が生成されるたびに更新される。
<Details of the tracking processor>
Next, the
<追跡情報について>
追跡情報50には、入力画像140に写る人(撮影画像110に写る人)に当てはめられた楕円に関する図形情報500が含まれている。追跡処理部12は、楕円について図形情報500をフレームごとに更新することによって、入力画像140上での当該楕円の位置を追跡する。図形情報500は、基本的には、1つの楕円について1つ存在する。
<About tracking information>
The tracking
図32は図形情報500の一例を示す図である。図32に示されるように、図形情報500には、ID501、状態情報502及び楕円特定情報503が含まれる。また、図形情報500には、消失時刻504が含まれることがある。また、図形情報500には、併合相手ID505及び併合数506が含まれることがある。
FIG. 32 is a diagram showing an example of the
図形情報500に含まれるID501は、当該図形情報500に対応する楕円を識別するための識別情報である。ID501は、図形情報500を識別するための識別情報であるとも言える。また、ID501は、図形情報500に対応する楕円に対応する人を識別するための識別情報であるとも言える。
The
図形情報500に含まれる楕円特定情報503は、当該図形情報500に対応する楕円を特定するための情報である。楕円特定情報503には、楕円の中心座標、長軸長、短軸長及び傾きが含まれている。したがって、楕円特定情報503により、楕円の位置及び形状が特定される。図形情報500に含まれる楕円特定情報503は、当該図形情報500に対応する楕円についての入力画像140上の最新の位置を示していると言える。言い換えれば、図形情報500に含まれる楕円特定情報503は、当該図形情報500に対応する楕円に対応する人についての撮影画像110上の最新の位置を示していると言える。さらに言い換えれば、図形情報500に含まれる楕円特定情報503は、当該図形情報500に対応する楕円に対応する人についての室内300での最新の位置(現在の位置)を示していると言える。追跡処理部12は、楕円特定情報503を更新することによって、当該楕円特定情報503に対応する楕円の位置を追跡する。
The
図形情報500に含まれる状態情報502は、追跡処理部12が検出した、当該図形情報500に対応する楕円の状態を示す情報である。追跡処理部12は、当てはめ処理結果170に基づいて入力画像140上での楕円の状態を検出し、その検出結果に基づいて、当該楕円についての図形情報500に含まれる状態情報502を更新する。状態情報502の種類としては、「出現」、「存在」、「消失」、「併合」及び「被併合」の5種類がある。
The
ここで、本例では、便宜上、入力画像140に写る人に対して楕円を当てはめた結果、入力画像140上に楕円が現れると考える。また、複数の人に対して1つの新しい楕円が当てはめられた場合には、当該複数の人に当てはめられていた複数の前の楕円のうちの1つの前の楕円が当該1つの新しい楕円となり、当該1つの新しい楕円が、当該複数の前の楕円のうちの残りの前の楕円を併合したと考える。
Here, in this example, for convenience, it is considered that an ellipse appears on the
追跡処理部12は、入力画面140上においてある楕円が初めて現れたと判定した場合には、当該ある楕円の図形情報500に含まれる状態情報502を「出現」に設定する。したがって、図形情報500に含まれる「出現」を示す状態情報502は、当該図形情報500に対応する楕円が入力画面140上に初めて現れたことを示している。楕円が入力画像140上に初めて現れたことは、当該楕円に対応する人が、入力画面140(撮影画像110)に初めて現れたことを意味している。したがって、図形情報500に含まれる「出現」を示す状態情報502は、当該図形情報500に対応する人が入力画面140(撮影画像110)に初めて現れたことを示している。
When the
追跡処理部12は、入力画面140上に現れていた楕円が、入力画面140上に現れなくなったと判定した場合には、当該楕円の図形情報500に含まれる状態情報502を「消失」に設定する。したがって、図形情報500に含まれる「消失」を示す状態情報502は、当該図形情報500に対応する楕円が入力画面140上に現れなくなったことを示している。入力画像140上に現れていた楕円が入力画像140上に現れなくなることは、当該楕円に対応する人が、入力画面140(撮影画像110)に写らなくなったことを意味している。したがって、図形情報500に含まれる「消失」を示す状態情報502は、当該図形情報500に対応する人が入力画面140(撮影画像110)に写らなくなったことを示している。
When it is determined that the ellipse that has appeared on the
追跡処理部12は、ある楕円が、継続して、入力画面140上に現れていると判定した場合には、当該ある楕円の図形情報500に含まれる状態情報502を「存在」に設定する。したがって、図形情報500に含まれる「存在」を示す状態情報502は、当該図形情報500に対応する楕円が、継続して、入力画面140上に現れていることを示している。本例では、ある楕円が、2フレーム以上連続して入力画像140上に現れている場合には、当該ある楕円についての図形情報500に含まれる状態情報502が「存在」に設定される。ただし、追跡処理部12は、ある楕円が入力画面140上に現れなくなってから所定時間以内に入力画像140に再度現れるようになった場合には、当該ある楕円についての図形情報500に含まれる状態情報502を、「消失」から、「出現」ではなく「存在」に変更する。入力画像140上において継続して楕円が現れていることは、当該楕円に対応する人が、入力画面140(撮影画像110)において継続して写っていることを意味している。したがって、図形情報500に含まれる「存在」を示す状態情報502は、当該図形情報500に対応する人が、継続して、入力画面140(撮影画像110)に写っていることを示している。
When it is determined that a certain ellipse continues to appear on the
追跡処理部12は、ある楕円が他の楕円を併合したと判定した場合には、当該ある楕円の図形情報500に含まれる状態情報502を「併合」に設定する。したがって、図形情報500に含まれる「併合」を示す状態情報502は、当該図形情報500に対応する楕円が他の楕円を併合していることを示している。
When it is determined that a certain ellipse merges another ellipse, the
追跡処理部12は、ある楕円が他の楕円に併合されたと判定した場合には、当該ある楕円の図形情報500に含まれる状態情報502を「被併合」に設定する。したがって、図形情報500に含まれる「被併合」を示す状態情報502は、当該図形情報500に対応する楕円が他の楕円に併合されていることを示している。
When it is determined that a certain ellipse has been merged with another ellipse, the
本例では、「併合」及び「被併合」は、複数の人に対して1つの楕円が当てはめられていることを単に意味しているだけであって、状態情報502が「併合」を示す楕円と、状態情報502が「被併合」を示す楕円との間において、入力画像140上での状態を区別するために使用しているわけではない。状態が「併合」の楕円と、状態が「被併合」との楕円とは同一であるが、本例では便宜上別々の楕円として扱っている。図形情報500の状態情報502が、どのような基準で「併合」に設定されるのか、「被併合」に設定されるのかについては、後の説明から明らかになる。
In this example, “merge” and “merge” simply mean that one ellipse is applied to a plurality of people, and the
ここで、入力画像140において複数の人が互いに近くに写っている場合には、入力画像140に含まれる、当該複数の人を示す複数の人領域は繋がっている可能性が高い。したがって、当てはめ処理部11では、入力画像140において互いに近くに写る複数の人に対して、1つの楕円が当てはめられる可能性が高い。よって、図形情報500に含まれる「併合」あるいは「被併合」を示す状態情報502は、当該図形情報500に対応する人が、入力画像140において、他の人の近くに写っていることを示していると言える。
Here, in the case where a plurality of people appear close to each other in the
以上の説明から理解できるように、図形情報500に含まれる状態情報502は、入力画像140上での楕円の状態を示す情報であるとともに、入力画像140上での人の状態を示す情報である。状態情報502は、撮影画像110上での人の状態を示す情報であるとも言えるし、室内300での人の状態を示す情報であると言える。
As can be understood from the above description, the
図形情報500に含まれる消失時刻504は、追跡処理部12が、入力画面140上に現れていた楕円が、入力画面140上に現れなくなったと判定した時刻を示している。したがって、図形情報500に含まれる状態情報502が「消失」を示すときには、当該図形情報500に消失時刻504が含まれる。一方で、図形情報500に含まれる状態情報502が「消失」以外を示すときには、当該図形情報500に消失時刻504が含まれない。後述するように、図形情報500に含まれる消失時刻504が、現在時刻よりも所定時間以上前の場合には、当該図形情報500は追跡情報50から消去される。つまり、入力画像140上に楕円が現れなくなってから所定時間経過した後に、当該楕円の図形情報500が消去される。言い換えれば、入力画像140に人が写らなくなってから所定時間が経過した後に、当該人に対応する楕円の図形情報500は消去される。
The
図形情報500に含まれる併合相手ID505は、当該図形情報500に含まれる状態情報502が「併合」を示す場合に、当該図形情報500に対応する楕円が併合している楕円の図形情報500に含まれるID501を示している。図形情報500に対応する楕円が複数の楕円を併合している場合には、当該図形情報500に含まれる併合相手ID505には複数のID501が含まれる。図形情報500に含まれる状態情報502が「併合」以外を示す場合には、当該図形情報500には併合相手ID505は含まれない。
The
図形情報500に含まれる併合数506は、当該図形情報500に含まれる状態情報502が「併合」を示す場合に、当該図形情報500に対応する楕円が併合している楕円の数を示している。図形情報500に含まれる併合数506がN個(N≧1)を示す場合には、当該図形情報500に対応する楕円はN個の楕円を併合している。図形情報500に含まれる併合数506がN個を示す場合には、当該図形情報500に対応する楕円は(N+1)人の人に対して当てはめられていると言える。図形情報500に含まれる状態情報502が「併合」以外を示す場合には、当該図形情報500には併合数506は含まれない。
The number of
以後、状態が「併合」を示す楕円、つまり他の楕円を併合している楕円を「併合主体楕円」と呼ぶことがある。また、状態が「被併合」を示す楕円、つまり他の楕円に併合されている楕円を「被併合楕円」と呼ぶことがある。そして、併合主体楕円と、当該併合主体楕円が併合している被併合楕円とから成る楕円グループを「併合楕円グループ」と呼ぶことがある。また、状態が「出現」を示す楕円を「出現楕円」と呼び、状態が「消失」を示す楕円を「消失楕円」と呼ぶことがある。 Hereinafter, an ellipse whose state indicates “merged”, that is, an ellipse that is merged with another ellipse may be referred to as a “merging main ellipse”. In addition, an ellipse whose state indicates “merged”, that is, an ellipse merged with another ellipse may be referred to as a “merged ellipse”. An ellipse group including a merged ellipse and a merged ellipse in which the merged ellipse is merged may be referred to as a “merged ellipse group”. In addition, an ellipse whose state indicates “appearance” may be referred to as “appearance ellipse”, and an ellipse whose state indicates “disappearance” may be referred to as “disappearance ellipse”.
<追跡処理部の各構成について>
次に追跡処理部12についての図31に示される各構成について説明する。以下では、前フレームでの当てはめ処理と言えば、前フレームの入力画像140についての当てはめ処理を意味し、現フレームでの当てはめ処理と言えば、現フレームの入力画像140についての当てはめ処理を意味する。また、前フレームでの当てはめ処理において得られた楕円を「第1楕円」と呼ぶことがある。また、現フレームでの当てはめ処理において得られた楕円を「第2楕円」と呼ぶことがある。また、併合主体楕円の第1楕円を「併合主体第1楕円」と呼び、併合主体楕円の第2楕円を「併合主体第2楕円」と呼ぶことがある。そして、被併合楕円の第1楕円を「被併合第1楕円」と呼び、被併合楕円の第2楕円を「被併合第2楕円」と呼ぶことがある。
<About each component of the tracking processor>
Next, each configuration shown in FIG. 31 for the
当てはめ処理部11で得られる当てはめ処理結果170は、現フレームでの当てはめ処理で得られた第2楕円を示す楕円特定情報が含まれている。一方で、追跡処理部12に当てはめ処理結果170が入力された時点での記憶部5内の追跡情報50は、前フレームでの当てはめ処理で得られた第1楕円を示す図形情報500が含まれている。言い換えれば、当てはめ処理結果170に基づいて更新される前の追跡情報50には、前フレームでの当てはめ処理で得られた第1楕円を示す図形情報500が含まれている。したがって、更新前の追跡情報50は、前フレームでの当てはめ処理の結果を示していると言える。また、追跡情報50には、前フレームでの当てはめ処理よりも前の当てはめ処理で得られた楕円であって、すでに入力画像140上に現れなくなった楕円である消失楕円の図形情報500が含まれることもある。
The fitting process result 170 obtained by the
本例では、追跡処理部12は、画像処理部10で入力画像140が生成されるたびに、当該入力画像140についての当てはめ処理結果170と、記憶部50内の追跡情報50とに基づいて、前フレームでの当てはめ処理で得られた各第1楕円について、現フレームでの当てはめ処理で得られた、当該第1楕円に対応する第2楕円を特定する第1対応特定処理を行う。第1楕円に対応する第2楕円とは、第1楕円が当てはめられた人と同じ人に当てはめられた第2楕円である。さらに、追跡処理部12は、追跡情報50に消失楕円の図形情報500が含まれている場合には、当該図形情報500に基づいて、当該図形情報500が示す消失楕円に対応する第2楕円を特定する第2対応特定処理を行う。消失楕円に対応する第2楕円とは、消失楕円が当てはめられていた人と同じ人に当てはめられた第2楕円である。これにより、追跡処理部12は、入力画像140上での楕円の位置を追跡することができる。以後、第1対応特定処理及び第2対応特定処理をまとめて「対応特定処理」と呼ぶことがある。
In this example, every time the
追跡処理部12では、対応特定部40が対応特定処理を行う。そして、更新部44が、対応特定部40での対応特定処理の結果に基づいて、記憶部5内の追跡情報50を更新する。これより、入力画像140上での楕円の位置が追跡される。つまり、入力画像140上での人の位置が追跡される。
In the
図33は追跡処理部12での追跡処理を示すフローチャートである。図33に示されるように、ステップs41にいて、対応特定部40の1次特定部41は1次特定処理を行う。次にステップs42において、更新部44は、1次特定処理の結果に基づいて追跡情報50を更新する1次更新処理を行う。以後、1次特定処理と1次更新処理とをあわせて「1次処理」と呼ぶ。
FIG. 33 is a flowchart showing the tracking process in the
次にステップs43において、対応特定部40の2次特定部42は2次特定処理を行う。次にステップs44において、更新部44は、2次特定処理の結果に基づいて追跡情報50を更新する2次更新処理を行う。以後、2次特定処理と2次更新処理とをあわせて「2次処理」と呼ぶ。
Next, in step s43, the secondary specifying
次にステップs45において、更新部44は、追跡情報50に、消失楕円の図形情報500が含まれているか否かを判定する。追跡情報50に消失楕円の図形情報500が含まれている場合には、更新部44は、消失楕円の図形情報500に含まれる消失時刻504が、現在時刻よりも所定時間以上前であるか否かを判定する。更新部44は、図形情報500に含まれる消失時刻504が、現在時刻よりも所定時間以上前である場合には、当該図形情報500を追跡情報50から削除する。これにより、入力画像140上に楕円が現れなくなってから所定時間経過した後に、当該楕円の図形情報500が追跡情報50から消去される。言い換えれば、入力画像140に人が写らなくなってから所定時間が経過した後に、当該人に対応する楕円の図形情報500が消去される。更新部44は、追跡情報50に、複数の消失楕円の図形情報500が含まれている場合には、各図形情報500について同様の処理を行う。以後、ステップs45での処理を「2.5次処理」あるいは「2.5次更新処理」と呼ぶことがある。
Next, in step s45, the
次にステップs46にいて、対応特定部40の3次特定部43は3次特定処理を行う。次にステップs47において、更新部44は、3次特定処理の結果に基づいて追跡情報50を更新する3次更新処理を行う。3次更新処理が実行されると、追跡処理が終了する。以後、3次特定処理と3次更新処理とをあわせて「3次処理」と呼ぶ。
Next, in step s46, the tertiary specifying
なお、更新部44は、画像処理装置3が起動してから、当てはめ処理部11で初めて当てはめ処理が行われた場合には、当該当てはめ処理で得られた各楕円についての図形情報500を生成し、生成した図形情報500を追跡情報50として記憶部5に記憶する。画像処理装置3が起動してから、当てはめ処理部11で初めて行われた当てはめ処理で得られた各楕円の状態は「出現」となる。そして、更新部44は、追跡処理部12に当てはめ処理結果170が入力されるたびに、記憶部5内の追跡情報50を更新する。
Note that when the
<1次処理の詳細>
次に1次処理を詳細に説明する。1次処理の1次特定処理では、1次特定部41は、まず、追跡情報50に、併合主体第1楕円(状態が「併合」を示す第1楕円)の図形情報500(以後、「併合主体図形情報500」と呼ぶことがある)が含まれているか否かを判定する。言い換えれば、1次特定部41は、前フレームでの当てはめ処理において得られた第1楕円において、併合主体第1楕円が含まれているか否かを判定する。追跡情報50に、併合主体図形情報500が含まれていない場合には1次特定処理が終了する。この場合には、1次更新処理は行われない。
<Details of primary processing>
Next, the primary process will be described in detail. In the primary specifying process of the primary process, the primary specifying
1次特定部41は、追跡情報50に、併合主体図形情報500が含まれていると判定すると、併合主体図形情報500が示す併合主体第1楕円が複数の第2楕円に分離したか否かを判定する分離判定処理を行う。分離判定処理については後で詳細に説明する。1次特定部41は、併合主体第1楕円が複数の第2楕円に分離したと判定すると、当該複数の第2楕円を、当該併合主体第1楕円に対応する第2楕円として特定する。1次特定部41は、追跡情報50に複数の併合主体図形情報500が含まれる場合には、当該複数の併合図形情報500のそれぞれについて同様の処理を行う。これにより、前フレームでの当てはめ処理において得られた第1楕円に含まれる各併合主体第1楕円に対応する第2楕円が特定される。
If the
<分離判定処理の詳細>
分離判定処理において、1次特定部41は、まず、前フレームでの当てはめ処理において、併合主体第1楕円が当てはめられた複数の人に対して、現フレームでの当てはめ処理において複数の第2楕円が当てはめられているか否かを判定する。1次特定部41は、前フレームでの当てはめ処理において、併合主体第1楕円が当てはめられた複数の人に対して、現フレームでの当てはめ処理において複数の第2楕円が当てはめられていると判定すると、当該併合主体第1楕円が当該複数の第2楕円に分離したと判定する。1次特定部41は、併合主体第1楕円が複数の第2楕円に分離したと判定すると、当該併合主体第1楕円に対応する第2楕円として、当該複数の第2楕円を特定する。一方で、1次特定部41は、前フレームでの当てはめ処理において、併合主体第1楕円が当てはめられた複数の人に対して、現フレームでの当てはめ処理において複数の第2楕円は当てはめられていないと判定すると、1次特定部41では、当該併合主体第1楕円に対応する第2楕円が特定されない。以後、併合主体第1楕円が複数の第2楕円に分離したと判定された際の当該複数の第2楕円の数を「楕円分離数」と呼ぶ。
<Details of separation determination processing>
In the separation determination process, the
図34,35は、併合主体第1楕円250xが複数の第2楕円250yに分離する様子の一例を示す図である。図34,35の例では、併合主体第1楕円250xが3人の人200に当てはめられている。
34 and 35 are diagrams showing an example of a state in which the merged main
前フレームでの当てはめ処理において、3人の人200に当てはめられた併合主体第1楕円250xが複数の第2楕円250yに分離するパターンとしては、大別して2種類のパターンがある。1つの目のパターンは、図34に示されるように、併合主体第1楕円250xが、現フレームでの当てはめ処理において、3つの第2楕円250yに分離するパターンである(楕円分離数が“3”)。このパターンでは、第1楕円250xが当てはめられていた3人の人200のそれぞれに対して、1つの第2楕円250yが当てはめられている。1つ目のパターンでは、併合主体第1楕円250xは、3つの第2楕円250yに対応することになる。
In the fitting process in the previous frame, there are roughly two types of patterns for separating the merged main
2つ目のパターンは、図35に示されるように、併合主体第1楕円250xが、現フレームでの当てはめ処理において、2つの第2楕円250yに分離するパターンである(楕円分離数が“2”)。このパターンでは、併合主体第1楕円250xが当てはめられていた3人の人200のうち、2人の人200に対して1つの第2楕円250yが当てはめられ、残りの1人の人200に対して1つの第2楕円250yが当てはめられている。2つ目のパターンでは、併合主体第1楕円250xは、2つの第2楕円250yに対応することになる。
As shown in FIG. 35, the second pattern is a pattern in which the merging main
なお、併合主体第1楕円は、それが属する併合楕円グループに含まれる被併合第1楕円と同じ楕円である。したがって、1次特定部41は、被併合第1楕円が複数の第2楕円に分離した否かを判定するとも言える。また、併合主体第1楕円が対応する複数の第2楕円は、当該併合主体第1楕円が属する併合楕円グループに含まれる被併合第1楕円に対応すると言える。また、併合主体第1楕円が対応する複数の第2楕円は、当該併合主体第1楕円が属する併合楕円グループを構成する各第1楕円に対応すると言える。
The merged subject first ellipse is the same ellipse as the merged first ellipse included in the merged ellipse group to which it belongs. Therefore, it can be said that the primary specifying
次に分離判定処理の具体例について説明する。1次特定部41は、例えば、併合主体第1楕円が2つの条件が満足するとき、当該併合主体第1楕円が複数の楕円に分割されたと判定する。
Next, a specific example of the separation determination process will be described. For example, when the merged subject first ellipse satisfies two conditions, the primary specifying
1つ目の条件は、併合主体第1楕円の位置に最も近い、現フレームでの当てはめ処理で得られた第2楕円の大きさが、当該併合主体第1楕円の大きさよりも十分に小さいという条件である。以後、この1つ目の条件を「分離第1条件」と呼ぶことがある。 The first condition is that the size of the second ellipse obtained by the fitting process in the current frame closest to the position of the merged subject first ellipse is sufficiently smaller than the size of the merged subject first ellipse. It is a condition. Hereinafter, the first condition may be referred to as a “separation first condition”.
2つ目の条件は、併合主体第1楕円において、現フレームでの当てはめ処理で得られた複数の第2楕円のそれぞれの少なくとも一部の領域が内包されるという条件である。以後、この2つ目の条件を「分離第2条件」と呼ぶことがある。 The second condition is a condition that at least a part of each of the plurality of second ellipses obtained by the fitting process in the current frame is included in the merged main first ellipse. Hereinafter, the second condition may be referred to as a “separation second condition”.
<分離第1条件の判定方法>
1次特定部41は、分離第1条件を満足するか否かを判定する際には、まず、現フレームでの当てはめ処理で得られた第2楕円のうち、併合主体第1楕円に最も近い位置の第2楕円を最近傍第2楕円として特定する。1次特定部41は、当てはめ処理部11で得られる当てはめ処理結果170と追跡情報50とに基づいて、最近傍第2楕円を特定することができる。
<Determination method of first separation condition>
When determining whether or not the separation first condition is satisfied, the
次に、1次特定部41は、併合主体第1楕円の大きさから、最近傍第2楕円の大きさを差し引いて得られる差分値が、第4しきい値よりも大きいか否かを判定する。1次特定部41は、例えば、併合主体第1楕円の面積を、併合主体第1楕円の大きさとして採用し、最近傍第2楕円の面積を、最近傍第2楕円の大きさとして採用する。1次特定部41は、当てはめ処理結果170に含まれる、最近傍第2楕円についての楕円特定情報から、近傍第2楕円の大きさを求めることができる。また1次特定部41は、追跡情報50に含まれる併合主体図形情報500の楕円特定情報503から、併合主体第1楕円の大きさを求めることができる。
Next, the primary specifying
1次特定部41は、差分値が第4しきい値よりも大きい場合には、最近傍第2楕円の大きさが、併合主体第1楕円の大きさよりも十分に小さいと判定する。つまり、1次特定部41は、分離第1条件を満足すると判定する。一方で、1次特定部41は、差分値が第4しきい値以下の場合には、分離第1条件を満足しないと判定する。
When the difference value is larger than the fourth threshold value, the primary specifying
なお、1次特定部41は、差分値が第4しきい値以上である場合に、分離第1条件を満足すると判定し、差分値が第4しきい値未満である場合に、分離第1条件を満足しないと判定しても良い。
The
<分離第2条件の判定方法>
1次特定部41は、分離第2条件を満足するか否かを判定する際には、まず、現フレームでの当てはめ処理で得られた第2楕円のうち、その少なくとも一部の領域が、併合主体第1楕円に内包されている第2楕円を特定する。以後、その少なくとも一部の領域が、併合主体第1楕円に内包されている第2楕円を「被内包第2楕円」と呼ぶ。1次特定部41は、例えば、第2楕円の中心が、併合主体第1楕円内に存在する場合には、当該第2楕円を被内包第2楕円とする。1次特定部41は、当てはめ処理結果170と追跡情報50に基づいて、被内包第2楕円を特定することができる。そして、1次特定部41は、現フレームでの当てはめ処理で得られた第2楕円に含まれる被内包楕円の数が2つ以上であるか否かを判定する。
<Method for determining separation second condition>
When the
1次特定部41は、現フレームでの当てはめ処理で得られた第2楕円に含まれる被内包楕円の数が2つ以上であると判定すると、現フレームでの当てはめ処理で得られた複数の第2楕円のそれぞれの少なくとも一部の領域が併合主体第1楕円に内包されると判定する。つまり、1次特定部41は、分離第2条件を満足すると判定する。一方で、現フレームでの当てはめ処理で得られた第2楕円に含まれる被内包第2楕円の数が1つであると判定すると、分離第2条件を満足しないと判定する。
When the
以上のようにして、1次特定部41は、併合主体第1楕円が、分離第1条件及び分離第2条件を満足するか否かを判定する。そして、1次特定部41は、併合主体第1楕円が、分離第1条件及び分離第2条件を満足する場合には、併合主体第1楕円が当てはめられた複数の人に対して、現フレームでの当てはめ処理において複数の第2楕円が当てはめられていると判定する。つまり、1次特定部41は、併合主体第1楕円が、複数の第2楕円に分離したと判定する。詳細には、1次特定部41は、併合主体第1楕円が、分離第2条件で特定された複数の被内包第2楕円に分離したと判定する。そして、1次特定部41は、複数の被内包第2楕円を、併合主体第1楕円に対応する第2楕円として特定する。併合主体第1楕円は、それが併合する被併合楕円と同じ楕円であることから、1次特定部41は、複数の被内包第2楕円を、併合主体第1楕円を含む併合楕円グループを構成する各第1楕円に対応する第2楕円として特定すると言える。
As described above, the primary specifying
このようにして、併合主体第1楕円が当てはめられた複数の人に対して、現フレームでの当てはめ処理において複数の第2楕円が当てはめられているか否かを判定することによって、人と楕円とを適切に対応付けることができる。よって、入力画像140上での楕円の位置の追跡によって、入力画像140での人の位置を適切に追跡することができる。
In this way, by determining whether or not a plurality of second ellipses are applied in the fitting process in the current frame for a plurality of people to which the merging subject first ellipse is applied, Can be appropriately associated. Therefore, by tracking the position of the ellipse on the
なお、1次特定部41は、分離第2条件を満足するか否かの判定を、上記とは異なる方法で行っても良い。以下に、分離第2条件についての他の判定方法の一例について説明する。
The
1次特定部41は、図36に示されるような、第2楕円250yについての4つの交点257yを使用する。4つの交点257yは、第2楕円250yと、その長軸255yとが交わる2つの交点257yと、第2楕円250yとその短軸256yとが交わる2つの交点257yとで構成されている。1次特定部41は、現フレームでの当てはめ処理で得られた第2楕円のうち、4つの交点257yのうちの所定数以上の交点257yが併合主体第1楕円内に存在する第2楕円を、被内包第2楕円として特定する。この所定数は、1以上4以下の値に設定される。図37は、4つの交点257yのうちの2つの交点257yが、併合主体第1楕円250x内に存在する第2楕円250yの一例を示す図である。所定数が例えば“2”に設定される場合には、図37に示される第2楕円250yは、その少なくとも一部が併合主体第1楕円250xに内包される被内包第2楕円250yとなる。
The primary specifying
1次特定部41は、被内包第2楕円を特定すると、上記と同様に動作して、現フレームでの当てはめ処理で得られた第2楕円に含まれる被内包楕円の数が2つ以上であるか否かを判定する。1次特定部41は、現フレームでの当てはめ処理で得られた第2楕円に含まれる被内包楕円の数が2つ以上であると判定すると、分離第2条件を満足すると判定する。一方で、現フレームでの当てはめ処理で得られた第2楕円に含まれる被内包第2楕円の数が1つであると判定すると、分離第2条件を満足しないと判定する。
When the primary specifying
なお、対応する第2楕円が特定された第1楕円を「特定済み第1楕円」と呼ぶことがある。また、第1楕円に対応するものとして特定された第2楕円を「特定済み第2楕円」と呼ぶことがある。また、対応する第2楕円が特定されていない第1楕円を「未特定第1楕円」と呼ぶことがある。また、第1楕円に対応するものとして特定されていない第2楕円を「未特定第2楕円」と呼ぶことがある。 The first ellipse in which the corresponding second ellipse is specified may be referred to as “specified first ellipse”. The second ellipse specified as corresponding to the first ellipse may be referred to as “specified second ellipse”. In addition, a first ellipse for which the corresponding second ellipse is not specified may be referred to as an “unspecified first ellipse”. A second ellipse that is not specified as corresponding to the first ellipse may be referred to as an “unspecified second ellipse”.
1次特定部41が、複数の被内包第2楕円を、併合主体第1楕円に対応する第2楕円として特定した場合には、複数の被内包第2楕円は特定済み第2楕円となり、併合主体第1楕円は特定済み第1楕円となる。さらに、当該併合主体第1楕円が併合する被併合第1楕円も特定済み第1楕円となる。
When the primary specifying
以後、特定済み第1楕円である併合主体第1楕円が属する併合楕円グループを「特定済み併合第1楕円グループ」と呼ぶことがある。特定済み併合第1楕円グループに含まれる各第1楕円は特定済み第1楕円である。また、特定済み併合第1楕円グループの楕円総数と言えば、当該特定済み併合第1楕円グループを構成する複数の第1楕円の総数を意味する。特定済み併合第1楕円グループの楕円総数は、当該特定済み併合第1楕円グループに属する併合主体第1楕円の図形情報500に含まれる併合数506に対して“1”を加算して得られる値となる。また、特定済み併合第1楕円グループに対応する楕円分離数と言えば、当該特定済み併合第1楕円グループに属する併合主体第1楕円の楕円分離数、つまり、当該併合主体第1楕円に対応する複数の第2楕円の数を意味する。また、特定済み併合第1楕円グループに対応する複数の特定済み第2楕円と言えば、当該特定済み併合第1楕円グループに属する併合主体第1楕円に対応する複数の第2楕円を意味する。
Hereinafter, the merged ellipse group to which the merged subject first ellipse that is the identified first ellipse may be referred to as a “specified merged first ellipse group”. Each first ellipse included in the identified merged first ellipse group is a specified first ellipse. Further, the total number of ellipses of the specified merged first ellipse group means the total number of first ellipses constituting the specified merged first ellipse group. The total number of ellipses of the specified merged first ellipse group is a value obtained by adding “1” to the
<1次更新処理の詳細>
次に1次更新処理について詳細に説明する。1次更新処理において、更新部44は、1次特定処理で得られた特定済み併合第1楕円グループの各第1楕円の図形情報500を更新する。つまり、更新部44は、対応する第2楕円が特定された併合主体第1楕円の図形情報500と、当該併合主体第1楕円が併合する被併合第1楕円の図形情報500とを更新する。更新部44は、1次特定処理において複数の特定済み併合第1楕円グループが得られた場合には、当該複数の特定済み併合第1楕円グループのそれぞれについて、当該特定済み併合第1楕円グループの各第1楕円の図形情報500を更新する。なお、1次特定処理において特定済み併合第1楕円グループが得られなければ、1次更新処理はスキップされる。
<Details of the primary update process>
Next, the primary update process will be described in detail. In the primary update process, the
以下に、特定済み併合第1楕円グループの楕円総数と、当該特定済み併合第1楕円グループに対応する楕円分離数とが一致する場合と一致しない場合とに分けて、特定済み併合第1楕円グループの各第1楕円の図形情報500の更新方法について説明する。
The identified merged first ellipse group is divided into a case where the total number of ellipses of the identified merged first ellipse group and the number of ellipse separations corresponding to the identified merged first ellipse group are not matched. A method for updating the
<楕円総数と楕円分離数とが一致する場合>
特定済み併合第1楕円グループの楕円総数と、当該特定済み併合第1楕円グループに対応する楕円分離数とが一致する場合には、更新部44は、特定済み併合第1楕円グループに対応する複数の特定済み第2楕円に対して、当該特定済み併合第1楕円グループを構成する複数の第1楕円(特定済み第1楕円)の図形情報500をそれぞれ対応付ける。そして、更新部44は、特定済み併合第1楕円グループの各第1楕円の図形情報500を、それを対応付けた特定済み第2楕円の楕円特定情報に基づいて更新する。具体的には、更新部44は、特定済み併合第1楕円グループに含まれる第1楕円の図形情報500の楕円特定情報503が、当該図形情報500が対応付けられた特定済み第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。そして、更新部44は、当該図形情報500の状態情報502を「存在」に設定する。これにより、特定済み併合第1楕円グループの各第1楕円の図形情報500が更新される。第1楕円についての更新された図形情報500は、当該第1楕円に対応する第2楕円の図形情報500となる。なお、特定済み第2楕円の楕円特定情報は、当てはめ処理結果170に含まれている。
<When the total number of ellipses matches the number of ellipses separated>
When the total number of ellipses of the specified merged first ellipse group matches the number of ellipse separations corresponding to the specified merged first ellipse group, the updating
図38は、特定済み併合第1楕円グループを構成する複数の第1楕円の図形情報500と、当該特定済み併合第1楕円グループに対応する複数の特定済み第2楕円との対応付けの一例を示す図である。図38の例では、特定済み併合第1楕円グループは4つの第1楕円で構成されている。したがって、特定済み併合第1楕円グループの楕円総数は“4”となる。そして、特定済み併合第1楕円グループに含まれる併合主体第1楕円は4つの第2楕円250ya〜250ydに分離している。したがって、楕円分離数は“4”となり、楕円総数と一致する。図38の例では、4つの第2楕円250ya〜250ydに対して、特定済み併合第1楕円グループを構成する4つの第1楕円にそれぞれ対応する4つの図形情報500a〜500dがそれぞれ対応付けられている。更新部44によって図形情報500a〜500dが更新されることにより、図形情報500aは第2楕円250yaに関する情報となり、図形情報500bは第2楕円250ybに関する情報となり、図形情報500cは第2楕円250ycに関する情報となり、図形情報500dは第2楕円250ydに関する情報となる。
FIG. 38 shows an example of correspondence between
<楕円総数と楕円分離数とが一致しない場合>
次に、特定済み併合第1楕円グループの楕円総数と、当該特定済み併合第1楕円グループに対応する分割数とが一致しない場合、つまり、当該楕円総数が当該楕円分離数よりも大きい場合の更新部44の動作について説明する。この場合、更新部44は、特定済み併合第1楕円グループに対応する複数の特定済み第2楕円のそれぞれに対して、できるだけに同じ数の図形情報500が対応付けられ、かつ互いに異なる図形情報500が対応付けられ、かつ図形情報500が対応付けられない特定済み第2楕円が存在しないように、当該特定済み併合第1楕円グループを構成する複数の第1楕円の図形情報500の少なくとも1つを対応付ける。
<When the total number of ellipses does not match the number of ellipse separation>
Next, update when the total number of ellipses of the specified merged first ellipse group does not match the number of divisions corresponding to the specified merged first ellipse group, that is, when the total number of ellipses is greater than the number of ellipse separations The operation of the
更新部44は、1つの特定済み第2楕円に対して1つの図形情報500を対応付けた場合には、上記と同様に、当該図形情報500の楕円特定情報503が、当該図形情報500が対応付けられた特定済み第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。そして、更新部44は、当該図形情報500の状態情報502を「存在」に設定する。これにより、当該図形情報500が更新される。
When the updating
一方で、更新部44は、1つの特定済み第2楕円に対してM個(M≧2)の図形情報500を対応付けた場合には、当該1つの特定済み第2楕円はM人の人200に対して当てはめられた第2楕円であるとする。そして、更新部44は、当該M個の図形情報500において、一つの図形情報500に含まれる状態情報502を「併合」に設定し、残りの図形情報500に含まれる状態情報を「被併合」に設定する。そして、更新部44は、状態情報502を「併合」に設定した図形情報500の併合相手ID505に、状態情報502を「被併合」に設定した図形情報500のID501を含める。また、更新部44は、状態情報502を「併合」に設定した図形情報500の併合数505を(M−1)とする。そして、更新部44は、当該M個の図形情報500のそれぞれについて、上記と同様に、当該図形情報500の楕円特定情報503が、当該図形情報500が対応付けられた特定済み第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。これにより、当該M個の図形情報500が更新される。
On the other hand, when the updating
図39,40は、特定済み併合第1楕円グループを構成する複数の第1楕円の図形情報500と、当該特定済み併合第1楕円グループに対応する複数の特定済み第2楕円との対応付けの一例を示す図である。図39,40の例では、上述の図38の例と比較して楕円分離数が異なっている。
39 and 40 show the correspondence between the
図39の例では、特定済み併合第1楕円グループに含まれる併合主体第1楕円は2つの第2楕円250ya,250ybに分離しており、楕円分離数が“2”となっている。図39の例では、第2楕円250yaに対して2つの図形情報500a,500bが対応付けられており、第2楕円250ybに2つの図形情報500c,500dが対応付けられている。図39の例では、更新部44は、2つの図形情報500a,500bにおいて、一方の図形情報500の状態情報502を「併合」に設定し、他方の図形情報500の状態情報502を「被併合」に設定する。ここでは、例えば、図形情報500aの状態情報502を「併合」に設定し、図形情報500bの状態情報502を「被併合」に設定するとする。更新部44は、状態情報502を「併合」に設定した図形情報500aの併合相手ID505に、状態情報502を「被併合」に設定した図形情報500bのID501を含める。また、更新部44は、図形情報500aの併合数505を“1”とする。そして、更新部44は、図形情報500aの楕円特定情報503が、第2楕円250yaの楕円特定情報と一致するように、当該楕円特定情報503を更新し、図形情報500bの楕円特定情報503が、第2楕円250yaの楕円特定情報と一致するように、当該楕円特定情報503を更新する。同様にして、更新部44は、第2楕円250ybに対応付けられた2つの図形情報500c,500dを更新する。
In the example of FIG. 39, the merged subject first ellipse included in the identified merged first ellipse group is separated into two second ellipses 250ya and 250yb, and the ellipse separation number is “2”. In the example of FIG. 39, two pieces of
図40の例では、特定済み併合第1楕円グループに含まれる併合主体第1楕円は3つの第2楕円250ya,250yb,250ycに分離しており、楕円分離数が“3”となっている。図40の例では、第2楕円250yaに1つの図形情報500aが対応付けられており、第2楕円250ybに1つの図形情報500bが対応付けられ、第2楕円250ycに2つの図形情報500c,500dが対応付けられている。図40の例では、更新部44は、第2楕円250yaに対応付けられた図形情報500aの楕円特定情報503が、第2楕円250yaの楕円特定情報と一致するように、当該楕円特定情報503を更新する。そして、更新部44は、図形情報500aの状態情報502を「存在」に設定する。更新部44は、第2楕円250ybに対応付けられた図形情報500bを同様に更新する。また、更新部44は、第2楕円250ycに対応付けられた図形情報500c,500dにおいて、一方の図形情報500の状態情報502を「併合」に設定し、他方の図形情報500の状態情報502を「被併合」に設定する。そして、更新部44は、状態情報502を「併合」に設定した図形情報500の併合相手ID505に、状態情報502を「被併合」に設定した図形情報500のID501を含める。また、更新部44は、状態情報502を「併合」に設定した図形情報500の併合数505を“1”とする。そして、更新部44は、図形情報500cの楕円特定情報503が、第2楕円250ycの楕円特定情報と一致するように、当該楕円特定情報503を更新し、図形情報500dの楕円特定情報503が、第2楕円250ycの楕円特定情報と一致するように、当該楕円特定情報503を更新する。これにより、図形情報500a〜500dが更新される。
In the example of FIG. 40, the merged subject first ellipse included in the identified merged first ellipse group is separated into three second ellipses 250ya, 250yb, 250yc, and the ellipse separation number is “3”. In the example of FIG. 40, one
以上のように、1次更新処理では、1次特定処理で得られた各特定済み併合第1楕円グループについて、それを構成する複数の第1楕円の図形情報500が更新される。
As described above, in the primary update process, the
<2次処理の詳細>
次に2次処理を詳細に説明する。2次処理の2次特定処理において、2次特定部42は、まず、1次更新処理が行われた追跡情報50に、対応する第2楕円が1次特定処理で特定されなかった第1楕円の図形情報500(以後、「未特定図形情報500と呼ぶことがある)が含まれるか否かを判定する。言い換えれば、2次特定部42は、1次更新処理が行われた追跡情報50に、未特定第1楕円の図形情報500が含まれているか否かを判定する。さらに言い換えれば、2次特定部42は、1次更新処理された追跡情報50に、未だ更新されていない図形情報500が含まれるか否かを判定する。
<Details of secondary processing>
Next, the secondary processing will be described in detail. In the secondary specifying process of the secondary process, the secondary specifying
2次特定部42は、1次更新処理が行われた追跡情報50に未特定図形情報500が含まれていると判定すると、1次更新処理が行われた追跡情報50に含まれる、状態情報502が「被併合」以外を示す未特定図形情報500が示す未特定第1楕円に対応する第2楕円を、所定の情報に基づいて特定する。状態情報502が「被併合」以外を示す未特定図形情報500を特に「対象未特定図形情報500」と呼ぶ。1次更新処理された追跡情報50に、消失楕円の図形情報500が含まれている場合には、2次特定部42は、当該消失楕円に対応する第2楕円を特定する第2対応特定処理を行う。2次特定部41は、追跡情報50に複数の対象未特定図形情報500が含まれる場合には、当該複数の対象未特定図形情報500のそれぞれについて同様の処理を行う。2次特定部42は、1次更新処理が行われた追跡情報50に、未特定図形情報500が含まれていないと判定すると、2次特定処理を終了する。この場合には、2次更新処理は行われない。
When the secondary specifying
以下では、1次更新処理が行われた追跡情報50に含まれる各対象未特定図形情報500が示す未特定第1楕円を「2次処理対象の第1楕円」と呼ぶことがある。2次処理の第1楕円には、状態が「被併合」の第1楕円は含まれない。また、現フレームでの当てはめ処理において得られた第2楕円のうち、1次特定処理で得られた特定済み第2楕円以外の第2楕円を「2次処理対象の第2楕円」と呼ぶことがある。2次特定部42は、2次処理対象の第1楕円に対応する第2楕円を、例えば最近傍法(Nearest Neighbor)を用いて、2次処理対象の第2楕円から特定する。図41は2次特定処理を示すフローチャートである。
Hereinafter, the unspecified first ellipse indicated by each target unspecified
図41に示されるように、ステップs431において、2次特定部42は、1次更新処理が行われた追跡情報50に未特定図形情報500が含まれるか否かを判定する。2次特定部41は、1次更新処理が行われた追跡情報50に未特定図形情報500が含まれていないと判定すると、2次特定処理を終了する。一方で、2次特定部41は、1次更新処理が行われた追跡情報50に未特定図形情報500が含まれていると判定すると、ステップs432を実行する。
As shown in FIG. 41, in step s431, the secondary specifying
ステップs432では、2次特定部42は、2次処理対象の第1楕円から一つの第1楕円を選択し、選択した第1楕円を選択第1楕円とする。ステップs432の後、ステップs433において、2次特定部42は、2次処理対象の第2楕円に含まれる未特定第2楕円から、選択第1楕円に最も位置が近い第2楕円を最近傍第2楕円として特定する。ステップs433において、2次特定部42は、例えば、選択第1楕円の中心に最も近い中心を有する未特定第2楕円を最近傍第2楕円とする。
In step s432, the secondary specifying
次にステップs434において、2次特定部42は、選択第1楕円と最近傍第2楕円との間の距離を求める。2次特定部42は、例えば、選択第1楕円の中心と最近傍第2楕円の中心との間の距離を、当該選択第1楕円と当該最近傍第2楕円との間の距離とする。そして、2次特定部42は、求めた距離が第5しきい値以下であるか否かを判定する。
Next, in step s434, the secondary specifying
2次特定部42は、ステップs434において、求めた距離が第5しきい値以下であると判定すると、ステップs435において、最近傍第2楕円を、選択第1楕円に対応する第2楕円に決定する。これにより、選択第1楕円は特定済み第1楕円となる。また、最近傍第2楕円が特定済み第2楕円となり、2次処理対象の第2楕円に特定済み第2楕円が含まれることになる。ステップs435の後、2次特定部42はステップs436を実行する。一方で、2次特定部42は、ステップs434において、求めた距離が第5しきい値よりも大きいと判定すると、ステップs436を実行する。求めた距離が第5しきい値よりも大きいと判定される場合には、最近傍第2楕円は未特定第2楕円のままである。
If the secondary specifying
ステップs436では、2次特定部42は、2次処理対象の第1楕円のすべてを処理したか否かを判定する。つまり、2次特定部42は、2次処理対象の第1楕円をすべて選択第1楕円としたか否かを判定する。ステップs436においてYesと判定されると、2次特定処理が終了する。一方で、ステップs436においてNoと判定されると、2次特定部42は再度ステップs432を実行する。ここでは、2次処理対象の第1楕円のうち、未だ処理されていない第1楕円、つまり未だ選択第1楕円とされていない第1楕円が選択されて、選択第1楕円とされる。次に、2次特定部41は、ステップs433を実行して、2次処理対象の第2楕円に含まれる未特定第2楕円から、選択第1楕円に最も位置が近い第2楕円を最近傍第2楕円として特定する。以後、2次特定部41は同様に動作する。
In step s436, the secondary specifying
このように、2次特定部42は、2次処理対象の第1楕円に最も位置が近い2次処理対象の第2楕円であって、当該第1楕円との距離が第5しきい値以下の2次処理対象の第2楕円を、当該第1楕円に対応する第2楕円として特定する。
As described above, the secondary specifying
なお、上記のステップs434では、2次特定部42は、選択第1楕円と最近傍第2楕円との間の距離が第5しきい値未満であるか否かを判定しても良い。この場合には、2次特定部42は、2次処理対象の第1楕円に最も位置が近い2次処理対象の第2楕円であって、当該第1楕円との距離が第5しきい値未満の2次処理対象の第2楕円を、当該第1楕円に対応する第2楕円として特定することになる。
In step s434 described above, the secondary specifying
<2次更新処理の詳細>
次に2次更新処理について詳細に説明する。2次更新処理において、更新部44は、2次特定処理で新たに得られた各特定済み第1楕円の図形情報500を2次更新対象の図形情報500とする。そして、更新部44は、2次更新対象の各図形情報500を、当該図形情報500が示す特定済み第1楕円に対応する第2楕円の楕円特定情報に基づいて更新する。
<Details of secondary update processing>
Next, the secondary update process will be described in detail. In the secondary update process, the
2次更新処理での図形情報500の更新方法は、当該図形情報500に含まれる状態情報502の値に応じて異なる。
The method for updating the
例えば、2次更新対象の図形情報500の状態情報502が「出現」を示す場合には、更新部44は、当該図形情報500に対応する楕円(人)が入力画像140上に継続して現れていると判定して、当該状態情報502を「存在」に変更する。そして、更新部44は、当該図形情報500の楕円特定情報503が、当該図形情報500が示す特定済み第1楕円に対応する第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。
For example, when the
2次更新対象の図形情報500の状態情報502が「存在」を示す場合には、更新部44は、当該状態情報502を「存在」のままとする。そして、更新部44は、当該図形情報500の楕円特定情報503が、当該図形情報500が示す特定済み第1楕円に対応する第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。
When the
2次更新対象の図形情報500の状態情報502が「併合」を示す場合には、更新部44は、当該状態情報502を「併合」のままとする。そして、更新部44は、当該図形情報500の楕円特定情報503が、当該図形情報500が示す特定済み第1楕円(併合主体第1楕円)に対応する第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。
When the
また、2次更新対象の図形情報500の状態情報502が「併合」を示す場合には、更新部44は、当該図形情報500が示す併合主体第1楕円に併合されている各被併合第1楕円の図形情報500も更新する。つまり、2次更新対象の図形情報500の状態情報502が「併合」を示す場合には、更新部44は、当該図形情報500に含まれる併合相手ID505が示すID501を含む図形情報500も更新する。具体的には、更新部44は、併合第1楕円の図形情報500の楕円特定情報503が、当該被併合第1楕円を併合する併合主体第1楕円に対応する第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。被併合第1楕円の図形情報500の状態情報502は「被併合」から変更されない。これにより、併合主体楕円の図形情報500の更新に応じて、当該併合主体楕円が併合する各被併合楕円の図形情報500が更新される。
In addition, when the
2次更新処理の対象の図形情報500の状態情報502が「消失」を示す場合には、更新部44は、当該図形情報500に対応する楕円(人)が入力画像140上に現れたと判定して、当該状態情報502を「存在」に変更する。また、更新部44は、当該図形情報500の楕円特定情報503が、当該図形情報500が示す特定済み第1楕円に対応する第2楕円の楕円特定情報と一致するように、当該楕円特定情報503を更新する。そして、更新部44は、当該図形500に含まれる消失時刻504を消去する。
When the
以上のようにして、1次更新処理された追跡情報50は、2次特定処理の結果に基づいて更新される。
As described above, the tracking
更新部44は、2次処理の後、2.5次処理(2.5次更新処理)を行う。つまり、更新部44は、1次更新処理及び2次更新処理が行われた追跡情報50に、消失楕円の図形情報500が含まれているか否かを判定する。追跡情報50に消失楕円の図形情報500が含まれている場合には、更新部44は、消失楕円の図形情報500に含まれる消失時刻504が、現在時刻よりも所定時間以上前であるか否かを判定する。更新部44は、図形情報500に含まれる消失時刻504が、現在時刻よりも所定時間以上前である場合には、当該図形情報500を追跡情報50から削除する。
The
このように、本例では、消失楕円の図形情報500、つまり、入力画像140に写らなくなった人に対応する楕円の図形情報500をすぐに削除するのではなく、人が写らなくなってからしばらく経過した後に削除している。これにより、人が物陰に一時的に隠れる場合など、人が写らなくなってからすぐに写るようになる場合に、写らなくなる前と、写るようになった後で、その人に対して同じ図形情報500を対応付けることができる。よって、人が入力画像140において一時的に写らなくなった場合であっても、その人の位置を追跡することができる。
Thus, in this example, the ellipse
<3次処理の詳細>
上述のように、2次特定処理では、第1楕円に対応付けられた第2楕円は、その後において、別の第1楕円に対応する第2楕円を特定する際の候補から除外されている。したがって、複数の第1楕円が当てはめられていた複数の人に対して共通の第2楕円が当てはめられた場合には、当該第2楕円は、当該複数の第1楕円のすべてに対応する第2楕円であるにもかかわらず、2次特定処理では、当該第2楕円は、当該複数の第1楕円のうちの1つの第1楕円だけに対応付けられる。
<Details of tertiary processing>
As described above, in the secondary specifying process, the second ellipse associated with the first ellipse is subsequently excluded from candidates for specifying the second ellipse corresponding to another first ellipse. Therefore, when a common second ellipse is applied to a plurality of people who have been fitted with a plurality of first ellipses, the second ellipse is a second corresponding to all of the plurality of first ellipses. In spite of being an ellipse, in the secondary specifying process, the second ellipse is associated with only one first ellipse among the plurality of first ellipses.
図42は、複数の第1楕円がそれぞれ当てはめられていた複数の人に対して共通の第2楕円が当てはめられた様子の一例を示す図である。図42の例では、3つの第1楕円250x1,250x2,250x3がそれぞれ当てはめられていた3人の人200に対して共通の1つの第2楕円250yが当てはめられている。図42の例では、第2楕円250yは、第1楕円250x1,250x2,250x3のすべてに対応する第2楕円であるにもかかわらず、2次特定処理では、第2楕円250yは、第1楕円250x1,250x2,250x3のうちの1つの第1楕円だけに対応する第2楕円として特定される。よって、2次特定処理後では、当該1つの第1楕円は特定済み第1楕円となり、第2楕円250yは特定済み第2楕円となり、第1楕円250x1,250x2,250x3のうちの残りの2つの第1楕円は未特定第1楕円となる。そのため、2次更新処理後では、当該残りの2つの第1楕円の図形情報500は更新されていない。
FIG. 42 is a diagram illustrating an example of a state in which a common second ellipse is applied to a plurality of persons to which a plurality of first ellipses are respectively applied. In the example of FIG. 42, one common
本例では、複数の第1楕円が当てはめられていた複数の人に対して1つの第2楕円が当てはめられた場合、便宜上、当該複数の第1楕円のうち、2次処理において当該第2楕円が対応付けられた特定済み第1楕円が当該第2楕円に遷移し、残りの未特定第1楕円は、当該第2楕円に併合されたと考える。 In this example, when one second ellipse is applied to a plurality of people who have been fitted with a plurality of first ellipses, for convenience, the second ellipse in the secondary process among the plurality of first ellipses. It is considered that the specified first ellipse associated with is transitioned to the second ellipse, and the remaining unspecified first ellipses are merged with the second ellipse.
3次特定処理において、3次特定部43は、2.5次更新処理が行われた追跡情報50に含まれる、未特定第1楕円の図形情報500(未特定図形情報500)が示す未特定第1楕円が、特定済み第2楕円に併合されているか否かを判定する。そして、3次特定部43は、未特定第1楕円が、特定済み第2楕円に併合されている場合には、当該特定済み第2楕円を、当該未特定第1楕円に対応する第2楕円として特定する。これにより、複数の第1楕円が当てはめられた複数の人に対して1つの第2楕円が当てはめられた場合、当該複数の第1楕円のうち、2次処理において当該第2楕円が対応付けられなかった未特定第1楕円を、適切に当該第2楕円に対応付けることができる。以下に、3次特定処理について詳細に説明する。
In the tertiary specifying process, the tertiary specifying
<3次特定処理の詳細>
3次特定処理において、3次特定部43は、2.5次更新処理が行われた追跡情報50に、未特定図形情報500が含まれているか否かを判定する。言い換えれば、3次特定部43は、1次更新処理、2次更新処理及び2.5次更新処理が行われた追跡情報50に、未だ更新されていない図形情報500が含まれるか否かを判定する。
<Details of tertiary identification processing>
In the tertiary specifying process, the tertiary specifying
3次特定部43は、2.5次更新処理が行われた追跡情報50に、未特定図形情報500が含まれていると判定すると、2.5次更新処理が行われた追跡情報50に含まれる、状態情報502が「被併合」以外を示す未特定図形情報500(対象未特定図形情報500)が示す未特定第1楕円が、特定済み第2楕円に併合されているか否かを判定する併合判定処理を行う。併合判定処理については後で説明する。そして、3次特定部43は、未特定第1楕円が、特定済み第2楕円に併合されていると判定すると、当該特定済み第2楕円を、未特定第1楕円に対応する第2楕円であると特定する。3次特定部43は、2.5次更新処理が行われた追跡情報50に、複数の対象未特定図形情報500が含まれている場合には、当該複数の対象未特定図形情報500のそれぞれついて同様の処理を行う。3次特定部44は、2.5次更新処理が行われた追跡情報50に、未特定図形情報500が含まれていないと判定すると、3次特定処理を終了する。なお、特定済み第2楕円に併合されていないと判定された未特定第1楕円は、3次更新処理において消失楕円となる。
When the tertiary specifying
以後、特定済み第2楕円に併合されているか否かが判定される未特定第1楕円を「3次処理対象の第1楕円」と呼ぶことがある。 Hereinafter, the unspecified first ellipse for which it is determined whether or not it has been merged with the specified second ellipse may be referred to as a “first ellipse to be tertiary processed”.
<併合判定処理の詳細>
併合判定処理において、3次特定部43は、3次処理対象の第1楕円が2つの条件を満足するときに、当該第1楕円が特定済み第2楕円に併合されていると判定する。
<Details of merge determination process>
In the merge determination process, the tertiary specifying
1つ目の条件は、3次処理対象の第1楕円に位置が近い特定済み第2楕円が存在するという条件である。以後、この1つ目の条件を「併合第1条件」と呼ぶことがある。また、3次処理対象の第1楕円に位置が近い特定済み第2楕円を「近傍特定済み第2楕円」と呼ぶ。 The first condition is that there is a specified second ellipse whose position is close to the first ellipse to be subjected to the tertiary processing. Hereinafter, the first condition may be referred to as “merging first condition”. Further, the specified second ellipse whose position is close to the first ellipse to be subjected to the tertiary processing is referred to as “neighbor specified second ellipse”.
2つの目の条件は、近傍特定済み第2楕円が、3次処理対象の第1楕円の少なくとも一部を内包しているという条件である。以後、この2つ目の条件を「併合第2条件」と呼ぶことがある。 The second condition is a condition that the second ellipse whose neighborhood has been specified includes at least a part of the first ellipse to be subjected to the tertiary processing. Hereinafter, the second condition may be referred to as “merge second condition”.
<併合第1条件の判定方法>
3次特定部43は、併合第1条件を満足するか否かを判定する際には、1次処理及び2次処理で得られた特定済み第2楕円に、近傍特定済み第2楕円が存在するか否かを判定する。3次特定部43は、例えば、3次処理対象の第1楕円の中心との距離が第6しきい値以下の中心を有する特定済み第2楕円を近傍特定済み第2楕円とする。つまり、3次特定部43は、1次処理及び2次処理で得られた特定済み第2楕円において、3次処理対象の第1楕円の中心との距離が第6しきい値以下の中心を有する特定済み第2楕円が存在するか否かを判定する。3次特定部44は、1次処理及び2次処理で得られた特定済み第2楕円において近傍特定済み第2楕円が存在すると判定すると、併合第1条件を満足すると判定する。一方で、3次特定部43は、1次処理及び2次処理で得られた特定済み第2楕円において近傍特定済み第2楕円が存在しないと判定すると、併合第1条件を満足しないと判定する。なお、3次処理対象の第1楕円の中心との距離が第6しきい値未満の中心を有する特定済み第2楕円を近傍特定済み第2楕円としても良い。
<Judgment method of merger first condition>
When the tertiary specifying
<併合第2条件の判定方法>
3次特定部43は、3次処理対象の第1楕円について併合第1条件を満足する場合にだけ、当該3次処理対象の第1楕円について併合第2条件を満足するか否かを判定する。3次処理部43は、1次処理及び2次処理で得られた特定済み第2楕円において、近傍特定済み第2楕円が1つだけ存在する場合は、その近傍特定済み第2楕円が3次処理対象の第1楕円の少なくとも一部を内包しているか否かを判定する。一方で、3次処理部43は、1次処理及び2次処理で得られた特定済み第2楕円において、近傍特定済み第2楕円が複数存在する場合は、その複数の近傍特定済み第2楕円のうち、3次処理対象の第1楕円に対して最も位置が近い近傍特定済み第2楕円を使用対象とする。そして、3次特定部43は、使用対象の近傍特定済み第2楕円が、3次処理対象の第1楕円の少なくとも一部を内包しているか否かを判定する。3次処理部43は、例えば、複数の近傍特定済み第2楕円のうち、その中心と、3次処理対象の第1楕円の中心との距離が最も小さい近傍特定済み第2楕円を使用対象とする。
<Judgment method of merger second condition>
The tertiary specifying
3次特定部43は、併合第2条件を満足するか否かを判定する際には、例えば、3次処理対象の第1楕円と、その長軸及び短軸との4つの交点を使用する(上述の図36参照)。3次特定部43は、4つの交点のうち所定数以上の交点が近傍特定済み第2楕円内に存在するとき、近傍特定済み第2楕円が、3次処理対象の第1楕円の少なくとも一部を内包していると判定する。つまり、3次特定部43は併合第2条件を満足すると判定する。一方で、3次特定部43は、4つの交点のうち所定数未満の交点だけが近傍特定済み第2楕円内に存在するとき、併合第2条件を満足しないと判定する。
When determining whether or not the merged second condition is satisfied, the tertiary specifying
以上のようにして、3次特定部43は、3次処理対象の第1楕円が、併合第1条件及び併合第2条件を満足するか否かを判定する。そして、3次特定部43は、3次処理対象の第1楕円が、併合第1条件及び併合第2条件を満足する場合には、当該第1楕円が、近傍特定済み第2楕円に併合されたと判定する。そして、3次特定部43は、近傍特定済み第2楕円を、3次処理対象の第1楕円に対応する第2楕円として特定する。これにより、3次処理対象の第1楕円は特定済み第1楕円となる。
As described above, the tertiary specifying
なお、上述の図42に示される場合などにおいては、3次処理対象の複数の第1楕円に対応する第2楕円として、同じ特定済み第1楕円が特定されることがある。例えば、図42の例において、3次処理対象の第1楕円が、第1楕円250x1,250x2であるとすると、3次特定処理では、この2つの第1楕円250x1,250x2に対応する第2楕円として、第2楕円250yが特定される。
In the case shown in FIG. 42 described above, the same specified first ellipse may be specified as the second ellipse corresponding to the plurality of first ellipses to be tertiary processed. For example, in the example of FIG. 42, if the first ellipse to be subjected to the tertiary processing is the first ellipse 250x1, 250x2, the second ellipse corresponding to the two first ellipses 250x1, 250x2 in the tertiary specifying process. As a result, the
3次特定部43は、併合第2条件を満足するか否かの判定を、上記とは異なる方法で行っても良い。例えば、3次特定部43は、3次処理対象の第1楕円の中心が近傍特定済み第2楕円内に存在する場合に、当該近傍特定済み第2楕円が、当該第1楕円の少なくとも一部を内包していると判定しても良い。
The
また、3次特定部43は、併合第2条件を使用せずに、3次処理対象の第1楕円が併合第1条件を満足する場合に、当該第1楕円が、近傍特定済み第2楕円に併合されたと判定しても良い。
In addition, the tertiary specifying
また、3次特定部43は、1次処理及び2次処理で得られた特定済み第2楕円において、3次処理対象の第1楕円の少なくとも一部を内包する特定済み第2楕円が存在する場合には、当該第1楕円が当該特定済み第2楕円に併合されていると判定しても良い。
The tertiary specifying
このように、3次処理対象の第1楕円が、特定済み第2楕円に併合されているか否かを判定することによって、人と楕円とを適切に対応付けることができる。よって、入力画像140上での楕円の位置の追跡によって、入力画像140での人の位置を適切に追跡することができる。
In this way, by determining whether or not the first ellipse to be subjected to the tertiary processing is merged with the specified second ellipse, it is possible to appropriately associate the person and the ellipse. Therefore, by tracking the position of the ellipse on the
また、3次処理対象の第1楕円が併合第1条件及び併合第2条件の両方を満足する場合に、当該第1楕円が、近傍特定済み第2楕円に併合されたと判定することによって、人と楕円とをより適切に対応付けることができる。よって、入力画像140での人の位置をより適切に追跡することができる。
In addition, when the first ellipse subject to the tertiary processing satisfies both the merged first condition and the merged second condition, it is determined that the first ellipse has been merged into the neighborhood-specified second ellipse. And an ellipse can be associated more appropriately. Therefore, the position of the person in the
<3次更新処理の詳細>
次に3次更新処理について詳細に説明する。3次更新処理において、更新部44は、3次特定処理で新たに得られた各特定済み第1楕円の図形情報500を更新する。以後、3次更新処理の対象の、特定済み第1楕円の図形情報500を「3次更新対象の第1楕円図形情報500」と呼ぶことがある。
<Details of tertiary update processing>
Next, the tertiary update process will be described in detail. In the tertiary update process, the
また、更新部44は、3次特定処理で新たに得られた特定済み第1楕円に対応する特定済み第2楕円の図形情報500を更新する。この図形情報500は、2次更新処理が行われた図形情報500である。以後、3次更新処理の対象の、特定済み第2楕円の図形情報500を「3次更新対象の第2楕円図形情報500」と呼ぶことがある。
Further, the updating
更新部44は、3次更新対象の第1楕円図形情報500を更新する際には、当該第1楕円図形情報500の状態情報502を「被併合」に設定する。また、更新部44は、3次更新対象の第1楕円図形情報500の楕円特定情報503が、当該第1楕円図形情報500が示す特定済み第1楕円が対応する特定済み第2楕円の楕円特定情報と一致するように当該楕円特定情報503を更新する。
The updating
更新部44が3次更新対象の第2楕円図形情報500を更新する処理は、当該第2楕円図形情報500の状態情報502が「併合」である場合と、「併合」以外の値である場合とで異なる。
The
まず、3次更新対象の第2楕円図形情報500の状態情報502が「併合」である場合の更新部44の動作について説明する。この場合には、更新部44は、3次更新対象の第2楕円図形情報500の状態情報502を「併合」のままとする。また、更新部44は、3次更新対象の第2楕円図形情報500の楕円特定情報503を変化させない。そして、更新部44は、3次更新対象の第2楕円図形情報500の併合相手ID505及び併合数506を更新する。具体的には、更新部44は、3次更新対象の第2楕円図形情報500が示す特定済み第2楕円に対応する、3次特定処理で得られた特定済み第1楕円の数がP(≧1)個である場合、併合相手ID505に、当該P個の特定済み第1楕円の図形情報500のID501を含めるとともに、併合数506の値を“P”だけ増加させる。これにより、2次更新処理されている3更新対象の第2楕円図形情報500が3次更新処理される。
First, the operation of the updating
次に、3次更新対象の第2楕円図形情報500の状態情報502が「併合」以外の値である場合の更新部44の動作について説明する。この場合には、更新部44は、3次更新対象の第2楕円図形情報500の状態情報502を「併合」に変化させる。また、更新部44は、3次更新対象の第2楕円図形情報500の楕円特定情報503を変化させない。そして、更新部44は、3次更新対象の第2楕円図形情報500に対して併合相手ID505及び併合数506を追加する。更新部44は、3次更新対象の第2楕円図形情報500が示す特定済み第2楕円に対応する、3次特定処理で得られた特定済み第1楕円の数がP個である場合、併合相手ID505に、当該P個の特定済み第1楕円の図形情報500のID501を含めるとともに、併合数506の値を“P”に設定する。これにより、2次更新処理されている3更新対象の第2楕円図形情報500が3次更新処理される。
Next, the operation of the updating
また、更新部44は、3次更新処理において、未特定第1楕円の図形情報500が2.5次更新処理後の追跡情報50に含まれている場合には、当該未特定第1楕円に対応する第2楕円は存在しないと判定する。つまり、更新部44は、当該図形情報500に対応する楕円が入力画像140上に現れなくなったと判定する。そして、更新部44は、当該図形情報500の状態情報502を「消失」に設定する。また、更新部44は、当該図形情報500に、消失時刻504として現在の時刻を含める。
In addition, in the tertiary update process, when the
また、更新部44は、現フレームでの当てはめ処理で得られた第2楕円のうち、未だ第1楕円が対応付けられていない未特定第2楕円の図形情報500を生成する。前フレームの入力画像140に写っていなかった人が現フレームの入力画像に写るようになった場合、当該人に当てはめられた第2楕円は、1次〜3次特定処理が終了した後、未特定第2楕円となっている。更新部44は、未だ第1楕円が対応付けられていない未特定第2楕円の図形情報500として、状態情報502が「出現」を示し、楕円特定情報503が当該未特定第2楕円の楕円特定情報を示す図形情報500を生成する。そして、更新部44は、生成した図形情報500を追跡情報50に追加する。
Further, the
以上のようにして、追跡処理部12が、1次処理、2次処理、2.5次処理及び3次処理を行うことによって、前フレームでの当てはめ処理で得られた各第1楕円について、現フレームでの当てはめ処理で得られた、当該第1楕円に対応する第2楕円を特定する第1対応特定処理と、消失楕円に対応する第2楕円を特定する第2対応特定処理とが行われる。そして、追跡処理部12が、当てはめ処理結果170が入力されるたびに、1次処理、2次処理、2.5次処理及び3次処理を行うことによって、追跡情報50が順次更新され、入力画像140上での楕円の位置が追跡される。追跡情報50に含まれる図形情報500の楕円特定情報503に含まれる中心座標が、当該図形情報500に対応する楕円の入力画像140上での現在の位置を示している。追跡情報50が順次更新されることによって、入力画像140(撮像画像110)上での人の位置が追跡されると言える。また、追跡情報50が順次更新されることによって、室内300内での人の位置が追跡されると言える。図形情報500の楕円特定情報503に含まれる中心座標は、当該図形情報500に対応する人の入力画像140上での現在の位置を示しており、さらに、当該図形情報500に対応する人の撮像画像110上での現在の位置を示している。
As described above, the
また、図形情報500に含まれる状態情報502を参照することによって、当該図形情報500に対応する人の室内300内での状態を把握することができる。例えば、図形情報500の状態情報502が「出現」を示す場合には、当該図形情報500に対応する人が室内300に入ってきたことを示す。また、追跡情報50に含まれる図形情報500の状態情報502が「存在」を示す場合には、当該図形情報500に対応する人が室内300に継続して存在することを示す。また、追跡情報50に含まれる図形情報500の状態情報502が「消失」を示す場合には、当該図形情報500に対応する人が室内300から出て行ったことを示す。また、追跡情報50に含まれる図形情報500の状態情報502が「併合」あるいは「被併合」を示す場合には、当該図形情報500に対応する人が室内300において他の人の近くに存在することを示す。
Further, by referring to the
<カウント部の詳細>
カウント部13は、追跡処理部12での追跡処理が終了すると、その追跡処理の結果に基づいて、現フレームの入力画像140に写る人の数を求める。具体的には、カウント部13は、追跡処理において更新された追跡情報50に基づいて、現フレームの入力画像140に写る人の数を求める。以下に、追跡情報50に基づいて、入力画像140に写る人の数を求める方法について説明する。
<Details of the counting unit>
When the tracking processing in the
本例では、カウント部13は、入力画像140に写る人の数を求める際に、追跡情報50のうち、状態情報502が「出現」を示す図形情報500と、状態情報502が「存在」を示す図形情報500と、状態情報502が「併合」を示す図形情報500とを使用する。
In this example, when the
ここで、追跡情報50に含まれる、状態情報502が「出現」を示す図形情報500の数をK1、追跡情報50に含まれる、状態情報502が「存在」を示す図形情報500の数をK2、追跡情報50に含まれる、状態情報502が「併合」を示す図形情報500の数をK3とする。また、追跡情報50に含まれる、状態情報502が「併合」を示す図形情報500に対して、1番からK3番までの番号を割り当てる。そして、k番(1≦k≦K3)の図形情報500に含まれる併合数506の値をJkとする。
Here, K1 is the number of
カウント部13は、以下の式(1)を用いて、入力画像140に写る人の総数Ktotalを求める。
The
状態情報502が「出現」を示す図形情報500は1人の人に対応している。また、状態情報502が「存在」を示す図形情報500は1人の人に対応している。そして、状態情報502が「併合」を示す図形情報500は、当該図形情報500に含まれる併合数506の値よりも1つだけ大きい数の人に対応している。したがって、現フレームの入力画像140に写る人の総数Ktotalは、式(1)のように表すことができる。
The
なお、カウント部13は、上記とは異なる方法で、入力画像140に写る人の数を求めても良い。例えば、カウント部13は、追跡情報50に含まれる、状態情報502が「消失」以外を示す図形情報500の数を、入力画像140に写る人の総数としても良い。
Note that the
また、本例では、ある入力画像140に初めて現れた人が、その次に生成される入力画像140に現れなくなる可能性は低いことから、カウント部13は、入力画像140に写る人の数を求める際に、状態情報502が「出現」を示す図形情報500を使用しなくても良い。この場合には、カウント部13は、例えば以下の式(2)を用いて、現フレームの入力画像140に写る人の総数Ktotalを求める。
In this example, since it is unlikely that a person who first appears in a
また、図形情報500の楕円特定情報503に含まれる中心座標は、当該図形情報500に対応する人の位置を示していることから、カウント部13は、室内300において、エリアごとに人数を求めることができる。例えば、室内300を4つのエリアに分割すると、カウント部13は、当該4つのエリアのそれぞれに人が何人いるか特定することができる。
Further, since the center coordinates included in the
図43は、前フレームの入力画像140に対して行われた当てはめ処理で得られた第1楕円を、前フレームの撮影画像110xに重ねた様子の一例を示す図である。図44は、現フレームの入力画像140に対して行われた当てはめ処理で得られた第2楕円を、現フレームの撮影画像110yに重ねた様子の一例を示す図である。
FIG. 43 is a diagram illustrating an example of a state in which the first ellipse obtained by the fitting process performed on the
図43には、人200z1,200z2に対して共通に当てはめられた第1楕円250x12と、人200z3に対して当てはめられた第1楕円250x3とが示されている。また図43には、前フレームの入力画像140についての当てはめ処理結果170に基づいて更新された追跡情報50に含まれる、状態情報502が「消失」を示す図形情報500が示す消失楕円250x4が示されている。
FIG. 43 shows a first ellipse 250x12 that is commonly applied to the persons 200z1 and 200z2, and a first ellipse 250x3 that is applied to the person 200z3. FIG. 43 also shows an erasure ellipse 250x4 indicated by the
図44には、人200z1に当てはめられた第2楕円250y1と、人200z2に対して当てはめられた第2楕円250y2と、人200z3に対して当てはめられた第2楕円250y3と、人200z4に対して当てはめられた第2楕円250y4とが示されている。 44 shows a second ellipse 250y1 fitted to the person 200z1, a second ellipse 250y2 fitted to the person 200z2, a second ellipse 250y3 fitted to the person 200z3, and a person 200z4. A fitted second ellipse 250y4 is shown.
図43に示される第1楕円250x12は、併合主体第1楕円250x12である(被併合第1楕円250x12とも言える)。併合主体第1楕円250x12は、図44に示される2つの第2楕円250y1,250y2に分離している。また、消失楕円250x4は、人200z4に当てはめられていた楕円であって、入力画像140に写らないようになった人200z4が、現フレームの入力画像140において写るようになっている。
The first ellipse 250x12 shown in FIG. 43 is the merged main first ellipse 250x12 (also referred to as the merged first ellipse 250x12). The merged main first ellipse 250x12 is separated into two second ellipses 250y1 and 250y2 shown in FIG. Further, the disappearing ellipse 250x4 is an ellipse that has been applied to the person 200z4, and the person 200z4 that is not shown in the
図43,44の例では、1次特定処理において、2つの第2楕円250y1,250y2が、併合主体第1楕円250x12に対応する第2楕円として特定される。したがって、1次更新処理では、併合主体第1楕円250x12の図形情報500及び被併合第1楕円250x12の図形情報500の状態情報502がともに「存在」に設定される。
In the example of FIGS. 43 and 44, in the primary specifying process, the two second ellipses 250y1 and 250y2 are specified as the second ellipses corresponding to the merged main first ellipse 250x12. Therefore, in the primary update process, both the
2次特定処理では、2次処理対象の第1楕円250x3及び消失楕円250x4に対応する第2楕円が、2次処理対象の第2楕円250y3,250y4から特定される。ここでは、第2楕円250y3が、第1楕円250x3に対応する第2楕円として特定され、第2楕円250y4が、消失楕円250x4に対応する第2楕円として特定される。2次更新処理において、消失楕円250x4の図形情報500の状態情報502は「消失」から「存在」に変更される。なお、図43,44の例では、3次処理対象の第1楕円が存在しない。
In the secondary specifying process, the second ellipse corresponding to the first ellipse 250x3 and the disappearing ellipse 250x4 as the secondary processing target is specified from the second ellipses 250y3 and 250y4 as the secondary processing target. Here, the second ellipse 250y3 is specified as the second ellipse corresponding to the first ellipse 250x3, and the second ellipse 250y4 is specified as the second ellipse corresponding to the disappearing ellipse 250x4. In the secondary update process, the
図45は、前フレームの入力画像140に対して行われた当てはめ処理で得られた第1楕円を、前フレームの撮影画像110xに重ねた様子の他の例を示す図である。図46は、現フレームの入力画像140に対して行われた当てはめ処理で得られた第2楕円を、現フレームの撮影画像110yに重ねた様子の他の例を示す図である。
FIG. 45 is a diagram illustrating another example of a state in which the first ellipse obtained by the fitting process performed on the
図45には、人200z1に対して当てはめられた第1楕円250x1と、人200z2に対して当てはめられた第1楕円250x2と、人200z3に対して当てはめられた第1楕円250x3と、人200z4に対して当てはめられた第1楕円250x4とが示されている。 FIG. 45 shows a first ellipse 250x1 fitted to the person 200z1, a first ellipse 250x2 fitted to the person 200z2, a first ellipse 250x3 fitted to the person 200z3, and a person 200z4. A first ellipse 250x4 fitted to it is shown.
図46には、2人の人200z1,z2に対して共通に当てはめられた第2楕円250y12と、人200z3に対して当てはめられた第2楕円250y3と、人200z5に対して当てはめられた第2楕円250y5とが示されている。また図46には、現フレームの入力画像140についての当てはめ処理結果170に基づいて更新された追跡情報50に含まれる、状態情報502が「消失」を示す図形情報500が示す消失楕円250y4が示されている。
In FIG. 46, a second ellipse 250y12 that is commonly applied to two persons 200z1 and z2, a second ellipse 250y3 that is applied to person 200z3, and a second ellipse 250y3 that is applied to person 200z5. An ellipse 250y5 is shown. FIG. 46 also shows an erasure ellipse 250y4 indicated by the
図45,46の例では、前フレームでの当てはめ処理で得られた第1楕円に、併合主体第1楕円が含まれていないことから、1次処理は行われない。 45 and 46, since the first ellipse obtained by the fitting process in the previous frame does not include the merged subject first ellipse, the primary process is not performed.
2次特定処理では、2次処理対象の第1楕円250x1〜250x4に対応する第2楕円が、2次処理対象の第2楕円250y12,250y3,250y5から特定される。この例では、第2楕円250y3が、第1楕円250x3に対応する第2楕円として特定される。また、第2楕円250y12が、第1楕円250x1,250x2の一方、例えば第1楕円250x1に対応する第2楕円として特定される。2次更新処理では、第1楕円250x1の図形情報500が更新され、当該図形情報500は第2楕円y12に関する情報となる。第1楕円250x4に近い第2楕円が存在しないことから、2次特定処理では、第1楕円250x4に対応する第2楕円は特定されない。また、第1楕円250x1,250x2の他方、つまり第1楕円250x2に対応する第2楕円も特定されない。
In the secondary specifying process, the second ellipse corresponding to the first ellipse 250x1 to 250x4 that is the secondary processing target is specified from the second ellipses 250y12, 250y3, and 250y5 that are the secondary processing target. In this example, the second ellipse 250y3 is specified as the second ellipse corresponding to the first ellipse 250x3. Further, the second ellipse 250y12 is specified as one of the first ellipses 250x1 and 250x2, for example, the second ellipse corresponding to the first ellipse 250x1. In the secondary update process, the
3次特定処理では、3次処理対象の第1楕円250x2,250x4に対応する第2楕円が、特定済み第2楕円250y12,250y3から特定される。この例では、第1楕円250x2に対応する第2楕円として、特定済み第2楕円250y12が特定される。第1楕円250x4に近い特定済み第2楕円は存在しないことから、3次特定処理では、第1楕円250x4に対応する第2楕円は特定されない。 In the tertiary specifying process, the second ellipse corresponding to the first ellipse 250x2 and 250x4 to be subjected to the tertiary process is specified from the specified second ellipses 250y12 and 250y3. In this example, the identified second ellipse 250y12 is identified as the second ellipse corresponding to the first ellipse 250x2. Since there is no specified second ellipse close to the first ellipse 250x4, the second ellipse corresponding to the first ellipse 250x4 is not specified in the tertiary specifying process.
3次更新処理では、3次特定処理で新たに得られた特定済み第1楕円250x1の図形情報500の状態情報502が「被併合」に設定される。また、第1楕円250x1に対応する第2楕円y12の図形情報500(2次更新処理で更新された第1楕円250x1の図形情報500)の状態情報502が「併合」に設定される。
In the tertiary update process, the
また3次更新処理では、3次更新処理後の追跡情報50に含まれる、未特定第1楕円250x4の図形情報500の状態情報502が「消失」に設定される。そして、3次更新処理では、現フレームでの当てはめ処理で得られた第2楕円のうち、未だ第1楕円が対応付けられていない未特定第2楕円250y5の図形情報500が生成されて、追跡情報50に追加される。当該図形情報500の状態情報502は「出現」に設定される。
In the tertiary update process, the
なお、上記の例では、1次更新処理において、併合主体楕円の図形情報500の楕円特定情報503の更新した場合には、それに応じて、当該併合主体楕円が併合する被併合楕円の図形情報500の楕円特定情報503を更新していたが、当該併合主体楕円が併合する被併合楕円の図形情報500の楕円特定情報503を、最後、つまり3次更新処理で行っても良い。同様に、2次更新処理において、併合主体楕円の図形情報500の楕円特定情報503の更新した場合には、当該併合主体楕円が併合する被併合楕円の図形情報500の楕円特定情報503を、最後、つまり3次更新処理で行っても良い。
In the above example, when the
また、上記の例では、併合主体楕円の図形情報500の楕円特定情報503の更新に応じて、当該併合主体楕円が併合する被併合楕円の図形情報500の楕円特定情報503を更新していたが、当該被併合楕円の図形情報500の楕円特定情報503を更新しなくても良い。この場合には、被併合楕円の図形情報500の楕円特定情報503を使用する必要がある場合には、更新されない当該楕円特定情報503の代わりに、当該被併合楕円を統合する統合主体楕円の図形情報500の楕円特定情報503を使用する。
In the above example, the
また、上記の例では、入力画像140に写る人に対して楕円を当てはめていたが、他の図形を当てはめても良い。例えば、入力画像140に写る人に対して矩形を当てはめても良い。入力画像140上での対象物の位置を追跡する場合には、入力画像140に写る対象物の形状に応じて、当該対象物に当てはめる図形を決定することが好ましい。
In the above example, an ellipse is applied to the person shown in the
また、1次処理、2次処理、2.5次処理及び3次処理の実行の順番を入れ替えることが可能である。例えば、2.5次処理を1次処理の前に実行しても良い。また、2次処理を1次処理の前に実行しても良い。 In addition, the order of execution of the primary process, the secondary process, the 2.5th process, and the tertiary process can be switched. For example, the 2.5th order process may be executed before the primary process. Further, the secondary process may be executed before the primary process.
<画像処理システムの利用例>
以上のような画像処理システム1は、様々な用途で利用することができる。例えば、画像処理システム1は、室内300の空調制御に利用することができる。例えば、カウント部13が、室内300の総人数を求める場合には、カウント部13が求めた総人数が零になると、室内300の各空調機を停止することができる。また、カウント部13が求める総数が零から1以上に変化すると、室内300の各空調機を動作せることができる。また、カウント部13が、室内300の各エリアでの人数を求める場合には、人数が多いエリアの温度を下げたり、人数が少ないエリアの温度を上げたりすることができる。
<Usage example of image processing system>
The
また、画像処理システム1は、室内300の照明制御に利用することができる。例えば、カウント部13が、室内300の総人数を求める場合には、カウント部13が求めた総人数が零になると、室内300の各照明器具を消灯することができる。また、カウント部13が求める総数が零から1以上に変化すると、室内300の各照明器具を点灯させることができる。また、カウント部13が、室内300の各エリアでの人数を求める場合には、人数が零になったエリアだけの照明器具を消灯することができる。
The
また、画像処理システム1は、室内300の入退室管理に利用することができる。例えば、カウント部13が、室内300の総人数を求める場合には、カウント部13が求めた総人数が零になると、室内300から人がすべて退出したと判断して、室内300を監視するセキュリティシステムを動作させることができる。
The
また、画像処理システム1は、室内300を自動で掃除する掃除ロボットの制御に利用することができる。例えば、随時更新される追跡情報50を監視し、その監視結果から、室内300において人が多くの時間存在していたエリアを特定する。そして、そのエリアを重点的に掃除するように掃除ロボットを制御することができる。
Further, the
また、画像処理システム1はマーケティングに利用することができる。例えば、カメラ2が美術館に設置され、画像処理装置3が美術館での人の位置を追跡する場合には、追跡情報50を監視することによって、人が良く集まる展示物、つまり人気のある展示物を特定することができる。
The
また、画像処理システム1は、駐車場管理に利用することができる。例えば、カメラ2が駐車場に設置され、画像処理装置3が駐車場での車の位置を追跡する場合には、カウント部13で駐車場内の車の台数を求めることができる。これにより、駐車場に空きがあるか否かを自動判定することができる。
The
また、画像処理システム1は、養殖において利用することができる。例えば、養殖場での生け簀内の様子をカメラ2で撮影し、画像処理装置3がカメラ2での撮影画像に基づいて生け簀内の養殖魚の数を求めることができる。
The
また、画像処理システム1は、牧場において利用することができる。例えば、牧場の様子カメラ2で撮影し、画像処理装置3がカメラ2での撮像画像に基づいて牧場での馬あるいは羊の数を求めることができる。
Further, the
以上のように、画像処理装置3は、入力画像140に写る人に対して図形を当てはめ、当該図形の入力画像140上での位置を追跡することによって、入力画像140上での人の位置を追跡している。したがって、画像処理装置3の処理負荷を低減することができる。
As described above, the
<各種変形例>
以下に各種変形例について説明する。
<Various modifications>
Various modifications will be described below.
<第1変形例>
人が室内300を同じ距離だけ移動したとしても、カメラ2と人との距離が離れるにつれて、入力画像140(撮像画像110)上では人の移動距離は小さくなる。したがって、人の入力画像140上の移動距離は、入力画像140における、カメラ2の位置に対応する位置、つまり入力画像140の中心141から離れるほど小さくなる。つまり、人の入力画像140上の移動距離は、中心141から近い位置では大きくなるが、中心141から遠い位置では小さくなる。よって、入力画像140の中心に近い位置では、前フレームの入力画像140に写る人と、現フレームの入力画像140に写る人との間の距離がある程度大きい場合であっても、それらの人は同一人物であると言えるが、入力画像140の中心から遠い位置では、当該距離がある程度小さくないと、それらの人は同一人物であるとは言えない。
<First Modification>
Even if the person moves the
そこで、本変形例では、2次特定処理において、選択第1楕円の位置(例えば選択第1楕円の中心)が入力画像140の中心141から離れるほど、選択第1楕円と最近傍第2楕円との間の距離と比較される第5しきい値を小さくする。これにより、選択第1楕円が当てはめられた人と同一の人に対して当てはめられた第2楕円を適切に特定することができる。
Therefore, in the present modification, in the secondary specifying process, the selected first ellipse and the nearest second ellipse are separated as the position of the selected first ellipse (for example, the center of the selected first ellipse) is further away from the
本変形例では、第5しきい値は複数段階に変化する。例えば、第5しきい値は、値A1〜A4の4段階に変換する。ここで、A1<A2<A3<A4である。図47に示されるように、選択第1楕円の位置が、中心141からの距離がd1までの領域AR1内に存在する場合には、第5しきい値はA4に設定される。選択第1楕円の位置が、中心141からの距離がd1からd2(>d1)までの領域AR2内に存在する場合には、第5しきい値はA3に設定される。選択第1楕円の位置が、中心141からの距離がd2からd3(>d2)までの領域AR3内に存在する場合には、第5しきい値はA2に設定される。そして、選択第1楕円の位置が、中心141からの距離がd3よりも大きい領域AR4内に存在する場合には、第5しきい値はA1に設定される。第5しきい値の変化の態様はこの限りではない。例えば、第5しきい値は2段階に変化しても良い。
In the present modification, the fifth threshold value changes in a plurality of stages. For example, the fifth threshold value is converted into four levels of values A1 to A4. Here, A1 <A2 <A3 <A4. As shown in FIG. 47, when the position of the selected first ellipse exists in the area AR1 whose distance from the
なお、カメラ2が水平画角180度のカメラである場合には、入力画像140における、カメラ2の位置に対応する位置145は、図48のようになる。位置145は、入力画像140における、水平方向に延びる一辺146の長手方向の中心に存在する。このような場合には、領域AR1〜AR5は図48に示されるようになる。位置145は、入力画像140上において、撮影画像110に写る人の俯瞰角度が撮影画像110で最大となる位置(俯瞰角度最大位置)に対応する対応位置でもある。
If the
<第2変形例>
上述のように、人の入力画像140上の移動距離は、入力画像140の中心141から離れるほど小さくなる。したがって、上述の図42に示されるように、複数の第1楕円250x1〜250x3が当てはめられた複数の人200に対して1つの第2楕円250yが当てはめられた場合、入力画像140上での当該複数の第1楕円250x1〜250x3の位置は、中心141から離れるほど、入力画像140上での第2楕円250yの位置に近くなる。
<Second Modification>
As described above, the moving distance of the person on the
そこで、本変形例では、3次特定処理において、3次処理対象の第1楕円の位置(例えば第1楕円の中心)が、入力画像140の中心141から離れるほど、当該第1楕円に近い特定済み第2楕円が存在するか否かを判定する際に使用される第6しきい値を小さくする。これにより、3次処理対象の第1楕円が特定済み第2楕円に併合されているか否かをより適切に判定することができる。
Therefore, in the present modification, in the tertiary specifying process, the position of the first ellipse to be processed (for example, the center of the first ellipse) is specified closer to the first ellipse as the distance from the
本変形例では、第6しきい値は、第1変形例での第5しきい値と同様に、例えば、値B1〜B4の4段階に変換する。ここで、B1<B2<B3<B4である。上述の図47,48に示されるように、3次処理対象の第1楕円の位置が領域AR1内に存在する場合には、第6しきい値はB4に設定される。3次処理対象の第1楕円の位置が領域AR2内に存在する場合には、第6しきい値はB3に設定される。3次処理対象の第1楕円の位置が領域AR3内に存在する場合には、第6しきい値はB2に設定される。そして、3次処理対象の第1楕円の位置が領域AR4内に存在する場合には、第6しきい値はB1に設定される。第6しきい値の変化の態様はこの限りではない。 In the present modification, the sixth threshold value is converted into, for example, four stages of values B1 to B4, similarly to the fifth threshold value in the first modification example. Here, B1 <B2 <B3 <B4. As shown in FIGS. 47 and 48 described above, when the position of the first ellipse to be subjected to the tertiary processing is present in the area AR1, the sixth threshold value is set to B4. When the position of the first ellipse to be subjected to the tertiary processing exists in the area AR2, the sixth threshold value is set to B3. When the position of the first ellipse to be subjected to the tertiary processing is present in the area AR3, the sixth threshold value is set to B2. When the position of the first ellipse to be subjected to the tertiary processing exists in the area AR4, the sixth threshold value is set to B1. The mode of change of the sixth threshold value is not limited to this.
<第3変形例>
撮像画像110において、俯瞰角度最大位置から離れるほど、人は、俯瞰角度最大位置から外側に向かう方向に沿って延びるように写る。そのため、当てはめ処理において、入力画像140に写る1人の人に対して複数の楕円が当てはめられた場合、入力画像140における、俯瞰角度最大位置に対応する位置から離れるほど、当該複数の楕円の間の距離は大きくなる傾向にある。上記の例では、入力画像140における、俯瞰角度最大位置に対応する位置は、入力画像140の中心141である。したがって、当てはめ処理において、入力画像140に写る1人の人に対して複数の楕円が当てはめられた場合、入力画像140の中心141から離れるほど、当該複数の楕円の間の距離は大きくなる傾向にある。
<Third Modification>
In the captured
そこで、本変形例では、楕円統合処理において、第1及び第2対象楕円を統合して得られる統合楕円の位置(例えば統合楕円の中心の位置)が入力画像140の中心141から離れるほど、当該第1及び第2対象楕円が第1条件を満足しているか否かを判定する際に使用される第1しきい値を大きくする。この場合には、上述の図14に示されるフローチャーにおいて、ステップs346の前に、統合楕円が求められる。これにより、第1及び第2対象楕円が1人の人に対して当てはめられているか否かをより適切に判断することができる。
Therefore, in this modification, in the ellipse integration process, the position of the integrated ellipse obtained by integrating the first and second target ellipses (for example, the position of the center of the integrated ellipse) is farther from the
本変形例では、第1しきい値は、例えば、値C1〜C4の4段階に変換する。ここで、C1<C2<C3<C4である。上述の図47,48に示されるように、統合楕円の位置が領域AR1内に存在する場合には、第1しきい値はC1に設定される。統合楕円の位置が領域AR2内に存在する場合には、第1しきい値はC2に設定される。統合楕円の位置が領域AR3内に存在する場合には、第1しきい値はC3に設定される。そして、統合楕円の位置が領域AR4内に存在する場合には、第1しきい値はC4に設定される。第1しきい値の変化の態様はこの限りではない。 In the present modification, the first threshold value is converted into, for example, four levels of values C1 to C4. Here, C1 <C2 <C3 <C4. As shown in FIGS. 47 and 48 described above, when the position of the integrated ellipse exists in the area AR1, the first threshold value is set to C1. When the position of the integrated ellipse exists in the area AR2, the first threshold value is set to C2. When the position of the integrated ellipse exists in the area AR3, the first threshold value is set to C3. When the position of the integrated ellipse exists in the area AR4, the first threshold value is set to C4. The mode of change of the first threshold value is not limited to this.
なお、統合楕円の大きさは、入力画像140の中心から離れるほど大きくなる。したがって、楕円統合処理では、第3条件が満足しているか否かを判定する際に、統合楕円の大きさと比較される第2しきい値を、第1しきい値と同様に変化させても良い。
Note that the size of the integrated ellipse increases as the distance from the center of the
また、カメラ2と人との距離が大きい場合には、撮像画像110において、当該人は小さく写ることになる。カメラ2の撮影範囲が狭い場合には、カメラ2と人との距離の影響をあまり受けずに、撮像画像110において、俯瞰角度最大位置から離れるほど、人は延びるように写る。一方で、カメラ2の撮影範囲が広い場合には、俯瞰角度最大位置(カメラ2の位置に対応する位置)からある程度以上離れると、カメラ2と人との距離の影響を受けて、逆に、俯瞰角度最大位置から離れるほど人は縮んで写るようになる。
In addition, when the distance between the
このような場合には、統合楕円の位置が、入力画像140の中心141から所定範囲内に存在する場合には、当該統合楕円の位置が中心141から離れるほど第1しきい値を大きくする。そして、統合楕円の位置が所定範囲外に存在する場合には、当該統合楕円の位置が中心141から離れるほど第1しきい値を小さくする。例えば、図49に示されるように、統合楕円の位置が、入力画像140の中心141から距離d14までの所定範囲149内に存在する場合には、当該統合楕円の位置が中心141から離れるほど第1しきい値を大きくする。例えば、統合楕円の位置が、中心141からの距離がd11までの領域AR11内に存在する場合には、第1しきい値はC1に設定される。統合楕円の位置が、中心141からの距離がd11からd12(>d11)までの領域AR12内に存在する場合には、第1しきい値はC2に設定される。統合楕円の位置が、中心141からの距離がd12からd13(>d12)までの領域AR13内に存在する場合には、第1しきい値はC3に設定される。そして、統合楕円の位置が、中心141からの距離がd13からd14(>d13)までの領域AR14内に存在する場合には、第1しきい値はC4に設定される。なお、図49において、所定範囲149は斜線で示されている。
In such a case, when the position of the integrated ellipse is within a predetermined range from the
一方で、統合楕円の位置が所定範囲149外に存在する場合には、当該統合楕円の位置が中心141から離れるほど第1しきい値を小さくする。例えば、統合楕円の位置が、中心141からの距離がd14からd15(>d15)までの領域AR15内に存在する場合には、第1しきい値はC3に設定される。そして、統合楕円の位置が、中心141からの距離がd15よりも大きい領域AR16内に存在する場合には、第1しきい値はC2に設定される。
On the other hand, when the position of the integrated ellipse is outside the
このように、統合楕円の位置に応じて第1しきい値を変化させることにより、俯瞰角度最大位置からある程度以上離れると、カメラ2と人との距離の影響を受けて、逆に、俯瞰角度最大位置から離れるほど人は縮んで写るようになる場合であっても、第1及び第2対象楕円が1人の人に対して当てはめられているか否かをより適切に判断することができる。
In this way, by changing the first threshold value according to the position of the integrated ellipse, if the distance from the maximum overhead angle position is more than a certain extent, the overhead angle is adversely affected by the distance between the
なお、カメラ2が水平画角180度のカメラである場合には、所定範囲149、領域AR11〜AR16は、例えば図50のようになる。
When the
また、俯瞰角度最大位置からある程度以上離れると、カメラ2と人との距離の影響を受けて、逆に、俯瞰角度最大位置から離れるほど人は縮んで写るようになる場合には、第2しきい値を第1しきい値と同様に変化させてもよい。
In addition, if the person is more distant from the maximum bird's-eye angle position due to the influence of the distance between the
<第4変形例>
上述のように、撮像画像110において、俯瞰角度最大位置から離れるほど、人は延びるように写る。そのため、1つの第1楕円が当てはめられていた2人の人に対して、2つの第2楕円がそれぞれ当てはめられた場合、第1楕円の大きさと、各第2楕円の大きさとの差は、入力画像140の中心141から離れるほど大きくなる。
<Fourth Modification>
As described above, in the captured
そこで、本変形例では、1次特定処理において、併合主体第1楕円の位置が、入力画像140の中心から離れるほど、当該併合主体第1楕円の大きさから、最近傍第2楕円の大きさを差し引いて得られる差分値と比較される第4しきい値を大きくする。これにより、併合主体第1楕円が複数の楕円に分離したことをより適切に判定することができる。第4しきい値は、例えば、上記の第3変形例での第1しきい値と同様に変化させることができる。
Therefore, in the present modification, in the primary specifying process, the size of the nearest second ellipse is determined from the size of the merged subject first ellipse as the position of the merged subject first ellipse is further away from the center of the
なお、上述のように、俯瞰角度最大位置からある程度以上離れると、カメラ2と人との距離の影響を受けて、俯瞰角度最大位置から離れるほど人が縮んで写るようになる場合がある。このような場合には、上記の第3変形例と同様に、併合楕円の位置が、入力画像140の中心141から所定範囲内に存在する場合には、当該併合楕円の位置が中心141から離れるほど第4しきい値を大きくする。そして、併合楕円の位置が所定範囲外に存在する場合には、当該併合楕円の位置が中心141から離れるほど第4しきい値を小さくする。
In addition, as described above, when the user is away from the maximum bird's-eye angle position to some extent, the person may appear to be shrunk as the distance from the highest bird's-eye angle position is influenced by the distance between the
<第5変形例>
撮像画像110において、人の俯瞰角度が大きい位置では、人は、俯瞰角度最大位置から離れる方向に沿って延びるようには写らないことがある。
<Fifth Modification>
In the captured
そこで、本変形例では、楕円統合処理において、第1対象楕円と第2対象楕円とを統合して得られる統合楕円の位置(例えば統合楕円の中心)と、入力画像140の中心141との差が第7しきい値以下の場合には、第2条件を使用しない。つまり、第1対象楕円と第2対象楕円とを統合して得られる統合楕円の位置と、入力画像140の中心141との差が第7しきい値以下の場合には、第2条件を満足するか否かにかかわらず、第1条件及び第3条件を満足するときには、当該第1及び第2対象楕円が1人の人に対して当てはめられたと判断する。言い換えれば、第1対象楕円と第2対象楕円とを統合して得られる統合楕円が、入力画像140の中心141から所定範囲内に位置する場合には、第2条件を満足するか否かにかかわらず、第1条件及び第3条件を満足するときには、当該第1及び第2対象楕円が1人の人に対して当てはめられたと判断する。一方で、第1対象楕円と第2対象楕円とを統合して得られる統合楕円の位置と、入力画像140の中心141との差が第7しきい値以上の場合には、上記と同様に、第1条件、第2条件及び第3条件を満足するときに、当該第1及び第2対象楕円が1人の人に対して当てはめられたと判断する。これにより、第1及び第2対象楕円が1人の人に対して当てはめられているか否かをより適切に判断することができる。
Therefore, in this modification, in the ellipse integration process, the difference between the position of the integrated ellipse obtained by integrating the first target ellipse and the second target ellipse (for example, the center of the integrated ellipse) and the
なお、統合楕円の位置と、入力画像140の中心141との差が第7しきい値未満の場合に、第2条件を使用しなくても良い。
Note that the second condition may not be used when the difference between the position of the integrated ellipse and the
以上のように、画像処理システム1は詳細に説明されたが、上記した説明は、全ての局面において例示であって、この発明がそれに限定されるものではない。また、上述した各種変形例は、相互に矛盾しない限り組み合わせて適用可能である。そして、例示されていない無数の変形例が、この発明の範囲から外れることなく想定され得るものと解される。
As described above, the
1 画像処理システム
2 カメラ
3 画像処理装置
6 制御プログラム
10 画像処理部
11 当てはめ処理部
12 追跡処理部
13 カウント部
DESCRIPTION OF
Claims (29)
前記当てはめ処理の結果に基づいて、前記入力画像上での前記図形の位置を追跡することによって、前記入力画像での前記対象物の位置を追跡する追跡処理を行う第2処理部と
を備え、
前記第1処理部は、
前記入力画像に写る前記対象物に対して図形を当てはめる第3処理部と、
前記第3処理部において、一つの前記対象物に対して複数の図形が当てはめられた場合には、当該複数の図形を統合して得られる一つの新たな図形を、当該複数の図形の代わりに採用する第4処理部と
を有する、画像処理装置。 A first processing unit that performs a fitting process for fitting a figure to each of the plurality of input images in which objects at different times are captured,
A second processing unit that performs a tracking process for tracking the position of the object in the input image by tracking the position of the graphic on the input image based on the result of the fitting process ;
The first processing unit includes:
A third processing unit for applying a figure to the object shown in the input image;
In the third processing unit, when a plurality of figures are applied to one object, one new figure obtained by integrating the plurality of figures is used instead of the plurality of figures. A fourth processing unit to be adopted
An image processing apparatus.
前記追跡処理の結果に基づいて、前記入力画像に写る前記対象物の数を求める第5処理部をさらに備える、画像処理装置。 The image processing apparatus according to claim 1,
An image processing apparatus, further comprising: a fifth processing unit that obtains the number of objects in the input image based on a result of the tracking process.
前記第2処理部は、前記図形に関する図形情報を生成し、
前記第2処理部は、前記当てはめ処理の結果に基づいて、前記図形情報を更新する更新処理を行う、画像処理装置。 An image processing apparatus according to any one of claims 1 and 2,
The second processing unit generates graphic information regarding the graphic,
The image processing apparatus, wherein the second processing unit performs an update process for updating the graphic information based on a result of the fitting process.
前記図形情報は、前記図形の状態を示す状態情報と、前記図形を特定するための図形特定情報とを含む、画像処理装置。 The image processing apparatus according to claim 3,
The graphic information is an image processing apparatus including state information indicating a state of the graphic and graphic specifying information for specifying the graphic.
前記第2処理部は、第1時刻での前記対象物が写る第1入力画像についての前記当てはめ処理において得られた各第1図形について、当該第1時刻よりも後の第2時刻での前記対象物が写る第2入力画像についての前記当てはめ処理において得られた、当該第1図形に対応する対応第2図形を特定する対応特定処理を行い、
前記第2処理部は、前記対応特定処理の結果に基づいて前記更新処理を行う、画像処理装置。 An image processing apparatus according to any one of claims 3 and 4,
The second processing unit, for each first graphic obtained in the fitting process for the first input image in which the object is captured at the first time, at the second time after the first time. Performing a correspondence specifying process for specifying a corresponding second graphic corresponding to the first graphic obtained in the fitting process for the second input image in which the object is captured;
The image processing apparatus, wherein the second processing unit performs the update process based on a result of the correspondence specifying process.
前記第2処理部は、
前記第1図形に対応する前記対応第2図形を特定する際には、
前記第2入力画像についての前記当てはめ処理において得られた第2図形のうち、前記第1図形に最も位置が近い第2図形であって、前記第1図形との第1距離が第1しきい値以下あるいは未満の第2図形である近傍第2図形を、前記対応第2図形として特定する、画像処理装置。 The image processing apparatus according to claim 5,
The second processing unit includes:
When specifying the corresponding second graphic corresponding to the first graphic,
Among the second figures obtained in the fitting process for the second input image, the second figure is closest to the first figure, and the first distance from the first figure is the first threshold. An image processing apparatus that identifies a neighboring second graphic that is a second graphic less than or less than a value as the corresponding second graphic.
前記第2処理部は、前記対応特定処理において、
前記第1及び第2入力画像についての前記当てはめ処理の結果に基づいて、
前記第1入力画像についての前記当てはめ処理において得られた複数の第1図形が当てはめられた複数の対象物に対して、前記第2入力画像についての前記当てはめ処理において一つの第2図形が当てはめられたか否かを判定する、画像処理装置。 The image processing apparatus according to claim 5,
In the correspondence specifying process, the second processing unit includes:
Based on the result of the fitting process for the first and second input images,
One second figure is applied in the fitting process for the second input image to a plurality of objects to which the plurality of first figures obtained in the fitting process for the first input image are applied. An image processing apparatus for determining whether or not
前記第2処理部は、
前記第1図形に対応する前記対応第2図形を特定する際には、
前記第2入力画像についての前記当てはめ処理において得られた第2図形のうち、前記第1図形に最も位置が近い第2図形であって、前記第1図形との第1距離が第1しきい値以下あるいは未満の第2図形である近傍第2図形を、前記対応第2図形として特定し、
前記第2処理部は、前記近傍第2図形が前記対応第2図形として特定されなかった前記第1図形である未特定第1図形が存在する場合には、当該未特定第1図形との第2距離が第2しきい値以下あるいは未満である前記対応第2図形が存在するとき、当該対応第2図形に対応する前記第1図形が当てはめられた前記対象物だけではなく、当該未特定第1図形が当てはめられた前記対象物に対しても、当該対応第2図形が当てはめられたと判定する、画像処理装置。 The image processing apparatus according to claim 7,
The second processing unit includes:
When specifying the corresponding second graphic corresponding to the first graphic,
Among the second figures obtained in the fitting process for the second input image, the second figure is closest to the first figure, and the first distance from the first figure is the first threshold. A neighboring second graphic that is a second graphic less than or less than the value is identified as the corresponding second graphic;
When there is an unspecified first graphic that is the first graphic for which the neighboring second graphic has not been specified as the corresponding second graphic, the second processing unit determines whether the second specific graphic with the unspecified first graphic is When there is the corresponding second graphic whose two distances are less than or less than the second threshold value, not only the object to which the first graphic corresponding to the corresponding second graphic is applied, but also the unspecified first graphic. An image processing apparatus that determines that the corresponding second graphic is also applied to the object to which one graphic is applied.
前記第2処理部は、
前記第1図形に対応する前記対応第2図形を特定する際には、
前記第2入力画像についての前記当てはめ処理において得られた第2図形のうち、前記第1図形に最も位置が近い第2図形であって、前記第1図形との第1距離が第1しきい値以下あるいは未満の第2図形である近傍第2図形を、前記対応第2図形として特定し、
前記第2処理部は、前記近傍第2図形が前記対応第2図形として特定されなかった前記第1図形である未特定第1図形が存在する場合には、当該未特定第1図形の少なくとも一部の領域を内包する前記対応第2図形が存在するとき、当該対応第2図形に対応する前記第1図形が当てはめられた前記対象物だけではなく、当該未特定第1図形が当てはめられた前記対象物に対しても、当該対応第2図形が当てはめられたと判定する、画像処理装置。 The image processing apparatus according to claim 7,
The second processing unit includes:
When specifying the corresponding second graphic corresponding to the first graphic,
Among the second figures obtained in the fitting process for the second input image, the second figure is closest to the first figure, and the first distance from the first figure is the first threshold. A neighboring second graphic that is a second graphic less than or less than the value is identified as the corresponding second graphic;
In the case where there is an unspecified first graphic that is the first graphic for which the neighboring second graphic is not specified as the corresponding second graphic, the second processing unit includes at least one of the unspecified first graphic. When the corresponding second graphic including the area of the part exists, not only the object to which the first graphic corresponding to the corresponding second graphic is applied, but also the unspecified first graphic is applied. An image processing apparatus that determines that the corresponding second graphic is also applied to an object.
前記第2処理部は、前記近傍第2図形が前記対応第2図形として特定されなかった前記第1図形である未特定第1図形が存在する場合には、当該未特定第1図形との第2距離が第2しきい値以下あるいは未満であって、当該未特定第1図形の少なくとも一部の領域を内包する前記対応第2図形が存在するとき、当該対応第2図形に対応する前記第1図形が当てはめられた前記対象物だけではなく、当該未特定第1図形が当てはめられた前記対象物に対しても、当該対応第2図形が当てはめられたと判定する、画像処理装置。 The image processing apparatus according to claim 9,
When there is an unspecified first graphic that is the first graphic for which the neighboring second graphic has not been specified as the corresponding second graphic, the second processing unit determines whether the second specific graphic with the unspecified first graphic is When two corresponding distances are less than or less than a second threshold and there is the corresponding second graphic including at least a part of the unspecified first graphic, the second corresponding to the corresponding second graphic An image processing apparatus that determines that the corresponding second graphic is applied not only to the object to which one graphic is applied, but also to the object to which the unspecified first graphic is applied.
前記入力画像は、前記対象物を撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、
前記第2処理部は、前記第1図形の位置が、前記第1入力画像における、前記カメラの位置に対応する対応位置から離れるほど、当該第1図形に対応する前記対応第2図形を特定する際に使用される前記第1しきい値を小さく設定する、画像処理装置。 An image processing apparatus according to any one of claims 6, 8, 9, and 10,
The input image is an image obtained by image processing of a captured image captured by a camera that captures the object,
The second processing unit identifies the corresponding second graphic corresponding to the first graphic as the position of the first graphic is further away from the corresponding position corresponding to the position of the camera in the first input image. An image processing apparatus that sets the first threshold value used at the time to be small.
前記第2処理部は、前記未特定第1図形の位置が、前記第1入力画像上において、前記カメラの位置に対応する対応位置から離れるほど、前記第2しきい値を小さく設定する、画像処理装置。 An image processing apparatus according to any one of claims 8 and 10,
The second processing unit sets the second threshold value to be smaller as the position of the unspecified first graphic moves away from the corresponding position corresponding to the position of the camera on the first input image. Processing equipment.
前記第2処理部は、前記対応特定処理において、
前記第1及び第2入力画像についての前記当てはめ処理の結果に基づいて、
前記第1入力画像についての前記当てはめ処理において得られた一つの第1図形が当てはめられた複数の対象物に対して、前記第2入力画像についての前記当てはめ処理において複数の第2図形が当てはめられた否かを判定する、画像処理装置。 An image processing apparatus according to any one of claims 5 to 12,
In the correspondence specifying process, the second processing unit includes:
Based on the result of the fitting process for the first and second input images,
A plurality of second figures are applied in the fitting process for the second input image to a plurality of objects to which one first figure obtained in the fitting process for the first input image is applied. An image processing apparatus for determining whether or not the
前記第2処理部は、前記一つの第1図形の大きさから、当該一つの第1図形に最も位置が近い、前記第2入力画像についての前記当てはめ処理において得られた第2図形の大きさを差し引いて得られる差分値が第3しきい値よりも大きいあるいは当該第3しきい値以上であって、かつ、当該一つの第1図形において、前記第2入力画像についての前記当てはめ処理において得られた複数の第2図形のそれぞれの少なくとも一部の領域が内包される場合には、前記一つの第1図形に対応する複数の対象物に対して、当該複数の第2図形が当てはめられたと判定する、画像処理装置。 The image processing apparatus according to claim 13,
The second processing unit determines the size of the second graphic obtained in the fitting process for the second input image that is closest in position to the one first graphic from the size of the one first graphic. The difference value obtained by subtracting is greater than or equal to the third threshold value, and is obtained in the fitting process for the second input image in the one first graphic. When at least a part of each of the plurality of second figures is included, the plurality of second figures are applied to a plurality of objects corresponding to the one first figure. An image processing apparatus for determining.
前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、
前記第2処理部は、前記一つの第1図形の位置が、前記第1入力画像上において、前記撮影画像に写る人の撮影俯角が前記撮影画像で最大となる位置に対応する対応位置から離れるほど、前記第3しきい値を大きく設定する、画像処理装置。 The image processing apparatus according to claim 14,
The input image is an image obtained by performing image processing on a photographed image photographed by a camera that photographs the object in an overhead view,
The second processing unit moves the position of the one first figure away from a corresponding position corresponding to a position where a shooting depression angle of a person appearing in the captured image is maximum in the captured image on the first input image. The image processing apparatus sets the third threshold value to be larger.
前記第2処理部は、
前記一つの第1図形の位置が、前記対応位置から第1所定範囲内に存在する場合には、前記一つの第1図形の位置が前記対応位置から離れるほど前記第3しきい値を大きく設定し、
前記一つの第1図形の位置が前記第1所定範囲外に存在する場合には、前記一つの第1図形の位置が前記対応位置から離れるほど前記第3しきい値を小さく設定する、画像処理装置。 The image processing apparatus according to claim 15, wherein
The second processing unit includes:
When the position of the first graphic is within a first predetermined range from the corresponding position, the third threshold value is set to be larger as the position of the first graphic is farther from the corresponding position. And
Image processing in which, when the position of the first graphic is outside the first predetermined range, the third threshold value is set smaller as the position of the first graphic is farther from the corresponding position. apparatus.
前記第2処理部は、前記対応特定処理において、前記入力画像に写らなくなった前記対象物に当てはめられた前記図形である第3図形に対応する、前記第2入力画像についての前記当てはめ処理において得られた第2図形を特定し、その特定結果に基づいて、当該第3図形についての前記図形情報を更新し、
前記第2処理部は、前記入力画像に写らなくなった前記対象物に当てはめられた前記第3図形についての前記図形情報を、前記対象物が前記入力画像に写らなくなってから所定時間経過した後に消去する、画像処理装置。 An image processing apparatus according to any one of claims 5 to 16, comprising:
The second processing unit is obtained in the fitting process for the second input image corresponding to the third graphic that is the graphic applied to the object that is no longer shown in the input image in the correspondence specifying process. The second graphic is identified, and based on the identification result, the graphic information about the third graphic is updated,
The second processing unit erases the graphic information about the third graphic applied to the object that is no longer shown in the input image after a predetermined time has elapsed since the target no longer appears in the input image. An image processing apparatus.
前記第4処理部は、
前記第3処理部で得られた2つの図形の間の第3距離が第4しきい値以下あるいは未満であり、かつ当該2つの図形を統合して得られる一つの新たな図形の大ききが第5しきい値以下あるいは未満の場合、
当該2つの図形が一つの前記対象物に対して当てはめられたと判断して、当該新たな図形を当該2つの図形の代わりに採用する、画像処理装置。 An image processing apparatus according to any one of claims 1 to 17 ,
The fourth processing unit includes:
The third distance between the two graphics obtained by the third processing unit is less than or less than the fourth threshold value, and the size of one new graphic obtained by integrating the two graphics is increased. If below or below the fifth threshold,
An image processing apparatus that determines that the two graphics are applied to one object and employs the new graphics instead of the two graphics.
前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、
前記第4処理部は、
前記第3処理部で得られた2つの図形が、前記入力画像上において、前記撮影画像に写る人の撮影俯角が前記撮影画像で最大となる位置に対応する対応位置から延びる1本の第1直線上に位置し、かつ当該2つの図形の間の前記第3距離が前記第4しきい値以下あるいは未満であり、かつ当該2つの図形を統合して得られる一つの新たな図形の大ききが前記第5しきい値以下あるいは未満の場合、
当該2つの図形が一つの前記対象物に対して当てはめられたと判断して、当該新たな図形を当該2つの図形の代わりに採用する、画像処理装置。 The image processing apparatus according to claim 18 , wherein
The input image is an image obtained by performing image processing on a photographed image photographed by a camera that photographs the object in an overhead view,
The fourth processing unit includes:
Two first figures obtained by the third processing unit extend from corresponding positions corresponding to positions where a shooting depression angle of a person appearing in the captured image is maximum in the captured image on the input image. One new figure that is located on a straight line and the third distance between the two figures is less than or less than the fourth threshold and that is obtained by integrating the two figures Is less than or less than the fifth threshold,
An image processing apparatus that determines that the two graphics are applied to one object and employs the new graphics instead of the two graphics.
前記図形は楕円であって、
前記第4処理部は、前記第3処理部で得られた2つの楕円のうちの一方の楕円の中心から、当該2つの楕円のうちの他方の楕円の中心までを結ぶ第2直線が当該一方の楕円と交わる第1交点と、当該第2直線が当該他方の楕円と交わる第2交点との間の距離を、前記第3距離とする、画像処理装置。 An image processing apparatus according to any one of claims 18 and 19 ,
The figure is an ellipse,
The fourth processing unit includes a second straight line connecting the center of one ellipse of the two ellipses obtained by the third processing unit to the center of the other ellipse of the two ellipses. An image processing apparatus, wherein a distance between a first intersection that intersects the ellipse and a second intersection that intersects the other ellipse is the third distance.
前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、
前記第4処理部は、2つの図形の間の前記第3距離と比較される前記第4しきい値を、当該2つの図形を統合して得られる新たな図形の位置が、前記撮影画像において撮影俯角が最大となる位置に対応する入力画像での対応位置から離れるほど大きく設定する、画像処理装置。 The image processing apparatus according to claim 18 , wherein
The input image is an image obtained by performing image processing on a photographed image photographed by a camera that photographs the object in an overhead view,
The fourth processing unit sets the fourth threshold value to be compared with the third distance between two figures, and the position of a new figure obtained by integrating the two figures in the captured image. An image processing apparatus that is set to increase as the distance from the corresponding position in the input image corresponding to the position where the shooting depression angle is maximized.
前記第4処理部は、
2つの図形を統合して得られる新たな図形の位置が前記対応位置から第2所定範囲内に存在する場合には、当該2つの図形の間の前記第3距離と比較される前記第4しきい値を、当該新たな図形の位置が前記対応位置から離れるほど大きく設定し、
2つの図形を統合して得られる新たな図形の位置が前記第2所定範囲外に存在する場合には、当該2つの図形の間の前記第3距離と比較される前記第4しきい値を、当該新たな図形の位置が前記対応位置から離れるほど小さく設定する、画像処理装置。 The image processing apparatus according to claim 21 ,
The fourth processing unit includes:
When the position of a new figure obtained by integrating two figures is within a second predetermined range from the corresponding position, the fourth distance is compared with the third distance between the two figures. Set the threshold value so that the position of the new figure is farther from the corresponding position,
When the position of a new figure obtained by integrating two figures is outside the second predetermined range, the fourth threshold value to be compared with the third distance between the two figures is set. An image processing apparatus that sets the position of the new figure so small that the position of the new figure is far from the corresponding position.
前記入力画像は、前記対象物を俯瞰撮影するカメラで撮影された撮影画像が画像処理されることによって得られた画像であって、
前記第4処理部は、2つの図形を統合して得られる新たな図形の大ききと比較される前記第5しきい値を、当該新たな図形の位置が、前記撮影画像において撮影俯角が最大となる位置に対応する入力画像での対応位置から離れるほど大きく設定する、画像処理装置。 The image processing apparatus according to claim 18 , wherein
The input image is an image obtained by performing image processing on a photographed image photographed by a camera that photographs the object in an overhead view,
The fourth processing unit sets the fifth threshold value to be compared with the size of a new figure obtained by integrating two figures, the position of the new figure being the maximum shooting depression angle in the photographed image. The image processing apparatus is set so as to increase as the distance from the corresponding position in the input image corresponding to the position becomes.
前記第4処理部は、
2つの図形を統合して得られる新たな図形の位置が前記対応位置から第2所定範囲内に存在する場合には、当該新たな図形の大きさと比較される前記第5しきい値を、当該新たな図形の位置が前記対応位置から離れるほど大きく設定し、
2つの図形を統合して得られる新たな図形の位置が前記第2所定範囲外に存在する場合には、当該新たな図形の大きさと比較される前記第5しきい値を、当該新たな図形の位置が前記対応位置から離れるほど小さく設定する、画像処理装置。 The image processing apparatus according to claim 23 , wherein
The fourth processing unit includes:
When the position of a new figure obtained by integrating two figures is within a second predetermined range from the corresponding position, the fifth threshold value to be compared with the size of the new figure is set to Set the position of the new figure as far away from the corresponding position,
When the position of a new figure obtained by integrating two figures is outside the second predetermined range, the fifth threshold value to be compared with the size of the new figure is set as the new figure. An image processing apparatus that sets the position to be smaller as the position of the distance from the corresponding position increases.
前記第4処理部は、2つの図形を統合して得られる一つの新たな図形の位置と前記対応位置との差が第6しきい値以下あるいは未満の場合には、当該2つの図形が前記第1直線上に位置するか否かにかかわらず、当該2つの図形の間の前記第3距離が前記第4しきい値以下あるいは未満であり、かつ当該新たな図形の大ききが前記第5しきい値以下あるいは未満のとき、当該2つの図形が一つの前記対象物に対して当てはめられたと判断して、当該新たな図形を当該2つの図形の代わりに採用する、画像処理装置。 The image processing apparatus according to claim 19 ,
When the difference between the position of one new figure obtained by integrating two figures and the corresponding position is less than or less than a sixth threshold value, the fourth processing unit Regardless of whether or not it is located on the first straight line, the third distance between the two figures is less than or less than the fourth threshold value, and the size of the new figure is the fifth. An image processing apparatus that determines that the two graphics are applied to one of the objects when the threshold is less than or less than a threshold, and adopts the new graphics instead of the two graphics.
前記対象物を撮影するカメラで撮影された撮影画像に対して画像処理を行って前記入力画像を生成する第6処理部をさらに備える、画像処理装置。 An image processing apparatus according to any one of claims 1 to 25 , wherein:
An image processing apparatus, further comprising: a sixth processing unit that performs image processing on a captured image captured by a camera that captures the object and generates the input image.
前記画像処理装置の前記第6処理部が前記画像処理を行う前記撮影画像を撮影するカメラと
を備える、画像処理システム。 An image processing device according to claim 26 ;
An image processing system, wherein the sixth processing unit of the image processing apparatus includes a camera that captures the captured image that performs the image processing.
前記当てはめ処理の結果に基づいて、前記入力画像での前記図形の位置を追跡することによって、前記入力画像での前記対象物の位置を追跡する追跡処理を行う第2工程と
を備え、
前記第1工程において、一つの前記対象物に対して複数の図形が当てはめられた場合には、当該複数の図形を統合して得られる一つの新たな図形を、当該複数の図形の代わりに採用する、画像処理装置の動作方法。 A first step of performing a fitting process for fitting a figure to each of the plurality of input images in which the objects at different times are captured,
A second step of performing a tracking process for tracking the position of the object in the input image by tracking the position of the graphic in the input image based on the result of the fitting process ,
In the first step, when a plurality of figures are applied to one object, one new figure obtained by integrating the plurality of figures is used instead of the plurality of figures. A method of operating the image processing apparatus.
前記画像処理装置に、
互いに異なる時刻での対象物が写る複数枚の入力画像のそれぞれについて、当該入力画像に写る当該対象物に対して図形を当てはめる当てはめ処理を行う第1工程と、
前記当てはめ処理の結果に基づいて、前記入力画像での前記図形の位置を追跡することによって、前記入力画像での前記対象物の位置を追跡する追跡処理を行う第2工程と
を実行させ、
前記第1工程において、一つの前記対象物に対して複数の図形が当てはめられた場合には、当該複数の図形を統合して得られる一つの新たな図形を、当該複数の図形の代わりに採用する処理を実行させるための制御プログラム。 A control program for controlling an image processing apparatus,
In the image processing apparatus,
A first step of performing a fitting process for fitting a figure to each of the plurality of input images in which the objects at different times are captured,
Performing a tracking process for tracking the position of the object in the input image by tracking the position of the figure in the input image based on the result of the fitting process ; and
In the first step, when a plurality of figures are applied to one object, one new figure obtained by integrating the plurality of figures is used instead of the plurality of figures. control program order processing by the execution of.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015219138A JP6568772B2 (en) | 2015-11-09 | 2015-11-09 | Image processing apparatus, image processing system, operation method of image processing apparatus, and control program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015219138A JP6568772B2 (en) | 2015-11-09 | 2015-11-09 | Image processing apparatus, image processing system, operation method of image processing apparatus, and control program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017091127A JP2017091127A (en) | 2017-05-25 |
| JP6568772B2 true JP6568772B2 (en) | 2019-08-28 |
Family
ID=58768298
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015219138A Expired - Fee Related JP6568772B2 (en) | 2015-11-09 | 2015-11-09 | Image processing apparatus, image processing system, operation method of image processing apparatus, and control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6568772B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2021125137A (en) * | 2020-02-07 | 2021-08-30 | オムロン株式会社 | Image processing apparatus and image processing method |
| JP7074161B2 (en) * | 2020-07-07 | 2022-05-24 | フジテック株式会社 | Image processing device and image processing method |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008134939A (en) * | 2006-11-29 | 2008-06-12 | Nippon Telegr & Teleph Corp <Ntt> | Moving body tracking device, moving body tracking method, moving body tracking program describing the method, and recording medium storing the program |
| JP4819866B2 (en) * | 2008-12-26 | 2011-11-24 | 日本電信電話株式会社 | Image tracking device, image tracking method, and image tracking program |
| JP5758165B2 (en) * | 2011-03-30 | 2015-08-05 | セコム株式会社 | Article detection device and stationary person detection device |
| JP6240016B2 (en) * | 2014-03-31 | 2017-11-29 | セコム株式会社 | Tracking device and tracking system |
-
2015
- 2015-11-09 JP JP2015219138A patent/JP6568772B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017091127A (en) | 2017-05-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101064573B1 (en) | System to track moving objects using particle filtration | |
| JP4971191B2 (en) | Identification of spurious areas in video frames | |
| US11106920B2 (en) | People flow estimation device, display control device, people flow estimation method, and recording medium | |
| JP4741650B2 (en) | Method of object tracking in video sequence | |
| JP4643766B1 (en) | Moving body detection apparatus and moving body detection method | |
| JP5528151B2 (en) | Object tracking device, object tracking method, and object tracking program | |
| US9478033B1 (en) | Particle-based tracking of objects within images | |
| US20130343604A1 (en) | Video processing apparatus and video processing method | |
| JP4926603B2 (en) | Smoke detector | |
| JP5832910B2 (en) | Image monitoring device | |
| CN107403436A (en) | A kind of character contour quick detection and tracking based on depth image | |
| US20160253554A1 (en) | Determination device and determination method | |
| JP6568772B2 (en) | Image processing apparatus, image processing system, operation method of image processing apparatus, and control program | |
| JPH08329254A (en) | Contour extractor | |
| WO2016194770A1 (en) | Image processing device for recognition of end of queue | |
| JP5261546B2 (en) | Smoke detector | |
| JP4813289B2 (en) | Smoke detector | |
| JP2014026370A (en) | Image area segmentation device and image area segmentation program | |
| JP4926602B2 (en) | Smoke detector | |
| KR102161212B1 (en) | System and method for motion detecting | |
| JP5128454B2 (en) | Wrinkle detection device, wrinkle detection method and program | |
| JP4750758B2 (en) | Attention area extraction method, attention area extraction device, computer program, and recording medium | |
| JP6177708B2 (en) | Moving object detection device, moving object detection method, and control program | |
| JP6396051B2 (en) | Area state estimation device, area state estimation method, program, and environment control system | |
| KR20120071287A (en) | Apparatus and method for tracking position using webcam |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180222 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190208 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190219 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190328 |
|
| 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: 20190709 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190805 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6568772 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |