JP2005316972A - Method and program for creating image including two-dimensional code - Google Patents

Method and program for creating image including two-dimensional code Download PDF

Info

Publication number
JP2005316972A
JP2005316972A JP2005091059A JP2005091059A JP2005316972A JP 2005316972 A JP2005316972 A JP 2005316972A JP 2005091059 A JP2005091059 A JP 2005091059A JP 2005091059 A JP2005091059 A JP 2005091059A JP 2005316972 A JP2005316972 A JP 2005316972A
Authority
JP
Japan
Prior art keywords
image
coloring
dimensional code
color
palette
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.)
Granted
Application number
JP2005091059A
Other languages
Japanese (ja)
Other versions
JP2005316972A5 (en
JP4014602B2 (en
Inventor
Kiyoichi Kagawa
喜代一 香川
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2005091059A priority Critical patent/JP4014602B2/en
Publication of JP2005316972A publication Critical patent/JP2005316972A/en
Publication of JP2005316972A5 publication Critical patent/JP2005316972A5/ja
Application granted granted Critical
Publication of JP4014602B2 publication Critical patent/JP4014602B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To allow anyone to easily color two-dimensional codes to form patterns or arrange the codes in combination with other image elements such as pictures or illustrations without impairing the function of reading the codes, so as to utilize the codes as design elements. <P>SOLUTION: Images are read into a layer 1 and placed in designated positions in the specified size. Images in which input characters are converted into two-dimensional codes are created in a layer 2, aligned in designated positions in the specified size, and colored. Illustration images are created in a layer 3. The order and transparency of the layers are set to synthesize the images. The black cells of the two-dimensional codes are colored in a color selected from a black-cell coloring pallet and the white cells thereof are colored in a color selected from a white-collar coloring pallet. For each pallet, the brightness selectable range is set based on the colors in which other cells have been colored so far. In addition, the automatic brightness correction function is provided to compute a brightness histogram for the synthetic image and checks code reading so as to correct the brightness. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本願発明は、2次元コードを含む画像を生成する方法およびプログラムに関し、特に例えば、商品やサービスの広告等のために商品や衣服等にプリントする画像として2次元コードを含む画像を用いる場合に好適な2次元コードを含む画像生成方法およびプログラムに関するものである。   The present invention relates to a method and program for generating an image including a two-dimensional code, and is particularly suitable when, for example, an image including a two-dimensional code is used as an image to be printed on a product or clothes for advertisement of a product or service The present invention relates to an image generation method and program including a simple two-dimensional code.

近年、商品やサービスの広告のために商品や衣服等に広告画像をプリントする広告手法が日常的に用いられるようになっているが、商品や衣服等にプリントする広告画像に商品やサービスに関する説明を記載すると、利用者に煩雑な印象を与えてしまい却って広告効果を損なうことから、企業等が運営するWebサイトのURL(Uniform Resource Locator)やフリーダイアル等の電話番号を記載し、ユーザが当該URLや電話番号にアクセスすることで当該商品やサービスの詳細情報を入手したり、商品やサービスの注文を行えるようにする広告手法が広く用いられるようになっている。
しかしながら、商品や衣服等にプリントされたURLや電話番号にアクセスするためにはユーザがその情報を記録してパソコンや電話から入力する必要があり、誤りが生ずる可能性があったり面倒であることから実際にはあまり利用されず、期待された成果が得られていない場合が多かった。
In recent years, an advertising technique for printing an advertisement image on a product or clothes for advertisement of the product or service has come to be used on a daily basis. If this is entered, it will give a complicated impression to the user and adversely affect the advertising effect. Therefore, enter the URL (Uniform Resource Locator) of the website operated by the company or the telephone number of the free dial, etc. An advertising technique is widely used in which detailed information on a product or service can be obtained by accessing a URL or a telephone number, or an order for a product or service can be ordered.
However, in order to access URLs and telephone numbers printed on products, clothes, etc., the user needs to record the information and input it from a personal computer or telephone, which may cause errors and is troublesome. In many cases, it was not used much and the expected results were not obtained.

これに対して、バーコードを2次元化して含められる情報量を飛躍的に拡大した2次元コードが普及してきたことから、商品やサービスの広告画像に商品やサービスに関する情報やURL・電話番号等を2次元コード化した2次元コードを掲載し、ユーザが広告画像内の2次元コードを携帯電話のカメラで撮影することにより2次元コードの内容が解読されて携帯電話の画面に表示され、商品やサービスに関する情報を入手できるとともに、2次元コードにURLや電話番号が記載されている場合には、画面に表示されたURLや電話番号を選択するだけで自動的に対応するWebサイトにアクセスしたり、フリーダイアルに電話できる情報提供サービスが実用化されている(例えば、特許文献1参照)。
尚、2次元コードとしては、米国Veritec社のVeri Code、米国I.D.Matrix社のData Matrix、株式会社デンソーのQRコード(登録商標)、オリンパス工業株式会社のSTコード(商標登録出願中)などがこれまでに開発されている。
On the other hand, since the two-dimensional code that greatly increases the amount of information that can be included by converting the barcode into two dimensions has become widespread, information on products and services, URLs, telephone numbers, etc. The two-dimensional code converted into a two-dimensional code is posted, and the user captures the two-dimensional code in the advertisement image with the camera of the mobile phone, so that the content of the two-dimensional code is decoded and displayed on the mobile phone screen. If the URL or telephone number is described in the two-dimensional code, the corresponding website can be automatically accessed simply by selecting the URL or telephone number displayed on the screen. In addition, an information providing service that can call a free dial has been put into practical use (for example, see Patent Document 1).
Two-dimensional codes include Veritec from Veritec, Data Matrix from IDMatrix, QR Code (registered trademark) from Denso Corporation, ST code from Olympus Corporation (trademark registration pending) Has been developed.

かかる2次元コードを用いた広告画像の簡単な例を図10に示す。図において、1はこの広告の見出し文字画像、2はこの広告の対象物の画像、3はこの広告の詳細内容やWebサイトのURLをQRコード化した2次元コード画像である。この例では、本日のメニューとして「和歌山のみかん」を宣伝する広告画像であり、見出し文字1が画面の上部に、対象物であるみかんの画像2が画面の左下に、2次元コード画像3が画面の右下にそれぞれ配置されている。ここで、ユーザが2次元コード画像3を携帯電話のカメラで撮影して読取操作を行うと、携帯電話の画面にこの商品に関する情報が表示され、ユーザが画面に表示されたWebサイトのURLを選択することで当該Webサイトにアクセスして、詳細情報を入手することができる。
特開2002−111909号公報
A simple example of an advertisement image using such a two-dimensional code is shown in FIG. In the figure, 1 is the headline character image of the advertisement, 2 is the image of the object of the advertisement, and 3 is a two-dimensional code image obtained by QR-coding the detailed content of the advertisement and the URL of the website. In this example, it is an advertisement image that promotes “Wakayama Mikan” as the menu of today, the heading character 1 is at the top of the screen, the image 2 of the target orange is the bottom left of the screen, and the two-dimensional code image 3 is They are located at the bottom right of the screen. Here, when the user captures the two-dimensional code image 3 with the camera of the mobile phone and performs a reading operation, information on the product is displayed on the screen of the mobile phone, and the URL of the Web site displayed on the screen is displayed by the user. By selecting, it is possible to access the Web site and obtain detailed information.
JP 2002-111909 A

しかしながら、一般に2次元コードは黒色のセルと白色のセルを立体的に組合せた無味乾燥な記号であることから、折角広告画像のデザインに工夫を凝らしても2次元コードを挿入することで全体のデザインが台無しになってしまい、却ってユーザに不快感を与えて広告効果が損なわれるという問題があった。
また、デザイン上の観点から2次元コードは広告画像の隅に配置される場合が多く、折角ユーザが広告画像に興味を持って携帯電話のカメラで撮影しても、被写体に2次元コードが含まれない場合が多く、積極的に2次元コードを撮影して商品やサービスの情報を取得したいと考えるユーザ以外は2次元コードが利用されない場合が多く、期待された広告効果が得られないという問題があった。
一方、2次元コードを広告画像にフィットするように着色して模様を形成したり、ユーザによる2次元コードの利用率を高めるために写真やイラスト等の他の画像要素と組合せて配置すると、2次元コードを正しく読取れなくなって2次元コード本来の機能を果たさなくなる場合が生ずるという問題があった。尚、一般のペイント処理を用いて2次元コード画像を着色して模様を形成したり、写真やイラスト等の他の画像要素と組合わせて配置することは可能であるが、2次元コードの読取機能を損なわないようにこれらのことを行うことは極めて困難であった。
However, in general, a two-dimensional code is a tasteless symbol that three-dimensionally combines a black cell and a white cell. Therefore, even if the design of the corner advertisement image is devised, inserting the two-dimensional code There is a problem that the design is ruined and the user is uncomfortable and the advertising effect is impaired.
From the viewpoint of design, the 2D code is often placed in the corner of the advertisement image. Even if the user is interested in the advertisement image and shoots with the camera of the mobile phone, the 2D code is included in the subject. In many cases, the 2D code is often used only by users who want to actively capture the 2D code and acquire information on products and services, and the expected advertising effect cannot be obtained. was there.
On the other hand, if the two-dimensional code is colored so as to fit the advertisement image to form a pattern, or arranged in combination with other image elements such as photographs and illustrations in order to increase the usage rate of the two-dimensional code by the user, 2 There is a problem in that the dimension code cannot be read correctly and the original function of the two-dimensional code may not be performed. It is possible to form a pattern by coloring a two-dimensional code image using a general paint process, or to place it in combination with other image elements such as photographs and illustrations. It has been extremely difficult to do these things without compromising function.

それゆえに、この発明の主たる目的は、2次元コードの読取機能を損なうことなく2次元コードを着色して模様を形成したり、写真やイラスト等の他の画像要素と組合せて配置することを誰でも容易に行えるようにし、2次元コードをデザイン要素として用いることができるようにすることである。   Therefore, the main object of the present invention is to create a pattern by coloring the two-dimensional code without impairing the reading function of the two-dimensional code, or to arrange it in combination with other image elements such as photographs and illustrations. However, it should be easy to do so that a two-dimensional code can be used as a design element.

請求項1に記載の発明は、2次元コード化する文字を入力する文字入力ステップと、文字入力ステップにより入力された文字から2次元コード画像を生成するコード画像生成ステップと、コード画像生成ステップにより生成された2次元コード画像を着色するコード画像着色ステップとを備えた2次元コードを含む画像生成方法であって、コード画像着色ステップは、2次元コード画像の黒セルを着色する色を選択させる黒セル着色パレットを表示する黒セル着色パレット表示ステップと、2次元コード画像の指定された領域の黒セルを表示された黒セル着色パレットから選択された色に着色する黒セル着色ステップと、2次元コード画像の白セルを着色する色を選択させる白セル着色パレットを表示する白セル着色パレット表示ステップと、2次元コード画像の指定された領域の白セルを表示された白セル着色パレットから選択された色に着色する白セル着色ステップとを備え、生成された2次元コード画像の黒セルが着色された色から白セルを着色する色として選択可能な範囲を白セル着色パレットに設定する白セル着色選択範囲設定ステップと、生成された2次元コード画像の白セルが着色された色から黒セルを着色する色として選択可能な範囲を黒セル着色パレットに設定する黒セル着色選択範囲設定ステップとを有する2次元コードを含む画像生成方法である。
この発明によれば、2次元コード画像の黒セルを着色する色を選択させる黒セル着色パレットと白セルを着色する色を選択させる白セル着色パレットを表示し、2次元コード画像の黒セルが着色された色から白セルを着色する色として選択可能な範囲を白セル着色パレットに設定し、2次元コード画像の白セルが着色された色から黒セルを着色する色として選択可能な範囲を黒セル着色パレットに設定するので、生成された2次元コード画像の黒セルを黒セル着色パレットの着色選択可能範囲から選択した色で着色し、生成された2次元コード画像の白セルを白セル着色パレットの着色選択可能範囲から選択した色で着色することで、誰でも容易に2次元コードの読取機能を損なうことなく2次元コード画像を着色して模様を形成するできる。
一般に、2次元コードの読取りは黒セルと白セルの明度の違いから入力画像を2値化することにより行われる場合が多いので、例えば黒セル着色選択可能範囲設定ステップはそれまでに白セルを着色する色として選択されたいずれの色に対しても明度の低い色が選択されるように選択可能範囲を黒セル着色パレットに設定し、白セル着色選択可能範囲設定ステップはそれまでに白セルを着色する色として選択されたいずれの色に対しても明度の高い色が選択されるように選択可能範囲を白セル着色パレットに設定すればよい。
また、黒セル着色パレットと白セル着色パレットには、それぞれ色彩を選択する色彩選択パレットと色彩選択パレットから選択された色彩における明度を選択する明度選択パレットを表示し、黒セル着色選択範囲設定ステップは、黒セル着色パレットの色彩選択パレットにより選択された色彩について、それまでに白セルを着色する色として選択されたいずれの色に対しても明度が低くなるように選択可能範囲を黒セル着色パレットの明度選択パレットに設定し、白セル着色選択範囲設定ステップは、白セル着色パレットの色彩選択パレットにより選択された色について、それまでに黒セルを着色する色として選択されたいずれの色に対しても明度が高くなるように選択可能範囲を白セル着色パレットの明度選択パレットに設定するようにしてもよい。これにより、2次元コードを着色する色の選択が容易となり、2次元コードの読取機能を損なうことなく2次元コードを着色して模様を形成することがより容易となる。
尚、2次元コード読取装置において白セルと黒セルの分離のために特別な処理が行われている場合には、その処理に合わせて白セルと黒セルについて選択可能な色の範囲を求め、その結果をそれぞれ白セル着色パレットと黒セル着色パレットに設定するようにしてもよい。
The invention described in claim 1 includes a character input step for inputting characters to be two-dimensionally encoded, a code image generation step for generating a two-dimensional code image from the characters input in the character input step, and a code image generation step. An image generation method including a two-dimensional code comprising a code image coloring step for coloring a generated two-dimensional code image, wherein the code image coloring step selects a color for coloring a black cell of the two-dimensional code image A black cell coloring palette displaying step for displaying a black cell coloring palette, a black cell coloring step for coloring a black cell in a specified area of the two-dimensional code image to a color selected from the displayed black cell coloring palette, and 2 A white cell coloring palette display step for displaying a white cell coloring palette for selecting a color for coloring the white cells of the three-dimensional code image; A white cell coloring step for coloring a white cell in a specified area of the two-dimensional code image to a color selected from the displayed white cell coloring palette, and the black cell of the generated two-dimensional code image is colored A white cell coloring selection range setting step for setting a range that can be selected as a color for coloring the white cell from the color in the white cell coloring palette, and coloring the black cell from the color in which the white cell of the generated two-dimensional code image is colored An image generation method including a two-dimensional code having a black cell coloring selection range setting step for setting a range selectable as a color to be set in a black cell coloring palette.
According to the present invention, the black cell coloring palette for selecting the color for coloring the black cells of the two-dimensional code image and the white cell coloring palette for selecting the color for coloring the white cells are displayed, and the black cells of the two-dimensional code image are displayed. The range that can be selected as the color for coloring the white cell from the colored color is set in the white cell coloring palette, and the range that can be selected as the color for coloring the black cell from the color in which the white cell of the two-dimensional code image is colored Since the black cell coloring palette is set, the black cells of the generated two-dimensional code image are colored with the color selected from the color selectable range of the black cell coloring palette, and the white cells of the generated two-dimensional code image are replaced with white cells. By coloring with a color selected from the color selectable range of the coloring palette, anyone can easily color the two-dimensional code image and form a pattern without impairing the reading function of the two-dimensional code.
In general, reading of a two-dimensional code is often performed by binarizing an input image based on a difference in brightness between a black cell and a white cell. Set the selectable range in the black cell coloring palette so that a low-lightness color is selected for any color selected as the color to be colored, and the white cell coloring selectable range setting step has The selectable range may be set in the white cell coloring palette so that a color with high brightness is selected for any color selected as the color to be colored.
The black cell coloring palette and the white cell coloring palette display a color selection palette for selecting a color and a brightness selection palette for selecting the brightness in the color selected from the color selection palette, respectively, and a black cell coloring selection range setting step. For the color selected by the color selection palette of the black cell coloring palette, the selectable range is black cell colored so that the brightness is low for any color that has been selected as the color for coloring the white cell so far The white cell coloring selection range setting step is set to the lightness selection palette of the palette, and the color selected by the color selection palette of the white cell coloring palette is changed to any color that has been selected as the color for coloring the black cells so far. The selectable range is set in the brightness selection palette of the white cell coloring palette so that the brightness is high. It may be. This facilitates selection of a color for coloring the two-dimensional code, and makes it easier to form a pattern by coloring the two-dimensional code without impairing the reading function of the two-dimensional code.
In addition, when a special process is performed for the separation of the white cell and the black cell in the two-dimensional code reader, a color range that can be selected for the white cell and the black cell is obtained in accordance with the process, You may make it set the result to a white cell coloring palette and a black cell coloring palette, respectively.

請求項2に記載の発明は、2次元コード画像を合成する対象となる被合成画像を生成する被合成画像生成ステップと、2次元コード化する文字を入力する文字入力ステップと、文字入力ステップにより入力された文字から2次元コード画像を生成し、指定された位置に指定された大きさで配置するコード画像生成ステップと、コード画像生成ステップにより生成された2次元コード画像を着色するコード画像着色ステップと、被合成画像生成ステップにより生成された被合成画像とコード画像着色ステップにより着色された2次元コード画像を合成する画像合成ステップとを備えた2次元コードを含む画像生成方法であって、コード画像着色ステップは、2次元コード画像の黒セルを着色する色を選択させる黒セル着色パレットを表示する黒セル着色パレット表示ステップと、2次元コード画像の指定された領域の黒セルを表示された黒セル着色パレットから選択された色に着色する黒セル着色ステップと、2次元コード画像の白セルを着色する色を選択させる白セル着色パレットを表示する白セル着色パレット表示ステップと、2次元コード画像の指定された領域の白セルを表示された白セル着色パレットから選択された色に着色する白セル着色ステップとを備え、生成された2次元コード画像の黒セルが着色された色から白セルを着色する色として選択可能な範囲を白セル着色パレットに設定する白セル着色選択範囲設定ステップと、生成された2次元コード画像の白セルが着色された色から黒セルを着色する色として選択可能な範囲を黒セル着色パレットに設定する黒セル着色選択範囲設定ステップとを有する2次元コードを含む画像生成方法である。
この発明によれば、2次元コード画像を合成する対象となる被合成画像を生成するとともに、入力文字から生成された2次元コードを指定された位置に指定された大きさで配列した2次元コード画像を生成し、生成された2次元コード画像を着色し、被合成画像と合成するので、2次元コード画像を被合成画像と自由に組合せて配置でき、ユーザによる2次元コードの利用率を向上させることができる。
また、この発明によれば、2次元コード画像の黒セルを着色する色を選択させる黒セル着色パレットと白セルを着色する色を選択させる白セル着色パレットを表示し、2次元コード画像の黒セルが着色された色から白セルを着色する色として選択可能な範囲を白セル着色パレットに設定し、2次元コード画像の白セルが着色された色から黒セルを着色する色として選択可能な範囲を黒セル着色パレットに設定するので、生成された2次元コード画像の黒セルを黒セル着色パレットの着色選択可能範囲から選択した色で着色し、生成された2次元コード画像の白セルを白セル着色パレットの着色選択可能範囲から選択した色で着色することで、誰でも容易に2次元コードの読取機能を損なうことなく2次元コードの着色して模様を形成できる。
尚、この場合においても、2次元コード読取装置において白セルと黒セルの分離のために特別な処理が行われている場合には、その処理に合わせて白セルと黒セルについて選択可能な色の範囲を求め、その結果をそれぞれ白セル着色パレットと黒セル着色パレットに設定するようにしてもよい。
According to a second aspect of the present invention, there is provided a combined image generating step for generating a combined image to be combined with a two-dimensional code image, a character input step for inputting a character to be two-dimensionally encoded, and a character input step. A code image generation step of generating a two-dimensional code image from input characters and arranging it at a specified position at a specified size, and a code image coloring for coloring the two-dimensional code image generated by the code image generation step An image generation method including a two-dimensional code, comprising: a step; and an image synthesis step of synthesizing the synthesized image generated by the synthesized image generation step and the two-dimensional code image colored by the code image coloring step, The code image coloring step displays a black cell coloring palette for selecting a color for coloring the black cells of the two-dimensional code image. A color coloring palette display step, a black cell coloring step for coloring a black cell in a specified area of the two-dimensional code image to a color selected from the displayed black cell coloring palette, and coloring a white cell of the two-dimensional code image A white cell coloring palette display step for displaying a white cell coloring palette for selecting a color to be selected, and a white cell for coloring a white cell in a specified area of the two-dimensional code image to a color selected from the displayed white cell coloring palette A white cell coloring selection range setting step for setting, in a white cell coloring palette, a range that can be selected as a color for coloring a white cell from a color in which black cells of the generated two-dimensional code image are colored, Black cell arrival setting for setting in the black cell coloring palette a range that can be selected as a color for coloring the black cell from the color in which the white cell of the generated two-dimensional code image is colored An image generation method comprising the 2-dimensional code and a selection range setting step.
According to the present invention, a two-dimensional code is generated in which a two-dimensional code image is generated and a two-dimensional code generated from an input character is arranged at a designated position at a designated position. Generates an image, colors the generated two-dimensional code image, and synthesizes it with the synthesized image, so that the two-dimensional code image can be placed in any combination with the synthesized image, improving the usage rate of the two-dimensional code by the user Can be made.
Further, according to the present invention, the black cell coloring palette for selecting the color for coloring the black cells of the two-dimensional code image and the white cell coloring palette for selecting the color for coloring the white cells are displayed, and the black of the two-dimensional code image is displayed. The range that can be selected as the color for coloring the white cell from the color in which the cell is colored is set in the white cell coloring palette, and the color that can be selected as the color for coloring the black cell from the color in which the white cell of the two-dimensional code image is colored Since the range is set to the black cell coloring palette, the black cells of the generated two-dimensional code image are colored with the color selected from the coloring selectable range of the black cell coloring palette, and the white cells of the generated two-dimensional code image are By coloring with a color selected from the color selection range of the white cell coloring palette, anyone can easily form a pattern by coloring the two-dimensional code without impairing the reading function of the two-dimensional code.
Even in this case, if a special process is performed for the separation of the white cell and the black cell in the two-dimensional code reader, colors that can be selected for the white cell and the black cell in accordance with the process. And the results may be set in a white cell coloring palette and a black cell coloring palette, respectively.

請求項3に記載の発明は、2次元コード画像を合成する対象となる被合成画像を生成する被合成画像生成ステップと、2次元コード化する文字を入力する文字入力ステップと、前記文字入力ステップにより入力された文字から2次元コード画像を生成し、指定された位置に指定された大きさで配置するコード画像生成ステップと、被合成画像生成ステップにより生成された被合成画像とコード画像生成ステップにより生成された2次元コード画像を合成する画像合成ステップとを備えた2次元コードを含む画像生成方法であって、画像合成ステップは、合成された画像について明度ヒストグラムを演算し、白セルとして許容される下限明度と黒セルとして許容される上限明度を決定する許容明度演算ステップと、合成された画像に含まれる2次元コード画像のうち、許容明度演算ステップにより演算された下限明度未満である白セルの明度を下限明度以上に補正し、許容明度演算ステップにより演算された上限明度を超える黒セルの明度を上限明度以下に補正する明度補正ステップとを有する2次元コードを含む画像生成方法である。
この発明によれば、2次元コード画像を合成する対象となる被合成画像を生成するとともに、入力文字から生成された2次元コードを指定された位置に指定された大きさで配列した2次元コード画像を生成し、生成された2次元コード画像を生成された被合成画像と合成するので、2次元コード画像を被合成画像と自由に組合せて配置でき、ユーザによる2次元コードの利用率を向上させることができる。
また、この発明によれば、合成された画像について明度ヒストグラムを求め、白セルとして許容される下限明度と黒セルとして許容される上限明度を演算し、明度が下限明度未満である白セルを下限明度以上となるように補正し、明度が上限明度を超える黒セルを上限明度以下に補正するので、誰でも容易に2次元コードの読取機能を損なうことなく2次元コード画像を着色して模様を形成したり、被合成画像と合成することができる。
尚、明度の補正は単に下限明度未満の白セルの明度を下限明度に固定し、上限明度を超える黒セルの明度を上限明度に固定するものでもよいが、例えば白セルの明度ヒストグラムの下限が下限明度となるようにガンマ補正し、黒セルの明度ヒストグラムの上限が上限明度となるようにガンマ補正するようにしてもよい。これにより、2次元コード画像の下限明度以下の白セルや上限明度を超える黒セルにおける明度差がある程度保存されるので、より自然な2次元コード画像が得られる。
According to a third aspect of the present invention, there is provided a composite image generation step for generating a composite image to be combined with a two-dimensional code image, a character input step for inputting a character to be two-dimensionally encoded, and the character input step. A code image generation step of generating a two-dimensional code image from the characters input by the step and arranging the two-dimensional code image at a specified position at a specified size, and a combined image and a code image generation step generated by the combined image generation step An image generation method including a two-dimensional code comprising a two-dimensional code image generated by the image synthesis step, wherein the image synthesis step calculates a lightness histogram for the synthesized image and allows it as a white cell. An allowable lightness calculation step for determining a lower lightness value to be set and an upper lightness value allowed as a black cell, and 2 included in the synthesized image In the original code image, the brightness of the white cell that is less than the lower limit lightness calculated in the allowable lightness calculation step is corrected to the upper limit lightness, and the lightness of the black cell that exceeds the upper limit lightness calculated in the allowable lightness calculation step An image generation method including a two-dimensional code having a brightness correction step to be corrected below.
According to the present invention, a two-dimensional code is generated in which a two-dimensional code image is generated and a two-dimensional code generated from an input character is arranged at a designated position at a designated position. Since the image is generated and the generated two-dimensional code image is combined with the generated combined image, the two-dimensional code image can be arranged in any combination with the combined image, and the utilization rate of the two-dimensional code by the user is improved. Can be made.
Further, according to the present invention, a brightness histogram is obtained for the synthesized image, a lower limit brightness allowed as a white cell and an upper limit brightness allowed as a black cell are calculated, and a white cell whose brightness is less than the lower limit brightness is set as the lower limit. Since the correction is made so that the brightness is equal to or higher than that, and the black cell whose brightness exceeds the upper limit brightness is corrected to be lower than the upper limit brightness, anyone can easily color the pattern by coloring the two-dimensional code image without impairing the reading function of the two-dimensional code. It can be formed or synthesized with the image to be synthesized.
The lightness correction may be performed by simply fixing the lightness of a white cell below the lower lightness to the lower lightness and fixing the lightness of a black cell exceeding the upper lightness to the upper lightness. Gamma correction may be performed so as to obtain the lower limit brightness, and gamma correction may be performed so that the upper limit of the brightness histogram of the black cell becomes the upper limit brightness. Thereby, the brightness difference in the white cells below the lower limit brightness of the two-dimensional code image or the black cells exceeding the upper limit brightness is preserved to some extent, so that a more natural two-dimensional code image can be obtained.

請求項4に記載の発明は、2次元コード画像を合成する対象となる被合成画像を生成する被合成画像生成ステップと、2次元コード化する文字を入力する文字入力ステップと、文字入力ステップにより入力された文字から2次元コード画像を生成し、指定された位置に指定された大きさで配置するコード画像生成ステップと、被合成画像生成ステップにより生成された被合成画像とコード画像生成ステップにより生成された2次元コード画像を合成する画像合成ステップとを備えた2次元コードを含む画像生成方法であって、画像合成ステップは、合成された画像について2値化処理を行った2値画像を生成する2値画像生成ステップと、2値画像生成ステップにより生成された2値画像をコード画像生成ステップにより生成された2次元コード画像と比較し、誤りを生じている2次元コード部分を抽出するコード読取確認ステップと、合成された画像のコード読取確認ステップにより抽出された2次元コード部分の明度を補正する明度補正ステップとを有する2次元コードを含む画像生成方法である。
この発明によれば、2次元コード画像を合成する対象となる被合成画像を生成するとともに、入力文字から生成された2次元コードを指定された位置に指定された大きさで配列した2次元コード画像を生成し、生成された2次元コード画像を生成された被合成画像と合成するので、2次元コード画像を被合成画像と自由に組合せて配置でき、ユーザによる2次元コードの利用率を向上させることができる。
また、この発明によれば、合成された画像について2値化処理を行って2値画像を生成し、生成された2値画像を元の2次元コード画像と比較し、誤りを生じている2次元コード部分を抽出し、合成された画像のうち誤りを生じている2次元コード部分の明度を補正するので、誰でも容易に2次元コードの読取機能を損なうことなく2次元コード画像を着色して模様を形成したり、被合成画像と合成することができる。
尚、明度の補正は、単に誤りを生じている白セルの明度を誤りが生じなくなるまで上昇させ、誤りを生じている黒セルの明度を誤りが生じなくなるまで下降させるようにしてもよいが、例えば誤りを生じているセル以外のセルを含めて誤りが発生しなくなるようにガンマ補正するようにしてもよい。これにより、2次元コード画像の誤りを生じているセルと誤りを生じていないセルの間の明度差がある程度保存されるので、より自然な2次元コード画像が得られる。
また、ここでいう2値化処理は、画面全体について一定のしきい値を用いて2値化するものでもよく、領域間でしきい値を動的に変化させて2値化するものでもよい。また、2次元コード読取装置が特殊な2値化処理を行っている場合には、それと同等の2値化処理を採用するようにしてもよい。
According to a fourth aspect of the present invention, there is provided a combined image generating step for generating a combined image to be combined with a two-dimensional code image, a character input step for inputting a character to be two-dimensionally encoded, and a character input step. A code image generation step of generating a two-dimensional code image from input characters and arranging it at a specified position at a specified size, and a combined image generated by the combined image generation step and a code image generation step An image generation method including a two-dimensional code including an image synthesis step for synthesizing the generated two-dimensional code image, wherein the image synthesis step includes a binary image obtained by performing binarization processing on the synthesized image. The binary image generation step to be generated and the binary image generated by the binary image generation step are converted into the two-dimensional code generated by the code image generation step. A code reading confirmation step for extracting a two-dimensional code portion in which an error has occurred in comparison with an image, and a lightness correction step for correcting the lightness of the two-dimensional code portion extracted by the code reading confirmation step of the synthesized image; An image generation method including a two-dimensional code having
According to the present invention, a two-dimensional code is generated in which a two-dimensional code image is generated and a two-dimensional code generated from an input character is arranged at a designated position at a designated position. Since the image is generated and the generated two-dimensional code image is combined with the generated combined image, the two-dimensional code image can be arranged in any combination with the combined image, and the utilization rate of the two-dimensional code by the user is improved. Can be made.
Further, according to the present invention, binarization processing is performed on the synthesized image to generate a binary image, and the generated binary image is compared with the original two-dimensional code image, resulting in an error 2 Since the dimension code part is extracted and the brightness of the two-dimensional code part in which an error has occurred in the synthesized image is corrected, anyone can easily color the two-dimensional code image without impairing the reading function of the two-dimensional code. Pattern can be formed or synthesized with the image to be synthesized.
The lightness correction may simply increase the lightness of the white cell causing the error until the error does not occur and decrease the lightness of the black cell causing the error until the error does not occur. For example, gamma correction may be performed so that an error does not occur including a cell other than the cell causing the error. As a result, the brightness difference between the cell in which the error of the two-dimensional code image has occurred and the cell in which no error has occurred is preserved to some extent, so that a more natural two-dimensional code image can be obtained.
Further, the binarization processing here may be binarization using a constant threshold for the entire screen, or binarization by dynamically changing the threshold between regions. . In addition, when the two-dimensional code reader performs a special binarization process, a binarization process equivalent to that may be adopted.

請求項5に記載の発明は、被合成画像生成ステップは、イラスト画像を生成するイラスト画像生成ステップを備え、イラスト画像生成ステップは、イラストを着色する色を選択させるイラスト着色パレットを表示するイラスト着色パレット表示ステップを有し、表示する文字を入力するステップと入力された文字をイラスト着色パレットから選択された色を用いて指定された位置に指定された大きさで配置するステップとを含む文字画像生成ステップと、あらかじめ登録されたイラストを選択するステップと選択されたイラストをイラスト着色パレットから選択された色を用いて指定された位置に指定された大きさで配置するステップとを含むイラスト生成ステップと、イラスト着色パレットから選択された色を用いてイラストを描画するイラスト描画ステップの少なくともいずれかを有する2次元コードを含む画像生成方法である。
この発明によれば、イラストを着色する色を選択させるイラスト着色パレットを用いて、入力された文字をイラスト着色パレットから選択された色で指定された位置に指定された大きさで配置する文字画像の生成と、あらかじめ登録されたイラストから選択されたイラストをイラスト着色パレットから選択された色で指定された位置に指定された大きさで配置するイラスト生成ステップと、イラスト着色パレットから選択された色で描画するイラスト描画の少なくともいずれかを有するので、2次元コード画像と合成するイラスト画像を容易に生成できる。
According to a fifth aspect of the present invention, the synthesized image generation step includes an illustration image generation step for generating an illustration image, and the illustration image generation step displays an illustration coloring palette for selecting a color for coloring the illustration. A character image including a palette display step, the step of inputting a character to be displayed, and the step of arranging the input character at a specified position at a specified position using a color selected from the illustration coloring palette An illustration generation step including: a generation step; a step of selecting a pre-registered illustration; and a step of arranging the selected illustration at a specified position at a specified position using a color selected from an illustration coloring palette And draw an illustration using the color selected from the illustration coloring palette. An image generation method comprising a two-dimensional code having at least one strike rendering step.
According to the present invention, a character image in which an input character is arranged at a specified size at a position specified by a color selected from the illustration coloring palette by using an illustration coloring palette for selecting a color for coloring the illustration. Generating illustrations, placing illustrations selected from pre-registered illustrations at the specified position in the specified position with the color selected from the illustration coloring palette, and the color selected from the illustration coloring palette Therefore, it is possible to easily generate an illustration image to be combined with the two-dimensional code image.

請求項6に記載の発明は、被合成画像生成ステップは、画像を読込む画像読込ステップと、画像読込ステップにより読込まれた画像の色彩を抽出する色彩抽出ステップと、抽出された色彩に調和する色彩を選定する調和色彩選定ステップとを有し、黒セル着色パレット表示ステップおよび/または白セル着色パレット表示ステップは、調和色彩設定ステップにより選定された色彩を表示するステップを有する2次元コードを含む画像生成方法である。
この発明によれば、被合成画像として画像を読込み、読込まれた画像の色彩を抽出して調和する色彩を選定して黒セル着色パレットや白セル着色パレットに設定するので、読込まれた画像に対して調和した2次元コード画像を容易に生成できる。
According to a sixth aspect of the present invention, the synthesized image generation step harmonizes with the extracted color, an image reading step for reading an image, a color extraction step for extracting the color of the image read by the image reading step, and the extracted color. A black cell coloring palette display step and / or a white cell coloring palette display step includes a two-dimensional code having a step of displaying the color selected by the harmonic color setting step. This is an image generation method.
According to the present invention, an image is read as a composite image, the colors of the read image are extracted and harmonized colors are selected and set in the black cell coloring palette or the white cell coloring palette. A harmonized two-dimensional code image can be easily generated.

請求項7に記載の発明は、被合成画像生成ステップは、画像を読込む画像読込ステップと、画像読込ステップにより読込まれた画像の色彩を抽出する色彩抽出ステップと、抽出された色彩に調和する色彩を選定する調和色彩選定ステップとを有し、イラスト着色パレット表示ステップは、調和色彩設定ステップにより選定された色彩を表示するステップを有する2次元コードを含む画像生成方法である。
この発明によれば、被合成画像として画像を読込み、読込まれた画像の色彩を抽出して調和する色彩を選定してイラスト着色パレットに設定するので、読込まれた画像に対して調和したイラスト画像を容易に生成できる。
According to the seventh aspect of the present invention, the synthesized image generation step harmonizes with the extracted color, the image reading step for reading the image, the color extracting step for extracting the color of the image read by the image reading step, and the extracted color. A color selection step for selecting a color, and the illustration coloring palette display step is an image generation method including a two-dimensional code including a step of displaying the color selected in the harmonic color setting step.
According to the present invention, an image is read as a composite image, the colors of the read image are extracted and the harmonized colors are selected and set in the illustration coloring palette. Therefore, the harmonized illustration image with respect to the read image Can be easily generated.

請求項8に記載の発明は、コンピュータに請求項1ないし請求項7のいずれかに記載の2次元コードを含む画像生成方法を実行させるためのプログラムである。
このプログラムを2次元コードを含む画像を生成するコンピュータに実行させることにより、各請求項が有する作用効果と同様の作用効果を奏する。
The invention according to claim 8 is a program for causing a computer to execute the image generation method including the two-dimensional code according to any one of claims 1 to 7.
By causing a computer that generates an image including a two-dimensional code to execute this program, the same effects as the effects provided by each claim can be obtained.

この発明によれば、2次元コードの読取機能を損なうことなく2次元コードを着色して模様を形成したり、写真やイラスト等の他の画像要素と組合せて配置することを誰でも容易に行うことができる。   According to the present invention, anyone can easily perform patterning by coloring a two-dimensional code without impairing the reading function of the two-dimensional code, or arranging it in combination with other image elements such as photographs and illustrations. be able to.

図1にこの発明の一実施形態にかかる画像生成処理により2次元コードを含む画像を生成する処理の全体の流れを示す。
最初に、画像読込み処理として、レイヤー1に対象となる画像を読込み(S10)、指定された位置に指定された大きさで配置し(S12)、適宜画像の修正や強調処理等を行う画像補正処理(S14)や画像の一部を削除したり透明色に変えるマスク処理(S16)を行う。そして、対象画像の色彩を抽出し、2次元コード画像の黒セルを着色する色を選択させる黒セル着色パレット、2次元コード画像の白セルを着色する色を選択させる白セル着色パレット、イラストを着色する色を選択させるイラスト着色パレットに調和する色彩を設定し(S18)、次のコード画像生成処理に進む。
コード画像生成処理では、2次元コード化する文字を入力し(S20)、入力された文字を2次元コードに変換してレイヤー2に2次元コード画像を生成し(S22)、指定された位置に指定された大きさで配列する(S24)。これにより、生成された2次元コードは画面内の希望する位置に希望する大きさで配置でき、必要に応じて画面内の指定領域に配列できる。そして、黒セル着色パレットから黒セルを着色する色を選択し(S26)、2次元コード画像の指定された領域の黒セルを選択された色で着色する(S28)。黒セルを着色したらそれまでに黒セルが着色された色から白セルを着色する色として選択可能な範囲を白セル着色パレットに設定する(S30)。同様に、白セル着色パレットから白セルを着色する色を選択し(S32)、2次元コード画像の指定された領域の白セルを選択された色で着色する(S34)。白セルを着色したらそれまでに白セルが着色された色から黒セルを着色する色として選択可能な範囲を黒セル着色パレットに設定する(S36)。以上のような黒セルの着色と白セルの着色を必要回数繰り返し(S38)、2次元コードの着色が完了したら、次のイラスト画像生成処理に進む。
イラスト画像生成処理では、レイヤー3にイラスト画像を生成し(S40)、次の画像の合成処理に進む。尚、イラスト画像生成処理の詳細は後述する。
画像の合成処理では、各レイヤーの画像を合成する際の前後関係や半透明合成をする際の透明度を設定し(S42)、各レイヤーの画像を合成する(S44)。そして、合成された画像について明度ヒストグラムを求めてコード読取チェックを行い(S46)、誤りを生じている2次元コード部分がある場合には後述の明度補正処理を行う(S48)。
以上の処理を繰り返し(S50)、所望の合成画像が得られたら合成画像を印刷し(S52)、処理を終了する。
以下、各処理の詳細について説明する。
FIG. 1 shows an overall flow of processing for generating an image including a two-dimensional code by image generation processing according to an embodiment of the present invention.
First, as an image reading process, an image to be read is read into layer 1 (S10), arranged in a specified size at a specified position (S12), and image correction is performed such as image correction or enhancement processing as appropriate. A process (S14) and a mask process (S16) for deleting a part of the image or changing to a transparent color are performed. Then, a color of the target image is extracted, a black cell coloring palette for selecting a color for coloring a black cell of the two-dimensional code image, a white cell coloring palette for selecting a color for coloring a white cell of the two-dimensional code image, an illustration A color that matches the illustration coloring palette for selecting a color to be colored is set (S18), and the process proceeds to the next code image generation process.
In the code image generation process, a character to be two-dimensionally encoded is input (S20), the input character is converted into a two-dimensional code, and a two-dimensional code image is generated in layer 2 (S22). Arrange in the designated size (S24). Thereby, the generated two-dimensional code can be arranged in a desired size at a desired position in the screen, and can be arranged in a designated area in the screen as necessary. Then, a color for coloring the black cell is selected from the black cell coloring palette (S26), and the black cell in the designated area of the two-dimensional code image is colored with the selected color (S28). When the black cell is colored, a range that can be selected as a color for coloring the white cell from the color in which the black cell has been colored is set in the white cell coloring palette (S30). Similarly, a color for coloring the white cell is selected from the white cell coloring palette (S32), and the white cell in the designated area of the two-dimensional code image is colored with the selected color (S34). When the white cell is colored, a range that can be selected as a color for coloring the black cell from the color in which the white cell has been colored is set in the black cell coloring palette (S36). The above black cell coloring and white cell coloring are repeated as many times as necessary (S38), and when the two-dimensional code coloring is completed, the process proceeds to the next illustration image generation process.
In the illustration image generation process, an illustration image is generated in layer 3 (S40), and the process proceeds to the next image composition process. Details of the illustration image generation process will be described later.
In the image composition process, the context in composition of the images of each layer and the transparency in the translucent composition are set (S42), and the images of each layer are composed (S44). Then, a lightness histogram is obtained for the synthesized image and a code reading check is performed (S46), and if there is a two-dimensional code part causing an error, a lightness correction process described later is performed (S48).
The above processing is repeated (S50). When a desired composite image is obtained, the composite image is printed (S52), and the processing is terminated.
Details of each process will be described below.

図2にこの発明の一実施形態にかかる画像生成処理のメニュー処理のフローを示す。メニュー処理では、2次元コードを含む画像を生成するために必要な個別処理を起動するとともに画像の合成処理、コード読取確認処理、明度補正処理を行う。
最初に、図6に示すようなメニュー画面を表示する(S100)。メニュー画面には、対象となる商品の写真等の対象画像を読込む画像読込み処理を起動する画像の読込みボタン、2次元コード画像を生成するコード画像生成処理を起動するコード画像の生成ボタン、イラスト画像を生成するイラスト画像生成処理を起動するイラスト画像の生成ボタン、生成された各画像を合成する画像の合成ボタン、合成された画像における2次元コードの読取りをチェックするコード読取チェックボタン、合成された画像における2次元コードを読取れるように明度を補正する自動明度補正ボタン、合成された画像を印刷する画像の印刷ボタン、生成された各画像を保存する画像の保存ボタン、処理を終了する終了ボタンを備える。また、コード読取チェックにおけるヒストグラム演算条件としてヒストグラムを全画面で求めるか個別コードについて求めるかを選択するチェックボックスと、自動明度補正処理における補正条件として全コードを一括で補正するか読取不良のコードのみを補正するかを選択するチェックボックスとを備える。
メニュー画面において、画像の読込みボタンが選択されると(S102)、後述の画像の読込み処理を起動し(S104)、コード画像の生成ボタンが選択されると(S106)、後述のコード画像生成処理を起動し(S108)、イラスト画像の生成ボタンが選択されると(S110)、後述のイラスト画像生成処理を起動し(S112)、画像の合成ボタンが選択されると(S114)、各レイヤーの画像を合成して合成画像を生成する(S116)。また、コード読取チェックボタンが選択されると(S118)、ヒストグラム演算条件のチェックボックスの指定に従って生成された合成画像の明度ヒストグラム演算を行い(S120)、2次元コードを読取るためのしきい値を決定する(S122)。ここで、しきい値の決定ができない場合は、読取不能メッセージを出す(S126)。しきい値の決定ができた場合は、そのしきい値を用いて合成画像の2次元コード画像部分について各セルが黒セルか白セルかを判定し、2次元コード画像生成処理において生成された2次元コードと比較し、読取不良コードを検出して表示する(S128)。また、自動明度補正ボタンが選択されると(S130)、補正条件のチェックボックスの指定に従って合成画像の2次元コード画像部分の明度補正処理を行い(S132)、画像の印刷ボタンが選択されると(S134)、合成画像を印刷し(S136)、画像の保存ボタンが選択されると(S138)、各レイヤーの画像データを保存し(S140)、終了ボタンが選択されると(S142)、処理を終了する。
FIG. 2 shows a flow of menu processing of image generation processing according to an embodiment of the present invention. In the menu processing, individual processing necessary for generating an image including a two-dimensional code is started, and image composition processing, code reading confirmation processing, and brightness correction processing are performed.
First, a menu screen as shown in FIG. 6 is displayed (S100). The menu screen includes an image reading button for starting an image reading process for reading a target image such as a photograph of a target product, a code image generation button for starting a code image generation process for generating a two-dimensional code image, and an illustration. An illustration image generation button for starting an illustration image generation process for generating an image, an image combination button for combining the generated images, a code reading check button for checking reading of a two-dimensional code in the combined image, Automatic brightness correction button for correcting the brightness so that the two-dimensional code in the image can be read, an image print button for printing the synthesized image, an image save button for saving each generated image, and an end to end the processing Provide buttons. In addition, a check box for selecting whether the histogram is to be obtained for the entire screen or for individual codes as the histogram calculation condition in the code reading check, and all codes are corrected at once as correction conditions in the automatic brightness correction processing, or only badly read codes And a check box for selecting whether to correct.
When an image reading button is selected on the menu screen (S102), an image reading process described later is started (S104). When a code image generation button is selected (S106), a code image generating process described later is performed. (S108), when an illustration image generation button is selected (S110), an illustration image generation process described later is started (S112). When an image composition button is selected (S114), The images are combined to generate a combined image (S116). When the code reading check button is selected (S118), the brightness histogram calculation of the synthesized image generated according to the designation of the check box of the histogram calculation condition is performed (S120), and the threshold value for reading the two-dimensional code is set. Determine (S122). If the threshold value cannot be determined, an unreadable message is issued (S126). When the threshold value can be determined, the threshold value is used to determine whether each cell is a black cell or a white cell in the two-dimensional code image portion of the composite image, and the two-dimensional code image generation process generates the threshold value. Compared with the two-dimensional code, a defective reading code is detected and displayed (S128). When the automatic brightness correction button is selected (S130), brightness correction processing is performed on the two-dimensional code image portion of the composite image according to the specification of the check box of the correction condition (S132), and when the image print button is selected. (S134), the composite image is printed (S136), when the save image button is selected (S138), the image data of each layer is saved (S140), and when the end button is selected (S142), the processing Exit.

図11に明度ヒストグラム演算結果からしきい値を決定し、明度補正を行う処理の一例を示す。図の(a)はヒストグラム演算条件が「個別コード」の場合の例であり、合成画像の各2次元コード部分について、黒セルの明度ヒストグラムaと白セルの明度ヒストグラムbを求め、各ヒストグラムa,bのピークP1,P2からしきい値m0を設定し、黒セルの判定と白セルの判定に一定の尤度を持たせるため、黒セル上限明度m1をm0から一定レベル下に設定し、白セル下限明度m2をm0から一定レベル上に設定する。そして、明度補正処理では、黒セルの明度ヒストグラムaの上限明度を黒セル上限明度m1以下となるようにガンマ補正し、白セルの明度ヒストグラムbの下限明度を白セル下限明度m2以上となるようにガンマ補正する。ガンマ補正は、黒セルの明度ヒストグラムを例えばcのように補正し、白セルの明度ヒストグラムを例えばdのように補正する。これにより、合成画像の2次元コード画像部分の黒セルと白セルが一定の尤度を持って正しく判定できるようになる。尚、ヒストグラム演算条件が「個別コード」の場合は、合成画像の各2次元コード画像部分について個別に明度ヒストグラムを演算するので、明度補正処理は各2次元コード画像について個別に行うことになり、補正条件は必然的に「不良コードのみ」に限定される。
一方、図の(b)はヒストグラム演算条件が「全画面」の場合の例であり、合成画像全体の明度ヒストグラムeを求め、黒セルのピークP1’と白セルのピークP2’を検出し、これから(a)の場合と同様にしきい値m0’、黒セル上限明度m1’白セル下限明度m2’を設定し、明度補正処理を行う。この場合の明度補正処理は、補正条件が「全コード一括」の場合は合成画像の全2次元コード部分について一括して明度補正処理を行い、補正条件が「不良コードのみ」の場合は読取不良が検出された2次元コード部分についてのみ明度補正処理を行う。これにより、ユーザが合成画像全体を撮影した場合にでも2次元コード画像を正しく読取ることができる画像を生成することができる。
尚、合成画像全体の明度ヒストグラムから黒セルのピークや白セルのピークが検出できない場合や、適切なしきい値を決定できない場合には、読取不能メッセージを出す。
FIG. 11 shows an example of processing for determining the threshold value from the brightness histogram calculation result and performing brightness correction. (A) of the figure is an example in the case where the histogram calculation condition is “individual code”. For each two-dimensional code portion of the composite image, the lightness histogram a of the black cell and the lightness histogram b of the white cell are obtained. , B to set a threshold value m0 from the peaks P1 and P2, and in order to give a certain likelihood to black cell determination and white cell determination, the black cell upper limit lightness m1 is set to a certain level below m0, The white cell lower limit lightness m2 is set to a certain level above m0. Then, in the lightness correction process, gamma correction is performed so that the upper limit lightness of the black cell lightness histogram a is equal to or lower than the black cell upper lightness m1, and the lower lightness of the white cell lightness histogram b is equal to or higher than the white cell lower lightness m2. Gamma correction. In the gamma correction, the brightness histogram of a black cell is corrected, for example, as c, and the brightness histogram of a white cell is corrected, for example, as d. As a result, the black cell and the white cell of the two-dimensional code image portion of the composite image can be correctly determined with a certain likelihood. When the histogram calculation condition is “individual code”, the brightness histogram is calculated individually for each two-dimensional code image portion of the composite image, so the brightness correction processing is performed individually for each two-dimensional code image. The correction condition is inevitably limited to “defect code only”.
On the other hand, (b) in the figure is an example in the case where the histogram calculation condition is “full screen”, the lightness histogram e of the entire composite image is obtained, the peak P1 ′ of the black cell and the peak P2 ′ of the white cell are detected, As in the case of (a), the threshold value m0 ′, the black cell upper limit lightness m1 ′ and the white cell lower limit lightness m2 ′ are set, and the lightness correction process is performed. In this case, the brightness correction processing is performed collectively for all the two-dimensional code portions of the composite image when the correction condition is “all code batch”, and when the correction condition is “only defective code”, reading failure is performed. The brightness correction process is performed only for the two-dimensional code portion in which is detected. As a result, it is possible to generate an image that can correctly read the two-dimensional code image even when the user captures the entire composite image.
If a black cell peak or a white cell peak cannot be detected from the brightness histogram of the entire composite image, or if an appropriate threshold value cannot be determined, an unreadable message is issued.

図3にこの発明の一実施形態にかかる画像生成処理の画像の読込み処理(S200)のフローを示す。
最初に、図7に示すような画像の読込み処理画面を表示する(S202)。画像の読込み処理画面には、商品の写真等の対象画像を読込む画像読込みボタン、読込まれた画像の色補正や強調処理等の画像補正処理を行う画像処理ボタン、読込まれた画像の一部をマスクして透明設定するマスク処理ボタン、選択された画像を削除する削除ボタン、1つ前の状態に戻すための戻るボタン、読込まれた画像の色彩に調和する色を選択して後述の各着色パレットに設定するパレット設定ボタン、レイヤーの前後関係を設定するレイヤー設定ボタン、レイヤーを半透明合成するための透明度を設定する透明度設定スライドバー、画像の読込み処理を終了させる終了ボタンを備える。
画像の読込み処理画面において、画像読込みボタンが選択されると(S204)、あらかじめ登録された画像から選択された対象画像をレイヤー1に読込む(S206)。読込まれた画像がマウス等によりドラグされると(S208)、ドラグに従って画像の移動・サイズの変更を行う(S210)。また、画像処理ボタンが選択されると(S212)、画像補正処理を起動して読込まれた画像の補正処理を行い(S214)、マスク処理ボタンが選択されると(S216)、画像マスク処理を起動して読込まれた画像のマスク処理を行う(S218)。尚、画像補正処理や画像マスク処理は一般的なレタッチ処理と同様であるので、説明は省略する。また、削除ボタンが選択されると(S220)、選択された画像を削除し(S222)、戻るボタンが選択されると(S224)、1つ前の状態に戻す(S226)。また、パレット設定ボタンが選択されると(S228)、読込まれた画像の色彩を抽出し(S230)、図12に示すような色彩調和マトリックスを参照して調和する色彩を選定し(S232)、後述の黒セル着色パレット・白セル着色パレット・イラスト着色パレットの各色彩選択パレットにおいて選択可能な色を設定する(S234)。また、レイヤー設定ボタンが選択されると(S236)、レイヤー1の前後関係を指定された状態に変更し(S238)、透明度設定のスライドバーがドラグされると(S240)、レイヤー1の透明度を指定された透明度に変更し(S242)、終了ボタンが選択されると(S244)、画像の読込み処理を終了する。
FIG. 3 shows a flow of the image reading process (S200) of the image generation process according to the embodiment of the present invention.
First, an image reading process screen as shown in FIG. 7 is displayed (S202). The image reading processing screen includes an image reading button for reading a target image such as a product photo, an image processing button for performing image correction processing such as color correction and enhancement processing of the read image, and a part of the read image. Mask processing button to mask and set transparency, Delete button to delete the selected image, Back button to return to the previous state, Select a color that matches the color of the read image A palette setting button for setting the color palette, a layer setting button for setting the layer context, a transparency setting slide bar for setting the transparency for semi-transparent composition of the layers, and an end button for ending the image reading process are provided.
When an image reading button is selected on the image reading processing screen (S204), a target image selected from pre-registered images is read into layer 1 (S206). When the read image is dragged by a mouse or the like (S208), the image is moved and the size is changed according to the drag (S210). When the image processing button is selected (S212), the image correction process is activated to correct the read image (S214). When the mask processing button is selected (S216), the image mask process is performed. Masking of the image that is activated and read is performed (S218). Note that the image correction process and the image mask process are the same as the general retouch process, and a description thereof will be omitted. When the delete button is selected (S220), the selected image is deleted (S222), and when the return button is selected (S224), the previous state is restored (S226). When the palette setting button is selected (S228), the color of the read image is extracted (S230), and the color to be harmonized is selected with reference to the color harmony matrix as shown in FIG. 12 (S232). Selectable colors are set in each of the color selection palettes of a black cell coloring palette, a white cell coloring palette, and an illustration coloring palette described later (S234). When the layer setting button is selected (S236), the context of layer 1 is changed to the specified state (S238). When the transparency setting slide bar is dragged (S240), the transparency of layer 1 is changed. When the transparency is changed to the designated transparency (S242) and the end button is selected (S244), the image reading process is terminated.

図12に示すように、色彩調和マトリックスには被合成画像の色彩に対して黒セル調和色彩、白セル調和色彩、イラスト調和色彩があらかじめ登録される。ここでは、被合成画像の色彩として抽出された色彩に対して、黒セル調和色彩、白セル調和色彩、イラスト調和色彩として推奨される色彩の組合せを複数登録するようにしているが、これは黒セルと白セルとイラストを統一の取れた色彩で着色できるようにしたものであり、後述の黒セルの着色、白セルの着色、イラストの着色において色彩が選択されたときに、各パレットの色彩選択パレットに設定される色彩を色彩調和マトリックスに登録されている組合せに従って最も推奨される色彩を先頭に表示する。
尚、色彩調和マトリックスにおける色彩の組合せに対して番号を付し、各パレットにおいて番号を指定することで色彩調和マトリックスから対応する色彩を抽出して各パレットに設定するようにしてもよい。これにより、推奨される色の組合せが明確になり、ユーザが調和する色彩をより容易に選択できる。
As shown in FIG. 12, in the color harmony matrix, a black cell harmony color, a white cell harmony color, and an illustration harmony color are registered in advance for the colors of the synthesized image. Here, a plurality of combinations of colors recommended as the black cell harmony color, the white cell harmony color, and the illustration harmony color are registered with respect to the color extracted as the color of the synthesized image. The cell, white cell, and illustration can be colored in a uniform color, and when a color is selected in the black cell coloring, white cell coloring, or illustration coloring described later, the color of each palette According to the combination registered in the color harmony matrix, the color recommended in the selection palette is displayed at the top.
Note that a number may be assigned to the combination of colors in the color harmony matrix, and the corresponding color may be extracted from the color harmony matrix by setting the number in each palette, and set in each palette. As a result, the recommended combination of colors becomes clear, and the colors that the user can harmonize with can be selected more easily.

図4にこの発明の一実施形態にかかる画像生成処理のコード画像生成処理(S300)のフローを示す。
最初に、図8に示すようなコード画像生成処理画面を表示する(S302)。コード画像生成処理画面には、コード化する文字を入力する文字入力枠、2次元コードのセルサイズを入力するセルサイズ入力枠、入力された文字から入力されたセルサイズの2次元コード画像を生成するコード画像生成ボタン、2次元コード画像の指定された領域の黒セルを着色する黒セル着色ボタン、2次元コード画像の指定された領域の白セルを着色する白セル着色ボタン、2次元コード画像を指定された領域に配列するコード画像配列ボタン、選択された2次元コード画像を削除する削除ボタン、1つ前の状態に戻すための戻るボタン、レイヤーの前後関係を設定するレイヤー設定ボタン、レイヤーを半透明合成するための透明度を設定する透明度設定スライドバー、コード画像生成処理を終了させる終了ボタンを備える。また、黒セル着色ボタンの横には黒セルを着色する選択色が表示され、これが選択されると黒セル着色パレットが表示され、黒セルを着色する色の選択が可能となる。同様に、白セル着色ボタンの横には白セルを着色する選択色が表示され、これが選択されると白セル着色パレットが表示され、白セルを着色する色の選択が可能となる。
図10の(1)(2)にそれぞれ黒セル着色パレットと白セル着色パレットの一例を示す。図のように、黒セル着色パレットと白セル着色パレットにはそれぞれ色彩を選択させる色彩選択パレットと選択された色彩について明度を選択させる明度選択パレットが表示され、色彩選択パレットを用いて色彩を選択し、選択された色彩について明度選択パレットを用いて明度を選択することにより選択色が決定される。また、黒セル着色パレットと白セル着色パレットの各明度選択パレットには、明度選択範囲が上限明度と下限明度として表示され、その範囲の明度を選択する限り、着色された2次元コード画像は通常そのままで正しく読取ることができる。尚、ここで指定された明度選択範囲以外の色を選択することも可能であり、その場合でも前述の自動明度補正処理を用いて合成画像の2次元コード部分の明度を補正することによって2次元コードの読取機能を確保することができる。
また、黒セル着色パレットと白セル着色パレットには初期化ボタンと追加色ボタンが備えられ、初期化ボタンが選択されると色彩選択パレットは全色彩が選択可能な状態に初期化され、追加色ボタンが選択されると現在表示されている色彩に対して追加する色を作成する画面が表示されて任意の色を追加できる。
FIG. 4 shows a flow of the code image generation process (S300) of the image generation process according to the embodiment of the present invention.
First, a code image generation processing screen as shown in FIG. 8 is displayed (S302). On the code image generation processing screen, a character input frame for inputting characters to be encoded, a cell size input frame for inputting the cell size of the two-dimensional code, and a two-dimensional code image of the cell size input from the input characters are generated. Code image generation button to perform, black cell coloring button to color black cells in a specified area of a two-dimensional code image, white cell coloring button to color white cells in a specified area of a two-dimensional code image, two-dimensional code image Code image arrangement button that arranges in the specified area, delete button to delete the selected 2D code image, return button to return to the previous state, layer setting button to set the layer context, layer Is provided with a transparency setting slide bar for setting the transparency for semi-transparent synthesis, and an end button for ending the code image generation process. Further, a selection color for coloring a black cell is displayed beside the black cell coloring button, and when this is selected, a black cell coloring palette is displayed, and a color for coloring the black cell can be selected. Similarly, a selection color for coloring a white cell is displayed beside the white cell coloring button, and when this is selected, a white cell coloring palette is displayed, and a color for coloring the white cell can be selected.
FIGS. 10A and 10B show examples of the black cell coloring palette and the white cell coloring palette, respectively. As shown in the figure, the black cell coloring palette and the white cell coloring palette each display a color selection palette for selecting a color and a lightness selection palette for selecting the lightness of the selected color. Select a color using the color selection palette. The selected color is determined by selecting the lightness for the selected color using the lightness selection palette. In addition, in the brightness selection palettes of the black cell coloring palette and the white cell coloring palette, the brightness selection range is displayed as the upper limit brightness and the lower limit brightness. As long as the brightness of the range is selected, the colored two-dimensional code image is usually It can be read correctly as it is. Note that it is possible to select a color other than the brightness selection range specified here, and even in that case, a two-dimensional code can be obtained by correcting the brightness of the two-dimensional code portion of the composite image using the automatic brightness correction process described above. A code reading function can be secured.
Also, the black cell coloring palette and the white cell coloring palette are equipped with an initialization button and an additional color button.When the initialization button is selected, the color selection palette is initialized so that all colors can be selected, and additional colors are added. When the button is selected, a screen for creating a color to be added to the currently displayed color is displayed, and an arbitrary color can be added.

コード画像生成処理画面において、コード画像生成ボタンが選択されると(S304)、文字入力枠に入力された文字を入力し(S306)、セルサイズ入力枠に入力されたセルサイズを入力し(S308)、入力された文字を入力されたセルサイズで2次元コード化し、レイヤー2に2次元コード画像を生成する(S310)。尚、2次元コード画像の生成は使用する2次元コードの規格に基いて行う。生成された2次元コード画像がマウス等によりドラグされると(S312)、ドラグに従って画像の移動・サイズの変更を行う(S314)。また、黒セル選択色が選択されると(S316)、黒セル着色パレットを表示し(S318)、表示された黒セル着色パレットから黒セルを着色する色が選択され、黒セルを着色する領域がマウス等により設定された後、黒セル着色ボタンが選択されると(S320)、指定された領域の黒セルを指定された選択色で着色する(S322)。そして、それまでに着色された黒セル選択色のうち最も高い明度から一定レベル上に白セル下限明度を設定する(S324)。また、白セル選択色が選択されると(S326)、白セル着色パレットを表示し(S328)、表示された白セル着色パレットから白セルを着色する色が選択され、白セルを着色する領域がマウス等により設定された後、白セル着色ボタンが選択されると(S330)、指定された領域の白セルを指定された選択色で着色する(S332)。そして、それまでに着色された白セルの選択色のうち最も低い明度から一定レベル下に黒セル上限明度を設定する(S334)。これにより、黒セルを着色する色を黒セル上限明度以下から選択し、白セルを着色する色を白セル下限明度以上から選択することで、着色された2次元コード画像は一定の尤度を持って読取ることが可能となる。また、コード画像配列ボタンが選択されると(S336)、選択された2次元コード画像をマウス等により指定された領域に配列し(S338)、削除ボタンが選択されると(S340)、選択された2次元コード画像を削除し(S342)、戻るボタンが選択されると(S344)、1つ前の状態に戻し(S346)、レイヤー設定ボタンが選択されると(S348)、レイヤー2の前後関係を指定された状態に変更し(S350)、透明度設定のスライドバーがドラグされると(S352)、レイヤー2の透明度を指定された透明度に変更し(S354)、終了ボタンが選択されると(S356)、コード画像の生成処理を終了する。   When the code image generation button is selected on the code image generation processing screen (S304), the characters input in the character input frame are input (S306), and the cell size input in the cell size input frame is input (S308). ), The input characters are two-dimensionally encoded with the input cell size, and a two-dimensional code image is generated in layer 2 (S310). The two-dimensional code image is generated based on the standard of the two-dimensional code to be used. When the generated two-dimensional code image is dragged with a mouse or the like (S312), the image is moved and / or changed in size according to the drag (S314). When the black cell selection color is selected (S316), the black cell coloring palette is displayed (S318), and the color for coloring the black cell is selected from the displayed black cell coloring palette, and the black cell is colored. When the black cell coloring button is selected after setting with the mouse or the like (S320), the black cells in the designated area are colored with the designated selection color (S322). Then, the white cell lower limit lightness is set above a certain level from the highest lightness among the black cell selection colors that have been colored so far (S324). When a white cell selection color is selected (S326), a white cell coloring palette is displayed (S328), and a color for coloring the white cell is selected from the displayed white cell coloring palette, and the white cell is colored. When the white cell coloring button is selected after setting with the mouse or the like (S330), the white cell in the designated area is colored with the designated selection color (S332). Then, the black cell upper limit lightness is set below a certain level from the lowest lightness among the selection colors of the white cells colored so far (S334). Thus, by selecting a color for coloring a black cell from the black cell upper limit lightness or less and selecting a color for coloring the white cell from the white cell lower limit lightness or higher, the colored two-dimensional code image has a certain likelihood. It can be read by holding. When the code image arrangement button is selected (S336), the selected two-dimensional code image is arranged in an area designated by a mouse or the like (S338), and when the delete button is selected (S340), the selection is made. When the return button is selected (S344), the previous state is returned (S346), and when the layer setting button is selected (S348), before and after layer 2 is deleted. When the relationship is changed to the designated state (S350) and the slide bar for transparency setting is dragged (S352), the transparency of layer 2 is changed to the designated transparency (S354), and the end button is selected. (S356), the code image generation process ends.

図5にこの発明の一実施形態にかかる画像生成処理のイラスト画像生成処理(S400)の処理フローを示す。
最初に、図9に示すようなイラスト画像生成処理画面を表示する(S402)。イラスト画像生成処理画面には、あらかじめ登録されたイラスト画像を読込むためのイラスト読込みボタン、イラストの要素となる図形を発生させる図形ボタン、文字を入力して文字画像を生成するための文字ボタン、マウス等を用いてイラストを描画するためのブラシボタン、マウス等を用いて不用部分を消去するための消ゴムボタン、選択された画像を削除する削除ボタン、1つ前の状態に戻すための戻るボタン、レイヤーの前後関係を設定するレイヤー設定ボタン、レイヤーを半透明合成するための透明度を設定する透明度設定スライドバー、コード画像生成処理を終了させる終了ボタンを備える。また、イラストを着色する色を選択するためのイラスト選択色が表示され、これを選択することでイラスト着色パレットが表示され、イラストを着色する色の選択が可能となる。
図10の(3)にイラスト着色パレットの一例を示す。イラスト着色パレットには、黒セル着色パレットや白セル着色パレットと同様に色彩を選択させる色彩選択パレットと選択された色彩について明度を選択させる明度選択パレットが表示され、色彩選択パレットを用いて色彩を選択し、選択された色彩について明度選択パレットを用いて明度を選択することにより選択色が決定される。また、黒セル着色パレットや白セル着色パレットと同様に初期化ボタンと追加色ボタンが備えられ、初期化ボタンが選択されると色彩選択パレットは全色彩が選択可能な状態に初期化され、追加色ボタンが選択されると現在表示されている色彩に対して追加する色を作成する画面が表示されて任意の色を追加できる。
FIG. 5 shows a process flow of the illustration image generation process (S400) of the image generation process according to the embodiment of the present invention.
First, an illustration image generation processing screen as shown in FIG. 9 is displayed (S402). The illustration image generation processing screen includes an illustration reading button for reading a pre-registered illustration image, a graphic button for generating a graphic as an element of the illustration, a character button for generating a character image by inputting characters, a mouse, etc. Brush button for drawing an illustration using, Eraser button for erasing unnecessary part using mouse etc., Delete button for deleting selected image, Back button for returning to the previous state, Layer Are provided with a layer setting button for setting the front and back relationship, a transparency setting slide bar for setting the transparency for semi-transparent composition of the layers, and an end button for ending the code image generation process. Also, an illustration selection color for selecting a color for coloring the illustration is displayed, and by selecting this, an illustration coloring palette is displayed, and a color for coloring the illustration can be selected.
FIG. 10 (3) shows an example of an illustration coloring palette. The illustration coloring palette displays a color selection palette for selecting colors as well as a black cell coloring palette and a white cell coloring palette, and a brightness selection palette for selecting the brightness of the selected colors. Colors can be selected using the color selection palette. The selected color is determined by selecting and selecting the lightness for the selected color using the lightness selection palette. Also, as with the black cell coloring palette and white cell coloring palette, an initialization button and an additional color button are provided, and when the initialization button is selected, the color selection palette is initialized so that all colors can be selected and added. When the color button is selected, a screen for creating a color to be added to the currently displayed color is displayed, and an arbitrary color can be added.

イラスト画像生成処理画面において、イラスト読込みボタンが選択されると(S4040)、あらかじめ登録されている画像から選択されたイラスト画像をレイヤー3に読込む(S406)。生成されたイラスト画像がマウス等によりドラグされると(S408)、ドラグに従って画像の移動・サイズの変更を行う(S410)。また、イラスト選択色が選択されるとイラスト着色パレットを表示し(S414)、表示されたイラスト着色パレットにより選択された選択色を用いてイラストや文字が描画される。また、図形ボタンが選択されると(S416)、図形選択画面(図示省略)を表示し(S418)、図形選択画面において選択された図形を選択されたイラスト選択色で生成し(S420)、文字ボタンが選択されると(S422)、文字入力画面(図示省略)を表示し(S424)、入力された文字の文字画像を指定されたフォントで選択されたイラスト選択色で生成する(S426)。また、ブラシボタンが選択されると(S428)、マウス等によりドラグされた軌跡に沿って選択されたイラスト選択色で描画し(S430)、消しゴムボタンが選択されると(S432)、マウス等によりドラグされた軌跡に沿ってイラスト画像を消去する(S434)。また、削除ボタンが選択されると(S436)、選択された2次元コード画像を削除し(S438)、戻るボタンが選択されると(S440)、1つ前の状態に戻し(S442)、レイヤー設定ボタンが選択されると(S444)、レイヤー3の前後関係を指定された状態に変更し(S446)、透明度設定のスライドバーがドラグされると(S448)、レイヤー3の透明度を指定された透明度に変更し(S450)、終了ボタンが選択されると(S452)、イラスト画像の生成処理を終了する。   When an illustration reading button is selected on the illustration image generation processing screen (S4040), an illustration image selected from pre-registered images is read into layer 3 (S406). When the generated illustration image is dragged by a mouse or the like (S408), the image is moved and / or changed in size according to the drag (S410). When an illustration selection color is selected, an illustration coloring palette is displayed (S414), and illustrations and characters are drawn using the selection color selected by the displayed illustration coloring palette. When a graphic button is selected (S416), a graphic selection screen (not shown) is displayed (S418), and the graphic selected on the graphic selection screen is generated with the selected illustration selection color (S420). When the button is selected (S422), a character input screen (not shown) is displayed (S424), and a character image of the input character is generated with an illustration selection color selected with a designated font (S426). When the brush button is selected (S428), drawing is performed with the illustration selection color selected along the locus dragged by the mouse or the like (S430), and when the eraser button is selected (S432), the mouse or the like is used. The illustration image is erased along the dragged locus (S434). When the delete button is selected (S436), the selected two-dimensional code image is deleted (S438), and when the return button is selected (S440), the previous state is restored (S442). When the setting button is selected (S444), the context of layer 3 is changed to the specified state (S446), and when the transparency setting slide bar is dragged (S448), the transparency of layer 3 is specified. When the transparency is changed (S450) and the end button is selected (S452), the illustration image generation process ends.

以上のような処理をプログラム化し、例えばパーソナルコンピュータ等を用いて実行させることにより、2次元コードの読取機能を損なうことなく2次元コードを着色して模様を形成したり、写真やイラスト等の他の画像要素と自由に組合せて配置することを誰でも容易に行うことができる2次元コード画像を含む画像生成装置を構成できる。
尚、上記実施形態では、画像読込み処理によりレイヤー1に対象画像を読込み、コード画像生成処理によりレイヤー2に2次元コード画像を生成し、イラスト画像生成処理によりレイヤー3にイラスト画像を生成し、メニュー処理により各レイヤーの画像を合成することにより、2次元コード画像を対象画像やイラスト画像を自由に組合せて2次元コードを含む画像を生成できるようにしたものであるが、コード画像生成処理のみを用いることで2次元コード画像を着色して2次元コードをデザイン化した画像を生成でき、メニュー処理とコード画像生成処理と画像読込み処理を用いることで2次元コード画像を対象画像と組合せてデザイン化した画像を生成でき、メニュー処理とコード画像生成処理とイラスト画像生成処理を用いることで2次元コード画像をイラスト画像と組合せてデザイン化した画像を生成できる。
また、上記実施形態では2次元コード画像と対象画像とイラスト画像をそれぞれ個別のレイヤーに形成して合成するようにしたが、レイヤーを用いることなく同一画面上で直接画像を合成するようにしてもよい。尚、レイヤーを用いて合成するようにすれば、2次元コード画像と対象画像とイラスト画像をそれぞれ独立に生成することができるので、レイヤーの前後関係や透明度を変更して何度でも画像の合成をやり直すことができる。
By programming the above processing and executing it using, for example, a personal computer, the 2D code can be colored to form a pattern without impairing the 2D code reading function. An image generation apparatus including a two-dimensional code image that can be easily combined with any of the image elements can be configured.
In the above embodiment, the target image is read into layer 1 by the image reading process, the two-dimensional code image is generated at layer 2 by the code image generation process, the illustration image is generated at layer 3 by the illustration image generation process, and the menu By combining the images of each layer by processing, it is possible to generate an image including a two-dimensional code by freely combining a target image and an illustration image with a two-dimensional code image. By using it, you can create a 2D code image by coloring the 2D code image. By using menu processing, code image generation processing, and image reading processing, you can design the 2D code image in combination with the target image. By using menu processing, code image generation processing, and illustration image generation processing, Dimension code image can be generated stylized image in combination with the illustration image.
In the above embodiment, the two-dimensional code image, the target image, and the illustration image are formed on separate layers and combined. However, the images may be combined directly on the same screen without using layers. Good. If layers are used for composition, two-dimensional code images, target images, and illustration images can be generated independently, so images can be combined any number of times by changing the layer context and transparency. Can be redone.

図14から図19に実際に2次元コードを含む画像を生成した例を示す。尚、本願の図面ではグレー画像が使用されているので、画像の合成や着色によってデザイン化された部分は余り明瞭に視認されないが、実際に生成される画像はカラー画像であり、色の違いによってイラストや文字を明瞭に視認でき、かつ2次元コードを読取可能であることが確認されている。
図14と図15は2次元コード画像を直接着色することにより、2次元コードを単体でデザイン化したものである。図14は2次元コード画像を直接着色することにより2次元コード内に文字やイラストを形成したもので、ここでは黒セルを緑、白セルを明るい黄緑に着色し、上部に薄いピンクで文字を形成し、下部に主として黄緑で漫画による横長の顔を形成している。また、図15は2次元コード画像を直接着色することにより2次元コード内に紋章を浮かび上がらせたもので、ここでは黒セルを緑、白セルを明るい薄緑に着色し、紋章を赤で形成している。これらの画像では、携帯電話のカメラ等で画像全体を撮影することで2次元コードを読取ることができるので、ユーザによる2次元コードの利用率が向上する。尚、これらの画像は2次元コード画像を直接着色することで形成したが、2次元コード画像とイラスト画像を合成することによっても生成できる。
図16は吹出しの中に対象画像とともに2次元コードを配列することで注目を引くようにしたもので、イラスト画像として吹出しを生成し、対象画像を読込んで吹出しの内側に配置するとともに、対象画像と調和する色で模様をつけた2次元コード画像を吹出しの内側に配列し、対象画像と調和する色で形成した文字画像を重ねたものである。このように、2次元コード画像に対象画像と調和する色で模様をつけることでデザイン要素として活用できる。また、2次元コード画像を画面内に配列することでデザイン的なインパクトが強くなるとともに、ユーザが携帯電話のカメラ等で撮影した場合に2次元コードが被写体に含まれる可能性が高くなり、ユーザによる2次元コードの利用率が向上する。
図17は人物像に2次元コードをアレンジしたものであり、対象画像として人物像を読込み、衣服部分にマスク処理を行い、その部分に対象画像と調和する色で模様をつけた2次元コード画像を配列している。この場合も、模様をつけた2次元コード画像があたかも衣服のデザインのように調和するとともに、ユーザに強いインパクトを与え、ユーザが携帯電話のカメラ等で撮影した場合に、2次元コードが被写体に含まれる可能性が高くなり、ユーザによる2次元コードの利用率が向上する。
図18は行楽地の風景画像に2次元コードを含めた例であり、対象画像として風景写真を読込み、手前の岸の部分にマスク処理を行い、その部分に対象画像と調和する色でイラスト画像を形成し、空の部分に対象画像と調和する色で模様をつけた2次元コード画像を配列したものである。この場合も、2次元コード画像部分に強いインパクトがあるので、ユーザが携帯電話のカメラ等で撮影した場合に、2次元コードが被写体に含まれる可能性が高くなり、ユーザによる2次元コードの利用率が向上する。
図19は自動車の広告画像に2次元コードを含めた例であり、対象画像として自動車の写真を読込み、調和する色で背景のイラスト画像を形成し、対象画像のフロントウィンドウ部分にマスク処理を行い、その部分に対象画像と調和する色で模様をつけた2次元コード画像を配列し、更に背景部分の一部にも対象画像と調和する色で模様をつけた2次元コード画像を配列してデザイン化された道路を形成したものである。このように、自動車のフロントウィンドウに2次元コード画像を配列したり、道路を2次元コード画像で形成することで、ユーザに強いインパクトを与えるとともに、ユーザが携帯電話のカメラ等で自動車を撮影した場合に被写体に2次元コードが含まれる可能性が高くなり、ユーザによる2次元コードの利用率が向上する。
また、この他に着色された2次元コード画像を用いて文字を形成することも可能であり、ユーザが携帯電話のカメラ等で文字画像を撮影した場合に必然的に被写体に2次元コードが含まれ、ユーザによる2次元コードの利用率が大幅に向上する。
FIG. 14 to FIG. 19 show examples in which an image that actually includes a two-dimensional code is generated. In addition, since the gray image is used in the drawings of the present application, the part designed by the synthesis and coloring of the image is not so clearly visible, but the actually generated image is a color image, and depending on the color difference It has been confirmed that illustrations and characters can be clearly seen and that a two-dimensional code can be read.
FIG. 14 and FIG. 15 show a two-dimensional code designed as a single unit by directly coloring a two-dimensional code image. FIG. 14 shows characters and illustrations formed in the two-dimensional code by directly coloring the two-dimensional code image. Here, the black cell is colored green, the white cell is colored bright yellow-green, and the upper part is light pink. The lower part is mainly yellowish green in the lower part, and a horizontally long face made of comics. Fig. 15 shows the emblem in the two-dimensional code by directly coloring the two-dimensional code image. Here, the black cells are colored green, the white cells are colored bright light green, and the emblem is formed in red. doing. In these images, since the two-dimensional code can be read by photographing the entire image with a camera of a mobile phone or the like, the utilization rate of the two-dimensional code by the user is improved. These images are formed by directly coloring the two-dimensional code image, but can also be generated by synthesizing the two-dimensional code image and the illustration image.
FIG. 16 draws attention by arranging a two-dimensional code together with the target image in the balloon. The balloon is generated as an illustration image, and the target image is read and arranged inside the balloon. A two-dimensional code image with a pattern that matches the color of the image is arranged inside the balloon, and character images formed in a color that matches the target image are superimposed. In this way, a two-dimensional code image can be used as a design element by adding a pattern in a color that matches the target image. Arranging two-dimensional code images on the screen increases the design impact and increases the possibility that a two-dimensional code will be included in the subject when the user takes a picture with a mobile phone camera or the like. The utilization rate of the two-dimensional code is improved.
FIG. 17 is a two-dimensional code image in which a two-dimensional code is arranged on a human image, a human image is read as a target image, mask processing is performed on a clothing portion, and a pattern is applied to the portion in a color that matches the target image. Is arranged. In this case as well, the two-dimensional code image with the pattern harmonizes as if it were a clothing design and has a strong impact on the user. When the user takes a picture with a mobile phone camera or the like, the two-dimensional code is applied to the subject. The possibility of being included increases, and the utilization rate of the two-dimensional code by the user improves.
FIG. 18 is an example in which a two-dimensional code is included in a landscape image of an amusement park. A landscape photograph is read as a target image, mask processing is performed on the front shore portion, and an illustration image is displayed in a color that matches the target image in that portion. And a two-dimensional code image in which a pattern is formed in a color in harmony with the target image in the sky. Also in this case, since there is a strong impact on the two-dimensional code image portion, there is a high possibility that the two-dimensional code is included in the subject when the user takes a picture with a mobile phone camera or the like, and the user uses the two-dimensional code. The rate is improved.
FIG. 19 shows an example in which a two-dimensional code is included in an advertisement image of a car. A car picture is read as a target image, a background illustration image is formed in a harmonious color, and mask processing is performed on the front window portion of the target image. A two-dimensional code image with a pattern that matches the target image is arranged on the part, and a two-dimensional code image with a pattern that matches the target image is arranged on a part of the background part. It forms a designed road. In this way, by arranging a two-dimensional code image on the front window of a car or forming a road with a two-dimensional code image, the user has a strong impact, and the user has photographed the car with a mobile phone camera or the like. In this case, there is a high possibility that the subject includes a two-dimensional code, and the utilization rate of the two-dimensional code by the user is improved.
In addition, it is also possible to form a character using a colored two-dimensional code image. When a user takes a character image with a mobile phone camera or the like, the subject necessarily includes a two-dimensional code. As a result, the utilization rate of the two-dimensional code by the user is greatly improved.

上記実施形態においては、印刷物等に2次元コードを含む画像を生成する場合について述べたが、本願発明はこれに限定されるものではなく、コンピュータ画面等の発光体を用いて2次元コードを含む画像を表示する場合にも適用することが可能である。
従って、この明細書および特許請求の範囲において、明度とは、反射光の明るさを示す狭義の明度の他に、発光体の明るさを示す輝度をも含む概念である。
ここで、印刷物等に2次元コードを含む画像を生成する場合には、例えばYIQ表色系の明度Yをこの発明の明度として用いることができ、コンピュータ画面等に2次元コードを含む画像を表示する場合には、例えばRGB表色系の輝度Yをこの発明の明度として用いることができる。
一般に、コンピュータ画像処理においてはRGB表色系が用いられ、赤・緑・青の各レベル(R・G・B)を指定することにより色が指定されるが、印刷された画像がコンピュータ画面に表示された画像と同等の色彩を発色するように設定されている場合(いわゆるDTP;Desk Top Publishing)においては、YIQ表色系の明度YとRGB表色系の輝度Yとは、いずれも近似的に下記の変換式を用いて求めることができるので、これを用いて選択された色彩における明度の許容範囲を決定するようにしてもよい。
Y=0.30R+0.59G+0.11B
In the above embodiment, the case where an image including a two-dimensional code is generated on a printed matter has been described. However, the present invention is not limited to this, and includes a two-dimensional code using a light emitter such as a computer screen. The present invention can also be applied when displaying an image.
Therefore, in this specification and the claims, the brightness is a concept including brightness indicating the brightness of the light emitter in addition to the narrow brightness indicating the brightness of the reflected light.
Here, when generating an image including a two-dimensional code on a printed matter, for example, the lightness Y of the YIQ color system can be used as the lightness of the present invention, and an image including the two-dimensional code is displayed on a computer screen or the like. For example, the luminance Y of the RGB color system can be used as the brightness of the present invention.
In general, an RGB color system is used in computer image processing, and colors are designated by designating red, green, and blue levels (R, G, B), but a printed image is displayed on a computer screen. In the case where the color is set to produce a color equivalent to the displayed image (so-called DTP; Desk Top Publishing), the brightness Y of the YIQ color system and the luminance Y of the RGB color system are both approximate. Therefore, the allowable range of lightness in the selected color may be determined by using the following conversion formula.
Y = 0.30R + 0.59G + 0.11B

また、本願発明の方法によって生成された画像の2次元コードを読取る装置が、赤外線等を含む特定の波長域を用いて2次元コードを読取るものである場合には、上記明度として当該特定の波長域における反射光の明るさや発光体の明るさに対応していることが望ましいので、当該特定の波長域に対応する明度を求め、それに基づいて着色可能な色の範囲を設定するようにしてもよい。   In addition, when the device that reads the two-dimensional code of the image generated by the method of the present invention reads the two-dimensional code using a specific wavelength region including infrared rays, the specific wavelength is used as the brightness. It is desirable to correspond to the brightness of the reflected light in the region and the brightness of the light emitter, so that the lightness corresponding to the specific wavelength region is obtained and the color range that can be colored is set based on the lightness. Good.

上記実施形態では、明度補正処理において、合成された画像の明度ヒストグラムを求め、2次元コードを読取るためのしきい値を決定し、それに基づいて白セルと黒セルの許容明度を設定して明度補正を行うものとして説明したが、本願発明はこれに限定されるものではなく、2次元コード読取装置において使用されている認識アルゴリズムに対応して適切な尤度が得られるように明度を補正するようにしてもよい。また、明度補正処理は、必ずしもすべてのセルについて明度補正を行う必要はなく、2次元コード読取装置が有する誤り訂正機能等を考慮して必要な範囲でのみ明度補正を行うようにしてもよい。
また、上記実施形態では、コード読取チェックにおいて、合成された画像について2値化処理を行って2値画像を生成し、生成された2値画像を元の2次元コード画像と比較するものとして説明したが、本願発明はこれに限定されるものではなく、合成された画像から、2次元コード読取装置において使用されている認識アルゴリズムに基づいて2次元コードを読取ることでコード読取チェックを行うようにしてもよい。
In the above embodiment, in the brightness correction process, a brightness histogram of the synthesized image is obtained, a threshold value for reading the two-dimensional code is determined, and based on this, the allowable brightness of the white cell and the black cell is set and the brightness is set. Although the present invention has been described as correcting, the present invention is not limited to this, and the lightness is corrected so as to obtain an appropriate likelihood corresponding to the recognition algorithm used in the two-dimensional code reader. You may do it. In the lightness correction process, it is not always necessary to perform lightness correction for all cells, and lightness correction may be performed only in a necessary range in consideration of an error correction function and the like possessed by the two-dimensional code reader.
Further, in the above embodiment, in the code reading check, it is assumed that the synthesized image is binarized to generate a binary image, and the generated binary image is compared with the original two-dimensional code image. However, the present invention is not limited to this, and the code reading check is performed by reading the two-dimensional code from the synthesized image based on the recognition algorithm used in the two-dimensional code reader. May be.

以上のように、この発明によれば、2次元コードを着色して文字・数字・ロゴマーク・模様などを形成することが容易に行え、生成された2次元コードを含む画像をテレビ画面やパソコン画面などの発光体に表示したり、紙などの印刷媒体に印刷することで、これまでの白黒表示のみでは得られなかった優れた広告効果や情報提供効果が得られる。
特に、テレビもデジタル化が進み、携帯電話等の携帯無線端末を使用することにより一層の双方向化が進展すると考えられ、これまでのフリーダイアルと比較して少ない入力操作でアクセスでき、回線が混みあって繋がりにくいときでもホームページから簡単な操作で情報入力や情報交換が行え、子供から高齢者まで簡単便利に、また緊急時でも対応可能な情報サイトを構築することができる。
この場合に、2次元コードを着色することで、例えばテレビ広告の放映中に1画面に複数個の2次元コードを表示した場合でも各々を容易に区別することができるので、必要な情報を間違うことなく入手交換でき、短時間に多くの情報を伝達することが可能となり、コマーシャルの時間外等に更に詳しい商品説明や案内などを携帯電話等に表示させることが可能となる。
尚、本願発明は上述した実施形態に限定されるものではなく、各請求項に記載された範囲で、実施形態で述べた構成の順序を入れ替えたり、新たな構成を追加したり、一部の構成を削除したり変更する等の種々の変形を行うことができることは言うまでもない。
As described above, according to the present invention, a two-dimensional code can be easily colored to form letters, numbers, logo marks, patterns, etc., and an image including the generated two-dimensional code can be displayed on a television screen or a personal computer. By displaying on a light-emitting body such as a screen or printing on a print medium such as paper, it is possible to obtain an excellent advertising effect and information providing effect that could not be obtained by conventional monochrome display alone.
In particular, TVs are also becoming more digitalized, and it is thought that the use of mobile radio terminals such as mobile phones will lead to further bi-directionality. Even when it is crowded and difficult to connect, information can be entered and exchanged with simple operations from the homepage, making it possible to build an information site that is easy and convenient for children and the elderly, and that can be used in emergencies.
In this case, by coloring the two-dimensional code, for example, even when a plurality of two-dimensional codes are displayed on one screen during the broadcast of a television advertisement, each can be easily distinguished, so that necessary information is incorrect. It can be obtained and exchanged without any problem, and a large amount of information can be transmitted in a short time, and further detailed product descriptions and guidance can be displayed on a mobile phone or the like outside the commercial hours.
The invention of the present application is not limited to the above-described embodiments, and within the scope described in each claim, the order of the configurations described in the embodiments is changed, a new configuration is added, or some of the configurations are added. It goes without saying that various modifications such as deleting or changing the configuration can be made.

この発明の一実施形態にかかる画像生成処理の全体の流れを示すフロー図である。It is a flowchart which shows the whole flow of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理のメニュー処理のフロー図である。It is a flowchart of the menu process of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理の画像の読込み処理のフロー図である。It is a flowchart of the image reading process of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理のコード画像生成処理のフロー図である。It is a flowchart of the code image generation process of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理のイラスト画像生成処理のフロー図である。It is a flowchart of the illustration image generation process of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理のメニュー処理画面の構成例を示す図である。It is a figure which shows the structural example of the menu process screen of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理の画像の読込み処理画面の構成例を示す図である。It is a figure which shows the structural example of the image reading process screen of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理のコード画像生成処理画面の構成例を示す図である。It is a figure which shows the structural example of the code image generation process screen of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理のイラスト画像生成処理画面の構成例を示す図である。It is a figure which shows the structural example of the illustration image generation process screen of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理のパレット表示画面の構成例を示す図である。It is a figure which shows the structural example of the palette display screen of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理の明度補正処理の処理内容を説明する説明図である。It is explanatory drawing explaining the processing content of the brightness correction process of the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理の色彩選定処理に用いる色彩調和マトリックスの例を示す図である。It is a figure which shows the example of the color harmony matrix used for the color selection process of the image generation process concerning one Embodiment of this invention. 従来の2次元コードを含む画像の例を示す図である。It is a figure which shows the example of the image containing the conventional two-dimensional code. この発明の一実施形態にかかる画像生成処理による画像生成例(その1)を示す画像である。It is an image which shows the image generation example (the 1) by the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理による画像生成例(その2)である。It is an image generation example (the 2) by the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理による画像生成例(その3)である。It is an image generation example (the 3) by the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理による画像生成例(その4)である。It is an image generation example (the 4) by the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理による画像生成例(その5)である。It is an image generation example (the 5) by the image generation process concerning one Embodiment of this invention. この発明の一実施形態にかかる画像生成処理による画像生成例(その6)である。It is an image generation example (the 6) by the image generation process concerning one Embodiment of this invention.

符号の説明Explanation of symbols

S10〜S18 画像の読込み処理
S20〜S38 コード画像生成処理
S40 イラスト画像生成処理
S42、S44 画像の合成処理
S46 コード読取確認処理
S48 明度補正処理
S10 to S18 Image reading processing S20 to S38 Code image generation processing S40 Illustration image generation processing S42 and S44 Image composition processing S46 Code reading confirmation processing S48 Lightness correction processing

Claims (8)

2次元コード化する文字を入力する文字入力ステップと、前記文字入力ステップにより入力された文字から2次元コード画像を生成するコード画像生成ステップと、前記コード画像生成ステップにより生成された2次元コード画像を着色するコード画像着色ステップとを備えた2次元コードを含む画像生成方法であって、
前記コード画像着色ステップは、2次元コード画像の黒セルを着色する色を選択させる黒セル着色パレットを表示する黒セル着色パレット表示ステップと、2次元コード画像の指定された領域の黒セルを前記表示された黒セル着色パレットから選択された色に着色する黒セル着色ステップと、2次元コード画像の白セルを着色する色を選択させる白セル着色パレットを表示する白セル着色パレット表示ステップと、2次元コード画像の指定された領域の白セルを前記表示された白セル着色パレットから選択された色に着色する白セル着色ステップとを備え、
生成された2次元コード画像の黒セルが着色された色から白セルを着色する色として選択可能な範囲を前記白セル着色パレットに設定する白セル着色選択範囲設定ステップと、生成された2次元コード画像の白セルが着色された色から黒セルを着色する色として選択可能な範囲を前記黒セル着色パレットに設定する黒セル着色選択範囲設定ステップとを有することを特徴とする、2次元コードを含む画像生成方法。
A character input step for inputting characters to be two-dimensionally encoded, a code image generation step for generating a two-dimensional code image from the characters input in the character input step, and a two-dimensional code image generated by the code image generation step A method of generating an image including a two-dimensional code comprising:
The code image coloring step includes a black cell coloring palette display step for displaying a black cell coloring palette for selecting a color for coloring the black cells of the two-dimensional code image, and black cells in a specified area of the two-dimensional code image A black cell coloring step for coloring a color selected from the displayed black cell coloring palette, a white cell coloring palette display step for displaying a white cell coloring palette for selecting a color for coloring a white cell of the two-dimensional code image, and A white cell coloring step of coloring a white cell in a specified area of the two-dimensional code image into a color selected from the displayed white cell coloring palette;
A white cell coloring selection range setting step for setting, in the white cell coloring palette, a range selectable as a color for coloring a white cell from a color in which black cells of the generated two-dimensional code image are colored; A two-dimensional code comprising: a black cell coloring selection range setting step for setting, in the black cell coloring palette, a range that can be selected as a color for coloring a black cell from a color in which white cells of the code image are colored An image generation method including:
2次元コード画像を合成する対象となる被合成画像を生成する被合成画像生成ステップと、2次元コード化する文字を入力する文字入力ステップと、前記文字入力ステップにより入力された文字から2次元コード画像を生成し、指定された位置に指定された大きさで配置するコード画像生成ステップと、前記コード画像生成ステップにより生成された2次元コード画像を着色するコード画像着色ステップと、前記被合成画像生成ステップにより生成された被合成画像と前記コード画像着色ステップにより着色された2次元コード画像を合成する画像合成ステップとを備えた2次元コードを含む画像生成方法であって、
前記コード画像着色ステップは、2次元コード画像の黒セルを着色する色を選択させる黒セル着色パレットを表示する黒セル着色パレット表示ステップと、2次元コード画像の指定された領域の黒セルを前記表示された黒セル着色パレットから選択された色に着色する黒セル着色ステップと、2次元コード画像の白セルを着色する色を選択させる白セル着色パレットを表示する白セル着色パレット表示ステップと、2次元コード画像の指定された領域の白セルを前記表示された白セル着色パレットから選択された色に着色する白セル着色ステップとを備え、
生成された2次元コード画像の黒セルが着色された色から白セルを着色する色として選択可能な範囲を前記白セル着色パレットに設定する白セル着色選択範囲設定ステップと、生成された2次元コード画像の白セルが着色された色から黒セルを着色する色として選択可能な範囲を前記黒セル着色パレットに設定する黒セル着色選択範囲設定ステップとを有することを特徴とする、2次元コードを含む画像生成方法。
A composite image generation step for generating a composite image to be combined with a two-dimensional code image, a character input step for inputting characters to be two-dimensionally encoded, and a two-dimensional code from the characters input in the character input step A code image generation step of generating an image and arranging the image at a specified position at a specified size; a code image coloring step of coloring the two-dimensional code image generated by the code image generation step; and the synthesized image An image generation method including a two-dimensional code, comprising: a combined image generated by a generation step; and an image combination step of combining the two-dimensional code image colored by the code image coloring step.
The code image coloring step includes a black cell coloring palette display step for displaying a black cell coloring palette for selecting a color for coloring the black cells of the two-dimensional code image, and black cells in a specified area of the two-dimensional code image A black cell coloring step for coloring a color selected from the displayed black cell coloring palette, a white cell coloring palette display step for displaying a white cell coloring palette for selecting a color for coloring a white cell of the two-dimensional code image, and A white cell coloring step of coloring a white cell in a specified area of the two-dimensional code image into a color selected from the displayed white cell coloring palette;
A white cell coloring selection range setting step for setting, in the white cell coloring palette, a range selectable as a color for coloring a white cell from a color in which black cells of the generated two-dimensional code image are colored; A two-dimensional code comprising: a black cell coloring selection range setting step for setting, in the black cell coloring palette, a range that can be selected as a color for coloring a black cell from a color in which white cells of the code image are colored An image generation method including:
2次元コード画像を合成する対象となる被合成画像を生成する被合成画像生成ステップと、2次元コード化する文字を入力する文字入力ステップと、前記文字入力ステップにより入力された文字から2次元コード画像を生成し、指定された位置に指定された大きさで配置するコード画像生成ステップと、前記被合成画像生成ステップにより生成された被合成画像と前記コード画像生成ステップにより生成された2次元コード画像を合成する画像合成ステップとを備えた2次元コードを含む画像生成方法であって、
前記画像合成ステップは、合成された画像について明度ヒストグラムを演算し、白セルとして許容される下限明度と黒セルとして許容される上限明度を決定する許容明度演算ステップと、合成された画像に含まれる2次元コード画像のうち、前記許容明度演算ステップにより演算された下限明度未満である白セルの明度を前記下限明度以上に補正し、前記許容明度演算ステップにより演算された上限明度を超える黒セルの明度を前記上限明度以下に補正する明度補正ステップとを有することを特徴とする、2次元コードを含む画像生成方法。
A composite image generation step for generating a composite image to be combined with a two-dimensional code image, a character input step for inputting characters to be two-dimensionally encoded, and a two-dimensional code from the characters input in the character input step A code image generation step of generating an image and arranging it at a specified position at a specified size; a composite image generated by the composite image generation step; and a two-dimensional code generated by the code image generation step An image generation method including a two-dimensional code comprising an image synthesis step for synthesizing an image,
The image combining step includes a lightness histogram for the combined image and an allowable lightness calculating step for determining a lower limit lightness allowed as a white cell and an upper lightness allowed as a black cell, and is included in the combined image In the two-dimensional code image, the brightness of a white cell that is less than the lower limit brightness calculated in the allowable brightness calculation step is corrected to be equal to or higher than the lower limit brightness, and the black cell exceeding the upper limit brightness calculated in the allowable brightness calculation step A brightness correction step of correcting the brightness to be equal to or less than the upper limit brightness, and an image generation method including a two-dimensional code.
2次元コード画像を合成する対象となる被合成画像を生成する被合成画像生成ステップと、2次元コード化する文字を入力する文字入力ステップと、前記文字入力ステップにより入力された文字から2次元コード画像を生成し、指定された位置に指定された大きさで配置するコード画像生成ステップと、前記被合成画像生成ステップにより生成された被合成画像と前記コード画像生成ステップにより生成された2次元コード画像を合成する画像合成ステップとを備えた2次元コードを含む画像生成方法であって、
前記画像合成ステップは、前記合成された画像について2値化処理を行った2値画像を生成する2値画像生成ステップと、前記2値画像生成ステップにより生成された2値画像を前記コード画像生成ステップにより生成された2次元コード画像と比較し、誤りを生じている2次元コード部分を抽出するコード読取確認ステップと、前記合成された画像の前記コード読取確認ステップにより抽出された2次元コード部分の明度を補正する明度補正ステップとを有することを特徴とする、2次元コードを含む画像生成方法。
A composite image generation step for generating a composite image to be combined with a two-dimensional code image, a character input step for inputting characters to be two-dimensionally encoded, and a two-dimensional code from the characters input in the character input step A code image generation step of generating an image and arranging it at a specified position at a specified size; a composite image generated by the composite image generation step; and a two-dimensional code generated by the code image generation step An image generation method including a two-dimensional code comprising an image synthesis step for synthesizing an image,
The image composition step includes a binary image generation step of generating a binary image obtained by performing binarization processing on the combined image, and the code image generation of the binary image generated by the binary image generation step. A two-dimensional code portion extracted by the code reading confirmation step of extracting the two-dimensional code portion in which an error is generated by comparing with the two-dimensional code image generated by the step; and the code reading confirmation step of the synthesized image And a lightness correction step for correcting the lightness of the image. A method for generating an image including a two-dimensional code.
前記被合成画像生成ステップは、イラスト画像を生成するイラスト画像生成ステップを備え、
前記イラスト画像生成ステップは、イラストを着色する色を選択させるイラスト着色パレットを表示するイラスト着色パレット表示ステップを有し、表示する文字を入力するステップと前記入力された文字を前記イラスト着色パレットから選択された色を用いて指定された位置に指定された大きさで配置するステップとを含む文字画像生成ステップと、あらかじめ登録されたイラストを選択するステップと前記選択されたイラストを前記イラスト着色パレットから選択された色を用いて指定された位置に指定された大きさで配置するステップとを含むイラスト生成ステップと、前記イラスト着色パレットから選択された色を用いてイラストを描画するイラスト描画ステップの少なくともいずれかを有することを特徴とする、請求項2ないし請求項4のいずれかに記載の2次元コードを含む画像生成方法。
The synthesized image generation step includes an illustration image generation step of generating an illustration image,
The illustration image generation step includes an illustration coloring palette display step for displaying an illustration coloring palette for selecting a color for coloring the illustration, and the step of inputting characters to be displayed and the input character are selected from the illustration coloring palette. A character image generation step including a step of arranging a specified size at a specified position using a specified color, a step of selecting a pre-registered illustration, and the selected illustration from the illustration coloring palette At least a step of creating an illustration using a color selected from the illustration coloring palette, and a step of drawing an illustration using the color selected from the illustration coloring palette. Any one of claims 2 to 3, characterized in that Image generation method including a two-dimensional code of any one of claim 4.
前記被合成画像生成ステップは、画像を読込む画像読込ステップと、前記画像読込ステップにより読込まれた画像の色彩を抽出する色彩抽出ステップと、前記抽出された色彩に調和する色彩を選定する調和色彩選定ステップとを有し、
前記黒セル着色パレット表示ステップおよび/または前記白セル着色パレット表示ステップは、前記調和色彩設定ステップにより選定された色彩を表示するステップを有することを特徴とする、請求項2に記載の2次元コードを含む画像生成方法。
The synthesized image generation step includes an image reading step for reading an image, a color extraction step for extracting a color of the image read by the image reading step, and a harmonized color for selecting a color that matches the extracted color. A selection step,
The two-dimensional code according to claim 2, wherein the black cell coloring palette display step and / or the white cell coloring palette display step includes a step of displaying the color selected in the harmonic color setting step. An image generation method including:
前記被合成画像生成ステップは、画像を読込む画像読込ステップと、前記画像読込ステップにより読込まれた画像の色彩を抽出する色彩抽出ステップと、前記抽出された色彩に調和する色彩を選定する調和色彩選定ステップとを有し、
前記イラスト着色パレット表示ステップは、前記調和色彩設定ステップにより選定された色彩を表示するステップを有することを特徴とする、請求項5に記載の2次元コードを含む画像生成方法。
The synthesized image generation step includes an image reading step for reading an image, a color extraction step for extracting a color of the image read by the image reading step, and a harmonized color for selecting a color that matches the extracted color. A selection step,
6. The method of generating an image including a two-dimensional code according to claim 5, wherein the illustration coloring palette display step includes a step of displaying the color selected in the harmonic color setting step.
コンピュータに請求項1ないし請求項7のいずれかに記載の2次元コードを含む画像生成方法を実行させるためのプログラム。   A program for causing a computer to execute the image generation method including the two-dimensional code according to any one of claims 1 to 7.
JP2005091059A 2004-03-30 2005-03-28 Image generation method and program including two-dimensional code Expired - Fee Related JP4014602B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005091059A JP4014602B2 (en) 2004-03-30 2005-03-28 Image generation method and program including two-dimensional code

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004099915 2004-03-30
JP2005091059A JP4014602B2 (en) 2004-03-30 2005-03-28 Image generation method and program including two-dimensional code

Publications (3)

Publication Number Publication Date
JP2005316972A true JP2005316972A (en) 2005-11-10
JP2005316972A5 JP2005316972A5 (en) 2007-03-22
JP4014602B2 JP4014602B2 (en) 2007-11-28

Family

ID=35444282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005091059A Expired - Fee Related JP4014602B2 (en) 2004-03-30 2005-03-28 Image generation method and program including two-dimensional code

Country Status (1)

Country Link
JP (1) JP4014602B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007287004A (en) * 2006-04-19 2007-11-01 A T Communications Co Ltd Two-dimensional code with logo
US8144922B2 (en) 2006-04-19 2012-03-27 A T Communications Co., Ltd. Two-dimensional code with a logo
US8550366B2 (en) 2006-07-28 2013-10-08 Kddi Corporation Method, apparatus and computer program for embedding barcode in color image
JP2017079082A (en) * 2011-08-16 2017-04-27 モビリードMobilead Optical-reading code preparation device
US9785839B2 (en) 2012-11-02 2017-10-10 Sony Corporation Technique for combining an image and marker without incongruity
JP2018500793A (en) * 2014-10-27 2018-01-11 ムン キ イ, Translucent mark, translucent mark synthesis and detection method, and transparent mark, transparent mark synthesis and detection method
JP2020003878A (en) * 2018-06-25 2020-01-09 株式会社日立製作所 Marker and image processing device
CN115600629A (en) * 2022-11-29 2023-01-13 广汽埃安新能源汽车股份有限公司(Cn) Vehicle information two-dimensional code generation method, electronic device and computer readable medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007287004A (en) * 2006-04-19 2007-11-01 A T Communications Co Ltd Two-dimensional code with logo
US8144922B2 (en) 2006-04-19 2012-03-27 A T Communications Co., Ltd. Two-dimensional code with a logo
US8526670B2 (en) 2006-04-19 2013-09-03 A T Communications Co., Ltd. Two-dimensional code with a logo
US8550366B2 (en) 2006-07-28 2013-10-08 Kddi Corporation Method, apparatus and computer program for embedding barcode in color image
JP2017079082A (en) * 2011-08-16 2017-04-27 モビリードMobilead Optical-reading code preparation device
US9785839B2 (en) 2012-11-02 2017-10-10 Sony Corporation Technique for combining an image and marker without incongruity
JP2018500793A (en) * 2014-10-27 2018-01-11 ムン キ イ, Translucent mark, translucent mark synthesis and detection method, and transparent mark, transparent mark synthesis and detection method
JP2020003878A (en) * 2018-06-25 2020-01-09 株式会社日立製作所 Marker and image processing device
CN115600629A (en) * 2022-11-29 2023-01-13 广汽埃安新能源汽车股份有限公司(Cn) Vehicle information two-dimensional code generation method, electronic device and computer readable medium
CN115600629B (en) * 2022-11-29 2023-03-17 广汽埃安新能源汽车股份有限公司 Vehicle information two-dimensional code generation method, electronic device and computer readable medium

Also Published As

Publication number Publication date
JP4014602B2 (en) 2007-11-28

Similar Documents

Publication Publication Date Title
JP4014602B2 (en) Image generation method and program including two-dimensional code
US10817971B2 (en) System and method for embedding of a two dimensional code with an image
US9239978B2 (en) Readable matrix code
JP3953501B1 (en) Program, information storage medium, two-dimensional code generation system, image generation system, and two-dimensional code
US10885411B2 (en) Machine-readable image encoding data
ES2341607T3 (en) METHOD AND DEVICE FOR CODING AND DECODING.
JP4106377B2 (en) Apparatus, method, and program for extracting invisible information
Li et al. An aesthetic QR code solution based on error correction mechanism
EP3457327A1 (en) Method and apparatus for generating two-dimensional code picture having dynamic effect
US20080048044A1 (en) Barcode Encoding and Decoding
US20150339838A1 (en) Image mask providing a machine-readable data matrix code
CN105069497B (en) A kind of method for the Quick Response Code for generating beautification
US8913301B2 (en) Imaging product layout method
JP4621089B2 (en) QR code creation program, computer-readable recording medium storing this program, QR code creation device, and QR code creation method
GB2560456A (en) Billboard containing encoded information
JP6201705B2 (en) Information code generation method, information code, information code reader, and information code utilization system
Rathi et al. Aesthetic QR: Approaches for Beautified, Fast Decoding, and Secured QR Codes.
JP5853466B2 (en) Image processing system and image processing program
CN107247984B (en) Coding method of visual two-dimensional code
JP2006277445A (en) Information acquisition method and information acquisition program
JP2009042826A (en) Two dimensional code creation system and two dimensional code printing medium
JP2007325651A (en) Flat puzzle
JP7230566B2 (en) image forming device
US8922843B2 (en) Imaging product layout system
JP4158681B2 (en) Image processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070201

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20070201

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20070213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070410

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070524

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070911

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100921

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4014602

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130921

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees