JP2010244330A - Image performance program and image performance device - Google Patents

Image performance program and image performance device Download PDF

Info

Publication number
JP2010244330A
JP2010244330A JP2009092910A JP2009092910A JP2010244330A JP 2010244330 A JP2010244330 A JP 2010244330A JP 2009092910 A JP2009092910 A JP 2009092910A JP 2009092910 A JP2009092910 A JP 2009092910A JP 2010244330 A JP2010244330 A JP 2010244330A
Authority
JP
Japan
Prior art keywords
image
character
character string
procedure
determined
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.)
Pending
Application number
JP2009092910A
Other languages
Japanese (ja)
Inventor
Yuko Hattori
佑子 服部
Keiichi Nitta
啓一 新田
Takashi Nishi
岳志 西
Koichi Sakamoto
浩一 坂本
Hideo Hojuyama
秀雄 宝珠山
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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2009092910A priority Critical patent/JP2010244330A/en
Publication of JP2010244330A publication Critical patent/JP2010244330A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To generate an image from for which a user does not have a sense of incongruity. <P>SOLUTION: This image performance program is provided to make a computer 6a execute an image analysis procedure 6c for extracting features by analyzing an image; a character expression procedure 6e for determining the expression configurations of a character string to be overwritten on the image according to the features of the image; and an image performance procedure 6d for overwriting the character string, in a determined expression configurations on the image. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像演出プログラムおよび画像演出装置に関する。   The present invention relates to an image effect program and an image effect device.

画像の特徴を解析して最適な俳句を生成する俳句生成システムが知られている(例えば特許文献1参照)。   A haiku generation system that analyzes the characteristics of an image and generates an optimal haiku is known (see, for example, Patent Document 1).

特開2004−133721号公報JP 2004-133721 A

しかしながら、画像に文字を上書きする際に、文字の大きさ、色、書体などの文字の表現形態が画像の特徴に合っていないと、使用者が違和感を感じるという問題がある。   However, when a character is overwritten on an image, there is a problem that the user feels uncomfortable if the character expression form such as the character size, color, and typeface does not match the characteristics of the image.

(1) 請求項1の発明は、画像を解析して特徴を抽出する画像解析手順と、画像に上書きする文字列の表現形態を、画像解析手順で抽出された画像の特徴に応じて決定する文字表現手順と、文字表現手順で決定された表現形態の文字列を画像に上書きする画像演出手順とをコンピューターに実行させる画像演出プログラムである。
(2) 請求項2の発明は、請求項1に記載の画像演出プログラムにおいて、画像の特徴に応じて画像上の文字列を上書きする位置を決定する位置決定手順をさらに有し、文字表現手順では、画像の中の位置決定手順で決定された上書き位置の画像の特徴に応じて文字列の表現形態を決定する。
(3) 請求項3の発明は、請求項1または請求項2に記載の画像演出プログラムにおいて、画像解析手順では、画像全体のエッジの向きを検出するとともに、画像のアスペクト比を検出し、文字表現手順では、画像全体のエッジの向きと画像のアスペクト比に応じて文字列の配列方向を決定する。
(4) 請求項4の発明は、請求項1〜3のいずれか一項に記載の画像演出プログラムにおいて、画像解析手順では画像の輝度を検出し、文字表現手順では、画像の輝度に応じて文字列の色を決定する。
(5) 請求項5の発明は、請求項1〜4のいずれか一項に記載の画像演出プログラムにおいて、画像解析手順では画像の色を検出し、文字表現手順では、画像の色に応じて文字列の色または文字飾りを決定する。
(6) 請求項6の発明は、画像を取得する画像取得回路と、文字列を取得する文字取得回路と、請求項1〜5のいずれか一項に記載の画像演出プログラムを実行するコンピューターと、文字列が上書きされた画像を表示する表示装置とを備える画像演出装置である。
(1) The invention of claim 1 determines an image analysis procedure for extracting an image by analyzing an image and a character string expression form overwritten on the image according to the feature of the image extracted by the image analysis procedure. An image effect program for causing a computer to execute a character expression procedure and an image effect procedure for overwriting an image with a character string in an expression form determined by the character expression procedure.
(2) The invention of claim 2 further includes a position determination procedure for determining a position to overwrite a character string on the image in accordance with the feature of the image in the image effect program according to claim 1, and a character expression procedure Then, the expression form of the character string is determined according to the feature of the image at the overwrite position determined by the position determination procedure in the image.
(3) According to the invention of claim 3, in the image effect program according to claim 1 or 2, in the image analysis procedure, the edge direction of the entire image is detected, the aspect ratio of the image is detected, and the character is In the expression procedure, the arrangement direction of the character strings is determined according to the edge direction of the entire image and the aspect ratio of the image.
(4) The invention of claim 4 is the image effect program according to any one of claims 1 to 3, wherein the luminance of the image is detected in the image analysis procedure, and according to the luminance of the image in the character expression procedure. Determine the color of the string.
(5) According to the invention of claim 5, in the image effect program according to any one of claims 1 to 4, the color of the image is detected in the image analysis procedure, and according to the color of the image in the character expression procedure. Determine the color or decoration of the text.
(6) The invention of claim 6 is an image acquisition circuit for acquiring an image, a character acquisition circuit for acquiring a character string, and a computer that executes the image effect program according to any one of claims 1 to 5; And an image effect device including a display device for displaying an image in which a character string is overwritten.

本発明によれば、画像の特徴に合った表現形態の文字を画像に上書きすることができ、使用者にとって違和感のない画像を生成することができる。   According to the present invention, it is possible to overwrite an image with characters in an expression form that matches the characteristics of the image, and it is possible to generate an image that does not feel uncomfortable for the user.

一実施の形態の画像演出装置の構成を示す図The figure which shows the structure of the image production apparatus of one Embodiment. 一実施の形態の画像演出プログラムを示すフローチャートThe flowchart which shows the image production program of one embodiment 一実施の形態の画像演出装置により年賀状を作成した一例を示す図The figure which shows an example which created the New Year's card with the image production apparatus of one embodiment 一実施の形態の画像演出装置により年賀状を作成した他の一例を示す図The figure which shows another example which created the New Year's card with the image production apparatus of one embodiment 一実施の形態の画像演出装置により年賀状を作成した他の一例を示す図The figure which shows another example which created the New Year's card with the image production apparatus of one embodiment 一実施の形態の画像演出装置により年賀状を作成した他の一例を示す図The figure which shows another example which created the New Year's card with the image production apparatus of one embodiment

図1は一実施の形態の画像演出装置の構成を示す図である。記憶装置1は複数の画像データを記憶するハードディスクなどの記憶装置である。記憶装置1はメモリカードなどの記録媒体1aを挿入するスロットを備え、記録媒体1aから画像データを読み込んで記憶する。また、画像入力回路2は外部のデジタルカメラ、ビデオカメラ、スキャナーなどから画像データを入力するための回路であり、入力した画像データは記憶装置1に記憶される。さらに、通信回路3はインターネットを介して画像データを入力したり、演出結果の画像をインターネットを介して出力するための回路であり、入力した画像データは記憶装置1に記憶される。   FIG. 1 is a diagram illustrating a configuration of an image effect device according to an embodiment. The storage device 1 is a storage device such as a hard disk that stores a plurality of image data. The storage device 1 includes a slot for inserting a recording medium 1a such as a memory card, and reads and stores image data from the recording medium 1a. The image input circuit 2 is a circuit for inputting image data from an external digital camera, video camera, scanner, or the like, and the input image data is stored in the storage device 1. Further, the communication circuit 3 is a circuit for inputting image data via the Internet or outputting an image of the effect result via the Internet, and the inputted image data is stored in the storage device 1.

この明細書において、画像データは静止画像データの他に動画像を構成するフレーム画像データを含み、画像データには画像自体のデータの他に、撮影した年月日時刻、撮影した場所(GPS情報)、撮像装置の撮影条件(焦点距離やF値など)、オートフォーカス情報(画像中の主要被写体に関する情報や被写界深度情報など)のデータが含まれる。   In this specification, image data includes frame image data constituting a moving image in addition to still image data. In addition to data of the image itself, the image data includes the date, time of shooting, and location (GPS information). ), Imaging conditions (focal length, F number, etc.) of the imaging apparatus, and autofocus information (information on main subjects in the image, depth of field information, etc.).

マイクロフォン4は画像演出装置の使用者の音声を集音するマイクであり、音声により画像演出装置の操作を可能にするものである。キーボード/マウス5は、使用者が画像に重ねて表示する文字を入力したり、記憶装置1に記憶されている画像または画像入力回路2や通信回路3を介して入力した画像の中から、文字を上書きして演出する画像を選択したり、その他、画像演出装置のあらゆる種操作を行うための操作部材である。   The microphone 4 is a microphone that collects the voice of the user of the image rendering device, and enables the operation of the image rendering device by voice. The keyboard / mouse 5 is used to input a character to be displayed over the image by the user, or from an image stored in the storage device 1 or an image input via the image input circuit 2 or the communication circuit 3. This is an operation member for selecting an image to be rendered by overwriting, and for performing various other operations of the image rendering device.

コンピューター6はCPU6aやメモリ6bなどのハードウエアを備えるとともに、CPU6aのソフトウエア形態により構成される画像解析部6c、画像処理部6d、文字処理部6eなどを備えている。CPU6aは、後述する一実施の形態の画像演出プログラムを実行し、画像に上書きする文字に演出を施すとともに必要に応じて画像にも演出を施す。メモリ6bは画像データや文字データなどの一時記憶メモリである。   The computer 6 includes hardware such as a CPU 6a and a memory 6b, and also includes an image analysis unit 6c, an image processing unit 6d, a character processing unit 6e, and the like configured by a software form of the CPU 6a. The CPU 6a executes an image effect program according to an embodiment to be described later, and effects the characters overwritten on the image and effects the image as necessary. The memory 6b is a temporary storage memory for image data and character data.

画像解析部6cは、演出対象の画像を解析して画像の特徴量を検出する。画像の特徴量には、撮影年月日時刻、撮影場所(GPS緯度経度情報)、撮影時の条件(撮像装置の各種設定値)、撮影シーン(イベント)、被写体の種類、大きさおよび構成、主要被写体(オートフォーカス情報)、被写体距離、画像全体および主要被写体の輝度、色相、彩度、明度、空間周波数、エッジの量および方向などが含まれる。画像処理部6dは、画像の一部にローパスフィルター処理を施したり、上書きする文字の内容に応じて画像をトリミングするなど、上書き文字に合った演出を画像に施す。   The image analysis unit 6c analyzes the effect target image and detects the feature amount of the image. The image feature amount includes the shooting date and time, shooting location (GPS latitude / longitude information), shooting conditions (imaging device settings), shooting scene (event), subject type, size and configuration, Main subject (autofocus information), subject distance, overall image and main subject brightness, hue, saturation, brightness, spatial frequency, edge amount and direction, and the like are included. The image processing unit 6d performs an effect suitable for the overwritten character, such as performing a low pass filter process on a part of the image or trimming the image according to the content of the overwritten character.

文字処理部6eは、画像に上書きする文字の表現形態を、画像の特徴に合った表現形態とする。この明細書において、文字の表現形態とは、文字の書体(楷書体、草書体、ゴシック体などのフォントと、斜体、太字など)、大きさ(文字の高さなど)、間隔、行数、一行/一列の文字数、縦書き/横書き、段落の幅、色相、彩度、明度、文字飾り(縁取り、エッジ強調、影付けなど)など、文字表現のあらゆる形態を云う。   The character processing unit 6e sets the expression form of characters to be overwritten on the image to an expression form that matches the characteristics of the image. In this specification, the expression form of a character is the typeface of the character (font, font, cursive, gothic, etc., italic, bold, etc.), size (character height, etc.), spacing, number of lines, This refers to all forms of character representation, such as the number of characters per line / column, vertical writing / horizontal writing, paragraph width, hue, saturation, brightness, character decoration (such as bordering, edge emphasis, shadowing, etc.).

文字処理部6eはまた、必要に応じて文字または文字列の内容の解析を行う。文字または文字列がメモリ6bに記憶されていた中から使用者により選択されたものである場合には、それらの文字または文字列の内容、すなわち挨拶、お悔やみ、近況報告、俳句などは認識されている。一方、文字または文字列が使用者によりキーボード/マウス5から入力されたもの、またはマイクロフォン4から音声入力されたものである場合には、文字または文字列を単語に分解し、予めメモリ6bに記憶されている辞書の単語と照合して内容を把握する。   The character processing unit 6e also analyzes the contents of characters or character strings as necessary. If the character or character string is selected by the user from among those stored in the memory 6b, the contents of those characters or character strings, that is, greetings, condolences, recent reports, haikus, etc. are recognized. Yes. On the other hand, when the character or character string is input from the keyboard / mouse 5 by the user or input from the microphone 4, the character or character string is decomposed into words and stored in the memory 6b in advance. The contents are checked against words in the dictionary.

ディスプレイ7は画像および文字を表示するためのカラーLCDである。スピーカー8は使用方法および操作の音声ガイダンスを放送したり、種々の情報や音楽を放送する。画像出力回路9は、文字が上書きされた演出結果の画像データをプリンターなどの外部機器へ出力するための回路である。   The display 7 is a color LCD for displaying images and characters. The speaker 8 broadcasts voice guidance on usage and operation, and broadcasts various information and music. The image output circuit 9 is a circuit for outputting image data of an effect result in which characters are overwritten to an external device such as a printer.

図2は一実施の形態の画像演出プログラムを示すフローチャートである。ここでは、画像に文字を上書きして年賀状を作成する場合に、上書きする文字に対して画像に応じた演出を施すとともに、必要に応じて画像に対しても文字に応じて演出を施す例を説明する。図1に示す一実施の形態の画像演出装置の電源を投入し、ディスプレイ7に表示されたメニュー画面の中からキーボード/マウス5により画像演出モードを選択すると、コンピューター6のCPU6aは図2に示す画像演出プログラムの実行を開始する。   FIG. 2 is a flowchart showing an image effect program according to an embodiment. Here, when creating a New Year's card by overwriting characters on the image, an example of performing the rendering according to the image on the overwritten characters and also performing the rendering on the image according to the characters as necessary explain. When the image rendering apparatus according to the embodiment shown in FIG. 1 is turned on and the image rendering mode is selected from the menu screen displayed on the display 7 using the keyboard / mouse 5, the CPU 6a of the computer 6 is shown in FIG. The execution of the image production program is started.

ステップ(S)1において、ディスプレイ7に画像演出目的のメニュー画面を表示し、使用者に画像演出目的を選択させる。画像演出目的には、例えば年賀状を含む各種書状の作成、写真日記の作成、写真アルバムの作成、スライドショー用画像の作成などがある。これらの画像演出目的メニューの中から、使用者はキーボード/マウス5を操作して画像演出目的を選択するか、もしくは「年賀状作成」と発話して音声入力により画像演出目的を選択することができる。ここでは、年賀状の作成を選択したとして説明を続ける。   In step (S) 1, a menu screen for image effect purpose is displayed on the display 7, and the user is made to select the image effect purpose. Image production purposes include, for example, creation of various letters including New Year's cards, creation of a photo diary, creation of a photo album, creation of images for a slide show, and the like. From these image effect purpose menus, the user can operate the keyboard / mouse 5 to select an image effect purpose, or utter “Create New Year's card” and select an image effect purpose by voice input. . Here, the explanation is continued assuming that the creation of a New Year's card is selected.

画像演出目的として年賀状の作成が選択された後のステップ2において、使用者に演出対象の画像を選択させる。演出対象の画像は、記憶装置1に記憶されている画像の中から、使用者がキーボード/マウス5により撮影年月日や撮影場所などを指定して特定の画像グループに含まれる画像をディプレイ7にサムネイル表示させ、それらの中から使用者がキーボード/マウス5により所望の画像を選択する。あるいは、画像入力回路2を介してデジタルカメラ、ビデオカメラ、スキャナーなどから入力してもよいし、通信回路3を介してインターネットからダウンロードしてもよい。選択された画像のデータは記憶装置1から読み出され、あるいは画像入力回路2または通信回路3を介して入力され、コンピューター6のメモリ6bに一時記憶される。   In step 2 after the creation of a New Year's card is selected for the purpose of image production, the user is made to select an image to be produced. The images to be produced are displayed in the images stored in the storage device 1 by the user specifying the shooting date, shooting location, etc. with the keyboard / mouse 5. 7 are displayed as thumbnails, and the user selects a desired image by using the keyboard / mouse 5 from among them. Alternatively, it may be input from a digital camera, a video camera, a scanner, or the like via the image input circuit 2, or may be downloaded from the Internet via the communication circuit 3. The data of the selected image is read from the storage device 1 or input via the image input circuit 2 or the communication circuit 3 and temporarily stored in the memory 6b of the computer 6.

画像選択後のステップ3では、使用者に画像に上書きする文字を選択させる。ディスプレイ7に上述した画像演出目的に応じた定型句のメニュー画面を表示し、それらの定型句の中から使用者が任意の文字列を選択する。あるいは、使用者がキーボード/マウス5から手動で文字列を入力するか、マイクロフォン4を介して文字列を発話させて音声入力することができる。ここでは、年賀状の画像に上書きされる文字列として、「謹賀新年 今年もよろしくお願いします。2009年元旦」を選択した例を示す。なお、ここでは文字列の選択例を示すが、例えば「寿」というような1文字のみを選択して画像に上書きしたり、文字や文字列に記号や符号を付加して画像に上書きすることもできる。   In step 3 after image selection, the user is caused to select characters to be overwritten on the image. A menu screen of fixed phrases corresponding to the above-described image production purpose is displayed on the display 7, and the user selects an arbitrary character string from the fixed phrases. Alternatively, the user can manually input a character string from the keyboard / mouse 5, or utter the character string via the microphone 4 and input the voice. Here, an example is shown in which “Tsuruga New Year, thank you this year. New Year's Day 2009” is selected as the character string to be overwritten on the New Year's card image. In addition, although the example of selection of a character string is shown here, for example, only one character such as “Shou” is selected and overwritten on the image, or a character or character string is added with a symbol or a code to be overwritten on the image. You can also.

演出対象の画像と、その画像に上書きする文字列を選択した後のステップ4において、コンピューター6の文字処理部6eは画像上の文字列を上書きする位置を決定する。この一実施の形態では、基本的には画像全体のエッジの向きに基づいて文字列の向き、すなわち横書きか縦書きかが決定され、さらに横書きか縦書きかに応じて画像上の文字列の上書き位置が決定される。コンピューター6の画像解析部6cは、メモリ6bに記憶されている演出対象の画像を解析し、エッジ成分を抽出するとともにエッジの向き(横向きと縦向き)に応じてエッジ量を集計する。   In step 4 after selecting an effect target image and a character string to be overwritten on the image, the character processing unit 6e of the computer 6 determines a position to overwrite the character string on the image. In this embodiment, basically, the direction of the character string, that is, horizontal writing or vertical writing is determined based on the edge direction of the entire image, and further, the character string on the image is determined according to whether horizontal writing or vertical writing. The overwrite position is determined. The image analysis unit 6c of the computer 6 analyzes the effect target image stored in the memory 6b, extracts edge components, and totals the edge amounts according to the edge directions (horizontal and vertical).

具体的には、画像全体のエッジの向きが横向き、すなわち画像全体の横向きのエッジ量が縦向きのエッジ量よりも多い場合には、エッジの方向に合わせて文字列を横書きにするほうがより自然な感じを与える。さらに、文字列を横書きにした場合には、画像上の文字列の上書き位置を左上とするほうが自然な感じを与える。一方、画像全体のエッジの向きが縦向き、すなわち画像全体の縦向きのエッジ量が横向きのエッジ量よりも多い場合には、エッジの方向に合わせて文字列を縦書きとするほうがより自然な感じを与える。さらに、文字列を縦書きとした場合には、画像上の文字列の上書き位置を右上とするほうが自然な感じを与える。   Specifically, if the edge direction of the entire image is horizontal, that is, if the horizontal edge amount of the entire image is larger than the vertical edge amount, it is more natural to write the character string horizontally according to the edge direction. Give a feeling. Furthermore, when the character string is written horizontally, it is more natural to set the character string overwrite position on the image to the upper left. On the other hand, if the edge direction of the entire image is vertical, that is, if the vertical edge amount of the entire image is larger than the horizontal edge amount, it is more natural to write the character string vertically according to the edge direction. Give a feeling. Further, when the character string is vertically written, it is more natural to place the character string on the image at the upper right position.

なお、和文以外の文字列を画像に上書きする場合には、文字列の種類に応じた最適な文字列方向が決定される。例えば、英文の文字列を選択した場合には、基本的には横書きが選択される。また、文字や文字列以外の記号や符号を画像に上書きする場合には、記号や符号に応じた上書き方向が決定される。さらに、文字列の方向は横書きと縦書きに限定されない。コンピューター6の文字処理部6eは、画像演出目的や演出対象の画像、あるいは文字列の内容に応じて斜め右上がり方向や斜め左上がり方向など、横書きと縦書き以外の方向を選択することがある。文字列を斜め方向に配置する場合には、画像のエッジの方向に近い斜め方向が選択される。   When a character string other than Japanese text is overwritten on the image, an optimum character string direction corresponding to the type of character string is determined. For example, when an English character string is selected, horizontal writing is basically selected. In addition, when a symbol or code other than a character or character string is overwritten on an image, an overwriting direction corresponding to the symbol or code is determined. Furthermore, the direction of the character string is not limited to horizontal writing and vertical writing. The character processing unit 6e of the computer 6 may select a direction other than horizontal writing and vertical writing, such as a diagonally upward direction or a diagonally upward direction, depending on the purpose of the image production, the image to be produced, or the contents of the character string. . When the character string is arranged in an oblique direction, an oblique direction close to the edge direction of the image is selected.

ところで、画像全体のエッジの向きが横向きか縦向きかを判別しにくい場合、例えば横向きのエッジ量と縦向きのエッジ量とがほぼ等しいような場合には、演出対象の画像自体のアスペクト比、すなわちその画像が横長か縦長かに応じて文字の上書き位置が決定される。つまり、画像が横長の場合は、文字列を横書きにするほうがより自然な感じを与えるから、文字列が横書きとされ、上述したように画像上の文字列の上書き位置が左上とされる。一方、画像が縦長の場合には、文字列を縦書きとするほうがより自然な感じを与えるから、文字列が縦書きとされ、上述したように画像上の文字列の上書き位置が右上とされる。   By the way, when it is difficult to determine whether the edge direction of the entire image is horizontal or vertical, for example, when the horizontal edge amount and the vertical edge amount are substantially equal, the aspect ratio of the image to be produced itself, That is, the character overwriting position is determined according to whether the image is horizontally long or vertically long. That is, if the image is horizontally long, it is more natural to write the character string horizontally, so the character string is written horizontally, and the character string overwrite position on the image is set to the upper left as described above. On the other hand, when the image is vertically long, it is more natural to write the character string vertically, so the character string is written vertically, and the overwriting position of the character string on the image is set to the upper right as described above. The

このように、画像全体の横向きエッジ量と縦向きエッジ量に対して画像が横長か縦長かで重み付けを行って比較し、いずれかエッジ量が多い向きに文字列の配列方向(横書き、縦書き)を合わせ、文字列の配列方向にに応じて画像上の文字列の上書き位置が決定される。なお、画像上の文字列の上書き位置は右上と左上に限定されず、画像の四隅、上部、下部、左側、右側、中央部などにも上書き可能であり、また複数箇所に分散して上書きしてもよいが、いずれにしてもメモリ6bに予め記憶されている画像演出目的、演出対象画像の解析結果、文字列の内容などに応じたデフォルト位置にしたがって決定される。例えば、画像に俳句の文字列を上書きする目的の画像演出においては、画像の中央部、右上、左上などに文字列を五、七、五、七、七の5列に配列できるが、この目的の場合には画像の解析結果を重視して最終的な上書き位置が決定される。   In this way, the horizontal edge amount and the vertical edge amount of the entire image are weighted and compared depending on whether the image is horizontally long or vertically long, and the character string arrangement direction (horizontal writing, vertical writing) ) And the overwriting position of the character string on the image is determined according to the arrangement direction of the character string. The overwriting position of the character string on the image is not limited to the upper right and upper left, but can be overwritten at the four corners, upper, lower, left, right, center, etc. of the image, and overwritten in multiple places. In any case, it is determined according to the default position corresponding to the image effect purpose, the analysis result of the effect target image, the contents of the character string, etc. stored in advance in the memory 6b. For example, in the image production for the purpose of overwriting haiku character strings on the image, the character strings can be arranged in five rows of five, seven, five, seven, seven in the center, upper right, upper left, etc. of the image. In this case, the final overwrite position is determined with emphasis on the image analysis result.

画像上の文字列の上書き位置と文字列の向き(横書き、縦書き、斜め書きなど)を決定した後、ステップ5でコンピューター6の文字処理部6eは文字列の上書き領域を決定する。ここで、画像上に上書きする文字の表現形態の内、文字の大きさ、間隔、行数(横書き)/列数(縦書き)などについては、上述した画像演出目的に応じたデフォルト値が予めコンピューター6のメモリ6bに記憶されている。例えば、画像演出目的が年賀状の作成であって、上書き文字列が「謹賀新年 今年もよろしくお願いします。2009年元旦」である場合には、年賀状の寸法に応じて「謹賀新年」は大きな文字で間隔を広く取るとともに、「今年もよろしくお願いします。2009年元旦」は少し小さい文字で間隔を狭く取り、「謹賀新年」、「今年もよろしくお願いします。」、「2009年元旦」と3列に配置する、などのデフォルト値が記憶されている。   After determining the character string overwriting position on the image and the direction of the character string (horizontal writing, vertical writing, diagonal writing, etc.), in step 5, the character processing unit 6e of the computer 6 determines the character string overwriting area. Here, among the expression forms of characters to be overwritten on the image, the default values corresponding to the above-described image effect purposes are set in advance for the character size, spacing, the number of rows (horizontal writing) / number of columns (vertical writing), and the like. It is stored in the memory 6b of the computer 6. For example, if the purpose of the image production is the creation of a New Year's card and the overwrite string is “Tsuruga New Year, thank you again this year. New Year's Day 2009”, “Tsuruga New Year” In addition to wide intervals, “Please give me this year. New Year's Day 2009” is a little smaller and narrower, and “Tsuruga New Year”, “Thank you this year”, “New Year's Day 2009” Default values such as arranging in three columns are stored.

文字列の上書き領域を決定する際に、コンピューター6の文字処理部6eは、まず、文字の大きさ、間隔、行数/列数などをデフォルト値とした場合の、文字列の上書き領域の必要な大きさ(縦と横の寸法)を計算する。次に、この必要な大きさをステップ4で決定した文字列の上書き位置に確保できるか否かを判別する。文字列を画像上に上書きする場合に、文字列をはっきりと視認させるためには、文字列を上書きする領域が、主要被写体が存在しない領域、空間周波数が低い領域、明るさが所定値以下または所定値以上の領域、画像の色相や彩度が一様である領域が望ましい。   When determining the character string overwrite area, the character processing unit 6e of the computer 6 first needs the character string overwrite area when the character size, interval, number of lines / columns, etc. are set as default values. Large dimensions (vertical and horizontal dimensions). Next, it is determined whether or not the necessary size can be secured at the character string overwrite position determined in step 4. In order to make the character string clearly visible when the character string is overwritten on the image, the area where the character string is overwritten is an area where there is no main subject, an area where the spatial frequency is low, or the brightness is below a predetermined value or An area that is equal to or greater than a predetermined value and an area where the hue and saturation of the image are uniform are desirable.

コンピューター6のメモリ6bには、文字列を上書きする領域の画像の条件(色相、彩度、輝度、空間周波数など)が記憶されている。ステップ4で決定した上書き位置に上述した必要な大きさの上書き領域を設定したと仮定して、演出対象の画像上の仮設定領域内の画像の色相、彩度、輝度、空間周波数などを、メモリ6bに記憶されている上書き領域の画像の条件と比較し、演出対象の画像上の仮設定領域内の画像が上記条件を満たすか否かを判定する。条件を満たしている場合には、ステップ4で決定した上書き位置に上述した必要な大きさの上書き領域が設定される。   The memory 6b of the computer 6 stores image conditions (hue, saturation, luminance, spatial frequency, etc.) of an area in which a character string is overwritten. Assuming that the overwriting area of the necessary size described above is set at the overwriting position determined in step 4, the hue, saturation, luminance, spatial frequency, etc. of the image in the temporary setting area on the rendering target image are set as follows: It is compared with the image condition of the overwrite area stored in the memory 6b, and it is determined whether or not the image in the temporary setting area on the effect target image satisfies the above condition. If the condition is satisfied, the overwrite area having the necessary size described above is set at the overwrite position determined in step 4.

一方、仮設定領域の画像が上述した条件を満たさない場合には、コンピューター6の文字処理部6eは、まず、文字列の列数/行数や文字の大きさなどの変更を行い、文字列の上書き領域の必要な大きさを再計算し、ステップ4で決定した上書き位置に必要な大きさの上書き領域を仮設定する。その後、上述した手順で仮設定領域の画像が上述した条件を満たすか否かを判別する。なお、文字列の列数/行数や文字の大きさなどの変更は、上述した画像演出目的に応じて適切に行われる。例えば年賀状の作成においては、上記文字列を2列以上に配列し、文字の大きさを所定値以上にするなど、年賀状として予め設定された範囲内においてのみ、変更が許される。   On the other hand, when the image of the temporary setting area does not satisfy the above-described conditions, the character processing unit 6e of the computer 6 first changes the number of columns / lines of characters, the size of characters, etc. The necessary size of the overwriting area is recalculated, and the overwriting area having the necessary size is temporarily set at the overwriting position determined in step 4. Thereafter, it is determined whether or not the image of the temporary setting area satisfies the above-described condition by the above-described procedure. Note that changes in the number of columns / lines of character strings, the size of characters, and the like are appropriately performed in accordance with the above-described image production purpose. For example, in the creation of a New Year's card, the character string is arranged in two or more rows and the size of the character is set to a predetermined value or more, and the change is permitted only within a range set in advance as a New Year's card.

文字列の列数/行数や文字の大きさなどを変更しても、ステップ4で決定した上書き位置における仮設定領域の画像が上述した条件を満たさない場合には、コンピューター6の文字処理部6eは、ディスプレイ7およびスピーカー8により使用者に警告を行う。このとき、文字処理部6eは、いくつかの代替え案をディスプレイ7とスピーカー8により使用者に提示する。例えば、ステップ4で決定した上書き位置以外の上書き可能な領域を上記手法で再計算し、使用者に上書き位置の代替え案として提示する。   If the image of the temporary setting area at the overwrite position determined in step 4 does not satisfy the above-described condition even if the number of columns / lines of characters or the size of characters is changed, the character processing unit of the computer 6 6e warns the user by the display 7 and the speaker 8. At this time, the character processing unit 6e presents several alternatives to the user through the display 7 and the speaker 8. For example, an overwritable area other than the overwriting position determined in step 4 is recalculated by the above method, and presented to the user as an alternative to the overwriting position.

また、コンピューター6の画像解析部6cによる画像解析結果から、上書き位置における仮設定領域の画像が上述した条件を満たさない部分が、仮設定領域全体の例えば2割以下であると判別された場合には、画像処理部6dにより条件を満たさない部分の画像にローパスフィルター処理を施し、強制的に条件を満たすように画像処理を施し、処理結果の画像に文字列を上書きしてディスプレイ7に表示し、代替え案として使用者に提示する。   Further, when it is determined from the image analysis result by the image analysis unit 6c of the computer 6 that the portion of the image of the temporarily set area at the overwrite position that does not satisfy the above-described condition is, for example, 20% or less of the entire temporarily set area. The image processing unit 6d performs low-pass filter processing on the portion of the image that does not satisfy the condition, forcibly performs image processing so that the condition is satisfied, and overwrites the character string on the processing result image to display on the display 7. Present it to the user as an alternative.

さらに、上書き位置における仮設定領域の画像が上述した条件を満たさない場合に、その位置に文字列を上書きした画像をディスプレイ7に表示し、使用者が許容できるかどうかを問いかける。さらにまた、ステップ2で選択した画像以外の画像に変更することを提案するなど、代替え案が可能な限り提示される。   Further, when the image of the temporary setting area at the overwrite position does not satisfy the above-described conditions, an image in which the character string is overwritten at the position is displayed on the display 7 to ask whether the user can accept it. Furthermore, alternatives are presented as much as possible, such as proposing to change to an image other than the image selected in step 2.

なお、上述したように各画像にはオートフォーカス情報などから画像中の主要被写体に関する情報が記録されている。画像上に文字列を上書きする場合に、文字列が主要被写体に重ならないようにする必要がある。文字列の上書き位置および上書き領域をどのように設定しても、文字列が画像上の主要被写体にかかる場合には、少なくとも主要被写体の中心部、例えば花の中心部を避けて文字列が再配置される。   As described above, information about the main subject in the image is recorded in each image from autofocus information or the like. When overwriting a character string on an image, it is necessary to prevent the character string from overlapping the main subject. Regardless of how the character string overwrite position and area are set, if the character string hits the main subject on the image, the character string is re-appropriated by avoiding at least the center of the main subject, for example, the center of the flower. Be placed.

文字列の上書き位置と上書き領域が決定したらステップ6へ進み、コンピューター6の文字処理部6eは文字の色を決定する。まず、画像解析部6cにより画像上の文字列の上書き領域における平均輝度Yまたは平均明度Lを算出する。平均輝度Yが200を越える場合、または平均明度Lが80を越える場合には文字が黒色とされる。一方、平均輝度Yが80未満の場合、または平均明度Lが30未満の場合には文字が白色とされる。文字列の上書き領域における平均輝度Yが80以上かつ200以下の場合、または平均明度Lが30以上かつ80以下の場合には、画像全体の平均輝度Y0を算出する。画像全体の平均輝度Y0が128以上の場合は文字が黒色とされ、128未満の場合は文字が白色とされる。   When the overwriting position and overwriting area of the character string are determined, the process proceeds to step 6, and the character processing unit 6e of the computer 6 determines the color of the character. First, the average luminance Y or the average brightness L in the overwriting area of the character string on the image is calculated by the image analysis unit 6c. When the average luminance Y exceeds 200, or when the average brightness L exceeds 80, the characters are black. On the other hand, when the average luminance Y is less than 80, or when the average brightness L is less than 30, the characters are white. When the average brightness Y in the character string overwrite area is 80 or more and 200 or less, or when the average brightness L is 30 or more and 80 or less, the average brightness Y0 of the entire image is calculated. When the average luminance Y0 of the entire image is 128 or more, the character is black, and when it is less than 128, the character is white.

文字列の上書き領域の輝度分布が二極化している場合、つまりコントラストが高い場合には、無彩色の文字を上書きすると視認しにくくなるため、文字の色が有彩色とされる。この場合、画像演出目的や演出対象画像などに応じて文字の色の決定手順が予めコンピューター6のメモリ6bに記憶されており、それぞれの手順にしたがって決定される。年賀状を作成する場合には、「謹賀新年」の文字列を特に目立たせたいので、画像解析部6cにより画像全体の色相分布を解析し、文字の色は色相の重心の補色とされる。例えば画像全体が緑色に近い場合には、文字の色が補色の赤色とされる。また、写真日記を作成したり画像に俳句を上書きするような場合には、画像と文字との調和が重要な要素となるので、画像内に存在する色、特に主要被写体と同系色とするのが望ましい。例えば画像の主要被写体が赤い花であれば、文字の色が赤色もしくはそれに近い色とされる。   When the luminance distribution of the overwriting area of the character string is bipolar, that is, when the contrast is high, it becomes difficult to visually recognize if the achromatic character is overwritten, so the character color is chromatic. In this case, the procedure for determining the character color is stored in advance in the memory 6b of the computer 6 in accordance with the image production purpose, the production target image, and the like, and is decided according to each procedure. When creating a New Year's card, the character string “Tsuruga New Year” is particularly conspicuous, so the image analysis unit 6c analyzes the hue distribution of the entire image, and the color of the character is the complementary color of the center of gravity of the hue. For example, when the entire image is close to green, the character color is a complementary red color. In addition, when creating a photo diary or overwriting haiku on an image, the harmony between the image and the text is an important factor. Is desirable. For example, if the main subject of the image is a red flower, the color of the character is red or a color close thereto.

なお、画像解析部6cにより画像の主要被写体部分の色情報を解析し、主要被写体の彩度が高い場合は文字の彩度が低くされ、逆に主要被写体の彩度が低い場合は文字の彩度が高くされる。また、画像解析部6cにより画像全体の彩度を解析し、画像の彩度が高い場合は文字の彩度が低くされ、逆に画像の彩度が低い場合は文字の彩度が高くされる。さらに、画像解析部6cにより画像全体を解析した結果、画像が同系色の複数の被写体で構成されていると判別された場合には、文字の色が被写体と同系色とされ、画像がパステル調の複数の被写体で構成されていると判別された場合には、文字の色が無彩色とされる。   Note that the color information of the main subject portion of the image is analyzed by the image analysis unit 6c. When the main subject has high saturation, the character saturation is reduced, and conversely, when the main subject has low saturation, the character saturation is reduced. The degree is raised. Further, the saturation of the entire image is analyzed by the image analysis unit 6c. When the saturation of the image is high, the saturation of the character is lowered. Conversely, when the saturation of the image is low, the saturation of the character is increased. Further, as a result of analyzing the entire image by the image analysis unit 6c, when it is determined that the image is composed of a plurality of subjects having similar colors, the color of the character is set to be similar to that of the subject, and the image is pastel-toned. When it is determined that the subject is composed of a plurality of subjects, the character color is achromatic.

文字の色を決定した後にステップ7へ進み、コンピューター6の文字処理部6eは文字の書体を決定する。文字の書体には楷書体、草書体、ゴシック体、斜体、太字などがある。画像演出目的、演出対象の画像の解析結果、文字列の内容などに応じた決定方法が予めコンピューター6のメモリ6bに記憶されており、演出目的、演出画像、文字列内容などに応じた最適な書体が決定される。例えば、年賀状を作成する場合には、文字は楷書体で適度な太字とする。また、結婚式や旅行イベントの写真日記を作成する場合にはポップ調の書体とされ、入学式や卒業式イベントの写真日記を作成する場合には行書体とされる。なお、演出目的、演出画像の解析結果、文字列の内容などに応じて複数の書体をディスプレイ7に提示し、使用者に選択させるようにしてもよい。   After the character color is determined, the process proceeds to step 7, and the character processing unit 6e of the computer 6 determines the character font. The typefaces of characters include fonts, cursive, gothic, italic and bold. The determination method according to the image production purpose, the analysis result of the image to be produced, the contents of the character string, etc. is stored in the memory 6b of the computer 6 in advance, and the optimum method according to the production purpose, the production image, the character string content, etc. The typeface is determined. For example, when creating a New Year's card, the character is a typeface and appropriate bold. Also, when creating a photo diary for a wedding or travel event, it is a pop-type font, and when creating a photo diary for an entrance ceremony or a graduation ceremony event, it is a line font. A plurality of fonts may be presented on the display 7 according to the production purpose, the analysis result of the production image, the contents of the character string, and the user may select them.

続くステップ8において、コンピューター6の文字処理部6eは文字飾りを決定する。文字飾りには縁取り、エッジ強調、影付けなどがあり、さらに引用符や音符などの一般記号、感嘆符や疑問符などの記述記号などがある。コンピューター6のメモリ6bには画像演出目的、演出対象の画像の解析結果、文字列の内容などに応じた文字飾りの決定方法が予め記憶されており、演出目的、演出画像の解析結果、文字列の内容に応じた最適な文字飾りが決定される。例えば、文字の色と上書き領域の画像の色とが類似している場合には、文字の縁取りが行われる。また、文字列を上書きする領域が明るい場合には文字のエッジが太めにされ、文字に影付けが行われる。なお、演出目的、演出画像、文字列の内容などに応じて複数の文字飾りをディスプレイ7に提示し、使用者に選択させるようにしてもよい。   In subsequent step 8, the character processing unit 6e of the computer 6 determines a character decoration. Text decorations include borders, edge emphasis, shadowing, etc. In addition, there are general symbols such as quotes and notes, and descriptive symbols such as exclamation marks and question marks. The memory 6b of the computer 6 stores in advance a method for determining the character decoration according to the purpose of the image production, the analysis result of the image to be produced, the contents of the character string, and the like. The optimum character decoration according to the content of is determined. For example, if the character color is similar to the color of the image in the overwrite area, the character is outlined. Further, when the area overwriting the character string is bright, the edge of the character is made thicker and the character is shaded. It should be noted that a plurality of character decorations may be presented on the display 7 in accordance with the production purpose, production image, contents of the character string, etc., and allowed to be selected by the user.

画像に上書きする文字列の表現形態を決定したらステップ9へ進み、決定した表現形態の文字列が画像に上書きされてディスプレイ7に表示されるとともに、記憶装置1に記憶される。また、必要に応じて画像出力回路9からプリンターなどの外部機器へ出力される。   When the expression form of the character string to be overwritten on the image is determined, the process proceeds to step 9, and the character string in the determined expression form is overwritten on the image and displayed on the display 7 and stored in the storage device 1. Further, it is output from the image output circuit 9 to an external device such as a printer as necessary.

図3〜図6は一実施の形態の画像演出装置により年賀状を作成した一例を示し、各図において(a)が文字列を上書きする前の画像であり、(b)が文字列を上書きした画像である。なお、図3〜図6において、撮像装置(デジタルカメラ)で撮影した写真を直接、本紙面に示すことができないので、それらの写真をスケッチした画像を示す。図3(a)は観光地でお城を背景にした記念写真の画像である。使用者がこの写真の画像を年賀状に用いる画像に選択すると、コンピューター6の画像解析部6cにより画像解析が行われる。まず、画像に写っている主要被写体として人と城が認識され、これらの主要被写体の天地の方向またはカメラの撮影姿勢(正位置撮影かまたは縦位置撮影か)から画像が縦長の画像であると判別される。次に、画像解析部6cにより画像全体のエッジの向きが判別される。この画像の横向きのエッジ量と縦向きのエッジ量とを集計した結果、縦向きのエッジ量が横向きのエッジ量よりも多く、かつまた画像が縦長であることから、画像全体のエッジの向きは縦向きであると判別される。したがって、エッジの向きに合わせて画像に上書きする文字列が縦書きとされ、文字列の上書き位置が右上とされる。   3 to 6 show an example of creating a New Year's card by the image rendering device of the embodiment. In each figure, (a) is an image before overwriting the character string, and (b) is overwriting the character string. It is an image. 3 to 6, since photographs taken with an imaging device (digital camera) cannot be directly shown on this paper, images obtained by sketching these photographs are shown. FIG. 3A is an image of a commemorative photograph with a castle in the background at a tourist spot. When the user selects the image of this photograph as the image to be used for the New Year's card, the image analysis unit 6c of the computer 6 performs image analysis. First, people and castles are recognized as main subjects in the image, and the image is a vertically long image based on the direction of the top or bottom of these main subjects or the shooting posture of the camera (normal position shooting or vertical position shooting). Determined. Next, the edge direction of the entire image is determined by the image analysis unit 6c. As a result of totaling the horizontal edge amount and the vertical edge amount of this image, the vertical edge amount is larger than the horizontal edge amount, and the image is vertically long. It is determined that the orientation is vertical. Therefore, the character string to be overwritten on the image in accordance with the direction of the edge is vertically written, and the overwrite position of the character string is set to the upper right.

次に、コンピューター6は、文字処理部6eにより文字列の上書き領域を決める。予めメモリ6bに記憶されている年賀状に対する文字の表現形態、すなわち文字の大きさ、間隔、列数などのデフォルト値にしたがって、「謹賀新年 今年もよろしくお願いします。2009年元旦」の文字列の上書き領域として必要な大きさを計算する。そして、この上書き領域として必要な領域を画像の右上の上書き位置に確保できるか否かを判別する。図3(a)において、領域21は上記文字列を上書きするのに必要な大きさの領域を示す。この場合、領域21の下端部が主要な被写体であるお城の屋根の部分に接近し、この部分の空間周波数は他の部分に比べて高くなっているが、領域21全体から見るとわずかな部分であるから、文字列の一部と干渉したとしても文字列が見にくくなることはないと判別される。以上の判別結果から、この場合には画像の右上の領域21に文字列の上書き領域が設定され、文字の大きさ、間隔、列数などの文字の表現形態は年賀状としてのデフォルト値が採用される。   Next, the computer 6 determines a character string overwrite area by the character processing unit 6e. In accordance with the character representation format for New Year's cards stored in the memory 6b in advance, that is, according to the default values such as the character size, spacing, and number of columns, the character string of “Tsuruga New Year, thank you again this year. Calculate the size required for the overwrite area. Then, it is determined whether or not an area necessary as the overwrite area can be secured at the upper right overwrite position of the image. In FIG. 3A, an area 21 indicates an area having a size necessary for overwriting the character string. In this case, the lower end portion of the area 21 approaches the roof portion of the castle, which is the main subject, and the spatial frequency of this portion is higher than that of the other portions. Since it is a part, it is determined that the character string is not difficult to see even if it interferes with a part of the character string. From the above determination results, in this case, the character string overwrite area is set in the upper right area 21 of the image, and the default value as a New Year's card is adopted as the character expression form such as the character size, interval, and number of columns. The

次に、コンピューター6は、画像解析部6cにより文字の上書き領域21における画像の平均輝度を検出する。領域21の大部分には晴天時の青空が映り込んでおり、平均輝度239が検出されたとすると、文字処理部6eは、上述した文字の色の決定手順にしたがって文字の色を黒色に決定する。さらに、文字処理部6eは、メモリ6bに記憶されている年賀状に対する文字の書体を検索し、楷書体の文字に決定する。文字飾りについては、上書き領域21の色が一様な青空の色であり、その上に黒色の文字を上書きするのであるから、縁取り、エッジ強調、影付けなどの文字飾りは必要ないと判別される。このようにして決定した表現形態の文字列を図3(a)の画像の右上の領域21に上書きした結果、図3(b)に示すような年賀状の画像が作成される。   Next, the computer 6 detects the average luminance of the image in the character overwrite area 21 by the image analysis unit 6c. Assuming that the blue sky in fine weather is reflected in most of the area 21 and the average luminance 239 is detected, the character processing unit 6e determines the character color to black according to the character color determination procedure described above. . Further, the character processing unit 6e searches the character font for the New Year's card stored in the memory 6b and determines the character as a font. As for the text decoration, since the color of the overwrite area 21 is a uniform blue sky color and the black text is overwritten thereon, it is determined that text decoration such as bordering, edge emphasis, and shadowing is not necessary. The As a result of overwriting the character string of the expression form thus determined in the upper right area 21 of the image of FIG. 3A, a New Year's card image as shown in FIG. 3B is created.

次に、図4(a)は晴天時の砂丘の写真である。使用者がこの写真の画像を年賀状に用いる画像に選択すると、コンピューター6は画像解析部6cにより画像を解析する。まず、画像に写っている被写体として青空を認識し、この被写体の天地の方向から画像が横長の画像であると判別する。次に、画像解析部6cは画像全体のエッジの向きを判別する。この画像の横向きのエッジ量と縦向きのエッジ量とを集計した結果、横向きのエッジ量が縦向きのエッジ量よりも多く、かつまた画像が横長であることから、画像全体のエッジの向きは横向きであると判別する。このような判別結果に基づいて、画像に上書きする文字列はエッジの向きに合わせて横書きとされ、文字列の上書き位置は画像の左上とされる。   Next, FIG. 4A is a photograph of a sand dune in fine weather. When the user selects the image of this photograph as the image to be used for the New Year's card, the computer 6 analyzes the image by the image analysis unit 6c. First, a blue sky is recognized as a subject in the image, and it is determined that the image is a horizontally long image from the top and bottom direction of the subject. Next, the image analysis unit 6c determines the direction of the edge of the entire image. As a result of totaling the horizontal edge amount and the vertical edge amount of this image, the horizontal edge amount is larger than the vertical edge amount, and the image is horizontally long. Judged to be in landscape orientation. Based on such a determination result, the character string to be overwritten on the image is horizontally written in accordance with the direction of the edge, and the overwriting position of the character string is at the upper left of the image.

次に、コンピューター6は、文字処理部6eにより文字列の上書き領域を決める。予めメモリ6bに記憶されている年賀状に対する文字の表現形態のデフォルト値にしたがって、「謹賀新年 今年もよろしくお願いします。2009年元旦」の文字列の上書き領域として必要な大きさを計算する。そして、この上書き領域として必要な領域を画像の左上の上書き位置に確保できるか否かを判別する。図4(a)において、領域22は上記文字列を上書きするのに必要な大きさの領域を示す。この場合、領域22には青空が写っており、特別な主要被写体は存在せず、領域内の空間周波数も低い。したがって、この場合には画像の左上の領域22に文字列の上書き領域が設定され、文字の大きさ、間隔、列数などの文字の表現形態は年賀状としてのデフォルト値が採用される。   Next, the computer 6 determines a character string overwrite area by the character processing unit 6e. In accordance with the default value of the character expression format for the New Year's card stored in the memory 6b in advance, the size required for the overwriting area of the character string of “Thank you for the New Year, 2009 New Year's Day” is calculated. Then, it is determined whether or not an area required as the overwrite area can be secured at the upper left overwrite position of the image. In FIG. 4A, an area 22 indicates an area having a size necessary for overwriting the character string. In this case, a blue sky is reflected in the region 22, there is no special main subject, and the spatial frequency in the region is low. Therefore, in this case, a character string overwrite area is set in the upper left area 22 of the image, and the default value as a New Year's card is adopted as the character expression form such as character size, spacing, and number of columns.

次に、コンピューター6は、画像解析部6cにより文字の上書き領域22における画像の平均輝度を検出する。領域22には青空が写っており、平均輝度185が検出されたとする。これは輝度200より低いので、画像解析部6cによりさらに画像全体の平均輝度を検出し、平均輝度193が検出されたとする。文字処理部6eは、上述した文字の色の決定手順にしたがって文字の色を黒色に決定する。さらに、文字処理部6eは、上述したように年賀状に対する文字の書体を楷書体に決定するとともに、文字飾りは必要ないと判別する。このようにして決定した表現形態の文字列を図4(a)の画像の右上の領域22に上書きした結果、図4(b)に示すような年賀状の画像が作成される。   Next, the computer 6 detects the average luminance of the image in the character overwrite area 22 by the image analysis unit 6c. It is assumed that a blue sky is reflected in the region 22 and an average luminance 185 is detected. Since this is lower than the luminance 200, it is assumed that the average luminance of the entire image is further detected by the image analysis unit 6c, and the average luminance 193 is detected. The character processing unit 6e determines the character color to black according to the character color determination procedure described above. Furthermore, as described above, the character processing unit 6e determines that the character font for the New Year's card is a font font, and determines that no character decoration is necessary. As a result of overwriting the character string of the expression form thus determined in the upper right area 22 of the image of FIG. 4A, a New Year's card image as shown in FIG. 4B is created.

図5(a)は野に咲くアザミの花をクローズアップ撮影した写真である。中央のアザミの花は赤色で、ピントの合った鮮明は画像である。しかし、アザミの花の背景は一面の緑色の野草であるが、これらの背景の野草にはピントが合っていない。このような画像が年賀状に用いる画像として選択された場合に、コンピューター6の画像解析部6cによる解析で画像が横長でエッジの方向が縦と判別され、上述した手順で横長の画像の右上に縦書きの文字列の上書き領域23が決定される。さらに、この画像に対する画像解析部6cによる解析で、領域23の平均輝度122が、画像全体の平均輝度95がそれぞれ検出されたとすると、文字処理部6eは、上述した手順にしたがって文字の色を白色に決定する。図5(b)は領域23に白色の文字列が上書きされた年賀状の画像を示す(注;この紙面では文字列が黒色で表現される)。領域23は一様な緑色をしており、あたかも白抜きの文字が配列されたかのように文字列が鮮明に視認される。   FIG. 5A is a close-up photograph of a thistle flower blooming in a field. The flower in the center is red, and the sharp and focused image is an image. However, the background of thistle flowers is a green wildflower, but these wildflowers are not in focus. When such an image is selected as an image to be used for a New Year's card, the image analysis unit 6c of the computer 6 determines that the image is horizontally long and the edge direction is vertical. A writing character string overwrite area 23 is determined. Further, if the average luminance 122 of the region 23 and the average luminance 95 of the entire image are detected in the analysis by the image analysis unit 6c for this image, the character processing unit 6e changes the character color to white according to the above-described procedure. To decide. FIG. 5B shows a New Year's card image in which a white character string is overwritten in the area 23 (Note; the character string is expressed in black on this paper). The region 23 has a uniform green color, and the character string is clearly visible as if white characters are arranged.

図6(a)は建物を背景にした人物の記念写真である。画像中央の看板の背後に人物が、画像上部に建物が写っている。このような画像が年賀状に用いる画像として選択された場合に、コンピューター6の画像解析部6cによる解析で画像が横長でエッジの方向が横と判別され、上述した手順で横長の画像の左上に横書きの文字列の上書き領域24が決定される。ところが、領域24には建物の屋根と空が映り込んでいるため、この画像に対する画像解析部6cによる解析で、領域24の輝度分布が二極化している、すなわちコントラストが高いと判別される。このような場合には、上述したように、文字の色を無彩色にすると見にくくなるため、文字の色が有彩色とされる。ここでは、領域24に青色の屋根が写っており、また画像内には赤色の紅葉が写っているので、画像内に存在する色であって、青色の屋根に上書きしたときに目立つ色として文字が赤色に決定される。図6(b)は領域24に赤色の文字列が上書きされた年賀状の画像を示す(注;この紙面では文字列が黒色で表現される)。領域24の青色の屋根に赤色の文字列が上書きされ、文字列が鮮明に視認される。   FIG. 6A is a commemorative photo of a person against the background of a building. A person appears behind the signboard in the center of the image, and a building appears at the top of the image. When such an image is selected as an image to be used for a New Year's card, it is determined that the image is horizontally long and the direction of the edge is horizontal by analysis by the image analysis unit 6c of the computer 6. The character string overwrite area 24 is determined. However, since the roof of the building and the sky are reflected in the region 24, it is determined by the analysis by the image analysis unit 6c for this image that the luminance distribution in the region 24 is bipolar, that is, the contrast is high. In such a case, as described above, it becomes difficult to see if the character color is achromatic, so the character color is chromatic. Here, a blue roof is reflected in the area 24, and red autumn leaves are reflected in the image. Therefore, the color that is present in the image and that stands out when overwritten on the blue roof is a character. Is determined to be red. FIG. 6B shows a New Year's card image in which a red character string is overwritten in the region 24 (Note; the character string is expressed in black on this paper). The red character string is overwritten on the blue roof in the region 24, and the character string is clearly visible.

なお、ステップ3で使用者により選択された文字列の内容をコンピューター6により解析し、文字列の内容に応じて文字列における言葉使いや言い回しを変えるようにしてもよい。例えば、上述した年賀状の作成ではかしこまった言葉使いと言い回しの文字列とし、写真日記の作成では率直な言葉使いと言い回しの文字列とする。あるいは、コンピューター6により演出対象の画像の特徴量を解析し、特徴量に応じて文字列における言葉使いや言い回しを変えてもよい。例えば、画像が明るい色と彩度の場合は明るい言葉使いや言い回しの文字列とし、暗い色と彩度の場合には静かな言葉使いや言い回しの文字列とする。さらに、使用者を特定し、使用者の年齢や性別に応じて文字列の言葉使いや言い回しを変えるようにしてもよい。例えば、使用者が子供の場合には親しい言葉使いと言い回しとし、使用者が女性の場合は優しい言葉使いと言い回しにする。   It should be noted that the content of the character string selected by the user in step 3 may be analyzed by the computer 6 so that the wording or wording in the character string is changed according to the content of the character string. For example, in the creation of the above-mentioned New Year's cards, it is a string of words and words that are stiff, and in the creation of a photo diary, it is a string of words and words that are straightforward. Alternatively, the computer 6 may analyze the feature amount of the image to be produced, and change the wording or wording in the character string according to the feature amount. For example, when the image has a bright color and saturation, a character string with a bright wording or wording is used, and when the image has a dark color and saturation, a character word with a quiet wording or wording is used. Furthermore, the user may be specified, and the wording and wording of the character string may be changed according to the age and sex of the user. For example, when the user is a child, the wording is a close wording, and when the user is a woman, the wording is a gentle wording.

上述した一実施の形態では、画像演出プログラムを実行するコンピューター6を備えた画像演出装置を例に挙げて説明したが、一実施の形態の画像演出プログラムを各種の記録媒体に記録して提供し、パーソナルコンピューターで実行させて一実施の形態の画像演出機能を実現するようにしてもよい。あるいは、一実施の形態の画像演出プログラムをインターネットを介してダウンロード可能な形態として提供するようにしてもよい。さらに、本願発明に係わる画像演出装置または画像演出プログラムをフォトフレームに組み込んで提供し、上述した一実施の形態の画像演出機能を実現するようにしてもよい。   In the above-described embodiment, the image rendering apparatus including the computer 6 that executes the image rendering program has been described as an example. However, the image rendering program according to the embodiment is provided by being recorded on various recording media. The image rendering function according to the embodiment may be realized by being executed by a personal computer. Or you may make it provide the image production program of one Embodiment as a form which can be downloaded via the internet. Furthermore, an image effect device or an image effect program according to the present invention may be provided by being incorporated in a photo frame to realize the image effect function of the above-described embodiment.

さらにまた、本願発明に係わる画像演出装置および画像演出プログラムをデジタルカメラあるいはデジタルカメラ付きの携帯電話機に組み込み、デジタルカメラ単体で、あるいは携帯電話機単体で上述した画像演出機能を実現することも可能である。   Furthermore, it is also possible to incorporate the image effect device and the image effect program according to the present invention into a digital camera or a mobile phone with a digital camera so that the above-described image effect function can be realized by a single digital camera or a single mobile phone. .

なお、上述した実施の形態とそれらの変形例において、実施の形態と変形例とのあらゆる組み合わせが可能である。   In the above-described embodiments and their modifications, all combinations of the embodiments and the modifications are possible.

上述した実施の形態とその変形例によれば以下のような作用効果を奏することができる。まず、画像を解析して特徴を抽出し、画像の特徴に応じて画像に上書きする文字列の表現形態を決定し、決定された表現形態の文字列を画像に上書きするようにしたので、画像の特徴に合った表現形態の文字を画像に上書きすることができ、文字が読みやすく、違和感のない印象的な画像を生成することができる。   According to the above-described embodiment and its modifications, the following operational effects can be achieved. First, the image is analyzed to extract features, the character string representation form to be overwritten on the image is determined according to the image feature, and the character string in the determined expression form is overwritten on the image. It is possible to overwrite the image with characters in an expression form that suits the above characteristics, and to generate an impressive image that is easy to read and has no sense of incongruity.

また、一実施の形態とその変形例によれば、画像の特徴に応じて画像上の文字列を上書きする位置を決定し、画像の中の上書き位置の画像の特徴に応じて文字列の表現形態を決定するようにしたので、主要被写体を避けて文字列を配置することができる上に、文字がさらに読みやすくなる。   Also, according to one embodiment and its modification, a position for overwriting the character string on the image is determined according to the feature of the image, and the character string is represented according to the feature of the image at the overwrite position in the image. Since the form is determined, the character string can be arranged avoiding the main subject, and the characters can be read more easily.

さらに、一実施の形態とその変形例によれば、画像全体のエッジの向きを検出するとともに、画像が横長か縦長かを検出し、画像全体のエッジの向きと画像が横長か縦長かに応じて文字列の配列方向を決定するようにしたので、自然で違和感のない方向に文字列を配列することができる。   Furthermore, according to one embodiment and its modification, the edge direction of the entire image is detected, whether the image is horizontally long or vertically long, and depending on the edge direction of the entire image and whether the image is horizontally long or vertically long Thus, the arrangement direction of the character strings is determined, so that the character strings can be arranged in a natural and uncomfortable direction.

一実施の形態とその変形例によれば、画像の輝度に応じて文字列の色を決定するとともに、画像の色に応じて文字列の文字飾りを決定するようにしたので、画像上の文字をさらに見やすく演出できる。   According to one embodiment and its modification, the color of the character string is determined according to the brightness of the image and the character decoration of the character string is determined according to the color of the image. Can be produced more easily.

1;記憶装置、2;画像入力回路、3;通信回路、4;マイクロフォン、5;キーボード/マウス、6;コンピューター、6a;CPU、6b;メモリ、6c;画像解析部、6d;画像処理部、6e;文字処理部、7;ディスプレイ DESCRIPTION OF SYMBOLS 1; Memory | storage device, 2; Image input circuit, 3; Communication circuit, 4; Microphone, 5; Keyboard / mouse, 6: Computer, 6a; CPU, 6b; Memory, 6c: Image analysis part, 6d; 6e; character processing unit, 7; display

Claims (6)

画像を解析して特徴を抽出する画像解析手順と、
前記画像に上書きする文字列の表現形態を、前記画像解析手順で抽出された前記画像の特徴に応じて決定する文字表現手順と、
前記文字表現手順で決定された表現形態の前記文字列を前記画像に上書きする画像演出手順とをコンピューターに実行させることを特徴とする画像演出プログラム。
Image analysis procedure for analyzing the image and extracting features;
A character representation procedure for determining a representation form of a character string to be overwritten on the image according to a feature of the image extracted in the image analysis procedure;
An image effect program for causing a computer to execute an image effect procedure for overwriting the image with the character string in the expression form determined by the character expression procedure.
請求項1に記載の画像演出プログラムにおいて、
前記画像の特徴に応じて前記画像上の前記文字列を上書きする位置を決定する位置決定手順をさらに有し、
前記文字表現手順では、前記画像の中の前記位置決定手順で決定された上書き位置の画像の特徴に応じて前記文字列の表現形態を決定することを特徴とする画像演出プログラム。
In the image effect program according to claim 1,
A position determination procedure for determining a position to overwrite the character string on the image according to the characteristics of the image;
In the character expression procedure, the expression form of the character string is determined according to the feature of the image at the overwrite position determined in the position determination procedure in the image.
請求項1または請求項2に記載の画像演出プログラムにおいて、
前記画像解析手順では、前記画像全体のエッジの向きを検出するとともに、前記画像のアスペクト比を検出し、
前記文字表現手順では、前記画像全体のエッジの向きと前記画像のアスペクト比に応じて前記文字列の配列方向を決定することを特徴とする画像演出プログラム。
In the image effect program according to claim 1 or 2,
In the image analysis procedure, the edge direction of the entire image is detected, the aspect ratio of the image is detected,
In the character expression procedure, the image rendering program is characterized in that the arrangement direction of the character strings is determined according to the edge direction of the entire image and the aspect ratio of the image.
請求項1〜3のいずれか一項に記載の画像演出プログラムにおいて、
前記画像解析手順では前記画像の輝度を検出し、
前記文字表現手順では、前記画像の輝度に応じて前記文字列の色を決定することを特徴とする画像演出プログラム。
In the image effect program according to any one of claims 1 to 3,
In the image analysis procedure, the brightness of the image is detected,
In the character expression procedure, the color of the character string is determined according to the luminance of the image.
請求項1〜4のいずれか一項に記載の画像演出プログラムにおいて、
前記画像解析手順では前記画像の色を検出し、
前記文字表現手順では、前記画像の色に応じて前記文字列の色または文字飾りを決定することを特徴とする画像演出プログラム。
In the image effect program according to any one of claims 1 to 4,
In the image analysis procedure, the color of the image is detected,
In the character expression procedure, a color or character decoration of the character string is determined according to the color of the image.
画像を取得する画像取得回路と、
文字列を取得する文字取得回路と、
請求項1〜5のいずれか一項に記載の画像演出プログラムを実行するコンピューターと、
前記文字列が上書きされた前記画像を表示する表示装置とを備えることを特徴とする画像演出装置。
An image acquisition circuit for acquiring an image;
A character acquisition circuit for acquiring a character string;
A computer that executes the image effect program according to any one of claims 1 to 5;
An image rendering device comprising: a display device that displays the image overwritten with the character string.
JP2009092910A 2009-04-07 2009-04-07 Image performance program and image performance device Pending JP2010244330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009092910A JP2010244330A (en) 2009-04-07 2009-04-07 Image performance program and image performance device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009092910A JP2010244330A (en) 2009-04-07 2009-04-07 Image performance program and image performance device

Publications (1)

Publication Number Publication Date
JP2010244330A true JP2010244330A (en) 2010-10-28

Family

ID=43097278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009092910A Pending JP2010244330A (en) 2009-04-07 2009-04-07 Image performance program and image performance device

Country Status (1)

Country Link
JP (1) JP2010244330A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017229102A (en) * 2012-08-17 2017-12-28 株式会社ニコン Image processing apparatus, imaging apparatus, and program
CN109191539A (en) * 2018-07-20 2019-01-11 广东数相智能科技有限公司 Oil painting generation method, device and computer readable storage medium based on image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08297711A (en) * 1995-04-25 1996-11-12 Casio Comput Co Ltd Character string output device
JPH1026967A (en) * 1996-07-12 1998-01-27 Toshiba Corp Picture processor
JP2002208994A (en) * 2001-01-04 2002-07-26 Matsushita Electric Ind Co Ltd Portable information terminal equipment, method for displaying on screen at portable information terminal equipment and recording medium
JP2005250778A (en) * 2004-03-03 2005-09-15 Seiko Epson Corp Vertical direction decision of image
JP2008271239A (en) * 2007-04-20 2008-11-06 Olympus Imaging Corp Camera, content creation method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08297711A (en) * 1995-04-25 1996-11-12 Casio Comput Co Ltd Character string output device
JPH1026967A (en) * 1996-07-12 1998-01-27 Toshiba Corp Picture processor
JP2002208994A (en) * 2001-01-04 2002-07-26 Matsushita Electric Ind Co Ltd Portable information terminal equipment, method for displaying on screen at portable information terminal equipment and recording medium
JP2005250778A (en) * 2004-03-03 2005-09-15 Seiko Epson Corp Vertical direction decision of image
JP2008271239A (en) * 2007-04-20 2008-11-06 Olympus Imaging Corp Camera, content creation method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017229102A (en) * 2012-08-17 2017-12-28 株式会社ニコン Image processing apparatus, imaging apparatus, and program
CN109191539A (en) * 2018-07-20 2019-01-11 广东数相智能科技有限公司 Oil painting generation method, device and computer readable storage medium based on image

Similar Documents

Publication Publication Date Title
JP4762827B2 (en) Electronic album generation apparatus, electronic album generation method, and program thereof
JP2012044646A (en) Image processing device, image processing method and program
US8237818B2 (en) Camera
US8855413B2 (en) Image reflow at word boundaries
US20140198234A1 (en) Image processing apparatus, program, image processing method, and imaging apparatus
KR20110103844A (en) Image attribute determining device, attribute determining assist device, image attribute determining method, control method for attribute determining assist device
JP5436367B2 (en) Graphic arrangement determining method, program thereof, and information processing apparatus
JP2006331393A (en) Album creating apparatus, album creating method and program
US9600916B2 (en) Image processing apparatus for creating composite images, image processing method, and non-transitory computer readable recording medium
US20050219617A1 (en) Image processing device, image processing method, and computer program product for image processing
JP2010244330A (en) Image performance program and image performance device
US20070211961A1 (en) Image processing apparatus, method, and program
JP2010068212A (en) Image processor, image processing method, and program
JP2007124617A (en) Image combining apparatus and control method for the same
JP2008171248A (en) Two dimensional code preparation system
US20120069001A1 (en) Electronic album generating apparatus, stereoscopic image pasting apparatus, and methods and programs for controlling operation of same
JP7105209B2 (en) Image processing method, program, and image processing system
JP4932802B2 (en) Image processing apparatus, method, and program
CN106776489B (en) Electronic document display method and system of display device
JP5553423B1 (en) Calendar, its creation method, and calendar creation system
JP4156322B2 (en) Image processing method, apparatus, and program
JP2005094424A (en) Combination of original image with decorative image
CN111667014B (en) Training method, image editing device and electronic equipment
JP6725591B2 (en) Photographing amusement device, control method for a photographing amusement device, and control program for a phototaking amusement device
JP2011023836A (en) Slide data creation device, slide data creation method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120330

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130702

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130709

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130909

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131112

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140114

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140318