JP2008301146A - Frame synchronization method and device in imaging apparatus - Google Patents

Frame synchronization method and device in imaging apparatus Download PDF

Info

Publication number
JP2008301146A
JP2008301146A JP2007144365A JP2007144365A JP2008301146A JP 2008301146 A JP2008301146 A JP 2008301146A JP 2007144365 A JP2007144365 A JP 2007144365A JP 2007144365 A JP2007144365 A JP 2007144365A JP 2008301146 A JP2008301146 A JP 2008301146A
Authority
JP
Japan
Prior art keywords
frame synchronization
frame
line
synchronization signal
phase difference
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
JP2007144365A
Other languages
Japanese (ja)
Other versions
JP4812693B2 (en
Inventor
Hironori Nakamura
浩規 中村
Kenichi Tokuda
健一 徳田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2007144365A priority Critical patent/JP4812693B2/en
Publication of JP2008301146A publication Critical patent/JP2008301146A/en
Application granted granted Critical
Publication of JP4812693B2 publication Critical patent/JP4812693B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To control distortion of an image as much as possible by suppressing generation of disordered synchronization in synchronizing a frame outputted from an imaging apparatus with an external frame synchronization signal inputted from an external circuit. <P>SOLUTION: In the method for synchronizing a frame outputted from the imaging apparatus 2b with an external frame synchronization signal S2 inputted from an external circuit, a phase difference between an internal frame synchronization signal S18 generated by the imaging apparatus 2b and the external frame synchronization signal S2 is detected, the time corresponding the phase difference detected is shared to ensure uniform distribution to a scanning period of each line forming a frame, and the scanning time of each line is adjusted by changing a frequency dividing ratio of a variable frequency divider 22. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ビルや工場の監視カメラなどとして用いられる撮像装置におけるフレーム同期方法および装置に関する。   The present invention relates to a frame synchronization method and apparatus in an imaging apparatus used as a surveillance camera for a building or factory.

従来より、ビル、工場、百貨店、スーパーマーケット、または地下街などにおいて、監視または防犯のために監視カメラ(撮像装置)を複数箇所に設置し、撮像された映像(画像)を管理室や中央監視センタなどのモニタ装置で観察しまたは録画装置に記録する監視システムが用いられている。   Conventionally, in buildings, factories, department stores, supermarkets, underground malls, etc., surveillance cameras (imaging devices) are installed at multiple locations for monitoring or crime prevention, and the captured images (images) are managed in a management room or central monitoring center. A monitoring system for observing or recording in a recording device is used.

このような監視システムにおいて、記録された映像を再生する際には、それら複数の監視カメラからの映像を同期させて再生可能とする必要があることから、録画装置への記録の際に複数の監視カメラからの映像を同期して記録しておく必要がある。   In such a monitoring system, when the recorded video is played back, it is necessary to be able to play back the video from the plurality of monitoring cameras in synchronization with each other. It is necessary to record the video from the surveillance camera in synchronization.

このような監視システムにおいて、複数の監視カメラからの映像の同期をとるために、映像信号の基準となる同期信号発生器(SYNC GENERATOR)を設けることが多い。その場合に、各監視カメラは、同期信号発生器から出力される同期信号に周波数および位相を合わせてゲンロックする。また、同期信号発生器を設けない場合には、他の監視カメラから出力される映像信号から同期信号を抽出し、これに同期させてフレームを出力する。   In such a monitoring system, in order to synchronize images from a plurality of monitoring cameras, a synchronization signal generator (SYNC GENERATOR) serving as a reference for the image signal is often provided. In that case, each surveillance camera genlocks the frequency and phase in synchronization with the synchronization signal output from the synchronization signal generator. When no synchronization signal generator is provided, a synchronization signal is extracted from a video signal output from another surveillance camera, and a frame is output in synchronization with this.

従来において、監視カメラの外部から入力される同期信号に当該監視カメラのフレームを同期させるために、種々の方法が提案されている。   Conventionally, various methods have been proposed in order to synchronize the frame of the surveillance camera with a synchronization signal input from the outside of the surveillance camera.

例えば、特許文献1では、外部から入力された外部クロックと内部で生成される内部クロックとの位相差に基づいて内部クロックの周波数を変え、外部クロックを分周したフレーム信号と内部クロックを分周したフレーム信号とを同期させる。   For example, in Patent Document 1, the frequency of the internal clock is changed based on the phase difference between the external clock input from the outside and the internally generated internal clock, and the frame signal obtained by dividing the external clock and the internal clock are divided. Synchronize with the frame signal.

また、特許文献2では、外部から供給される映像信号の同期信号である外部同期信号と、内部で生成した同期信号である内部同期信号との一致検出を行い、一致検出信号に基づいて、内部同期信号をカウントして所定値となったときに外部同期信号の選択を指示する。
特開2003−347933 特開平8−32832
In Patent Document 2, a coincidence detection is performed between an external synchronization signal that is a synchronization signal of a video signal supplied from the outside and an internal synchronization signal that is a synchronization signal generated internally, and based on the coincidence detection signal, When the synchronization signal is counted to reach a predetermined value, the selection of the external synchronization signal is instructed.
JP 2003-347933 A JP-A-8-32832

しかし、従来においては、外部から入力される映像信号の外部フレーム同期信号と監視カメラの内部で生成した内部フレーム同期信号との位相差を、1ライン(1−TVライン)にまとめて補正を行っていたため、外部から入力される映像信号のフレーム周波数が揺らいだ場合や、同一の映像規格の信号であっても監視カメラの内部で生成した内部フレーム同期信号の周波数との偏差が大きい場合には、同期乱れが発生し、これによって映像が歪むという問題があった。   However, conventionally, the phase difference between the external frame synchronization signal of the video signal input from the outside and the internal frame synchronization signal generated inside the surveillance camera is collectively corrected to one line (1-TV line). Therefore, when the frame frequency of the video signal input from the outside fluctuates, or when the deviation from the frequency of the internal frame synchronization signal generated inside the surveillance camera is large even for the same video standard signal There is a problem that synchronization disturbance occurs and the video is distorted.

また、外部から入力される映像信号が、白黒テレビの映像信号規格であるRS170(フレーム周波数:30Hz)とカラーテレビの映像信号規格であるRS170A(フレーム周波数:29.97Hz)というように、フレーム周波数が僅かに異なる映像信号が入力されるシステムにおいては、それぞれのフレーム周波数に対応する2個の水晶発振器を設け、入力映像信号に応じて水晶発振器を切り換えて使用していた。この場合には回路規模が大きくなるという問題がある。   Also, the video signal input from the outside has a frame frequency such as RS170 (frame frequency: 30 Hz) which is a video signal standard for monochrome television and RS170A (frame frequency: 29.97 Hz) which is a video signal standard for color television. In a system in which video signals that are slightly different from each other are input, two crystal oscillators corresponding to the respective frame frequencies are provided, and the crystal oscillators are switched according to the input video signal. In this case, there is a problem that the circuit scale becomes large.

本発明は、上述の問題に鑑みてなされたもので、撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号に同期させるに当たり、同期乱れの発生を抑え映像の歪みも極力抑えることを目的とする。   The present invention has been made in view of the above-described problems. In synchronizing a frame output from an imaging apparatus with an external frame synchronization signal input from the outside, occurrence of synchronization disturbance is suppressed and image distortion is suppressed as much as possible. With the goal.

本発明に係る方法は、撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号と同期させる方法であって、前記撮像装置で生成される内部フレーム同期信号と前記外部フレーム同期信号との位相差を検出し、検出された前記位相差に相当する時間を、1つのフレームを構成する各ラインの走査時間に対して一様に配分されるように振り分けて各ラインの走査時間を調整する。   A method according to the present invention is a method of synchronizing a frame output from an imaging device with an external frame synchronization signal input from the outside, and includes an internal frame synchronization signal generated by the imaging device and the external frame synchronization signal. The time difference corresponding to the detected phase difference is distributed so that the time corresponding to the detected phase difference is uniformly distributed with respect to the scanning time of each line constituting one frame, and the scanning time of each line is adjusted. To do.

位相差に相当する時間を各ラインに対して一様に配分されるように振り分けることにより、同期乱れが抑えられ、画像の歪みも抑えられる。   By distributing the time corresponding to the phase difference so as to be uniformly distributed to each line, synchronization disturbance is suppressed and image distortion is also suppressed.

また、内部フレーム同期信号を、前記撮像装置の内部で発生させたクロック信号を分周することによって生成するとともに、前記各ラインの走査時間を前記クロック信号の分周比を可変することにより調整する。   Further, the internal frame synchronization signal is generated by dividing the clock signal generated inside the imaging apparatus, and the scanning time of each line is adjusted by changing the division ratio of the clock signal. .

これにより、単一の周波数のクロック信号を用いて、フレーム同期信号の周波数の種々異なる映像信号に対応して同期化を実現できる。   Thus, synchronization can be realized using a single frequency clock signal in response to video signals having different frequencies of the frame synchronization signal.

本発明によると、撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号に同期させるに当たり、同期乱れの発生を抑え映像の歪みも極力抑えることができる。   According to the present invention, when synchronizing the frame output from the imaging apparatus with the external frame synchronization signal input from the outside, it is possible to suppress the occurrence of synchronization disturbance and to suppress the distortion of the video as much as possible.

図1は本発明の一実施形態の監視システム1の全体の構成の例を示すブロック図である。   FIG. 1 is a block diagram showing an example of the overall configuration of a monitoring system 1 according to an embodiment of the present invention.

図1において、監視システム1は、複数のカメラ2a,2b,2c、コントローラ3、および管理装置4などによって構成される。カメラ2a,2b,2cは、毎秒30フレーム程度の動画の画像(画像データ)DTを出力するものであり、ビルや工場などにおいて監視カメラとして設置されている。なお、本実施形態では3台のカメラ2a,2b,2cを示したが、2台、または4台以上であってもよい。   In FIG. 1, the monitoring system 1 includes a plurality of cameras 2a, 2b, 2c, a controller 3, a management device 4, and the like. The cameras 2a, 2b, and 2c output moving image (image data) DT of about 30 frames per second, and are installed as surveillance cameras in buildings and factories. In the present embodiment, three cameras 2a, 2b, and 2c are shown, but two cameras or four or more cameras may be used.

なお、カメラ2a,2b,2cの全部または一部を「カメラ2」と記載することがある。他の要素についても同様である。   Note that all or part of the cameras 2a, 2b, and 2c may be referred to as “camera 2”. The same applies to other elements.

コントローラ3は、カメラ2a,2b,2c、の動作や向きなどをコントロールする。また、カメラ2a,2b,2cから出力される画像DTを管理装置4に送る。   The controller 3 controls the operation and direction of the cameras 2a, 2b, 2c. In addition, the image DT output from the cameras 2 a, 2 b, 2 c is sent to the management device 4.

管理装置4は、装置本体4aおよび表示装置4bを有する。装置本体4aには、処理装置4c、記憶装置4d、図示しない入力装置や指示装置、および通信インタフェースなどが設けられている。各カメラ2a,2b,2cから出力された画像DTは、表示装置4bの画面に表示され、また記憶装置4dに記録(録画)される。管理装置4はコンピュータなどによって構成することが可能である。   The management device 4 includes a device body 4a and a display device 4b. The apparatus main body 4a is provided with a processing device 4c, a storage device 4d, an input device and an instruction device (not shown), a communication interface, and the like. The images DT output from the cameras 2a, 2b, and 2c are displayed on the screen of the display device 4b and recorded (recorded) in the storage device 4d. The management device 4 can be configured by a computer or the like.

カメラ2a,2b,2cのうち、1つのカメラ2aは親カメラとして設定されている。親カメラ2aは、それ以外のカメラ(子カメラ)2b,2cが親カメラ2aに対して同期をとるために、カメラ2b,2cに対して画像DTaを出力する。各カメラ2b,2cは、親カメラ2aから送られた画像DTaからフレーム同期信号を抽出し、これを用いてフレーム同期をとる。   Of the cameras 2a, 2b, and 2c, one camera 2a is set as a parent camera. The parent camera 2a outputs an image DTa to the cameras 2b and 2c so that the other cameras (child cameras) 2b and 2c are synchronized with the parent camera 2a. Each camera 2b, 2c extracts a frame synchronization signal from the image DTa sent from the parent camera 2a, and uses this to obtain frame synchronization.

次に、カメラ2bについて、フレーム同期のための回路およびその動作を中心に説明する。   Next, the camera 2b will be described focusing on the circuit for frame synchronization and its operation.

カメラ2bは、親カメラ2aから出力される画像DTaからフレーム同期信号(外部フレーム同期信号)を抽出し、この外部フレーム同期信号と、カメラ2bの内部で生成した内部フレーム同期信号とが同期するように処理を行う。つまり、内部フレーム同期信号と外部フレーム同期信号との位相差を検出し、検出された位相差に相当する時間を、1つのフレームを構成する各ライン(走査線)の走査時間に対して一様に配分されるように振り分けて各ラインの走査時間を調整する。   The camera 2b extracts a frame synchronization signal (external frame synchronization signal) from the image DTa output from the parent camera 2a, and the external frame synchronization signal and the internal frame synchronization signal generated inside the camera 2b are synchronized. To process. That is, the phase difference between the internal frame synchronization signal and the external frame synchronization signal is detected, and the time corresponding to the detected phase difference is uniform with respect to the scanning time of each line (scanning line) constituting one frame. The scanning time for each line is adjusted so as to be distributed.

その際に、内部フレーム同期信号を、カメラ2bの内部で発生させたクロック信号を分周することによって生成するとともに、各ラインの走査時間をクロック信号の分周比を可変することにより調整する。   At this time, the internal frame synchronization signal is generated by dividing the clock signal generated inside the camera 2b, and the scanning time of each line is adjusted by changing the division ratio of the clock signal.

より詳しくは、位相差に相当する時間で生成されるクロック信号のクロック数を1つのフレームを構成するラインの数で除算してその商および余りを算出した場合に、1つのフレームを構成するラインの内、余りの値に相当する数のラインについては、当該ラインごとに、商の値に1を加算した値に相当する数の各画素についてその走査を行う時間を短縮しまたは延長し、残りのラインについては、当該ラインごとに、商の値に相当する数の各画素についてその走査を行う時間を短縮しまたは延長する。   More specifically, when the number of clocks of the clock signal generated in the time corresponding to the phase difference is divided by the number of lines constituting one frame and the quotient and the remainder are calculated, the lines constituting one frame For the number of lines corresponding to the remainder value, the scanning time is shortened or extended for each pixel corresponding to the value obtained by adding 1 to the quotient value for each line, and the remaining lines For each line, the scanning time for each pixel corresponding to the quotient value is shortened or extended for each line.

また、本実施形態では、外部フレーム同期信号と内部フレーム同期信号との位相差に基づいて、クロック信号を分周して再生クロック信号を生成する際の分周比を可変してその周波数を制御することにより、画像の同期乱れをなくした。   Also, in this embodiment, based on the phase difference between the external frame synchronization signal and the internal frame synchronization signal, the frequency is controlled by varying the frequency division ratio when generating the recovered clock signal by dividing the clock signal. By doing so, the image synchronization disturbance was eliminated.

なお、外部フレーム同期信号は、親カメラ2aから出力される画像DTaから抽出するのではなく、コントローラ3に同期信号発生器を設けてこれから得るようにしてもよい。以下、図面を参照して説明する。   The external frame synchronization signal may be obtained from a synchronization signal generator provided in the controller 3 instead of extracting from the image DTa output from the parent camera 2a. Hereinafter, description will be given with reference to the drawings.

図2はカメラ2bにおけるフレーム同期装置FSの回路を示す図、図3はクロック発生器の回路の例を示す図、図4は映像信号S1の例を示す図、図5はフレーム同期装置FSにおける各部の信号の状態を示す図、図6は各クロック位置における周波数制御の様子を説明する図である。   2 is a diagram showing a circuit of the frame synchronizer FS in the camera 2b, FIG. 3 is a diagram showing an example of the circuit of the clock generator, FIG. 4 is a diagram showing an example of the video signal S1, and FIG. 5 is a diagram of the frame synchronizer FS. FIGS. 6A and 6B are diagrams illustrating the state of signals at each unit, and FIGS.

図2において、カメラ2bには、フレーム同期装置FSとして、同期分離部11、エッジ検出部12、エッジ検出部13、間隔期間生成部14、補正画素数カウンタ15、補正ライン数カウンタ16、画素数レジスタ17、減算器18、ライン数レジスタ19、減算器20、位相判定部21、可変分周器22、画素カウンタ23、ラインカウンタ24、フレームカウンタ25、およびクロック発生器26などが設けられている。   In FIG. 2, the camera 2b includes, as a frame synchronization device FS, a synchronization separation unit 11, an edge detection unit 12, an edge detection unit 13, an interval period generation unit 14, a correction pixel number counter 15, a correction line number counter 16, and a pixel number. A register 17, a subtractor 18, a line number register 19, a subtractor 20, a phase determination unit 21, a variable frequency divider 22, a pixel counter 23, a line counter 24, a frame counter 25, a clock generator 26, and the like are provided. .

同期分離部11は、カメラ2aから出力される映像信号(画像信号)S1から、それに含まれるフレーム同期信号(外部フレーム同期信号)S2を分離し抽出する。   The synchronization separation unit 11 separates and extracts a frame synchronization signal (external frame synchronization signal) S2 included in the video signal (image signal) S1 output from the camera 2a.

図4に示すように、映像信号S1は、例えば、1フレームは2フィールドで構成され、各フィールドには、垂直同期信号、および262.5本のライン分の水平同期信号と映像信号が含まれる。1フレームを構成するラインの数は525本である。1フレームの走査時間は30分の1秒であるので、フレーム同期信号S2の周波数は30Hzであり、30分の1秒ごとに立ち上がり、それぞれの60分の1秒後に立ち下がる。   As shown in FIG. 4, in the video signal S1, for example, one frame is composed of two fields, and each field includes a vertical synchronizing signal, a horizontal synchronizing signal for 262.5 lines, and a video signal. . The number of lines composing one frame is 525. Since the scanning time of one frame is 1/30 second, the frequency of the frame synchronization signal S2 is 30 Hz, and rises every 1/30 second and falls after 1/60 second of each.

エッジ検出部12は、同期分離部11によって抽出されたフレーム同期信号S2の立ち上がり(図4に示す前縁)を検出し、立ち上がりに同期したエッジ信号(エッジパルス)S3を出力する。   The edge detection unit 12 detects the rising edge (the leading edge shown in FIG. 4) of the frame synchronization signal S2 extracted by the synchronization separation unit 11, and outputs an edge signal (edge pulse) S3 synchronized with the rising edge.

エッジ検出部13は、カメラ2bの内部で生成したフレーム同期信号(内部フレーム同期信号)S18の立ち上がり(図4に示す前縁)を検出し、立ち上がりに同期したエッジ信号(エッジパルス)S4を出力する。   The edge detection unit 13 detects the rising edge (the leading edge shown in FIG. 4) of the frame synchronization signal (internal frame synchronization signal) S18 generated inside the camera 2b, and outputs an edge signal (edge pulse) S4 synchronized with the rising edge. To do.

間隔期間生成部14は、これら2つのエッジ信号S3、S4に基づいて、その位相差を検出する。つまり、エッジ信号S3、S4のうちの先に入力される信号の入力時点から後に入力される信号の入力時点までの時間を示す時間幅T1を検出し、時間幅T1の間においてオン(「H」レベル)となる位相差間隔期間信号S5を出力する。   The interval period generator 14 detects the phase difference based on these two edge signals S3 and S4. That is, the time width T1 indicating the time from the input time point of the signal input earlier to the input time point of the signal input later is detected from among the edge signals S3 and S4, and is turned on during the time width T1 (“H The phase difference interval period signal S5 that is “level” is output.

補正画素数カウンタ15は、位相差間隔期間信号S5がオンしている間において、クロック発生器26の出力するクロック信号CLKをカウントし、1フレーム当たりのライン数(ここでは「525」)をカウントするごとにキャリー信号S6を出力する。つまり、補正画素数カウンタ15は、カウント値が1フレーム当たりのライン数に達するとカウント値を0にクリアするとともに、その度にキャリー信号S6を出力する。位相差間隔期間信号S5がオフした時点でのカウント値を、そのままカウント値S7として出力する。   The correction pixel number counter 15 counts the clock signal CLK output from the clock generator 26 while the phase difference interval period signal S5 is ON, and counts the number of lines per frame (here, “525”). A carry signal S6 is output every time. That is, the correction pixel number counter 15 clears the count value to 0 when the count value reaches the number of lines per frame, and outputs the carry signal S6 each time. The count value when the phase difference interval period signal S5 is turned off is output as it is as the count value S7.

したがって、補正画素数カウンタ15は、位相差に相当する時間で生成されるクロック信号CLKのクロック数を、1つのフレームを構成するラインの数で除算し、その商に相当する個数のキャリー信号S6と、余りに相当するカウント値S7とを出力することとなる。   Therefore, the correction pixel number counter 15 divides the clock number of the clock signal CLK generated in the time corresponding to the phase difference by the number of lines constituting one frame, and the number of carry signals S6 corresponding to the quotient. And the count value S7 corresponding to the remainder is output.

補正ライン数カウンタ16は、補正画素数カウンタ15から出力されるキャリー信号S6をカウントし、そのカウント値S8を出力する。   The correction line number counter 16 counts the carry signal S6 output from the correction pixel number counter 15, and outputs the count value S8.

例えば、位相差間隔期間信号S5がオンの間におけるクロック信号CLKの個数が「1200」であったとすると、1200÷525=2余り150であるから、カウント値S8は「2」、カウント値S7は「150」となる。   For example, if the number of clock signals CLK while the phase difference interval signal S5 is ON is “1200”, 1200 ÷ 525 = 2 remainder 150, so the count value S8 is “2” and the count value S7 is “150”.

カウント値S8の「2」は、位相差を補正するための周波数制御を全ラインに対して行うべき画素数、カウント値S7の「150」は、さらに追加で1画素の周波数制御を行うべきライン数を示す。   “2” of the count value S8 is the number of pixels on which frequency control for correcting the phase difference is to be performed on all lines, and “150” of the count value S7 is a line on which frequency control of one pixel is additionally performed. Indicates a number.

なお、補正画素数カウンタ15および補正ライン数カウンタ16のカウント値S7,S8は、1フレームごとにクリアされる。   The count values S7 and S8 of the correction pixel number counter 15 and the correction line number counter 16 are cleared for each frame.

画素数レジスタ17には、1ラインあたりの画素数が記憶されており、ライン数レジスタ19には1フレーム当たりのライン数が記憶されている。ここの例では、1ラインあたりの画素数として「780」が記憶され、1フレーム当たりのライン数として「525」が記憶されている。   The pixel number register 17 stores the number of pixels per line, and the line number register 19 stores the number of lines per frame. In this example, “780” is stored as the number of pixels per line, and “525” is stored as the number of lines per frame.

減算器18は、画素数レジスタ17に記憶されている画素数から補正ライン数カウンタ16のカウント値S8を減算し、その結果である減算値S9を出力する。減算値S9は、周波数制御を開始する各ラインの画素番号(以下「制御開始画素番号」と記載することがある)である。   The subtracter 18 subtracts the count value S8 of the correction line number counter 16 from the number of pixels stored in the pixel number register 17, and outputs a subtraction value S9 as a result. The subtraction value S9 is a pixel number of each line where frequency control is started (hereinafter sometimes referred to as “control start pixel number”).

ここの例では、780−2=778であるから、全てのラインについて、第778番およびと第779番の画素について周波数制御が行われる。なお、ここでは、780個の画素に対して、0〜779の番号が付されたものとする。   In this example, since 780-2 = 778, frequency control is performed on the 778th and 779th pixels for all lines. Here, it is assumed that numbers 0 to 779 are assigned to 780 pixels.

減算器20は、ライン数レジスタ19に記憶されているライン数から補正画素数カウンタ15のカウント値S7を減算し、その結果である減算値S10を出力する。減算値S10は、全ラインの2画素の周波数制御に加えて、1画素の周波数制御を追加で行うライン番号(以下「追加制御開始ライン番号」と記載することがある)である。   The subtracter 20 subtracts the count value S7 of the correction pixel number counter 15 from the number of lines stored in the line number register 19, and outputs a subtraction value S10 as a result. The subtraction value S10 is a line number for additionally performing frequency control of one pixel in addition to frequency control of two pixels of all lines (hereinafter, may be referred to as “additional control start line number”).

ここの例では、525−150=375であるから、第375番以降のラインについては、さらに1画素について周波数制御が行われる。つまり、第375番以降のラインについては、合計3画素について周波数制御が行われることとなる。   In this example, since 525-150 = 375, the frequency control is further performed for one pixel for the 375th and subsequent lines. That is, for the 375th and subsequent lines, frequency control is performed for a total of three pixels.

位相判定部21は、エッジ信号S3とエッジ信号S4とを比較し、進み位相であるか遅れ位相であるかを判定する。つまり、フレーム同期信号S2に対してフレーム同期信号S18が進んでいれば進み位相であることを示すPLUS信号S11を出力し、遅れていれば遅れ位相であることを示すMINUS信号S12を出力する。なお、位相差がゼロ、つまり位相が一致している場合には出力しない。その場合には、可変分周器22は元のカウンタデコード値を維持し、分周比を変更しない。   The phase determination unit 21 compares the edge signal S3 and the edge signal S4 to determine whether the phase is a leading phase or a lagging phase. That is, if the frame synchronization signal S18 is advanced with respect to the frame synchronization signal S2, the PLUS signal S11 indicating the advance phase is output, and if it is delayed, the MINUS signal S12 indicating the delay phase is output. When the phase difference is zero, that is, when the phases match, no output is made. In that case, the variable frequency divider 22 maintains the original counter decode value and does not change the frequency division ratio.

可変分周器22は、クロック信号CLKを可変分周比によって分周し、再生クロック信号S13を出力する。可変分周器22は、位相判定部21からPLUS信号S11が出力された場合には、走査時間を延長するために、カウンタデコード値を大きくすることによって分周比を大きくし、再生クロック信号S13の周波数を低くする。例えば、定常時のカウンタデコード値が「10」、つまり分周比が1/10である場合に、カウンタデコード値をプラス1して分周比を1/11とする。これと逆に、MINUS信号S12が出力された場合には、走査時間を短縮するために、カウンタデコード値を小さくすることによって分周比を小さくし、再生クロック信号S13の周波数を高くする。例えば、カウンタデコード値をマイナス1して分周比を1/9とする。   The variable frequency divider 22 divides the clock signal CLK by a variable frequency dividing ratio and outputs a reproduction clock signal S13. When the PLUS signal S11 is output from the phase determination unit 21, the variable frequency divider 22 increases the division ratio by increasing the counter decode value in order to extend the scanning time, and the recovered clock signal S13. Reduce the frequency. For example, when the counter decode value in a steady state is “10”, that is, the frequency division ratio is 1/10, the counter decode value is incremented by 1 and the frequency division ratio is 1/11. On the contrary, when the MINUS signal S12 is output, in order to shorten the scanning time, the frequency division ratio is decreased by decreasing the counter decode value, and the frequency of the reproduction clock signal S13 is increased. For example, the counter decode value is minus 1 and the division ratio is 1/9.

但し、可変分周器22における分周比の可変制御は、減算値S9および減算値S10によって特定されるライン番号および画素番号に対応する再生クロック信号S13のみに対して行われる。なお、1フレーム内における画素位置と再生クロック信号S13のクロック位置とは一致する。   However, the variable control of the frequency division ratio in the variable frequency divider 22 is performed only for the reproduction clock signal S13 corresponding to the line number and pixel number specified by the subtraction value S9 and the subtraction value S10. Note that the pixel position in one frame coincides with the clock position of the reproduction clock signal S13.

例えば、ここでの例では、全てのラインの第778番およびと第779番の画素、および第375番以降のラインの第1番の画素に対してのみ、分周比を1/9とし、これによって各ラインの該当画素の周波数を高くし、ライン全体として走査時間を短縮する。図5においては、最下欄に記載の可変分周器の各ラインにおける斜線で示されたクロック位置(画素位置)において周波数制御を行うこととなる。   For example, in this example, the division ratio is set to 1/9 only for the 778th and 779th pixels of all lines and the 1st pixel of the 375th and subsequent lines, As a result, the frequency of the corresponding pixel in each line is increased, and the scanning time for the entire line is shortened. In FIG. 5, frequency control is performed at clock positions (pixel positions) indicated by diagonal lines in each line of the variable frequency divider described in the bottom column.

すなわち、図6に示すように、位相差がない場合は、CL1で示すように分周比は全て1/10であるが、上のように位相差が生じた場合には、斜線を入れて示したクロック位置(画素位置)に対応する再生クロック信号S13に対して、CL2で示すように分周比を1/9に変更する。   That is, as shown in FIG. 6, when there is no phase difference, the frequency division ratios are all 1/10 as shown by CL1, but when the phase difference occurs as shown above, a diagonal line is put. For the reproduction clock signal S13 corresponding to the indicated clock position (pixel position), the frequency division ratio is changed to 1/9 as indicated by CL2.

その結果、フレーム同期信号S18の周期が短縮され、フレーム同期信号S2に対して前縁での立ち上がりが遅れていたにもかかわらず、最後はフレーム同期信号S2の最後とほぼ一致することとなる。これによって、フレーム同期信号S2に対する位相差が解消され、フレーム同期がとれることとなる。しかも、1つのフレームを構成する各ラインの走査時間が一様にまたは均等に調整されるので、同期乱れなどが発生することなく、映像の歪みも抑えることができる。   As a result, the period of the frame synchronization signal S18 is shortened, and the end of the frame synchronization signal S18 almost coincides with the end of the frame synchronization signal S2 although the rising edge at the leading edge is delayed with respect to the frame synchronization signal S2. As a result, the phase difference with respect to the frame synchronization signal S2 is eliminated, and frame synchronization is achieved. In addition, since the scanning time of each line constituting one frame is adjusted uniformly or evenly, the distortion of the image can be suppressed without causing the synchronization disturbance.

画素カウンタ23は、再生クロック信号S13をカウントし、各ラインにおける画素番号を示すカウント値S14を出力する。つまり、画素カウンタ23は、再生クロック信号S13をカウントし、1ライン当たりの画素数に達するとカウンタをクリアする。そして、カウンタを1回クリアするごとにキャリー信号S15を出力する。   The pixel counter 23 counts the reproduction clock signal S13 and outputs a count value S14 indicating the pixel number in each line. That is, the pixel counter 23 counts the reproduction clock signal S13, and clears the counter when the number of pixels per line is reached. A carry signal S15 is output every time the counter is cleared once.

ラインカウンタ24は、画素カウンタ23から出力されるキャリー信号S15をカウントし、ライン番号を示すカウント値S16を出力する。ラインカウンタ24は、カウント値S16が1フレーム当たりのライン数に達すると、カウンタをクリアする。   The line counter 24 counts the carry signal S15 output from the pixel counter 23, and outputs a count value S16 indicating the line number. The line counter 24 clears the counter when the count value S16 reaches the number of lines per frame.

フレームカウンタ25は、再生クロック信号S13をカウントし、フレーム同期信号S18を出力する。フレーム同期信号S18は、例えば、2分の1フレーム当たりの画素数に達する毎に「H」と「L」を反転させることによって生成される。また、ラインカウンタ24から出力されるキャリー信号S17を用いてフレーム同期信号S18を生成してもよい。   The frame counter 25 counts the reproduction clock signal S13 and outputs a frame synchronization signal S18. The frame synchronization signal S18 is generated, for example, by inverting “H” and “L” every time the number of pixels per half frame is reached. Further, the frame synchronization signal S18 may be generated using the carry signal S17 output from the line counter 24.

カウント値S14,S16、およびフレーム同期信号S18を得るために、これら画素カウンタ23、ラインカウンタ24、およびフレームカウンタ25などを上に述べた以外に種々組み合わせて構成することが可能である。   In order to obtain the count values S14 and S16 and the frame synchronization signal S18, the pixel counter 23, the line counter 24, the frame counter 25, and the like can be configured in various combinations other than those described above.

クロック発生器26は、再生クロック信号S13よりも周波数の高いクロック信号CLKを発生する。クロック信号CLKは、可変分周器22で分周されることにより、映像信号の画素に対応した再生クロック信号S13となる。   The clock generator 26 generates a clock signal CLK having a higher frequency than the reproduction clock signal S13. The clock signal CLK is frequency-divided by the variable frequency divider 22 to become a reproduction clock signal S13 corresponding to the pixel of the video signal.

図3に示すように、クロック発生器26は、水晶発振器31および逓倍器32から構成される。この例では、水晶発振器31によって12.2727MHzの周波数のクロック信号を発生させ、逓倍器32によって10倍し、122.727MHzの周波数のクロック信号CLKを出力する。   As shown in FIG. 3, the clock generator 26 includes a crystal oscillator 31 and a multiplier 32. In this example, a clock signal having a frequency of 12.2727 MHz is generated by the crystal oscillator 31, multiplied by 10 by the multiplier 32, and a clock signal CLK having a frequency of 122.727 MHz is output.

このように、ここの例では、可変分周器22のカウンタデコード値を「10」とし、再生クロック信号S13の10倍の周波数のクロック信号CLKを発生する。そして、再生クロック信号S13の10倍のクロック信号CLKを補正画素数カウンタ15がカウントすることにより、補正画素数カウンタ15によりカウントされるクロック数は再生クロック信号S13の場合の10倍となる。したがって、それに対応した画素の再生クロック信号S13の分周比を1/11または1/9とし、これにより再生クロック信号S13の周波数を約1割変化させることにより、フレーム同期信号S18の全体の周期が調整されてフレーム同期信号S2との位相差が解消されるのである。   Thus, in this example, the counter decode value of the variable frequency divider 22 is set to “10”, and the clock signal CLK having a frequency 10 times that of the reproduction clock signal S13 is generated. Then, the correction pixel number counter 15 counts the clock signal CLK that is ten times the reproduction clock signal S13, so that the number of clocks counted by the correction pixel number counter 15 is ten times that of the reproduction clock signal S13. Accordingly, the frequency division ratio of the reproduction clock signal S13 of the corresponding pixel is set to 1/11 or 1/9, and thereby the frequency of the reproduction clock signal S13 is changed by about 10%, so that the entire period of the frame synchronization signal S18 is changed. Is adjusted to eliminate the phase difference from the frame synchronization signal S2.

なお、可変分周器22における分周比が離散的であるので、1つのフレーム同期信号S18の周波数制御によって常に完全に同期がとれるわけではないが、そのような周波数制御を各フレームに連続的に実施することにより、フレーム同期信号S18とフレーム同期信号S2との位相差が累積することがなくなり、親カメラ2aの画像DTaと子カメラ2bの画像DTbとのフレーム同期をとることができるのである。   Since the frequency division ratio in the variable frequency divider 22 is discrete, it is not always possible to achieve complete synchronization by frequency control of one frame synchronization signal S18. However, such frequency control is continuously applied to each frame. As a result, the phase difference between the frame synchronization signal S18 and the frame synchronization signal S2 is not accumulated, and the frame synchronization between the image DTa of the parent camera 2a and the image DTb of the child camera 2b can be achieved. .

カメラ2bでは、再生クロック信号S13、または、画素カウンタ23、ラインカウンタ24、フレームカウンタ25から出力される信号を用いて、映像信号を出力するように構成すればよい。   The camera 2b may be configured to output a video signal using the reproduction clock signal S13 or signals output from the pixel counter 23, line counter 24, and frame counter 25.

上に述べた実施形態において、クロック発生器26の出力するクロック信号CLKに対して、可変分周器22を用いて分周比を可変し、これによってフレーム同期信号S18を生成するので、種々の周波数のフレーム同期信号S18を容易に生成することができる。したがって、フレーム同期信号の周波数が異なる映像信号が入力されるシステムにおいても、単一の水晶発振器(クリスタル)を用いたクロック発生器26によって同期化を実現できる。したがって、複数の水晶発振器を設けた場合のように回路規模が大きくなることがない。   In the embodiment described above, the frequency dividing ratio is varied using the variable frequency divider 22 with respect to the clock signal CLK output from the clock generator 26, thereby generating the frame synchronization signal S18. The frequency frame synchronization signal S18 can be easily generated. Therefore, even in a system in which video signals having different frame synchronization signal frequencies are input, synchronization can be realized by the clock generator 26 using a single crystal oscillator (crystal). Therefore, the circuit scale does not increase as in the case where a plurality of crystal oscillators are provided.

なお、上に述べた実施形態において、フレーム同期信号S2とフレーム同期信号S18との位相差が1ラインの走査時間の規格値を越える場合には、規格値を越えない範囲で各ラインに振り分けるようにすればよい。   In the embodiment described above, when the phase difference between the frame synchronization signal S2 and the frame synchronization signal S18 exceeds the standard value of the scanning time of one line, it is distributed to each line within the range not exceeding the standard value. You can do it.

上に述べた実施形態において、追加の周波数制御を行うラインについての画素番号を第1番としたが、他の画素番号、例えば上の例では第777番としてもよい。また、全ラインに対して周波数制御を行う画素番号についても、他の番号の画素に対して周波数制御を行ってもよい。   In the embodiment described above, the pixel number for the line on which additional frequency control is performed is the first number. However, other pixel numbers, for example, the number 777 in the above example may be used. Also, with respect to pixel numbers for which frequency control is performed on all lines, frequency control may be performed on pixels with other numbers.

また、上の実施形態では、可変分周器22の分周比のカウンタデコード値を「10」としたが、これ以外の値、例えば、「8」「12」「16」「32」など、適当な値とし、それに応じてクロック発生器26のクロック信号CLKの周波数を設定すればよい。また、分周比を可変する場合に、カウンタデコード値をプラス1またはマイナス1としたが、プラス2、3、4、またはマイナス2、3、4などとしてもよい。また、位相差の大きさに応じて分周比を異ならせてもよい。またクロック位置(画素位置)に応じて分周比を異ならせてもよい。   In the above embodiment, the counter decode value of the frequency division ratio of the variable frequency divider 22 is “10”, but other values such as “8”, “12”, “16”, “32”, etc. An appropriate value may be set, and the frequency of the clock signal CLK of the clock generator 26 may be set accordingly. Further, when the frequency division ratio is varied, the counter decode value is set to plus 1 or minus 1, but may be plus 2, 3, 4, or minus 2, 3, 4, or the like. Further, the frequency division ratio may be varied according to the magnitude of the phase difference. Further, the frequency division ratio may be varied according to the clock position (pixel position).

上の実施形態において、エッジ検出部12、エッジ検出部13、間隔期間生成部14、および位相判定部21が、本発明における「位相差を検出する手段」または「位相差検出部」に相当する。また、補正画素数カウンタ15、補正ライン数カウンタ16、画素数レジスタ17、減算器18、ライン数レジスタ19、減算器20、位相判定部21、および可変分周器22が、本発明の「位相差に相当する時間を1つのフレームを構成する各ラインの走査時間に対して一様に配分されるように振り分けて各ラインの走査時間を調整する手段」または「制御部」に相当する。位相判定部21が、本発明における「位相進み遅れ判断部」に相当する。また、減算値S9および減算値S10が、本発明における「クロック位置指定信号」に相当する。   In the above embodiment, the edge detection unit 12, the edge detection unit 13, the interval period generation unit 14, and the phase determination unit 21 correspond to “phase difference detection unit” or “phase difference detection unit” in the present invention. . Further, the correction pixel number counter 15, the correction line number counter 16, the pixel number register 17, the subtracter 18, the line number register 19, the subtractor 20, the phase determination unit 21, and the variable frequency divider 22 are included in It corresponds to “a means for adjusting the scanning time of each line by distributing the time corresponding to the phase difference so as to be uniformly distributed with respect to the scanning time of each line constituting one frame” or “control unit”. The phase determination unit 21 corresponds to the “phase advance / delay determination unit” in the present invention. The subtraction value S9 and the subtraction value S10 correspond to the “clock position designation signal” in the present invention.

上の実施形態において、フレーム同期装置FSは、回路素子を用いてハードウエア的に、またはメモリに格納したプログラムをCPUやDSPが実行することによってソフトウエア的に、またはそれらの組み合わせによって、実現することが可能である。   In the above embodiment, the frame synchronizer FS is realized by hardware using circuit elements, by software executed by a CPU or DSP executing a program stored in a memory, or by a combination thereof. It is possible.

上の実施形態において、フレームの周期、1フレームのライン数、1ラインの画素数、その他の定数や値は、上に述べたものに限られることはない。その他、フレーム同期装置FS、カメラ2b、または監視システム1の全体または各部の構造、構成、形状、個数、処理の内容などは、本発明の趣旨に沿って適宜変更することができる。   In the above embodiment, the frame period, the number of lines in one frame, the number of pixels in one line, and other constants and values are not limited to those described above. In addition, the structure, configuration, shape, number, processing contents, etc. of the whole or each part of the frame synchronization device FS, the camera 2b, or the monitoring system 1 can be appropriately changed in accordance with the spirit of the present invention.

本実施形態には次に記載する形態も含まれる。
(付記1)
撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号と同期させる方法であって、
前記撮像装置で生成される内部フレーム同期信号と前記外部フレーム同期信号との位相差を検出し、
検出された前記位相差に相当する時間を、1つのフレームを構成する各ラインの走査時間に対して一様に配分されるように振り分けて各ラインの走査時間を調整する、
ことを特徴とする撮像装置におけるフレーム同期方法。
(付記2)
前記内部フレーム同期信号を、前記撮像装置の内部で発生させたクロック信号を分周することによって生成するとともに、
前記各ラインの走査時間を前記クロック信号の分周比を可変することにより調整する、
付記1記載の撮像装置におけるフレーム同期方法。
(付記3)
前記位相差に相当する時間で生成される前記クロック信号のクロック数を1つのフレームを構成するラインの数で除算してその商および余りを算出した場合に、1つのフレームを構成するラインの内、前記余りの値に相当する数のラインについては、当該ラインごとに、前記商の値に1を加算した値に相当する数の各画素についてその走査を行う時間を短縮しまたは延長し、残りのラインについては、当該ラインごとに、前記商の値に相当する数の各画素についてその走査を行う時間を短縮しまたは延長する、
付記2記載の撮像装置におけるフレーム同期方法。
(付記4)
撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号と同期させるための、撮像装置におけるフレーム同期装置であって、
前記撮像装置で生成される内部フレーム同期信号と前記外部フレーム同期信号との位相差を検出する手段と、
検出された前記位相差に相当する時間を、1つのフレームを構成する各ラインの走査時間に対して一様に配分されるように振り分けて各ラインの走査時間を調整する手段と、
を有することを特徴とする撮像装置におけるフレーム同期装置。
(付記5)
撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号と同期させるための、撮像装置におけるフレーム同期装置であって、
クロック信号発生部と、
前記クロック信号を可変分周比によって分周する可変分周部と、
前記可変分周部の出力する再生クロック信号を分周して内部フレーム同期信号を生成するフレームカウンタと、
前記内部フレーム同期信号と前記外部フレーム同期信号との位相差を検出する位相差検出部と、
前記位相差に相当する時間で生成される前記クロック信号のクロック数に基づいて、前記可変分周部の分周比を可変し、1つのフレームを構成する各ラインにそれぞれ含まれる1ライン分の前記再生クロック信号の周期を可変して各ラインの走査時間を調整する制御部と、
を有することを特徴とする撮像装置におけるフレーム同期装置。
(付記6)
前記制御部は、前記位相差に相当する時間で生成される前記クロック信号のクロック数に基づいて、1つのフレームを構成する各ラインにおいて調整すべきクロック位置を指定するクロック位置指定信号を出力し、
前記可変分周部は、前記再生クロック信号に基づいた1つのフレーム内における各ラインにおけるクロック位置が前記クロック位置指定信号のクロック位置と一致したときに、その分周比を小さくまたは大きく可変して各ラインの走査時間を調整するように制御されている、
付記5記載の撮像装置におけるフレーム同期装置。
(付記7)
前記制御部は、
前記位相差に相当する時間で生成される前記クロック信号をカウントし、1つのフレームを構成するラインの数で除した商および余りを取得し、取得した商および余りに基づいて、前記可変分周部の分周比を可変すべき1つのフレーム内における各ラインにおけるクロック位置を前記可変分周部に対して出力する、
付記6記載の撮像装置におけるフレーム同期装置。
(付記8)
前記内部フレーム同期信号と前記外部フレーム同期信号とにおける位相の進みまたは遅れを判断する位相進み遅れ判断部が設けられ、
前記可変分周部は、前記制御部によって分周比を可変する際に、前記位相進み遅れ判断部からの出力に基づいて、当該分周比を小さくまたは大きく可変する、
付記7記載の撮像装置におけるフレーム同期装置。
The embodiment described below is also included in this embodiment.
(Appendix 1)
A method of synchronizing a frame output from an imaging device with an external frame synchronization signal input from the outside,
Detecting a phase difference between the internal frame synchronization signal generated by the imaging device and the external frame synchronization signal;
The time corresponding to the detected phase difference is distributed so as to be uniformly distributed with respect to the scanning time of each line constituting one frame, and the scanning time of each line is adjusted.
A frame synchronization method in an imaging apparatus.
(Appendix 2)
The internal frame synchronization signal is generated by dividing the clock signal generated inside the imaging device,
Adjusting the scanning time of each line by varying the frequency division ratio of the clock signal;
A frame synchronization method in the imaging apparatus according to attachment 1.
(Appendix 3)
When the quotient and the remainder are calculated by dividing the number of clocks of the clock signal generated in the time corresponding to the phase difference by the number of lines constituting one frame, the line of the lines constituting one frame For the number of lines corresponding to the remainder value, the scanning time is shortened or extended for each number of pixels corresponding to the value obtained by adding 1 to the quotient value for each line, and the rest For each of the lines, for each line, the time for performing scanning for each number of pixels corresponding to the value of the quotient is shortened or extended.
A frame synchronization method in the imaging apparatus according to attachment 2.
(Appendix 4)
A frame synchronization device in an imaging device for synchronizing a frame output from the imaging device with an external frame synchronization signal input from the outside,
Means for detecting a phase difference between the internal frame synchronization signal generated by the imaging apparatus and the external frame synchronization signal;
Means for distributing the time corresponding to the detected phase difference so as to be uniformly distributed with respect to the scanning time of each line constituting one frame, and adjusting the scanning time of each line;
A frame synchronization apparatus in an imaging apparatus, comprising:
(Appendix 5)
A frame synchronization device in an imaging device for synchronizing a frame output from the imaging device with an external frame synchronization signal input from the outside,
A clock signal generator;
A variable divider for dividing the clock signal by a variable dividing ratio;
A frame counter that divides the recovered clock signal output from the variable frequency divider to generate an internal frame synchronization signal;
A phase difference detector that detects a phase difference between the internal frame synchronization signal and the external frame synchronization signal;
Based on the number of clocks of the clock signal generated in the time corresponding to the phase difference, the frequency dividing ratio of the variable frequency dividing unit is varied, and one line included in each line constituting one frame. A control unit that adjusts the scanning time of each line by varying the period of the reproduction clock signal;
A frame synchronization apparatus in an imaging apparatus, comprising:
(Appendix 6)
The control unit outputs a clock position designation signal that designates a clock position to be adjusted in each line constituting one frame based on the number of clocks of the clock signal generated in a time corresponding to the phase difference. ,
The variable frequency dividing unit may change the frequency dividing ratio to be small or large when the clock position in each line in one frame based on the reproduced clock signal coincides with the clock position of the clock position designation signal. Controlled to adjust the scanning time of each line,
The frame synchronization apparatus in the imaging apparatus according to appendix 5.
(Appendix 7)
The controller is
Counting the clock signal generated at a time corresponding to the phase difference, obtaining a quotient and a remainder divided by the number of lines constituting one frame, and based on the obtained quotient and remainder, the variable frequency dividing unit Output the clock position in each line in one frame in which the frequency division ratio is variable to the variable frequency divider.
The frame synchronization apparatus in the imaging apparatus according to appendix 6.
(Appendix 8)
A phase advance / delay determination unit for determining a phase advance or delay in the internal frame synchronization signal and the external frame synchronization signal is provided;
The variable frequency dividing unit varies the frequency dividing ratio to be small or large based on the output from the phase advance / delay determining unit when the control unit varies the frequency dividing ratio.
The frame synchronization apparatus in the imaging apparatus according to appendix 7.

本発明に係る監視システムの全体の構成の例を示すブロック図である。It is a block diagram which shows the example of the whole structure of the monitoring system which concerns on this invention. カメラにおけるフレーム同期装置の回路を示す図である。It is a figure which shows the circuit of the frame synchronizer in a camera. クロック発生器の回路の例を示す図である。It is a figure which shows the example of the circuit of a clock generator. 映像信号の例を示す図である。It is a figure which shows the example of a video signal. フレーム同期装置における各部の信号の状態を示す図である。It is a figure which shows the state of the signal of each part in a frame synchronizer. 各クロック位置における周波数制御の様子を説明する図である。It is a figure explaining the mode of frequency control in each clock position.

符号の説明Explanation of symbols

1 監視システム
2b,2c カメラ(撮像装置)
12 エッジ検出部
13 エッジ検出部
14 間隔期間生成部
15 補正画素数カウンタ
16 補正ライン数カウンタ
21 位相判定部
22 可変分周器
23 画素カウンタ
24 ラインカウンタ
25 フレームカウンタ
26 クロック発生器
FS フレーム同期装置
S2 フレーム同期信号(外部フレーム同期信号)
S9 減算値(クロック位置指定信号)
S10 減算値(クロック位置指定信号)
S18 フレーム同期信号S(内部フレーム同期信号)
1 Monitoring system 2b, 2c Camera (imaging device)
12 Edge detection unit 13 Edge detection unit 14 Interval period generation unit 15 Correction pixel number counter 16 Correction line number counter 21 Phase determination unit 22 Variable frequency divider 23 Pixel counter 24 Line counter 25 Frame counter 26 Clock generator FS Frame synchronization device S2 Frame sync signal (external frame sync signal)
S9 Subtraction value (clock position designation signal)
S10 Subtraction value (clock position designation signal)
S18 Frame synchronization signal S (internal frame synchronization signal)

Claims (5)

撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号と同期させる方法であって、
前記撮像装置で生成される内部フレーム同期信号と前記外部フレーム同期信号との位相差を検出し、
検出された前記位相差に相当する時間を、1つのフレームを構成する各ラインの走査時間に対して一様に配分されるように振り分けて各ラインの走査時間を調整する、
ことを特徴とする撮像装置におけるフレーム同期方法。
A method of synchronizing a frame output from an imaging device with an external frame synchronization signal input from the outside,
Detecting a phase difference between the internal frame synchronization signal generated by the imaging device and the external frame synchronization signal;
The time corresponding to the detected phase difference is distributed so as to be uniformly distributed with respect to the scanning time of each line constituting one frame, and the scanning time of each line is adjusted.
A frame synchronization method in an imaging apparatus.
撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号と同期させるための、撮像装置におけるフレーム同期装置であって、
前記撮像装置で生成される内部フレーム同期信号と前記外部フレーム同期信号との位相差を検出する手段と、
検出された前記位相差に相当する時間を、1つのフレームを構成する各ラインの走査時間に対して一様に配分されるように振り分けて各ラインの走査時間を調整する手段と、
を有することを特徴とする撮像装置におけるフレーム同期装置。
A frame synchronization device in an imaging device for synchronizing a frame output from the imaging device with an external frame synchronization signal input from the outside,
Means for detecting a phase difference between the internal frame synchronization signal generated by the imaging apparatus and the external frame synchronization signal;
Means for distributing the time corresponding to the detected phase difference so as to be uniformly distributed with respect to the scanning time of each line constituting one frame, and adjusting the scanning time of each line;
A frame synchronization apparatus in an imaging apparatus, comprising:
撮像装置から出力されるフレームを外部から入力される外部フレーム同期信号と同期させるための、撮像装置におけるフレーム同期装置であって、
クロック信号発生部と、
前記クロック信号を可変分周比によって分周する可変分周部と、
前記可変分周部の出力する再生クロック信号を分周して内部フレーム同期信号を生成するフレームカウンタと、
前記内部フレーム同期信号と前記外部フレーム同期信号との位相差を検出する位相差検出部と、
前記位相差に相当する時間で生成される前記クロック信号のクロック数に基づいて、前記可変分周部の分周比を可変し、1つのフレームを構成する各ラインにそれぞれ含まれる1ライン分の前記再生クロック信号の周期を可変して各ラインの走査時間を調整する制御部と、
を有することを特徴とする撮像装置におけるフレーム同期装置。
A frame synchronization device in an imaging device for synchronizing a frame output from the imaging device with an external frame synchronization signal input from the outside,
A clock signal generator;
A variable divider for dividing the clock signal by a variable dividing ratio;
A frame counter that divides the recovered clock signal output from the variable frequency divider to generate an internal frame synchronization signal;
A phase difference detector that detects a phase difference between the internal frame synchronization signal and the external frame synchronization signal;
Based on the number of clocks of the clock signal generated in the time corresponding to the phase difference, the frequency dividing ratio of the variable frequency dividing unit is varied, and one line included in each line constituting one frame. A control unit that adjusts the scanning time of each line by varying the period of the reproduction clock signal;
A frame synchronization apparatus in an imaging apparatus, comprising:
前記制御部は、前記位相差に相当する時間で生成される前記クロック信号のクロック数に基づいて、1つのフレームを構成する各ラインにおいて調整すべきクロック位置を指定するクロック位置指定信号を出力し、
前記可変分周部は、前記再生クロック信号に基づいた1つのフレーム内における各ラインにおけるクロック位置が前記クロック位置指定信号のクロック位置と一致したときに、その分周比を小さくまたは大きく可変して各ラインの走査時間を調整するように制御されている、
請求項3記載の撮像装置におけるフレーム同期装置。
The control unit outputs a clock position designation signal that designates a clock position to be adjusted in each line constituting one frame based on the number of clocks of the clock signal generated in a time corresponding to the phase difference. ,
The variable frequency dividing unit may change the frequency dividing ratio to be small or large when the clock position in each line in one frame based on the reproduced clock signal coincides with the clock position of the clock position designation signal. Controlled to adjust the scanning time of each line,
The frame synchronization apparatus in the imaging device according to claim 3.
前記制御部は、
前記位相差に相当する時間で生成される前記クロック信号をカウントし、1つのフレームを構成するラインの数で除した商および余りを取得し、取得した商および余りに基づいて、前記可変分周部の分周比を可変すべき1つのフレーム内における各ラインにおけるクロック位置を前記可変分周部に対して出力する、
請求項4記載の撮像装置におけるフレーム同期装置。
The controller is
Counting the clock signal generated at a time corresponding to the phase difference, obtaining a quotient and a remainder divided by the number of lines constituting one frame, and based on the obtained quotient and remainder, the variable frequency dividing unit Output the clock position in each line in one frame in which the frequency division ratio is variable to the variable frequency divider.
The frame synchronization apparatus in the imaging device according to claim 4.
JP2007144365A 2007-05-31 2007-05-31 Frame synchronization method and apparatus in imaging apparatus Expired - Fee Related JP4812693B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007144365A JP4812693B2 (en) 2007-05-31 2007-05-31 Frame synchronization method and apparatus in imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007144365A JP4812693B2 (en) 2007-05-31 2007-05-31 Frame synchronization method and apparatus in imaging apparatus

Publications (2)

Publication Number Publication Date
JP2008301146A true JP2008301146A (en) 2008-12-11
JP4812693B2 JP4812693B2 (en) 2011-11-09

Family

ID=40174244

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007144365A Expired - Fee Related JP4812693B2 (en) 2007-05-31 2007-05-31 Frame synchronization method and apparatus in imaging apparatus

Country Status (1)

Country Link
JP (1) JP4812693B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011061438A (en) * 2009-09-09 2011-03-24 Toshiba Corp Image processor
JP2013192185A (en) * 2012-03-15 2013-09-26 Sony Corp Image transmission system and image transmission method
WO2014057719A1 (en) * 2012-10-09 2014-04-17 オリンパス株式会社 Image pick-up and display system, image pick-up device, image pick-up method, and program
US9912845B2 (en) 2015-03-26 2018-03-06 Mitsubishi Electric Corporation Video information reproduction system and video information reproduction device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002112067A (en) * 2000-09-28 2002-04-12 Nec Microsystems Ltd Synchronous signal generation circuit
JP2003347933A (en) * 2002-05-30 2003-12-05 Matsushita Electric Ind Co Ltd Clock generating circuit
JP2007129404A (en) * 2005-11-02 2007-05-24 Olympus Corp Camera system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002112067A (en) * 2000-09-28 2002-04-12 Nec Microsystems Ltd Synchronous signal generation circuit
JP2003347933A (en) * 2002-05-30 2003-12-05 Matsushita Electric Ind Co Ltd Clock generating circuit
JP2007129404A (en) * 2005-11-02 2007-05-24 Olympus Corp Camera system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011061438A (en) * 2009-09-09 2011-03-24 Toshiba Corp Image processor
JP2013192185A (en) * 2012-03-15 2013-09-26 Sony Corp Image transmission system and image transmission method
US9992446B2 (en) 2012-03-15 2018-06-05 Sony Semiconductor Solutions Corporation Image transmission system and image transmission method
WO2014057719A1 (en) * 2012-10-09 2014-04-17 オリンパス株式会社 Image pick-up and display system, image pick-up device, image pick-up method, and program
JP2014078793A (en) * 2012-10-09 2014-05-01 Olympus Corp Imaging display system, imaging device, imaging method and program
CN104704808A (en) * 2012-10-09 2015-06-10 奥林巴斯株式会社 Image pick-up and display system, image pick-up device, image pick-up method, and program
US9414001B2 (en) 2012-10-09 2016-08-09 Olympus Corporation Image pick-up and display system, image pick-up device, image pick-up method, and computer readable storage device
US9912845B2 (en) 2015-03-26 2018-03-06 Mitsubishi Electric Corporation Video information reproduction system and video information reproduction device

Also Published As

Publication number Publication date
JP4812693B2 (en) 2011-11-09

Similar Documents

Publication Publication Date Title
JP2007295096A (en) Device and method for generating synchronization signal, and digital camera
JP2007129404A (en) Camera system
JP4812693B2 (en) Frame synchronization method and apparatus in imaging apparatus
CN112074896A (en) Video frame synchronization system, video processing apparatus, and video frame synchronization method
US6795124B1 (en) External synchronization system using composite synchronization signal and camera system using the same
JP4788381B2 (en) Video output device and digital camera equipped with the same
JP2012169727A (en) Image signal processor and image signal processing method
TWI463865B (en) Multi-slicing horizontal syncronization signal generating apparatus and method
US8970784B2 (en) Driving apparatus, driving method, and program
KR100790979B1 (en) Apparatus for detecting synchronization
JP2009284030A (en) Synchronous signal control circuit
KR100510148B1 (en) Display synchronization signal generation apparatus in the analog video signal receiver and method thereof
JP2009077042A (en) Device and method for processing video image
JPWO2009037812A1 (en) Synchronization signal generator
JP2621534B2 (en) Synchronous signal generator
JP2000050150A (en) Image pickup device
US20190052829A1 (en) Image pickup apparatus and method utilizing the same line rate for upscaling and outputting image
WO2023035096A1 (en) Frame rate control method, control device, electronic device, and computer readable medium
JP5121164B2 (en) Display device
JP3027985B2 (en) External synchronous camera controller
KR100370073B1 (en) Apparatus and Method of Frame Sync Control for VCR Record output of Digital Broadcasting
JP4178684B2 (en) External synchronization system and camera system using the same
CN115941863A (en) Frame synchronization method, logic module and video processing equipment
JP2636951B2 (en) Moving image area determination device for image processing device
JP2008042586A (en) Video signal processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110708

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110823

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140902

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees