JPH11219242A - Method for generating page - Google Patents

Method for generating page

Info

Publication number
JPH11219242A
JPH11219242A JP2063898A JP2063898A JPH11219242A JP H11219242 A JPH11219242 A JP H11219242A JP 2063898 A JP2063898 A JP 2063898A JP 2063898 A JP2063898 A JP 2063898A JP H11219242 A JPH11219242 A JP H11219242A
Authority
JP
Japan
Prior art keywords
color
character string
image
page
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2063898A
Other languages
Japanese (ja)
Inventor
Hideo Noyama
英郎 野山
Makoto Kato
誠 加藤
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2063898A priority Critical patent/JPH11219242A/en
Publication of JPH11219242A publication Critical patent/JPH11219242A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PROBLEM TO BE SOLVED: To change the attribute of a character in accordance with the picture of a background by comparing an average color with the color of a character string and changing the color of the character string when color difference between them is small and the character string is superimposed on its area. SOLUTION: A page description document which is described in a read template is analyzed, the color of the character defined as default is inspected, the template is analyzed and the coordinate of the character string arranged in the page is obtained. A picture file name 335 and a mask file name 340 are inspected, the respective files are read and a mask area 350 in a coordinate system on the page is obtained. It is judged whether the coordinate of the character string enters in the mask area 350 of the mask file or not. When the character string enters into the mask area, it is expected that the character string is superimposed on the mask area so that the color of the character string is compared with that of a picture area corresponding to the mask area. When the color of the character string and that of the picture area are the similar ones, the color of the character string is changed based on the table 370.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像と文字などを
重ね合わせたページを生成するソフトウェアシステムに
おいて、データーベースの検索結果によって画像が選ば
れたり、イベント処理によって画像が入れ替わるとき
に、画像に重ね合わされる文字の色等を自動的に調整す
る方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a software system for generating a page in which an image and a character are superimposed on each other, when an image is selected by a database search result or when an image is replaced by an event process. The present invention relates to a method for automatically adjusting the color and the like of superimposed characters.

【0002】[0002]

【従来の技術】本発明に関連のあるものとして、以下の
文献がある。
2. Description of the Related Art The following documents are related to the present invention.

【0003】(a)「Cascading Style Sheets,Le
vel1」,W3Cのホームページ(〈Url〉http://w
ww.w3.org/)の中、W3C Recommendation,1
7Dec.1996. W3Cが推奨するスタイルシートについての解説であ
り、この中に背景の性質に関する事項がある。これによ
ると、ページの背景に特定の色を塗る、あるいは画像を
貼り付けることができるという内容である。
(A) "Cascading Style Sheets, Le
vel1 ”, W3C homepage (<Url> http: /// w
ww. w3. org /), W3C Recommendation, 1
7 Dec. 1996. This is an explanation of the style sheet recommended by the W3C, and there is a matter regarding the nature of the background in this. According to this, a specific color can be painted on the background of a page or an image can be pasted.

【0004】(b)川崎克巳著、「JavaScriptマスタ
ーバイブル」、pp.53−55,1996年12月25
日、第1版発行 画面を黒から白へと変化させるフェードインをJava S
criptを使ってプログラミングしたという内容である。
この文献では、変化させる時間間隔と変化させる色の度
合いをパラメータとし、ページの背景色を徐々に変化さ
せている。
(B) Katsumi Kawasaki, "JavaScript Master Bible", pp. 53-55, December 25, 1996
The first edition is published. Java S is a fade-in that changes the screen from black to white.
It is the content of programming using cript.
In this document, the background color of the page is gradually changed using the time interval to be changed and the degree of the color to be changed as parameters.

【0005】(c)「Netscape Communicatorの全貌
を探る」、Oh!PC No.286,pp.167−171,1
997年6月15日発行 HTML(Hyper Text Markup Language)の拡張タ
グ〈LAYER〉の解説が含まれ、このタグを用いると
1つの画像を複数のオブジェクトで編成でき、オブジェ
クトを順番に重ねて表示することができるという内容で
ある。
(C) "Exploring the whole picture of Netscape Communicator", Oh! PC No.286, pp.167-171,1
Published on June 15, 997 Includes the description of the HTML (Hyper Text Markup Language) extended tag <LAYER>. Using this tag allows one image to be organized with multiple objects, and displays the objects in sequence. The content is that you can do it.

【0006】[0006]

【発明が解決しようとする課題】かかる従来の方法にお
いては、次のような問題点がある。
The conventional method has the following problems.

【0007】(1)従来技術aにおいて、HTMLタグ
によって記述された文字列や画像は、自動的にページ内
に配置される。さらに、ページには背景があり、背景に
は色を付けることができるし、画像を貼り付けることも
できる。
(1) In the prior art a, a character string or an image described by an HTML tag is automatically arranged in a page. Further, the page has a background, the background can be colored, and an image can be pasted.

【0008】しかし、これらの背景に貼り付けられる画
像は、HTMLタグによって配置される画像や文字列と
は無関係に貼り付けられるため、文字列と背景画像が重
なって見え辛くなる状況を、ページを生成する前に知る
ことはできない。また、背景の画像が決まったものであ
る場合は、画像の上に文字列を重ねて文字の見易さを予
め試すことができるが、任意の画像が選ばれる状況では
事前に視認性を確認することができない。
However, since images pasted on these backgrounds are pasted irrespective of the image or character string arranged by the HTML tag, the situation in which the character string overlaps with the background image and makes it difficult to see is described. You can't know before you create it. Also, if the background image is fixed, you can test the legibility of the characters by overlaying a character string on the image, but check the visibility in advance when an arbitrary image is selected. Can not do it.

【0009】本発明の第1の目的は、背景に貼り付ける
画像が予め分かっていない場合に、文字列と画像の絵柄
が重なって文字が読み辛くなる状況を防ぐことであり、
背景の画像に応じて文字の属性を変化させることであ
る。
A first object of the present invention is to prevent a situation in which a character string and a picture pattern of an image are superimposed on each other to make it difficult to read characters when an image to be pasted on a background is not known in advance.
That is, the attribute of a character is changed according to the background image.

【0010】(2)従来技術bは、HTML文書を生成
させることによって、動的にページを変化させることが
できるというものである。ここでは、JavaScriptを使
って画面の背景を黒色から灰色、さらに白色へと徐々に
変化させている。これを応用すれば、背景の絵を時間制
御で変化させたり、マウスイベントに対応させて切り替
えたりすることができる。
(2) The prior art b is capable of dynamically changing a page by generating an HTML document. Here, the background of the screen is gradually changed from black to gray to white using JavaScript. If this is applied, the background picture can be changed by time control, or switched in response to a mouse event.

【0011】しかし、動画像中に含まれる色の配置は各
フレームの画像によって異なるし、背景の動画像はHT
MLタグによって配置される文字列とは無関係に貼り付
けられるため、類似色の文字列と背景が重なる状況を、
ページを生成する前に知ることはできなかった。
However, the arrangement of the colors included in the moving image differs depending on the image of each frame, and the background moving image
Since it is pasted irrespective of the character string arranged by the ML tag, the situation where the character string of similar color and the background overlap,
I couldn't know before generating the page.

【0012】本発明の第2の目的は、背景が動画像であ
る場合に、文字列の色がその文字の近傍にある背景と類
似した色にならないようにすることであり、ページ中の
文字列が表示される部分について、動画像の色を監視し
ておき、フレームに応じて文字の色を変えることであ
る。
A second object of the present invention is to prevent the color of a character string from becoming similar to the background near the character when the background is a moving image. The color of the moving image is monitored for the portion where the column is displayed, and the color of the character is changed according to the frame.

【0013】(3)従来技術cは、HTMLの拡張タグ
〈LAYER〉を用いると、複数のオブジェクトを順番
に重ねて1つのイメージにすることができるというもの
である。すなわち、背景と前景という2つのオブジェク
トの組み合わせだけでなく、多数のオブジェクトを1枚
のページに配置することができる。
(3) In the prior art c, a plurality of objects can be sequentially overlapped to form one image by using an HTML extension tag <LAYER>. That is, not only a combination of two objects, a background and a foreground, but also a large number of objects can be arranged on one page.

【0014】このとき、使用する画像が動画像であれ
ば、画像の色合いが刻々変化するので、重ね合わせてい
るオブジェクトの境界が分かり難くなることがある。
At this time, if the image to be used is a moving image, the hue of the image changes every moment, so that the boundary of the superimposed objects may be difficult to understand.

【0015】本発明の第3の目的は、ページを構成する
文字以外のオブジェクトについて、複数個のオブジェク
トを重ねてページを生成する場合に、類似色のオブジェ
クトが重なってもそれらの境界が分かるようにする事で
ある。
A third object of the present invention is to create a page by superimposing a plurality of objects on objects other than characters constituting a page so that even if objects of similar colors overlap, their boundaries can be recognized. It is to do.

【0016】[0016]

【課題を解決するための手段】本発明では第1の課題を
解決するために、画像中の領域を複数の領域に分離する
ためのマスクデータを持ち、該マスクデータのファイル
と画像ファイルを一対として管理する為のテーブルを持
ち、ページを見るためのビューアによって画像が選ばれ
た場合に、対応するマスクデータを読み出す処理を設け
た。さらに、ページ上に文字列が配置される座標を求め
る処理を設け、その座標がマスク領域の内部にあるか外
部にあるかを判定する処理を設けた。また、マスク領域
に対応する画像領域の平均的な色を定義しておくテーブ
ルを用意した。
In order to solve the first problem, the present invention has mask data for separating an area in an image into a plurality of areas, and a file of the mask data and an image file are paired. And a process for reading out the corresponding mask data when an image is selected by a viewer for viewing a page. Further, a process for obtaining coordinates at which a character string is arranged on a page is provided, and a process for determining whether the coordinates are inside or outside the mask area is provided. In addition, a table for defining an average color of the image area corresponding to the mask area is prepared.

【0017】これにより、データベースに登録された画
像の中から検索によって任意の画像が選ばれたり、イベ
ント処理によって刻々画像が入れ替わる場合に、画像の
マスク領域内に文字列が配置されるかどうかを知ること
ができるし、画像領域の色と文字列の色が類似している
かどうかを知ることができるようになる。
Thus, when an arbitrary image is selected from among the images registered in the database by searching, or when images are replaced every moment by event processing, it is determined whether a character string is arranged in the mask area of the image. It is possible to know whether or not the color of the image area is similar to the color of the character string.

【0018】本発明では第2の課題を解決するために、
前記第1の課題を解決するための処理と、ページ中の文
字列を表示する領域について、動画像の各フレームでの
該領域を構成する色を調べる処理を設けた。また、代表
的な色を背景色にした場合について、背景色に対して映
える文字列の色を記述したテーブルを設け、背景の色に
応じて文字列の色を変える処理を設けた。
In the present invention, in order to solve the second problem,
A process for solving the first problem and a process for examining a color forming an area in each frame of a moving image with respect to an area for displaying a character string in a page are provided. In addition, for a case where the representative color is set as the background color, a table that describes the color of the character string shining against the background color is provided, and a process of changing the color of the character string according to the background color is provided.

【0019】これによって、背景が動画像である場合
に、画像と文字列の色が類似色であるために見え難くな
る状況を知ることができるし、画像に上書きされた文字
が見え難くなる現象を防ぐことができる。
Thus, when the background is a moving image, it is possible to know a situation in which the image and the character string are difficult to see because the colors are similar colors, and the character overwritten on the image is difficult to see. Can be prevented.

【0020】本発明では第3の課題を解決するために、
前記第1の課題を解決するための処理と、全てのオブジ
ェクトにおけるマスクデータの示す領域について、対応
する画像領域を構成する色を調べる処理を設けた。さら
に、各オブジェクトがページ内に配置されるとき、各オ
ブジェクトのページ上での座標を求める処理を設け、オ
ブジェクトが重なり合う組み合わせを調べる処理を設け
た。そして、重なり合うオブジェクトの色が類似色であ
る場合は一方のオブジェクトに枠を作る処理を設けた。
In the present invention, in order to solve the third problem,
A process for solving the first problem and a process for examining a color constituting an image region corresponding to a region indicated by mask data in all objects are provided. Further, when each object is arranged in a page, a process for obtaining coordinates of each object on the page is provided, and a process for examining a combination of overlapping objects is provided. When the colors of the overlapping objects are similar colors, a process for forming a frame in one of the objects is provided.

【0021】これによって、ページ内に配置されたオブ
ジェクトの中に重なり合うオブジェクトがあり、それら
のオブジェクトの色が類似色である場合は、枠によっオ
ブジェクトの境界を明確に示すことができるようにな
り、複数の類似色からなる画像が重なり合ったページに
おいても、各画像を区別することができる。
Thus, if there are overlapping objects among the objects arranged on the page and the colors of these objects are similar, the border of the objects can be clearly indicated by the frame. Even on a page in which images of a plurality of similar colors overlap, each image can be distinguished.

【0022】[0022]

【発明の実施の形態】以下、本発明の実施例を詳細に説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail.

【0023】図1は、本発明を実現するための処理を示
す流れ図である。また、図2は本発明の効果を説明する
ための画面表示例を示した説明図であり、図3は本発明
で用いるデータテーブルの一覧表である。
FIG. 1 is a flowchart showing a process for realizing the present invention. FIG. 2 is an explanatory view showing an example of a screen display for explaining the effect of the present invention, and FIG. 3 is a list of data tables used in the present invention.

【0024】図2の画面表示200は、インターネット
でのショッピングを想定した画面であり、ユーザが使用
する端末に表示される商品紹介の画面である。この場
合、紹介する商品名の文字列がページの始めに配置さ
れ、その下に商品画像220が配置されている。さら
に、商品画像と重なる位置に価格や商品説明等の文字列
230が上書きされている。ここで、画像や文字列をペ
ージ内に配置する為に、予め用意されたページ記述文書
にテンプレートと呼ぶことにする。商品画像220と文
字列230が重ならないようにテンプレートを記述する
こともできるが、ページ200のように商品画像220
と文字列230とを重ねて表示したい場合がある。これ
は、商品画像220のサイズを大きくするとページの見
栄えがするだけでなく商品の詳細部まで分かり易くなる
こと、商品画像220と価格や商品説明の文字列230
はできるだけ近づけて配置すべきであることが理由とし
てあげられる。
Screen display 200 in FIG. 2 is a screen assuming shopping on the Internet, and is a product introduction screen displayed on a terminal used by the user. In this case, the character string of the product name to be introduced is arranged at the beginning of the page, and the product image 220 is arranged below it. Further, a character string 230 such as a price or a product description is overwritten at a position overlapping the product image. Here, in order to arrange an image or a character string in a page, a template prepared in a page description document prepared in advance is referred to as a template. The template can be described so that the product image 220 and the character string 230 do not overlap.
And the character string 230 in some cases. This is because if the size of the product image 220 is increased, not only the appearance of the page but also the details of the product become easy to understand, and the product image 220 and the character string 230 of the price and the product description are displayed.
Should be placed as close as possible.

【0025】このとき、価格等の文字列230は、ショ
ッピングにとって極めて重要な情報であり、ページ20
0に表示する商品画像220と文字列230が固定され
ている場合は、予め文字列230を商品画像220に重
畳して文字列230が見え難くならないかどうかを試し
ておく必要がある。ところが、ユーザの求めている商品
をデータベースから検索する場合や、商品画像220が
動画像である場合は、予め文字列230を重畳して視認
性を試しておくことはできない。
At this time, the character string 230 such as the price is extremely important information for shopping.
When the product image 220 and the character string 230 displayed at 0 are fixed, it is necessary to test in advance whether the character string 230 is superimposed on the product image 220 to make the character string 230 difficult to see. However, when searching for a product desired by the user from the database or when the product image 220 is a moving image, it is not possible to test the visibility by superimposing the character string 230 in advance.

【0026】そこで、サーバでページを生成する際に、
ステップ100で処理が開始されると、始めにテンプレ
ートファイルを読み込む処理をステップ110で行な
う。次に、読み込んだテンプレートに記述されたページ
記述文書を解析し、デフォルトとして定義された文字の
色をステップ120で調べる。文字列の色をHTMLで
は、BODY TEXT=“#rrggbb”あるいは
FONT COLOR=“#rrggbb”などで記述
しており、ページ記述文書からこれらのタグを検索すれ
ば、容易に文字列の色“rrggbb”を特定すること
ができる。なお、rrggbbは16進表記された6桁
の数であり、頭から2桁が赤色の成分を示し、次の2桁
が緑色の成分、末尾の2桁が青色の成分を示している。
Therefore, when generating a page on the server,
When the process is started in step 100, first, a process of reading a template file is performed in step 110. Next, the page description document described in the read template is analyzed, and the color of the character defined as the default is checked in step 120. In HTML, the color of the character string is described by BODY TEXT = “# rrggbb” or FONT COLOR = “# rrggbb”. If these tags are retrieved from the page description document, the color of the character string can be easily changed to “rrggbb”. "Can be specified. Note that rrggbb is a hexadecimal six-digit number. The first two digits indicate a red component, the next two digits indicate a green component, and the last two digits indicate a blue component.

【0027】ステップ130でテンプレートファイルを
解析し、ページに配置された文字列の座標を求める。こ
のとき、画像がタイル貼りのように何枚も並べられると
見栄えが悪いので、ページをオープンする時にページの
サイズは固定されているものとする。また、文字フォン
トのサイズや文字間隔、マージンは既知とする。さら
に、文字列の内容である商品の説明315や価格320
は、テーブル300に記述されており、商品の分類コー
ド305や商品コード310をキーワードとしてデータ
ベースから引けるものとする。すなわち、ページ左のマ
ージンをM、1文字の幅をS、文字と文字の間隔をDと
するとき、(n+1)番目の文字は左詰めで、2M+n
×(S+D)がページの横幅を超えない限り、1行目の
M+n・(S+D)の位置に書かれる。
In step 130, the template file is analyzed to determine the coordinates of the character string arranged on the page. At this time, it is assumed that the page size is fixed when the page is opened because the appearance is poor if many images are arranged like tiles. In addition, it is assumed that the character font size, character spacing, and margin are known. Furthermore, the description 315 of the product, which is the content of the character string, and the price 320
Are described in the table 300 and can be retrieved from the database using the product classification code 305 and the product code 310 as keywords. That is, when the left margin of the page is M, the width of one character is S, and the space between characters is D, the (n + 1) th character is left-justified and 2M + n
As long as × (S + D) does not exceed the width of the page, it is written at the position of M + n · (S + D) in the first row.

【0028】次に、ステップ140において、画像ファ
イル名335とマスクファイル名340を調べて、これ
らのファイルの読み込みを行ない、ページ上の座標系に
おけるマスク領域350を求める。これらのファイル名
は、商品に付けられたユニークな番号である商品コード
330をキーワードにしてテーブル325から調べるこ
とができる。このように、画像ファイルのテーブルと商
品情報のテーブルを分離しておくと、価格等が変わった
場合に限られたテーブルだけを編集すれば良くなる。
Next, in step 140, the image file name 335 and the mask file name 340 are checked, these files are read, and the mask area 350 in the coordinate system on the page is obtained. These file names can be checked from the table 325 using the product code 330, which is a unique number assigned to the product, as a keyword. As described above, if the table of the image file and the table of the product information are separated, only the limited table needs to be edited when the price or the like changes.

【0029】ステップ150において、マスクファイル
のマスク領域350内に前記文字列の座標が入るか否か
を判定する。そして、文字列がマスク領域内に入る場合
はステップ160に進み、文字列がマスク領域外にある
場合はステップ180に進むよう処理が分岐する。
In step 150, it is determined whether or not the coordinates of the character string fall within the mask area 350 of the mask file. If the character string is within the mask area, the process proceeds to step 160, and if the character string is outside the mask area, the process branches to step 180.

【0030】ステップ160では、文字列とマスク領域
が重なっているはずであるから、その文字列の色とマス
ク領域に対応する画像領域の色を比較する。この画像領
域の色は、テーブル355に記載してあり、マスク領域
に対して付加されたユニークな番号である領域コードを
キーワードに検索できる。ステップ160において文字
列の色と画像領域の色が類似色であるなら処理はステッ
プ170に進み、そうでないならステップ180にジャ
ンプする。ただし、文字列の色をCm、画像領域の色を
Cbとするとき、|Cm−Cb|÷Cb<α(αは定
数)となる場合にこれらの色を類似色と判断する。
In step 160, since the character string and the mask area should overlap, the color of the character string is compared with the color of the image area corresponding to the mask area. The color of the image area is described in the table 355, and the area code which is a unique number added to the mask area can be searched for as a keyword. If it is determined in step 160 that the color of the character string is similar to the color of the image area, the process proceeds to step 170; otherwise, the process jumps to step 180. However, when the color of the character string is Cm and the color of the image area is Cb, when | Cm−Cb | ÷ Cb <α (α is a constant), these colors are determined to be similar colors.

【0031】ステップ170では、テーブル370に基
づき文字列の色を変更する。テーブル370は、背景の
色375に対して、どの色の文字が映えるかという対称
色380を記述したものである。ステップ170におい
て、使用する文字色が決められたなら、ステップ180
において文字色のページ記述言語を書き換え、ステップ
190でページ生成の処理を終了する。
In step 170, the color of the character string is changed based on the table 370. The table 370 describes a symmetrical color 380 indicating which color of a character appears with respect to a background color 375. If the character color to be used is determined in step 170, step 180
, The page description language of the character color is rewritten, and the page generation processing ends in step 190.

【0032】ただし、図1のステップ170は文字色の
変更を行なうが、文字のフォントを変更することでも見
え易さが改善される場合もあるし、文字の大きさを変え
ることで改善される場合もある。このような場合は文字
の色に関するページ記述ではなく、物理スタイルタグ
〈B〉等を追加したり、フォントサイズタグ〈FONT
SIZE=“n”〉をページ記述文書に追加記述する。
However, in step 170 in FIG. 1, the character color is changed. In some cases, the visibility is improved by changing the font of the character, or the character size is changed by changing the character size. In some cases. In such a case, a physical style tag <B> or the like is added instead of a page description related to the character color, or a font size tag <FONT>
SIZE = “n”> is additionally described in the page description document.

【0033】また、ページの目的によっては、特定の文
字をわざと見え難くするという場合もあり、このような
場合は画像領域の色と類似した色を文字色として使用す
る。この場合は、テーブル370の対称色380の欄に
類似色を定義しておけば、処理自体の変更はない。
Further, depending on the purpose of the page, there may be a case where a specific character is intentionally made difficult to see. In such a case, a color similar to the color of the image area is used as the character color. In this case, if a similar color is defined in the column of the symmetric color 380 of the table 370, the processing itself does not change.

【0034】図4は、本発明を実施するためのハードウ
ェア構成図である。また、図5は本発明を実現するため
の機能オブジェクトの構成を示すオブジェクト関連図で
ある。
FIG. 4 is a hardware configuration diagram for implementing the present invention. FIG. 5 is an object-related diagram showing a configuration of a functional object for realizing the present invention.

【0035】表示画面200は、クライアント460の
表示装置400に表示される画面である。ユーザは、コ
マンド入力装置405を使って商品の選択等の入力を行
なう。また、クライアント460は通信装置415を通
してインターネット430等のネットワークに接続され
ており、インターネットに接続されたサーバからデータ
を取得することができる。すなわち、HTTPクライア
ントプログラムは、リモートホスト上のwell−kn
ownポートにTCP接続を確立し、HTTPサーバに
要求を送ると、HTTPサーバは応答メッセージを返し
ます。このとき、クライアント460はプロセッサ41
0と記憶装置420を持ち、クライアントプログラムや
データを記憶装置420上に置き、クライアントプログ
ラムはプロセッサ410で駆動される。また、バス42
5によってこれらの装置が連結されており、バス425
を通してデータは装置間を移動する。
The display screen 200 is a screen displayed on the display device 400 of the client 460. The user uses the command input device 405 to perform input such as selection of a product. The client 460 is connected to a network such as the Internet 430 through the communication device 415, and can acquire data from a server connected to the Internet. That is, the HTTP client program executes well-kn on the remote host.
When establishing a TCP connection to the own port and sending a request to the HTTP server, the HTTP server returns a response message. At this time, the client 460 communicates with the processor 41
0 and a storage device 420, and a client program and data are placed on the storage device 420. The client program is driven by the processor 410. In addition, bus 42
These devices are connected by a bus 425.
Data travels between devices.

【0036】一方、サーバ470は、クライアント46
0との間にTCP接続を確立し、クライアントのローカ
ルプロトコルポートにバイトストリームファイル転送を
します。このため、インターネットに接続するための通
信装置435と、サーバプログラムやデータ等を記憶す
る記憶装置440と、プログラムを実行するプロセッサ
445とそれらの装置を接続するバス450が必要であ
る。また、記憶装置440には、WWWサーバの機能5
00を持つプログラムと、HTMLファイルを動的に生
成する機能510を持つプログラムと、ページ記述文書
を解析する機能520を持つプログラムと、データベー
スと接続してデータの検索を行なう機能540を持つプ
ログラムと、画像を解析する機能550を持つプログラ
ムと、テンプレートファイル530が記憶されている。
ここで、ページ記述文書解析機能520は、テンプレー
トファイル530を読み込み、文書に含まれる文字列を
ページ記述言語と変数や定数に分離する。また、動的H
TML生成機能510は、ページ記述文書解析機能52
0の解析結果を元にして、データベースの検索機能54
0に検索結果を問い合わせたり、画像解析機能550に
画像の色を問い合わせ、その結果を変数部に代入してペ
ージ記述文書を完成させる。このようにして動的に生成
されたHTMLファイルがクライアント460に送られ
る。
On the other hand, the server 470
Establish a TCP connection between 0 and transfer a byte stream file to the client's local protocol port. Therefore, a communication device 435 for connecting to the Internet, a storage device 440 for storing server programs and data, a processor 445 for executing programs, and a bus 450 for connecting those devices are required. Further, the storage device 440 stores the function 5 of the WWW server.
A program having a function 510 for dynamically generating an HTML file, a program having a function 520 for analyzing a page description document, and a program having a function 540 for connecting to a database and searching for data. , A program having an image analyzing function 550 and a template file 530 are stored.
Here, the page description document analysis function 520 reads the template file 530 and separates a character string included in the document into a page description language and variables and constants. Also, dynamic H
The TML generation function 510 includes a page description document analysis function 52.
0 based on the analysis result of
0 is inquired about the search result, or the image analysis function 550 is inquired about the color of the image, and the result is substituted into the variable part to complete the page description document. The dynamically generated HTML file is sent to the client 460.

【0037】図6は、背景が動画像である場合に、画像
領域の色を管理する仕組みに関する説明図である。ペー
ジ600上に2つの領域があり、領域1(610)には
商品の説明、領域2(620)には商品の価格が表示さ
れるとする。この領域は、図3の領域コード350と同
じくページ内の一部領域の意味であり、このとき、商品
の説明を記述した文字列と価格を記述した文字列は、異
なる色の文字で書いても良いとする。
FIG. 6 is an explanatory diagram relating to a mechanism for managing the color of an image area when the background is a moving image. It is assumed that there are two regions on the page 600, and the description of the product is displayed in the region 1 (610) and the price of the product is displayed in the region 2 (620). This area has the meaning of a partial area in the page, similar to the area code 350 in FIG. 3. At this time, the character string describing the description of the product and the character string describing the price are written in different colors. Is also good.

【0038】このとき、2つの画像領域の色を図6下の
ようなテーブルで管理する。時間軸630は動画像の各
フレームを時間で管理するものであり、動画像のフレー
ム640が時間順に並べられている。領域1を管理する
行650と領域2を管理する行660は、色の値を縦
軸、時間を横軸とするグラフで現わされる。図6の場
合、領域2に当る画像領域の色は、始めの3フレーム6
70がC3であり、6フレーム目以降のフレーム680
がC4であり、4フレームから5フレームにかけては関
数F2に従って色C3から色C4に変化している。この
管理表は、図3における表355と同じ働きをするもの
であり、動画像に上書きされる文字列の色は、表370
において色375に対応する対称色380を見つけるこ
とで決められる。
At this time, the colors of the two image areas are managed in a table as shown in FIG. The time axis 630 manages each frame of the moving image by time, and the frames 640 of the moving image are arranged in chronological order. A row 650 for managing the area 1 and a row 660 for managing the area 2 are represented by a graph in which the vertical axis represents color values and the horizontal axis represents time. In the case of FIG. 6, the color of the image area corresponding to the area 2 is the first three frames 6
70 is C3, and frames 680 after the sixth frame
Is C4, and changes from color C3 to color C4 according to the function F2 from frame 4 to frame 5. This management table has the same function as the table 355 in FIG. 3, and the color of the character string overwritten on the moving image is the table 370.
, A symmetric color 380 corresponding to the color 375 is determined.

【0039】図7は、表品画像220の上に文字列23
0ではなく別の画像を重畳する場合について、各画像の
色を管理するための仕組みに関する説明図である。この
とき、画像データ自体をデータ変換するのではなく、ペ
ージ記述文書に対して画像の枠を付けるページ記述を追
加する。これによって、ページ700上に複数の画像7
10があり、さらにそれと重なる位置に画像720が配
置されたページを生成する時に、各画像の境界がわから
なくなるのを防ぐことができる。簡単のため、ページ7
00内には2枚の画像があり、しかも画像710は静止
画像とし、画像2のみが動画像とする。時間軸730は
動画像の各フレームを時間で管理するものであり、動画
像のフレーム740が時間順に並べられている。画像1
を管理する行750と画像2を管理する行760は、色
の値を縦軸、時間を横軸とするグラフで現わされる。図
7では、画像1は静止画像であるから、その色C1は時
間軸に対して一定であり、画像1の全フレーム785は
C1である。画像2は動画像であり、頭の3フレーム7
70の色がC2、次の4フレーム780がC3、最後の
4フレーム775がC4に変化し、C1とC3の色が類
似色であるとする。このとき、フレーム770とフレー
ム775では画像2をそのまま表示し、フレーム780
では画像2に枠を付けて表示する。
FIG. 7 shows the character string 23 on the table image 220.
FIG. 9 is an explanatory diagram of a mechanism for managing the color of each image when another image is superimposed instead of 0. At this time, instead of data conversion of the image data itself, a page description for adding an image frame to the page description document is added. Thereby, a plurality of images 7 are displayed on the page 700.
10, when a page in which the image 720 is arranged at a position overlapping the image 10 is generated, it is possible to prevent the boundary of each image from being lost. Page 7 for simplicity
00 contains two images, and the image 710 is a still image, and only the image 2 is a moving image. The time axis 730 manages each frame of the moving image by time, and the frames 740 of the moving image are arranged in chronological order. Image 1
And a row 760 for managing the image 2 are represented by a graph with the color value on the vertical axis and the time on the horizontal axis. In FIG. 7, since image 1 is a still image, its color C1 is constant with respect to the time axis, and all frames 785 of image 1 are C1. Image 2 is a moving image, and three frames 7 of the head
It is assumed that the color of 70 changes to C2, the next four frames 780 change to C3, the last four frames 775 change to C4, and the colors of C1 and C3 are similar colors. At this time, in frame 770 and frame 775, image 2 is displayed as it is, and in frame 780
Then, the image 2 is displayed with a frame.

【0040】[0040]

【発明の効果】以上に述べたように、本発明によれば、
背景に貼り付ける画像が予め分かっていない場合に、文
字列と画像の絵柄が重なって文字が読み辛くなる状況を
防ぐことが可能になり、背景の画像に応じて文字の属性
を変化させることができる。
As described above, according to the present invention,
When the image to be pasted on the background is not known in advance, it is possible to prevent a situation in which the character string and the image pattern overlap and the character becomes difficult to read, and it is possible to change the attribute of the character according to the background image it can.

【0041】さらに、本発明によれば、背景が動画像で
ある場合に、文字列の色がその文字の近傍にある背景と
類似した色にならないように監視することができ、動画
像の各フレームに応じて文字列の色を変えることができ
る。
Further, according to the present invention, when the background is a moving image, it is possible to monitor the color of the character string so as not to be similar to the background in the vicinity of the character. The color of the character string can be changed according to the frame.

【0042】さらに、本発明によれば、ページを構成す
る文字以外のオブジェクトについて、複数個のオブジェ
クトを重ねてページを生成する場合に、類似色のオブジ
ェクトが重なってもそれらの境界が分かるようにするこ
とができる。
Further, according to the present invention, when a page is generated by superimposing a plurality of objects on objects other than characters constituting a page, even if objects of similar colors overlap, their boundaries can be recognized. can do.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明を実現するための処理を示す流れ図であ
る。
FIG. 1 is a flowchart showing a process for realizing the present invention.

【図2】本発明の効果を説明するための画像表示例を示
した説明図である。
FIG. 2 is an explanatory diagram showing an image display example for explaining the effect of the present invention.

【図3】本発明で用いるデータテーブルの一覧表であ
る。
FIG. 3 is a list of data tables used in the present invention.

【図4】本発明を実施するためのハードウェア構成図で
ある。
FIG. 4 is a hardware configuration diagram for implementing the present invention.

【図5】本発明を実現するための機能オブジェクトの構
成を示すオブジェクト関連図である。
FIG. 5 is an object relation diagram showing a configuration of a functional object for realizing the present invention.

【図6】背景が動画像である場合に、画像領域の色を管
理する仕組みに関する説明図である。
FIG. 6 is an explanatory diagram relating to a mechanism for managing the color of an image area when the background is a moving image.

【図7】ページ内に複数の画像を重畳する場合につい
て、各画像の色を管理するための仕組みに関する説明図
である。
FIG. 7 is an explanatory diagram of a mechanism for managing colors of each image when a plurality of images are superimposed on a page.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G06F 15/66 310 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification code FIG06F 15/66 310

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】画像と文字列が重なり合ったページを生成
することを特徴とし、 画像を保持する手段、画像の色を分析する手段、前記分
析結果に基づきページを生成する手段をもった計算機シ
ステム上で動作するソフトウェアシステムであり、 画像の一部領域について平均色を求める処理、ページ上
での文字列の位置を求める処理、前記平均色と文字列の
色を比較する処理を有し、双方の色差が小さくかつ文字
列と該領域が重なる場合は、文字列の色を変える処理を
有するページ生成方法。
1. A computer system comprising: a page in which an image and a character string overlap each other; and a means for holding an image, a means for analyzing the color of an image, and a means for generating a page based on the analysis result. A software system operating on the above, including a process of obtaining an average color for a partial area of an image, a process of obtaining a position of a character string on a page, and a process of comparing the average color and the color of a character string. A method of changing the color of the character string when the color difference is small and the character string overlaps the area.
【請求項2】請求項1記載のソフトウェアシステムにお
いて、 画像の一部領域について平均色を求める処理、ページ上
での文字列の位置を求める処理、前記平均色と文字列の
色を比較する処理を有し、双方の色差が小さくかつ文字
列と該領域が重なる場合は、色以外の文字列の属性を変
える処理を有するページ生成方法。
2. A software system according to claim 1, wherein an average color is calculated for a partial area of the image, a character string position on a page is calculated, and a character string color is compared with the average color. And a process for changing the attribute of the character string other than the color when the color difference between the two is small and the character string overlaps the area.
【請求項3】請求項1記載のソフトウェアシステムにお
いて、 画像の一部領域について平均色を求める処理、ページ上
での文字列の位置を求める処理、前記平均色と文字列の
色を比較する処理を有し、文字列と該領域が重なる場合
は、画像と類似した色に文字列の色を変える処理を有す
るページ生成方法。
3. The software system according to claim 1, wherein a process of obtaining an average color for a partial area of the image, a process of obtaining a position of a character string on a page, and a process of comparing the average color with the color of the character string. And a process for changing the color of the character string to a color similar to the image when the character string and the area overlap.
【請求項4】請求項1記載のソフトウェアシステムにお
いて、 画像の一部領域について平均色を求める処理、ページ上
での文字列の位置を求める処理、前記平均色と文字列の
色を比較する処理を有し、双方の色差が小さくかつ文字
列と該領域が重なる場合は、ページ上での文字列の位置
を移動する処理を有するページ生成方法。
4. The software system according to claim 1, wherein a process of obtaining an average color for a partial area of the image, a process of obtaining a position of a character string on a page, and a process of comparing the average color with the color of the character string A page generation method having a process of moving the position of the character string on the page when the color difference between the two is small and the character string overlaps the area.
【請求項5】請求項1記載のソフトウェアシステムにお
いて、 画像が動画像であるとき、文字列と重なる領域について
各フレームの平均色を求める処理、平均色と文字列の色
を比較する処理を有し、双方の色差が小さくなった場合
は、文字列の色を変える処理を有するページ生成方法。
5. The software system according to claim 1, further comprising, when the image is a moving image, a process of obtaining an average color of each frame in a region overlapping with the character string, and a process of comparing the average color with the color of the character string. A page generation method including a process of changing the color of a character string when the color difference between the two becomes small.
【請求項6】複数の画像が重なり合うページを生成する
ことを特徴とし、 画像を保持する手段、画像の色を分析する手段、前記分
析結果に基づきページを生成する手段を持った計算機シ
ステム上で動作するソフトウェアシステムであり、ペー
ジ上での各画像の位置を求める処理、各画像に含まれる
色を比較する処理、色差の小さい画像同士が重なるかど
うかを判別する処理を有し、類似色の画像が重なる場合
は一方の画像に枠を付ける処理を有するページ生成方
法。
6. A computer system having a means for generating a page in which a plurality of images overlap with each other, comprising means for holding an image, means for analyzing the color of an image, and means for generating a page based on the analysis result. A software system that operates and has a process of determining the position of each image on a page, a process of comparing colors included in each image, and a process of determining whether images with small color differences overlap each other. A page generation method including a process of adding a frame to one image when the images overlap.
JP2063898A 1998-02-02 1998-02-02 Method for generating page Pending JPH11219242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2063898A JPH11219242A (en) 1998-02-02 1998-02-02 Method for generating page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2063898A JPH11219242A (en) 1998-02-02 1998-02-02 Method for generating page

Publications (1)

Publication Number Publication Date
JPH11219242A true JPH11219242A (en) 1999-08-10

Family

ID=12032780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2063898A Pending JPH11219242A (en) 1998-02-02 1998-02-02 Method for generating page

Country Status (1)

Country Link
JP (1) JPH11219242A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117948A (en) * 1999-09-17 2001-04-27 Internatl Business Mach Corp <Ibm> Application program interface document interface for internet base
JP2002077583A (en) * 2000-08-30 2002-03-15 Abc Japon Inc Expression of background image in markup language
WO2003098925A1 (en) * 2002-05-15 2003-11-27 Thomson Licensing S.A. Close captioning system in windows based graphics system
WO2005022501A1 (en) * 2003-08-27 2005-03-10 Koninklijke Philips Electronics, N.V. Method and apparatus for updating sub-pictures in a bi-stable electronic reading device
JP2005159955A (en) * 2003-11-28 2005-06-16 Casio Comput Co Ltd Display control apparatus and program for display control processing
EP1684262A1 (en) * 2005-01-21 2006-07-26 Research In Motion Limited Device and Method for Controlling the Display of Electronic Information
US7312798B2 (en) 2005-01-21 2007-12-25 Research In Motion Limited Device and method for controlling the display of electronic information
JP2010238266A (en) * 2003-06-13 2010-10-21 Canon Inc Document management apparatus and document management method
JP2012073730A (en) * 2010-09-28 2012-04-12 Nec Corp Editor program, editor screen display method and information processor having editor program
CN103327216A (en) * 2012-03-23 2013-09-25 富士施乐株式会社 Image processing apparatus and image processing method
JP5793260B1 (en) * 2014-11-21 2015-10-14 楽天株式会社 Information processing apparatus, information processing method, and information processing program
CN109788162A (en) * 2017-11-15 2019-05-21 柯尼卡美能达株式会社 Control device and computer-readable recording medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117948A (en) * 1999-09-17 2001-04-27 Internatl Business Mach Corp <Ibm> Application program interface document interface for internet base
JP2002077583A (en) * 2000-08-30 2002-03-15 Abc Japon Inc Expression of background image in markup language
CN100433807C (en) * 2002-05-15 2008-11-12 汤姆森特许公司 Close captioning system in windows based graphics system
WO2003098925A1 (en) * 2002-05-15 2003-11-27 Thomson Licensing S.A. Close captioning system in windows based graphics system
US7511761B2 (en) 2002-05-15 2009-03-31 Thomson Licensing Close captioning system in windows based graphics system
JP2010238266A (en) * 2003-06-13 2010-10-21 Canon Inc Document management apparatus and document management method
WO2005022501A1 (en) * 2003-08-27 2005-03-10 Koninklijke Philips Electronics, N.V. Method and apparatus for updating sub-pictures in a bi-stable electronic reading device
JP2005159955A (en) * 2003-11-28 2005-06-16 Casio Comput Co Ltd Display control apparatus and program for display control processing
JP4552426B2 (en) * 2003-11-28 2010-09-29 カシオ計算機株式会社 Display control apparatus and display control processing program
US7312798B2 (en) 2005-01-21 2007-12-25 Research In Motion Limited Device and method for controlling the display of electronic information
EP1684262A1 (en) * 2005-01-21 2006-07-26 Research In Motion Limited Device and Method for Controlling the Display of Electronic Information
JP2012073730A (en) * 2010-09-28 2012-04-12 Nec Corp Editor program, editor screen display method and information processor having editor program
CN103327216A (en) * 2012-03-23 2013-09-25 富士施乐株式会社 Image processing apparatus and image processing method
JP5793260B1 (en) * 2014-11-21 2015-10-14 楽天株式会社 Information processing apparatus, information processing method, and information processing program
WO2016079868A1 (en) * 2014-11-21 2016-05-26 楽天株式会社 Information processing device, information processing method, and information processing program
CN109788162A (en) * 2017-11-15 2019-05-21 柯尼卡美能达株式会社 Control device and computer-readable recording medium

Similar Documents

Publication Publication Date Title
US20190287286A1 (en) Content replacement system using visual design object models
US6961737B2 (en) Serving signals
US6493732B2 (en) Method of and an apparatus for displaying version information and configuration and a computer-readable recording medium on which a version and configuration information display program is recorded
US7685157B2 (en) Extraction of information from structured documents
US9471557B2 (en) Client-side modification of electronic documents in a client-server environment
US20080240683A1 (en) Method and system to reproduce contents, and recording medium including program to reproduce contents
CN110245069A (en) The methods of exhibiting and device of the test method and device of page versions, the page
JPH11219242A (en) Method for generating page
JP3006482B2 (en) Information retrieval apparatus and method
CN114706584A (en) Data visualization display manufacturing system
CN113761304A (en) Big data intelligent display configuration method based on dynamic parameters
JPH1049544A (en) Method and device for supporting analysis of multi-dimensional data while visualizing then
JPH1125114A (en) Browser device in network information system, browsing method and recording medium
JP3596482B2 (en) Personal banner creation program
JP6109443B1 (en) Content display device, content display system, content display method, and content display program
JPH10293737A (en) Fusion and display method of information on distributed db
JPH10162010A (en) Method for displaying number of referencing times in document retrieval system
JPH10162093A (en) Commodity information allocation device
JPH10111854A (en) Method for displaying link number in browser
JP3910680B2 (en) Material allocation device prepared as digital data
JPH02165223A (en) Realization system for object-oriented mode man-machine interface
JP2006023972A (en) System, method and program for indicating portlet
JP2003187255A (en) Program and apparatus for image formation
JP2004246646A (en) Color arranging method and system
JP2001034527A (en) Method for generating html film and recording medium where program therefor is recorded