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

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

Info

Publication number
JP5867133B2
JP5867133B2 JP2012027811A JP2012027811A JP5867133B2 JP 5867133 B2 JP5867133 B2 JP 5867133B2 JP 2012027811 A JP2012027811 A JP 2012027811A JP 2012027811 A JP2012027811 A JP 2012027811A JP 5867133 B2 JP5867133 B2 JP 5867133B2
Authority
JP
Japan
Prior art keywords
image
superimposing
area
region
superimposition
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
JP2012027811A
Other languages
Japanese (ja)
Other versions
JP2013164753A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2012027811A priority Critical patent/JP5867133B2/en
Publication of JP2013164753A publication Critical patent/JP2013164753A/en
Application granted granted Critical
Publication of JP5867133B2 publication Critical patent/JP5867133B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Description

開示の技術は画像処理装置、画像処理方法及び画像処理プログラムに関する。   The disclosed technology relates to an image processing apparatus, an image processing method, and an image processing program.

地図、衛星写真、航空写真など、様々な画像(動画像含む)を利用者に配信するサービスが知られている。こうしたサービスにおいて、利用者により利用される原画像の一部に広告などの付加的な画像(以下、重畳用画像という)を重畳した重畳画像を配信する形態も知られている。   There are known services for distributing various images (including moving images) such as maps, satellite photographs, and aerial photographs to users. In such a service, a form in which a superimposed image obtained by superimposing an additional image such as an advertisement (hereinafter referred to as a superimposing image) on a part of an original image used by a user is also known.

上記サービスにおいては、従来、利用者の利便性を損なわないようにするために、利用者によって注目されない領域(以下、非注目領域という)として予め定められた固定的な領域、例えば原画像の端部等に小さなサイズで重畳用画像を重畳するのが通例であった。   Conventionally, in the above service, in order not to impair the convenience of the user, a fixed area previously determined as an area not noticed by the user (hereinafter referred to as a non-attention area), for example, an edge of the original image It is customary to superimpose a superimposing image on a part or the like with a small size.

特開2008−8700号公報JP 2008-8700 A 特開2005−331413号公報JP-A-2005-331413

しかしながら、利用者により利用される画像及び該画像の使用目的によっては、利用者が実際に注目する重要な領域の位置や大きさが固定的に定まらないため、非注目領域も固定的に定まらない場合がある。例えば、台風の雲が一部に写っている衛星写真を利用者が希望した場合、雲の様子に着目する利用者であれば雲が写っている領域が重要になる可能性が高く、陸地の状況に着目する利用者であれば雲が写っている領域は重要ではない可能性が高い。また、雲が写っている領域の大きさや位置も画像によって異なる。   However, depending on the image used by the user and the purpose of use of the image, the position and size of the important area that the user actually pays attention is not fixed, so the non-focused area is not fixed. There is a case. For example, if a user wants a satellite photo of some typhoon clouds, the area where the clouds appear is likely to be important if the user is focusing on the clouds. If the user focuses on the situation, the area where the clouds are reflected is likely not important. In addition, the size and position of the area where the clouds are reflected vary depending on the image.

開示の技術は、利用者により利用される画像毎に利用者によって注目される注目領域の位置及び大きさが変動する場合であっても、利用者の利便性を損なわない領域に重畳用画像を重畳することを目的とする。   In the disclosed technology, even when the position and size of the attention area noted by the user varies for each image used by the user, the superimposed image is displayed in an area that does not impair the convenience of the user. The purpose is to superimpose.

開示の技術は、画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択し、前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記選択した重畳対象の画像の中から利用者によって注目される注目領域を特定する。また、開示の技術は、前記選択した重畳対象の画像のうち、少なくとも前記注目領域を除外した非注目領域の形状及び大きさと、重畳用画像の形状及び大きさと基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する。重畳用画像は、選択した重畳対象の画像に重畳される画像として予め記憶部に記憶されている。開示の技術は、前記重畳対象の画像のうち前記決定した重畳領域に前記重畳用画像を重畳する。
なお、重畳領域を決定する際には、重畳用画像と縦横比が同一で非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、重畳用画像を重畳用画像の面積が最大となる倍率で重畳可能な重畳領域として決定する。そして、重畳用画像を前記面積が最大となる倍率で前記決定した重畳領域に重畳する。
In the disclosed technique, an image to be superimposed is selected from a plurality of images in accordance with an image selection instruction, and based on the image selection instruction or input information about a target object, the selected image to be superimposed is selected. The attention area noted by the user is identified from the inside. In addition, the disclosed technology is based on the shape and size of the non-attention region excluding at least the attention region, and the shape and size of the image for superimposition among the selected images to be superimposed. A superimposing area where the superimposing image can be superimposed is determined. The image for superimposition is stored in advance in the storage unit as an image to be superimposed on the selected image to be superimposed. In the disclosed technique, the superimposition image is superimposed on the determined superimposition region of the superimposition target image.
When determining the superimposition region, a region having the same aspect ratio as that of the superimposition image and having a maximum area that does not deviate from the non-target region is obtained. It is determined as a superimposing region that can be superposed at a certain magnification. Then, the image for superimposition is superimposed on the determined overlapping region at a magnification that maximizes the area.

また開示の技術の他の態様は、画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択し、前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記選択した重畳対象の画像の中から利用者によって注目されない非注目領域を特定する。開示の技術は、前記選択した重畳対象の画像のうち前記特定した非注目領域の形状及び大きさと、重畳用画像の形状及び大きさとに基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する。開示の技術は、前記重畳対象の画像のうち前記決定した重畳領域に前記重畳用画像を重畳する。
なお、重畳領域を決定する際には、重畳用画像と縦横比が同一で非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、重畳用画像を重畳用画像の面積が最大となる倍率で重畳可能な重畳領域として決定する。そして、重畳用画像を前記面積が最大となる倍率で前記決定した重畳領域に重畳する。
According to another aspect of the disclosed technology, an image to be superimposed is selected from a plurality of images in response to an image selection instruction, and the selection is performed based on the image selection instruction or input information about a target object. A non-attention area that is not noticed by the user is identified from the images to be superimposed. The disclosed technique superimposes the superimposing image in the non-focused region based on the shape and size of the specified non-focused region in the selected superimposition target image and the shape and size of the superimposing image. The overlapping region that can be determined is determined. In the disclosed technique, the superimposition image is superimposed on the determined superimposition region of the superimposition target image.
When determining the superimposition region, a region having the same aspect ratio as that of the superimposition image and having a maximum area that does not deviate from the non-target region is obtained. It is determined as a superimposing region that can be superposed at a certain magnification. Then, the image for superimposition is superimposed on the determined overlapping region at a magnification that maximizes the area.

開示の技術は、利用者により利用される画像毎に利用者によって注目される注目領域の位置及び大きさが変動する場合であっても、利用者の利便性を損なわない領域に重畳用画像を重畳することができる、という効果を有する。   In the disclosed technology, even when the position and size of the attention area noted by the user varies for each image used by the user, the superimposed image is displayed in an area that does not impair the convenience of the user. It has the effect that it can superimpose.

第1〜第4実施形態に係る画像処理装置の概略構成図である。It is a schematic block diagram of the image processing apparatus which concerns on 1st-4th embodiment. 原画像テーブルの一例を示す図である。It is a figure which shows an example of an original image table. 認識結果テーブルの一例を示す図である。It is a figure which shows an example of a recognition result table. 重畳用画像テーブルの一例を示す図である。It is a figure which shows an example of the image table for superimposition. 第1〜第4実施形態に係る画像認識部の概略構成図である。It is a schematic block diagram of the image recognition part which concerns on 1st-4th embodiment. 画像認識処理の一例を説明する説明図である。It is explanatory drawing explaining an example of an image recognition process. 文字認識部の文字認識処理の具体例を説明する説明図である。It is explanatory drawing explaining the specific example of the character recognition process of a character recognition part. 画像処理装置をプログラムによって実現する態様におけるハードウェア構成の一例を示す概略ブロック図である。It is a schematic block diagram which shows an example of the hardware constitutions in the aspect which implement | achieves an image processing apparatus by a program. 第1実施形態に係る画像処理の一例を示すフローチャートである。It is a flowchart which shows an example of the image process which concerns on 1st Embodiment. 注目領域特定処理の一例を示すフローチャートである。It is a flowchart which shows an example of attention area specific processing. 最大領域探索処理の一例を示すフローチャートである。It is a flowchart which shows an example of the largest area search process. 画像選択情報の入力から注目領域を特定するまでの処理の流れを概念的に説明する説明図である。It is explanatory drawing which illustrates notionally the flow of a process from the input of image selection information to specifying an attention area. 重畳用画像、非注目領域、及び重畳領域の具体例を示す図である。It is a figure which shows the specific example of the image for superimposition, a non-attention area | region, and a superimposition area | region. 図11に示す最大領域探索処理を模式的に説明する説明図である。It is explanatory drawing which illustrates typically the maximum area search process shown in FIG. 縦横比を固定として非注目領域内から重畳領域を探索する場合の探索結果の一例を示す図である。It is a figure which shows an example of the search result in the case of searching for a superimposition area | region from the non-attention area | region, fixing an aspect ratio. (A)は、重畳対象の原画像のオブジェクト認識結果例を示す図であり、(B)は、原画像に重畳用画像を重畳した重畳画像の例を示す図である。図11に示す最大領域探索処理を模式的に説明する説明図である。(A) is a figure which shows the example of an object recognition result of the original image of superimposition object, (B) is a figure which shows the example of the superimposed image which superimposed the image for superimposition on the original image. It is explanatory drawing which illustrates typically the maximum area search process shown in FIG. マッチング用タグが互いに等しい複数の重畳用画像が登録されている重畳用画像テーブルの一例を示す図である。It is a figure which shows an example of the image table for superimposition in which the some image for superimposition with which the tag for matching is mutually equal is registered. 第2実施形態に係る画像処理を示すフローチャートである。It is a flowchart which shows the image processing which concerns on 2nd Embodiment. 第3実施形態に係る画像処理を示すフローチャートである。It is a flowchart which shows the image processing which concerns on 3rd Embodiment. 第3実施形態係る画像処理であって、優先度を用いる場合の画像処理のフローチャートである。It is the image processing which concerns on 3rd Embodiment, Comprising: It is a flowchart of the image processing in the case of using a priority. 優先度を用いて注目領域を特定する場合の注目領域特定処理のフローチャートである。It is a flowchart of an attention area specification process in the case of specifying an attention area using a priority. (A)は、優先度の指定結果を示す優先度テーブルの一例を示す図であり、(B)は、優先度に応じてマージした後の各領域の位置及びサイズを登録した領域テーブルの一例を示す図である。(A) is a figure which shows an example of the priority table which shows the designation | designated result of a priority, (B) is an example of the area table which registered the position and size of each area | region after merging according to the priority. FIG. 互いに優先度が異なる非注目領域P02及び非注目領域P03の各々で抽出された重畳領域候補の位置を表形式で表わした図である。It is the figure which represented the position of the superimposition area | region candidate extracted in each of the non-attention area P02 and the non-attention area P03 from which a priority mutually differs in a table | surface form. (A)は非注目領域の一例、(B)は非注目領域内に収まる範囲内で重畳用画像の傾きを変更せずに倍率を変更して原画像に重畳させた図、(C)は非注目領域内に収まる範囲内で重畳用画像の傾き及び倍率を変更して原画像に重畳させた図である。(A) is an example of a non-attention area, (B) is a diagram in which the magnification is changed without changing the inclination of the image for superimposition within the range that falls within the non-attention area, and (C) is superimposed on the original image. It is the figure which changed the inclination and magnification of the image for superimposition within the range which fits in a non-attention area, and was superimposed on the original image. 重畳用画像の傾きを変更可能とする場合の最大領域探索処理の方法を説明する説明図である。It is explanatory drawing explaining the method of the largest area search process in the case of enabling change of the inclination of the image for superimposition. (A)は非注目領域の一例、(B)は非注目領域内に収まる範囲内で重畳用画像の縦横比を変更せずに倍率を変更して原画像に重畳させた図、(C)は非注目領域内に収まる範囲内で重畳用画像の縦横比及び倍率を変更して原画像に重畳させた図である。(A) is an example of a non-attention area, (B) is a diagram in which the magnification is changed without changing the aspect ratio of the image for superimposition within the range that falls within the non-attention area, and superimposed on the original image, (C) FIG. 4 is a diagram in which an aspect ratio and a magnification of an image for superimposition are changed and superimposed on an original image within a range that falls within a non-attention area. 縦横比の変更が可能である場合における最大領域探索処理の一例を示すフローチャートである。It is a flowchart which shows an example of the largest area search process in case the change of an aspect ratio is possible. 図27に示す最大領域探索処理を模式的に説明する説明図である。It is explanatory drawing which illustrates typically the maximum area search process shown in FIG. 重畳条件を指定する指定画面の具体例を示す図である。It is a figure which shows the specific example of the designation | designated screen which designates superimposition conditions. (A)は、重畳用画像テーブルの一例を示す図であり、(B)は、重畳条件を登録した重畳条件テーブルの一例を示す図である。(A) is a figure which shows an example of the image table for superimposition, (B) is a figure which shows an example of the superimposition condition table which registered the superimposition conditions. 傾きを変更して最大領域を探索したときの探索結果の一例をプロットした図である。It is the figure which plotted an example of the search result when changing inclination and searching a maximum area.

以下、図面を参照して開示の技術の実施形態を詳細に説明する。   Hereinafter, embodiments of the disclosed technology will be described in detail with reference to the drawings.

〔第1実施形態〕   [First Embodiment]

図1には、本実施形態に係る画像処理装置10が示されている。画像処理装置10は、利用者が指定した画像に対して付加的な画像(例えば広告や何らかの情報を表わす画像等)を重畳する処理を行う。以下、付加的な画像を重畳用画像といい、重畳用画像が重畳される元々の画像を原画像といい、原画像に重畳用画像が重畳された画像を重畳画像という。なお、重畳画像は、例えば、利用者に対して予め定められた手段を用いて提供される(閲覧可能な状態にする)が、該重畳画像を利用者に提供する処理を画像処理装置10とは別の装置で行ってもよいし、画像処理装置10が行ってもよい。本実施形態では、重畳画像を利用者に提供する処理についての説明を省略する。   FIG. 1 shows an image processing apparatus 10 according to the present embodiment. The image processing apparatus 10 performs a process of superimposing an additional image (for example, an image representing an advertisement or some information) on an image designated by the user. Hereinafter, the additional image is referred to as a superimposing image, the original image on which the superimposing image is superimposed is referred to as an original image, and an image in which the superimposing image is superimposed on the original image is referred to as a superimposed image. For example, the superimposed image is provided to the user using a predetermined means (set to a viewable state), but the process of providing the superimposed image to the user is performed with the image processing apparatus 10. May be performed by another apparatus, or may be performed by the image processing apparatus 10. In this embodiment, the description about the process which provides a superimposition image to a user is abbreviate | omitted.

画像処理装置10は、入力部12、画像選択部14、領域特定部16、重畳用画像選択部18、重畳領域決定部20、重畳部22、出力部24、画像記憶部26、認識結果記憶部28、重畳用画像記憶部30、重畳画像記憶部32、及び画像認識部40を有する。なお、ここでは、画像記憶部26、認識結果記憶部28、重畳用画像記憶部30、及び重畳画像記憶部32が、画像処理装置10に設けられている場合を例に挙げて説明するが、これら記憶部が画像処理装置10とは別の装置に設けられていてもよい。また、本実施形態では、画像認識部40が画像処理装置10内に設けられている場合を例に挙げて説明するが、画像認識部40が画像処理装置10とは別の装置に設けられていてもよい。   The image processing apparatus 10 includes an input unit 12, an image selection unit 14, a region specifying unit 16, a superimposition image selection unit 18, a superposition region determination unit 20, a superposition unit 22, an output unit 24, an image storage unit 26, and a recognition result storage unit. 28, a superimposition image storage unit 30, a superimposition image storage unit 32, and an image recognition unit 40. Here, the case where the image storage unit 26, the recognition result storage unit 28, the superimposing image storage unit 30, and the superimposed image storage unit 32 are provided in the image processing apparatus 10 will be described as an example. These storage units may be provided in a device different from the image processing device 10. In this embodiment, the case where the image recognition unit 40 is provided in the image processing apparatus 10 will be described as an example. However, the image recognition unit 40 is provided in a device different from the image processing apparatus 10. May be.

画像記憶部26には、原画像の画像データが複数記憶されている。また、画像記憶部26には、画像記憶部26に画像データが記憶された個々の原画像の属性情報を登録した原画像テーブルも記憶されている。図2に、原画像テーブルの一例を示す。原画像テーブルには、原画像の属性情報として、原画像ID、画像パス、選択用タグ、画像サイズ、及び認識結果テーブルIDの各情報が登録されている。 The image storage unit 26 stores a plurality of image data of original images. Further, in the image storage unit 26, also the original image table registering attribute information of each original image by the image data is stored in the images storage unit 26 has been stored. FIG. 2 shows an example of the original image table. In the original image table, information of original image ID, image path, selection tag, image size, and recognition result table ID is registered as attribute information of the original image.

「原画像ID」は、原画像の各々に付与される識別情報である。「画像パス」は、個々の原画像の画像データが記憶されている記憶領域のアドレスである。「選択用タグ」は、原画像テーブルに登録されている複数の原画像の中から、原画像を選択する際のキーワードとして予め付与されている情報である。選択用タグとして、例えば、原画像に含まれる画像の内容を示す情報が登録されていてもよい。「画像サイズ」は、原画像の大きさを示す情報であって、“横(=水平方向、x軸方向)の画素数×縦(=垂直方向、y軸方向)の画素数”で表わされている。「認識結果テーブルID」は、対応する認識結果テーブルを特定する情報である。本実施形態では、後述するように、原画像毎に、原画像に含まれるオブジェクト(物体、人の顔、文字などの認識対象をいう)を認識する画像認識処理が行われるが、該画像認識処理により得られた認識結果は、認識結果テーブルに登録される。この認識結果テーブルを特定する情報が認識結果テーブルIDである。従って、1つの原画像に対応して、1つの認識結果テーブルが対応付けられ、対応付けられた認識結果テーブルIDが原画像テーブルに登録される。   “Original image ID” is identification information given to each original image. “Image path” is an address of a storage area in which image data of each original image is stored. The “selection tag” is information given in advance as a keyword for selecting an original image from a plurality of original images registered in the original image table. As the selection tag, for example, information indicating the content of the image included in the original image may be registered. “Image size” is information indicating the size of the original image, and is expressed by “the number of pixels in the horizontal (= horizontal direction, x-axis direction) × the number of pixels in the vertical (= vertical direction, y-axis direction)”. Has been. The “recognition result table ID” is information for specifying a corresponding recognition result table. In the present embodiment, as will be described later, image recognition processing for recognizing an object included in the original image (referred to as a recognition target such as an object, a human face, or a character) is performed for each original image. The recognition result obtained by the processing is registered in the recognition result table. Information that identifies this recognition result table is a recognition result table ID. Accordingly, one recognition result table is associated with one original image, and the associated recognition result table ID is registered in the original image table.

認識結果テーブルは、画像認識部40によって生成され、認識結果記憶部28に記憶される。図3に、認識結果テーブルの一例を示す。認識結果テーブルには、認識結果を表わす情報として、認識結果テーブルID、カテゴリ、認識内容、位置(左上)、及びオブジェクトサイズの各情報が登録されている。 The recognition result table is generated by the image recognition unit 40 and stored in the recognition result storage unit 28. FIG. 3 shows an example of the recognition result table. In the recognition result table, information indicating a recognition result, each information of a recognition result table ID, a category, recognition contents, a position (upper left), and an object size is registered.

「認識結果テーブルID」は、認識結果テーブル毎に付与される識別情報である。一方、「カテゴリ」、「認識内容」、「位置(左上)」、及び「オブジェクトサイズ」の各情報は、画像認識部40により原画像から認識されたオブジェクト毎に付与される。   “Recognition result table ID” is identification information assigned to each recognition result table. On the other hand, “category”, “recognition content”, “position (upper left)”, and “object size” are provided for each object recognized from the original image by the image recognition unit 40.

「カテゴリ」は、オブジェクトを認識した認識処理部の種類を示す。本実施形態では、後述するように、複数種類の認識処理部を備えた画像認識部40により画像認識処理が行われ(図5も参照)、各認識処理部により認識される認識対象の種類が異なる。本例では、「カテゴリ」により、オブジェクトを認識した認識処理部が特定されることとなる。例えば、物体を認識対象とする認識処理部(物体認識部42)により認識されたオブジェクトは、カテゴリとして“物体認識”を示す情報が登録される。また、例えば、顔を認識対象とする認識処理部(顔認識部44)により認識されたオブジェクトは、カテゴリとして“顔認識”を示す情報が登録される。また、文字を認識対象とする認識処理部(文字認識部46)により認識されたオブジェクトは、カテゴリとして“テキスト”を示す情報が登録される。「認識内容」は、認識されたオブジェクトの内容を示す情報である。例えば、図3に示す認識結果テーブルには、カテゴリが“物体認識”のオブジェクトが3つ登録されており、これら3つのオブジェクトの認識内容として、各々“家屋”、“自動車”、“人”が登録されている。   “Category” indicates the type of the recognition processing unit that recognized the object. In this embodiment, as will be described later, image recognition processing is performed by an image recognition unit 40 including a plurality of types of recognition processing units (see also FIG. 5), and the types of recognition targets recognized by the respective recognition processing units. Different. In this example, the recognition processing unit that has recognized the object is specified by the “category”. For example, for an object recognized by a recognition processing unit (object recognition unit 42) that recognizes an object, information indicating “object recognition” is registered as a category. For example, for an object recognized by the recognition processing unit (face recognition unit 44) that recognizes a face, information indicating “face recognition” is registered as a category. In addition, information indicating “text” as a category is registered as an object recognized by the recognition processing unit (character recognition unit 46) that recognizes characters. “Recognized content” is information indicating the content of the recognized object. For example, in the recognition result table shown in FIG. 3, three objects having the category “object recognition” are registered, and “house”, “car”, and “person” are recognized as the recognition contents of these three objects, respectively. It is registered.

「位置(左上)」は、認識されたオブジェクトの原画像における位置を示す情報である。本実施形態では、原画像の左下の頂点をxy座標系の原点(0,0)としたときの、オブジェクトの左上の座標値が「位置(左上)」として登録される。「オブジェクトサイズ」は、オブジェクトの大きさを示す情報であって、“横の画素数×縦の画素数”で表わされている。なお、ここでは、「オブジェクトサイズ」を例えばオブジェクトに外接する矩形領域等のサイズとした例を説明しているが、これに限られるものではなく、個々のオブジェクトの形状及びサイズを表わす情報を認識結果テーブルに格納するようにしてもよい。   “Position (upper left)” is information indicating the position of the recognized object in the original image. In the present embodiment, the upper left coordinate value of the object when the lower left vertex of the original image is the origin (0, 0) of the xy coordinate system is registered as “position (upper left)”. The “object size” is information indicating the size of the object, and is represented by “the number of horizontal pixels × the number of vertical pixels”. In this example, the “object size” is described as the size of a rectangular area circumscribing the object. However, the present invention is not limited to this, and information representing the shape and size of each object is recognized. You may make it store in a result table.

重畳用画像記憶部30には、重畳用画像の画像データが複数記憶されている。また、重畳用画像記憶部30には、重畳用画像記憶部30に画像データが記憶されている重畳用画像の各々の属性情報を登録した重畳用画像テーブルも記憶されている。図4に、重畳用画像テーブルの一例を示す。重畳用画像テーブルには、重畳用画像の属性情報として、重畳用画像ID、画像パス、マッチング用タグ、及び画像サイズの各情報が登録されている。   The superimposing image storage unit 30 stores a plurality of image data of superimposing images. The superimposing image storage unit 30 also stores a superimposing image table in which attribute information of each superimposing image whose image data is stored in the superimposing image storage unit 30 is registered. FIG. 4 shows an example of the image table for superimposition. In the superimposing image table, superimposing image ID, image path, matching tag, and image size information are registered as attribute information of the superimposing image.

「重畳用画像ID」は、重畳用画像の各々に付与された識別情報である。「画像パス」は、重畳用画像の画像データが記憶されている記憶領域のアドレスである。「マッチング用タグ」は、記憶されている複数の重畳用画像の中から重畳用画像を選択する際のキーワードとして予め付与されている情報である。本実施形態において、「マッチング用タグ」は、原画像テーブルに登録された「選択用タグ」として用いられたキーワードのいずれかに対応するように付与されている。原画像の選択用タグに対応するマッチング用タグが付与された重畳用画像は、該原画像に重畳する画像として後述する重畳用画像選択部18により選択される。「画像サイズ」は、重畳用画像の大きさを示す情報であって、“横の画素数×縦の画素数”で表わされている。本実施形態では、重畳用画像の形状が矩形である場合を例に挙げて説明するが、重畳用画像は矩形でなくてもよい。   The “superimposition image ID” is identification information given to each superimposition image. “Image path” is an address of a storage area in which image data of an image for superimposition is stored. The “matching tag” is information given in advance as a keyword for selecting a superposition image from a plurality of superposition images stored. In the present embodiment, the “matching tag” is assigned so as to correspond to any of the keywords used as the “selection tag” registered in the original image table. The superimposition image to which the matching tag corresponding to the original image selection tag is assigned is selected by the superimposition image selection unit 18 described later as an image to be superimposed on the original image. The “image size” is information indicating the size of the image for superimposition and is represented by “the number of horizontal pixels × the number of vertical pixels”. In this embodiment, the case where the shape of the superimposition image is a rectangle will be described as an example, but the superimposition image may not be a rectangle.

重畳画像記憶部32には、重畳画像の画像データが記憶される。   The superimposed image storage unit 32 stores the image data of the superimposed image.

入力部12は、重畳対象の原画像を画像記憶部26から選択するためのキーワードを、画像選択情報として利用者に入力させる。入力部12は、例えば、利用者に画像選択情報の入力を促す画像や音声を出力し、利用者は、該画像や音声に従って、例えばキーボード等の操作部を操作して画像選択情報を入力する。利用者は、画像選択情報を入力することにより原画像を指定することができる。なお、本実施形態では、画像選択情報がキーワードである場合について説明するが、原画像の特徴を示す情報であってもよいし、原画像を特定するための条件を表わす情報であってもよい。   The input unit 12 causes the user to input a keyword for selecting an original image to be superimposed from the image storage unit 26 as image selection information. For example, the input unit 12 outputs an image or sound that prompts the user to input image selection information, and the user operates the operation unit such as a keyboard to input the image selection information according to the image or sound. . A user can designate an original image by inputting image selection information. In the present embodiment, the case where the image selection information is a keyword will be described. However, the image selection information may be information indicating the characteristics of the original image, or information indicating conditions for specifying the original image. .

また、入力部12は、重畳対象の原画像から、利用者によって注目される注目領域を特定するためのキーワードを、注目対象に関する情報(注目領域特定情報)として利用者に入力させる。入力部12は、例えば、利用者に注目領域特定情報の入力を促す画像や音声を出力し、利用者は、該画像や音声に従って、例えばキーボード等の操作部を操作して注目領域特定情報を入力する。本実施形態では、注目領域特定情報がキーワードである場合について説明するが、注目領域特定情報は、注目領域の特徴を示す情報であってもよいし、注目領域を特定するための条件を表わす情報であってもよい。なお、画像選択情報が「衛星写真」、注目領域特定情報が「雲」等のように互いに異なるキーワードとなる場合もあれば、画像選択情報及び注目領域特定情報の双方が同じキーワード(例えば「自動車」等)となる場合もある。後者の場合には、注目領域特定情報の入力を省略し、画像選択情報を注目領域特定情報と兼用してもよい。   In addition, the input unit 12 causes the user to input a keyword for specifying an attention area noted by the user from the original image to be superimposed as information on the attention object (attention area identification information). The input unit 12 outputs, for example, an image or a sound that prompts the user to input attention area specifying information, and the user operates the operation part such as a keyboard according to the image or sound, for example. input. In the present embodiment, the case where the attention area specifying information is a keyword will be described. However, the attention area specifying information may be information indicating the characteristics of the attention area, or information indicating a condition for specifying the attention area. It may be. In some cases, the image selection information is “satellite photograph”, the attention area specifying information is “cloud”, and the like, but the image selection information and the attention area specifying information are both the same keyword (for example, “automobile”). Or the like. In the latter case, the input of the attention area specifying information may be omitted, and the image selection information may also be used as the attention area specifying information.

画像選択部14は、上記入力された画像選択情報に基づいて、画像記憶部26に記憶されている複数の原画像から重畳対象の原画像を選択する。   The image selection unit 14 selects an original image to be superimposed from a plurality of original images stored in the image storage unit 26 based on the input image selection information.

領域特定部16は、上記入力された注目領域特定情報(或いは画像選択情報)に基づいて、利用者によって注目される注目領域を、画像選択部14で選択された原画像から特定する。   The area specifying unit 16 specifies an attention area to be noted by the user from the original image selected by the image selection unit 14 based on the input attention area specifying information (or image selection information).

重畳用画像選択部18は、重畳用画像記憶部30に記憶された重畳用画像の中から、原画像に重畳させる重畳用画像を選択する。本実施形態では、重畳用画像選択部18は、画像選択部14で選択された原画像の選択用タグに対応するマッチング用タグが対応付けられた重畳用画像を選択する。   The superimposing image selection unit 18 selects a superimposing image to be superimposed on the original image from the superimposing images stored in the superimposing image storage unit 30. In the present embodiment, the superimposition image selection unit 18 selects a superposition image associated with a matching tag corresponding to the selection tag of the original image selected by the image selection unit 14.

重畳領域決定部20は、原画像における注目領域を除外した領域(以下、非注目領域という)から、重畳用画像選択部18で選択された重畳用画像を重畳する領域である重畳領域を決定する。本実施形態では、原画像に重畳用画像を重畳するときの重畳用画像の倍率を可変としており、重畳領域決定部20は、非注目領域から、重畳用画像を最大サイズ(最大面積)となる倍率で重畳可能な領域を探索し、該領域を重畳領域として決定する。   The superimposition region determination unit 20 determines a superimposition region that is a region in which the superimposition image selected by the superimposition image selection unit 18 is superimposed from a region excluding the attention region in the original image (hereinafter referred to as a non-attention region). . In the present embodiment, the magnification of the superimposition image when superimposing the superimposition image on the original image is variable, and the superimposition region determination unit 20 sets the superimposition image to the maximum size (maximum area) from the non-attention region. A region that can be superimposed with a magnification is searched, and the region is determined as a superimposed region.

重畳部22は、画像選択部14で選択された原画像のうち、重畳領域決定部20で決定された重畳領域に、重畳用画像選択部18で選択された重畳用画像を、重畳領域内で最大サイズとなるようにその倍率を変更した状態で重畳し、重畳画像を生成する。   The superimposing unit 22 adds the superimposing image selected by the superimposing image selecting unit 18 to the superimposing region determined by the superimposing region determining unit 20 among the original images selected by the image selecting unit 14 within the superimposing region. Superposition is performed with the magnification changed so that the maximum size is obtained, and a superimposed image is generated.

出力部24は、重畳部22で生成された重畳画像を重畳画像記憶部32に出力し、重畳画像記憶部32に記憶させる。重畳画像記憶部32に記憶された重畳画像は、利用者に提供される。   The output unit 24 outputs the superimposed image generated by the superimposing unit 22 to the superimposed image storage unit 32 and stores it in the superimposed image storage unit 32. The superimposed image stored in the superimposed image storage unit 32 is provided to the user.

ここで、画像認識部40について説明する。図5は、画像認識部40の構成を示す構成図である。画像認識部40は、認識対象であるオブジェクトの種類に応じた認識処理部を複数備えている。本実施形態では、画像認識部40は、認識処理部として、物体認識部42、顔認識部44、及び文字認識部46の3つの認識処理部を備えている。   Here, the image recognition unit 40 will be described. FIG. 5 is a configuration diagram showing the configuration of the image recognition unit 40. The image recognition unit 40 includes a plurality of recognition processing units corresponding to the types of objects to be recognized. In the present embodiment, the image recognition unit 40 includes three recognition processing units, which are an object recognition unit 42, a face recognition unit 44, and a character recognition unit 46, as recognition processing units.

物体認識部42は、原画像に含まれる物体の画像を認識し、該物体の種類(内容)、物体の大きさ、及び原画像における位置を示す情報を出力する。顔認識部44は、原画像に含まれる人の顔を認識し、認識した顔の位置及び大きさを示す情報を出力する。文字認識部46は、原画像に含まれる文字を認識し、認識した文字の内容、位置及び大きさを示す情報を出力する。   The object recognition unit 42 recognizes an image of an object included in the original image, and outputs information indicating the type (content) of the object, the size of the object, and the position in the original image. The face recognition unit 44 recognizes a human face included in the original image and outputs information indicating the position and size of the recognized face. The character recognition unit 46 recognizes characters included in the original image and outputs information indicating the content, position, and size of the recognized characters.

図6は、画像認識処理の一例を説明する説明図である。図6(A)に示す原画像に対して、物体認識部42、顔認識部44、及び文字認識部46の各々が認識処理を実行する。これにより、図6(B)に示すように、オブジェクトO1〜O5の5つのオブジェクトが認識される。オブジェクトO1〜O3は、物体認識部42により認識された物体オブジェクトである。オブジェクトO4は、顔認識部44により認識された顔オブジェクトである。オブジェクトO5は、文字認識部46により認識された文字オブジェクトである。そして、これら各オブジェクトO1〜O5の各々の情報が、図6(C)に示す認識結果テーブルに登録される。   FIG. 6 is an explanatory diagram illustrating an example of image recognition processing. Each of the object recognition unit 42, the face recognition unit 44, and the character recognition unit 46 performs recognition processing on the original image shown in FIG. Accordingly, as shown in FIG. 6B, five objects O1 to O5 are recognized. Objects O1 to O3 are object objects recognized by the object recognition unit 42. The object O4 is a face object recognized by the face recognition unit 44. The object O5 is a character object recognized by the character recognition unit 46. And each information of each of these objects O1-O5 is registered into the recognition result table shown in FIG.6 (C).

図7は、文字認識部46の文字認識処理の具体例を説明する説明図である。ここでは、原画像に含まれる文字は、画像化されており、テキスト情報ではない。図7(A)に示す原画像には複数の文字列を表わす画像が含まれているが、これら文字列を表わす画像の各々が文字認識部46により認識対象のオブジェクトとして認識される。例えば、図7(A)に示す原画像内の「八王子市」の文字列を表わす画像(以下、文字画像という)を文字オブジェクトとして文字認識部46が認識すると、該文字オブジェクトの内容「八王子市」、位置及び大きさを示す情報が、文字認識部46から出力される。   FIG. 7 is an explanatory diagram for explaining a specific example of the character recognition processing of the character recognition unit 46. Here, the characters included in the original image are imaged and not text information. The original image shown in FIG. 7A includes images representing a plurality of character strings, and each of the images representing the character strings is recognized as an object to be recognized by the character recognition unit 46. For example, when the character recognition unit 46 recognizes an image representing a character string of “Hachioji City” in the original image shown in FIG. 7A (hereinafter referred to as a character image) as a character object, the content “Hachioji City” of the character object is recognized. ”, Information indicating the position and size is output from the character recognition unit 46.

なお、文字認識部46は、例えば、該文字画像全体を含む矩形領域を文字オブジェクトの領域として抽出してもよい。この場合、例えば、文字画像に外接する矩形領域を、文字オブジェクトの領域として抽出してもよい。また、図7(B)に示すように、文字画像を含み、該文字画像に外接する矩形領域よりも大きな矩形領域を該「八王子市」の文字画像に紐付け、該紐付けた領域を文字オブジェクトの領域として抽出してもよい。図7(B)では、八王子市だけでなく、「あきる野市」や「奥多摩町」等の他の文字画像についても、同様に、文字画像に外接する矩形領域よりも大きな領域が各文字画像に紐付けられている。従って、図7(B)に示すように、認識された複数のオブジェクトの領域の一部が互いに重なる場合もあり得る。なお、このように紐付けられる領域は矩形でなくてもよく、例えば、円形であってもよい。   Note that the character recognition unit 46 may extract, for example, a rectangular area including the entire character image as a character object area. In this case, for example, a rectangular area circumscribing the character image may be extracted as a character object area. Further, as shown in FIG. 7B, a rectangular area that includes a character image and is larger than the rectangular area circumscribing the character image is associated with the character image of “Hachioji City”, and the associated area is a character. You may extract as an area | region of an object. In FIG. 7B, not only in Hachioji City but also in other character images such as “Akiruno City” and “Okutama Town”, an area larger than the rectangular area circumscribing the character image is similarly displayed in each character image. It is tied. Therefore, as shown in FIG. 7B, some of the recognized object regions may overlap each other. In addition, the area | region tied in this way does not need to be a rectangle, For example, a circle may be sufficient.

なお、文字認識部46だけでなく、物体認識部42で認識される物体オブジェクトについても、物体の画像に外接する矩形領域を物体オブジェクトの領域として抽出してもよいし、該矩形領域よりも大きな矩形領域を物体オブジェクトの領域として抽出してもよい。同様に、顔認識部44で認識される顔オブジェクトについても、顔の画像に外接する矩形領域を顔オブジェクトの領域として抽出してもよいし、該矩形領域よりも大きな矩形領域を顔オブジェクトの領域として抽出してもよい(図6(B)も参照)。以下では、画像認識部40により認識される各オブジェクトの領域の形状が矩形である場合を例に挙げて説明する。   Note that not only the character recognition unit 46 but also the object object recognized by the object recognition unit 42, a rectangular area circumscribing the object image may be extracted as the object object area, or larger than the rectangular area. A rectangular area may be extracted as the area of the object object. Similarly, for the face object recognized by the face recognition unit 44, a rectangular area circumscribing the face image may be extracted as the face object area, or a rectangular area larger than the rectangular area may be extracted. (See also FIG. 6B). Hereinafter, a case where the shape of the area of each object recognized by the image recognition unit 40 is a rectangle will be described as an example.

また、本実施形態では、画像認識部40が、3つの認識処理部を備えて構成されている場合を例に挙げて説明するが、画像認識部40を構成する認識処理部の数及び種類は、これらに限定されない。例えば、画像認識の対象である原画像の種類に応じて、原画像に含まれることが想定されるオブジェクトに対応した認識処理部を設けることができる。   In the present embodiment, the case where the image recognition unit 40 includes three recognition processing units will be described as an example. However, the number and types of recognition processing units constituting the image recognition unit 40 are as follows. However, it is not limited to these. For example, a recognition processing unit corresponding to an object that is supposed to be included in the original image can be provided according to the type of the original image that is the target of image recognition.

なお、画像処理装置10は、例えば図8に示すコンピュータ50で実現することができる。コンピュータ50はCPU(Central Processing Unit)52、ディスプレイ54、キーボード56、通信IF(Interface)58、不揮発性の第1記憶部60、メモリ66、及び不揮発性の第2記憶部6を備え、これらはバス70を介して互いに接続されている。 The image processing apparatus 10 can be realized by a computer 50 shown in FIG. 8, for example. The computer 50 includes a CPU (Central Processing Unit) 52, a display 54, a keyboard 56, a communication IF (Interface) 58, a first memory unit 60 of the non-volatile memory 66 and second memory unit 6 8 nonvolatile, they Are connected to each other via a bus 70.

第1記憶部60には、コンピュータ50を画像処理装置10として機能させるための画像処理プログラム62及び画像認識プログラム群64が記憶されている。CPU30は、画像処理プログラムを第1記憶部60から読み出してメモリ66に展開し、画像処理プログラムが有するプロセスを実行する。   The first storage unit 60 stores an image processing program 62 and an image recognition program group 64 for causing the computer 50 to function as the image processing apparatus 10. The CPU 30 reads the image processing program from the first storage unit 60 and develops it in the memory 66, and executes a process included in the image processing program.

画像処理プログラム62は、入力プロセス、画像選択プロセス、領域特定プロセス、重畳用画像選択プロセス、重畳領域決定部プロセス、重畳プロセス、及び出力プロセスを有する。CPU52は、入力プロセスを実行することで、図1に示す入力部12として動作する。またCPU52は、画像選択プロセスを実行することで、図1に示す画像選択部14として動作する。またCPU52は、領域特定プロセスを実行することで、図1に示す領域特定部16として動作する。またCPU52は、重畳用画像選択プロセスを実行することで、図1に示す重畳用画像選択部18として動作する。またCPU52は、重畳領域決定プロセスを実行することで、図1に示す重畳領域決定部20として動作する。またCPU52は、重畳プロセスを実行することで、図1に示す重畳部22として動作する。またCPU52は、出力プロセスを実行することで、図1に示す出力部24として動作する。   The image processing program 62 includes an input process, an image selection process, a region specifying process, a superimposing image selection process, a superimposing region determination unit process, a superimposing process, and an output process. The CPU 52 operates as the input unit 12 shown in FIG. 1 by executing the input process. The CPU 52 operates as the image selection unit 14 shown in FIG. 1 by executing the image selection process. The CPU 52 operates as the area specifying unit 16 illustrated in FIG. 1 by executing the area specifying process. The CPU 52 operates as the superimposing image selection unit 18 shown in FIG. 1 by executing the superimposing image selection process. Further, the CPU 52 operates as the overlapping area determination unit 20 illustrated in FIG. 1 by executing the overlapping area determination process. The CPU 52 operates as the superimposing unit 22 shown in FIG. 1 by executing the superimposing process. The CPU 52 operates as the output unit 24 shown in FIG. 1 by executing the output process.

画像認識プログラム群64は、物体認識プログラム、顔認識プログラム、及び文字認識プログラムを有する。CPU52は、物体認識プログラムを実行することで、図5に示す物体認識部42として動作する。CPU52は、顔プログラムを実行することで、図5に示す顔認識部44として動作する。CPU52は、文字認識プログラムを実行することで、図5に示す文字認識部46として動作する。   The image recognition program group 64 includes an object recognition program, a face recognition program, and a character recognition program. The CPU 52 operates as the object recognition unit 42 illustrated in FIG. 5 by executing the object recognition program. The CPU 52 operates as the face recognition unit 44 shown in FIG. 5 by executing the face program. The CPU 52 operates as the character recognition unit 46 shown in FIG. 5 by executing the character recognition program.

第2記憶部68には、画像記憶部26、認識結果記憶部28、重畳用画像記憶部30、及び重畳画像記憶部32の各記憶部に相当する記憶領域が設けられている。   The second storage unit 68 includes storage areas corresponding to the storage units of the image storage unit 26, the recognition result storage unit 28, the superimposition image storage unit 30, and the superimposed image storage unit 32.

通信IF58は、他の装置と通信するためのインタフェースである。   The communication IF 58 is an interface for communicating with other devices.

次に本実施形態の作用として、画像処理装置10で行われる画像処理について、図9〜図11のフローチャート及び図12〜図14の説明図を参照して説明する。図9は、画像処理装置10で行われる画像処理の一例を示すフローチャートである。図10は、注目領域を特定する処理(以下、注目領域特定処理という)の一例を示すフローチャートである。図11は、重畳用画像を最大サイズ(最も大きな面積)となる倍率で重畳可能な領域を非注目領域から探索する処理(以下、最大領域探索処理という)の一例を示すフローチャートである。図12は、画像選択情報の入力から注目領域を特定するまでの処理の流れを概念的に説明する説明図である。図13は、重畳用画像、非注目領域、及び重畳領域の具体例を示す図である。図14は、図11に示す最大領域探索処理を模式的に説明する説明図である。   Next, as an operation of the present embodiment, image processing performed by the image processing apparatus 10 will be described with reference to flowcharts of FIGS. 9 to 11 and explanatory diagrams of FIGS. FIG. 9 is a flowchart illustrating an example of image processing performed by the image processing apparatus 10. FIG. 10 is a flowchart illustrating an example of processing for specifying a region of interest (hereinafter referred to as region-of-interest specifying processing). FIG. 11 is a flowchart illustrating an example of processing for searching a non-attention area for an area in which an image for superimposition can be superimposed at a magnification of the maximum size (largest area) (hereinafter referred to as maximum area search processing). FIG. 12 is an explanatory diagram conceptually illustrating the flow of processing from the input of image selection information until the region of interest is identified. FIG. 13 is a diagram illustrating specific examples of the superimposing image, the non-attention area, and the overlapping area. FIG. 14 is an explanatory diagram schematically illustrating the maximum area search process shown in FIG.

なお、本実施形態において、図9を用いて説明する画像処理が開始される前に、画像認識部40による画像認識が実行され、画像記憶部26に記憶されている各原画像についての認識結果テーブルが既に認識結果記憶部28に記憶されているものとする。   In the present embodiment, before the image processing described with reference to FIG. 9 is started, image recognition by the image recognition unit 40 is performed, and the recognition result for each original image stored in the image storage unit 26. Assume that the table is already stored in the recognition result storage unit 28.

ステップ100において、入力部12は、例えば、利用者に画像選択情報の入力を促す画像をディスプレイ54に表示して、利用者に画像選択情報を入力させる。利用者は、例えばキーボード56等の操作部を操作して画像選択情報を入力する。図12(A)に、ディスプレイ54に表示された入力画面の一例を示す。この入力画面は、画像選択情報としてのキーワードを入力するエリア72と、検索ボタン74とを有する。利用者が例えばキーボード56を操作して、エリア72に画像選択情報としてのキーワードを入力し、その後検索ボタン74をマウス等(不図示)によりクリックすると、画像選択情報の入力が完了し、原画像の検索(選択)が開始される。なお、入力部12は、通信回線やLAN等のネットワークに接続された他の装置と通信し、該他の装置から入力された画像選択情報を取得してもよい。   In step 100, for example, the input unit 12 displays an image that prompts the user to input image selection information on the display 54, and causes the user to input image selection information. The user inputs image selection information by operating an operation unit such as a keyboard 56, for example. FIG. 12A shows an example of the input screen displayed on the display 54. This input screen has an area 72 for inputting a keyword as image selection information and a search button 74. For example, when the user operates the keyboard 56 to input a keyword as image selection information in the area 72 and then clicks the search button 74 with a mouse or the like (not shown), the input of the image selection information is completed, and the original image Search (selection) of is started. Note that the input unit 12 may communicate with other devices connected to a network such as a communication line or a LAN, and acquire image selection information input from the other devices.

ステップ102において、画像選択部14は、利用者により入力された画像選択情報に基づいて、画像記憶部26に記憶された複数の原画像から原画像を選択する。例えば、画像選択部14は、画像テーブルを参照し、利用者が入力した画像選択情報に該当する選択用タグを有する原画像を選択する。   In step 102, the image selection unit 14 selects an original image from a plurality of original images stored in the image storage unit 26 based on image selection information input by the user. For example, the image selection unit 14 refers to the image table and selects an original image having a selection tag corresponding to the image selection information input by the user.

なお、画像選択部14は、原画像の選択用タグとして複数のキーワードが対応付けられている場合には、該複数のキーワードの少なくとも1つに上記画像選択情報が該当する場合に、該原画像を選択するようにしてもよい。また、画像選択部14は、利用者が複数のキーワードを画像選択情報とし入力した場合には、該複数のキーワードの少なくとも1つに対応する選択用タグが付与された原画像を選択するようにしてもよい。また、画像選択部14は、該複数のキーワードの全てに対応する選択用タグが付与された原画像を選択するようにしてもよい。また、画像選択部14は、画像選択情報と選択用タグとが類似していれば、完全に一致していなくても、選択用タグが画像選択情報に該当すると判断して原画像を選択するようにしてもよい。   When a plurality of keywords are associated as the original image selection tags, the image selection unit 14 selects the original image when the image selection information corresponds to at least one of the plurality of keywords. May be selected. Further, when the user inputs a plurality of keywords as image selection information, the image selection unit 14 selects an original image provided with a selection tag corresponding to at least one of the plurality of keywords. May be. Further, the image selection unit 14 may select an original image to which selection tags corresponding to all of the plurality of keywords are assigned. Further, if the image selection information and the selection tag are similar, the image selection unit 14 determines that the selection tag corresponds to the image selection information even if they are not completely matched, and selects the original image. You may do it.

図12(B)に示す原画像テーブルを例に挙げると、利用者が入力した画像選択情報「自動車」に対応する選択用タグを有する原画像は、原画像ID「A01」の原画像であるため、画像選択部14は、原画像ID「A01」の原画像(図12(C))を選択する。なお、利用者が入力した画像選択情報に該当する選択用タグを有する原画像が複数存在する場合には、例えば、該当する複数の原画像をディスプレイ54に一覧表示し、所望の原画像を利用者に選択させることができる。   Taking the original image table shown in FIG. 12B as an example, the original image having the selection tag corresponding to the image selection information “car” input by the user is the original image with the original image ID “A01”. Therefore, the image selection unit 14 selects the original image (FIG. 12C) with the original image ID “A01”. When there are a plurality of original images having selection tags corresponding to the image selection information input by the user, for example, a list of the corresponding original images is displayed on the display 54 and a desired original image is used. Can be selected.

ステップ104において、入力部12は、例えば、利用者に画像選択情報の入力を促す画像をディスプレイ54に表示して、利用者に注目領域特定情報を入力させる。利用者は、例えばキーボード56等の操作部を操作して注目領域特定情報を入力する。なお、入力部12は、通信回線やLAN等のネットワークに接続された他の装置と通信し、該他の装置から入力された注目領域特定情報を取得してもよい。また、前述したように、画像選択情報が注目領域特定情報として使用される場合には、ステップ104(注目領域特定情報の入力)は省略される。従って、図9ではステップ104を破線で示した。   In step 104, for example, the input unit 12 displays an image that prompts the user to input image selection information on the display 54 and causes the user to input attention area specifying information. For example, the user operates the operation unit such as the keyboard 56 to input attention area specifying information. The input unit 12 may communicate with another device connected to a network such as a communication line or a LAN, and acquire attention area specifying information input from the other device. Further, as described above, when the image selection information is used as attention area specifying information, step 104 (input of attention area specifying information) is omitted. Therefore, in FIG. 9, step 104 is indicated by a broken line.

ステップ106において、領域特定部16は、上記入力された注目領域特定情報(或いは画像選択情報)に基づいて、画像選択部14で選択された原画像から注目領域を特定する。   In step 106, the region specifying unit 16 specifies a target region from the original image selected by the image selecting unit 14 based on the input target region specifying information (or image selection information).

図10を参照して、注目領域特定処理の具体例を説明する。ステップ200において、領域特定部16は、上記画像選択部14により選択された原画像の画像認識結果(すなわち、認識結果テーブルに登録された情報)を取得する。ステップ202において、領域特定部16は、認識結果テーブルに登録されている各オブジェクトが、注目オブジェクトか否かを判断する。ここで、注目オブジェクトとは、上記注目領域特定情報(或いは画像選択情報)に該当する認識内容を有するオブジェクトをいう。上記説明した例では、認識内容が「自動車」であるオブジェクトが注目オブジェクトとして抽出される(図12(D)も参照)。なお、領域特定部16は、注目領域特定情報(或いは画像選択情報)と認識内容とが類似していれば、完全に一致していなくても、該認識内容が注目領域特定情報(或いは画像選択情報)に該当すると判断し、注目オブジェクトとして抽出するようにしてもよい。   A specific example of the attention area specifying process will be described with reference to FIG. In step 200, the area specifying unit 16 acquires the image recognition result (that is, information registered in the recognition result table) of the original image selected by the image selection unit 14. In step 202, the area specifying unit 16 determines whether each object registered in the recognition result table is a target object. Here, the attention object refers to an object having recognition contents corresponding to the attention area specifying information (or image selection information). In the example described above, an object whose recognition content is “automobile” is extracted as an object of interest (see also FIG. 12D). Note that if the region-of-interest specifying information (or image selection information) and the recognized content are similar, the region specifying unit 16 recognizes that the recognized content is the region-of-interest specifying information (or image selection information) even if they are not completely matched. Information), and may be extracted as an object of interest.

ステップ204では、領域特定部16は、注目オブジェクトが複数か否かを判断する。注目オブジェクトが複数である場合には、領域特定部16は、ステップ206において、注目オブジェクトの領域をマージ(合成)する。ステップ208において、領域特定部16は、該マージした領域を注目領域として特定する。該特定された注目領域を除外した領域が非注目領域となる。   In step 204, the area specifying unit 16 determines whether there are a plurality of objects of interest. If there are a plurality of objects of interest, the area specifying unit 16 merges (combines) the areas of the object of interest in step 206. In step 208, the region specifying unit 16 specifies the merged region as a region of interest. An area excluding the identified attention area is a non-attention area.

一方、注目オブジェクトが1つである場合には、領域特定部16は、ステップ204において否定判断し、ステップ210において、注目オブジェクトの領域を注目領域として特定する(図12(E)も参照)。該特定された注目領域を除外した領域が非注目領域となる。   On the other hand, if there is one object of interest, the area specifying unit 16 makes a negative determination in step 204, and specifies the area of the object of interest as the area of interest in step 210 (see also FIG. 12E). An area excluding the identified attention area is a non-attention area.

ステップ108において、重畳用画像選択部18は、画像選択部14で選択された原画像に重畳させる重畳用画像を重畳用画像記憶部30に記憶された重畳用画像から選択する。本実施形態では、重畳用画像選択部18は、画像選択部14で選択された原画像の選択用タグに対応するマッチング用タグが対応付けられた重畳用画像を選択するものとする。なお、例えば、画像選択部14で選択された原画像の選択用タグとして複数のキーワードが対応付けられている場合には、該複数のキーワードの少なくとも1つに該当するマッチング用タグが対応付けられた重畳用画像を選択してもよい。また、選択用タグとして記憶された複数のキーワードの各々に対応する複数のマッチング用タグが対応付けられている重畳用画像を選択してもよい。また、原画像IDと重畳用画像IDとを予め対応付けて記憶しておき、画像選択部14で選択された原画像の原画像IDに対応付けられた重畳用画像IDが付与された重畳用画像を選択するようにしてもよい。   In step 108, the superimposing image selection unit 18 selects a superimposing image to be superimposed on the original image selected by the image selecting unit 14 from the superimposing images stored in the superimposing image storage unit 30. In the present embodiment, it is assumed that the superimposition image selection unit 18 selects a superposition image associated with a matching tag corresponding to the selection tag of the original image selected by the image selection unit 14. For example, when a plurality of keywords are associated as selection tags for the original image selected by the image selection unit 14, a matching tag corresponding to at least one of the plurality of keywords is associated. A superimposing image may be selected. Further, an image for superimposition in which a plurality of matching tags corresponding to each of a plurality of keywords stored as selection tags may be selected. Also, the original image ID and the superimposing image ID are stored in association with each other in advance, and the superimposing image ID assigned with the superimposing image ID associated with the original image ID of the original image selected by the image selection unit 14 is stored. An image may be selected.

ステップ110において、重畳領域決定部20は、非注目領域から、重畳用画像選択部18で選択された重畳用画像を重畳する領域である重畳領域を決定する。本実施形態では、重畳領域決定部20は、非注目領域から、重畳用画像を最大サイズ(最大面積)となる倍率で重畳可能な領域を探索し、該領域を重畳領域として決定する。本実施形態では、重畳部22は、重畳用画像に利用者の注意が向きやすいように重畳用画像の倍率を変更し、非注目領域のうち可能な限り大きなサイズに拡大(元の重畳用画像のサイズによっては縮小)して原画像に重畳するようにしている。そこで、重畳領域決定部20は、重畳用画像を最も大きなサイズで重畳できる領域を非注目領域から探索して、この領域を重畳領域として決定する。なお、本実施形態では、重畳部22は、重畳用画像の縦横比(アスペクト比)及び傾きについては、重畳用画像記憶部30に記憶されている元の重畳用画像の状態を維持したまま、倍率のみを変更するものとする。   In step 110, the superimposition region determination unit 20 determines a superimposition region that is a region in which the superimposition image selected by the superimposition image selection unit 18 is superimposed from the non-target region. In the present embodiment, the superimposition region determination unit 20 searches a non-target region for a region where the superimposition image can be superimposed at a magnification that has the maximum size (maximum area), and determines the region as a superimposition region. In the present embodiment, the superimposing unit 22 changes the magnification of the superimposing image so that the user's attention is easily directed to the superimposing image, and expands it to the largest possible size of the non-attention area (the original superimposing image). The image is reduced depending on the size of the image and superimposed on the original image. Therefore, the superimposition area determination unit 20 searches the non-attention area for an area where the superimposition image can be superimposed with the largest size, and determines this area as the superimposition area. In the present embodiment, the superimposing unit 22 maintains the state of the original superimposing image stored in the superimposing image storage unit 30 for the aspect ratio (aspect ratio) and inclination of the superimposing image, Only the magnification is changed.

以下、図11を参照して、最大領域探索処理について具体例を詳細に説明する。本実施形態では、図13(B)に示すように、原画像を格子状に分割し、領域特定部16により抽出された非注目領域から、格子領域を基準とした非注目領域を抽出する。重畳領域決定部20は、格子領域を基準とした非注目領域を対象として、最大領域探索処理を行う。なお、格子領域を小さくするほど、領域特定部16により抽出された非注目領域との誤差は小さくなる。   Hereinafter, a specific example of the maximum area search process will be described in detail with reference to FIG. In the present embodiment, as shown in FIG. 13B, the original image is divided into a lattice shape, and a non-attention area based on the lattice area is extracted from the non-attention area extracted by the area specifying unit 16. The superimposition region determination unit 20 performs a maximum region search process on a non-attention region based on the lattice region. Note that the smaller the lattice area, the smaller the error from the non-attention area extracted by the area specifying unit 16.

ステップ300において、重畳領域決定部20は、非注目領域を格子状に分割したときの格子領域を単位として、重畳用画像の縦横比を満たす最小の矩形領域の幅をwidth_baseにセットし、該最小の矩形領域の高さをheight_baseにセットする。   In step 300, the superimposition area determination unit 20 sets the width of the minimum rectangular area that satisfies the aspect ratio of the superimposition image in width_base, with the grid area when the non-target area is divided into a grid as a unit, and sets the minimum Set the height of the rectangular area to height_base.

ステップ302では、max_sizeに0をセットする。ここで、max_sizeは、1格子領域を1単位とした最大面積値がセットされる変数である。   In step 302, 0 is set to max_size. Here, max_size is a variable in which a maximum area value with one grid area as one unit is set.

ステップ304において、重畳領域決定部20は、非注目領域のうち1つの格子領域を起点として選択する。ここでは、起点を、重畳領域の候補となる矩形領域の左下の頂点である場合を例に挙げて説明するが、これに限定されず、重畳領域の候補となる矩形領域の4つの頂点のいずれかとすることができる。更に、重畳領域決定部20は、widthに0をセットし、heightに0をセットする。   In step 304, the overlapping area determination unit 20 selects one grid area from the non-target areas as a starting point. Here, an example will be described in which the starting point is the lower left vertex of a rectangular region that is a candidate for the overlapping region, but the present invention is not limited to this, and any of the four vertices of the rectangular region that is a candidate for the overlapping region It can be. Furthermore, the overlapping area determination unit 20 sets 0 to width and 0 to height.

ステップ306において、重畳領域決定部20は、widthにwidth_baseを加算し、heightにheight_baseを加算する。   In step 306, the overlapping area determination unit 20 adds width_base to width and adds height_base to height.

ステップ308において、重畳領域決定部20は、非注目領域内で、現在選択されている格子領域を起点として、現在の幅(width)を横方向の長さ、高さ(height)を縦方向の長さとする矩形領域を確保できるか否かを判断する。   In step 308, the overlapping area determination unit 20 starts from the currently selected grid area in the non-target area, and sets the current width (width) to the horizontal length and the height (height) to the vertical direction. It is determined whether or not a rectangular area having a length can be secured.

ステップ310において、重畳領域決定部20は、上記ステップ308における判断の結果、上記矩形領域を確保可能と判断した場合には、ステップ312に進む。   In step 310, if the overlapping area determination unit 20 determines that the rectangular area can be secured as a result of the determination in step 308, the process proceeds to step 312.

ステップ312において、重畳領域決定部20は、変数sizeに、height×widthの値をセットする。   In step 312, the overlapping area determination unit 20 sets a value of height × width to the variable size.

ステップ314において、重畳領域決定部20は、変数max_sizeと変数sizeを比較し、変数max_sizeが変数sizeより小さいか否かを判断する。重畳領域決定部20は、ステップ314で肯定判断した場合には、ステップ316において、変数max_sizeに変数sizeの値をセットし、この時点の起点の情報も記憶しておき、ステップ306に戻って処理を繰り返す。なお、ステップ316において記憶された起点の情報は、変数max_sizeが次に更新されるまで保持される。一方、重畳領域決定部20は、ステップ314で否定判断した場合には、ステップ316の処理は行わずに、ステップ306に戻る。   In step 314, the overlapping area determination unit 20 compares the variable max_size with the variable size, and determines whether or not the variable max_size is smaller than the variable size. If the determination result at step 314 is affirmative, the superimposition area determination unit 20 sets the value of the variable size to the variable max_size at step 316, stores information on the starting point at this time, and returns to step 306 for processing. repeat. Note that the starting point information stored in step 316 is held until the variable max_size is next updated. On the other hand, if the determination result at step 314 is negative, the overlapping area determination unit 20 returns to step 306 without performing the process at step 316.

一方、ステップ310において、重畳領域決定部20は、上記ステップ308における判断の結果、上記矩形領域を確保不可能と判断した場合には、ステップ318に進む。   On the other hand, if it is determined in step 310 that the rectangular area cannot be secured as a result of the determination in step 308, the overlapping area determination unit 20 proceeds to step 318.

ステップ318において、重畳領域決定部20は、非注目領域の全ての格子領域を起点として上記処理を繰り返したか否かを判断する。重畳領域決定部20は、ステップ318において否定判断した場合には、ステップ320において、起点の格子領域を変更し、widthに0をセットし、heightに0をセットして、ステップ306に戻る。   In step 318, the overlapping area determination unit 20 determines whether or not the above process has been repeated starting from all the lattice areas of the non-target area. If the overlap region determination unit 20 makes a negative determination in step 318, in step 320, it changes the starting lattice region, sets width to 0, sets height to 0, and returns to step 306.

また、重畳領域決定部20は、ステップ318において、肯定判断した場合には、ステップ322において、この時点でmax_sizeの面積を有する矩形領域が、最大面積の矩形領域であると判断する。そして、重畳領域決定部20は、該最大面積の矩形領域を重畳領域として特定する。   If the determination is affirmative in step 318, the overlapping area determination unit 20 determines in step 322 that the rectangular area having the area of max_size at this time is the rectangular area having the maximum area. Then, the overlapping area determination unit 20 specifies the rectangular area having the maximum area as the overlapping area.

図11に示す処理例が図14に模式的に示されている。図14では、非注目領域がグレーで示されている。なお、ここでは図13(A)に示すように、縦横比が「縦(高さ):横(幅)=1:1」の正方形状の重畳用画像を原画像に重畳する場合を例に挙げて説明する。本例では、まず、図14(A)に示すように、起点が選択される。図14(A)において、黒色で塗りつぶされた格子領域が起点である。なお、重畳用画像が正方形であるため、ステップ300においては、width_baseには1がセットされると共に、height_baseには1がセットされる。   The process example shown in FIG. 11 is schematically shown in FIG. In FIG. 14, the non-attention area is shown in gray. Here, as shown in FIG. 13A, a case where a square superposition image having an aspect ratio of “vertical (height): horizontal (width) = 1: 1” is superimposed on the original image is taken as an example. I will give you a description. In this example, first, as shown in FIG. 14A, a starting point is selected. In FIG. 14A, the starting point is a grid area filled with black. Since the image for superimposition is a square, in step 300, 1 is set to width_base and 1 is set to height_base.

そして、図14(B)に示すように、まず、幅1、高さ1の矩形領域の面積1が変数max_sizeにセットされる。次に、width及びheightに1が加算されて、幅及び高さが2とされた場合には、図14(C)に示すように、2×2の正方形状の矩形領域を確保できるため(黒塗りの領域)、矩形面積4が変数max_sizeにセットされる。次に、width及びheightに1が加算されて、幅及び高さが3とされた場合には、図14(D)に示すように、矩形面積9が変数max_sizeにセットされる。   Then, as shown in FIG. 14B, first, the area 1 of the rectangular area having the width 1 and the height 1 is set to the variable max_size. Next, when 1 is added to width and height and the width and height are set to 2, a 2 × 2 square rectangular area can be secured as shown in FIG. Black area), rectangular area 4 is set to the variable max_size. Next, when 1 is added to width and height and the width and height are 3, the rectangular area 9 is set to the variable max_size as shown in FIG.

次に、width及びheightに1が加算されて、幅及び高さが4とされた場合には、図14()に示すように、非注目領域内において、幅及び高さ4の矩形領域を確保することができない。従って、変数max_sizeは更新されない。次に、width及びheightに1が加算されて、幅及び高さが5とされた場合にも、図14()に示すように、非注目領域内において、幅及び高さ5の矩形領域を確保することができない。なお、幅及び高さが4の矩形領域を確保できない場合には、幅及び高さが5の矩形領域も確保できないことが自明であるため、上記図11に示すフローチャートでは、width及びheightを更新せずに、起点を次の格子領域にずらしている。 Next, 1 is added in the width and height, and if it is the width and height 4, as shown in FIG. 14 (E), in the non-target region, a rectangular region having a width and height 4 Can not be secured. Therefore, the variable max_size is not updated. Next, when 1 is added to width and height and the width and height are set to 5, as shown in FIG. 14 ( F ), a rectangular area having a width and height of 5 within the non-attention area. Can not be secured. If it is not possible to secure a rectangular area with a width and height of 4, it is obvious that a rectangular area with a width and height of 5 cannot be secured. Therefore, in the flowchart shown in FIG. 11, the width and height are updated. Without starting, the starting point is shifted to the next lattice area.

従って、図14(A)に示す格子領域を起点とした場合には、重畳用画像の縦横比を満たす範囲内で面積が最大だったのは、幅3、高さ3のときの面積9であるため、重畳領域決定部20は、変数max_sizeに9がセットされた状態でwidthを増加し、起点をずらす。重畳領域決定部20は、非注目領域の形がいびつな場合であっても、もれなく探索するため、起点の位置を変えながら、全ての格子領域を起点として探索するようにしている。   Accordingly, when the lattice area shown in FIG. 14A is used as the starting point, the area having the largest area within the range satisfying the aspect ratio of the superimposed image is the area 9 when the width is 3 and the height is 3. Therefore, the overlapping area determination unit 20 increases the width in a state where 9 is set in the variable max_size, and shifts the starting point. Even if the shape of the non-attention area is distorted, the overlapping area determination unit 20 searches all the grid areas as starting points while changing the positions of the starting points.

このような処理により、図13(A)に示すように、重畳用画像が正方形状であって、図13(B)に示すグレーの領域が格子領域を基準とする非注目領域である場合には、図13(C)に示す黒塗りの領域が重畳領域として抽出され、決定される。なお、図11に示した重畳領域の決定において、例えば、重畳領域の最大サイズを注目領域のサイズ以下にする等のように、何らかの制限を設けてもよい。   As a result of such processing, as shown in FIG. 13A, when the superimposition image has a square shape, and the gray area shown in FIG. 13B is a non-attention area based on the lattice area. Is determined by extracting a black area shown in FIG. 13C as an overlap area. In the determination of the overlapping area shown in FIG. 11, for example, some limitation may be provided, such as setting the maximum size of the overlapping area to be equal to or smaller than the size of the attention area.

なお、上記では重畳用画像が正方形状である場合について説明したが、重畳用画像が幅と高さとが異なる長方形状である場合も、同様に処理すればよい。この場合、図11に例示した処理において、重畳用画像の縦横比が、「幅:高さ=4:3」である場合には、ステップ300において、width_baseには4がセットされると共に、height_baseには3がセットされる。これにより、例えば図15に示す非注目領域内から重畳領域を探索すると、4:3を満たす最小の長方形、2番目に大きな長方形、及び3番目に大きな長方形の3つの長方形が探索される。このうち、最も大きな3番目の長方形の面積108が、変数max_sizeにセットされた状態で上記図11の最大領域探索処理が終了する。従って、3番目の長方形の領域が重畳領域として決定される。   In the above description, the superimposing image has a square shape. However, the same processing may be performed when the superimposing image has a rectangular shape with a different width and height. In this case, in the processing illustrated in FIG. 11, when the aspect ratio of the image for superimposition is “width: height = 4: 3”, in step 300, 4 is set to width_base, and height_base Is set to 3. As a result, for example, when a superimposition region is searched from within the non-attention region shown in FIG. 15, three rectangles are searched: the smallest rectangle that satisfies 4: 3, the second largest rectangle, and the third largest rectangle. Among these, the maximum area search process of FIG. 11 ends with the largest third rectangular area 108 set to the variable max_size. Accordingly, the third rectangular area is determined as the overlapping area.

また、ここでは、非注目領域を格子状に分割したときの格子領域を単位として重畳領域探索処理を行う例について説明したが、画素単位で重畳領域探索処理を行うようにしてもよい。   In addition, here, an example has been described in which the superimposition area search process is performed in units of lattice areas when the non-target area is divided into a grid, but the superimposition area search process may be performed in units of pixels.

図9において、ステップ110で重畳領域が決定された後は、ステップ112で、重畳部22は、画像選択部14で選択された原画像のうち重畳領域決定部20で決定された重畳領域に、重畳用画像選択部18で選択された重畳用画像を重畳し重畳画像を生成する。このとき、重畳部22は、重畳用画像が上記決定した重畳領域の大きさとなるように、重畳用画像の倍率を変更して重畳領域に重畳する。なお、重畳部22は、元の重畳用画像のサイズが重畳領域のサイズより小さい場合には、縦横同じ拡大率で拡大して重畳する。また、重畳部22は、元の重畳用画像のサイズが決定された重畳領域のサイズより大きい場合には、拡大はしなくてもよく、例えば、縦横同じ縮小率で縮小して重畳するようにしてもよい。更にまた、重畳領域のサイズが注目領域のサイズよりも大きい場合には、注目領域のサイズよりも重畳用画像のサイズが小さくなるように倍率を変更した状態で重畳領域に重畳してもよい。図16(A)に重畳対象の原画像の一例を示し、図16(B)に、(A)の原画像に重畳用画像を重畳した重畳画像の一例を示す。図16(A)に示す自動車のオブジェクトの領域が注目領域である。図16(B)では、該注目領域を除外した非注目領域に重畳用画像が重畳されている。この例では、重畳用画像は注目領域のサイズよりも小さなサイズで重畳されている。   In FIG. 9, after the overlapping region is determined in step 110, in step 112, the overlapping unit 22 adds the overlapping region determined by the overlapping region determining unit 20 among the original images selected by the image selecting unit 14. The superimposed image selected by the superimposed image selection unit 18 is superimposed to generate a superimposed image. At this time, the superimposing unit 22 superimposes the superimposed image on the superimposed region by changing the magnification of the superimposed image so that the superimposed image has the determined size of the superimposed region. Note that when the size of the original superimposition image is smaller than the size of the superimposition area, the superimposition unit 22 magnifies and superimposes the images with the same vertical and horizontal enlargement ratios. In addition, the superimposing unit 22 does not need to enlarge when the size of the original superimposing image is larger than the determined superimposing area size. May be. Furthermore, when the size of the superimposition area is larger than the size of the attention area, the superimposition area may be superimposed with the magnification changed so that the size of the image for superimposition becomes smaller than the size of the attention area. FIG. 16A shows an example of an original image to be superimposed, and FIG. 16B shows an example of a superimposed image obtained by superimposing a superimposition image on the original image of FIG. The region of the car object shown in FIG. In FIG. 16B, the superimposing image is superimposed on the non-attention area excluding the attention area. In this example, the image for superimposition is superimposed with a size smaller than the size of the region of interest.

ステップ114において、出力部24は、重畳部22で生成された重畳画像を重畳画像記憶部32に出力し、重畳画像記憶部32に記憶させる。   In step 114, the output unit 24 outputs the superimposed image generated by the superimposing unit 22 to the superimposed image storage unit 32 and stores it in the superimposed image storage unit 32.

このように、本実施形態では、利用者の指定に応じて、原画像を選択し、利用者の指定に応じて、利用者によって注目される注目領域を特定し、該注目領域を除外した非注目領域から決定した重畳領域に重畳用画像を重畳するようにした。従って、利用者により利用される画像毎に利用者によって注目される注目領域の位置及び大きさが変動する場合であっても、該画像内の利用者の利便性を損なわない領域に重畳用画像を重畳することができる。   As described above, in the present embodiment, the original image is selected according to the designation of the user, the attention area noticed by the user is identified according to the designation of the user, and the attention area is excluded. The superimposition image is superimposed on the superimposition area determined from the attention area. Therefore, even when the position and size of the attention area noted by the user varies for each image used by the user, the image for superimposition is added to the area in the image that does not impair the convenience of the user. Can be superimposed.

また、本実施形態では、上記画像処理が開始される前に、画像認識部40による画像認識処理が実行される例について説明したが、これに限定されず、ステップ106の注目領域を特定する処理の前に画像認識処理が実行されればよい。従って、例えば、ステップ102の後であってステップ106の前に、ステップ102で選択された原画像について画像認識を行って、オブジェクトを抽出し、認識結果テーブルを作成するようにしてもよい。   In the present embodiment, an example in which the image recognition processing by the image recognition unit 40 is executed before the image processing is started has been described. However, the present invention is not limited to this, and processing for specifying a region of interest in step 106 The image recognition process may be executed before the operation. Therefore, for example, after step 102 and before step 106, image recognition may be performed on the original image selected in step 102, an object may be extracted, and a recognition result table may be created.

また、本実施形態では、非注目領域から面積が最大となる領域を探索して重畳領域として決定する例について説明したが、面積が最大となる領域でなくても、非注目領域のいずれかの領域を重畳領域として決定するようにしてもよい。例えば、非注目領域の予め定められた条件を満たす領域、一例を挙げれば、注目領域に最も近い領域等、を重畳領域として決定してもよい。これによっても、利用者により利用される画像毎に利用者によって注目される注目領域の位置及び大きさが変動する場合であっても、該画像内の利用者の利便性を損なわない領域に重畳用画像を重畳することができる。   Further, in the present embodiment, the example in which the region having the maximum area is searched from the non-target region and determined as the overlapping region has been described. However, any region of the non-target region may be selected even if it is not the region having the maximum area. You may make it determine an area | region as a superimposition area | region. For example, an area that satisfies a predetermined condition of the non-attention area, for example, an area closest to the attention area may be determined as the overlapping area. Even in this case, even when the position and size of the attention area noted by the user varies for each image used by the user, the image is superimposed on an area that does not impair the convenience of the user in the image. An image for use can be superimposed.

更にまた、上記では、領域特定部16が画像選択情報又は注目領域特定情報に基づいて注目領域を特定する例について説明したが、これに限定されない。例えば、領域特定部16が、画像選択情報又は注目領域特定情報に基づいて、利用者によって注目されない非注目領域を特定するものであってもよい。例えば、領域特定部16は、注目オブジェクトを除くオブジェクトの領域及び画像認識部40により認識されなかった領域を抽出し、これら領域をマージした領域を非注目領域として抽出するようにしてもよい。重畳領域決定部20は、領域特定部16により特定された非注目領域から上述したように重畳領域を決定する。   Furthermore, in the above description, the example in which the region specifying unit 16 specifies the region of interest based on the image selection information or the region of interest specifying information has been described. However, the present invention is not limited to this. For example, the area specifying unit 16 may specify a non-attention area that is not noticed by the user based on the image selection information or the attention area specification information. For example, the region specifying unit 16 may extract a region of an object excluding the target object and a region not recognized by the image recognition unit 40, and extract a region obtained by merging these regions as a non-target region. The overlapping area determination unit 20 determines the overlapping area from the non-attention area specified by the area specifying unit 16 as described above.

また、上記では、原画像から注目領域を除外した非注目領域とする例について説明したが、例えば、オブジェクトが存在しない領域を非注目領域として特定してもよい。   In the above description, the example of the non-attention area excluding the attention area from the original image has been described. However, for example, an area where no object exists may be specified as the non-attention area.

〔第2実施形態〕   [Second Embodiment]

次に開示の技術の第2実施形態を説明する。第2実施形態では、複数の重畳用画像を原画像に重畳する際に、各重畳用画像について重畳領域を決定して原画像に重畳する例について説明する。なお、第2実施形態において、画像処理以外は先に説明した第1実施形態と同一であるので、各部分に同一の符号を付して構成の説明を省略し、以下、本第2実施形態に係る画像処理について説明する。   Next, a second embodiment of the disclosed technique will be described. In the second embodiment, an example will be described in which, when a plurality of images for superimposition are superimposed on the original image, a superimposition region is determined for each image for superimposition and superimposed on the original image. Since the second embodiment is the same as the first embodiment described above except for image processing, the same reference numerals are given to the respective parts, and the description of the configuration is omitted. Hereinafter, the second embodiment will be described. Image processing according to the above will be described.

図17に、重畳用画像テーブルの一例を示す。図17に示す重畳用画像テーブルには、マッチング用タグが互いに等しい重畳用画像が複数(この例では2つ)登録されている。従って、重畳用画像を選択する際に第1実施形態で説明した手法を用いる場合には、この2つの重畳用画像が、自動車という選択用タグが付与された原画像に重畳する重畳用画像として選択されることとなる。また、本実施形態の重畳用画像テーブルには、重畳用画像に対応させて優先度も登録される。優先度は、例えば、重畳用画像の提供者が予め指定することができる。   FIG. 17 shows an example of the superimposing image table. In the superposition image table shown in FIG. 17, a plurality (two in this example) of superposition images having the same matching tag are registered. Therefore, when the method described in the first embodiment is used when selecting an image for superimposition, these two images for superimposition are used as superimposition images to be superimposed on the original image to which the selection tag of automobile is added. Will be selected. In the superimposing image table of this embodiment, the priority is also registered in correspondence with the superimposing image. The priority can be specified in advance by the provider of the image for superimposition, for example.

図18は、第2実施形態に係る画像処理を示すフローチャートである。   FIG. 18 is a flowchart illustrating image processing according to the second embodiment.

ステップ400からステップ408までの処理は、図9を用いて説明したステップ100からステップ108までの処理と同じであるため、説明を省略する。ただし、本実施形態では、ステップ408において重畳用画像が複数選択される場合がある。   The processing from step 400 to step 408 is the same as the processing from step 100 to step 108 described with reference to FIG. However, in the present embodiment, a plurality of superimposing images may be selected in step 408.

ステップ410において、重畳領域決定部20は、ステップ408において、複数の重畳用画像が選択されたか否かを判断する。重畳領域決定部20は、ステップ410において肯定判断した場合には、ステップ412において、優先度の高い重畳用画像から順に、非注目領域内から重畳領域を決定する。   In step 410, the superimposition area determination unit 20 determines whether or not a plurality of superimposition images have been selected in step 408. If the determination in step 410 is affirmative, the superimposition region determination unit 20 determines a superimposition region in the non-attention region in order from the superimposition image having a higher priority in step 412.

本実施形態でも、重畳領域決定部20は、非注目領域から、重畳用画像を最大サイズとなる倍率で重畳可能な領域を探索し、該領域を重畳領域として決定する。重畳領域の決定方法は、第1実施形態で説明した方法と同様に行えばよいため、ここでは説明を省略する。ただし、ステップ408で選択された複数の重畳用画像のうち、優先度が最も高い重畳用画像を除く他の重畳用画像については、非注目領域内の先に決定された重畳領域と重ならない領域を重畳領域として決定する。すなわち、重畳領域を決定する際に、該重畳領域を決定する重畳用画像より優先度の高い重畳用画像に対して先に決定された重畳領域を非注目領域から除いた領域から、重畳領域を決定する。これにより、優先度の高い重畳用画像ほど大きな面積の重畳領域が割り当てられる。   Also in the present embodiment, the superimposition area determination unit 20 searches the non-attention area for an area where the superimposition image can be superimposed at the maximum magnification, and determines the area as the superimposition area. Since the determination method of a superimposition area | region should just be performed similarly to the method demonstrated in 1st Embodiment, description is abbreviate | omitted here. However, among the plurality of superimposition images selected in step 408, the other superimposition images excluding the superimposition image having the highest priority do not overlap with the previously determined superimposition area in the non-attention area. Is determined as the overlapping region. That is, when determining a superimposition region, a superimposition region is determined from a region obtained by excluding a superimposition region previously determined for a superimposition image having a higher priority than a superimposition image for determining the superimposition region from a non-attention region. decide. As a result, a superimposition region having a larger area is assigned to a superimposition image with higher priority.

ステップ414において、重畳部22は、重畳用画像の各々を、各重畳用画像に対して決定された重畳領域の各々に重畳し、重畳画像を生成する。   In step 414, the superimposing unit 22 superimposes each superimposing image on each superimposing region determined for each superimposing image to generate a superimposed image.

一方、ステップ410で否定判断された場合には、ステップ416及びステップ418の処理が行われる。なお、ステップ416及びステップ418の処理は、第1実施形態において図9を用いて説明したステップ110及びステップ112の処理と同じであるため、説明を省略する。更に又、ステップ414及びステップ418の後に行われるステップ420の処理も、第1実施形態において図9を用いて説明したステップ114の処理と同じであるため、説明を省略する。   On the other hand, if a negative determination is made in step 410, the processing in step 416 and step 418 is performed. In addition, since the process of step 416 and step 418 is the same as the process of step 110 and step 112 demonstrated using FIG. 9 in 1st Embodiment, description is abbreviate | omitted. Furthermore, the process of step 420 performed after step 414 and step 418 is also the same as the process of step 114 described with reference to FIG. 9 in the first embodiment, and thus description thereof is omitted.

このように、複数の重畳領域の各々に複数の重畳用画像を重畳させる場合であっても、該画像内の利用者の利便性を損なわない領域に各重畳用画像を重畳することができる。   As described above, even when a plurality of superimposing images are superimposed on each of the plurality of superimposing regions, each superimposing image can be superimposed on a region in the image that does not impair the convenience of the user.

なお、重畳用画像の縦横比を固定とする場合において、原画像に重畳するN個(Nは2以上の整数)の重畳用画像の縦横比が等しい場合には、先に縦横比を満たす範囲内で面積の降順で上位N個の重畳領域を探索し、該重畳領域の情報を保持しておいてもよい。そして、優先度が高い重畳用画像ほどサイズの大きな重畳領域に重畳されるように、各重畳領域を決定するようにしてもよい。   When the aspect ratio of the superimposing image is fixed and the aspect ratio of N superimposing images to be superimposed on the original image (N is an integer of 2 or more) is equal, a range that satisfies the aspect ratio first. The top N overlapping regions may be searched in descending order of area, and information on the overlapping regions may be retained. Then, each superimposition region may be determined so that a superimposition image with a higher priority is superimposed on a larger superimposition region.

〔第3実施形態〕   [Third Embodiment]

次に開示の技術の第3実施形態を説明する。第3実施形態では、1つの重畳用画像を原画像に重畳する際に、非注目領域から複数の重畳領域候補が抽出され、該複数の重畳領域候補の中から1つの重畳領域を決定する例について説明する。なお、第3実施形態において、画像処理以外は先に説明した第1実施形態と同一であるので、各部分に同一の符号を付して構成の説明を省略し、以下、本第3実施形態に係る画像処理について、図19を参照して説明する。図19は、第3実施形態に係る画像処理を示すフローチャートである。   Next, a third embodiment of the disclosed technique will be described. In the third embodiment, when one superimposition image is superimposed on the original image, a plurality of superposition region candidates are extracted from the non-target region, and one superposition region is determined from the plurality of superposition region candidates. Will be described. Since the third embodiment is the same as the first embodiment described above except for image processing, the same reference numerals are given to the respective parts, and the description of the configuration is omitted. Hereinafter, the third embodiment will be described. The image processing according to will be described with reference to FIG. FIG. 19 is a flowchart illustrating image processing according to the third embodiment.

なお、本実施形態においても、図19を用いて説明する画像処理が開始される前に、画像認識部40による画像認識が実行され、画像記憶部26に記憶されている各原画像についての認識結果テーブルが認識結果記憶部28に記憶されているものとする。   In this embodiment as well, image recognition by the image recognition unit 40 is performed before the image processing described with reference to FIG. 19 is started, and recognition of each original image stored in the image storage unit 26 is performed. It is assumed that the result table is stored in the recognition result storage unit 28.

ステップ500からステップ508までの処理は、図9を用いて説明したステップ100からステップ108までの処理と同じであるため、説明を省略する。   The processing from step 500 to step 508 is the same as the processing from step 100 to step 108 described with reference to FIG.

ステップ510において、重畳領域決定部20は、非注目領域から、重畳用画像を最大サイズ(最も大きな面積)となる倍率で重畳可能な領域を探索し、該領域を重畳領域候補として抽出する。重畳領域候補の探索は、例えば、第1実施形態において図11を用いて説明した方法と同様に行えばよい。なお、ここでは、重畳領域決定部20は、ステップ314での否定判断後ステップ306の処理に戻る前に変数max_sizeと変数sizeとを比較し、両者が等しければ、この時点の起点の情報を追加的に記憶し、変数max_sizeが次に更新されるまで保持する(図示省略)。すなわち、本実施形態では、変数max_sizeと同じ面積を有する矩形領域が複数探索された場合には、該矩形領域の各々の情報が重畳領域候補として保持される。   In step 510, the superimposition region determination unit 20 searches for a region in which the superimposition image can be superimposed from the non-target region at a magnification that has the maximum size (largest area), and extracts the region as a superimposition region candidate. The search for the overlap region candidate may be performed in the same manner as the method described with reference to FIG. 11 in the first embodiment, for example. Here, the overlap region determination unit 20 compares the variable max_size with the variable size before returning to the processing of step 306 after the negative determination in step 314, and adds information on the starting point at this time if they are equal. Are stored until the variable max_size is updated next time (not shown). That is, in the present embodiment, when a plurality of rectangular areas having the same area as the variable max_size are searched, information on each of the rectangular areas is held as an overlap area candidate.

ステップ512において、重畳領域決定部20は、複数の重畳領域候補が抽出されたか否かを判断する。重畳領域決定部20がステップ512において肯定判断した場合には、ステップ514において、入力部12が、例えば、重畳領域の位置を指定するための位置情報の入力を利用者に促す画像をディスプレイ54に表示して、利用者に該位置情報を入力させる。利用者は、例えばキーボード56等の操作部を操作して位置情報を入力する。   In step 512, the overlapping area determination unit 20 determines whether or not a plurality of overlapping area candidates have been extracted. If the superimposition area determination unit 20 makes an affirmative determination in step 512, in step 514, the input unit 12 displays an image prompting the user to input position information for specifying the position of the superimposition area on the display 54, for example. Display and allow the user to input the location information. The user inputs position information by operating an operation unit such as the keyboard 56, for example.

ステップ516において、重畳領域決定部20は、入力された位置情報に基づいて、複数の重畳領域候補の中から、重畳領域を決定する。   In step 516, the overlapping area determining unit 20 determines an overlapping area from among a plurality of overlapping area candidates based on the input position information.

一方、重畳領域決定部20は、ステップ512において否定判断した場合には、重畳領域候補は1つであるため、ステップ518において、該重畳領域候補を重畳領域として決定する。   On the other hand, when a negative determination is made in step 512, the superimposition region determination unit 20 determines the superimposition region candidate as a superimposition region in step 518 because there is one superimposition region candidate.

重畳領域が決定した後に行われるステップ520及びステップ522の処理は、第1実施形態において図9を用いて説明したステップ112及びステップ114と同じであるため、ここでは説明を省略する。   Since the processing of step 520 and step 522 performed after the overlapping region is determined is the same as step 112 and step 114 described with reference to FIG. 9 in the first embodiment, description thereof is omitted here.

このように、本実施形態では、利用者の指定に応じて、複数の重畳領域候補から利用者の指定に応じて重畳領域を決定することができるため、該画像内の利用者の利便性を損なわない領域に重畳用画像を重畳することができる。   Thus, in this embodiment, since a superimposition area | region can be determined according to a user's designation | designated from several superimposition area | region candidates according to a user's designation | designated, the convenience of the user in this image is improved. The image for superimposition can be superimposed on an area that is not impaired.

なお、上記では、利用者がその都度位置を指定し、該位置に基づいて重畳領域を決定する例について説明したが、これに限定されず、例えば、重畳領域決定部20が、予め定められた条件に基づいて複数の重畳領域候補から重畳領域を決定するようにしてもよい。例えば、注目領域に最も近い重畳領域候補を重畳領域として決定する等の条件が予め設定されていた場合には、該条件に従って、注目領域に最も近い重畳領域候補を重畳領域として決定するようにしてもよい。また、原画像の中心からの距離が最小の位置の重畳領域候補を重畳領域として決定する条件が予め設定されていた場合には、原画像の中心に近い位置の重畳領域候補を重畳領域として決定するようにしてもよい。また、重畳領域を決定するための条件は、利用者が予め設定するようにしてもよいし、重畳用画像を提供した提供者が設定するようにしてもよい。   In the above description, the example in which the user designates the position each time and determines the overlapping area based on the position has been described. However, the present invention is not limited to this. For example, the overlapping area determining unit 20 is determined in advance. You may make it determine a superimposition area | region from several superimposition area | region candidates based on conditions. For example, when a condition such as determining the overlap region candidate closest to the attention region as the overlap region is set in advance, the overlap region candidate closest to the attention region is determined as the overlap region according to the condition. Also good. In addition, if the condition for determining the overlap region candidate at the position with the minimum distance from the center of the original image as the overlap region is set in advance, the overlap region candidate near the center of the original image is determined as the overlap region. You may make it do. Further, the conditions for determining the superimposition region may be set in advance by the user, or may be set by the provider who provided the superimposition image.

更にまた、複数の重畳領域候補が抽出される例は、上記で説明した例に限られない。例えば、利用者がオブジェクト毎に優先度を定め、該優先度に応じて注目領域及び非注目領域を特定するケースにおいても、重畳領域候補が複数抽出される場合もある。以下、優先度を用いる場合に行われる画像処理の一例を説明する。図20は、優先度を用いる場合の画像処理のフローチャートである。また、図21は、優先度を用いて注目領域を特定する場合の注目領域特定処理のフローチャートである。   Furthermore, the example in which a plurality of overlapping region candidates are extracted is not limited to the example described above. For example, even when the user sets the priority for each object and specifies the attention area and the non-attention area according to the priority, a plurality of overlapping area candidates may be extracted. Hereinafter, an example of image processing performed when priority is used will be described. FIG. 20 is a flowchart of image processing when priority is used. FIG. 21 is a flowchart of the attention area specifying process when the attention area is specified using the priority.

図20のステップ600からステップ602までの処理は、図9を用いて説明したステップ100からステップ102までの処理と同じであるため、説明を省略する。   The processing from step 600 to step 602 in FIG. 20 is the same as the processing from step 100 to step 102 described with reference to FIG.

ステップ604において、入力部12は、例えば、選択した原画像に対応する認識結果テーブルの各オブジェクトに対し、優先度の入力を利用者に促す画像をディスプレイ54に表示して、利用者に該各オブジェクトの優先度を入力させる。利用者は、例えばキーボード56等の操作部を操作して優先度を入力する。また、注目領域特定情報として、重畳用画像の重畳を許可するか否かの重畳許可情報も優先度毎に入力される。   In step 604, the input unit 12 displays, for example, an image that prompts the user to input the priority for each object in the recognition result table corresponding to the selected original image, and displays the image to the user. Lets you enter the priority of the object. For example, the user operates the operation unit such as the keyboard 56 to input the priority. Further, as the attention area specifying information, superposition permission information indicating whether or not to superimpose the superposition image is also input for each priority.

図22(A)は、優先度の指定結果を示す優先度テーブルの一例を示す図である。優先度テーブルは、例えば、第2記憶部68に記憶される。ここで、優先度は0〜2までの3段階で指定されている。0が最も優先度が高く、2が最も優先度が低い。図22(A)に例示した優先度テーブルには、内容が「認識なし」の認識結果が含まれているが、これは、物体認識部42により物体として認識されなかった領域を示している。本例では、実際にオブジェクトが認識されなかった領域も仮想的なオブジェクトとして該優先度テーブルに登録するようにしている。優先度テーブルは、原画像毎且つ利用者毎に生成される。また、図示は省略するが、利用者の指定により、優先度0のオブジェクトの領域は、重畳用画像の重畳が禁止されており、優先度1、2のオブジェクトの領域は、重畳用画像の重畳が許可されているものとする(重畳許可情報)。各オブジェクトの優先度及び重畳許可情報は利用者に応じて異なる。   FIG. 22A is a diagram illustrating an example of a priority table indicating priority designation results. The priority table is stored in the second storage unit 68, for example. Here, the priority is specified in three stages from 0 to 2. 0 is the highest priority and 2 is the lowest priority. The priority table illustrated in FIG. 22A includes a recognition result whose content is “no recognition”, and this indicates a region that is not recognized as an object by the object recognition unit 42. In this example, an area where an object is not actually recognized is also registered in the priority table as a virtual object. The priority table is generated for each original image and for each user. Although not shown in the figure, superimposition of the superimposing image is prohibited in the object area of priority 0 by the designation of the user, and the superimposing image is superimposed on the object area of priority 1 or 2. Is permitted (superimposition permission information). The priority and superimposition permission information of each object differ depending on the user.

ステップ608において、領域特定部16は、優先度に応じて、注目領域及び非注目領域を特定する。ここで、図21を参照して、領域特定部16の処理を詳細に説明する。領域特定部16は、ステップ700において、ステップ602で選択された原画像の画像認識結果として対応付けられている認識結果テーブルの情報を取得する。ステップ702において、領域特定部16は、各オブジェクトに対して指定された優先度を優先度テーブルから取得する。ステップ704において、領域特定部16は、同じ優先度の領域(オブジェクト)をマージする。図22(B)にマージ後の各領域の位置及びサイズを登録した領域テーブルの一例を示す。なお、マージ後の領域は矩形に限定されず、矩形以外の複雑な形状を有していてもよい。ステップ706において、領域特定部16は、マージ後の領域のうち優先度が最も高い領域を注目領域として特定し、それ以外の領域の各々を非注目領域として特定する。図22(B)に示す例では、優先度が1の領域と優先度が2の領域の各々が非注目領域となる。なお、ここでは、優先度が最も高い領域を注目領域として特定する例について説明するが、利用者の指定によっては、例えば、優先度が最も高い領域及び優先度が2番目に高い領域を、非注目領域として特定してもよい。   In step 608, the area specifying unit 16 specifies the attention area and the non-attention area according to the priority. Here, the processing of the region specifying unit 16 will be described in detail with reference to FIG. In step 700, the region specifying unit 16 acquires information of a recognition result table associated with the image recognition result of the original image selected in step 602. In step 702, the area specifying unit 16 acquires the priority specified for each object from the priority table. In step 704, the area specifying unit 16 merges areas (objects) having the same priority. FIG. 22B shows an example of an area table in which the position and size of each area after merging are registered. The merged area is not limited to a rectangle, and may have a complicated shape other than a rectangle. In step 706, the area specifying unit 16 specifies the area having the highest priority among the merged areas as the attention area, and specifies each of the other areas as the non-attention area. In the example shown in FIG. 22B, each of the area having the priority 1 and the area having the priority 2 is a non-attention area. Here, an example in which the region with the highest priority is specified as the attention region will be described. However, depending on the designation of the user, for example, the region with the highest priority and the region with the second highest priority may be The region of interest may be specified.

続いて、図20のステップ610において、重畳領域決定部20は、全ての非注目領域のうち、重畳用画像の重畳が許可されている優先度の非注目領域を、処理対象として設定する。ステップ612において、重畳領域決定部20は、処理対象として設定された非注目領域が複数あるか否かを判断する。上記例では、重畳が許可されている非注目領域は、優先度1の非注目領域、及び優先度2の非注目領域の2つであるため、ステップ612では肯定判断される。   Subsequently, in Step 610 of FIG. 20, the superimposition region determination unit 20 sets, as a processing target, a priority non-attention region in which superimposition of the superimposition image is permitted among all non-attention regions. In step 612, the overlapping area determination unit 20 determines whether there are a plurality of non-attention areas set as processing targets. In the above example, there are two non-attention areas that are allowed to be superposed, ie, a non-attention area with priority 1 and a non-attention area with priority 2, and therefore an affirmative determination is made at step 612.

重畳領域決定部20は、ステップ612で肯定判断した場合には、ステップ616において、処理対象として設定した非注目領域毎に、重畳用画像を最大サイズで重畳できる領域を、重畳領域候補として抽出する。ステップ616における処理は、非注目領域毎に第1実施形態の図9を用いて説明したステップ110と同様に行えばよいため、ここでは説明を省略する。   If the determination in step 612 is affirmative, the superimposing area determination unit 20 extracts, in step 616, an area where the superimposing image can be superimposed with the maximum size as a superimposing area candidate for each non-attention area set as a processing target. . The processing in step 616 may be performed for each non-attention area in the same manner as in step 110 described with reference to FIG. 9 of the first embodiment, and thus description thereof is omitted here.

ステップ618においては、入力部12が、例えば、複数の重畳領域候補のいずれかの位置を指定するための位置情報の入力を利用者に促す画像をディスプレイ54に表示して、利用者に該位置情報を入力させる。例えば、利用者に対して、図23に示すように非注目領域P02、及び非注目領域P03の各々で抽出された重畳領域候補の位置を表形式で表示するようにしてもよいし、原画像の各重畳領域候補の位置に枠画像を重畳させた画像を表示するようにしてもよい。これに対して、利用者は、例えばキーボード56等の操作部を操作して該複数の重畳領域候補のいずれかの位置を指定するための位置情報を入力する。   In step 618, for example, the input unit 12 displays on the display 54 an image that prompts the user to input position information for designating any position of the plurality of overlapping area candidates, and displays the position to the user. Ask for information. For example, for the user, as shown in FIG. 23, the positions of the overlap region candidates extracted in each of the non-target region P02 and the non-target region P03 may be displayed in a table format, or the original image An image in which a frame image is superimposed on the position of each of the overlapping region candidates may be displayed. In response to this, the user operates the operation unit such as the keyboard 56 to input position information for designating the position of any one of the plurality of overlapping area candidates.

ステップ620において、重畳領域決定部20は、入力された位置情報に基づいて、複数の重畳領域候補の中から、重畳領域を決定する。   In step 620, the overlapping area determination unit 20 determines an overlapping area from among a plurality of overlapping area candidates based on the input position information.

一方、ステップ612において否定判断された場合には、処理対象として設定された非注目領域は1つであることを示している。従って、重畳領域決定部20は、ステップ614において、該処理対象として設定された非注目領域について、重畳用画像を最大サイズで重畳できる領域を、重畳領域候補として抽出する。ステップ616における処理は、第1実施形態の図9を用いて説明したステップ110と同様に行えばよいため、ここでは説明を省略する。   On the other hand, if a negative determination is made in step 612, it indicates that there is one non-attention area set as a processing target. Accordingly, in step 614, the superimposition area determination unit 20 extracts, as superimposition area candidates, an area where the superimposition image can be superimposed with the maximum size for the non-attention area set as the processing target. The processing in step 616 may be performed in the same manner as step 110 described with reference to FIG. 9 of the first embodiment, and thus description thereof is omitted here.

ステップ614又はステップ620の後(重畳領域が決定した後)に行われるステップ622及びステップ624の処理は、第1実施形態において図9を用いて説明したステップ112及びステップ114と同じであるため、ここでは説明を省略する。   Since the processing of Step 622 and Step 624 performed after Step 614 or Step 620 (after the overlapping region is determined) is the same as Step 112 and Step 114 described with reference to FIG. 9 in the first embodiment, The description is omitted here.

なお、ステップ614及びステップ616においても、図19を参照して説明したように、非注目領域毎に同じ面積の重畳領域候補が複数探索される場合がある。この場合には、図19を参照して説明したように複数の重畳領域候補から重畳領域を決定するようにしてもよい。   Note that also in step 614 and step 616, as described with reference to FIG. 19, a plurality of overlapping region candidates having the same area may be searched for each non-target region. In this case, as described with reference to FIG. 19, the overlapping area may be determined from a plurality of overlapping area candidates.

なお、本実施形態においても、上記画像処理が開始される前に画像認識部40による画像認識処理が実行される例について説明したが、画像認識処理は図19のステップ506或いは図20のステップ604の処理の前に実行されればよく、上記例に限定されない。   In the present embodiment, the example in which the image recognition processing by the image recognition unit 40 is executed before the image processing is started has been described. However, the image recognition processing is performed in Step 506 in FIG. 19 or Step 604 in FIG. It is only necessary to be executed before the above process, and the present invention is not limited to the above example.

また、第3実施形態で説明した処理内容を、第2実施形態で説明した処理内容に適用してもよい。すなわち、優先度の異なる複数の非注目領域から抽出された複数の重畳領域候補の中から、優先度の高い重畳用画像ほど、大きな重畳領域が割り当てられるように、重畳領域を決定することもできる。   Further, the processing content described in the third embodiment may be applied to the processing content described in the second embodiment. That is, it is also possible to determine a superimposition region so that a superimposition region with a higher priority is assigned to a larger superimposition region among a plurality of superimposition region candidates extracted from a plurality of non-attention regions having different priorities. .

〔第4実施形態〕   [Fourth Embodiment]

次に開示の技術の第4実施形態を説明する。第1実施形態から第3実施形態では、重畳用画像の傾き及び縦横比は変更せずに、倍率のみを変更可能とする例について説明したが、本実施形態では、倍率だけでなく、傾き及び縦横比の少なくとも一方も変更可能とする例について説明する。なお、第4実施形態において、画像処理装置10の構成は、先に説明した第1実施形態と同一であるので、各部分に同一の符号を付して画像処理装置10の構成の説明を省略する。   Next, a fourth embodiment of the disclosed technique will be described. In the first to third embodiments, the example in which only the magnification can be changed without changing the inclination and the aspect ratio of the image for superimposition has been described, but in this embodiment, not only the magnification but also the inclination and the aspect ratio are changed. An example in which at least one of the aspect ratios can be changed will be described. In the fourth embodiment, the configuration of the image processing apparatus 10 is the same as that of the first embodiment described above. Therefore, the same reference numerals are given to the respective parts, and the description of the configuration of the image processing apparatus 10 is omitted. To do.

まず、重畳用画像の倍率及び傾きを変更可能とする場合について説明する。例えば、図24(A)に示す形状及び大きさの非注目領域が領域特定部16により特定されたとする。重畳用画像が、図24(B)に示す形状の画像である場合、重畳用画像の傾きや縦横比を変更せずに、重畳用画像の倍率をその面積が非注目領域内に収まる範囲内で最大となるように変更したとしても、変更後の重畳用画像の面積はそれほど大きくはならない。しかしながら、図24(C)に示すように重畳用画像の傾きを非注目領域の形状に合わせて変更し、重畳用画像の倍率をその面積が非注目領域内に収まる範囲内で最大となるように変更すれば、傾きを変更しない場合に比べてその面積を大きくすることができる。   First, a case where the magnification and inclination of the superimposition image can be changed will be described. For example, it is assumed that the non-attention area having the shape and size shown in FIG. When the image for superimposition is an image having the shape shown in FIG. 24B, the magnification of the image for superimposition is within a range in which the area is within the non-attention area without changing the inclination or aspect ratio of the image for superimposition. Even if it changes so that it may become the maximum, the area of the image for superimposition after a change does not become so large. However, as shown in FIG. 24C, the inclination of the image for superimposition is changed in accordance with the shape of the non-attention area, and the magnification of the image for superimposition is maximized within the range where the area falls within the non-attention area. If changed to, the area can be increased as compared with the case where the inclination is not changed.

このように重畳用画像の倍率だけでなく傾きも変更する場合には、重畳領域決定部20は、図25に示すように、非注目領域に対して回転させた(傾きを変更した)格子を重ねたときの各格子領域を起点として、図11を用いて説明した最大領域探索処理を行う。また、重畳領域決定部20は、例えば、…-15°、-10°、-5°、0°、+5°、+10°、+15°…のように、傾き(回転角度)を段階的に変化させ、各回転角度毎に最大領域探索処理を行う。この変化の幅を小さくするほど、探索精度が高まる。   In this way, when changing not only the magnification of the image for superimposition but also the inclination, the superimposing area determination unit 20 rotates the grid rotated (or the inclination changed) with respect to the non-attention area as shown in FIG. The maximum area search process described with reference to FIG. 11 is performed starting from each lattice area when overlapped. In addition, the overlapping area determination unit 20 performs the inclination (rotation angle) in a step, for example, -15 °, -10 °, -5 °, 0 °, + 5 °, + 10 °, + 15 °. The maximum area search process is performed for each rotation angle. The search accuracy increases as the width of the change is reduced.

重畳領域決定部20は、このようにして探索した領域の中で最大面積の領域を重畳領域として決定する。重畳部22は、該重畳領域に重畳用画像を重畳して重畳画像を生成するが、このとき、該重畳領域を探索したときの回転角度まで重畳用画像を回転させ、更に重畳用画像が上記決定した重畳領域の大きさとなるよう、重畳用画像の倍率を変更して重畳する。   The overlapping area determining unit 20 determines the area having the maximum area among the areas searched in this way as the overlapping area. The superimposing unit 22 superimposes the superimposing image on the superimposing region to generate a superimposing image. At this time, the superimposing image is rotated to the rotation angle when the superimposing region is searched. Superposition is performed by changing the magnification of the superimposition image so that the size of the determined superimposition area is obtained.

次に、重畳用画像の倍率及び縦横比を変更可能とする場合について説明する。例えば、図26(A)に示す形状及び大きさの非注目領域が領域特定部16により特定されたとする。重畳用画像が、図26(B)に示す形状の画像である場合、重畳用画像の傾きや縦横比を変更せずに、重畳用画像の倍率をその面積が非注目領域内に収まる範囲内で最大となるように変更したとしても、変更後の重畳用画像の面積はそれほど大きくはならない。しかしながら、図26(C)に示すように重畳用画像の縦横比を非注目領域の形状に合わせて変更し、重畳用画像の倍率をその面積が非注目領域内に収まる範囲内で最大となるように変更すれば、縦横比を変更しない場合に比べてその面積を大きくすることができる。   Next, a case where the magnification and aspect ratio of the superimposing image can be changed will be described. For example, it is assumed that the non-attention area having the shape and size shown in FIG. When the image for superimposition is an image having the shape shown in FIG. 26B, the magnification of the image for superimposition is within a range in which the area falls within the non-attention area without changing the inclination or aspect ratio of the image for superimposition. Even if it changes so that it may become the maximum, the area of the image for superimposition after a change does not become so large. However, as shown in FIG. 26C, the aspect ratio of the image for superimposition is changed in accordance with the shape of the non-attention area, and the magnification of the image for superimposition is maximized within the range where the area falls within the non-attention area. If changed in this way, the area can be increased compared with the case where the aspect ratio is not changed.

このように縦横比の変更が可能である場合には、最大領域探索処理において、縦横比を考慮する必要がない。従って、重畳領域決定部20は、例えば、図11に示す最大領域探索処理に代えて、図27に示す最大領域探索処理を行ってもよい。なお、本実施形態においても、図13(B)に示すように、原画像を予め定められた大きさで格子状に分割し、領域特定部16により抽出された非注目領域から、格子領域を基準とした非注目領域を抽出する。重畳領域決定部20は、格子領域を基準とした非注目領域を対象として、最大領域探索処理を行う。   Thus, when the aspect ratio can be changed, it is not necessary to consider the aspect ratio in the maximum area search process. Therefore, for example, instead of the maximum area search process illustrated in FIG. 11, the overlapping area determination unit 20 may perform the maximum area search process illustrated in FIG. 27. In this embodiment as well, as shown in FIG. 13B, the original image is divided into a lattice shape with a predetermined size, and the lattice region is extracted from the non-attention region extracted by the region specifying unit 16. A non-attention area as a reference is extracted. The superimposition region determination unit 20 performs a maximum region search process on a non-attention region based on the lattice region.

ステップ800において、重畳領域決定部20は、変数max_sizeに1をセットする。ここでは、原画像を予め定められた大きさの格子状に分割したときの各格子領域を単位として表わされる最も小さい面積1が、変数max_sizeの初期値としてセットされる。   In step 800, the overlapping area determination unit 20 sets 1 to the variable max_size. Here, the smallest area 1 expressed in units of each grid area when the original image is divided into grids of a predetermined size is set as the initial value of the variable max_size.

ステップ802において、重畳領域決定部20は、非注目領域のうち1つの格子領域を起点として選択する。更に、重畳領域決定部20は、縦方向の変数であるheightに1をセットし、横方向の変数であるwidthに1をセットする(図28(A)も参照)。   In step 802, the overlapping area determination unit 20 selects one grid area from the non-target areas as a starting point. Furthermore, the overlapping area determination unit 20 sets 1 to height which is a vertical variable, and sets 1 to width which is a horizontal variable (see also FIG. 28A).

ステップ804において、重畳領域決定部20は、非注目領域のうち、現在選択されている格子領域を起点とし、現状の幅(width)を矩形領域の横方向の長さとしたときに、該矩形領域の高さ方向の長さをどれだけ伸ばせるかを探索する。そして、重畳領域決定部20は、探索の結果、伸ばすことができた最大の高さをheightにセットする。   In step 804, the overlapping area determination unit 20 starts from the currently selected lattice area among the non-target areas, and sets the current width (width) as the horizontal length of the rectangular area. Search how much the length in the height direction can be extended. Then, the overlapping area determination unit 20 sets the maximum height that can be extended as a result of the search to height.

ステップ806において、重畳領域決定部20は、変数sizeに、height×widthの値をセットする。   In step 806, the overlapping area determination unit 20 sets a value of height × width to the variable size.

ステップ808において、重畳領域決定部20は、変数max_sizeと変数sizeを比較し、変数max_sizeが変数sizeより小さいか否かを判断する。重畳領域決定部20は、ステップ808で肯定判断した場合には、ステップ810において、変数max_sizeに変数sizeの値をセットし、この時点の起点の情報も記憶しておき、ステップ812に進む。ここで記憶された起点の情報は変数max_sizeの次に更新されるまで保持される。一方、重畳領域決定部20は、ステップ808で否定判断した場合には、ステップ810の処理は行わずに、ステップ812に進む。   In step 808, the overlapping area determination unit 20 compares the variable max_size with the variable size, and determines whether the variable max_size is smaller than the variable size. If the determination is affirmative at step 808, the superimposition area determination unit 20 sets the value of the variable size to the variable max_size at step 810, stores the starting point information at this time, and proceeds to step 812. The information on the starting point stored here is retained until it is updated next to the variable max_size. On the other hand, if the overlap region determination unit 20 makes a negative determination in step 808, the process proceeds to step 812 without performing the processing in step 810.

ステップ812において、重畳領域決定部20は、非注目領域内において、幅(width)を伸ばせるか否かを判断する。重畳領域決定部20は、ステップ812で肯定判断した場合には、ステップ814に進む。重畳領域決定部20は、ステップ814において、変数widthに1を加算し、ステップ804に戻って、上記処理を繰り返す。   In step 812, the overlapping area determination unit 20 determines whether or not the width can be increased in the non-attention area. If the determination is affirmative at step 812, the overlapping area determination unit 20 proceeds to step 814. In step 814, the overlapping area determination unit 20 adds 1 to the variable width, returns to step 804, and repeats the above processing.

また、重畳領域決定部20は、ステップ812において、否定判断した場合には、ステップ816において、非注目領域の全ての格子領域を起点として上記処理を繰り返したか否かを判断する。重畳領域決定部20は、ステップ816において否定判断した場合には、ステップ818において、起点の格子領域を変更し、widthに1をセットし、heightに1をセットして、ステップ804に戻る。   If the determination result in step 812 is negative, the overlapping region determination unit 20 determines in step 816 whether or not the above process has been repeated starting from all lattice regions in the non-target region. If the overlap region determination unit 20 makes a negative determination in step 816, in step 818, it changes the starting lattice region, sets width to 1, sets height to 1, and returns to step 804.

重畳領域決定部20は、ステップ816において、肯定判断した場合には、ステップ820において、この時点でmax_sizeの面積を有する矩形領域が、最大面積の矩形領域であると判断する。そして、重畳領域決定部20は、該最大面積の矩形領域を重畳領域として特定する。   If the determination in step 816 is affirmative, the overlapping area determination unit 20 determines in step 820 that the rectangular area having the area of max_size at this time is the rectangular area having the maximum area. Then, the overlapping area determination unit 20 specifies the rectangular area having the maximum area as the overlapping area.

図27に示す処理例が図28に模式的に示されている。図28において、非注目領域がグレーで示されている。本例において、まず、図28(A)に示すように、起点が選択される。図28(A)において、黒色で塗りつぶされた格子領域が起点である。ここで、変数max_sizeの初期値として1がセットされる。   The process example shown in FIG. 27 is schematically shown in FIG. In FIG. 28, the non-attention area is shown in gray. In this example, first, as shown in FIG. 28A, a starting point is selected. In FIG. 28A, the starting point is a lattice area filled with black. Here, 1 is set as the initial value of the variable max_size.

そして、図28(B)に示すように、幅1のときの最大面積4が変数max_sizeにセットされる。次に、widthに1が加算されて、幅が2とされた場合には、図28(C)に示すように、最大で2×3の矩形領域を確保できるため(黒塗りの領域)、幅2のときの矩形面積6が変数max_sizeにセットされる。次に、widthに1が加算されて、幅が3とされた場合には、図28(D)に示すように、幅3のときの最大の矩形面積9が変数max_sizeにセットされる。次に、widthに1が加算されて、幅が4とされた場合には、図28(E)に示すように、幅4のときの最大の矩形面積は8であるが、幅3のときの最大の矩形面積9より小さいため、変数max_sizeは変更されない。次に、widthに1が加算されて、幅が5とされた場合には、図28(F)に示すように、幅5のときの最大の矩形面積は5であるが、幅3のときの最大の矩形面積9より小さいため、変数max_sizeは変更されない。   Then, as shown in FIG. 28B, the maximum area 4 when the width is 1 is set to the variable max_size. Next, when 1 is added to width and the width is 2, as shown in FIG. 28C, a rectangular area of 2 × 3 can be secured at maximum (black area). The rectangular area 6 when the width is 2 is set to the variable max_size. Next, when 1 is added to width and the width is 3, as shown in FIG. 28D, the maximum rectangular area 9 when the width is 3 is set to the variable max_size. Next, when 1 is added to width and the width is 4, as shown in FIG. 28E, the maximum rectangular area at the time of width 4 is 8, but at the time of width 3 The variable max_size is not changed because it is smaller than the maximum rectangular area 9. Next, when 1 is added to width and the width is set to 5, as shown in FIG. 28 (F), the maximum rectangular area when width is 5 is 5, but when width is 3, The variable max_size is not changed because it is smaller than the maximum rectangular area 9.

従って、図28(A)に示す格子領域を起点とした場合において、面積が最大だったのは、幅3、高さ3のときの面積9であるため、重畳領域決定部20は、変数max_sizeに9がセットされた状態でwidthを増加し、起点をずらす。重畳領域決定部20は、非注目領域の形がいびつな場合であっても、もれなく探索するため、起点の位置を変えながら、全ての格子領域を起点として探索するようにしている。   Therefore, when the lattice area shown in FIG. 28A is used as the starting point, the largest area is the area 9 when the width is 3 and the height is 3. Therefore, the overlapping area determining unit 20 sets the variable max_size. With 9 set to, increase the width and shift the starting point. Even if the shape of the non-attention area is distorted, the overlapping area determination unit 20 searches all the grid areas as starting points while changing the positions of the starting points.

このように、この例では、縦横比の制約がないため、非注目領域のうち確保できる最大の矩形領域が探索される。なお、ここでは、非注目領域を格子状に分割したときの格子領域を単位として重畳領域探索処理を行う例について説明したが、画素単位で重畳領域探索処理を行うようにしてもよい。   As described above, in this example, since there is no restriction on the aspect ratio, the largest rectangular area that can be secured among non-target areas is searched. Here, an example has been described in which the superimposition area search process is performed in units of lattice areas when the non-target area is divided into a grid, but the superimposition area search process may be performed in units of pixels.

重畳領域決定部20は、このようにして探索した最大面積の領域を重畳領域として決定する。なお、図27に示した重畳領域の決定において、例えば、重畳領域の最大サイズを注目領域のサイズ以下にする等のように、何らかの制限を設けてもよい。重畳部22は、該重畳領域に重畳用画像を重畳して重畳画像を生成するが、このとき、重畳用画像が上記決定した重畳領域の大きさとなるよう、重畳用画像の縦横比及び倍率を変更して重畳する。なお、重畳領域のサイズが注目領域のサイズよりも大きい場合には、注目領域のサイズよりも重畳用画像のサイズが小さくなるように倍率を変更した状態で重畳領域に重畳してもよい。   The overlapping region determining unit 20 determines the region having the maximum area searched in this way as the overlapping region. In the determination of the overlapping area shown in FIG. 27, for example, some limitation may be provided, such as setting the maximum size of the overlapping area to be equal to or smaller than the size of the attention area. The superimposing unit 22 generates a superimposed image by superimposing the superimposing image on the superimposing region. At this time, the superimposing image has an aspect ratio and a magnification so that the superimposing image becomes the size of the determined superimposing region. Change and superimpose. In addition, when the size of the superimposition area is larger than the size of the attention area, the superimposition area may be superimposed with the magnification changed so that the size of the image for superimposition becomes smaller than the size of the attention area.

なお、画像処理装置10を、傾き、縦横比、及び倍率の全てを変更可能に構成することもできる。この場合には、重畳領域決定部20は、図25を用いて説明したように、非注目領域に対して段階的に格子の傾き(回転角度)を変えつつ、傾き毎に図28を用いて説明した最大領域探索処理を行い、全傾きに亘って最大サイズとなる領域を重畳領域として決定する。   Note that the image processing apparatus 10 can be configured to be able to change all of the inclination, the aspect ratio, and the magnification. In this case, as described with reference to FIG. 25, the overlapping region determination unit 20 changes the lattice inclination (rotation angle) stepwise with respect to the non-attention region and uses FIG. 28 for each inclination. The described maximum area search process is performed, and an area having the maximum size over the entire inclination is determined as the overlapping area.

なお、本実施形態においても、第2実施形態で説明したように、原画像に複数の重畳用画像を重畳させる場合には、優先度の高い重畳用画像から順に重畳領域を決定してもよい。また、原画像に重畳する重畳用画像の数をN個(Nは2以上の整数)とした場合に、面積の降順で上位N個の重畳領域を先に探索して、該重畳領域の位置及びサイズの情報を保持しておいてもよい。そして、優先度が高い重畳用画像ほどサイズの大きな重畳領域に重畳されるように、各重畳領域を決定するようにしてもよい。また、第3実施形態で説明したように、優先度の異なる非注目領域から重畳領域候補を抽出して、重畳領域を決定する場合にも、傾き及び縦横比を可変とする本実施形態の処理方法を適用して、重畳領域を決定することができる。   In this embodiment as well, as described in the second embodiment, when a plurality of superimposing images are superimposed on the original image, the superimposing regions may be determined in order from the superimposing images having the highest priority. . Further, when the number of superimposing images to be superimposed on the original image is N (N is an integer of 2 or more), the top N overlapping regions are searched first in descending order of area, and the position of the overlapping region is determined. And size information may be held. Then, each superimposition region may be determined so that a superimposition image with a higher priority is superimposed on a larger superimposition region. Further, as described in the third embodiment, the process of the present embodiment in which the slope and the aspect ratio are variable even when the overlapping region candidate is extracted from the non-attention regions having different priorities and the overlapping region is determined. The method can be applied to determine the overlap region.

なお、原画像に重畳用画像を重畳すると共にシステム管理側から重畳用画像の提供者側(例えば広告主側)に対して重畳用画像の重畳に係る料金を請求する等のサービスを提供する際に、上記画像処理装置10を適用してもよい。また、このサービスにおいて、重畳用画像の傾き、縦横比、及びサイズを変更可能とする場合、傾き、縦横比、及びサイズ(面積)によって提供者が負担する料金を異ならせてもよい。更に又、重畳用画像の傾き、縦横比、及びサイズを変更可能とする場合、重畳用画像の提供者が、重畳条件として、重畳用画像の傾き、縦横比、及びサイズの少なくとも1つについて許容範囲を指定するようにしてもよい。例えば、画像処理装置10の入力部12が、指定画面をディスプレイ54に表示して、キーボード56等の操作部を提供者が操作することにより、該許容範囲の指定情報を入力させるように構成してもよい。或いは、入力部12が、画像処理装置10とは別の端末装置に通信IF58を介して指定画面を表示させ、重畳用画像の提供者が該端末装置を操作して該指定画面に入力した指定情報を、通信IF58を介して取得してもよい。   When providing a service such as superimposing a superimposition image on the original image and charging a fee for superimposition of the superimposition image from the system management side to the superimposition image provider side (for example, the advertiser side) In addition, the image processing apparatus 10 may be applied. In addition, in this service, when the inclination, aspect ratio, and size of the superimposition image can be changed, the fee that the provider bears may be varied depending on the inclination, aspect ratio, and size (area). Further, when the inclination, aspect ratio, and size of the image for superimposition can be changed, the provider of the image for superimposition allows the at least one of the inclination, aspect ratio, and size of the image for superimposition as the superimposing condition. A range may be specified. For example, the input unit 12 of the image processing apparatus 10 displays a designation screen on the display 54 and the provider operates the operation unit such as the keyboard 56 so that the designation information of the allowable range is input. May be. Alternatively, the input unit 12 displays a designation screen on a terminal device different from the image processing apparatus 10 via the communication IF 58, and the designation that the provider of the superimposing image inputs to the designation screen by operating the terminal device Information may be acquired via the communication IF 58.

図29(A)に、傾き及び縦横比の許容範囲を指定する指定画面80の一例を示す。指定画面80には、重畳用画像の傾きの許容範囲を指定する指定エリア82と、重畳用画像の縦横比の許容範囲を指定する指定エリア84と、が含まれている。   FIG. 29A shows an example of a designation screen 80 for designating an allowable range of inclination and aspect ratio. The designation screen 80 includes a designation area 82 for designating an allowable range of the inclination of the superimposition image and a designation area 84 for designating an allowable range of the aspect ratio of the superposition image.

指定エリア82では、「傾き不可」、「±10度」、「±30度」、及び「任意の傾きを許容」、の4つの条件を指定可能である。例えば、提供者が、重畳用画像の回転角度を常に0度として重畳用画像を傾けて原画像に重畳させることを禁止したい場合には、「傾き不可」を指定することができる。また、提供者が、回転角度を−10度から+10度までの範囲内で、重畳用画像の傾きの変更を許可する場合には、「±10度」を指定することができる。±30度も同様である。また、提供者が、傾きに制限を設けたくない場合には、「任意の傾きを許容」を指定することができる。   In the designation area 82, four conditions of “not tiltable”, “± 10 degrees”, “± 30 degrees”, and “allow any tilt” can be specified. For example, when the provider wants to prohibit the superimposition image from being tilted and superimposing it on the original image with the rotation angle of the superimposition image always being 0 degrees, it is possible to designate “not tiltable”. In addition, when the provider permits the change of the inclination of the image for superimposition within the range of the rotation angle from −10 degrees to +10 degrees, “± 10 degrees” can be designated. The same applies to ± 30 degrees. Further, if the provider does not want to set a limit on the tilt, “allow any tilt” can be designated.

指定エリア84では、「縦横比固定」、「縦横比±5%変形許容」、及び「縦横比±10%変形許容」の3つの条件を指定可能である。例えば、重畳用画像の提供者が、縦横比を元の重畳用画像の縦横比のまま固定としたい場合には、「縦横比固定」を指定することができる。また、提供者が縦横比を元の重畳用画像の縦横比の−5%から+5%までの変形を許容する場合には、「縦横比±5%変形許容」を指定することができる。ここで、「縦横比−5%」とは、「横の長さ/縦の長さ」が0.95となるように重畳用画像を変形することを意味する。また、「縦横比+5%」とは、「横の長さ/縦の長さ」が1.05となるように重畳用画像を変形することを意味する。また、提供者が縦横比を元の重畳用画像の縦横比の−10%から+10%までの変形を許容する場合には、「縦横比±10%変形許容」を指定することができる。   In the designation area 84, three conditions of "fixed aspect ratio", "aspect ratio ± 5% deformation allowable", and "aspect ratio ± 10% deformation allowable" can be specified. For example, if the provider of the superimposing image wants to fix the aspect ratio as it is in the original superimposing image, “fixed aspect ratio” can be designated. Further, when the provider allows the deformation of the aspect ratio from −5% to + 5% of the aspect ratio of the original superimposition image, “aspect ratio ± 5% deformation allowable” can be designated. Here, “aspect ratio−5%” means that the superimposition image is deformed so that “horizontal length / vertical length” becomes 0.95. “Aspect ratio + 5%” means that the image for superimposition is deformed so that “horizontal length / vertical length” is 1.05. Further, when the provider allows the deformation of the aspect ratio from −10% to + 10% of the aspect ratio of the original superimposition image, “aspect ratio ± 10% deformation allowable” can be designated.

また、重畳用画像の傾き及び縦横比の許容範囲だけでなく許容サイズも指定する場合の指定画面86を図29(B)に示す。指定画面86には、上記指定エリア82,84と共に、重畳用画像の許容サイズを指定する指定エリア88も設けられている。   FIG. 29B shows a designation screen 86 for designating not only the allowable range of the inclination and aspect ratio of the image for superimposition but also the allowable size. The designation screen 86 is provided with a designation area 88 for designating the permissible size of the image for superimposition as well as the designation areas 82 and 84 described above.

指定エリア82では、小、中、大の3つのサイズを指定可能である。重畳用画像の提供者は、重畳用画像をなるべく大きくさせることを希望するのが一般的であるが、例えば、サイズに応じて料金が異なる場合等には、料金を抑えるため、重畳用画像の提供者が重畳用画像のサイズを指定することもあり得る。   In the designation area 82, three sizes of small, medium and large can be designated. In general, the provider of the image for superimposition desires to make the image for superimposition as large as possible. However, for example, if the fee varies depending on the size, The provider may specify the size of the superimposing image.

なお、小、中、大、という抽象的な項目に対して、予め実際の面積を表わす値や、倍率が対応付けられていてもよい。例えば、「小」に対して面積r1以上r2未満の範囲が対応付けられ、「中」に対して面積r2以上r3未満の範囲が対応付けられ、「大」に対して面積r3以上r4未満の範囲が対応付けられていてもよい。また、面積を表わす単位は、格子領域の数であってもよいし、画素数であってもよい。更に又、「小」に対して倍率s1以上s2未満の範囲が対応付けられ、「中」に対して倍率s2以上s3未満の範囲が対応付けられ、「大」に対して倍率s3以上s4未満の範囲が対応付けられていてもよい。   Note that a value representing an actual area or a magnification may be associated with abstract items such as small, medium, and large in advance. For example, a range of area r1 or more and less than r2 is associated with “small”, a range of area r2 or more and less than r3 is associated with “medium”, and an area r3 or more and less than r4 is associated with “large”. A range may be associated. The unit representing the area may be the number of lattice regions or the number of pixels. Furthermore, a range of magnification s1 to less than s2 is associated with “small”, a range of magnification s2 to less than s3 is associated with “medium”, and a magnification s3 to less than s4 is associated with “large”. Ranges may be associated with each other.

なお、上記指定画面80、88及び各指定エリア82、84、86は一例であって、重畳条件の指定方法を上記に限定するものではない。   The designation screens 80 and 88 and the designation areas 82, 84, and 86 are examples, and the method for designating the superimposition condition is not limited to the above.

このように重畳用画像の提供者から指定された重畳条件は、重畳用画像テーブルに登録しておくことができる。図30(A)に示すように、重畳用画像IDに対応付けて、重畳条件を特定する重畳条件IDを登録し、図30(B)に示すように、重畳条件テーブルに、重畳条件IDに対応付けて重畳条件を登録しておいてもよい。   In this way, the superimposing conditions designated by the superimposing image provider can be registered in the superimposing image table. As shown in FIG. 30A, a superposition condition ID for specifying a superposition condition is registered in association with the superposition image ID, and as shown in FIG. 30B, the superposition condition ID is stored in the superposition condition table. The superimposing conditions may be registered in association with each other.

重畳領域決定部20は、重畳用画像選択部18により選択された重畳用画像に対応付けて登録されている重畳条件を参照して、該重畳条件を満たす範囲内で最大領域探索処理を実行すればよい。例えば、指定された傾きの許容範囲が±10度の場合には、回転角度を−10度から+10度までの範囲内で段階的に変更して、最大領域を探索すればよい。また、縦横比についても許容範囲が指定されている場合には、縦横比を許容範囲内で段階的に変更して、最大領域を探索すればよい。例えば、縦横比の許容範囲として1.25〜1.40が指定された場合を例に挙げると、元の重畳用画像の形状が「横:縦=4:3」である場合には、「横の長さ/縦の長さ(縦横比)」は1.33となる。重畳領域決定部20は、該重畳用画像の元々の縦横比1.33の矩形領域だけでなく、指定された許容範囲内の縦横比1.25(横:縦=5:4)及び1.40(横:縦=7:5)の各々を満たす矩形領域についても、探索されるように上記最大領域探索処理を実行する。傾き、縦横比、及びサイズの各々の許容範囲が重畳条件として指定されている場合には、重畳領域決定部20は、各条件を満たす範囲内で最大の面積となるように重畳領域を決定すればよい。   The superimposing region determination unit 20 refers to the superimposing condition registered in association with the superimposing image selected by the superimposing image selection unit 18 and executes the maximum region searching process within a range satisfying the superimposing condition. That's fine. For example, when the specified tilt tolerance is ± 10 degrees, the rotation angle may be changed stepwise within a range from −10 degrees to +10 degrees to search for the maximum area. Further, when an allowable range is specified for the aspect ratio, the maximum area may be searched by changing the aspect ratio stepwise within the allowable range. For example, in the case where 1.25 to 1.40 is specified as the allowable range of aspect ratio, when the shape of the original superimposition image is “horizontal: vertical = 4: 3”, “horizontal length” / Vertical length (aspect ratio) "is 1.33. In addition to the original rectangular area having an aspect ratio of 1.33 of the image for superimposition, the overlapping area determining unit 20 has an aspect ratio within the specified allowable range of 1.25 (horizontal: vertical = 5: 4) and 1.40 (horizontal: vertical = The above-mentioned maximum area search process is executed so that the rectangular area satisfying each of 7: 5) is also searched. When the permissible ranges of inclination, aspect ratio, and size are specified as the superimposing conditions, the superimposing region determining unit 20 determines the superimposing region so as to have the maximum area within the range satisfying each condition. That's fine.

ところで、上記各実施形態では重畳用画像の面積が最大となるように重畳領域を決定し、重畳用画像の倍率等を変更して重畳する例について説明したが、重畳用画像の提供者が、面積を多少犠牲にしても傾きや縦横比の変更を小さめにしたいと希望する場合もある。この場合には、重畳領域決定部20は、例えば、まず、面積以外の他の重畳条件を段階的に変更して各条件下で最大面積の領域を探索し、面積が極大となる重畳条件を抽出する。重畳領域決定部20は、該抽出した重畳条件及び該条件の下で探索された最大面積、該他の重畳条件の変更量が0(最小)のときに探索された最大面積、該他の重畳条件の変更範囲内で探索された最大面積のうち最も大きな面積を、該他の重畳条件と共に提示する。重畳用領域の提供者は、提示された面積及び該面積に対応する他の重畳条件の組み合わせの中から1つを選択する。重畳領域決定部20は、選択された組み合わせが示す面積の領域を重畳領域として決定することができる。   By the way, in each of the above-described embodiments, an example in which a superimposition region is determined so that the area of the superimposition image is maximized and the magnification of the superimposition image is changed is described. In some cases, it may be desirable to reduce the change in tilt and aspect ratio at the expense of some area. In this case, for example, the overlapping region determination unit 20 first changes the overlapping condition other than the area step by step to search for a region with the maximum area under each condition, and determines the overlapping condition that maximizes the area. Extract. The superimposition region determining unit 20 determines the extracted superimposition condition, the maximum area searched under the condition, the maximum area searched when the amount of change of the other superimposition condition is 0 (minimum), and the other superimposition The largest area among the maximum areas searched within the condition change range is presented together with the other superposition conditions. The superimposing region provider selects one from a combination of the presented area and other superimposing conditions corresponding to the area. The overlapping region determining unit 20 can determine a region having the area indicated by the selected combination as the overlapping region.

一例として、傾きと面積との組み合わせを考える。まず、重畳領域決定部20は、傾きを-90度から+90度までの範囲で(或いは、重畳用画像の提供者から指定された許容範囲内で)段階的に変更し、それぞれの傾きについて図27を用いて説明した最大領域探索処理を行って最大面積を探索する。図31に、探索結果の一例をプロットした図を示す。重畳領域決定部20は、傾きが最小のときの探索結果、傾きに対して面積が極大となったときの探索結果、及び傾きの変更範囲内で面積が最大となったときの探索結果を示す情報を提示する。提示方法は特に限定されないが、例えば、ディスプレイ54に図31に示すグラフを表示してもよいし、表形式で表示してもよい。また、重畳領域決定部20は、画像処理装置10とは異なる別の端末装置に表示するように制御してもよい。重畳用画像の提供者は、該提示された探索結果(組み合わせ)から1つを選択することができる。例えば、キーボード56を操作して、選択してもよいし、上記組み合わせの提示が他の端末装置に表示された場合には、該他の端末装置を操作することによって、希望する組み合わせを選択し、選択結果を通信IF58を介して画像処理装置10に送信してもよい。   As an example, consider a combination of slope and area. First, the superimposition region determination unit 20 changes the inclination in a stepwise range from −90 degrees to +90 degrees (or within an allowable range designated by the superimposing image provider), and for each inclination. The maximum area search process described with reference to FIG. 27 is performed to search for the maximum area. In FIG. 31, the figure which plotted an example of the search result is shown. The overlapping region determination unit 20 shows a search result when the inclination is minimum, a search result when the area becomes maximum with respect to the inclination, and a search result when the area becomes maximum within the change range of the inclination. Present information. Although the presentation method is not particularly limited, for example, the graph shown in FIG. 31 may be displayed on the display 54 or may be displayed in a table format. In addition, the overlapping area determination unit 20 may perform control so as to display on a different terminal device different from the image processing device 10. The provider of the image for superimposition can select one from the presented search results (combinations). For example, the keyboard 56 may be selected by selection, and when the combination is displayed on another terminal device, the desired combination is selected by operating the other terminal device. The selection result may be transmitted to the image processing apparatus 10 via the communication IF 58.

重畳領域決定部20は、選択された組み合わせを示す情報を取得し、該組み合わせに対応する矩形領域を、重畳用画像を重畳する重畳領域として決定する。   The superimposition area determination unit 20 acquires information indicating the selected combination, and determines a rectangular area corresponding to the combination as a superimposition area on which the superimposition image is superimposed.

なお、縦横比及び面積の組み合わせを考える場合も、上記と同様に処理すればよい。更にまた、傾き、縦横比、及び面積の組み合わせを考える場合には、重畳領域決定部20は、傾き、縦横比、及び面積を軸とする3次元状のグラフにおいて面積が極大となった探索結果を抽出し、上述したように提示するようにしてもよい。   In addition, when considering the combination of aspect ratio and area, the same processing as described above may be performed. Furthermore, when considering a combination of inclination, aspect ratio, and area, the overlapping region determination unit 20 searches for a result in which the area is maximized in a three-dimensional graph with the inclination, aspect ratio, and area as axes. May be extracted and presented as described above.

なお、ここでは、組み合わせを提示して重畳用画像の提供者に選択させる例について説明したが、これに限定されず、提供者に選択させずに、予め定められた条件を満たす組み合わせを選択して重畳領域を決定するようにしてもよい。予め定められた条件とは、例えば、極大となる組み合わせのうち、最も面積が大きい組み合わせ、或いは最も傾きが小さい組み合わせ、面積が予め定められた値以上で最も傾きが小さい組み合わせ等が挙げられる。   Here, an example in which a combination is presented and the provider of the superimposing image is selected has been described. However, the present invention is not limited to this, and a combination that satisfies a predetermined condition is selected without causing the provider to select the combination. Thus, the overlapping area may be determined. The predetermined condition includes, for example, a combination having the largest area, a combination having the smallest inclination, or a combination having the smallest inclination when the area is equal to or greater than a predetermined value among the combinations having the maximum.

また、傾き、縦横比、及び面積の各々に評価値を付与して、評価値の合計値が最も大きくなる組み合わせを求め、この組み合わせを満たす領域を重畳領域として決定してもよい。なお、評価値は、傾きについては、例えば、傾きが大きくなるほど評価値が小さくなるようにしてもよい。縦横比については、縦横比が1に近いほど評価値が高くなるようにしてもよい。面積については、面積が大きくなるほど評価値が大きくなるようにしてもよい。また、傾き、縦横比、面積の各パラメータに応じて重み付けを変更し、各パラメータの評価値×重み付けの合計値を求め、該合計値が最も大きくなる組み合わせを求め、この組み合わせを満たす領域を重畳領域として決定してもよい。   Alternatively, an evaluation value may be assigned to each of the inclination, the aspect ratio, and the area to obtain a combination that maximizes the total value of the evaluation values, and a region that satisfies this combination may be determined as the overlapping region. Note that the evaluation value may be such that, for example, the evaluation value decreases as the inclination increases. Regarding the aspect ratio, the evaluation value may be higher as the aspect ratio is closer to 1. About an area, you may make it an evaluation value become large, so that an area becomes large. In addition, the weighting is changed according to each parameter of inclination, aspect ratio, and area, the evaluation value of each parameter × the total value of weighting is obtained, the combination having the largest total value is obtained, and the region satisfying this combination is superimposed. It may be determined as a region.

また、重畳領域決定部20が、上記極大となる組み合わせのうち予め定められた条件を満たす組み合わせを選択する場合において、上記評価値の手法を適用してもよい。すなわち、極大となる組み合わせの各々について上記評価値の合計を求め、該合計値が最も大きくなる組み合わせの領域を重畳領域として決定する等である。   Moreover, when the superimposition area | region determination part 20 selects the combination which satisfy | fills a predetermined condition among the combinations that become the said maximum, you may apply the method of the said evaluation value. That is, the sum of the evaluation values is obtained for each maximal combination, and the combination region in which the total value is the largest is determined as the overlapping region.

なお、上記各実施形態では、重畳用画像の傾き、縦横比、及び倍率を変更可能に構成したが、これに限定されず、例えば、重畳用画像の色を変更してもよい。重畳用画像が重畳される領域の周辺の色に合わせて重畳用画像が目立つように、変更することにより、より利用者の注意が向きやすくなる。   In each embodiment described above, the inclination, aspect ratio, and magnification of the superimposition image can be changed. However, the present invention is not limited to this. For example, the color of the superposition image may be changed. By changing the superimposition image so as to be conspicuous in accordance with the color around the region where the superimposition image is superimposed, the user's attention is more easily directed.

また、上記各実施形態では、利用者が画像選択情報或いは注目領域特定情報として入力したキーワードに基づいて注目領域の特定を行う例について説明したが、これに限定されない。例えば、インターネット上の中古車販売サイトから利用者に対して画像を配信するサービスに画像処理装置10を適用する場合、該サイトの特徴から、利用者は車に注目することは明らかである。従って、領域特定部16は、原画像のうち車の画像領域を注目領域として特定し、重畳領域決定部20は、該注目領域以外を非注目領域として重畳領域を決定すればよい。この場合には、利用者が中古車販売サイトにアクセスすることにより、該サイトの特徴である「車」を注目領域特定情報として指定したことになる。   Moreover, although each said embodiment demonstrated the example which identifies an attention area | region based on the keyword which the user input as image selection information or attention area identification information, it is not limited to this. For example, when the image processing apparatus 10 is applied to a service for distributing an image to a user from a used car sales site on the Internet, it is clear that the user pays attention to the car from the characteristics of the site. Therefore, the area specifying unit 16 specifies the image area of the car in the original image as the attention area, and the superimposition area determination unit 20 may determine the superposition area using the areas other than the attention area as non-attention areas. In this case, when the user accesses the used car sales site, the “car” that is a feature of the site is designated as attention area specifying information.

また、例えば、入力部12により、ディスプレイ54等の表示手段に複数のカテゴリをツリー状に表示したカテゴリメニューから、利用者にカテゴリを選択させることにより、注目領域特定情報を入力させるようにしてもよい。具体例を挙げれば、利用者が、動物−哺乳類−猫、というツリー状のカテゴリメニューを辿って猫を選択した場合には、領域特定部16は、原画像のうち猫の画像領域を注目領域として特定してもよい。なお、例えば、画像認識部40の認識レベルによっては、カテゴリメニューの中層のレベル「哺乳類」までしか認識されず、哺乳類の種類が区別して認識されない場合には、領域特定部16は、原画像のうち哺乳類の画像領域を注目領域として特定してもよい。   Further, for example, the attention area specifying information may be input by causing the user to select a category from a category menu in which a plurality of categories are displayed in a tree shape on a display unit such as the display 54 by the input unit 12. Good. As a specific example, when the user selects a cat by following a tree-like category menu of animals-mammals-cats, the region specifying unit 16 selects the cat image region of the original image as a region of interest. May be specified. Note that, for example, depending on the recognition level of the image recognition unit 40, only the middle level “mammals” of the category menu is recognized, and when the type of mammal is not recognized separately, the region specifying unit 16 selects the original image. Of these, the image area of mammals may be specified as the attention area.

また、上記各実施形態では、重畳用画像を重畳する原画像が静止画である場合を例に挙げて説明したが、原画像が動画であってもよい。原画像が動画の場合には、動画像を構成する各フレームについて、上記実施形態と同様の処理を実施することにより、利用者の利便性を損なうことのない領域に重畳用画像を重畳することができる。なお、動画像の場合には、重畳領域を周知の技術でトラッキング(領域の動きを追跡する)ことで、重畳領域に重畳用画像を重畳させ続けることができる。   In each of the above embodiments, the case where the original image on which the superimposition image is superimposed is a still image has been described as an example, but the original image may be a moving image. When the original image is a moving image, the image for superimposition is superimposed on an area that does not impair the convenience of the user by performing the same processing as in the above embodiment for each frame constituting the moving image. Can do. In the case of a moving image, the superimposition image can be continuously superimposed on the superimposition region by tracking the superimposition region with a well-known technique (tracking the movement of the region).

更に、上記では画像処理プログラムが第1記憶部60に記憶されている態様を説明したが、画像処理プログラムは、CD−ROMやDVD−ROM、USBメモリ等の可搬型の記録媒体に記録されている形態で提供することも可能である。   Furthermore, although the image processing program has been described above as being stored in the first storage unit 60, the image processing program is recorded on a portable recording medium such as a CD-ROM, DVD-ROM, or USB memory. It is also possible to provide it in a certain form.

なお、画像処理装置10は、例えば半導体集積回路、より詳しくはASIC(Application Specific Integrated Circuit)等で実現することも可能であり、画像処理装置10の各機能部は例えば電子回路等で実現することも可能である。   The image processing apparatus 10 can also be realized by, for example, a semiconductor integrated circuit, more specifically, an ASIC (Application Specific Integrated Circuit) or the like, and each functional unit of the image processing apparatus 10 is realized by, for example, an electronic circuit or the like. Is also possible.

本明細書に記載された全ての文献、特許出願及び技術規格は、個々の文献、特許出願及び技術規格が参照により取り込まれることが具体的かつ個々に記された場合と同程度に、本明細書中に参照により取り込まれる。   All documents, patent applications and technical standards mentioned in this specification are to the same extent as if each individual document, patent application and technical standard were specifically and individually stated to be incorporated by reference. Incorporated by reference in the book.

10 画像処理装置
12 入力部
14 画像選択部
16 領域特定部
18 重畳用画像選択部
20 重畳領域決定部
22 重畳部
24 出力部
26 原画像記憶部
28 認識結果記憶部
30 重畳用画像記憶部
32 重畳画像記憶部
40 画像認識部
42 物体認識部
44 顔認識部
46 文字認識部
50 コンピュータ
52 CPU
54 ディスプレイ
56 キーボード
58 通信IF
60 第1記憶
6 メモリ
68 第2記憶部
70 バス
DESCRIPTION OF SYMBOLS 10 Image processing apparatus 12 Input part 14 Image selection part 16 Area | region specific part 18 Superimposition image selection part 20 Superimposition area | region determination part 22 Superimposition part 24 Output part 26 Original image memory | storage part 28 Recognition result memory | storage part 30 Superimposition image memory | storage part 32 Superimposition Image storage unit 40 Image recognition unit 42 Object recognition unit 44 Face recognition unit 46 Character recognition unit 50 Computer 52 CPU
54 Display 56 Keyboard 58 Communication IF
60 First storage unit
6 6 Memory 68 Second storage section 70 Bus

Claims (10)

画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択する画像選択部と、
前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記画像選択部によって選択された重畳対象の画像の中から利用者によって注目される注目領域を特定する領域特定部と、
前記画像選択部によって選択された重畳対象の画像のうち、少なくとも前記領域特定部によって特定された注目領域を除外した非注目領域の形状及び大きさと、前記画像選択部によって選択された重畳対象の画像に重畳される画像として予め記憶部に記憶されている重畳用画像の形状及び大きさとに基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する重畳領域決定部と、
前記重畳対象の画像のうち前記重畳領域決定部によって決定された重畳領域に前記重畳用画像を重畳する重畳部と、
を有し、
前記重畳領域決定部は、前記非注目領域の形状及び大きさと、前記重畳用画像の形状及び大きさとに基づいて、前記重畳用画像と縦横比が同一で前記非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、前記重畳用画像を前記重畳用画像の面積が最大となる倍率で重畳可能な前記重畳領域として決定し、
前記重畳部は、前記重畳用画像を前記面積が最大となる倍率で前記決定された重畳領域に重畳する画像処理装置。
An image selection unit that selects an image to be superimposed from a plurality of images in accordance with an image selection instruction;
An area specifying unit for specifying an attention area noted by the user from among the images to be superimposed selected by the image selection unit based on the image selection instruction or the input information about the attention object;
Among the images to be superimposed selected by the image selection unit, at least the shape and size of the non-target region excluding the region of interest specified by the region specifying unit, and the image to be superimposed selected by the image selection unit Based on the shape and size of the image for superimposition stored in advance in the storage unit as an image to be superimposed on, a superimposition region that determines a superimposition region in which the superimposition image can be superimposed among the non-attention regions A decision unit;
A superimposing unit that superimposes the superimposing image on a superimposing region determined by the superimposing region determining unit among the superimposition target images;
I have a,
The superimposing region determination unit has the same maximum aspect ratio as that of the superimposing image based on the shape and size of the non-attention region and the shape and size of the superimposing image and does not deviate from the non-attention region. An area is obtained, and the obtained area is determined as the overlapping area where the image for superimposition can be superimposed at a magnification that maximizes the area of the image for superimposition,
The superimposing unit superimposes the superimposing image on the determined superimposing region at a magnification that maximizes the area .
画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択する画像選択部と、
前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記画像選択部によって選択された重畳対象の画像の中から利用者によって注目されない非注目領域を特定する領域特定部と、
前記画像選択部によって選択された重畳対象の画像のうち前記領域特定部によって特定された非注目領域の形状及び大きさと、前記画像選択部によって選択された重畳対象の画像に重畳される画像として予め記憶部に記憶されている重畳用画像の形状及び大きさとに基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する重畳領域決定部と、
前記重畳対象の画像のうち前記重畳領域決定部によって決定された重畳領域に前記重畳用画像を重畳する重畳部と、
を有し、
前記重畳領域決定部は、前記非注目領域の形状及び大きさと、前記重畳用画像の形状及び大きさとに基づいて、前記重畳用画像と縦横比が同一で前記非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、前記重畳用画像を前記重畳用画像の面積が最大となる倍率で重畳可能な前記重畳領域として決定し、
前記重畳部は、前記重畳用画像を前記面積が最大となる倍率で前記決定された重畳領域に重畳する画像処理装置。
An image selection unit that selects an image to be superimposed from a plurality of images in accordance with an image selection instruction;
An area specifying unit for specifying a non-attention area not noticed by a user from among the images to be superimposed selected by the image selection unit based on the image selection instruction or the information about the input target of interest;
Among the images to be superimposed selected by the image selection unit, the shape and size of the non-attention area specified by the region specifying unit, and an image to be superimposed on the image to be superimposed selected by the image selection unit in advance Based on the shape and size of the superimposition image stored in the storage unit, a superimposition region determination unit that determines a superimposition region in which the superimposition image can be superimposed among the non-attention regions;
A superimposing unit that superimposes the superimposing image on a superimposing region determined by the superimposing region determining unit among the superimposition target images;
I have a,
The superimposing region determination unit has the same maximum aspect ratio as that of the superimposing image based on the shape and size of the non-attention region and the shape and size of the superimposing image and does not deviate from the non-attention region. An area is obtained, and the obtained area is determined as the overlapping area where the image for superimposition can be superimposed at a magnification that maximizes the area of the image for superimposition,
The superimposing unit superimposes the superimposing image on the determined superimposing region at a magnification that maximizes the area .
前記重畳領域決定部は、前記重畳対象の画像に重畳される画像として、各々優先度が予め定められた複数の重畳用画像が予め前記記憶部に記憶されている場合に、重畳用画像の優先度が高くなるに従って面積がより大きな領域が重畳用画像として割り当てられるように、前記複数の重畳用画像の各々について重畳領域を決定し、The superimposing region determination unit prioritizes superimposing images when a plurality of superimposing images each having a predetermined priority are stored in the storage unit in advance as images to be superimposed on the superimposition target image. Determining a superposition region for each of the plurality of superposition images so that a region having a larger area is allocated as the superposition image as the degree increases.
前記重畳部は、前記決定した複数の重畳領域の各々に、前記複数の重畳用画像の各々を重畳するThe superimposing unit superimposes each of the plurality of superimposing images on each of the determined plurality of overlapping regions.
請求項1又は請求項2記載の画像処理装置。The image processing apparatus according to claim 1.
前記重畳領域決定部は、前記非注目領域が優先度の異なる複数の部分領域を含んで構成されている場合に、部分領域毎に前記重畳用画像を重畳することが可能な領域を重畳領域候補として抽出し、該重畳領域候補から予め定められた条件に応じて選択するか又は指示に応じて選択した重畳領域候補を、前記重畳領域として決定するThe superimposing region determination unit, when the non-attention region is configured to include a plurality of partial regions having different priorities, selects a region where the superimposing image can be superimposed for each partial region as a superimposing region candidate And selecting a superimposition region candidate selected according to a predetermined condition from the superimposition region candidates or according to an instruction as the superimposition region
請求項1〜請求項3のいずれか1項記載の画像処理装置。The image processing apparatus according to claim 1.
前記重畳領域決定部は、前記重畳用画像の傾き及び縦横比の少なくとも一方と、前記重畳用画像の倍率とを変更して重畳することにより前記重畳用画像の面積が最大となる領域を前記重畳領域として決定し、The superimposing region determining unit is configured to superimpose a region in which the area of the superimposing image is maximized by superimposing the superimposing image by changing at least one of an inclination and an aspect ratio of the superimposing image and a magnification of the superimposing image. Determined as an area,
前記重畳部は、前記重畳用画像の傾き及び縦横比の少なくとも一方と、前記重畳用画像の倍率と、を前記最大の面積となる値に変更した状態で、前記決定された重畳領域に重畳するThe superimposing unit superimposes on the determined superimposing region in a state where at least one of the inclination and aspect ratio of the superimposing image and the magnification of the superimposing image are changed to a value that is the maximum area.
請求項1〜請求項4のいずれか1項記載の画像処理装置。The image processing apparatus according to claim 1.
前記重畳領域決定部は、前記重畳用画像の傾き及び縦横比の少なくとも一方が予め設定された条件を満たすように前記重畳領域を決定するThe superimposing region determining unit determines the superimposing region so that at least one of a tilt and an aspect ratio of the superimposing image satisfies a preset condition.
請求項5記載の画像処理装置。The image processing apparatus according to claim 5.
画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択する画像選択ステップと、An image selection step of selecting an image to be superimposed from a plurality of images in response to an image selection instruction;
前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記画像選択ステップによって選択された重畳対象の画像の中から利用者によって注目される注目領域を特定する領域特定ステップと、An area specifying step for specifying an attention area noted by a user from among the images to be superimposed selected by the image selection step based on the image selection instruction or input information about the attention object;
前記画像選択ステップによって選択された重畳対象の画像のうち、少なくとも前記領域特定ステップによって特定された注目領域を除外した非注目領域の形状及び大きさと、前記画像選択ステップによって選択された重畳対象の画像に重畳される画像として予め記憶部に記憶されている重畳用画像の形状及び大きさとに基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する重畳領域決定ステップと、Of the images to be superimposed selected by the image selection step, at least the shape and size of the non-target region excluding the region of interest specified by the region specifying step, and the image to be superimposed selected by the image selection step Based on the shape and size of the image for superimposition stored in advance in the storage unit as an image to be superimposed on, a superimposition region that determines a superimposition region in which the superimposition image can be superimposed among the non-attention regions A decision step;
前記重畳対象の画像のうち前記重畳領域決定ステップによって決定された重畳領域に前記重畳用画像を重畳する重畳ステップと、A superimposing step of superimposing the superimposing image on the superimposing region determined by the superimposing region determining step in the superimposition target image;
を有し、Have
前記重畳領域決定ステップは、前記非注目領域の形状及び大きさと、前記重畳用画像の形状及び大きさとに基づいて、前記重畳用画像と縦横比が同一で前記非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、前記重畳用画像を前記重畳用画像の面積が最大となる倍率で重畳可能な前記重畳領域として決定し、The superimposing region determining step is based on the shape and size of the non-target region and the shape and size of the superimposing image, and has the maximum area that has the same aspect ratio as the superimposing image and does not deviate from the non-target region. An area is obtained, and the obtained area is determined as the overlapping area where the image for superimposition can be superimposed at a magnification that maximizes the area of the image for superimposition,
前記重畳ステップは、前記重畳用画像を前記面積が最大となる倍率で前記決定された重畳領域に重畳する画像処理方法。The superimposing step is an image processing method in which the superimposing image is superimposed on the determined superimposing region at a magnification that maximizes the area.
画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択する画像選択ステップと、An image selection step of selecting an image to be superimposed from a plurality of images in response to an image selection instruction;
前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記画像選択ステップによって選択された重畳対象の画像の中から利用者によって注目されない非注目領域を特定する領域特定ステップと、An area specifying step for specifying a non-attention area not noticed by the user from among the images to be superimposed selected by the image selection step based on the image selection instruction or the information about the inputted attention object;
前記画像選択ステップによって選択された重畳対象の画像のうち前記領域特定ステップによって特定された非注目領域の形状及び大きさと、前記画像選択ステップによって選択された重畳対象の画像に重畳される画像として予め記憶部に記憶されている重畳用画像の形状及び大きさとに基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する重畳領域決定ステップと、Among the images to be superimposed selected by the image selection step, the shape and size of the non-attention area specified by the region specifying step and the image to be superimposed on the image to be superimposed selected by the image selection step A superimposing region determining step for determining a superimposing region in which the superimposing image can be superimposed out of the non-attention regions based on the shape and size of the superimposing image stored in the storage unit;
前記重畳対象の画像のうち前記重畳領域決定ステップによって決定された重畳領域に前記重畳用画像を重畳する重畳ステップと、A superimposing step of superimposing the superimposing image on the superimposing region determined by the superimposing region determining step in the superimposition target image;
を有し、Have
前記重畳領域決定ステップは、前記非注目領域の形状及び大きさと、前記重畳用画像の形状及び大きさとに基づいて、前記重畳用画像と縦横比が同一で前記非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、前記重畳用画像を前記重畳用画像の面積が最大となる倍率で重畳可能な前記重畳領域として決定し、The superimposing region determining step is based on the shape and size of the non-target region and the shape and size of the superimposing image, and has the maximum area that has the same aspect ratio as the superimposing image and does not deviate from the non-target region. An area is obtained, and the obtained area is determined as the overlapping area where the image for superimposition can be superimposed at a magnification that maximizes the area of the image for superimposition,
前記重畳ステップは、前記重畳用画像を前記面積が最大となる倍率で前記決定された重畳領域に重畳する画像処理方法。The superimposing step is an image processing method in which the superimposing image is superimposed on the determined superimposing region at a magnification that maximizes the area.
コンピュータに、On the computer,
画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択する画像選択ステップと、An image selection step of selecting an image to be superimposed from a plurality of images in response to an image selection instruction;
前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記画像選択ステップによって選択された重畳対象の画像の中から利用者によって注目される注目領域を特定する領域特定ステップと、An area specifying step for specifying an attention area noted by a user from among the images to be superimposed selected by the image selection step based on the image selection instruction or input information about the attention object;
前記画像選択ステップによって選択された重畳対象の画像のうち、少なくとも前記領域特定ステップによって特定された注目領域を除外した非注目領域の形状及び大きさと、前記画像選択ステップによって選択された重畳対象の画像に重畳される画像として予め記憶部に記憶されている重畳用画像の形状及び大きさとに基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する重畳領域決定ステップと、Of the images to be superimposed selected by the image selection step, at least the shape and size of the non-target region excluding the region of interest specified by the region specifying step, and the image to be superimposed selected by the image selection step Based on the shape and size of the image for superimposition stored in advance in the storage unit as an image to be superimposed on, a superimposition region that determines a superimposition region in which the superimposition image can be superimposed among the non-attention regions A decision step;
前記重畳対象の画像のうち前記重畳領域決定ステップによって決定された重畳領域に前記重畳用画像を重畳する重畳ステップと、A superimposing step of superimposing the superimposing image on the superimposing region determined by the superimposing region determining step in the superimposition target image;
を有し、Have
前記重畳領域決定ステップは、前記非注目領域の形状及び大きさと、前記重畳用画像の形状及び大きさとに基づいて、前記重畳用画像と縦横比が同一で前記非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、前記重畳用画像を前記重畳用画像の面積が最大となる倍率で重畳可能な前記重畳領域として決定し、The superimposing region determining step is based on the shape and size of the non-target region and the shape and size of the superimposing image, and has the maximum area that has the same aspect ratio as the superimposing image and does not deviate from the non-target region. An area is obtained, and the obtained area is determined as the overlapping area where the image for superimposition can be superimposed at a magnification that maximizes the area of the image for superimposition,
前記重畳ステップは、前記重畳用画像を前記面積が最大となる倍率で前記決定された重畳領域に重畳する処理を実行させるための画像処理プログラム。The superimposing step is an image processing program for executing a process of superimposing the superimposing image on the determined superimposing region at a magnification that maximizes the area.
コンピュータに、On the computer,
画像選択指示に応じて、複数の画像の中から重畳対象の画像を選択する画像選択ステップと、An image selection step of selecting an image to be superimposed from a plurality of images in response to an image selection instruction;
前記画像選択指示又は入力された注目対象に関する情報に基づいて、前記画像選択ステップによって選択された重畳対象の画像の中から利用者によって注目されない非注目領域を特定する領域特定ステップと、An area specifying step for specifying a non-attention area not noticed by the user from among the images to be superimposed selected by the image selection step based on the image selection instruction or the information about the inputted attention object;
前記画像選択ステップによって選択された重畳対象の画像のうち前記領域特定ステップによって特定された非注目領域の形状及び大きさと、前記画像選択ステップによって選択された重畳対象の画像に重畳される画像として予め記憶部に記憶されている重畳用画像の形状及び大きさとに基づいて、前記非注目領域のうち前記重畳用画像を重畳することが可能な重畳領域を決定する重畳領域決定ステップと、Among the images to be superimposed selected by the image selection step, the shape and size of the non-attention area specified by the region specifying step and the image to be superimposed on the image to be superimposed selected by the image selection step A superimposing region determining step for determining a superimposing region in which the superimposing image can be superimposed out of the non-attention regions based on the shape and size of the superimposing image stored in the storage unit;
前記重畳対象の画像のうち前記重畳領域決定ステップによって決定された重畳領域に前記重畳用画像を重畳する重畳ステップと、A superimposing step of superimposing the superimposing image on the superimposing region determined by the superimposing region determining step in the superimposition target image;
を有し、Have
前記重畳領域決定ステップは、前記非注目領域の形状及び大きさと、前記重畳用画像の形状及び大きさとに基づいて、前記重畳用画像と縦横比が同一で前記非注目領域から逸脱しない最大面積の領域を求め、求めた領域を、前記重畳用画像を前記重畳用画像の面積が最大となる倍率で重畳可能な前記重畳領域として決定し、The superimposing region determining step is based on the shape and size of the non-target region and the shape and size of the superimposing image, and has the maximum area that has the same aspect ratio as the superimposing image and does not deviate from the non-target region. An area is obtained, and the obtained area is determined as the overlapping area where the image for superimposition can be superimposed at a magnification that maximizes the area of the image for superimposition,
前記重畳ステップは、前記重畳用画像を前記面積が最大となる倍率で前記決定された重畳領域に重畳する処理を実行させるための画像処理プログラム。The superimposing step is an image processing program for executing a process of superimposing the superimposing image on the determined superimposing region at a magnification that maximizes the area.
JP2012027811A 2012-02-10 2012-02-10 Image processing apparatus, image processing method, and image processing program Active JP5867133B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012027811A JP5867133B2 (en) 2012-02-10 2012-02-10 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012027811A JP5867133B2 (en) 2012-02-10 2012-02-10 Image processing apparatus, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2013164753A JP2013164753A (en) 2013-08-22
JP5867133B2 true JP5867133B2 (en) 2016-02-24

Family

ID=49176060

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012027811A Active JP5867133B2 (en) 2012-02-10 2012-02-10 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP5867133B2 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8988609B2 (en) 2007-03-22 2015-03-24 Sony Computer Entertainment America Llc Scheme for determining the locations and timing of advertisements and other insertions in media
JP6161556B2 (en) * 2013-03-22 2017-07-12 株式会社Nttドコモ Notification information display device and notification information display method
US9955103B2 (en) 2013-07-26 2018-04-24 Panasonic Intellectual Property Management Co., Ltd. Video receiving device, appended information display method, and appended information display system
WO2015015712A1 (en) 2013-07-30 2015-02-05 パナソニックIpマネジメント株式会社 Video reception device, added-information display method, and added-information display system
EP3043571A4 (en) 2013-09-04 2016-08-17 Panasonic Ip Man Co Ltd Video reception device, video recognition method, and additional information display system
WO2015033500A1 (en) 2013-09-04 2015-03-12 パナソニックIpマネジメント株式会社 Video reception device, video recognition method, and additional information display system
EP3745712B1 (en) * 2014-02-07 2024-03-06 Sony Interactive Entertainment LLC Scheme for determining the locations and timing of advertisements and other insertions in media
CN105144735A (en) 2014-03-26 2015-12-09 松下知识产权经营株式会社 Video receiving device, video recognition method, and supplementary information display system
WO2015145491A1 (en) 2014-03-26 2015-10-01 パナソニックIpマネジメント株式会社 Video receiving device, video recognition method, and supplementary information display system
WO2016009637A1 (en) 2014-07-17 2016-01-21 パナソニックIpマネジメント株式会社 Recognition data generation device, image recognition device, and recognition data generation method
US10200765B2 (en) 2014-08-21 2019-02-05 Panasonic Intellectual Property Management Co., Ltd. Content identification apparatus and content identification method
CN106233742B (en) * 2014-08-26 2019-07-09 松下知识产权经营株式会社 Display control unit, display control method and recording medium
JP6877377B2 (en) * 2018-03-06 2021-05-26 株式会社ドワンゴ Content distribution server, content distribution method and content distribution program
JP6591000B1 (en) * 2018-06-20 2019-10-16 ヤフー株式会社 Image processing apparatus, image processing method, and image processing program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001188525A (en) * 1999-12-28 2001-07-10 Toshiba Corp Image display device
JP2002297615A (en) * 2001-03-30 2002-10-11 Justec:Kk Method and system for map information provision, and computer-readable program
JP5465620B2 (en) * 2010-06-25 2014-04-09 Kddi株式会社 Video output apparatus, program and method for determining additional information area to be superimposed on video content

Also Published As

Publication number Publication date
JP2013164753A (en) 2013-08-22

Similar Documents

Publication Publication Date Title
JP5867133B2 (en) Image processing apparatus, image processing method, and image processing program
CN107123084B (en) Optimizing image cropping
JP6474769B2 (en) Presentation of translation of text drawn in the image
JP4341408B2 (en) Image display method and apparatus
US8264584B2 (en) Image capturing apparatus, additional information providing server, and additional information filtering system
EP2444918B1 (en) Apparatus and method for providing augmented reality user interface
US9460160B1 (en) System and method for selecting user generated content related to a point of interest
JP5747673B2 (en) Information processing apparatus, information processing method, and program
JP5739874B2 (en) Search system and method based on orientation
US20110122153A1 (en) Information processing apparatus, information processing method, and program
CN106797547B (en) Operating system support for location cards
US20090002764A1 (en) Arranging graphic objects on a page with relative area based control
JP5525757B2 (en) Image processing apparatus, electronic device, and program
JP2007183949A (en) Method and apparatus for providing panoramic view with improved image matching speed and blending method
KR101042910B1 (en) Method, system and computer-readable recording medium for providing service using electronic map
JP5467177B2 (en) INFORMATION PROVIDING DEVICE, INFORMATION PROVIDING METHOD, INFORMATION PROVIDING PROCESSING PROGRAM, RECORDING MEDIUM CONTAINING INFORMATION PROVIDING PROCESSING PROGRAM, AND INFORMATION PROVIDING SYSTEM
JP5054234B2 (en) System and method for displaying search results based on density
US8842134B2 (en) Method, system, and computer-readable recording medium for providing information on an object using viewing frustums
US9811539B2 (en) Hierarchical spatial clustering of photographs
KR101796668B1 (en) Digital telescope and control method thereof
JP5446799B2 (en) Information processing apparatus, information processing method, and program
KR20200051295A (en) Method and computer program for providing map including real estate sales information
JP5553483B2 (en) Optimal oblique photograph providing method, optimum oblique photograph providing system, and optimum oblique photograph providing apparatus
JP5214043B2 (en) Image processing apparatus and program
EP2620748A2 (en) Device for providing or generating intertwined information related to a space of interest.

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141007

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150721

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150804

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151005

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151221

R150 Certificate of patent or registration of utility model

Ref document number: 5867133

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150