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
JP7626437B2 - Image Processing Device - Google Patents
[go: Go Back, main page]

JP7626437B2 - Image Processing Device - Google Patents

Image Processing Device Download PDF

Info

Publication number
JP7626437B2
JP7626437B2 JP2021045525A JP2021045525A JP7626437B2 JP 7626437 B2 JP7626437 B2 JP 7626437B2 JP 2021045525 A JP2021045525 A JP 2021045525A JP 2021045525 A JP2021045525 A JP 2021045525A JP 7626437 B2 JP7626437 B2 JP 7626437B2
Authority
JP
Japan
Prior art keywords
image
input
layer
query
output
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
JP2021045525A
Other languages
Japanese (ja)
Other versions
JP2022144486A (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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP2021045525A priority Critical patent/JP7626437B2/en
Publication of JP2022144486A publication Critical patent/JP2022144486A/en
Application granted granted Critical
Publication of JP7626437B2 publication Critical patent/JP7626437B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

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

サイズの大きな入力画像中から、それよりサイズの小さなクエリ画像に似た部分画像を検索するための方法として、テンプレートマッチング手法がある。テンプレートマッチング手法では、入力画像の左上から右下にかけてクエリ画像をスライドさせながら、クエリ画像とクエリ画像に重なる部分の画像との類似度を計算する。 The template matching technique is a method for searching for a partial image similar to a smaller query image from a larger input image. In the template matching technique, the query image is slid from the top left to the bottom right of the input image, and the similarity between the query image and the image of the part that overlaps the query image is calculated.

一方、一般物体検出の分野では、畳み込みニューラルネットワーク(Convolutional Neural Network、CNN)を使用して、画像中から人物や車など特定クラスを検出する技術が提案ないし実用化されている。例えば、特許文献1には、注目する画像中の局所領域を細かなステップでスライドさせながら、全ての局所領域をCNNで識別する手法が提案されている。また、画像中の物体らしい領域を見つける検出と、見つけた領域に対してクラスの判断を行う識別とを同時に行う深層CNN(Deep CNN)が提案ないし実用化されている。YOLO(You Look Only Once)やSSD(Single Shot MultiBox Detector)などが、そのような深層CNNの例である。 On the other hand, in the field of general object detection, a technique has been proposed or put into practical use that uses a convolutional neural network (CNN) to detect specific classes such as people and cars from an image. For example, Patent Document 1 proposes a method of identifying all local regions in an image of interest using a CNN while sliding the local region in small steps. In addition, a deep CNN has been proposed or put into practical use that simultaneously detects regions that are likely to be objects in an image and identifies the classes of the regions found. YOLO (You Look Only Once) and SSD (Single Shot MultiBox Detector) are examples of such deep CNNs.

特開2020-160921号公報JP 2020-160921 A

上述したテンプレートマッチング手法は、高速化が困難であり、また画像同士の類似度を評価する尺度を予め決める必要がある。特許文献1に記載の技術、および、YOLOやSSDなどの深層CNNを用いれば、物体検出までの処理を高速化することはできる。しかし、検出した物体がクエリ画像に写っている物体と似ているか否かを別途に調べる必要がある。例えば、大勢の人物が写っている入力画像の中にクエリ画像に写っている特定の人物が存在するか否かを調べる場合、特許文献1に記載の技術あるいはYOLOやSSDなどの深層CNNを用いて検出した個々の人物の像とクエリ画像に写っている人物の像との類似度を算出して、人物像が同一の人物に係る像か否かを調べる必要がある。そのため、画像同士の類似度を評価する尺度が依然として必要になると共に、最終結果を得るまでの処理を高速化することは困難である。 The above-mentioned template matching method is difficult to speed up, and a scale for evaluating the similarity between images must be determined in advance. By using the technology described in Patent Document 1 and deep CNNs such as YOLO and SSD, it is possible to speed up the process up to object detection. However, it is necessary to separately check whether the detected object is similar to the object in the query image. For example, when checking whether a specific person in the query image exists in an input image containing many people, it is necessary to calculate the similarity between the image of each person detected using the technology described in Patent Document 1 or a deep CNN such as YOLO or SSD and the image of the person in the query image to check whether the person images are images of the same person. Therefore, a scale for evaluating the similarity between images is still required, and it is difficult to speed up the process up to obtaining the final result.

本発明の目的は、上述した課題、すなわち、高速化が難しく、画像同士の類似性を評価する尺度を予め決める必要がある、という課題を解決する画像処理装置を提供することにある。 The object of the present invention is to provide an image processing device that solves the above-mentioned problems, namely, the difficulty of increasing speed and the need to determine in advance a scale for evaluating the similarity between images.

本発明の一形態に係る画像処理装置は、
入力画像中からクエリ画像に似た部分画像を検出する画像処理装置であって、
クエリ画像と前記クエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、前記クエリ画像に似た部分画像の前記入力画像中における推定位置を出力するように、教師データを用いて機械学習されたニューラルネットワークと、
学習済みの前記ニューラルネットワークに対して入力画像とクエリ画像とを関連付けて入力し、前記クエリ画像に似た部分画像の前記入力画像中における位置を計算する処理手段と、
を備えるように構成されている。
An image processing device according to one aspect of the present invention includes:
An image processing device that detects a partial image similar to a query image from an input image,
a neural network that has been machine-learned using training data so as to output an estimated position of the partial image similar to the query image in an input image when a query image and an input image having a partial image similar to the query image are input in association with each other;
a processing means for inputting an input image and a query image in association with each other to the trained neural network, and calculating a position of a partial image in the input image that is similar to the query image;
The device is configured to include:

また、本発明の一形態に係る画像処理方法は、
入力画像中からクエリ画像に似た部分画像を検出する画像処理方法であって、
クエリ画像と前記クエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、前記クエリ画像に似た部分画像の前記入力画像中における推定位置を出力するように、教師データを用いてニューラルネットワークの機械学習を行い、
学習済みの前記ニューラルネットワークに対して入力画像とクエリ画像とを関連付けて入力し、前記クエリ画像に似た部分画像の前記入力画像中における位置を計算する、
ように構成されている。
Further, an image processing method according to an aspect of the present invention includes:
An image processing method for detecting a partial image similar to a query image from an input image, comprising:
performing machine learning of a neural network using training data so as to output an estimated position of the partial image similar to the query image in the input image when a query image and an input image having a partial image similar to the query image are input in association with each other;
An input image and a query image are input to the trained neural network in association with each other, and a position of a partial image in the input image that is similar to the query image is calculated.
It is structured as follows.

また、本発明の一形態に係るプログラムは、
入力画像中からクエリ画像に似た部分画像を検出するコンピュータに、
クエリ画像と前記クエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、前記クエリ画像に似た部分画像の前記入力画像中における推定位置を出力するように、教師データを用いてニューラルネットワークの機械学習を行う処理と、
学習済みの前記ニューラルネットワークに対して入力画像とクエリ画像とを関連付けて入力し、前記クエリ画像に似た部分画像の前記入力画像中における位置を計算する処理と、
を行わせるように構成されている。
In addition, a program according to one embodiment of the present invention includes:
A computer detects a partial image similar to a query image from an input image.
A process of performing machine learning of a neural network using training data so as to output an estimated position of a partial image similar to the query image in an input image when a query image and an input image having a partial image similar to the query image are input in association with each other;
A process of inputting an input image and a query image in association with each other to the trained neural network, and calculating a position of a partial image in the input image that is similar to the query image;
The present invention is configured to cause the

本発明は、上述したような構成を有することにより、入力画像中からクエリ画像に似た部分画像を高速に検索することができ、また、画像同士の類似性を評価する尺度を予め決める必要がなくなる。 By having the above-mentioned configuration, the present invention can quickly search for partial images similar to a query image from within an input image, and also eliminates the need to predetermine a scale for evaluating the similarity between images.

本発明の第1の実施形態に係る画像処理装置のブロック図である。1 is a block diagram of an image processing apparatus according to a first embodiment of the present invention. 本発明の第2の実施形態に係る画像処理装置のブロック図である。FIG. 11 is a block diagram of an image processing apparatus according to a second embodiment of the present invention. 本発明の第2の実施形態におけるニューラルネットワークの機械学習処理の概要を示す模式図である。FIG. 11 is a schematic diagram showing an overview of machine learning processing of a neural network in a second embodiment of the present invention. 本発明の第2の実施形態に係る画像処理装置における処理手段の動作の一例を示すフローチャートである。10 is a flowchart showing an example of the operation of a processing unit in an image processing device according to a second embodiment of the present invention. 本発明の第2の実施形態に係る画像処理装置におけるニューラルネットワークの構成例を示す図である。FIG. 11 is a diagram illustrating an example of the configuration of a neural network in an image processing device according to a second embodiment of the present invention. 本発明の第2の実施形態に係る画像処理装置におけるニューラルネットワークの第1畳み込み層および第2畳み込み層と第3畳み込み層との接続関係を示す模式図である。FIG. 11 is a schematic diagram showing the connection relationship between a first convolution layer, a second convolution layer, and a third convolution layer of a neural network in an image processing device according to a second embodiment of the present invention.

次に本発明の実施の形態について図面を参照して詳細に説明する。
[第1の実施形態]
先ず、本発明の第1の実施形態に係る画像処理装置について説明する。本実施形態では、本発明の画像処理装置の概要を説明する。
Next, an embodiment of the present invention will be described in detail with reference to the drawings.
[First embodiment]
First, an image processing apparatus according to a first embodiment of the present invention will be described. In this embodiment, an overview of the image processing apparatus of the present invention will be described.

図1は、本発明の第1の実施形態に係る画像処理装置10のブロック図である。本実施形態に係る画像処理装置10は、入力画像中からクエリ画像に似た部分画像を検出するように構成されている。画像処理装置10は、学習済みのニューラルネットワーク11と処理手段12とを備える。 Figure 1 is a block diagram of an image processing device 10 according to a first embodiment of the present invention. The image processing device 10 according to this embodiment is configured to detect a partial image similar to a query image from an input image. The image processing device 10 includes a trained neural network 11 and a processing means 12.

ニューラルネットワーク11は、クエリ画像とそのクエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、クエリ画像に似た部分画像の入力画像中における推定位置を出力するように、教師データを用いて機械学習処理が施されている。 The neural network 11 undergoes machine learning processing using training data so that when a query image and an input image having a partial image similar to the query image are input in association with each other, the neural network 11 outputs an estimated position in the input image of the partial image similar to the query image.

処理手段12は、ニューラルネットワーク11に対して入力画像とクエリ画像とを関連付けて入力し、クエリ画像に似た部分画像の入力画像中における位置を計算する。 The processing means 12 inputs the input image and the query image to the neural network 11 in association with each other, and calculates the position in the input image of a partial image that is similar to the query image.

このように本実施形態に係る画像処理装置10では、ニューラルネットワーク11は、クエリ画像とそのクエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、クエリ画像に似た部分画像の入力画像中における推定位置を出力するように、教師データを用いて機械学習処理が施されている。そして、処理手段12は、ニューラルネットワーク11に対して入力画像とクエリ画像とを関連付けて入力し、クエリ画像に似た部分画像の入力画像中における位置を計算する。そのため、画像処理装置10によれば、入力画像中からクエリ画像に似た部分画像を高速に検索することができ、また、画像同士の類似性を評価する尺度を予め決める必要がなくなる。 In this manner, in the image processing device 10 according to this embodiment, when a query image and an input image having a partial image similar to the query image are input in association with each other, the neural network 11 performs machine learning processing using training data so as to output an estimated position in the input image of the partial image similar to the query image. Then, the processing means 12 inputs the input image and the query image in association with each other to the neural network 11, and calculates the position in the input image of the partial image similar to the query image. Therefore, according to the image processing device 10, it is possible to quickly search for a partial image similar to the query image from within the input image, and it is also not necessary to determine in advance a scale for evaluating the similarity between images.

[第2の実施形態]
次に、本発明の第2の実施形態に係る画像処理装置について説明する。本実施形態では、本発明の画像処理装置を具体的に説明する。
Second Embodiment
Next, an image processing apparatus according to a second embodiment of the present invention will be described. In this embodiment, the image processing apparatus of the present invention will be specifically described.

図2は、本発明の第2の実施形態に係る画像処理装置20のブロック図である。本実施形態に係る画像処理装置20は、大勢の人物が写っている入力画像の中にクエリ画像に写っている特定の人物が存在するか否かを検出するように構成されている。画像処理装置20は、画像サーバ21と、通信インターフェース(I/F)部22と、操作入力部23と、画面表示部24と、記憶部25と、演算処理部26とを含んで構成されている。 Figure 2 is a block diagram of an image processing device 20 according to a second embodiment of the present invention. The image processing device 20 according to this embodiment is configured to detect whether or not a specific person appearing in a query image is present in an input image containing many people. The image processing device 20 includes an image server 21, a communication interface (I/F) unit 22, an operation input unit 23, a screen display unit 24, a memory unit 25, and a calculation processing unit 26.

カメラ27は、防犯・監視などの目的のために多くの人物が行きかう街頭、屋内などに設置された撮像装置である。カメラ27は、固定された場所から固定された撮像方向で同一或いは異なる撮像領域を撮像してよい。或いはカメラ27は、車などの移動体に搭載されて移動しながら同一或いは異なる撮像領域を撮像してよい。カメラ27の台数は任意である。1台のカメラ27であってもよいし、互いに異なる撮像領域を撮像する2台以上のカメラ27が存在していてもよい。カメラ27は、例えば、数百万画素程度の画素容量を有するCCD(Charge-Coupled Device)イメージセンサやCMOS(Complementary MOS)イメージセンサを備え、一定のフレームレートで連続して撮像を行うカラーカメラであってよい。 The camera 27 is an imaging device installed on the street or indoors where many people pass by for the purpose of crime prevention, surveillance, etc. The camera 27 may capture the same or different imaging areas from a fixed location with a fixed imaging direction. Alternatively, the camera 27 may be mounted on a moving body such as a car and capture the same or different imaging areas while moving. The number of cameras 27 is arbitrary. There may be one camera 27, or there may be two or more cameras 27 that capture different imaging areas. The camera 27 may be, for example, a color camera equipped with a CCD (Charge-Coupled Device) image sensor or a CMOS (Complementary MOS) image sensor with a pixel capacity of several million pixels, and that captures images continuously at a constant frame rate.

画像サーバ21は、有線または無線によりカメラ27に接続され、カメラ27で撮像して得られた時系列の画像から構成される映像(動画)を過去一定期間分蓄積する。画像サーバ21は、例えば、カメラ27で撮像された画像をフレーム画像の単位で蓄積する。また、画像サーバ21は、各々のフレーム画像を、そのフレーム画像を取得したカメラ27を一意に識別するカメラIDと撮像時刻とに関連付けて蓄積する。 The image server 21 is connected to the camera 27 by wire or wirelessly, and stores video (video) consisting of a time series of images captured by the camera 27 for a certain period of time. The image server 21 stores images captured by the camera 27 in units of frame images, for example. The image server 21 also stores each frame image in association with a camera ID that uniquely identifies the camera 27 that captured the frame image and the capture time.

通信I/F部22は、データ通信回路から構成され、無線または有線によって外部装置との間でデータ通信を行うように構成されている。操作入力部23は、キーボードやマウスなどの装置から構成され、オペレータの操作を検出して演算処理部26に出力するように構成されている。画面表示部24は、LCD(Liquid Crystal Display)などの装置から構成され、演算処理部26からの指示に応じて、各種情報を画面表示するように構成されている。 The communication I/F unit 22 is composed of a data communication circuit, and is configured to perform data communication with an external device wirelessly or via a wired connection. The operation input unit 23 is composed of devices such as a keyboard and a mouse, and is configured to detect the operation of an operator and output the operation to the calculation processing unit 26. The screen display unit 24 is composed of devices such as an LCD (Liquid Crystal Display), and is configured to display various information on the screen in response to instructions from the calculation processing unit 26.

記憶部25は、ハードディスクやメモリなどの記憶装置から構成され、演算処理部26における各種処理に必要な処理情報およびプログラム251を記憶するように構成されている。プログラム251は、演算処理部26に読み込まれて実行されることにより各種処理部を実現するプログラムであり、通信I/F部22などのデータ入出力機能を介して図示しない外部装置や記録媒体から予め読み込まれて記憶部25に保存される。記憶部25に記憶される主な処理情報には、画像DB(データベース)252、および、ニューラルネットワーク253がある。 The storage unit 25 is composed of storage devices such as a hard disk and memory, and is configured to store processing information and programs 251 required for various processes in the arithmetic processing unit 26. The programs 251 are programs that are loaded into the arithmetic processing unit 26 and executed to realize various processing units, and are loaded in advance from an external device or recording medium (not shown) via a data input/output function such as the communication I/F unit 22 and stored in the storage unit 25. The main processing information stored in the storage unit 25 includes an image DB (database) 252 and a neural network 253.

画像DB252は、画像サーバ21を通じて取得されたカメラ27の画像を保存するデータベースである。ニューラルネットワーク253は、図1を参照して説明したニューラルネットワーク11と同様に構成されている。 The image DB 252 is a database that stores images from the camera 27 acquired through the image server 21. The neural network 253 is configured in the same manner as the neural network 11 described with reference to FIG. 1.

演算処理部26は、MPUなどのプロセッサとその周辺回路を有し、記憶部25からプログラム251を読み込んで実行することにより、上記ハードウェアとプログラム251とを協働させて各種処理部を実現するように構成されている。演算処理部26で実現される主な処理部は、画像取得手段261、学習手段262、および、処理手段263である。 The calculation processing unit 26 has a processor such as an MPU and its peripheral circuits, and is configured to read and execute a program 251 from the storage unit 25, thereby implementing various processing functions through cooperation between the above hardware and the program 251. The main processing functions implemented by the calculation processing unit 26 are an image acquisition means 261, a learning means 262, and a processing means 263.

画像取得手段261は、カメラ27で撮像されて得られた画像を画像サーバ21から取得し、画像DB252に保存するように構成されている。 The image acquisition means 261 is configured to acquire images captured by the camera 27 from the image server 21 and store them in the image DB 252.

学習手段262は、ニューラルネットワーク253を機械学習させるための手段である。学習手段262は、クエリ画像とそのクエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、クエリ画像に似た部分画像の入力画像中における推定位置を出力するように、教師データを用いてニューラルネットワーク253の機械学習処理を実施する。 The learning means 262 is a means for performing machine learning on the neural network 253. The learning means 262 performs machine learning processing on the neural network 253 using training data so that, when a query image and an input image having a partial image similar to the query image are input in association with each other, the learning means 262 outputs an estimated position in the input image of the partial image similar to the query image.

処理手段263は、図1を参照して説明した処理手段12と同様に構成されている。 The processing means 263 is configured similarly to the processing means 12 described with reference to FIG. 1.

次に、画像処理装置20の動作を説明する。画像処理装置20の動作は、画像収集動作と学習動作と検索動作とに大別される。画像収集動作は画像取得手段261により実行される。学習動作は学習手段262により実行される。検索動作は処理手段263により実行される。以下、それぞれの動作について説明する。 Next, the operation of the image processing device 20 will be described. The operation of the image processing device 20 is broadly divided into an image collection operation, a learning operation, and a search operation. The image collection operation is performed by the image acquisition means 261. The learning operation is performed by the learning means 262. The search operation is performed by the processing means 263. Each operation will be described below.

<画像収集動作>
画像取得手段261は、カメラ27で撮像された画像を蓄積する画像サーバ21から定期的に最新の画像を取得し、画像DB252に追加する処理を実施する。画像取得手段261による上記処理は、例えば、学習動作および検索動作が開始される前から実行され、学習動作および検索動作中も継続して実行される。
<Image collection operation>
The image acquisition means 261 periodically acquires the latest images from the image server 21 that stores images captured by the camera 27, and executes a process of adding the images to the image DB 252. The above-mentioned process by the image acquisition means 261 is executed, for example, before the learning operation and the search operation are started, and is executed continuously during the learning operation and the search operation.

<学習動作>
学習手段262は、学習に使用する教師データを生成する機能と、生成した教師データを使用してニューラルネットワーク253を機械学習する機能とを有する。
<Learning Operation>
The learning means 262 has a function of generating training data to be used for learning, and a function of machine learning the neural network 253 using the generated training data.

学習手段262は、教師データの生成では、例えば、画像DB252に保存されている画像の一部を使って多数の教師データを作成する。1つの教師データは、1以上の人物が写っているカメラ27の1枚のフレーム画像(以下、大画像と記す)と、一人の人物が写っている1枚の画像(以下、小画像と記す)と、小画像に写っている人物と一致する人物の大画像上の位置を表す矩形情報とから構成される。ここで、大画像のサイズ(画素数)を、縦H画素、横W画素の固定値とする。また、小画像のサイズ(画素数)を、縦h画素、横w画素の固定値とする。h<H、w<Wである。矩形情報は、例えば、一致する人物の外接矩形の4頂点の座標値(画素位置)としてよい。学習手段262は、操作入力部23および画面表示部24を介した対話型処理により、上記のような教師データを作成してよい。また、学習手段262は、各種のアノテーションツールを使って教師データを作成してよい。なお、画像DB252に保存されている画像から教師データを作成する以外に、別の場所で作成された教師データを使用してもよい。 In generating the teacher data, the learning means 262 creates a large number of teacher data using, for example, a part of the image stored in the image DB 252. One teacher data is composed of one frame image (hereinafter referred to as a large image) of the camera 27 in which one or more people are captured, one image (hereinafter referred to as a small image) in which one person is captured, and rectangular information representing the position on the large image of a person that matches the person captured in the small image. Here, the size (number of pixels) of the large image is a fixed value of H pixels in height and W pixels in width. Also, the size (number of pixels) of the small image is a fixed value of h pixels in height and w pixels in width. h<H, w<W. The rectangular information may be, for example, the coordinate values (pixel positions) of the four vertices of the circumscribing rectangle of the matching person. The learning means 262 may create the teacher data as described above by interactive processing via the operation input unit 23 and the screen display unit 24. Also, the learning means 262 may create the teacher data using various annotation tools. In addition to creating training data from images stored in image DB252, training data created elsewhere may also be used.

学習手段262は、ニューラルネットワーク253の機械学習では、図3の模式図に示すように、教師データを構成する大画像と小画像とを関連付けてニューラルネットワーク253に入力する(図3の(1))。ニューラルネットワーク253は、大画像と小画像とが関連付けて入力された場合、小画像に似た部分画像の大画像中における推定位置とその確率(スコア)とを出力する(図3の(2))。学習手段262は、ニューラルネットワーク253から実際の出力がえられた時、教師データを構成する矩形情報と比較して、実際の出力がどれくらい異なっているかを誤差関数によって評価する(図3の(3))。そして、学習手段262は、誤差関数を小さくするような方向に、例えば誤差逆伝搬法を用いてニューラルネットワーク253の重み値を更新する(図3の(4))。学習手段262は、例えば誤差関数が十分小さくなるまで、多くの教師データを使用して上記処理を繰り返す。 In the machine learning of the neural network 253, the learning means 262 inputs the large image and the small image constituting the teacher data to the neural network 253 in association with each other as shown in the schematic diagram of FIG. 3 ((1) of FIG. 3). When the large image and the small image are input in association with each other, the neural network 253 outputs the estimated position in the large image of a partial image similar to the small image and its probability (score) ((2) of FIG. 3). When the actual output is obtained from the neural network 253, the learning means 262 compares it with the rectangular information constituting the teacher data and evaluates how different the actual output is by using an error function ((3) of FIG. 3). Then, the learning means 262 updates the weight value of the neural network 253 in a direction that reduces the error function, for example, by using the error backpropagation method ((4) of FIG. 3). The learning means 262 repeats the above process using a lot of teacher data, for example, until the error function becomes sufficiently small.

<検索動作>
図4は、処理手段263の動作の一例を示すフローチャートである。図4を参照すると、処理手段263は、先ず、クエリ画像を取得する(ステップS1)。例えば、処理手段263は、画像DB252に保存された画像のうち、オペレータまたは外部装置から指定されたカメラIDと撮像時刻とで一意に定まる画像から、指定された矩形情報で切り出した部分画像をクエリ画像として取得してよい。あるいは、処理手段263は、操作入力部23または画面表示部24を通じてオペレータからクエリ画像を直接取得してよい。あるいは、処理手段263は、通信I/F部22を通じて外部装置からクエリ画像を取得してよい。ここで、クエリ画像のサイズは、教師データを構成する小画像と同じサイズとしてよい。
<Search operation>
FIG. 4 is a flowchart showing an example of the operation of the processing unit 263. Referring to FIG. 4, the processing unit 263 first acquires a query image (step S1). For example, the processing unit 263 may acquire a partial image cut out with specified rectangular information from an image uniquely determined by a camera ID and an image capture time specified by an operator or an external device among images stored in the image DB 252 as a query image. Alternatively, the processing unit 263 may directly acquire a query image from an operator through the operation input unit 23 or the screen display unit 24. Alternatively, the processing unit 263 may acquire a query image from an external device through the communication I/F unit 22. Here, the size of the query image may be the same as the size of the small image constituting the teacher data.

次に処理手段263は、入力画像を取得する(ステップS2)。例えば、処理手段263は、画像DB252に保存された画像のうち、オペレータまたは外部装置から指定されたカメラIDと撮像時刻とで一意に定まる画像を入力画像として取得してよい。あるいは、処理手段263は、操作入力部23または画面表示部24を通じてオペレータから入力画像を直接取得してよい。あるいは、処理手段263は、通信I/F部22を通じて外部装置から入力画像を取得してよい。ここで、入力画像のサイズは、教師データを構成する大画像と同じサイズとしてよい。 Next, the processing means 263 acquires an input image (step S2). For example, the processing means 263 may acquire as an input image, from among the images stored in the image DB 252, an image that is uniquely determined by a camera ID and an image capture time specified by an operator or an external device. Alternatively, the processing means 263 may acquire the input image directly from the operator via the operation input unit 23 or the screen display unit 24. Alternatively, the processing means 263 may acquire the input image from an external device via the communication I/F unit 22. Here, the size of the input image may be the same as the size of the large image that constitutes the teacher data.

次に処理手段263は、学習済みのニューラルネットワーク253を使用して、クエリ画像に似た部分画像の入力画像中における位置を計算する(ステップS3)。具体的には、処理手段263は、先ず、学習済みのニューラルネットワーク253に対して、クエリ画像と入力画像とを関連付けて入力し、ニューラルネットワーク253から出力される、クエリ画像に似た部分画像の入力画像中における推定位置とスコアとのペアを1以上取得する。次に処理手段263は、1以上のペアのうちの最大スコアが予め定められた閾値以上か否かを判断する。次に処理手段263は、最大スコアが閾値以上でなければ、入力画像中にはクエリ画像に似た部分画像は存在しないとする検索結果を生成する。また、処理手段263は、最大スコアが閾値以上であれば、最大スコアに係る推定位置および当該スコアを検索結果として生成する。 Next, the processing means 263 uses the trained neural network 253 to calculate the position in the input image of the partial image similar to the query image (step S3). Specifically, the processing means 263 first inputs the query image and the input image to the trained neural network 253 in association with each other, and obtains one or more pairs of the estimated position in the input image of the partial image similar to the query image and the score output from the neural network 253. Next, the processing means 263 determines whether the maximum score of the one or more pairs is equal to or greater than a predetermined threshold. Next, if the maximum score is not equal to or greater than the threshold, the processing means 263 generates a search result indicating that there is no partial image similar to the query image in the input image. Furthermore, if the maximum score is equal to or greater than the threshold, the processing means 263 generates the estimated position and score related to the maximum score as the search result.

次に処理手段263は、上記生成した検索結果を画面表示部24に表示し、または/おおび、通信I/F部22を通じて外部装置へ出力する(ステップS4)。 Next, the processing means 263 displays the generated search results on the screen display unit 24 and/or outputs them to an external device via the communication I/F unit 22 (step S4).

続いて、ニューラルネットワーク253の構成例について説明する。 Next, we will explain an example configuration of the neural network 253.

図5は、ニューラルネットワーク253の構成例を示す図である。この例のニューラルネットワーク253は、第1入力層31、第2入力層32、第1畳み込み層33、第2畳み込み層34、第3畳み込み層35、中間層36、および、出力層37を備えている。 Figure 5 is a diagram showing an example of the configuration of a neural network 253. The neural network 253 in this example includes a first input layer 31, a second input layer 32, a first convolution layer 33, a second convolution layer 34, a third convolution layer 35, an intermediate layer 36, and an output layer 37.

第1入力層31および第2入力層32は、ニューラルネットワーク253の入力層を構成する。このうち、第1入力層31は、入力画像(大画像)の画素の情報をそのまま第1畳み込み層33に伝搬する層であり、入力画像のサイズに応じた数のニューロンから構成される。第2入力層32は、クエリ画像(小画像)の画素の情報をそのまま第2畳み込み層34に伝搬する層であり、クエリ画像のサイズに応じた数のニューロンから構成される。 The first input layer 31 and the second input layer 32 constitute the input layer of the neural network 253. Of these, the first input layer 31 is a layer that propagates pixel information of the input image (large image) directly to the first convolution layer 33, and is composed of neurons whose number corresponds to the size of the input image. The second input layer 32 is a layer that propagates pixel information of the query image (small image) directly to the second convolution layer 34, and is composed of neurons whose number corresponds to the size of the query image.

第1畳み込み層33および第2畳み込み層34は、ニューラルネットワーク253の最初の中間層を構成する。このうち、第1畳み込み層33は、第1入力層31に入力された入力画像の特徴(特徴マップ)を抽出する層である。第1畳み込み層33は、入力画像のサイズおよび畳み込みを行う局所領域(局所受容野)のサイズに応じた数のニューロンから構成される。畳み込みを行う局所領域のサイズは、例えば3×3ニューロンとしてよいが、それに限定されない。また、第1畳み込み層33の各ニューロンの出力値は、第1入力層31の対応する局所領域の複数のニューロンの出力値と第1畳み込み層33用の3×3個の重み(重み行列)とを畳み込み演算した結果と、第1畳み込み層33用のバイアスおよび活性化関数とに基づいて計算される。 The first convolution layer 33 and the second convolution layer 34 constitute the first intermediate layer of the neural network 253. Of these, the first convolution layer 33 is a layer that extracts features (feature map) of the input image input to the first input layer 31. The first convolution layer 33 is composed of a number of neurons according to the size of the input image and the size of the local region (local receptive field) where convolution is performed. The size of the local region where convolution is performed may be, for example, 3×3 neurons, but is not limited to this. In addition, the output value of each neuron of the first convolution layer 33 is calculated based on the result of convolution calculation of the output values of multiple neurons in the corresponding local region of the first input layer 31 and 3×3 weights (weight matrix) for the first convolution layer 33, and the bias and activation function for the first convolution layer 33.

また、第2畳み込み層34は、第2入力層32に入力されたクエリ画像の特徴(特徴マップ)を抽出する層である。第2畳み込み層34は、クエリ画像のサイズおよび畳み込みを行う局所領域のサイズに応じた数のニューロンから構成される。畳み込みを行う局所領域のサイズは、例えば3×3ニューロンとしてよいが、それに限定されない。また、第2畳み込み層34の各ニューロンの出力値は、第2入力層32の対応する局所領域の複数のニューロンの出力値と第2畳み込み層34用の3×3個の重み(重み行列)とを畳み込み演算した結果と、第2畳み込み層34用のバイアスおよび活性化関数とに基づいて計算される。 The second convolutional layer 34 is a layer that extracts features (feature map) of the query image input to the second input layer 32. The second convolutional layer 34 is composed of a number of neurons according to the size of the query image and the size of the local region in which convolution is performed. The size of the local region in which convolution is performed may be, for example, 3×3 neurons, but is not limited to this. The output value of each neuron in the second convolutional layer 34 is calculated based on the result of a convolution operation of the output values of multiple neurons in the corresponding local region of the second input layer 32 with 3×3 weights (weight matrix) for the second convolutional layer 34, and the bias and activation function for the second convolutional layer 34.

第3畳み込み層35は、第1畳み込み層33によって抽出された入力画像の特徴と第2畳み込み層34によって抽出されたクエリ画像の特徴とを合成した特徴を抽出する層である。具体的には、第3畳み込み層35は、第1畳み込み層33のサイズおよび畳み込みを行う第1畳み込み層33の局所領域のサイズに応じた数のニューロンから構成される。畳み込みを行う局所領域のサイズは、例えば3×3ニューロンとしてよいが、それに限定されない。また、第2畳み込み層34と第3畳み込み層35とは全結合されている。このため、第3畳み込み層35の各ニューロンの出力値は、第1畳み込み層33の対応する局所領域の複数のニューロンの出力値と第3畳み込み層35用の3×3個の重み(第1重み行列)とを畳み込み演算した結果と、第2畳み込み層34の全ニューロンの出力値と第3畳み込み層35用の3×2個の重み(第2重み行列)とを畳み込み演算した結果と、第3畳み込み層35用のバイアスおよび活性化関数とに基づいて計算される。 The third convolution layer 35 is a layer that extracts features that combine the features of the input image extracted by the first convolution layer 33 and the features of the query image extracted by the second convolution layer 34. Specifically, the third convolution layer 35 is composed of a number of neurons according to the size of the first convolution layer 33 and the size of the local region of the first convolution layer 33 where convolution is performed. The size of the local region where convolution is performed may be, for example, 3 × 3 neurons, but is not limited to this. In addition, the second convolution layer 34 and the third convolution layer 35 are fully connected. Therefore, the output value of each neuron in the third convolution layer 35 is calculated based on the result of a convolution operation between the output values of multiple neurons in the corresponding local region in the first convolution layer 33 and 3 × 3 weights (first weight matrix) for the third convolution layer 35, the result of a convolution operation between the output values of all neurons in the second convolution layer 34 and 3 × 2 weights (second weight matrix) for the third convolution layer 35, and the bias and activation function for the third convolution layer 35.

図6は、第1畳み込み層33および第2畳み込み層34と第3畳み込み層35との接続関係を示す模式図である。説明の便宜上、第1畳み込み層33のサイズを縦9×横6ニューロン、第2畳み込み層34のサイズを縦3×横2ニューロン、第3畳み込み層35のサイズを縦7×横4ニューロンとする。すると、例えば、第3畳み込み層35の左上隅から2番目のニューロン351には、第1畳み込み層33の左上隅から2番目のニューロン352を左上頂点とする3×3ニューロンの出力と、第2畳み込み層34の全てのニューロンである3×2ニューロンの出力とが入力される。ニューロン351では、第1畳み込み層33の上記3×3ニューロンの出力と3×3個の重み(第1重み行列)との畳み込み演算結果と、第2畳み込み層34の上記3×2ニューロンの出力と3×2個の重み(第2重み行列)との畳み込み演算結果とが計算される。また、ニューロン351では、上記2つの畳み込み演算結果の和と、予め定められたバイアスおよび活性化関数に基づいて、ニューロン351の出力値が計算される。 Figure 6 is a schematic diagram showing the connection relationship between the first convolution layer 33, the second convolution layer 34, and the third convolution layer 35. For convenience of explanation, the size of the first convolution layer 33 is 9 neurons vertically x 6 neurons horizontally, the size of the second convolution layer 34 is 3 neurons vertically x 2 neurons horizontally, and the size of the third convolution layer 35 is 7 neurons vertically x 4 neurons horizontally. Then, for example, the output of a 3 x 3 neuron whose upper left vertex is the second neuron 352 from the upper left corner of the first convolution layer 33, and the output of all the neurons of the second convolution layer 34, that is, the 3 x 2 neurons, are input to the second neuron 351 from the upper left corner of the third convolution layer 35. Neuron 351 calculates the result of a convolution operation between the output of the 3×3 neuron in the first convolution layer 33 and 3×3 weights (first weight matrix), and the result of a convolution operation between the output of the 3×2 neuron in the second convolution layer 34 and 3×2 weights (second weight matrix). Neuron 351 also calculates an output value of neuron 351 based on the sum of the two convolution operation results and a predetermined bias and activation function.

ここで、上述した全ての重みは、正または負の値をとる。 Here, all the weights mentioned above can be positive or negative.

再び図5を参照すると、第3畳み込み層35の後段には、その他の中間層36が続き、さらに最終段には出力層37が設けられている。すなわち、第3畳み込み層35の各ニューロンの出力値は、中間層36の入力値となる。中間層36および出力層37は、第3畳み込み層35によって抽出された入力画像の特徴とクエリ画像の特徴とを合成した特徴に基づいて、クエリ画像に似た部分画像の入力画像中における位置を推定し出力する働きをする。中間層36および出力層37から構成される中間・出力層38は、例えば、画像中の物体らしい領域を見つける検出と見つけた領域に対してクラスの判断を行う識別とを同時に行う深層CNN(Deep CNN)によって構成してよい。そのような深層CNNとしては、例えばYOLOあるいはSSDが例示される。YOLOあるいはSSDを使用する場合、第3畳み込み層35の各ニューロンの出力値は、YOLOあるいはSSDの入力層の入力値として扱われる。 Referring again to FIG. 5, the third convolution layer 35 is followed by other intermediate layers 36, and the final stage is an output layer 37. That is, the output value of each neuron of the third convolution layer 35 becomes the input value of the intermediate layer 36. The intermediate layer 36 and the output layer 37 function to estimate and output the position of a partial image similar to the query image in the input image based on a feature obtained by combining the features of the input image extracted by the third convolution layer 35 and the features of the query image. The intermediate/output layer 38 composed of the intermediate layer 36 and the output layer 37 may be composed of a deep CNN (Deep CNN) that simultaneously performs, for example, detection to find an object-like region in the image and classification to determine the class of the found region. Examples of such deep CNN include YOLO and SSD. When YOLO or SSD is used, the output value of each neuron of the third convolution layer 35 is treated as an input value of the input layer of YOLO or SSD.

以上が、ニューラルネットワーク253の構成例である。但し、ニューラルネットワーク253は上記説明した構成例に限定されない。例えば、第1畳み込み層33と第2畳み込み層34と第3畳み込み層35の代わりに第4畳み込み層を使用してよい。この第4畳み込み層は、例えば、第1入力層31のサイズおよび畳み込みを行う局所領域(例えば3×3ニューロン)のサイズに応じた数のニューロンから構成される。また、第2入力層32と第4畳み込み層とは全結合されている。そのため、第4畳み込み層の各ニューロンの出力値は、第1入力層31の対応する局所領域の複数のニューロンの出力値と第4畳み込み層用の局所領域分の重みとを畳み込み演算した結果と、第2入力層32の全てのニューロンの出力値と第4畳み込み層用の第2入力層32のニューロン分の重みとを畳み込み演算した結果と、第4畳み込み層用のバイアスおよび活性化関数とに基づいて計算される。あるいは、ニューラルネットワーク253の第1畳み込み層33、第2畳み込み層34、および第3畳み込み層35の少なくとも一つは、2層以上の畳み込み層から構成されていてよい。 The above is an example of the configuration of the neural network 253. However, the neural network 253 is not limited to the example of the configuration described above. For example, a fourth convolution layer may be used instead of the first convolution layer 33, the second convolution layer 34, and the third convolution layer 35. This fourth convolution layer is composed of, for example, a number of neurons according to the size of the first input layer 31 and the size of the local area (e.g., 3 × 3 neurons) to be convolved. In addition, the second input layer 32 and the fourth convolution layer are fully connected. Therefore, the output value of each neuron of the fourth convolution layer is calculated based on the result of convolution calculation of the output values of multiple neurons of the corresponding local area of the first input layer 31 and the weights for the local area for the fourth convolution layer, the result of convolution calculation of the output values of all neurons of the second input layer 32 and the weights for the neurons of the second input layer 32 for the fourth convolution layer, and the bias and activation function for the fourth convolution layer. Alternatively, at least one of the first convolution layer 33, the second convolution layer 34, and the third convolution layer 35 of the neural network 253 may be composed of two or more convolution layers.

以上説明したように本実施形態に係る画像処理装置20では、ニューラルネットワーク253は、クエリ画像とそのクエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、クエリ画像に似た部分画像の入力画像中における推定位置を出力するように、学習手段262により教師データを用いて機械学習処理が施される。そして、処理手段263は、学習済みのニューラルネットワーク253に対して入力画像とクエリ画像とを関連付けて入力し、クエリ画像に似た部分画像の入力画像中における位置を計算する。そのため、画像処理装置20によれば、入力画像中からクエリ画像に似た部分画像を高速に検索することができ、また、画像同士の類似性を評価する尺度を予め決める必要がなくなる。 As described above, in the image processing device 20 according to this embodiment, when a query image and an input image having a partial image similar to the query image are input in association with each other, the neural network 253 performs machine learning processing using training data by the learning means 262 so as to output an estimated position in the input image of the partial image similar to the query image. Then, the processing means 263 inputs the input image and the query image in association with each other to the trained neural network 253, and calculates the position in the input image of the partial image similar to the query image. Therefore, according to the image processing device 20, it is possible to quickly search for a partial image similar to the query image from within the input image, and it is also not necessary to determine in advance a scale for evaluating the similarity between images.

また、本実施形態におけるニューラルネットワーク253は、第1入力層31に入力された入力画像の特徴と第2入力層32に入力された特徴とを合成した合成特徴を抽出する畳み込み層(第1畳み込み層33と第2畳み込み層34と第3畳み込み層35、あるいは第4畳み込み層)を有する。そのため、ニューラルネットワーク253は、クエリ画像との類似性の観点で入力画像の局所領域毎に特徴を抽出することができる。その結果、そのような合成特徴を抽出する畳み込み層を有しないニューラルネットワークと比較して、精度の向上が期待できる。 In addition, the neural network 253 in this embodiment has a convolution layer (the first convolution layer 33, the second convolution layer 34, and the third convolution layer 35, or the fourth convolution layer) that extracts a composite feature that combines the features of the input image input to the first input layer 31 and the features input to the second input layer 32. Therefore, the neural network 253 can extract features for each local region of the input image in terms of similarity with the query image. As a result, improved accuracy can be expected compared to a neural network that does not have a convolution layer that extracts such composite features.

以上、上記各実施形態を参照して本発明を説明したが、本発明は、上述した実施形態に限定されるものではない。本発明の構成や詳細には、本発明の範囲内で当業者が理解しうる様々な変更をすることができる。例えば、上記実施形態では、複数の人物が写っている入力画像中から特定の人物が写っているクエリ画像に似た部分画像を検出する画像処理装置に対して本発明を適用したが、それに限定されない。例えば、複数の人物以外の物体(例えば、車、船、犬など)が写っている入力画像中から特定の人物以外の物体が写っているクエリ画像に似た部分画像を検出する画像処理装置に対して本発明を適用してよい。 Although the present invention has been described above with reference to the above-mentioned embodiments, the present invention is not limited to the above-mentioned embodiments. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. For example, in the above-mentioned embodiment, the present invention is applied to an image processing device that detects a partial image similar to a query image in which a specific person appears from an input image in which multiple people appear, but is not limited to this. For example, the present invention may be applied to an image processing device that detects a partial image similar to a query image in which a specific object other than a person appears from an input image in which multiple objects other than people (e.g., a car, a boat, a dog, etc.) appear.

本発明は、画像から特定の物体を検出する分野に適用でき、特にサイズの大きな画像からサイズの小さな画像に似た部分画像を検出する分野に利用できる。 The present invention can be applied to the field of detecting specific objects from images, and in particular to the field of detecting partial images from a large image that resemble a smaller image.

10 画像処理装置
11 ニューラルネットワーク
12 処理手段
20 画像処理装置
21 画像サーバ
22 通信I/F部
23 操作入力部
24 画面表示部
25 記憶部
26 演算処理部
31 第1入力層
32 第2入力層
33 第1畳み込み層
34 第2畳み込み層
35 第3畳み込み層
36 中間層
37 出力層
38 中間・出力層
251 プログラム
252 画像DB
253 ニューラルネットワーク
261 画像取得手段
262 学習手段
263 処理手段
351、352 ニューロン
10 Image processing device 11 Neural network 12 Processing means 20 Image processing device 21 Image server 22 Communication I/F unit 23 Operation input unit 24 Screen display unit 25 Memory unit 26 Arithmetic processing unit 31 First input layer 32 Second input layer 33 First convolution layer 34 Second convolution layer 35 Third convolution layer 36 Intermediate layer 37 Output layer 38 Intermediate/output layer 251 Program 252 Image DB
253 Neural network 261 Image acquisition means 262 Learning means 263 Processing means 351, 352 Neuron

Claims (7)

入力画像中からクエリ画像に似た部分画像を検出する画像処理装置であって、
クエリ画像と前記クエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、前記クエリ画像に似た部分画像の前記入力画像中における推定位置を出力するように、教師データを用いて機械学習されたニューラルネットワークと、
学習済みの前記ニューラルネットワークに対して入力画像とクエリ画像とを関連付けて入力し、前記クエリ画像に似た部分画像の前記入力画像中における位置を計算する処理手段と、
を備え
前記ニューラルネットワークは、前記入力画像が入力される第1の入力層と、前記クエリ画像が入力される第2の入力層と、前記第1の入力層に入力された前記入力画像の特徴と前記第2の入力層に入力された特徴とを合成した合成特徴を抽出する畳み込み層と、前記畳み込み層により抽出された合成特徴に基づいて前記推定位置を算出して出力する中間層および出力層とを備える、
画像処理装置。
An image processing device that detects a partial image similar to a query image from an input image,
a neural network that has been machine-learned using training data so as to output an estimated position of the partial image similar to the query image in an input image when a query image and an input image having a partial image similar to the query image are input in association with each other;
a processing means for inputting an input image and a query image in association with each other to the trained neural network, and calculating a position of a partial image in the input image that is similar to the query image;
Equipped with
The neural network includes a first input layer to which the input image is input, a second input layer to which the query image is input, a convolution layer that extracts a composite feature obtained by combining a feature of the input image input to the first input layer with a feature input to the second input layer, and an intermediate layer and an output layer that calculate and output the estimated position based on the composite feature extracted by the convolution layer.
Image processing device.
前記畳み込み層の各ニューロンは、前記第1の入力層の局所領域のニューロンの出力値と前記第2の入力層の全てのニューロンの出力値とを入力するように構成されている、
請求項に記載の画像処理装置。
Each neuron of the convolution layer is configured to input an output value of a neuron in a local region of the first input layer and an output value of all neurons of the second input layer.
The image processing device according to claim 1 .
前記中間層および出力層は、画像中の物体らしい領域を見つける検出と見つけた領域に対してクラスの判断を行う識別とを同時に行う深層畳み込みニューラルネットワークで構成されている、
請求項1または2に記載の画像処理装置。
The intermediate layer and the output layer are composed of a deep convolutional neural network that simultaneously detects object-like regions in an image and classifies the detected regions.
3. The image processing device according to claim 1 or 2 .
前記中間層および出力層が、YOLO(You Only Look Once)により構成されている、
請求項1乃至3の何れかに記載の画像処理装置。
The intermediate layer and the output layer are configured by YOLO (You Only Look Once).
4. An image processing device according to claim 1 .
前記中間層および出力層が、SSD(Single Shot Multibox Detector)により構成されている、
請求項1乃至3の何れかに記載の画像処理装置。
The intermediate layer and the output layer are composed of SSDs (Single Shot Multibox Detectors).
4. An image processing device according to claim 1 .
入力画像中からクエリ画像に似た部分画像を検出する画像処理方法であって、
クエリ画像と前記クエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、前記クエリ画像に似た部分画像の前記入力画像中における推定位置を出力するように、教師データを用いて、前記入力画像が入力される第1の入力層と、前記クエリ画像が入力される第2の入力層と、前記第1の入力層に入力された前記入力画像の特徴と前記第2の入力層に入力された特徴とを合成した合成特徴を抽出する畳み込み層と、前記畳み込み層により抽出された合成特徴に基づいて前記推定位置を算出して出力する中間層および出力層とを備える、ニューラルネットワークの機械学習を行い、
学習済みの前記ニューラルネットワークに対して入力画像とクエリ画像とを関連付けて入力し、前記クエリ画像に似た部分画像の前記入力画像中における位置を計算する、
画像処理方法。
An image processing method for detecting a partial image similar to a query image from an input image, comprising:
performing machine learning of a neural network including a first input layer to which an input image is input, a second input layer to which the query image is input, a convolution layer that extracts a composite feature obtained by combining a feature of the input image input to the first input layer with a feature input to the second input layer, and an intermediate layer and an output layer that calculate and output the estimated position based on the composite feature extracted by the convolution layer, when a query image and an input image having a partial image similar to the query image are input in association with each other, using teacher data to output an estimated position of the partial image similar to the query image in the input image ;
An input image and a query image are input to the trained neural network in association with each other, and a position of a partial image in the input image that is similar to the query image is calculated.
Image processing methods.
入力画像中からクエリ画像に似た部分画像を検出するコンピュータに、
クエリ画像と前記クエリ画像に似た部分画像を有する入力画像とが関連付けて入力された際に、前記クエリ画像に似た部分画像の前記入力画像中における推定位置を出力するように、教師データを用いて、前記入力画像が入力される第1の入力層と、前記クエリ画像が入力される第2の入力層と、前記第1の入力層に入力された前記入力画像の特徴と前記第2の入力層に入力された特徴とを合成した合成特徴を抽出する畳み込み層と、前記畳み込み層により抽出された合成特徴に基づいて前記推定位置を算出して出力する中間層および出力層とを備える、ニューラルネットワークの機械学習を行う処理と、
学習済みの前記ニューラルネットワークに対して入力画像とクエリ画像とを関連付けて入力し、前記クエリ画像に似た部分画像の前記入力画像中における位置を計算する処理と、
を行わせるためのプログラム。
A computer detects a partial image similar to a query image from an input image.
a process of performing machine learning on a neural network, the process including: a first input layer to which an input image is input using teacher data; a second input layer to which the query image is input; a convolution layer that extracts a composite feature obtained by combining a feature of the input image input to the first input layer with a feature input to the second input layer; and an intermediate layer and an output layer that calculate and output the estimated position based on the composite feature extracted by the convolution layer, so as to output an estimated position in the input image of a partial image similar to the query image when the query image and the input image having the partial image similar to the query image are input in association with each other;
A process of inputting an input image and a query image in association with each other to the trained neural network, and calculating a position of a partial image in the input image that is similar to the query image;
A program to carry out the above.
JP2021045525A 2021-03-19 2021-03-19 Image Processing Device Active JP7626437B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021045525A JP7626437B2 (en) 2021-03-19 2021-03-19 Image Processing Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021045525A JP7626437B2 (en) 2021-03-19 2021-03-19 Image Processing Device

Publications (2)

Publication Number Publication Date
JP2022144486A JP2022144486A (en) 2022-10-03
JP7626437B2 true JP7626437B2 (en) 2025-02-04

Family

ID=83454410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021045525A Active JP7626437B2 (en) 2021-03-19 2021-03-19 Image Processing Device

Country Status (1)

Country Link
JP (1) JP7626437B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017104043A1 (en) 2015-12-17 2017-06-22 株式会社日立製作所 Image processing device, image retrieval interface display device, and method for displaying image retrieval interface
JP2018169972A (en) 2017-03-30 2018-11-01 Kddi株式会社 Object detection device, detection model generator, program, and method capable of learning based on search result

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017104043A1 (en) 2015-12-17 2017-06-22 株式会社日立製作所 Image processing device, image retrieval interface display device, and method for displaying image retrieval interface
JP2018169972A (en) 2017-03-30 2018-11-01 Kddi株式会社 Object detection device, detection model generator, program, and method capable of learning based on search result

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Chen Bin et.al.,Design of Power Intelligent Safety Supervision System Based on Deep Learning,2018 IEEE International Conference on Automation, Electronics and Electrical Engineering,米国,IEEE,2018年,p.154-p.157,https://ieeexplore.ieee.org/document/8720779
Roxana-Elena Mihaescu et.al.,Person Re-Identification across Data Distributions Based on General Purpose DNN Object Detector,Algorithms,米国,MDPI,2020年,p.1-p.26,https://researchgate.net/publication/347650835_Person_Re_Identification_across_Data_Distributions_Based_on_General_Purpose_DNN_Object_Detector
人物再同定と名前識別機能を有するロボットを用いたTAとの協調型学習支援,第81回全国大会講演論文集(4)インタフェース コンピュータと人間社会,2019年

Also Published As

Publication number Publication date
JP2022144486A (en) 2022-10-03

Similar Documents

Publication Publication Date Title
US11222239B2 (en) Information processing apparatus, information processing method, and non-transitory computer-readable storage medium
CN110728209B (en) Gesture recognition method and device, electronic equipment and storage medium
EP3540635B1 (en) Method for identifying an object within an image and mobile device for executing the method
US10872262B2 (en) Information processing apparatus and information processing method for detecting position of object
JP7525990B2 (en) Main subject determination device, imaging device, main subject determination method, and program
CN113887649B (en) Target detection method based on fusion of deep layer features and shallow layer features
CN111104925A (en) Image processing method, image processing apparatus, storage medium, and electronic device
CN111753796A (en) Method and device for identifying key points in image, electronic equipment and storage medium
Asif et al. Sshfd: Single shot human fall detection with occluded joints resilience
CN112541403A (en) Indoor personnel falling detection method utilizing infrared camera
CN115482523B (en) Small object target detection method and system of lightweight multi-scale attention mechanism
CN113496162A (en) Parking specification identification method and device, computer equipment and storage medium
CN117994851A (en) A method, device and equipment for detecting falls of the elderly based on multi-task learning
EP3686771A1 (en) Method for verifying the identify of a user by identifying an object within an image that has a biometric characteristic of the user and mobile device for executing the method
CN110569921A (en) Vehicle logo identification method, system, device and computer readable medium
Suba et al. Violence detection for surveillance systems using lightweight CNN models
CN117351565A (en) A method and system for children&#39;s fine motor assessment based on computer vision
JP2020071717A (en) Information processing apparatus, information processing method, and program
CN114463835B (en) Behavior recognition method, electronic device and computer-readable storage medium
JP7626437B2 (en) Image Processing Device
TWI728655B (en) Convolutional neural network detection method and system for animals
CN117423138B (en) Human body falling detection method, device and system based on multi-branch structure
CN110084146B (en) Pedestrian detection method and device based on shielding perception self-supervision learning
CN116012659B (en) Infrared target detection method and device, electronic equipment and storage medium
CN115297321B (en) Regional early warning method, early warning equipment, electronic equipment and medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241213

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250116

R150 Certificate of patent or registration of utility model

Ref document number: 7626437

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150