Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6098320B2 - Image processing apparatus, image processing method, and image processing program - Google Patents
[go: Go Back, main page]

JP6098320B2 - Image processing apparatus, image processing method, and image processing program - Google Patents

Image processing apparatus, image processing method, and image processing program Download PDF

Info

Publication number
JP6098320B2
JP6098320B2 JP2013085283A JP2013085283A JP6098320B2 JP 6098320 B2 JP6098320 B2 JP 6098320B2 JP 2013085283 A JP2013085283 A JP 2013085283A JP 2013085283 A JP2013085283 A JP 2013085283A JP 6098320 B2 JP6098320 B2 JP 6098320B2
Authority
JP
Japan
Prior art keywords
processing
frame
moving image
image
unit
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
Application number
JP2013085283A
Other languages
Japanese (ja)
Other versions
JP2014206934A (en
Inventor
広太郎 吉野
広太郎 吉野
世紅 労
世紅 労
海虹 張
海虹 張
剛 倉田
剛 倉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP2013085283A priority Critical patent/JP6098320B2/en
Publication of JP2014206934A publication Critical patent/JP2014206934A/en
Application granted granted Critical
Publication of JP6098320B2 publication Critical patent/JP6098320B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

この発明は、ビデオカメラ等で撮像した動画像を処理し、撮像されているオブジェクトの検出や追跡を行う画像処理にかかる技術に関する。   The present invention relates to a technique related to image processing for processing a moving image captured by a video camera or the like and detecting or tracking a captured object.

従来、ビデオカメラ等で撮像した動画像を処理し、撮像されているオブジェクト(人や車両等の移動体)を追跡することが行われている(例えば、特許文献1等参照)。動画像によるオブジェクトの追跡は、動画像を構成するフレーム画像毎に、そのフレーム画像に撮像されているオブジェクトを検出し、時間的に連続するフレーム画像間で撮像されているオブジェクト(検出したオブジェクト)を同定することにより行っている。   2. Description of the Related Art Conventionally, moving images captured by a video camera or the like are processed to track an imaged object (a moving object such as a person or a vehicle) (see, for example, Patent Document 1). In tracking an object using a moving image, for each frame image constituting the moving image, an object captured in the frame image is detected, and an object captured between temporally consecutive frame images (detected object) It is done by identifying.

また、オブジェクトの追跡を、動画像を構成するフレーム画像毎に、オブジェクトの検出、および検出したオブジェクトの同定を繰り返す逐次処理で行うと、その処理時間が長くなる。そこで、この処理時間を短縮するために、動画像を予め定めたフレーム数で処理ブロックに分割し、複数のコアを有するCPUや複数のPCを結合したPCクラスタ等で、分割した処理ブロックをマルチスレッド方式で並行処理することが考えられている。   Further, if the tracking of the object is performed by sequential processing that repeats the detection of the object and the identification of the detected object for each frame image constituting the moving image, the processing time becomes long. Therefore, in order to shorten the processing time, the moving image is divided into processing blocks with a predetermined number of frames, and the divided processing blocks are divided into multi blocks by a CPU having a plurality of cores or a PC cluster in which a plurality of PCs are combined. It is considered to perform parallel processing using a thread method.

特開2002−133421号公報JP 2002-133421 A

しかしながら、上述のマルチスレッド方式では、時間的に連続する処理ブロック間で、追跡しているオブジェクトを同定する(処理結果を統合する)マージ処理が必要になる。このマージ処理は、同定するオブジェクトの個数が多くなるにつれて、その処理時間が長くなる。   However, the above-described multi-thread method requires merge processing for identifying the object being tracked (integrating the processing results) between temporally continuous processing blocks. This merging process takes a longer processing time as the number of objects to be identified increases.

このため、マルチスレッド方式による動画像に撮像されているオブジェクトを追跡する処理において、マージ処理を効率的に行い、処理時間を短縮する技術が要望されている。   Therefore, there is a demand for a technique for efficiently performing a merge process and shortening a processing time in a process of tracking an object captured in a moving image by a multi-thread method.

この発明の目的は、マルチスレッド方式による動画像に撮像されているオブジェクトの追跡にかかる処理において、マージ処理が効率的に行え、処理時間を十分に短縮することができる技術を提供することにある。   An object of the present invention is to provide a technique capable of efficiently performing a merge process and sufficiently shortening a processing time in a process related to tracking an object captured in a moving image by a multi-thread method. .

この発明の画像処理装置は、上述の目的を達するために、以下のように構成している。   In order to achieve the above object, the image processing apparatus of the present invention is configured as follows.

フレーム画像抽出部は、入力された動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出する。この動画像は、例えばビデオカメラで撮像した動画像である。フレーム画像抽出部におけるフレーム抽出間隔は、例えば数フレーム〜数十フレーム程度である。ただし、フレーム抽出間隔は、上記の範囲外に設定してもよいことはいうまでもない。また、フレーム抽出間隔は、動画像からサンプル的に抽出したフレーム画像に撮像されているオブジェクトの個数に応じて定める構成としてもよい。また、この場合、フレーム抽出間隔は、撮像されているオブジェクトの個数に応じて、動的に変化させてもよい。   The frame image extraction unit extracts a frame image related to the input moving image at a predetermined frame extraction interval. This moving image is, for example, a moving image captured by a video camera. The frame extraction interval in the frame image extraction unit is, for example, about several frames to several tens of frames. However, it goes without saying that the frame extraction interval may be set outside the above range. The frame extraction interval may be determined according to the number of objects captured in a frame image sampled from a moving image. In this case, the frame extraction interval may be dynamically changed according to the number of objects being imaged.

分割処理部は、入力された動画像を複数の処理ブロックに分割する。オブジェクト追跡部は、分割処理部が分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡する。マージ処理部は、分割処理部が分割した複数の処理ブロックについて、オブジェクト追跡部がマルチスレッドで処理したオブジェクトの追跡結果を統合する。   The division processing unit divides the input moving image into a plurality of processing blocks. The object tracking unit processes a plurality of processing blocks divided by the division processing unit with multi-threads, and tracks an object captured in the moving image. The merge processing unit integrates the tracking results of the objects processed by the object tracking unit using multithreads for a plurality of processing blocks divided by the division processing unit.

また、この画像処理装置は、フレーム画像抽出部が抽出した複数のフレーム画像について、そのフレーム画像に撮像されているオブジェクトの個数を検出するオブジェクト数検出部を備えている。そして、分割処理部は、フレーム画像抽出部が抽出した複数のフレーム画像について、オブジェクト数検出部が検出したオブジェクトの個数に基づき、入力された動画像を複数の処理ブロックに分割する。   The image processing apparatus further includes an object number detection unit that detects the number of objects captured in the frame image for a plurality of frame images extracted by the frame image extraction unit. Then, the division processing unit divides the input moving image into a plurality of processing blocks based on the number of objects detected by the object number detection unit for the plurality of frame images extracted by the frame image extraction unit.

例えば、分割処理部は、入力された動画像において、撮像されているオブジェクトの個数が予め定めた値以上である箇所を、それ以外の箇所よりもフレーム数を多くした処理ブロックに分割する。これにより、時間的に連続する処理ブロック間で処理結果を統合するマージ処理において、同定するオブジェクトの個数が比較的多いマージ処理の回数が抑えられる。これにより、マルチスレッド方式による動画像に撮像されているオブジェクトを追跡する処理において、マージ処理にかかる処理時間を短縮することができる。   For example, the division processing unit divides a portion in the input moving image where the number of captured objects is equal to or greater than a predetermined value into processing blocks having a larger number of frames than other portions. This reduces the number of merge processes in which the number of objects to be identified is relatively large in the merge process in which the process results are integrated between temporally continuous process blocks. Accordingly, it is possible to reduce the processing time required for the merge process in the process of tracking the object captured in the moving image by the multi-thread method.

また、オブジェクト数検出部は、フレーム画像抽出部が抽出した複数のフレーム画像について検出した撮像されているオブジェクトの個数に基づき、入力された動画像における撮像されているオブジェクトの個数の変動を推定する構成としてもよい。このようにすれば、オブジェクト数検出部が撮像されているオブジェクトの個数を検出するフレーム画像を抑えることができ、動画像に撮像されているオブジェクトの追跡にかかる処理が一層効率的に行える。この場合、分割処理部は、オブジェクト数検出部が推定した、入力された動画像における撮像されているオブジェクトの個数の変動に基づき、この動画像を複数の処理ブロックに分割すればよい。   The object number detection unit estimates a variation in the number of captured objects in the input moving image based on the number of captured objects detected for the plurality of frame images extracted by the frame image extraction unit. It is good also as a structure. In this way, it is possible to suppress the frame image in which the number of objects captured by the object number detection unit is detected, and the processing for tracking the object captured in the moving image can be performed more efficiently. In this case, the division processing unit may divide the moving image into a plurality of processing blocks based on the change in the number of captured objects in the input moving image estimated by the object number detection unit.

また、分割処理部は、動画像入力部に入力された動画像を処理ブロックに分割するとき、時間的に連続する処理ブロックに共通するフレーム画像を存在させる構成としてもよい。   The division processing unit may have a configuration in which a frame image common to temporally continuous processing blocks is present when the moving image input to the moving image input unit is divided into processing blocks.

このように構成すれば、時間的に連続する処理ブロック間でのマージ処理において、同じフレーム画像を用いてオブジェクトを同定することができる。したがって、オブジェクトの同定にかかる処理を簡単にすることができるとともに、オブジェクトの同定精度の低下を抑えることができるので、オブジェクトの追跡が適正に行える。   If comprised in this way, an object can be identified using the same frame image in the merge process between the temporally continuous process blocks. Therefore, it is possible to simplify the process for identifying the object and to suppress a decrease in the identification accuracy of the object, so that the object can be properly tracked.

また、この発明にかかる画像処理装置は、入力された動画像を、複数の処理ブロックに分割する分割処理部と、この分割処理部が分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡するオブジェクト追跡部と、このオブジェクト追跡部がマルチスレッドで処理したオブジェクトの追跡結果を統合するマージ処理部と、を備え、分割処理部が、入力された動画像を処理ブロックに分割するとき、時間的に連続する処理ブロックに共通するフレーム画像を存在させる、構成としてもよい。この構成でも、上述したように、時間的に連続する処理ブロック間でのマージ処理において、同じフレーム画像を用いてオブジェクトを同定することができる。したがって、オブジェクトの同定にかかる処理を簡単にすることができるので、マージ処理にかかる処理時間を短縮することができる。また、上述したように、オブジェクトの同定精度の低下を抑えることができるので、オブジェクトの追跡が適正に行える。   Further, an image processing apparatus according to the present invention processes, in a multi-thread manner, a division processing unit that divides an input moving image into a plurality of processing blocks, and a plurality of processing blocks divided by the division processing unit. An object tracking unit that tracks an object captured in an image, and a merge processing unit that integrates tracking results of objects processed by the object tracking unit in a multi-thread manner. May be configured such that a frame image common to temporally continuous processing blocks exists. Even in this configuration, as described above, the object can be identified using the same frame image in the merge processing between temporally continuous processing blocks. Therefore, since the process related to object identification can be simplified, the processing time required for the merge process can be shortened. Further, as described above, since it is possible to suppress a decrease in the object identification accuracy, the object can be properly tracked.

また、この発明にかかる画像処理方法は、上述した画像処理装置が備える各部の機能をコンピュータで実行する発明である。   The image processing method according to the present invention is an invention in which the function of each unit included in the above-described image processing apparatus is executed by a computer.

また、この発明にかかる画像処理プログラムは、上述した画像処理装置が備える各部の機能をコンピュータに実行させる発明である。   An image processing program according to the present invention is an invention that causes a computer to execute the functions of the units included in the above-described image processing apparatus.

この発明によれば、マルチスレッド方式による動画像に撮像されているオブジェクトの追跡にかかる処理において、マージ処理が効率的に行え、処理時間を十分に短縮することができる。   According to the present invention, merge processing can be performed efficiently and processing time can be sufficiently shortened in processing related to tracking of an object captured in a moving image by a multi-thread method.

画像処理装置の主要部の構成を示すブロック図である。It is a block diagram which shows the structure of the principal part of an image processing apparatus. 画像処理プロセッサの機能構成を示すブロック図である。It is a block diagram which shows the function structure of an image processor. 画像処理プロセッサの動作を示すフローチャートである。It is a flowchart which shows operation | movement of an image processor. フレーム画像抽出処理を説明する図である。It is a figure explaining a frame image extraction process. 処理負荷量判断処理を説明する図である。It is a figure explaining processing load amount judgment processing. 処理負荷量変動推定処理を説明する図である。It is a figure explaining processing load amount fluctuation presumption processing. 分割処理を説明する図である。It is a figure explaining a division process. オブジェクトマップを示す図である。It is a figure which shows an object map. 別の例にかかる画像処理プロセッサの機能構成を示すブロック図である。It is a block diagram which shows the function structure of the image processor concerning another example. 別の例にかかる画像処理プロセッサの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the image processor concerning another example.

以下、この発明の実施形態である画像処理装置について説明する。   Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described.

図1は、この例にかかる画像処理装置の主要部の構成を示すブロック図である。この画像処理装置1は、画像入力部2と、動画像記憶部3と、画像処理プロセッサ4と、出力部5と、を備えている。この画像処理装置1は、この発明にかかる画像処理プログラムをインストールしたパーソナルコンピュータ(PC)で実現できる。この画像処理プログラムを実行するコンピュータは、この例では画像処理プロセッサ4である。また、この発明にかかる画像処理方法を実行するコンピュータも、同様に、この例では画像処理プロセッサ4である。   FIG. 1 is a block diagram showing the configuration of the main part of the image processing apparatus according to this example. The image processing apparatus 1 includes an image input unit 2, a moving image storage unit 3, an image processing processor 4, and an output unit 5. The image processing apparatus 1 can be realized by a personal computer (PC) in which the image processing program according to the present invention is installed. In this example, the computer that executes this image processing program is the image processor 4. Similarly, the computer that executes the image processing method according to the present invention is also the image processor 4 in this example.

この例では、画像入力部2には、ビデオカメラ10が接続されている。ビデオカメラ10の撮像エリアは、オブジェクトの検出、および検出したオブジェクトの移動を追跡する監視エリアである。画像入力部2には、ビデオカメラ10が撮像した撮像エリアの動画像が入力される。ビデオカメラ10が画像入力部2に入力する動画像は、1秒間に10〜30フレームである。追跡対象のオブジェクトは、人や車両等の移動体だけでなく、放置された物体(非移動体)も含む。ただし、撮像エリア内(監視エリア内)に位置する、ベンチ、柵、ごみ箱等の設置物は背景であり、追跡対象のオブジェクトではない。   In this example, a video camera 10 is connected to the image input unit 2. The imaging area of the video camera 10 is a monitoring area that tracks object detection and movement of the detected object. A moving image of an imaging area captured by the video camera 10 is input to the image input unit 2. The moving image that the video camera 10 inputs to the image input unit 2 is 10 to 30 frames per second. The tracking target object includes not only a moving object such as a person or a vehicle but also a left object (non-moving object). However, installation objects such as benches, fences, and trash cans located in the imaging area (in the monitoring area) are the background and not the object to be tracked.

なお、画像入力部2に接続される機器は、上述のビデオカメラ10に限らず、動画像を記録した記録メディア等であってもよい。   The device connected to the image input unit 2 is not limited to the video camera 10 described above, and may be a recording medium or the like on which a moving image is recorded.

動画像記憶部3は、画像入力部2に入力された動画像を記録するハードディスク等の記録媒体である。画像入力部2に入力された動画像は、公知のMPEG2等で圧縮して動画像記憶部3に記録される。   The moving image storage unit 3 is a recording medium such as a hard disk that records the moving image input to the image input unit 2. The moving image input to the image input unit 2 is compressed by the known MPEG2 or the like and recorded in the moving image storage unit 3.

画像処理プロセッサ4は、動画像記憶部3に記憶している動画像、すなわち画像入力部2に入力された動画像、を処理し、撮像されているオブジェクトの検出や、追跡にかかる処理(以下、追跡処理と言う。)を行う。この画像処理プロセッサ4が、この発明で言う、フレーム画像抽出部、オブジェクト数検出部、分割処理部、オブジェクト追跡部、およびマージ処理部に相当する構成を有する。   The image processor 4 processes a moving image stored in the moving image storage unit 3, that is, a moving image input to the image input unit 2, and performs processing related to detection and tracking of an imaged object (hereinafter referred to as “tracking”). This is called tracking processing.) The image processor 4 has a configuration corresponding to a frame image extraction unit, an object number detection unit, a division processing unit, an object tracking unit, and a merge processing unit, which are referred to in the present invention.

出力部5は、画像処理プロセッサ4におけるオブジェクトの検出や、追跡にかかる処理結果を上位装置に出力する。   The output unit 5 outputs a processing result related to object detection and tracking in the image processor 4 to the host device.

なお、この画像処理装置1は、画像入力部2、動画像記憶部3、画像処理プロセッサ4、出力部5等の各部を制御する主制御部(不図示)を備えている。   The image processing apparatus 1 includes a main control unit (not shown) that controls the image input unit 2, the moving image storage unit 3, the image processing processor 4, the output unit 5, and the like.

図2は、画像処理プロセッサの機能構成を示すブロック図である。画像処理プロセッサ4は、フレーム画像抽出部41と、オブジェクト数検出部42と、分割処理部43と、オブジェクト追跡部44と、マージ処理部45と、を備えている。   FIG. 2 is a block diagram illustrating a functional configuration of the image processing processor. The image processor 4 includes a frame image extraction unit 41, an object number detection unit 42, a division processing unit 43, an object tracking unit 44, and a merge processing unit 45.

フレーム画像抽出部41は、画像入力部2に入力され、動画像記憶部3に記憶している処理対象の動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出する。このフレーム抽出間隔は、数フレーム〜数十フレームである。ここで抽出されるフレーム画像の時間間隔は、数百ms〜1s程度である。ただし、フレーム抽出間隔は、上記の範囲外に設定してもよいことはいうまでもない。また、フレーム抽出間隔は固定値であってもよいし、変動値であってもよい。また、フレーム抽出間隔は、動画像からサンプル的に抽出したフレーム画像に撮像されているオブジェクトの個数に応じて定める構成としてもよい。この場合、フレーム抽出間隔は、撮像されているオブジェクトの個数に応じて、動的に変化させてもよい。   The frame image extraction unit 41 extracts a frame image applied to the processing target moving image input to the image input unit 2 and stored in the moving image storage unit 3 at a predetermined frame extraction interval. This frame extraction interval is several frames to several tens of frames. The time interval of the frame images extracted here is about several hundred ms to 1 s. However, it goes without saying that the frame extraction interval may be set outside the above range. Further, the frame extraction interval may be a fixed value or a variable value. The frame extraction interval may be determined according to the number of objects captured in a frame image sampled from a moving image. In this case, the frame extraction interval may be dynamically changed according to the number of objects being imaged.

オブジェクト数検出部42は、フレーム画像抽出部41が抽出したフレーム画像に対して、そのフレーム画像に撮像されているオブジェクトの個数を検出する。また、オブジェクト数検出部42は、抽出した複数のフレーム画像について検出したオブジェクトの個数に基づき、処理対象である動画像に撮像されているオブジェクトの個数の変動(時間経過にともなう変動)を推定する。この推定精度は、上述のフレーム抽出間隔を小さくすれば向上できるが、処理時間が長くなる。したがって、上述のフレーム抽出間隔は、この推定精度と、処理時間を考慮して決定している。ここでは、フレーム抽出間隔を4フレームとして場合を例にして説明する。   The object number detection unit 42 detects the number of objects captured in the frame image of the frame image extracted by the frame image extraction unit 41. In addition, the object number detection unit 42 estimates the variation (variation with time) of the number of objects captured in the moving image that is the processing target, based on the number of objects detected for the plurality of extracted frame images. . This estimation accuracy can be improved by reducing the above-described frame extraction interval, but the processing time becomes longer. Therefore, the above-described frame extraction interval is determined in consideration of this estimation accuracy and processing time. Here, a case where the frame extraction interval is 4 frames will be described as an example.

分割処理部43は、オブジェクト数検出部42が推定した処理対象である動画像における処理負荷の大きさの変動に基づいて、処理対象である動画像を複数のフレーム画像からなる処理ブロックに分割する。処理ブロックのフレーム数は、一定ではない。また、処理ブロックは、時間的に連続するフレーム画像で構成される。さらに、時間的に連続する処理ブロックには、同じフレーム画像が含まれている。   The division processing unit 43 divides the processing target moving image into processing blocks including a plurality of frame images based on the variation in the processing load on the processing target moving image estimated by the object number detection unit 42. . The number of frames in the processing block is not constant. The processing block is composed of temporally continuous frame images. Furthermore, the same frame image is included in temporally continuous processing blocks.

オブジェクト追跡部44は、複数のコアを備え、分割処理部43が分割した処理ブロックをマルチスレッド方式で並行処理する。図2では、4つのコア(コアA、コアB、コアC、およびコアD)を図示したが、オブジェクト追跡部44が備えるコアの数は2つ以上であればいくつであってもよい。オブジェクト追跡部44は、分割された処理ブロック単位で、各コア(コアA〜コアD)が撮像されているオブジェクトの追跡処理を行う。   The object tracking unit 44 includes a plurality of cores, and performs parallel processing on the processing blocks divided by the division processing unit 43 using a multithread method. In FIG. 2, four cores (core A, core B, core C, and core D) are illustrated, but the number of cores provided in the object tracking unit 44 may be any number as long as it is two or more. The object tracking unit 44 performs tracking processing of an object in which each core (core A to core D) is imaged in units of divided processing blocks.

マージ処理部45は、オブジェクト追跡部44の各コア(コアA〜コアD)が分割された処理ブロック単位で行ったオブジェクトの追跡結果を統合するマージ処理を行う。   The merge processing unit 45 performs a merge process for integrating the object tracking results performed in units of processing blocks obtained by dividing each core (core A to core D) of the object tracking unit 44.

以下、この例にかかる画像処理装置1の動作について詳細に説明する。画像処理装置1は、処理対象の動画像を動画像記憶部3に記憶している。   Hereinafter, the operation of the image processing apparatus 1 according to this example will be described in detail. The image processing apparatus 1 stores a moving image to be processed in the moving image storage unit 3.

図3は、画像処理プロセッサの動作を示すフローチャートである。画像処理プロセッサ4は、フレーム画像抽出部41において動画像記憶部3に記憶している処理対象の動画像にかかるフレーム画像を予め定めたフレーム抽出間隔で抽出するフレーム画像抽出処理を行う(s1)。図4は、mフレーム(F1〜Fm)で構成されている処理対象の動画像から、予め定めたフレーム抽出間隔でフレーム画像を抽出する例を示している。図4に示す例では、フレーム抽出間隔は4フレームである。   FIG. 3 is a flowchart showing the operation of the image processor. The image processor 4 performs a frame image extraction process in which the frame image extraction unit 41 extracts a frame image related to the processing target moving image stored in the moving image storage unit 3 at a predetermined frame extraction interval (s1). . FIG. 4 shows an example in which a frame image is extracted at a predetermined frame extraction interval from a moving image to be processed configured with m frames (F1 to Fm). In the example shown in FIG. 4, the frame extraction interval is 4 frames.

フレーム抽出間隔が固定値である場合、予め設定しているフレーム抽出間隔をxフレームとすると、処理対象の動画像における(a×x)番目のフレーム画像を抽出する。ただし、aは自然数である。このs1で抽出されるフレーム画像(以下、抽出フレームと言う。)のフレーム数は、この例では、m/4(小数点以下切り捨て。)である。   When the frame extraction interval is a fixed value, if the preset frame extraction interval is x frames, the (a × x) th frame image in the moving image to be processed is extracted. However, a is a natural number. In this example, the number of frames of the frame image extracted in s1 (hereinafter referred to as an extracted frame) is m / 4 (rounded down to the decimal point).

なお、この例ではフレーム抽出間隔を固定値(4フレーム)にしているが、変動値にしてもよい。   In this example, the frame extraction interval is a fixed value (4 frames), but may be a variable value.

画像処理プロセッサ4は、オブジェクト数検出部42において、s1で抽出した抽出フレーム毎に、そのフレーム画像に撮像されているオブジェクトの個数を検出するオブジェクト数検出処理を行う(s2)。s2は、公知のパターンマッチングや背景差分等で撮像されているオブジェクトを検出し、撮像されているオブジェクトの個数を得る処理である。このs2にかかる処理は、撮像されているオブジェクトの個数を得ることができればよいので、撮像されているオブジェクトの属性(形状等の特徴量)まで検出する必要はない。   The image processor 4 performs object number detection processing for detecting the number of objects captured in the frame image for each extracted frame extracted in s1 in the object number detection unit 42 (s2). s2 is processing for detecting an object imaged by known pattern matching, background difference, or the like and obtaining the number of the imaged object. Since the process according to s2 only needs to be able to obtain the number of objects being imaged, it is not necessary to detect the attributes (features such as shapes) of the object being imaged.

図5では、撮像されているオブジェクトが2であるフレーム画像(フレームFn)、撮像されているオブジェクトが5であるフレーム画像(フレームFn+4)、および、撮像されているオブジェクトが3であるフレーム画像(フレームFn+8)を図示している。   In FIG. 5, a frame image (frame Fn) in which the object being imaged is 2, a frame image (frame Fn + 4) in which the object being imaged is 5, and a frame image (3 in which the object being imaged is 3) Frame Fn + 8) is illustrated.

画像処理プロセッサ4は、オブジェクト数検出部42において、s2で検出した各抽出フレームに撮像されているオブジェクトの個数に基づき、処理対象の動画像に撮像されているオブジェクトの個数の変動を推定するオブジェクト数変動推定処理を行う(s3)。s3では、図6に示すように、処理対象の動画像全体に渡って、フレーム画像に撮像されているオブジェクトの数の変動を推定する処理である。すなわち、抽出フレームに対する撮像されているオブジェクトの個数の検出結果に基づき、抽出フレーム以外のフレーム画像について、撮像されているオブジェクトの個数を推定する処理である。   The image processor 4 uses the object number detection unit 42 to estimate the variation in the number of objects imaged in the moving image to be processed based on the number of objects imaged in each extraction frame detected in s2. Number fluctuation estimation processing is performed (s3). In s3, as shown in FIG. 6, it is the process which estimates the fluctuation | variation of the number of the objects currently imaged by the frame image over the whole moving image of a process target. That is, it is a process of estimating the number of objects being imaged for frame images other than the extracted frame based on the detection result of the number of objects being imaged with respect to the extracted frame.

s3にかかるオブジェクト数変動推定処理の推定精度は、上述のフレーム抽出間隔を小さくすることで向上できるが、その処理時間(s1〜s3(特に、s2)の処理にかかる時間)が長くなる。したがって、上述のフレーム抽出間隔は、s1〜s3にかかる処理時間と、s3にかかるオブジェクト数変動推定処理の推定精度と、を考慮して定めればよい。   The estimation accuracy of the object number variation estimation process relating to s3 can be improved by reducing the above-described frame extraction interval, but the processing time (s1 to s3 (particularly, the time required for the process of s2)) is increased. Therefore, the above-described frame extraction interval may be determined in consideration of the processing time for s1 to s3 and the estimation accuracy of the object number variation estimation processing for s3.

画像処理プロセッサ4は、分割処理部43において、s3で推定した処理対象の動画像における処理負荷量の大きさの変動に基づいて、この動画像を処理ブロックに分割する分割処理を行う(s4)。このs4にかかる分割処理では、まず、処理対象の動画像に対して分割点を決定する。   The image processor 4 performs a dividing process of dividing the moving image into processing blocks based on the variation in the processing load amount in the moving image to be processed estimated in s3 in the dividing processing unit 43 (s4). . In the division process according to s4, first, a division point is determined for the moving image to be processed.

この分割点を決定する手法の例を以下に示す。   An example of a method for determining this division point is shown below.

(1)分割処理部43は、この処理対象の動画像の先頭フレームから、予め定めたAフレーム毎に分割点を仮決定する。例えば、2フレーム毎に、分割点を仮決定する。分割処理部43は、仮決定した分割点毎に、その直後のフレーム画像に撮像されているオブジェクトの個数(s2での検出数、またはs3での推定値)が予め定めた個数(例えば5個)未満であれば、この分割点を本決定し、反対に、予め定めた個数(例えば5個)以上であれば、この分割点の仮決定を取り消す。これにより、撮像されているオブジェクトの個数が比較的多い(この例では、5個以上である)フレーム画像の直前に分割点が設定されることがない。   (1) The division processing unit 43 provisionally determines a division point for each predetermined A frame from the first frame of the moving image to be processed. For example, a division point is provisionally determined every two frames. The division processing unit 43 determines, for each provisionally determined division point, the number of objects (the number detected in s2 or the estimated value in s3) captured in the immediately subsequent frame image (for example, five). If the number is less than (), the division point is finally determined. On the contrary, if the number is a predetermined number (for example, five) or more, the provisional determination of the division point is canceled. Thereby, a division point is not set immediately before a frame image in which the number of captured objects is relatively large (in this example, five or more).

(2)また、上記(1)の例では、隣接する分割点間に位置するフレーム画像のフレーム数の差が大きくなることがある。後述するように、ここで決定した分割点に基づいて、動画像を処理ブロックに分割するので、分割した処理ブロック間で、処理負荷の差が大きくなる。このため、仮決定した分割点について、その仮決定を取り消すことができない制限を加えるのが好ましい。例えば、仮決定した分割点について、時間的に直前の分割点が取り消されている場合、この分割点を本決定する制限を設けるのが好ましい。これにより、隣接する分割点間に位置するフレーム画像のフレーム数の差が大きくなるのを防止できる。   (2) In the example of (1) above, the difference in the number of frames of frame images located between adjacent division points may increase. As will be described later, since the moving image is divided into processing blocks based on the division points determined here, the difference in processing load between the divided processing blocks becomes large. For this reason, it is preferable to add a restriction that the tentatively determined division point cannot be canceled. For example, for a temporarily determined dividing point, when the immediately preceding dividing point has been canceled, it is preferable to provide a restriction for determining this dividing point. Thereby, it is possible to prevent a difference in the number of frames of frame images located between adjacent division points from increasing.

なお、上述の仮決定を取り消すことができない分割点の制限は、隣接する分割点間に位置するフレーム画像のフレーム数を最大で2倍に抑える例であるが、3倍や4倍に抑える制限であってもよい。   Note that the restriction of the division points where the provisional decision cannot be canceled is an example in which the number of frame images located between adjacent division points is reduced to a maximum of two times, but the restriction is limited to three times or four times. It may be.

(3)また、s3の処理結果に基づき、撮像されているオブジェクトの個数が予め定めた個数未満であるフレーム画像の直前に分割点を決定する。この場合、隣接する分割点の間に位置するフレーム画像のフレーム数の最小値(例えば、2フレーム(ただし、最小値は2フレーム以上))や、最大値(例えば、4フレーム)を設定しておき、この制限に基づいて分割点を決定するのが好ましい。   (3) Further, based on the processing result of s3, a division point is determined immediately before the frame image in which the number of objects being imaged is less than a predetermined number. In this case, a minimum value (for example, 2 frames (however, the minimum value is 2 frames or more)) or a maximum value (for example, 4 frames) of a frame image located between adjacent division points is set. It is preferable to determine the dividing point based on this restriction.

この分割点の決定は、分割点の直後のフレーム画像に撮像されているオブジェクトの個数が予め定めた個数以上である分割点の総数が、予め定めたAフレーム毎に分割点を決定した場合よりも少なくなる手法であれば、上記(1)〜(3)に示した方法以外であってもよい。   This determination of the dividing point is more than when the total number of dividing points in which the number of objects captured in the frame image immediately after the dividing point is equal to or greater than the predetermined number is determined for each predetermined A frame. As long as it is a technique that reduces the amount, a method other than the methods shown in the above (1) to (3) may be used.

図7は、上記(2)の手法で決定した分割点を例示している。この図では、Fn+3と、Fn+4との間に仮決定された分割点が取り消されている。   FIG. 7 exemplifies the dividing points determined by the method (2). In this figure, the division points provisionally determined between Fn + 3 and Fn + 4 are cancelled.

分割処理部43は、処理対象の動画像に対して、図7に示す分割点を決定すると、分割点毎に、その直後のフレーム(分割開始フレーム)から、次の分割点の直後のフレーム(次の分割開始フレーム)までを、1つの処理ブロックとする分割を行う。したがって、この例では処理ブロックは、3フレーム、または5フレームで構成される。また、図7に示すように、時間的に連続する2つの処理ブロックは、一方の最終フレームと、他方の先頭フレームとが同じフレーム画像である。   When the division processing unit 43 determines the division point shown in FIG. 7 for the moving image to be processed, for each division point, from the frame immediately after that (division start frame) to the frame immediately after the next division point ( The division is performed up to the next division start frame) as one processing block. Therefore, in this example, the processing block is composed of 3 frames or 5 frames. Also, as shown in FIG. 7, in two temporally continuous processing blocks, one final frame and the other top frame are the same frame image.

図7では、時間的に連続する2つの処理ブロックに共通して含まれるフレームを、分割点直後のフレーム(分割開始フレーム)とした例を示したが、分割点直前のフレームにしてもよい。この場合、分割点毎に、その直前のフレームから、次の分割点の直前のフレームまでを、1つの処理ブロックとする分割を行えばよい。   Although FIG. 7 shows an example in which a frame included in common in two temporally continuous processing blocks is a frame immediately after the division point (division start frame), it may be a frame immediately before the division point. In this case, for each division point, the division from the immediately preceding frame to the frame immediately before the next dividing point may be performed as one processing block.

画像処理プロセッサ4は、オブジェクト追跡部44において、オブジェクトの追跡処理を行う(s5)。オブジェクト追跡部44は、分割処理部43が分割した処理ブロックをマルチスレッド方式で並行処理する。具体的には、4つのコア(コアA、コアB、コアC、およびコアD)が、分割された処理ブロック単位で、撮像されているオブジェクトの追跡処理を行う。   The image processor 4 performs an object tracking process in the object tracking unit 44 (s5). The object tracking unit 44 processes the processing blocks divided by the division processing unit 43 in parallel using a multi-thread method. Specifically, four cores (core A, core B, core C, and core D) perform tracking processing of the object being imaged in units of divided processing blocks.

この追跡処理では、各コアは、処理ブロックに含まれているフレーム画像毎に撮像されているオブジェクトを検出するとともに、検出したオブジェクト毎にフレーム画像上の位置を取得する。また、検出したオブジェクトをフレーム画像間で対応付け、オブジェクトマップを作成する。ここで作成するオブジェクトマップでは、検出したオブジェクト毎に、仮IDを付与している。例えば、コアAは、検出したオブジェクトに対して、A1、A2・・・等の仮IDを付与する。コアBは、検出したオブジェクトに対して、B1、B2・・・等の仮IDを付与する。コアCは、検出したオブジェクトに対して、C1、C2・・・等の仮IDを付与する。コアDは、検出したオブジェクトに対して、D1、D2・・・等の仮IDを付与する。   In this tracking process, each core detects an object captured for each frame image included in the processing block, and acquires a position on the frame image for each detected object. Further, the detected object is associated between the frame images to create an object map. In the object map created here, a temporary ID is assigned to each detected object. For example, the core A gives temporary IDs such as A1, A2,. The core B assigns temporary IDs such as B1, B2,... To the detected object. The core C gives temporary IDs such as C1, C2,... To the detected object. The core D assigns temporary IDs such as D1, D2,... To the detected object.

図8(A)は、コアAが図7に示すFn〜Fn+2までの処理ブロックに対する追跡処理で作成したオブジェクトマップを示す図である。また、図8(B)は、コアBが図7に示すFn+2〜Fn+6までの処理ブロックに対する追跡処理で作成したオブジェクトマップを示す図である。オブジェクトマップは、図8に示すように、検出したオブジェクトに付与した仮ID毎に、フレーム画像と、そのフレーム画像上の位置(座標)とを対応付けて登録したものである。図8に示すオブジェクトマップにおいて、その位置が示されていないオブジェクトは、当該フレーム画像に撮像されていなかったオブジェクトである。すなわち、図8において、仮IDがA4であるオブジェクトは、フレーム番号Fnのフレーム画像に撮像されていない。また、仮IDがA5であるオブジェクトは、フレーム番号Fn、およびフレーム番号Fn+1のフレーム画像に撮像されていない。また、仮IDがB3であるオブジェクトは、フレーム番号Fn+5、およびフレーム番号Fn+6のフレーム画像に撮像されていない。また、仮IDがB5であるオブジェクトは、フレーム番号Fn+6のフレーム画像に撮像されていない。   FIG. 8A is a diagram showing an object map created by the core A in the tracking process for the processing blocks from Fn to Fn + 2 shown in FIG. FIG. 8B is a diagram showing an object map created by the core B in the tracking process for the processing blocks from Fn + 2 to Fn + 6 shown in FIG. As shown in FIG. 8, the object map is obtained by registering a frame image and a position (coordinates) on the frame image in association with each provisional ID assigned to the detected object. In the object map shown in FIG. 8, an object whose position is not shown is an object that has not been captured in the frame image. That is, in FIG. 8, the object whose temporary ID is A4 is not captured in the frame image having the frame number Fn. In addition, the object whose temporary ID is A5 is not captured in the frame image of the frame number Fn and the frame number Fn + 1. Further, the object whose temporary ID is B3 is not captured in the frame images of the frame numbers Fn + 5 and Fn + 6. In addition, the object whose temporary ID is B5 is not captured in the frame image having the frame number Fn + 6.

このように、オブジェクト追跡部44は、複数のコアによるマルチスレッドで分割した処理ブロックに撮像されているオブジェクトの追跡処理を行い、図8に示したオブジェクトマップを作成する。   As described above, the object tracking unit 44 performs the tracking processing of the object imaged in the processing block divided by multi-threads by a plurality of cores, and creates the object map shown in FIG.

画像処理プロセッサ4は、マージ処理部45において、各コアが作成したオブジェクトマップを統合するマージ処理を行う(s6)。s6では、時間的に連続する処理ブロックにかかるオブジェクトマップ間において、仮IDが付与されているオブジェクトを同定する処理である。具体的には、時間的に連続する処理ブロックにかかるオブジェクトマップには、共通するフレーム画像が含まれている。図8に示す例では、フレーム番号Fn+4が共通するフレーム画像である。このフレーム画像において、検出されているオブジェクトの位置がほぼ同じであるオブジェクトを、同一のオブジェクトとして同定する。例えば図8に示す例では、仮IDがA1であるオブジェクトと、仮IDがB5であるオブジェクトとを、同一のオブジェクトとして同定する。仮IDがA2であるオブジェクトと、仮IDがB3であるオブジェクトとを、同一のオブジェクトとして同定する。仮IDがA3であるオブジェクトと、仮IDがB2であるオブジェクトとを、同一のオブジェクトとして同定する。仮IDがA4であるオブジェクトと、仮IDがB4であるオブジェクトとを、同一のオブジェクトとして同定する。仮IDがA5であるオブジェクトと、仮IDがB1であるオブジェクトとを、同一のオブジェクトとして同定する。   In the merge processor 45, the image processor 4 performs a merge process for integrating the object maps created by the cores (s6). In s6, it is the process which identifies the object to which temporary ID was provided between the object maps concerning the process block which continues in time. Specifically, a common frame image is included in the object map relating to the processing blocks that are temporally continuous. In the example shown in FIG. 8, the frame number Fn + 4 is a common frame image. In this frame image, objects having the same position of the detected object are identified as the same object. For example, in the example shown in FIG. 8, the object whose temporary ID is A1 and the object whose temporary ID is B5 are identified as the same object. The object whose temporary ID is A2 and the object whose temporary ID is B3 are identified as the same object. The object whose temporary ID is A3 and the object whose temporary ID is B2 are identified as the same object. The object whose temporary ID is A4 and the object whose temporary ID is B4 are identified as the same object. The object whose temporary ID is A5 and the object whose temporary ID is B1 are identified as the same object.

このように、処理対象の動画像を処理ブロックに分割するときに、時間的に連続する処理ブロックに同じフレーム画像を含ませているので、s6にかかるマージ処理の精度を十分に確保できる。また、このマージ処理が比較的簡単な処理(検出位置の突き合わせる処理)で行えるので、マージ処理にかかる処理時間を一層短縮できる。   As described above, when the moving image to be processed is divided into processing blocks, the same frame image is included in temporally continuous processing blocks, so that the accuracy of the merge processing related to s6 can be sufficiently ensured. In addition, since this merging process can be performed by a relatively simple process (a process for matching detection positions), the processing time required for the merging process can be further reduced.

また、画像処理プロセッサ4は、このマージ処理で同定したオブジェクトに対して、本IDを付与することで、処理対象の動画像全体にわたって、撮像された各オブジェクトを区別したオブジェクトマップを構築できる。すなわち、処理対象の動画像全体にわたって、撮像されているオブジェクトの追跡結果を示すオブジェクトマップを得ることができる。   Further, the image processor 4 can construct an object map in which each captured object is distinguished over the entire moving image to be processed by assigning the real ID to the object identified by the merge process. That is, it is possible to obtain an object map indicating the tracking result of the imaged object over the entire moving image to be processed.

このように、この例にかかる画像処理装置1は、同定するオブジェクトの個数が比較的多いマージ処理の回数を抑えることができる。したがって、マルチスレッド方式による動画像に撮像されているオブジェクトの追跡にかかる処理において、マージ処理が効率的に行え、処理時間を十分に短縮することができる。   Thus, the image processing apparatus 1 according to this example can suppress the number of merge processes in which the number of objects to be identified is relatively large. Therefore, merge processing can be performed efficiently and processing time can be sufficiently shortened in processing related to tracking of an object captured in a moving image by the multi-thread method.

また、時間的に連続する処理ブロックに同じフレーム画像を含ませているので、マージ処理におけるオブジェクトの同定精度の低下を抑えることができる。また、このマージ処理が比較的簡単な処理で行えるので、マージ処理にかかる処理時間を一層短縮できる。   Further, since the same frame image is included in temporally continuous processing blocks, it is possible to suppress a decrease in object identification accuracy in the merge processing. In addition, since the merge process can be performed by a relatively simple process, the processing time required for the merge process can be further reduced.

なお、上述した例における、s1〜s4、およびs6にかかる処理は、図2に示したいずれかのコアA〜Dが実行してもよいし、図示していない別のコアで実行してもよい。   In addition, the process concerning s1-s4 and s6 in the example mentioned above may be executed by any of the cores A to D shown in FIG. 2, or may be executed by another core not shown. Good.

また、画像処理プロセッサ4は、図9に示すように、上述のフレーム画像抽出部41、およびオブジェクト数検出部42を備えていない構成であってもよい。   Further, as illustrated in FIG. 9, the image processing processor 4 may be configured not to include the frame image extraction unit 41 and the object number detection unit 42 described above.

この場合、画像処理プロセッサ4は、図10に示す処理を行えばよい。画像処理プロセッサ4は、分割処理部43において、処理対象の動画像の先頭フレームから、予め定めたAフレーム毎に分割点を決定する(s11)。画像処理プロセッサ4は、オブジェクト追跡部44において、オブジェクトの追跡処理を行う(s12)。画像処理プロセッサ4は、マージ処理部45において、各コアが作成したオブジェクトマップを統合するマージ処理を行う(s13)。   In this case, the image processor 4 may perform the process shown in FIG. In the division processing unit 43, the image processor 4 determines a division point for each predetermined A frame from the first frame of the moving image to be processed (s11). The image processor 4 performs an object tracking process in the object tracking unit 44 (s12). In the merge processor 45, the image processor 4 performs a merge process for integrating the object maps created by the cores (s13).

s12は、上述のs5と同じ処理であり、s13は上述のs6と同じ処理である。   s12 is the same process as s5 described above, and s13 is the same process as s6 described above.

この例では、処理対象の動画像に対して分割点が均等に決定されるので、上述の例のように、同定するオブジェクトの個数が比較的多いマージ処理の回数を抑えることはできない。しかしながら、処理対象の動画像を処理ブロックに分割するときに、時間的に連続する処理ブロックに同じフレーム画像を含ませているので、上述したように、s13にかかるマージ処理の精度を十分に確保できる。また、このマージ処理が比較的簡単な処理で行えるので、マージ処理にかかる処理時間を一層短縮できる。   In this example, since the division points are determined equally for the moving image to be processed, the number of merge processes in which the number of objects to be identified is relatively large cannot be suppressed as in the above example. However, when the processing target moving image is divided into processing blocks, since the same frame image is included in temporally continuous processing blocks, as described above, the accuracy of the merge processing related to s13 is sufficiently ensured. it can. In addition, since the merge process can be performed by a relatively simple process, the processing time required for the merge process can be further reduced.

なお、上記の例では、複数のコアを備える画像処理プロセッサ4で、分割処理部43が分割した処理ブロックをマルチスレッド方式で並行処理する構成としたが、複数のPCを結合したPCクラスタで、分割処理部43が分割した処理ブロックをマルチスレッド方式で並行処理する構成としてもよい。   In the above example, the image processor 4 having a plurality of cores is configured to process the processing blocks divided by the division processing unit 43 in parallel in a multi-thread method, but in a PC cluster in which a plurality of PCs are combined, A configuration may be adopted in which the processing blocks divided by the division processing unit 43 are processed in parallel by a multithread method.

1…画像処理装置
2…画像入力部
3…動画像記憶部
4…画像処理プロセッサ
5…出力部
41…フレーム画像抽出部
42…オブジェクト数検出部
43…分割処理部
44…オブジェクト追跡部
45…マージ処理部
DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus 2 ... Image input part 3 ... Moving image memory | storage part 4 ... Image processor 5 ... Output part 41 ... Frame image extraction part 42 ... Object number detection part 43 ... Division processing part 44 ... Object tracking part 45 ... Merge Processing part

Claims (8)

入力された動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出するフレーム画像抽出部と、
前記フレーム画像抽出部が抽出した複数のフレーム画像について、撮像されているオブジェクトの個数を検出するオブジェクト数検出部と、
前記フレーム画像抽出部が抽出した複数のフレーム画像について、前記オブジェクト数検出部が検出したオブジェクトの個数に基づき、入力された動画像を複数の処理ブロックに分割する分割処理部と、
前記分割処理部が分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡するオブジェクト追跡部と、
前記分割処理部が分割した複数の処理ブロックについて、前記オブジェクト追跡部がマルチスレッドで処理したオブジェクトの追跡結果を統合するマージ処理部と、を備え
前記分割処理部は、入力された動画像において、撮像されているオブジェクトの個数が予め定めた値以上である箇所を、それ以外の箇所よりもフレーム数を多くした処理ブロックに分割する、画像処理装置。
A frame image extraction unit for extracting a frame image related to the input moving image at a predetermined frame extraction interval;
An object number detection unit for detecting the number of captured images for a plurality of frame images extracted by the frame image extraction unit;
A division processing unit that divides an input moving image into a plurality of processing blocks based on the number of objects detected by the object number detection unit for a plurality of frame images extracted by the frame image extraction unit;
An object tracking unit that processes a plurality of processing blocks divided by the division processing unit in a multi-thread manner and tracks an object captured in the moving image;
A plurality of processing blocks divided by the division processing unit, a merge processing unit that integrates tracking results of objects processed by the object tracking unit in a multi-thread, and
The division processing unit divides a portion in the input moving image where the number of captured objects is equal to or greater than a predetermined value into processing blocks having a larger number of frames than other portions. apparatus.
入力された動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出するフレーム画像抽出部と、
前記フレーム画像抽出部が抽出した複数のフレーム画像について、撮像されているオブジェクトの個数を検出するオブジェクト数検出部と、
前記フレーム画像抽出部が抽出した複数のフレーム画像について、前記オブジェクト数検出部が検出したオブジェクトの個数に基づき、入力された動画像を複数の処理ブロックに分割する分割処理部と、
前記分割処理部が分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡するオブジェクト追跡部と、
前記分割処理部が分割した複数の処理ブロックについて、前記オブジェクト追跡部がマルチスレッドで処理したオブジェクトの追跡結果を統合するマージ処理部と、を備え、
前記オブジェクト数検出部は、前記フレーム画像抽出部が抽出した複数のフレーム画像について検出した撮像されているオブジェクトの個数に基づき、入力された動画像における撮像されているオブジェクトの個数の変動を推定し、
前記分割処理部は、前記オブジェクト数検出部が推定した、入力された動画像における撮像されているオブジェクトの個数の変動に基づき、この動画像を複数の処理ブロックに分割する、画像処理装置。
A frame image extraction unit for extracting a frame image related to the input moving image at a predetermined frame extraction interval;
An object number detection unit for detecting the number of captured images for a plurality of frame images extracted by the frame image extraction unit;
A division processing unit that divides an input moving image into a plurality of processing blocks based on the number of objects detected by the object number detection unit for a plurality of frame images extracted by the frame image extraction unit;
An object tracking unit that processes a plurality of processing blocks divided by the division processing unit in a multi-thread manner and tracks an object captured in the moving image;
A plurality of processing blocks divided by the division processing unit, a merge processing unit that integrates tracking results of objects processed by the object tracking unit in a multi-thread, and
The object number detection unit estimates a variation in the number of captured objects in an input moving image based on the number of captured objects detected for a plurality of frame images extracted by the frame image extraction unit. ,
The division processing unit is an image processing device that divides the moving image into a plurality of processing blocks based on a change in the number of objects captured in the input moving image estimated by the object number detection unit .
前記オブジェクト数検出部は、前記フレーム画像抽出部が抽出した複数のフレーム画像について検出した撮像されているオブジェクトの個数に基づき、入力された動画像における撮像されているオブジェクトの個数の変動を推定し、
前記分割処理部は、前記オブジェクト数検出部が推定した、入力された動画像における撮像されているオブジェクトの個数の変動に基づき、この動画像を複数の処理ブロックに分割する、請求項1に記載の画像処理装置。
The object number detection unit estimates a variation in the number of captured objects in an input moving image based on the number of captured objects detected for a plurality of frame images extracted by the frame image extraction unit. ,
The division processing section has been estimated the object speed detector, based on a variation in the number of objects being imaged in the input moving image, and divides the moving image into a plurality of processing blocks, according to claim 1 Image processing apparatus.
前記分割処理部は、前記動画像入力部に入力された動画像を処理ブロックに分割するとき、時間的に連続する処理ブロックに共通するフレーム画像を存在させる、請求項1〜3のいずれかに記載の画像処理装置。   The division processing unit causes a frame image common to temporally continuous processing blocks to exist when the moving image input to the moving image input unit is divided into processing blocks. The image processing apparatus described. コンピュータが、
入力された動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出するフレーム画像抽出ステップと、
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、撮像されているオブジェクトの個数を検出するオブジェクト数検出ステップと、
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、前記オブジェクト数検出ステップで検出したオブジェクトの個数に基づき、入力された動画像を複数の処理ブロックに分割する分割処理ステップと、
前記分割処理ステップで分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡するオブジェクト追跡ステップと、
前記分割処理ステップで分割した複数の処理ブロックについて、前記オブジェクト追跡ステップにおいてマルチスレッドで処理したオブジェクトの追跡結果を統合するマージ処理ステップと、を実行する画像処理方法であって、
前記分割処理ステップは、入力された動画像において、撮像されているオブジェクトの個数が予め定めた値以上である箇所を、それ以外の箇所よりもフレーム数を多くした処理ブロックに分割するステップである、画像処理方法。
Computer
A frame image extraction step for extracting a frame image related to the input moving image at a predetermined frame extraction interval;
An object number detecting step for detecting the number of objects being imaged for a plurality of frame images extracted in the frame image extracting step;
A division processing step for dividing the input moving image into a plurality of processing blocks based on the number of objects detected in the object number detection step for the plurality of frame images extracted in the frame image extraction step;
An object tracking step of processing a plurality of processing blocks divided in the division processing step in a multi-thread manner and tracking an object captured in the moving image;
A merge processing step of integrating a tracking result of an object processed in multi-thread in the object tracking step with respect to a plurality of processing blocks divided in the division processing step ;
The division processing step is a step of dividing a portion where the number of captured objects is a predetermined value or more in the input moving image into processing blocks having a larger number of frames than other portions. , Image processing method.
コンピュータが、Computer
入力された動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出するフレーム画像抽出ステップと、A frame image extraction step for extracting a frame image related to the input moving image at a predetermined frame extraction interval;
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、撮像されているオブジェクトの個数を検出するオブジェクト数検出ステップと、An object number detecting step for detecting the number of objects being imaged for a plurality of frame images extracted in the frame image extracting step;
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、前記オブジェクト数検出ステップで検出したオブジェクトの個数に基づき、入力された動画像を複数の処理ブロックに分割する分割処理ステップと、A division processing step for dividing the input moving image into a plurality of processing blocks based on the number of objects detected in the object number detection step for the plurality of frame images extracted in the frame image extraction step;
前記分割処理ステップで分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡するオブジェクト追跡ステップと、An object tracking step of processing a plurality of processing blocks divided in the division processing step in a multi-thread manner and tracking an object captured in the moving image;
前記分割処理ステップで分割した複数の処理ブロックについて、前記オブジェクト追跡ステップにおいてマルチスレッドで処理したオブジェクトの追跡結果を統合するマージ処理ステップと、を実行する画像処理方法であって、A merge processing step of integrating a tracking result of an object processed in multi-thread in the object tracking step with respect to a plurality of processing blocks divided in the division processing step;
前記オブジェクト数検出ステップは、前記フレーム画像抽出ステップで抽出した複数のフレーム画像について検出した撮像されているオブジェクトの個数に基づき、入力された動画像における撮像されているオブジェクトの個数の変動を推定するステップであり、The object number detection step estimates a variation in the number of captured objects in the input moving image based on the number of captured objects detected for the plurality of frame images extracted in the frame image extraction step. Step,
前記分割処理ステップは、前記オブジェクト数検出ステップで推定した、入力された動画像における撮像されているオブジェクトの個数の変動に基づき、この動画像を複数の処理ブロックに分割するステップである、画像処理方法。The division processing step is a step of dividing the moving image into a plurality of processing blocks based on a change in the number of objects captured in the input moving image estimated in the object number detection step. Method.
コンピュータに、
入力された動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出するフレーム画像抽出ステップと、
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、撮像されているオブジェクトの個数を検出するオブジェクト数検出ステップと、
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、前記オブジェクト数検出ステップで検出したオブジェクトの個数に基づき、入力された動画像を複数の処理ブロックに分割する分割処理ステップと、
前記分割処理ステップで分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡するオブジェクト追跡ステップと、
前記分割処理ステップで分割した複数の処理ブロックについて、前記オブジェクト追跡ステップにおいてマルチスレッドで処理したオブジェクトの追跡結果を統合するマージ処理ステップと、を実行させる画像処理プログラムであって、
前記分割処理ステップは、入力された動画像において、撮像されているオブジェクトの個数が予め定めた値以上である箇所を、それ以外の箇所よりもフレーム数を多くした処理ブロックに分割するステップである、画像処理プログラム。
On the computer,
A frame image extraction step for extracting a frame image related to the input moving image at a predetermined frame extraction interval;
An object number detecting step for detecting the number of objects being imaged for a plurality of frame images extracted in the frame image extracting step;
A division processing step for dividing the input moving image into a plurality of processing blocks based on the number of objects detected in the object number detection step for the plurality of frame images extracted in the frame image extraction step;
An object tracking step of processing a plurality of processing blocks divided in the division processing step in a multi-thread manner and tracking an object captured in the moving image;
A merge processing step of integrating a tracking result of an object processed in multi-thread in the object tracking step with respect to a plurality of processing blocks divided in the division processing step ,
The division processing step is a step of dividing a portion where the number of captured objects is a predetermined value or more in the input moving image into processing blocks having a larger number of frames than other portions. , Image processing program.
コンピュータに、On the computer,
入力された動画像にかかるフレーム画像を、予め定めたフレーム抽出間隔で抽出するフレーム画像抽出ステップと、A frame image extraction step for extracting a frame image related to the input moving image at a predetermined frame extraction interval;
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、撮像されているオブジェクトの個数を検出するオブジェクト数検出ステップと、An object number detecting step for detecting the number of objects being imaged for a plurality of frame images extracted in the frame image extracting step;
前記フレーム画像抽出ステップで抽出した複数のフレーム画像について、前記オブジェクト数検出ステップで検出したオブジェクトの個数に基づき、入力された動画像を複数の処理ブロックに分割する分割処理ステップと、A division processing step for dividing the input moving image into a plurality of processing blocks based on the number of objects detected in the object number detection step for the plurality of frame images extracted in the frame image extraction step;
前記分割処理ステップで分割した複数の処理ブロックをマルチスレッドで処理し、この動画像に撮像されているオブジェクトを追跡するオブジェクト追跡ステップと、An object tracking step of processing a plurality of processing blocks divided in the division processing step in a multi-thread manner and tracking an object captured in the moving image;
前記分割処理ステップで分割した複数の処理ブロックについて、前記オブジェクト追跡ステップにおいてマルチスレッドで処理したオブジェクトの追跡結果を統合するマージ処理ステップと、を実行させる画像処理プログラムであって、A merge processing step of integrating a tracking result of an object processed in multi-thread in the object tracking step with respect to a plurality of processing blocks divided in the division processing step,
前記オブジェクト数検出ステップは、前記フレーム画像抽出ステップで抽出した複数のフレーム画像について検出した撮像されているオブジェクトの個数に基づき、入力された動画像における撮像されているオブジェクトの個数の変動を推定するステップであり、The object number detection step estimates a variation in the number of captured objects in the input moving image based on the number of captured objects detected for the plurality of frame images extracted in the frame image extraction step. Step,
前記分割処理ステップは、前記オブジェクト数検出ステップで推定した、入力された動画像における撮像されているオブジェクトの個数の変動に基づき、この動画像を複数の処理ブロックに分割するステップである、画像処理プログラム。The division processing step is a step of dividing the moving image into a plurality of processing blocks based on a change in the number of objects captured in the input moving image estimated in the object number detection step. program.
JP2013085283A 2013-04-15 2013-04-15 Image processing apparatus, image processing method, and image processing program Expired - Fee Related JP6098320B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013085283A JP6098320B2 (en) 2013-04-15 2013-04-15 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013085283A JP6098320B2 (en) 2013-04-15 2013-04-15 Image processing apparatus, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2014206934A JP2014206934A (en) 2014-10-30
JP6098320B2 true JP6098320B2 (en) 2017-03-22

Family

ID=52120416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013085283A Expired - Fee Related JP6098320B2 (en) 2013-04-15 2013-04-15 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP6098320B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10431000B2 (en) * 2017-07-18 2019-10-01 Sony Corporation Robust mesh tracking and fusion by using part-based key frames and priori model
KR102470916B1 (en) * 2021-10-25 2022-11-25 (주)블라우비트 Ai-based photographing device capable of object tracking and method for controling the same
CN121000922B (en) * 2025-10-22 2026-03-31 宁波均联智行科技股份有限公司 A method and system for eliminating in-vehicle video latency based on multi-threading optimization

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011221920A (en) * 2010-04-13 2011-11-04 Mitsubishi Electric Corp Image analyzer
CN103189898B (en) * 2011-03-22 2016-01-20 松下电器产业株式会社 Moving body pick-up unit and moving body detection method

Also Published As

Publication number Publication date
JP2014206934A (en) 2014-10-30

Similar Documents

Publication Publication Date Title
JP6561830B2 (en) Information processing system, information processing method, and program
JP6347211B2 (en) Information processing system, information processing method, and program
JP6616521B2 (en) Image processing device
JP5722381B2 (en) Video analysis
US20190333204A1 (en) Image processing apparatus, image processing method, and storage medium
KR101969623B1 (en) Face recognition with parallel detection and tracking, and/or grouped feature motion shift tracking
US11379993B2 (en) Image processing apparatus, image processing method, and storage medium
JP5412984B2 (en) Follow target detection device, follow target detection method, and follow target detection program
US8660302B2 (en) Apparatus and method for tracking target
EP2591460A1 (en) Method, apparatus and computer program product for providing object tracking using template switching and feature adaptation
JP2016085487A (en) Information processing apparatus, information processing method, and computer program
US10872423B2 (en) Image detection device, image detection method and storage medium storing program
KR20160086605A (en) Method of recognizing object and apparatus thereof
JP2011258180A5 (en)
US20130107065A1 (en) Inertial sensor aided stationary object detection in videos
JP6098320B2 (en) Image processing apparatus, image processing method, and image processing program
JP6777150B2 (en) Deterioration detection device, deterioration detection method, and program
JP5441151B2 (en) Facial image tracking device, facial image tracking method, and program
CN109643437B (en) Image processing apparatus, stereo camera apparatus, and image processing method
US20190098330A1 (en) Coding apparatus, coding method, and recording medium
EP3865814A1 (en) Prediction device and prediction method
JP2017138659A (en) Object tracking method, object tracking apparatus, and program
US20150066840A1 (en) Analysis system
JPWO2016142965A1 (en) Video processing apparatus, video processing method, and recording medium for storing video processing program
JP5699856B2 (en) Moving image processing apparatus, moving image processing method, and moving image processing computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161021

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161227

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: 20170124

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170206

R150 Certificate of patent or registration of utility model

Ref document number: 6098320

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees