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
JP6700769B2 - Image processing device, image processing method, and program - Google Patents
[go: Go Back, main page]

JP6700769B2 - Image processing device, image processing method, and program - Google Patents

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

Info

Publication number
JP6700769B2
JP6700769B2 JP2015244511A JP2015244511A JP6700769B2 JP 6700769 B2 JP6700769 B2 JP 6700769B2 JP 2015244511 A JP2015244511 A JP 2015244511A JP 2015244511 A JP2015244511 A JP 2015244511A JP 6700769 B2 JP6700769 B2 JP 6700769B2
Authority
JP
Japan
Prior art keywords
image
image file
file
extracted
moving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015244511A
Other languages
Japanese (ja)
Other versions
JP2017111573A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2015244511A priority Critical patent/JP6700769B2/en
Publication of JP2017111573A publication Critical patent/JP2017111573A/en
Application granted granted Critical
Publication of JP6700769B2 publication Critical patent/JP6700769B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

本発明は、画像処理装置、画像処理方法及びプログラムに関する。   The present invention relates to an image processing device, an image processing method, and a program.

画像から人体等を検知する物体検知装置が知られている。物体検知装置は、様々な状況で、検知を行う。例えば、物体検知装置は、スタジアムにいる観客の人数を計測したり、遊園地の来客数の人数を計測するのに用いられる。画像から人数を計測する場合、画像全体を計測する場合もあるが、画像の一部だけを計測する場合もある。その場合には、画像の検知領域を設定する必要がある。例えば、特許文献1には、人物を検知するために身長を設定した場合に、ズーム倍率やカメラの光学特性を考慮しなくても、検知できるようにするための検知領域の設定方法が開示されている。   There is known an object detection device that detects a human body or the like from an image. The object detection device performs detection in various situations. For example, the object detection device is used to measure the number of spectators in a stadium or the number of visitors to an amusement park. When measuring the number of people from an image, the entire image may be measured, but only a part of the image may be measured. In that case, it is necessary to set the detection area of the image. For example, Patent Document 1 discloses a method of setting a detection area that enables detection when the height is set to detect a person without considering the zoom ratio and the optical characteristics of the camera. ing.

特開2012−59196号公報JP2012-59196A

しかし、上述の特許文献1では、動画内の複数フレームの画像の中で検知領域を設定するのに適した画像を選択・抽出する方法が開示されていない。   However, the above-mentioned Patent Document 1 does not disclose a method of selecting/extracting an image suitable for setting a detection region among images of a plurality of frames in a moving image.

本発明の目的は、画像ファイルから検知領域を設定するのに適した画像を抽出することができる画像処理装置、画像処理方法及びプログラムを提供することである。   An object of the present invention is to provide an image processing device, an image processing method and a program capable of extracting an image suitable for setting a detection area from an image file.

本発明の画像処理装置は、画像ファイルを選択可能な設定画面を表示部に表示させる表示制御部と前記設定画面に対しユーザにより選択された画像ファイルが一つの画像のみを含む静止画ファイルである場合、当該画像を抽出画像として抽出し、当該画像ファイルが複数の画像を含む動画ファイルである場合、当該複数の画像のうち一つの画像を抽出画像として抽出する抽出部と、前記抽出部により抽出された前記抽出画像に、ユーザ操作に従って、物体の検知処理が実行される検知領域を設定する設定部と、前記画像ファイルが前記静止画ファイルである場合、前記抽出画像に設定された前記検知領域に対し前記検知処理を実行し、当該画像ファイルが前記動画ファイルである場合、当該抽出画像に設定された当該検知領域、および、当該動画ファイルに含まれる前記複数の画像のうち当該抽出画像と異なる他の画像における当該検知領域に対応する領域、の各々に対し前記検知処理を実行する物体検知部とを有し、前記表示制御部は、前記設定部により前記検知領域が設定されると、当該検知領域の前記抽出画像における座標、幅、および高さのうち少なくともいずれかを示す数値を前記設定画面に表示させることを特徴とする。 The image processing device of the present invention is a display control unit that displays a setting screen on which a file can be selected on a display unit, and a still image file in which the image file selected by the user for the setting screen includes only one image. In some cases, the image is extracted as an extracted image, and when the image file is a moving image file including a plurality of images, an extraction unit that extracts one image of the plurality of images as an extracted image, and the extraction unit In the extracted image thus extracted , a setting unit that sets a detection area in which an object detection process is executed according to a user operation; and, if the image file is the still image file, the detection set in the extracted image. When the detection process is performed on a region and the image file is the moving image file, the detection region set in the extracted image and the extracted image among the plurality of images included in the moving image file A region corresponding to the detection region in another different image, and an object detection unit that performs the detection process for each , the display control unit, when the detection region is set by the setting unit, It is characterized in that a numerical value indicating at least one of a coordinate, a width and a height of the detection area in the extracted image is displayed on the setting screen .

本発明によれば、画像ファイルから検知領域を設定するのに適した画像を抽出することができる。   According to the present invention, an image suitable for setting a detection area can be extracted from an image file.

本実施形態による画像処理装置の構成例を示す図である。It is a figure which shows the structural example of the image processing apparatus by this embodiment. 本実施形態による画像処理装置のハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the image processing apparatus by this embodiment. 画像処理装置のメインウィンドウの一例を示す図である。It is a figure which shows an example of the main window of an image processing apparatus. 検知領域設定ウィンドウの一例を示す図である。It is a figure which shows an example of a detection area setting window. 本実施形態による画像処理方法を示すフローチャートである。6 is a flowchart showing an image processing method according to the present embodiment.

図1は、本発明の実施形態による画像処理装置の構成の一例を示す図である。画像処理装置101は、物体検知部102、ファイル入力部103、ファイル出力部104、表示部105、検知領域設定部106、及び操作入力部109を有する。検知領域設定部106は、画像抽出部107及び設定部108を有する。ファイル入力部103は、画像ファイル111を入力する。   FIG. 1 is a diagram showing an example of the configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus 101 includes an object detection unit 102, a file input unit 103, a file output unit 104, a display unit 105, a detection area setting unit 106, and an operation input unit 109. The detection area setting unit 106 includes an image extraction unit 107 and a setting unit 108. The file input unit 103 inputs the image file 111.

図2は、画像処理装置101のハードウェア構成の一例を示す図である。画像処理装置101は、CPU201、ROM202、RAM203、ハードディスクドライブ(HDD)204、ディスクドライブ205、ネットワークインターフェース206、入力装置207、及び表示デバイス208を有する。ネットワークインターフェース206は、ネットワーク211に接続されている。CPU201は、画像処理装置101を統括制御する制御装置である。ROM202は、CPU201が画像処理装置101を制御するためのプログラムを記憶する。なお、ROM202に代えて、2次記憶装置を設けてもよい。RAM203は、CPU201がROM202から読み出したプログラムを展開し、処理を実行するためのメモリである。また、RAM203は、一時記憶メモリとして各種処理の対象となるデータを一時記憶するための記憶領域としても使用される。HDD204は、画像ファイル111を格納する。CPU201は、HDD204から画像ファイル111を入力する。なお、CPU201が画像ファイル111をディスクドライブ205又はネットワークインターフェース206から入力する場合には、HDD204は必ずしもなくてもよい。ディスクドライブ205は、CD、DVD、ブルーレイディスク、又はフレキシブルディスク内の画像ファイル111を読み出し、CPU201はディスクドライブ205を介して画像ファイル111を入力する。なお、CPU201が画像ファイル111をHDD204又はネットワークインターフェース206から入力する場合には、ディスクドライブ205は必ずしもなくてもよい。ネットワークインターフェース206は、ネットワーク211を介して通信を行う回路である。CPU201は、ネットワーク211を介して画像ファイル111を入力する。CPU201が画像ファイル111をHDD204又はディスクドライブ205から入力する場合には、ネットワークインターフェース206は必ずしもなくてもよい。表示デバイス208は、画像や領域枠を表示するディスプレイ等のデバイスである。入力装置207は、数値入力用のキーボード、表示デバイス208の表示領域の表示位置を指示するためのポインティングデバイス、マウス、及びタッチパネル等を有する。   FIG. 2 is a diagram illustrating an example of the hardware configuration of the image processing apparatus 101. The image processing apparatus 101 includes a CPU 201, a ROM 202, a RAM 203, a hard disk drive (HDD) 204, a disk drive 205, a network interface 206, an input device 207, and a display device 208. The network interface 206 is connected to the network 211. The CPU 201 is a control device that integrally controls the image processing device 101. The ROM 202 stores a program for the CPU 201 to control the image processing apparatus 101. A secondary storage device may be provided instead of the ROM 202. The RAM 203 is a memory for the CPU 201 to expand the program read from the ROM 202 and execute processing. The RAM 203 is also used as a temporary storage memory and as a storage area for temporarily storing data to be processed. The HDD 204 stores the image file 111. The CPU 201 inputs the image file 111 from the HDD 204. When the CPU 201 inputs the image file 111 from the disk drive 205 or the network interface 206, the HDD 204 is not always necessary. The disk drive 205 reads the image file 111 in the CD, DVD, Blu-ray disk, or flexible disk, and the CPU 201 inputs the image file 111 via the disk drive 205. When the CPU 201 inputs the image file 111 from the HDD 204 or the network interface 206, the disk drive 205 is not always necessary. The network interface 206 is a circuit that performs communication via the network 211. The CPU 201 inputs the image file 111 via the network 211. When the CPU 201 inputs the image file 111 from the HDD 204 or the disk drive 205, the network interface 206 is not always necessary. The display device 208 is a device such as a display that displays images and area frames. The input device 207 includes a keyboard for inputting numerical values, a pointing device for instructing the display position of the display area of the display device 208, a mouse, a touch panel, and the like.

以上のように、画像処理装置101のハードウェア構成は、一般的なPC(パーソナルコンピュータ)に搭載されるハードウェア構成要素と同様のハードウェア構成要素を有している。そのため、画像処理装置101で実現される各種機能を、PC上で動作するソフトウェアとして実装することが可能である。画像処理装置101は、CPU201がプログラムを実行することにより、図1の機能及び後述の図5のフローチャートを実現することができる。   As described above, the hardware configuration of the image processing apparatus 101 has the same hardware configuration elements as those installed in a general PC (personal computer). Therefore, various functions realized by the image processing apparatus 101 can be implemented as software that operates on a PC. The image processing apparatus 101 can realize the functions of FIG. 1 and the flowchart of FIG. 5 described later by the CPU 201 executing the program.

図3は、表示部105が表示デバイス208に表示するメインウィンドウ301の一例を示す図である。メインウィンドウ301は、入力ファイル選択ボタン302、検知領域設定ウィンドウ起動ボタン303、検知領域表示エリア304、及び、検知開始ボタン305を有する。   FIG. 3 is a diagram showing an example of the main window 301 displayed on the display device 208 by the display unit 105. The main window 301 has an input file selection button 302, a detection area setting window start button 303, a detection area display area 304, and a detection start button 305.

図4は、表示部105が表示デバイス208に表示する検知領域設定ウィンドウ401の一例を示す図である。検知領域設定ウィンドウ401は、抽出画像402、検知領域設定枠403、OKボタン404、及び、キャンセルボタン405を有する。   FIG. 4 is a diagram showing an example of the detection area setting window 401 displayed on the display device 208 by the display unit 105. The detection area setting window 401 has an extracted image 402, a detection area setting frame 403, an OK button 404, and a cancel button 405.

図5は、画像処理装置101の画像処理方法の一例を示すフローチャートである。画像処理装置101が起動すると、表示部105は、図3のメインウィンドウ301を表示デバイス208に表示する。ステップS1001では、ユーザーによる入力ファイル選択ボタン302の選択が検出されると、ユーザーによる選択のために、表示部105はファイル選択ダイアログを表示する。ファイル入力部103は、ユーザーによって選択された画像ファイル111を、HDD204、ディスクドライブ205又はネットワークインターフェース206を介して入力する。画像ファイル111の種類は、静止画ファイル及び動画ファイルのどちらでもよい。入力ファイル選択ボタン302及びファイル選択ダイアログは、ファイル入力部103の一例である。   FIG. 5 is a flowchart showing an example of the image processing method of the image processing apparatus 101. When the image processing apparatus 101 is activated, the display unit 105 displays the main window 301 of FIG. 3 on the display device 208. In step S1001, when the selection of the input file selection button 302 by the user is detected, the display unit 105 displays the file selection dialog for the selection by the user. The file input unit 103 inputs the image file 111 selected by the user via the HDD 204, the disk drive 205 or the network interface 206. The type of the image file 111 may be either a still image file or a moving image file. The input file selection button 302 and the file selection dialog are examples of the file input unit 103.

次に、ステップS1002では、ユーザーによる検知領域設定ウィンドウ起動ボタン303の選択に応じて、表示部105は、図4の検知領域設定ウィンドウ401を表示する。検知領域設定ウィンドウ401は、検知領域設定部106の機能を持つウィンドウである。   Next, in step S1002, the display unit 105 displays the detection area setting window 401 of FIG. 4 according to the selection of the detection area setting window activation button 303 by the user. The detection area setting window 401 is a window having the function of the detection area setting unit 106.

次に、ステップS1003では、画像抽出部107は、ステップS1001でユーザーが選択した画像ファイル111から抽出画像402を抽出する。抽出画像402の抽出方法を以下に説明する。画像ファイル111が一つの画像しか含まれていない静止画ファイルの場合は、画像抽出部107は、画像ファイル111からその一つの画像を抽出画像402として抽出する。画像ファイル111が複数フレームの画像から構成されている動画ファイルの場合は、画像抽出部107は、画像ファイル(動画ファイル)111の先頭フレームの画像を抽出画像402として抽出する。   Next, in step S1003, the image extraction unit 107 extracts the extracted image 402 from the image file 111 selected by the user in step S1001. The method of extracting the extracted image 402 will be described below. When the image file 111 is a still image file including only one image, the image extracting unit 107 extracts the one image from the image file 111 as the extracted image 402. When the image file 111 is a moving image file composed of images of a plurality of frames, the image extracting unit 107 extracts the image of the first frame of the image file (moving image file) 111 as the extracted image 402.

次に、ステップS1004では、表示部105は、図4に示すように、抽出画像402を検知領域設定ウィンドウ401に表示する。抽出画像402をその画像サイズのままで表示すると、抽出画像402が検知領域設定ウィンドウ401に入りきらない場合がある。例えば、検知領域設定ウィンドウ401の画像表示領域が幅1600、高さ900であり、抽出画像402の画像サイズが幅3200、高さ1800の場合には、表示部105は、抽出画像402を2分の1にリサイズして表示する。表示部105は、抽出画像402に対して所定の倍率の大きさの画像を表示する。   Next, in step S1004, the display unit 105 displays the extracted image 402 in the detection area setting window 401 as shown in FIG. If the extracted image 402 is displayed in the same size as the image, the extracted image 402 may not fit in the detection area setting window 401. For example, when the image display area of the detection area setting window 401 has a width of 1600 and a height of 900, and the image size of the extracted image 402 is a width of 3200 and a height of 1800, the display unit 105 divides the extracted image 402 into two minutes. Resize to 1 and display. The display unit 105 displays an image having a predetermined magnification with respect to the extracted image 402.

次に、ステップS1005では、設定部108は、ユーザーによる抽出画像402上での枠の操作に応じて、検知領域に対応する検知領域設定枠403を設定する。操作入力部109は、ユーザーによる入力装置207の操作情報を入力し、設定部108は、その操作情報に応じて、検知領域設定枠403を設定する。検知領域設定枠403の設定方法を以下に説明する。図4の抽出画像402は、長方形である。抽出画像402上には、長方形の検知領域設定枠403が表示されている。検知領域設定枠403を描くために、ユーザーは抽出画像402上でマウスをドラッグする。ユーザーが抽出画像402上でマウスをダウンした点が一つの頂点になり、ユーザーが抽出画像402上でアップした点がもう一つの頂点になり、両方の頂点が対頂点となる。両方の頂点から抽出画像402の各辺に平行な線を延ばすと、二つの交点ができる。以上の4点を結んだ長方形が検知領域設定枠403となる。表示部105は、ユーザーの操作に応じて、所定の倍率の大きさの抽出画像402の上に、検知領域設定枠403を表示する。   Next, in step S1005, the setting unit 108 sets the detection area setting frame 403 corresponding to the detection area according to the user's operation of the frame on the extracted image 402. The operation input unit 109 inputs the operation information of the input device 207 by the user, and the setting unit 108 sets the detection area setting frame 403 according to the operation information. A method of setting the detection area setting frame 403 will be described below. The extracted image 402 in FIG. 4 is rectangular. A rectangular detection area setting frame 403 is displayed on the extracted image 402. To draw the detection area setting frame 403, the user drags the mouse on the extracted image 402. The point where the user has moved the mouse down on the extracted image 402 becomes one vertex, the point which the user moved up on the extracted image 402 becomes another vertex, and both vertices are opposite vertices. By extending a line parallel to each side of the extracted image 402 from both vertices, two intersections are created. The rectangle connecting the above four points becomes the detection area setting frame 403. The display unit 105 displays the detection area setting frame 403 on the extracted image 402 having a predetermined magnification according to the user's operation.

ユーザーによるOKボタン404の選択を検出すると、設定部108は、検知領域設定ウィンドウ401を閉じて、検知領域設定枠403の左上の頂点のXY座標、幅及び高さを検知領域として設定する。表示部105は、検知領域表示エリア304にそのXY座標、幅及び高さを表示する。このようにして、設定部108は、抽出画像402に対して、検知領域設定枠403に対応する検知領域を設定する。ただし、ステップS1004で抽出画像402をリサイズして表示した場合には、設定部108は、そのリサイズの所定の倍率の逆数をXY座標、幅及び高さに掛けて検知領域を設定する。表示部105は、その設定したXY座標、幅及び高さを検知領域表示エリア304に表示する。例えば、上記の例のように、2分の1にリサイズした場合には、設定部108は、XY座標、幅及び高さに対して逆数の2を掛けることにより、検知領域を設定する。検知領域の大きさは、検知領域設定枠403の大きさに対して、所定の倍率の逆数の大きさである。   When the selection of the OK button 404 by the user is detected, the setting unit 108 closes the detection area setting window 401 and sets the XY coordinates, width, and height of the upper left apex of the detection area setting frame 403 as the detection area. The display unit 105 displays the XY coordinates, width, and height of the detection area display area 304. In this way, the setting unit 108 sets the detection area corresponding to the detection area setting frame 403 in the extracted image 402. However, when the extracted image 402 is resized and displayed in step S1004, the setting unit 108 sets the detection area by multiplying the XY coordinates, the width, and the height by the reciprocal of a predetermined magnification of the resize. The display unit 105 displays the set XY coordinates, width and height in the detection area display area 304. For example, in the case of resizing to half as in the above example, the setting unit 108 sets the detection area by multiplying the XY coordinates, the width, and the height by the reciprocal 2. The size of the detection area is the size of the reciprocal of a predetermined magnification with respect to the size of the detection area setting frame 403.

ユーザーによるキャンセルボタン405の選択を検出すると、設定部108は、検知領域設定ウィンドウ401を閉じて、新たなXY座標等の検知領域を設定しない。なお、検知領域設定枠403を設定する方法は上記の方法に限らない。例えば、予め用意されている枠をドラッグして持ってくる方法や、枠の辺を平行移動させる方法などの様々な方法のいずれの方法を使ってもよい。また、検知領域設定枠403の形状は、長方形以外の形状でもよく、物体検知部102が検知可能な閉空間の形状であればよい。   When detecting the selection of the cancel button 405 by the user, the setting unit 108 closes the detection area setting window 401 and does not set a new detection area such as XY coordinates. The method of setting the detection area setting frame 403 is not limited to the above method. For example, any of various methods such as a method of bringing in a frame prepared in advance and a method of moving the sides of the frame in parallel may be used. Further, the shape of the detection area setting frame 403 may be a shape other than a rectangle, as long as it is a closed space shape that can be detected by the object detection unit 102.

次に、ステップS1006では、ユーザーによる検知開始ボタン305の選択に応じて、物体検知部102は人物(物体)の検知を開始する。物体検知部102が検知する領域は、設定部108に記憶されたX座標、Y座標、幅、高さで定義される検知領域設定枠403の長方形の内部になる。物体検知部102が検知する対象となる画像は、画像ファイル111中の全ての画像である。物体検知部102は、画像ファイル111の中の一又は複数の画像の中の検知領域設定枠403に対応する検知領域に対して人物(物体)を検知する。本実施形態では、物体検知部102の検知対象は、画像ファイル111中の全ての画像であるが、必ずしも全ての画像にする必要はない。例えば、物体検知部102の検知対象は、画像ファイル111中の先頭の画像、最後の画像、所定の画像、所定フレーム間隔の画像、所定再生時間間隔の画像等、画像ファイル111中のいずれかの画像であればどの画像でもよい。   Next, in step S1006, the object detection unit 102 starts detection of a person (object) according to the selection of the detection start button 305 by the user. The area detected by the object detection unit 102 is inside the rectangle of the detection area setting frame 403 defined by the X coordinate, Y coordinate, width, and height stored in the setting unit 108. The images to be detected by the object detection unit 102 are all the images in the image file 111. The object detection unit 102 detects a person (object) in the detection area corresponding to the detection area setting frame 403 in one or a plurality of images in the image file 111. In the present embodiment, the object to be detected by the object detection unit 102 is all the images in the image file 111, but not all the images need to be detected. For example, the object to be detected by the object detection unit 102 is any one of the image file 111 such as the first image, the last image, a predetermined image, an image with a predetermined frame interval, an image with a predetermined reproduction time interval in the image file 111. Any image can be used as long as it is an image.

次に、ステップS1007では、ファイル出力部104は、物体検知部102による人物検知の結果ファイルを所定の出力フォルダに保存する。上記の結果ファイルは、画像ファイル111中の検知した人物に対して印をつけた画像と、検知対象の画像毎の検知された人数をメタデータとして記述したリストとを有する。ステップS1006では、物体検知部102は、人物検知により、この結果ファイルを生成する。以上で、画像処理装置101は、処理を終了する。   Next, in step S1007, the file output unit 104 saves the result file of the person detection by the object detection unit 102 in a predetermined output folder. The above result file has an image in which a detected person in the image file 111 is marked, and a list in which the detected number of persons for each image to be detected is described as metadata. In step S1006, the object detection unit 102 generates this result file by detecting a person. Thus, the image processing apparatus 101 ends the process.

なお、ステップS1003の処理は、上記の処理に限定されない。例えば、ステップS1003では、画像抽出部107は、画像ファイル111が動画ファイルの場合には、画像ファイル(動画ファイル)111の最終フレームの画像を抽出画像402として抽出してもよい。   The process of step S1003 is not limited to the above process. For example, in step S1003, when the image file 111 is a moving image file, the image extracting unit 107 may extract the image of the last frame of the image file (moving image file) 111 as the extracted image 402.

また、ステップS1003では、画像抽出部107は、画像ファイル111が動画ファイルの場合には、画像ファイル(動画ファイル)111の先頭フレームから所定の再生時間経過後のフレームの画像を抽出画像402として抽出してもよい。   Further, in step S1003, when the image file 111 is a moving image file, the image extracting unit 107 extracts, as the extracted image 402, an image of a frame after a predetermined reproduction time has elapsed from the first frame of the image file (moving image file) 111. You may.

また、ステップS1003では、画像抽出部107は、画像ファイル111が動画ファイルの場合には、画像ファイル(動画ファイル)111の先頭フレームから所定フレーム数目の画像を抽出画像402として抽出してもよい。   Further, in step S1003, when the image file 111 is a moving image file, the image extracting unit 107 may extract an image of a predetermined number of frames from the first frame of the image file (moving image file) 111 as the extracted image 402.

また、ステップS1003では、画像抽出部107は、画像ファイル111が動画ファイルの場合には、画像ファイル(動画ファイル)111の先頭フレームから全体再生時間の所定割合経過後のフレームの画像を抽出画像402として抽出してもよい。   Further, in step S1003, when the image file 111 is a moving image file, the image extracting unit 107 extracts an image of a frame after a predetermined percentage of the entire reproduction time has elapsed from the first frame of the image file (moving image file) 111. May be extracted as

また、ステップS1003では、画像抽出部107は、画像ファイル111が動画ファイルの場合には、画像ファイル(動画ファイル)111の先頭フレームから全体フレーム数の所定割合のフレーム数目の画像を抽出画像402として抽出してもよい。   Further, in step S1003, when the image file 111 is a moving image file, the image extracting unit 107 sets, as the extracted image 402, an image of a frame number that is a predetermined ratio of the total number of frames from the first frame of the image file (moving image file) 111. You may extract.

また、ステップS1003では、画像抽出部107は、画像ファイル111が動画ファイルの場合には、画像ファイル(動画ファイル)111の中のイベントが関連付けられた複数フレームの中の先頭フレームの画像を抽出画像402として抽出してもよい。ここで、イベントは、例えば、動体が検知されたことを示すイベントである。動体が検知されたフレームを選択することにより、動体の画像内の位置が直感的に把握できるため、検知領域の設定をしやすくなる。画像抽出部107は、このイベントが関連付けられたフレームの画像を抽出画像402として抽出することができる。   Further, in step S1003, when the image file 111 is a moving image file, the image extracting unit 107 extracts the image of the first frame of the plurality of frames associated with the event in the image file (moving image file) 111. You may extract as 402. Here, the event is, for example, an event indicating that a moving body has been detected. By selecting the frame in which the moving body is detected, the position of the moving body in the image can be intuitively grasped, which facilitates the setting of the detection area. The image extraction unit 107 can extract the image of the frame associated with this event as the extracted image 402.

また、ステップS1003では、画像抽出部107は、画像ファイル111が動画ファイルの場合には、画像ファイル(動画ファイル)111の中のイベントが関連付けられた複数フレームの中の最終フレームの画像を抽出画像402として抽出してもよい。   Further, in step S1003, when the image file 111 is a moving image file, the image extracting unit 107 extracts the image of the final frame of the plurality of frames associated with the event in the image file (moving image file) 111. You may extract as 402.

また、ステップS1003では、画像抽出部107は、動画ファイルの場合には、画像ファイル(動画ファイル)111の中のイベントが関連付けられた複数フレームの中の先頭フレームから所定フレーム数目の画像を抽出画像402として抽出してもよい。   Further, in step S1003, the image extraction unit 107 extracts an image of a predetermined number of frames from the first frame of the plurality of frames associated with the event in the image file (moving image file) 111 in the case of a moving image file. You may extract as 402.

本実施形態によれば、検知対象となる画像ファイル111から検知領域設定枠403を設定するのに適した条件を持った抽出画像402を抽出することができる。画像ファイル111が動画ファイルの場合には、画像処理装置101は、画像ファイル111の動画内の複数フレームの画像の中から検知領域設定枠403を設定するのに適した抽出画像402を抽出することができる。   According to the present embodiment, it is possible to extract the extracted image 402 having a condition suitable for setting the detection area setting frame 403 from the image file 111 to be detected. When the image file 111 is a moving image file, the image processing apparatus 101 extracts an extracted image 402 suitable for setting the detection area setting frame 403 from images of a plurality of frames in the moving image of the image file 111. You can

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読み出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. It can also be realized by the processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

なお、上記実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。   It should be noted that each of the above-described embodiments is merely an example of an embodiment for carrying out the present invention, and the technical scope of the present invention should not be limitedly interpreted by these. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

101 画像処理装置、102 物体検知部、103 ファイル入力部、104 ファイル出力部、105 表示部、106 検知領域設定部、107 画像抽出部、108 設定部、111 画像ファイル 101 image processing device, 102 object detection unit, 103 file input unit, 104 file output unit, 105 display unit, 106 detection region setting unit, 107 image extraction unit, 108 setting unit, 111 image file

Claims (19)

画像ファイルを選択可能な設定画面を表示部に表示させる表示制御部と
前記設定画面に対しユーザにより選択された画像ファイルが一つの画像のみを含む静止画ファイルである場合、当該画像を抽出画像として抽出し、当該画像ファイルが複数の画像を含む動画ファイルである場合、当該複数の画像のうち一つの画像を抽出画像として抽出する抽出部と、
前記抽出部により抽出された前記抽出画像に、ユーザ操作に従って、物体の検知処理が実行される検知領域を設定する設定部と、
前記画像ファイルが前記静止画ファイルである場合、前記抽出画像に設定された前記検知領域に対し前記検知処理を実行し、当該画像ファイルが前記動画ファイルである場合、当該抽出画像に設定された当該検知領域、および、当該動画ファイルに含まれる前記複数の画像のうち当該抽出画像と異なる他の画像における当該検知領域に対応する領域、の各々に対し前記検知処理を実行する物体検知部とを有し、
前記表示制御部は、前記設定部により前記検知領域が設定されると、当該検知領域の前記抽出画像における座標、幅、および高さのうち少なくともいずれかを示す数値を前記設定画面に表示させることを特徴とする画像処理装置。
A display control unit that displays a setting screen on which an image file can be selected on the display unit ,
When the image file selected by the user on the setting screen is a still image file including only one image, the image is extracted as an extracted image, and when the image file is a moving image file including a plurality of images, An extraction unit that extracts one of the plurality of images as an extracted image ,
In the extracted image extracted by the extraction unit , according to a user operation, a setting unit that sets a detection region in which the object detection process is executed ,
When the image file is the still image file, the detection processing is executed on the detection area set in the extracted image, and when the image file is the moving image file, the detection set in the extracted image is performed. detection area, and, chromatic and object detecting unit area corresponding to the detection regions in different another image with the extracted image of the plurality of images included in the moving image file, for each of performing the detection process Then
When the detection region is set by the setting unit, the display control unit causes the setting screen to display a numerical value indicating at least one of the coordinate, the width, and the height of the detection region in the extracted image. An image processing device characterized by.
前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの先頭フレームの画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction section, the case where the image file is a moving picture file, an image processing apparatus according to claim 1, wherein extracting the image of the first frame of the moving image file. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの最終フレームの画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction section, the case where the image file is a moving picture file, an image processing apparatus according to claim 1, wherein extracting the image of the last frame of the moving image file. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの先頭フレームから所定の再生時間経過後のフレームの画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction section, the case where the image file is a moving picture file, an image processing apparatus according to claim 1, wherein extracting the image of the frame from the first frame after a lapse of a predetermined reproduction time of the moving image file. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの先頭フレームから所定フレーム数目の画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction section, the case where the image file is a moving picture file, an image processing apparatus according to claim 1, wherein extracting the image of a predetermined number of frames from the beginning frame of the moving image file. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの先頭フレームから全体再生時間の所定割合経過後のフレームの画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction section, the case where the image file is a moving picture file, an image processing according to claim 1, wherein extracting the image of a frame after a predetermined ratio lapse of total playing time from the head frame of the moving image file apparatus. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの先頭フレームから全体フレーム数の所定割合のフレーム数目の画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction section, the case where the image file is a moving picture file, an image processing apparatus according to claim 1, wherein extracting the image of a number of frames th predetermined ratio of the entire number of frames from the first frame of the moving image file . 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの中のイベントが関連付けられたフレームの画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction unit, when the image file is a moving picture file, an image processing apparatus according to claim 1, wherein extracting the image of a frame event in the moving image file is associated. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの中のイベントが関連付けられた複数フレームの中の先頭フレームの画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction unit, when the image file is a moving picture file, an image of claim 1, wherein extracting the image of the first frame in the plurality of frames events in the moving image file is associated with Processing equipment. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの中のイベントが関連付けられた複数フレームの中の最終フレームの画像を抽出することを特徴とする請求項記載の画像処理装置。 The extraction unit, when the image file is a moving picture file, an image of claim 1, wherein extracting the image of the last frame in the plurality of frames events in the moving image file is associated with Processing equipment. 前記抽出部は、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの中のイベントが関連付けられた複数フレームの中の先頭フレームから所定フレーム数目の画像を抽出することを特徴とする請求項記載の画像処理装置。 When the image file is the moving image file , the extracting unit extracts an image of a predetermined number of frames from a first frame of a plurality of frames associated with an event in the moving image file. 1. The image processing device according to 1 . 前記物体検知部は、前記画像ファイルが前記動画ファイルである場合、前記抽出画像に設定された当該検知領域、および、当該動画ファイルに含まれる前記複数の画像のうち当該抽出画像以外の全ての画像の各々における当該検知領域に対応する領域、に対し前記検知処理を実行することを特徴とする請求項1乃至11のいずれか1項に記載の画像処理装置。The object detection unit, when the image file is the moving image file, the detection region set in the extracted image, and all images other than the extracted image among the plurality of images included in the moving image file. The image processing apparatus according to any one of claims 1 to 11, wherein the detection processing is performed on an area corresponding to the detection area in each of the above. 前記表示制御部は、前記抽出部により抽出された前記抽出画像を前記表示部に表示させ、
前記設定部は、前記表示部に表示された前記抽出画像に対し前記検知領域を指定する操作に基づき、当該抽出画像に当該検知領域を設定することを特徴とする請求項1乃至12のいずれか1項に記載の画像処理装置。
The display control unit causes the display unit to display the extracted image extracted by the extraction unit,
The setting unit, based on the operation to the extracted image displayed on the display unit to specify the detection area, any one of claims 1 to 12, characterized in that to set the detection area in the extracted image The image processing apparatus according to item 1.
画像ファイルを選択可能な設定画面を表示部に表示させる第1表示制御工程と、
前記設定画面に対しユーザにより選択された画像ファイルが一つの画像のみを含む静止画ファイルである場合、当該画像を抽出画像として抽出し、当該画像ファイルが複数の画像を含む動画ファイルである場合、当該複数の画像のうち一つの画像を抽出画像として抽出する抽出工程と、
前記抽出工程において抽出された前記抽出画像に、ユーザ操作に従って、物体の検知処理が実行される検知領域を設定する設定工程と、
前記設定工程において前記検知領域が設定されると、当該検知領域の前記抽出画像における座標、幅、および高さのうち少なくともいずれかを示す数値を前記設定画面に表示させる第2表示制御工程と、
前記画像ファイルが前記静止画ファイルである場合、前記抽出画像に設定された前記検知領域に対し前記検知処理を実行し、当該画像ファイルが前記動画ファイルである場合、当該抽出画像に設定された当該検知領域、および、当該動画ファイルに含まれる前記複数の画像のうち当該抽出画像と異なる他の画像における当該検知領域に対応する領域、の各々に対し前記検知処理を実行する物体検知工程
を有することを特徴とする画像処理方法。
A first display control step of displaying a setting screen capable of selecting an image file on the display section;
When the image file selected by the user on the setting screen is a still image file including only one image, the image is extracted as an extracted image, and when the image file is a moving image file including a plurality of images, An extraction step of extracting one of the plurality of images as an extracted image ,
In the extracted image extracted in the extracting step, a setting step of setting a detection area in which a detection process of an object is executed according to a user operation ,
When the detection area is set in the setting step, a second display control step of causing the setting screen to display a numerical value indicating at least one of coordinates, width, and height in the extracted image of the detection area,
When the image file is the still image file, the detection processing is executed on the detection area set in the extracted image, and when the image file is the moving image file, the detection set in the extracted image is performed. An object detection step of performing the detection process on each of a detection region and a region corresponding to the detection region in another image different from the extracted image among the plurality of images included in the moving image file. An image processing method characterized by the above.
前記抽出工程において、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの先頭フレームの画像を抽出することを特徴とする請求項14記載の画像処理方法。15. The image processing method according to claim 14, wherein in the extracting step, when the image file is the moving image file, the image of the first frame of the moving image file is extracted. 前記抽出工程において、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの中のイベントが関連付けられたフレームの画像を抽出することを特徴とする請求項14記載の画像処理方法。15. The image processing method according to claim 14, wherein in the extracting step, when the image file is the moving image file, an image of a frame associated with an event in the moving image file is extracted. 前記抽出工程において、前記画像ファイルが前記動画ファイルである場合、当該動画ファイルの中のイベントが関連付けられた複数フレームの中の先頭フレームの画像を抽出することを特徴とする請求項14記載の画像処理方法。The image according to claim 14, wherein, in the extracting step, when the image file is the moving image file, an image of a first frame among a plurality of frames associated with an event in the moving image file is extracted. Processing method. 前記抽出工程において抽出された前記抽出画像を前記表示部に表示させる第3表示制御工程を更に有し、Further comprising a third display control step of displaying the extracted image extracted in the extracting step on the display unit,
前記設定工程において、前記表示部に表示された前記抽出画像に対し前記検知領域を指定する操作に基づき、当該抽出画像に当該検知領域を設定することを特徴とする請求項14乃至17のいずれか1項に記載の画像処理方法。18. The detection area is set in the extracted image based on an operation of designating the detection area in the extracted image displayed on the display unit in the setting step. The image processing method according to item 1.
コンピュータを請求項1乃至13のいずれか1項に記載の画像処理装置の各部として機能させるためのプログラム。A program for causing a computer to function as each unit of the image processing apparatus according to claim 1.
JP2015244511A 2015-12-15 2015-12-15 Image processing device, image processing method, and program Active JP6700769B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015244511A JP6700769B2 (en) 2015-12-15 2015-12-15 Image processing device, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015244511A JP6700769B2 (en) 2015-12-15 2015-12-15 Image processing device, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2017111573A JP2017111573A (en) 2017-06-22
JP6700769B2 true JP6700769B2 (en) 2020-05-27

Family

ID=59080199

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015244511A Active JP6700769B2 (en) 2015-12-15 2015-12-15 Image processing device, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6700769B2 (en)

Also Published As

Publication number Publication date
JP2017111573A (en) 2017-06-22

Similar Documents

Publication Publication Date Title
JP5511573B2 (en) Display control apparatus, control method therefor, program, and storage medium
US9953454B1 (en) Systems and methods for displaying representative images
KR102024422B1 (en) Method for opening file in file folder and terminal
JP6102588B2 (en) Information processing apparatus, information processing method, and program
US20160321833A1 (en) Method and apparatus for generating moving photograph based on moving effect
JP5503011B2 (en) Method for trimming image content, terminal and computer-readable recording medium
EP2816475A1 (en) Information display apparatus, non-transitory computer-readable storage medium and display control method
KR20150106330A (en) Image display apparatus and image display method
US20100158379A1 (en) Image background removal
WO2012147959A1 (en) Input device, input method and recording medium
JP2015194997A (en) User interface device, user interface method, program and recording medium
KR101098754B1 (en) Image processing apparatus and image processing method
US20160203366A1 (en) Device for determining principal facial image in photographic image, and method and program for controlling same
US10192524B2 (en) Image display apparatus, image display method, and storage medium
JP5795916B2 (en) Image processing apparatus and image processing method
JP2007512610A (en) How to visualize a pointer during a conversation
JP6700769B2 (en) Image processing device, image processing method, and program
JP2018081551A (en) User interface method, information processing device, information processing system, and information processing program
JP2014085814A (en) Information processing device, control method therefor, and program
JP6777993B2 (en) Image processing equipment, image processing methods and programs
JP7657602B2 (en) IMAGE SYNTHESIS METHOD, COMPUTER PROGRAM, AND IMAGE SYNTHESIS DEVICE
JP4789658B2 (en) Slide show playback method, slide show playback program, and slide show playback apparatus
JP2013235052A (en) Map display device, method for controlling the same, and control program
JP2012133459A (en) Apparatus, method and program for estimating image, and computer-readable recording medium storing the program
JP6614799B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191025

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191112

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200110

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200501

R151 Written notification of patent or utility model registration

Ref document number: 6700769

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151