JP5221397B2 - Impose character color automatic selection device - Google Patents

Impose character color automatic selection device Download PDF

Info

Publication number
JP5221397B2
JP5221397B2 JP2009001134A JP2009001134A JP5221397B2 JP 5221397 B2 JP5221397 B2 JP 5221397B2 JP 2009001134 A JP2009001134 A JP 2009001134A JP 2009001134 A JP2009001134 A JP 2009001134A JP 5221397 B2 JP5221397 B2 JP 5221397B2
Authority
JP
Japan
Prior art keywords
white
black
character
value
character color
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.)
Expired - Fee Related
Application number
JP2009001134A
Other languages
Japanese (ja)
Other versions
JP2010161508A (en
Inventor
考祐 上田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Radio Co Ltd
Original Assignee
Japan Radio Co 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 Japan Radio Co Ltd filed Critical Japan Radio Co Ltd
Priority to JP2009001134A priority Critical patent/JP5221397B2/en
Publication of JP2010161508A publication Critical patent/JP2010161508A/en
Application granted granted Critical
Publication of JP5221397B2 publication Critical patent/JP5221397B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Circuits (AREA)

Description

本発明は、スチルカメラやビデオカメラ等で撮影された映像情報を伝送し、再生する場合において、映像情報に文字を重畳させるスーパーインポーズ表示装置に関する。 The present invention relates to a superimpose display device that superimposes characters on video information when transmitting and reproducing video information captured by a still camera, a video camera, or the like.

スーパーインポーズ(superimpose)とは映像に文字や図形を重ねる映像効果を言うもので、テロップ(Television Opaque Projector)とも呼ばれており、テレビ放送においては時刻告知や天気予報、歌番組における歌詞表示などに古くから用いられている技術である。以下、映像に文字を重畳することをインポーズと呼ぶことにする。 Superimpose is a video effect that superimposes characters and figures on a video, and is also called a telop (television opaque projector). In television broadcasting, time announcements, weather forecasts, lyrics display in song programs, etc. This technology has been used for a long time. Hereinafter, superimposing characters on a video is referred to as “impose”.

インポーズする文字の色は、現状では白色に固定することが多いが、この手段だと、例えば背景に雲や白い建造物、また、強い日光が入っている場合に、文字と背景の区別がつかなくなり、閲覧者による判読を著しく阻害するものとなる。 Currently, the color of the characters to be imposed is often fixed to white, but with this method, for example, when there is a cloud or white building in the background, or when there is strong sunlight, the character can be distinguished from the background. It becomes unintentional, and the reading by the viewer is significantly hindered.

また、例えば防災用の定点監視においては、撮影する対象は長時間同一のものであっても、24時間監視をする場合には、昼と夜とで映像の明度が大きく変わるため、例えば昼には黒い文字を、又、夜には白い文字をインポーズすることが理想となる。 For example, in the case of fixed point monitoring for disaster prevention, even if the subject to be photographed is the same for a long time, the brightness of the image changes greatly between day and night when monitoring for 24 hours. It would be ideal to impose black letters or white letters at night.

テレビ放送初期の頃は、オペックカードと呼ばれる白色もしくは黒色のカードに、白色のオペックカードなら黒色の文字を、黒色のオペックカードなら白色の文字を表示し、判読しやすくする方法が採用された。 In the early days of television broadcasting, a white or black card called an opec card was used to display black characters for white opec cards and white characters for black opec cards to make it easier to read.

一方、例えば特許文献1のように、記録媒体に記録されている映像情報に関して、記録媒体から読み取った映像情報の背景色に応じてインポーズする文字色を変化する手段が提案されている。これは、文字情報を重畳させるエリアの色情報を抽出し、1フレーム間の彩度及び色相の平均値を計算することによって、最適な文字色を決定するというものであった。 On the other hand, as disclosed in Patent Document 1, for example, a means has been proposed for changing the character color to be imposed on the video information recorded on the recording medium according to the background color of the video information read from the recording medium. This is to determine the optimal character color by extracting the color information of the area where the character information is superimposed and calculating the average value of the saturation and hue between one frame.

また、特許文献2においても、液晶ファインダー付きカメラの液晶ファインダー部における映像と文字の表示方法に関して、背景色の明暗によってインポーズする文字色を変化させる手段が提案されている。 Patent Document 2 also proposes means for changing the character color to be imposed by the contrast of the background color with respect to the display method of video and characters in the liquid crystal finder portion of the camera with a liquid crystal finder.

特開平8−195968号公報JP-A-8-195968 特開平10−319488号公報JP-A-10-319488

一般に画像伝送装置の場合、搭載する文字インポーズ処理はリアルタイムでなくてはならず、そのため、ハードウェアで実現することが多い。しかるに、前記のような背景色の平均値により文字色を決定する手段をとった場合、背景色の計算にあたっては、画面の画素ドット毎の色情報を加算した後に、画素数で除算しなければならず、加算によるビット数の増加と、除算の除数の増減変化のため、計算は複雑なものとなる。 In general, in the case of an image transmission apparatus, the character imposing process to be mounted must be real-time, and is therefore often realized by hardware. However, when the character color is determined based on the average value of the background colors as described above, the color information for each pixel dot on the screen must be added and then divided by the number of pixels when calculating the background color. Rather, the calculation is complicated because of the increase in the number of bits due to the addition and the change in the divisor of the division.

また、画素数に関しては電子デバイスや通信技術の発展により、ますます増加の傾向にあり、これに伴う演算量の増加も大きな障壁となっている。 In addition, the number of pixels tends to increase due to the development of electronic devices and communication technologies, and the increase in the amount of computation accompanying this is also a major barrier.

また、映像情報は時々刻々と変化するものであるから、映像の変化に伴い頻繁に文字色が変化するのは閲覧者にとって苦痛であり、読みやすい文字色にした事がかえってスムーズな視聴を妨げることにもなりかねない。よって、頻繁にインポーズ文字色が変わってしまうという、いわゆるチャタリングを防止する保護機能が必須である。 In addition, since video information changes from moment to moment, frequent changes in text color due to changes in video are painful for viewers, making it easier to read and preventing smooth viewing. It can also be a thing. Therefore, a protection function for preventing so-called chattering that the impose character color frequently changes is essential.

前記のように、低演算量であり、且つ、頻繁な文字色変更を避けたいという課題を解決するために、本発明においては次のような手段をとるものとする。 As described above, in order to solve the problem of low computational complexity and avoiding frequent character color changes, the following measures are taken in the present invention.

本発明は、例えば道路や河川などの監視のために設置されたカメラ等で撮影された動画情報をネットワークを経由してモニタで視聴するシステムにおいて、
撮影機材によって撮影された動画情報データから文字インポーズを実施する領域の画素データを読み取るインポーズ領域画素読み取り部と、
中間調の明度値を基準値Aとした場合に前記インポーズ領域画素読み取り部が読み取った画素の明度が基準値Aより高いか低いかを判定する画素明度比較部と、
前記画素明度比較部が高いと判定したら白値Wに1を加算し又低いと判定したら黒値Bに1を加算する明度積分部と、
前記インポーズ領域画素読み取り部が読み取った全画素データを前記画素明度比較部が比較した結果の前記白値Wと黒値Bの値を比較する積分値比較部と、
前記積分値比較部により白値Wが高いと判定したらインポーズ文字色を黒にし又黒値Bが高いと判定したらインポーズ文字色を白に決定する文字色決定部と、
前記文字色決定部が決定した文字色によって文字情報を生成する文字情報生成部と、
からなるインポーズ文字の自動色選択装置とする。
The present invention, for example, in a system for viewing moving image information captured by a camera or the like installed for monitoring a road or a river on a monitor via a network,
An impose area pixel reading unit that reads out pixel data of an area in which character impose is performed from video information data photographed by the photographing equipment;
A pixel lightness comparison unit that determines whether the lightness of the pixel read by the impose area pixel reading unit is higher or lower than the reference value A when the lightness value of the halftone is the reference value A;
A brightness integration unit that adds 1 to the white value W if it is determined that the pixel brightness comparison unit is high;
An integral value comparison unit that compares the white value W and the black value B as a result of the pixel brightness comparison unit comparing all the pixel data read by the impose region pixel reading unit;
A character color determining unit that determines the impose character color to be black when the integral value comparing unit determines that the white value W is high, and determines the impose character color to be white when it is determined that the black value B is high;
A character information generation unit that generates character information according to the character color determined by the character color determination unit;
The automatic character selection device for impose characters consisting of

本手段により、処理が複雑では無く、なおかつ低演算量で文字インポーズが出来、さらに、全ての手順を自動化することが可能となる。 By this means, the processing is not complicated, and the character can be imposed with a low calculation amount, and further, all procedures can be automated.

また、本発明は、映像情報の処理単位をフレームと呼び、前記積分値比較部において、連続して前記白値Wが大きいと判定した連続数を連続白フレーム回数X、また、連続して黒値Bが大きいと判定した連続数を連続黒フレーム回数Yとし、連続白フレーム回数Xの閾値を連続白フレーム閾値M、連続黒フレーム回数Yの閾値を連続黒フレーム閾値Nとした場合に、
前記積分値比較部の比較結果を入力とする保護部は、連続白フレーム回数Xと連続白フレーム閾値Mを比較し、連続白フレーム回数Xが連続白フレーム閾値M以上であると判定した場合に前記文字色決定部はインポーズ文字色を黒に決定すること、ならびに、連続黒フレーム回数Yと連続黒フレーム閾値Nを比較し、連続白フレーム回数Xが連続黒フレーム閾値N以上であると判定した場合に前記文字色決定部はインポーズ文字色を白に決定することを特徴とするインポーズ文字の自動色選択装置とする。
Further, according to the present invention, the processing unit of video information is called a frame, and the number of consecutive white frames W continuously determined by the integral value comparison unit as the white value W being large is the number of consecutive white frames X, and When the continuous number determined that the value B is large is the continuous black frame count Y, the continuous white frame count X threshold is the continuous white frame threshold M, and the continuous black frame count Y threshold is the continuous black frame threshold N,
The protection unit that receives the comparison result of the integral value comparison unit compares the continuous white frame count X with the continuous white frame threshold M, and determines that the continuous white frame count X is equal to or greater than the continuous white frame threshold M. The character color determining unit determines the impose character color to be black, compares the continuous black frame count Y with the continuous black frame threshold N, and determines that the continuous white frame count X is equal to or greater than the continuous black frame threshold N. In this case, the character color determination unit determines the impose character color to be white, and provides an impose character automatic color selection device.

本手段により、文字色が頻繁に変化する、いわゆる文字色変化のチャタリングを防止することができる。 This means can prevent so-called character color change chattering, in which the character color changes frequently.

また、本発明は、文字色を任意の色に固定し、さらに、前記文字色決定部が文字色を白と決定した場合には、文字の縁取り色を白とし、文字色を黒と決定した場合には、文字の縁取り色を黒とすることを特徴とするインポーズ文字の自動色選択装置とする。 Further, in the present invention, the character color is fixed to an arbitrary color, and when the character color determination unit determines the character color to be white, the border color of the character is set to white and the character color is determined to be black. In such a case, the automatic character selection device for the impose character is characterized in that the border color of the character is black.

本手段により、文字色を固定したままであっても、文字の縁の色を変化させることで、映像情報の閲覧者に対して、背景色と文字の分離理解を助けることが可能となる。 By this means, even if the character color remains fixed, it is possible to help the viewer of the video information understand the separation of the background color and the character by changing the color of the edge of the character.

本発明によれば、映像情報にインポーズする文字色を自動で決定できるため、例えば昼と夜で文字色を変更する必要が生じるような、24時間体制で定点監視する撮影装置が撮影した映像に重畳する文字色の変更作業を簡略化できるようになる。また、文字色の変更が頻繁に発生しない手段を取り入れた事により、画面のちらつきを防止でき、閲覧者が映像情報及び文字情報を視聴しやすくなるという効果が発生する。 According to the present invention, since the character color to be imposed on the video information can be automatically determined, for example, an image captured by a photographing device that performs fixed point monitoring on a 24-hour basis, which requires changing the character color between day and night It is possible to simplify the work of changing the character color superimposed on the. Further, by adopting means that does not frequently change the character color, flickering of the screen can be prevented, and the viewer can easily view the video information and the character information.

全体ブロック図Overall block diagram 処理フローチャートProcessing flowchart 保護部の処理フローチャートProcessing flow of protection unit 決定する文字色の変化の様子Change in character color to be determined

本発明による、チャタリングを防止しながらインポーズ文字色を決定する手段に関する好適な実施例に関して、図を参照して説明する。 A preferred embodiment relating to means for determining an impose character color while preventing chattering according to the present invention will be described with reference to the drawings.

図1は本発明にかかる全体ブロック図である。撮影機材で撮影された映像情報データ列から、インポーズ領域画素読み取り部101が画面内における、文字をインポーズする領域の各画素の明度データを読み取る。なお、映像情報データ列において、画面への描画の一画面分の処理単位をフレームと呼ぶことにする。 FIG. 1 is an overall block diagram according to the present invention. From the video information data sequence photographed by the photographing equipment, the impose area pixel reading unit 101 reads the brightness data of each pixel in the area on the screen where the character is to be imposed. In the video information data sequence, a processing unit for one screen drawing on the screen is referred to as a frame.

次に、予め決定している基準値A105に対して、読み取った画素の明度値が高いか低いかを画素明度比較部103で判定する。判定結果を元に明度積分部107が、白値W109もしくは黒値B111の値を1増加させ、インポーズ領域の全画素に関しての処理が終了した時点での白値Wと黒値Bの値を積分値比較部113が大小判定する。 Next, the pixel lightness comparison unit 103 determines whether the lightness value of the read pixel is higher or lower than the predetermined reference value A105. Based on the determination result, the lightness integration unit 107 increments the white value W109 or the black value B111 by one, and obtains the white value W and the black value B when the processing for all the pixels in the impose area is completed. The integrated value comparison unit 113 determines the size.

白値Wと黒値Bの大小関係は、文字をインポーズする領域に関して、白い部分が多いか黒い部分が多いかを表しているため、積分値比較部113により白値Wの数値が大きいと判定すればインポーズする文字の色を黒に、また、黒値Bの数値が大きいと判定すれインポーズする文字の色を白にするのも一手段ではあるが、動画映像では白値Wと黒値Bの大小関係が頻繁に入れ替わる可能性が大きい。 The magnitude relationship between the white value W and the black value B indicates whether there are many white parts or many black parts in the area where the character is to be imposed. If it is determined, the color of the imposed character is black, and if it is determined that the value of the black value B is large and the color of the imposed character is white, it is one means. There is a high possibility that the magnitude relationship of the black value B is frequently changed.

その際、積分値比較部113の判定の都度、インポーズする文字色を変えると、頻繁に文字色が変わるという、いわゆるチャタリングによる画面のちらつきが発生し、閲覧者による映像と文字の視聴が苦痛を強いるものになりかねない。そこで保護部115はインポーズする文字色の変更を最小限に抑え、チャタリングを防止する手段を実施する。 At that time, if the character color to be imposed is changed every time the integral value comparison unit 113 determines, flickering of the screen due to so-called chattering that the character color changes frequently occurs, and it is painful for the viewer to watch the video and characters. Can be a forcing. Therefore, the protection unit 115 implements means for minimizing the change of the character color to be imposed and preventing chattering.

白値Wが黒値Bより大きい状態が何フレーム継続しているかを示す数値を連続白フレーム回数X、黒値Bが白値Wより大きい状態が何フレーム継続しているかを示す数値を連続黒フレーム回数Yとし、予め決定している閾値を連続白フレーム閾値M、連続黒フレーム閾値Nとする。 A numerical value indicating how many frames the white value W is greater than the black value B continues for a number of consecutive white frames X, and a numerical value indicating how many frames the black value B is greater than the white value W continues for a continuous black The number of frames is Y, and the predetermined threshold values are a continuous white frame threshold value M and a continuous black frame threshold value N.

保護部115では連続白フレーム回数Xと連続黒フレーム回数Yの増加と初期化を管理し、連続白フレーム閾値Mと連続黒フレーム閾値Nを比較し、連続白フレーム回数Xと連続白フレーム閾値M、連続黒フレーム回数Yと連続黒フレーム閾値Nの大小関係を文字色決定部125に伝達し、インポーズする文字色が決定される。次に、決定された文字色で、文字情報生成部127は必要とする文字列を生成する。 The protector 115 manages the increase and initialization of the continuous white frame count X and the continuous black frame count Y, compares the continuous white frame threshold M with the continuous black frame threshold N, and compares the continuous white frame count X with the continuous white frame threshold M. The magnitude relationship between the continuous black frame count Y and the continuous black frame threshold N is transmitted to the character color determination unit 125, and the character color to be imposed is determined. Next, the character information generation unit 127 generates a necessary character string with the determined character color.

次に、さらに詳細な処理フローに関して図2を参照して説明する。 Next, a more detailed processing flow will be described with reference to FIG.

ビデオ撮影機などの撮影機材で映像撮影をし(S201)、その映像情報における、文字をインポーズする領域の画素の明度データを読み取る(S203)。読み取った画素のデータ番号をnとし、画素の明度が予め決定した基準値Aよりも大きい場合に増加するカウンタを白値W、小さい場合に増加するカウンタを黒値Bとし、ループ処理の前に変数n、W、Bを初期化する(S205)。 A video is photographed with a photographing device such as a video camera (S201), and the brightness data of the pixel in the region where the character is imposed in the video information is read (S203). The data number of the read pixel is n, the counter that increases when the brightness of the pixel is greater than a predetermined reference value A is the white value W, the counter that increases when the pixel brightness is smaller is the black value B, and before the loop processing Variables n, W, and B are initialized (S205).

画素を順次検証するループ処理において、まず、n番目の画素の明度が予め決定した基準値Aよりも明るいか暗いかを比較判定する(S207)。その結果、基準値Aよりも明るいと判定した場合は白値Wに1を加える(S209)。また、基準値Aよりも暗いと判定した場合は黒値Bに1を加える(S211)。このように、白値Wの値は文字インポーズ領域における明るい部分の画素数であり、黒値Bの値は暗い部分の画素数である。 In the loop processing for sequentially verifying pixels, first, it is determined whether the brightness of the nth pixel is brighter or darker than a predetermined reference value A (S207). As a result, when it is determined that it is brighter than the reference value A, 1 is added to the white value W (S209). If it is determined that the image is darker than the reference value A, 1 is added to the black value B (S211). Thus, the value of the white value W is the number of pixels in the bright part in the character impose area, and the value of the black value B is the number of pixels in the dark part.

次に画素番号nに1を加え(S213)、文字インポーズを行う領域の画素について、1フレーム分の判定が全て終了したかを判定する(S215)。最後の画素でなければ再び基準値Aとの比較処理S207に戻る。 Next, 1 is added to the pixel number n (S213), and it is determined whether or not all the determinations for one frame have been completed for the pixels in the region to be character-imposed (S215). If it is not the last pixel, the process returns to the comparison process S207 with the reference value A again.

直前に処理した画素が最後の画素番号であった場合には、後述するチャタリング保護処理(S217)を行う。 When the pixel processed immediately before is the last pixel number, a chattering protection process (S217) described later is performed.

チャタリング保護処理は、インポーズする文字色が頻繁に変化するチャタリングを防止するよう動作し、その結果によってインポーズする文字の文字色が決定され、その文字色で文字情報を生成する(S219)。 The chattering protection process operates so as to prevent chattering in which the implied character color frequently changes, and as a result, the character color of the impose character is determined, and character information is generated with the character color (S219).

生成した文字情報は、映像情報に重畳され、映像に文字をインポーズする処理が完了する(S221)。文字がインポーズされた映像情報はネットワークなどを経由して閲覧者に配信される(S223)。 The generated character information is superimposed on the video information, and the process of imposing characters on the video is completed (S221). The video information on which the character is imposed is distributed to the viewer via a network or the like (S223).

次に、保護部115と文字色決定部125を含むチャタリング保護処理(S217)について、図3を用いて説明する。 Next, chattering protection processing (S217) including the protection unit 115 and the character color determination unit 125 will be described with reference to FIG.

チャタリング保護処理部には、1フレーム分の白値Wと黒値Bが入力される。まず、白値Wと黒値Bの大小判定を行う(S301)。その結果、白値Wの方が黒値Bよりも大きければ、連続白フレーム回数Xに1を加え、連続黒フレーム回数Yを0にする(S303)。また、黒値Bの方が白値Wよりも大きければ、連続黒フレーム回数Yに1を加え、連続白フレーム回数Xを0にする(S305)。 A white value W and a black value B for one frame are input to the chattering protection processing unit. First, the magnitude determination of the white value W and the black value B is performed (S301). As a result, if the white value W is larger than the black value B, 1 is added to the number X of consecutive white frames, and the number Y of consecutive black frames is set to 0 (S303). If the black value B is larger than the white value W, 1 is added to the continuous black frame count Y, and the continuous white frame count X is set to 0 (S305).

連続白フレーム回数Xに1を加えた場合には、次に、その結果として連続白フレーム回数Xが連続白フレーム閾値Mに達したかどうかを判定する(S307)。また、連続黒フレーム回数Yに1を加えた場合には、次に、その結果として連続黒フレーム回数Yが連続黒フレーム閾値Nに達したかどうかを判定する(S309)。 If 1 is added to the number of consecutive white frames X, it is then determined whether or not the number of consecutive white frames X has reached the continuous white frame threshold M as a result (S307). If 1 is added to the continuous black frame count Y, it is then determined whether or not the continuous black frame count Y has reached the continuous black frame threshold N as a result (S309).

連続白フレーム回数Xが連続白フレーム閾値M以上であれば、一定時間以上、映像の明度が高い状態が継続していると判断し、インポーズする文字色を黒に決定する(S311)。また、連続黒フレーム回数Yが連続黒フレーム閾値N以上であれば、一定時間以上、映像の明度が低い状態が継続していると判断し、インポーズする文字色を白に決定する(S313)。それぞれ連続白フレーム閾値M、連続黒フレーム閾値Nに達していなければ、文字色は1フレーム前の状態を継続する(S315)。 If the number of consecutive white frames X is equal to or greater than the continuous white frame threshold value M, it is determined that the state of high brightness of the video continues for a certain time or more, and the character color to be imposed is determined to be black (S311). If the continuous black frame count Y is equal to or greater than the continuous black frame threshold N, it is determined that the low brightness of the video continues for a certain time or more, and the imposed character color is determined to be white (S313). . If the continuous white frame threshold value M and the continuous black frame threshold value N have not been reached, the character color continues the state one frame before (S315).

チャタリング保護処理を行わない場合と行う場合について、インポーズする文字色が実際にどのように変化するかについて、一例を図4に示す。 FIG. 4 shows an example of how the implied character color actually changes when the chattering protection process is not performed and when it is performed.

図4において、横軸は映像フレーム数である。前記のように、映像情報データ列において、描画の一画面分の処理単位をフレームと呼ぶものであり、時間の推移に伴って横軸を右方向に移動していく。 In FIG. 4, the horizontal axis represents the number of video frames. As described above, in the video information data sequence, the processing unit for one screen of drawing is called a frame, and the horizontal axis moves to the right as the time changes.

縦軸は1つのフレームに関する処理終了時の連続白フレーム回数Xと連続黒フレーム回数Yであり、連続白フレーム閾値Mと連続黒フレーム閾値Nをグラフ中に示している。前記のように連続白フレーム回数Xと連続黒フレーム回数Yは、どちらかが1ずつ増加し、どちらかが0に初期化されるものであるから、一方が縦軸方向に伸びている区間は他方は0の値を取る。 The vertical axis represents the number of consecutive white frames X and the number of consecutive black frames Y at the end of processing for one frame, and the continuous white frame threshold M and the continuous black frame threshold N are shown in the graph. As described above, one of the continuous white frame count X and the continuous black frame count Y is incremented by 1 and one is initialized to 0. Therefore, the section in which one extends in the vertical axis direction is The other takes a value of zero.

まず、チャタリング保護機能が無い場合について説明する。 First, a case where there is no chattering protection function will be described.

最初にフレーム終了時の白値Wが黒値Bよりも大きい状態、つまり、連続白フレーム回数Xが増加している状態が続いている。この状態ではインポーズする領域の画像の明度が高いと判定しているから、チャタリング保護機能が無ければインポーズする文字色を黒と判定する。フレーム数bで白値Wと黒値Bの大小関係は逆転し、黒値Bの方が白値Wよりも大きいと判定したために、連続白フレーム回数Xを0とし、連続黒フレーム回数Yが増加を始める。この間はインポーズする領域の画像の明度が低いと判定しているから、インポーズする文字色は白に変化する。 First, the state where the white value W at the end of the frame is larger than the black value B, that is, the state where the number of consecutive white frames X is increasing continues. In this state, since it is determined that the brightness of the image in the area to be imposed is high, the character color to be imposed is determined to be black if there is no chattering protection function. Since the magnitude relationship between the white value W and the black value B is reversed at the number of frames b and the black value B is determined to be larger than the white value W, the number of consecutive white frames X is set to 0, and the number of consecutive black frames Y is Start increasing. During this time, since it is determined that the brightness of the image in the area to be imposed is low, the character color to be imposed changes to white.

さらにフレーム数cでは再び白値Wの方が黒値Bよりも大きくなっており、インポーズする文字色は黒に変化する。このように、白値Wと黒値Bの比較において、白値Wの方が大きい区間は全てインポーズする文字色を黒に、黒値Bの方が大きい区間は全てインポーズする文字色を白に決定している。 Further, at the frame number c, the white value W is again larger than the black value B, and the character color to be imposed changes to black. In this way, in the comparison between the white value W and the black value B, the character color to be imposed is all black for the section where the white value W is larger, and the character color to be imposed is all for the section where the black value B is larger. Decided to be white.

次にチャタリング保護機能が有る場合について説明する。 Next, a case where a chattering protection function is provided will be described.

チャタリング保護機能は、連続白フレーム回数Xが連続白フレーム閾値Mに達したかどうか、または、連続黒フレーム回数Yが連続黒フレーム閾値Nに達したかどうかを文字色の判定基準にするため、フレーム数aまでは前のフレームでの文字色を維持し、フレーム数aにおいて連続白フレーム回数Xが連続白フレーム閾値Mに達したため、ここで文字色を黒と判定する。 The chattering protection function uses whether the number of consecutive white frames X has reached the continuous white frame threshold M or whether the number of consecutive black frames Y has reached the continuous black frame threshold N as a character color criterion. The character color in the previous frame is maintained up to the number of frames a, and the number of consecutive white frames X reaches the continuous white frame threshold value M in the number of frames a. Therefore, the character color is determined to be black here.

フレーム数bにおいて黒値Bの方が白値Wよりも大きくなり、連続白フレーム数も0になるが、連続黒フレーム回数Yが連続黒フレーム閾値Nに達していないため、文字色は変化しない。フレーム数eにおいて連続黒フレーム数Yが連続黒フレーム閾値Nに達したため、ここで文字色を白に変化させる。 In the number of frames b, the black value B is larger than the white value W, and the number of continuous white frames is also 0. However, since the number of continuous black frames Y has not reached the continuous black frame threshold N, the character color does not change. . Since the continuous black frame number Y has reached the continuous black frame threshold N in the frame number e, the character color is changed to white here.

同様に、フレーム数fにおいて白値Wが黒値Bより大きくなっているが、連続白フレーム回数Xが連続白フレーム閾値Mに達していないため、文字色は変化させない。 Similarly, although the white value W is larger than the black value B in the number of frames f, since the number of consecutive white frames X has not reached the continuous white frame threshold M, the character color is not changed.

このように、図4において、保護機能無しの場合と保護機能有りの場合の文字色の変化を比べると、保護機能の効果によって、頻繁な文字色変化、つまりチャタリングの発生が抑えられていることがわかる。 As described above, in FIG. 4, when the change in the character color between the case without the protection function and the case with the protection function is compared, frequent character color change, that is, occurrence of chattering is suppressed by the effect of the protection function. I understand.

本実施例において、インポーズする文字の文字色の決定手段と、頻繁な文字色変化を抑えるチャタリング保護手段について説明した。なお、本発明では基準値A、連続白フレーム閾値M、および連続黒フレーム閾値Nに関して、その値の決定にはなんら制限を加えるものではない。 In this embodiment, the character color determining means for the character to be imposed and the chattering protection means for suppressing frequent character color changes have been described. In the present invention, regarding the reference value A, the continuous white frame threshold value M, and the continuous black frame threshold value N, there are no restrictions on the determination of the values.

本発明では、文字色に関して、白色にするか黒色にするかに限定して実施例を説明したが、これに限定するものではない。例えば、白値Xから黒値Yを減算した値が大きい程に文字色を白に近く、又、黒値Yから白値Xを減算した値が大きい程に文字色を黒に近くするなど、グレースケールやカラーを用いた文字色決定手段も考えられる。 In the present invention, the embodiment has been described by limiting the character color to white or black. However, the present invention is not limited to this. For example, the larger the value obtained by subtracting the black value Y from the white value X, the closer the character color is to white, and the larger the value obtained by subtracting the white value X from the black value Y is, the closer the character color is to black. A character color determining means using gray scale or color is also conceivable.

本発明では、閲覧者が映像を視聴しやすいようにする手段として文字色そのものを変化させるよう、本実施例で説明したが、これに限定するものではない。例えば、文字色を固定とし、文字の縁取りをする際の縁の色を本発明に沿って変化させることも、本発明によれば容易に実施することが可能である。 Although the present embodiment has been described in the present embodiment so as to change the character color itself as a means for making it easier for the viewer to view the video, the present invention is not limited to this. For example, according to the present invention, the character color is fixed and the color of the edge when the character is trimmed can be changed according to the present invention.

101…インポーズ領域画素読み取り部、 103…画素明度比較部、
105…基準値A、 107…明度積分部、
109…白値W、 111…黒値B、
113…積分値比較部、 115…保護部、
117…連続白フレーム回数X、 119…連続黒フレーム回数Y、
121…連続白フレーム閾値M、 123…連続黒フレーム閾値N、
125…文字色決定部、 127…文字情報生成部、

101 ... Impose area pixel reading unit, 103 ... Pixel brightness comparison unit,
105 ... reference value A, 107 ... lightness integration unit,
109 ... white value W, 111 ... black value B,
113 ... Integral value comparison unit, 115 ... Protection unit,
117: Continuous white frame count X, 119: Continuous black frame count Y,
121 ... Continuous white frame threshold M, 123 ... Continuous black frame threshold N,
125: Character color determining unit, 127: Character information generating unit,

Claims (3)

例えば道路や河川などの監視のために設置されたカメラ等で撮影された動画情報をネットワークを経由してモニタで視聴するシステムにおいて、
撮影機材によって撮影された動画情報データから文字インポーズを実施する領域の画素データを読み取るインポーズ領域画素読み取り部と、
中間調の明度値を基準値Aとした場合に前記インポーズ領域画素読み取り部が読み取った画素の明度が基準値Aより高いか低いかを判定する画素明度比較部と、
前記画素明度比較部が高いと判定したら白値Wに1を加算し又低いと判定したら黒値Bに1を加算する明度積分部と、
前記インポーズ領域画素読み取り部が読み取った全画素データを前記画素明度比較部が比較した結果の前記白値Wと黒値Bの値を比較する積分値比較部と、
前記積分値比較部により白値Wが高いと判定したらインポーズ文字色を黒にし又黒値Bが高いと判定したらインポーズ文字色を白に決定する文字色決定部と、
前記文字色決定部が決定した文字色によって文字情報を生成する文字情報生成部と、
からなるインポーズ文字の自動色選択装置。
For example, in a system for viewing video information captured by a camera installed for monitoring roads and rivers on a monitor via a network,
An impose area pixel reading unit that reads out pixel data of an area in which character impose is performed from video information data photographed by the photographing equipment;
A pixel lightness comparison unit that determines whether the lightness of the pixel read by the impose area pixel reading unit is higher or lower than the reference value A when the lightness value of the halftone is the reference value A;
A brightness integration unit that adds 1 to the white value W if it is determined that the pixel brightness comparison unit is high;
An integral value comparison unit that compares the white value W and the black value B as a result of the pixel brightness comparison unit comparing all the pixel data read by the impose region pixel reading unit;
A character color determining unit that determines the impose character color to be black when the integral value comparing unit determines that the white value W is high, and determines the impose character color to be white when it is determined that the black value B is high;
A character information generation unit that generates character information according to the character color determined by the character color determination unit;
Impose character automatic color selection device consisting of
映像情報の処理単位をフレームと呼び、前記積分値比較部において、連続して前記白値Wが大きいと判定した連続数を連続白フレーム回数X、また、連続して黒値Bが大きいと判定した連続数を連続黒フレーム回数Yとし、連続白フレーム回数Xの閾値を連続白フレーム閾値M、連続黒フレーム回数Yの閾値を連続黒フレーム閾値Nとした場合に、
前記積分値比較部の比較結果を入力とする保護部は、連続白フレーム回数Xと連続白フレーム閾値Mを比較し、連続白フレーム回数Xが連続白フレーム閾値M以上であると判定した場合に前記文字色決定部はインポーズ文字色を黒に決定すること、ならびに、連続黒フレーム回数Yと連続黒フレーム閾値Nを比較し、連続白フレーム回数Xが連続黒フレーム閾値N以上であると判定した場合に前記文字色決定部はインポーズ文字色を白に決定すること、を特徴とする請求項1に記載のインポーズ文字の自動色選択装置。
The processing unit of the video information is called a frame, and the number of consecutive times in which the white value W is continuously determined to be large in the integral value comparison unit is determined to be the number of consecutive white frames X and the black value B is continuously large. When the number of consecutive black frames is the number Y of continuous black frames, the threshold of the number of consecutive white frames X is the continuous white frame threshold M, and the threshold of the number of consecutive black frames Y is the continuous black frame threshold N,
The protection unit that receives the comparison result of the integral value comparison unit compares the continuous white frame count X with the continuous white frame threshold M, and determines that the continuous white frame count X is equal to or greater than the continuous white frame threshold M. The character color determining unit determines the impose character color to be black, compares the continuous black frame count Y with the continuous black frame threshold N, and determines that the continuous white frame count X is equal to or greater than the continuous black frame threshold N. 2. The impose character automatic color selection apparatus according to claim 1, wherein the character color determination unit determines the impose character color to be white when the character color is determined.
文字色を任意の色に固定し、さらに、前記文字色決定部が文字色を白と決定した場合には、文字の縁取り色を白とし、文字色を黒と決定した場合には、文字の縁取り色を黒とすることを特徴とする、請求項1ないし請求項2に記載のインポーズ文字の自動色選択装置。

When the character color is fixed to an arbitrary color and the character color determining unit determines that the character color is white, the character border color is white, and when the character color is black, the character color is 3. The impose character automatic color selection device according to claim 1, wherein the border color is black.

JP2009001134A 2009-01-06 2009-01-06 Impose character color automatic selection device Expired - Fee Related JP5221397B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009001134A JP5221397B2 (en) 2009-01-06 2009-01-06 Impose character color automatic selection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009001134A JP5221397B2 (en) 2009-01-06 2009-01-06 Impose character color automatic selection device

Publications (2)

Publication Number Publication Date
JP2010161508A JP2010161508A (en) 2010-07-22
JP5221397B2 true JP5221397B2 (en) 2013-06-26

Family

ID=42578363

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009001134A Expired - Fee Related JP5221397B2 (en) 2009-01-06 2009-01-06 Impose character color automatic selection device

Country Status (1)

Country Link
JP (1) JP5221397B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6234469A (en) * 1985-08-07 1987-02-14 Hitachi Ltd Displaying system in electronic view finder of video camera
JP2737110B2 (en) * 1987-09-07 1998-04-08 富士写真フイルム 株式会社 Superimpose circuit
JPH08195968A (en) * 1995-01-19 1996-07-30 Kyocera Corp Superimposing display device
JPH10319488A (en) * 1997-05-23 1998-12-04 Fuji Photo Film Co Ltd Camera with liquid crystal finder
JPH11168669A (en) * 1997-12-03 1999-06-22 Hitachi Ltd Character signal inserting device
JP4692889B2 (en) * 2006-01-27 2011-06-01 日本ビクター株式会社 Video surveillance device

Also Published As

Publication number Publication date
JP2010161508A (en) 2010-07-22

Similar Documents

Publication Publication Date Title
CN107948521B (en) Camera day and night mode switching system based on AE and AWB statistical information
CN101543053B (en) Image processing device, image picking-up device, and image processing method
US8957899B2 (en) Image processing apparatus and method for controlling the same
US20100182446A1 (en) Image compensation apparatus
US10033962B2 (en) Method and device for inverse tone mapping
JP2012010048A (en) Image signal processing device
CN106127693A (en) Demister system and defogging method
US9819873B2 (en) Image-processing apparatus and image-processing method
KR20130040771A (en) Three-dimensional video processing apparatus, method therefor, and program
TWI408623B (en) Monitoring system and related recording methods for recording motioned image, and machine readable medium thereof
JP6351377B2 (en) Image processing system, imaging apparatus, and recording apparatus
KR20070117441A (en) Image correcting apparatus
JP2009124264A (en) Image processing apparatus and image processing method
JP2014154046A (en) Image processing apparatus, image processing method, and program
JP2008005365A (en) Imaging device
CN110971833A (en) Image processing method and device, electronic equipment and storage medium
JP2018061130A (en) Image processing device, image processing method, and program
JP2007201963A (en) Imaging apparatus
JP5221397B2 (en) Impose character color automatic selection device
JP6854845B2 (en) Image overlay correction
KR20110088884A (en) Photographing method and apparatus and recording medium thereof
US20200036904A1 (en) Image processing apparatus, surveillance camera system, image processing method, and program
JPWO2018105097A1 (en) Image synthesizing device, image synthesizing method, and image synthesizing program
KR102136716B1 (en) Apparatus for Improving Image Quality and Computer-Readable Recording Medium with Program Therefor
US10205922B2 (en) Display control apparatus, method of controlling the same, and non-transitory computer-readable storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120105

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130307

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

Free format text: PAYMENT UNTIL: 20160315

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20160315

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees