TW425487B - Apparatus and method of controlling pan/tilt camera - Google Patents
Apparatus and method of controlling pan/tilt camera Download PDFInfo
- Publication number
- TW425487B TW425487B TW089109308A TW89109308A TW425487B TW 425487 B TW425487 B TW 425487B TW 089109308 A TW089109308 A TW 089109308A TW 89109308 A TW89109308 A TW 89109308A TW 425487 B TW425487 B TW 425487B
- Authority
- TW
- Taiwan
- Prior art keywords
- motor
- camera
- rotation
- drive
- pitch
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S3/00—Direction-finders for determining the direction from which infrasonic, sonic, ultrasonic, or electromagnetic waves, or particle emission, not having a directional significance, are being received
- G01S3/78—Direction-finders for determining the direction from which infrasonic, sonic, ultrasonic, or electromagnetic waves, or particle emission, not having a directional significance, are being received using electromagnetic waves other than radio waves
- G01S3/782—Systems for determining direction or deviation from predetermined direction
- G01S3/785—Systems for determining direction or deviation from predetermined direction using adjustment of orientation of directivity characteristics of a detector or detector system to give a desired condition of signal derived from that detector or detector system
- G01S3/786—Systems for determining direction or deviation from predetermined direction using adjustment of orientation of directivity characteristics of a detector or detector system to give a desired condition of signal derived from that detector or detector system the desired condition being maintained automatically
- G01S3/7864—T.V. type tracking systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
- H04N23/635—Region indicators; Field of view indicators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Studio Devices (AREA)
- Accessories Of Cameras (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
Description
4254 8 7 五、贅明說明(l) *,= 仰攝,機的裝置及方 種控制水平/俯仰攝影機的裝寺別疋’本發明提供-影機螢幕,辨識一在攝影機螢置幕及方法’用以虛擬劃分攝 標,並藉由控制一水平及/或 被拍攝之目標的位置座 垂置轉動來轉動攝影機至被辨*卩驃動器以水平轉動及/或 水平/俯仰攝影機可智慧地追纟從0目標的位置座標,如此, 孔。 龙選擇性拍攝一目標的臉 用以拍攝影像之攝影機應用 例如無人監視系統、影像電話;‘丄來愈夕的不同場合, 至意欲方向的功能有愈來愈多的丄所以,對於轉動攝影機 現有的水平/俯仰攝影機係@求 達分別担身^ ί〜由個以上的馬 用以轉換攝影機方向的控制器以左/右或上/下轉動。 用掃描及檢測方法,並觀容目拷在使用者欲調整鏡頭時利 以拖矣攝影機螢幕中的目&至=在取景器螢幕中的位置, 線或無線遙控器’各別控^兩$,中心’此種方法使用有 目標位置左/右或上/下轉動:兩個以上的馬達,依據 但是,此種水平/俯仰攝 y 分別控制每一X軸向與y軸向驅機係利用個別的控制開關 間报多,難 動平順;而且,此種攝影機在轉2達’導致攝影機無法轉 以捕捉目標的運動。 換方向耗費時 .,_ ·φ±. 達與y軸向驅動馬達之教麵 ’分別控制X軸向驅動馬 丈、双組應皞個 — J 叫别執灯。而且,習知麥 為了自動控制攝影機之 425487 五、發明說明(2) 置尚有一缺點,即控制兩馬達之兩套軟體個別操作會降低 處理速度。4254 8 7 V. Explanation (l) *, = Tilt camera, camera device and various types of control level / tilt camera installation. The present invention provides-the screen of the camera, identification-on the screen of the camera and Method 'is used to virtually divide the camera, and rotate the camera to be recognized by controlling the horizontal and / or vertical position of the object to be shot. The actuator can be rotated horizontally and / or the camera can be panned / tilted. Intelligently chase the coordinates from the position of the 0 target, so, hole. Long selectively photographs a target's face for camera applications such as unmanned surveillance systems, video phones; 'on different occasions, there are more and more functions to the desired direction. Therefore, for rotating cameras existing The horizontal / tilt camera system @ 求 达 each bears ^ ~ The controller used by more than one horse to change the direction of the camera is rotated left / right or up / down. Use the scanning and detection methods, and watch the screen when the user wants to adjust the lens to drag the screen in the screen of the camera & to = the position in the viewfinder screen, wire or wireless remote control 'two separate controls ^ two $, Center 'This method uses a target position to rotate left / right or up / down: two or more motors, according to this, however, this pan / tilt y controls each X-axis and y-axis drive system separately It is difficult to move smoothly with the use of individual control switches; moreover, this type of camera is turned 2 ', which makes the camera unable to turn to capture the movement of the target. It takes time to change the direction., _ · Φ ±. The teaching surface of the y-axis drive motor and the y-axis drive motor are controlled separately, and the two groups should have one — J is called a no-lamp. In addition, Xi Zhimai's 425487 in order to automatically control the camera V. Description of the invention (2) There is still a disadvantage that controlling the two sets of software of the two motors individually reduces the processing speed.
所以,本發明之設計在於克服上述習知裝置的問題。 本發明之主要目的在於提供一種控制水平/俯仰攝影機的 裝置及方法,測定目標之臉孔在攝影機取景器螢幕中的位 置,並直接調整攝影機方向以捕捉目標之臉孔,使之位於 螢幕中心處,如此攝影機可隨著目標臉孔之運動而轉動以 智慧拍攝臉孔D Θ 為了達成此一目的’本發明之一實施例提供一種控制 水平/俯仰攝影機左/右或上/下轉動的方法,使用一水平 馬達(X軸向驅動)以左/右轉動、—水平馬達驅動電路、一 俯仰馬達(y轴向驅動)以上/下轉動,及一俯仰馬達驅動電 路,並且透過個別的減速機構來機械結合兩馬達;上述方 法尚包括當攝影機捕捉到目標之運動時’產生一且有規律 循環之定時中斷信號;利用攝影機螢幕中心點與捕捉進攝 影機螢幕之目#中心點來計算攝影機之轉動方向及轉動角 J :依f有規律循環之定時器中斷信號來驅動水平馬達與 _ , . . * ^ Λ預弋轉速、經計算過之轉動 方向與角度為基準,來轉動攝影機。 為了達成此一目的,大恭F1R、 制水平/俯仰攝影機左/右或丄 $ -實施例提供一種控 κh V你m 右Α 下轉動的方法,透過貧料 電路、-俯仰馬達以上/下轉動:轉動、-水動 透過減速機構來機械;轉激動::俯仰馬達驅動電路; 很械m合複數個攝影機與上述兩馬達,並Therefore, the present invention is designed to overcome the problems of the above-mentioned conventional devices. The main purpose of the present invention is to provide a device and method for controlling a pan / tilt camera, which measures the position of the target's face in the screen of the camera viewfinder, and directly adjusts the direction of the camera to capture the target's face so that it is located at the center of the screen In this way, the camera can rotate with the movement of the target face to take pictures of the face D Θ intelligently. In order to achieve this, an embodiment of the present invention provides a method for controlling the left / right or up / down rotation of the pan / tilt camera. Use a horizontal motor (X-axis drive) to rotate left / right, a horizontal motor drive circuit, a pitch motor (y-axis drive) to rotate up / down, and a pitch motor drive circuit, and use a separate reduction mechanism to Mechanically combine two motors; the above method also includes when the camera captures the motion of the target, 'generating a regular interrupt signal with a regular cycle; using the center point of the camera screen and the #center point captured into the screen of the camera to calculate the rotation direction of the camera And rotation angle J: The timer interrupt signal of the regular cycle of f drives the horizontal motor and _, .. * ^ Λ Pre-rotation speed, calculated rotation direction and angle as the reference to rotate the camera. In order to achieve this, Da Gong F1R, level / tilt camera left / right or 丄 $-the embodiment provides a method to control κh V you m right Α down rotation, through the lean circuit,-tilt motor up / down rotation : Rotation, -water movement through the deceleration mechanism to turn machinery; turn excitement :: drive circuit of the pitch motor; very mechanically combine multiple cameras with the above two motors, and
胃6頁 2548 -—- 五、發明說明(3) ,影機捕 目:信號;利用攝影機螢幕中心%:捕捉進:%之定s“ 目私中心點來計算攝影機之轉動方;;攝影機螢I之 規律循環之定時器中斷信號來;度;依具有 為基準’來轉動攝影機。 “過之轉動方向與角度 達及iii兩實施例令,轉動角度計算步驟可藉由經雨馬 ί;:機構所決定t詳細轉動角度來設定水平與“轉 動攝费榴:為:將被攝影機螢幕檢測的"票中心辨識成轉 機詳r艎f目棒點’而將攝影機螢幕虛擬細分出符合攝影 機ef、,.田轉動角度的轉動步數。 =控制步驟可包括:初始化馬達及其變數 設 ^古接收與分析外部指令;為了在接收指令期間,若接收 =接方向改變指令時’可轉動每一攝影冑,故利用侬據 水平馬達及俯仰馬達當時狀態之攝影機螢幕中心點及目樣 中心點,來設定水平馬達轉動步數(pcnt)與俯仰馬達轉動 ,數(Tent);及/或在接收指令期間,若接收到馬達速度 調整指令時’藉由將水平與俯仰馬達之轉速設成新數值, 來調整每一攝影機之轉動速度。 指令接收與分析步驟玎包括:藉由檢查攝影機識別碼 以選擇性接收指令以符合每一部攝影機;分析所接收到之 指令;確定已分析之指令是否為—直接方向改變指令;及 /或右已分析之4a令不是直接方向改變指令時,確定該已Stomach 6 p. 2548-5-Description of the invention (3), the camera captures the eye: the signal; uses the camera screen center%: captures into:% of the set s "the center point of the camera to calculate the rotation of the camera; the camera screen The timer interrupt signal of the regular loop comes; degrees; the camera is rotated according to the reference. "The direction and angle of the rotation are up to iii and the two embodiments. The calculation step of the rotation angle can be passed through the rain horse ί ;: The mechanism determines the detailed rotation angle to set the level and "Rotate the camera": To: "the ticket center detected by the camera screen is identified as the turn point of the camera, and the camera screen is virtually subdivided into the camera ef The number of rotation steps for the rotation angle of the field. = The control step may include: initializing the motor and its variable settings ^ receiving and analyzing external instructions; in order to receive the instruction, if receiving = when the direction change instruction is received, 'each rotation can be turned Photography, so use the center of the screen and the center of the screen of the camera according to the current state of the horizontal motor and the pitch motor to set the number of steps (pcnt) and the rotation of the tilt motor. And / or (Tent); and / or during the receiving command, if a motor speed adjustment command is received, 'the rotation speed of each camera is adjusted by setting the rotation speeds of the pan and tilt motors to new values. Command reception and analysis Steps 玎 include: selectively receiving instructions to match each camera by checking the camera identification code; analyzing the received instructions; determining whether the analyzed instructions are-direct direction change instructions; and / or right analyzed 4a When the order is not a direct direction change,
第7頁Page 7
五、發明說明(4) 分析之指令是否為馬達速度調整指令。 藉由將被攝影機檢測之目標中心點指定為轉動馬、 目標點的方向指定函數,可執行直接方向改變指令I樓之 馬達控制步驟可包括.: 藉由在每個具有預定循環之定時中斷信號中,棒 平馬達轉動步數(pcnt)及水平馬達怠轉速值(Pi ,查水 參考水平馬達驅動脈波狀態數值(pstate)與水平馬法來 方向(Pdir),以驅動水平馬達前進或後退; "^動 藉由在每個具有預定循環之定時中斷信號中,I 仰馬達轉動步數(Tcnt)及俯仰馬達怠轉速值(Tidle),貪僻 參考俯仰馬達驅動脈波狀態數值(Tstate)與俯仰馬缝I 方向(T d i r),以驅動俯仰馬達前進或後退; 轉% 馬達控制步驟可包括獨立驅動水平與俯仰馬達, 或連續驅動水平與俯仰馬達。 及/ 水平馬達驅動步驟包括: 在母個水平馬達驅動脈波循環(P c y c 1 e )中,檢查水平 •馬達轉動步數(Pent)與水平馬達怠轉速值(Pidle),以 定至下次脈波之延遲時間,藉此決定在調整水平馬達轉速 時’是否要驅動水平馬達; 參考由水平馬達驅動脈波與水平馬達轉動方向(pd i r ) 分類出之水平馬達驅動脈波狀態數值(Pstate),來輸出一 連串的馬達驅動脈波’以驅動水平馬達前進或後退; 檢查水平馬達驅動脈波狀態數值(Pstate)來找出水平 馬達驅動脈波循環(p c y c 1 e)之終止時間,並在終止時間初V. Description of the invention (4) Whether the analyzed command is a motor speed adjustment command. By designating the target center point detected by the camera as a turning horse, and the direction designation function of the target point, the motor control steps of the building I that can execute the direct direction change instruction may include: By interrupting the signal at each timing with a predetermined cycle In the middle, the number of steps of the rod-level motor (pcnt) and the idle speed of the horizontal motor (Pi, refer to the horizontal motor drive pulse state value (pstate) and horizontal mafar direction (Pdir) to check whether the horizontal motor is driven forward or backward) ; &Quot; ^ Motion: In each timing interruption signal with a predetermined cycle, I the number of steps of the tilt motor (Tcnt) and the value of the idle speed of the pitch motor (Tidle). ) And the pitching direction I (T dir) to drive the pitching motor forward or backward; the% motor control step may include independently driving the horizontal and pitching motors, or continuously driving the horizontal and pitching motors. / / The horizontal motor driving step includes: In the female horizontal motor-driven pulse wave cycle (P cyc 1 e), check the horizontal • motor rotation steps (Pent) and the horizontal motor idle speed value (Pid le), to determine the delay time to the next pulse, thereby determining whether to drive the horizontal motor when adjusting the speed of the horizontal motor; refer to the levels classified by the horizontal motor driving pulse and the direction of rotation of the horizontal motor (pd ir) Motor drive pulse state value (Pstate) to output a series of motor drive pulse waves to drive the horizontal motor forward or backward; check the horizontal motor drive pulse state value (Pstate) to find the horizontal motor drive pulse cycle (pcyc 1) e) the termination time, and at the beginning of the termination time
第8頁 425487 矣、發明說明(5) 始化水平馬達驅動脈波狀態數值(Pstate)與水平馬達怠轉 速值(Pidle) ’更新水平馬達轉動步數(pcnt)並儲存水平 馬達的當時位置(PUst)。 俯仰馬達驅動步驟包括: 在每個俯仰馬達驅動脈波循環(Tcyc 1 e)中,檢查俯仰 馬達轉動步數(Tent)與俯仰馬達怠轉速值(Tidle),以確 定至下次脈波之延遲時間,藉此決定在調整俯仰馬達轉速 時,是否要驅動俯仰馬達; 參考由俯仰馬達驅動脈波與俯仰馬達轉動方向(Td丨r) 分類出之俯仰馬達驅動脈波狀態數值(Tstate),來輸出一( 連串的馬達驅動脈波,以驅動俯仰馬達前進或後退; 檢查俯仰馬達驅動脈波狀態數值(T s t a t e )來找出俯仰 馬達驅動脈波循環(Tcy c 1 e )之終止時間,並在終止時間初 始化俯仰馬達驅動脈波狀態數值(Tstate)與俯仰馬達怠轉 速值(Tidle) ’更新俯仰馬達轉動步數並儲存俯仰 馬達的當時位置(Tlast)。 "為了達成上述目的,本發明之一實施例提供一種控制 水干/俯仰攝影機左/右或上/下轉動蚱裝置,使用一水平 馬^ (X軸向驅動)以左/右轉動、一水平馬達驅動電路、一 俯{卩馬達(y袖向驅動)以上/下轉動,及一俯仰馬達驅動電 路,並且;赉、, 過個別的減速機構來機械結合兩馬達,上述裝 置尚包括: ,時器’用以在每個預定時間中,產生具有規律循 ί<之斷信號來驅動水平馬達與俯仰馬達;Page 8 425487 发明, description of the invention (5) Initialize the horizontal motor drive pulse state value (Pstate) and horizontal motor idle speed value (Pidle) 'Update the horizontal motor rotation steps (pcnt) and store the current position of the horizontal motor ( PUst). The pitch motor drive steps include: In each pitch motor drive pulse wave cycle (Tcyc 1 e), check the pitch motor rotation steps (Tent) and pitch motor idle speed value (Tidle) to determine the delay to the next pulse wave Time to determine whether to drive the pitch motor when adjusting the rotation speed of the pitch motor; refer to the pitch motor drive pulse wave value (Tstate) classified by the pitch motor drive pulse wave and the pitch motor rotation direction (Td 丨 r). Output a (series of motor-driven pulses to drive the pitch motor forward or backward; check the value of the state of the pitch-motor pulse (T state) to find the end time of the pitch-motor-driven pulse cycle (Tcy c 1 e), And at the end time, initialize the pitch motor drive pulse state value (Tstate) and pitch motor idle speed value (Tidle) 'Update the pitch motor rotation steps and store the current position of the pitch motor (Tlast). &Quot; To achieve the above purpose, this An embodiment of the invention provides a device for controlling the left / right or up / down rotation of a grasshopper of a water-drying / tilt camera, using a horizontal horse ^ (X-axis drive ) Rotate left / right, a horizontal motor drive circuit, a pitch {卩 motor (y sleeve drive) up / down rotation, and a pitch motor drive circuit, and; 赉 ,, mechanically combine the two through individual reduction mechanisms A motor, the above-mentioned device further comprises: a timer, which is used to generate an interrupt signal with a regular cycle to drive the horizontal motor and the pitch motor at each predetermined time;
4 254 8 7 五、發明說明(6) 產生:程存裝置(唯讀記憶體)’用以儲存在定時器所 產=的母個中斷信號中,計算馬達轉動步數之一連串馬達 ,並連續驅動水平馬達或俯仰馬達以符合馬達之 轉動方向及預定轉速; 由利:ii;器(圓’用以儲存攝影機控制識別碼,並 由利用攝衫機螢幕中心點及目標中心點而得之 令來計算攝影機轉動方向及轉動 ,曰 胆:之馬達驅動程式以符合定時器中斷信號;、 水平馬達或俯仰馬達時所需之資)料用以儲存主處理器驅動 一第二資料儲存裝置(nvra 執行馬達驅動程式後,冑關水平辱,二儲存在主處理器 之資料; 傻百關水千馬達或俯仰馬達當時位置 埠及:(函“S232),用以提供發送/接收 旱及路心,使主處理器可與外部聯絡。 接收 主處理器可儲存以攝影機詳細轉動 水平與俯仰馬達的轉動距離.旦^二而預設 符合攝影機詳細轉動角度的轉=Ί邊幕虛擬細分出 ^、.,刀之輪影機螢幕中計算轉 :,在 撿測的目標中心可辨識成# /数猎此攝影機螢幕 r往4 M @ , 轉動攝影機的目標點。 二/女·^圖所示】’本發明之裝置包括: =左/右或上/下轉動之攝影機18〇 ; 一用以使攝影機左/古鏟^ 路16〇 ; 右轉動之水平馬達161及其驅動電4 254 8 7 V. Description of the invention (6) Generate: Program memory device (read-only memory) 'is used to store the number of motor rotation steps in a series of motor interrupt signals generated by the timer, and continuously Drive the horizontal motor or pitch motor to meet the motor's rotation direction and predetermined speed; Yuri: ii; device (circle 'is used to store the camera control identification code, and obtained by using the center point of the camera screen and the target center point Calculate the direction and rotation of the camera. The motor driver program is used to meet the timer interrupt signal; the required data for the horizontal motor or the pitch motor is used to store the main processor to drive a second data storage device (nvra execution After the motor driver program, the data is stored in the main processor. Second, the data stored in the main processor or the pitch motor is at the time. The port is: (letter "S232"), which is used to provide sending / receiving drought and road center. Allows the main processor to communicate with the outside. The receiving main processor can store the camera's detailed rotation level and the rotation distance of the pitch motor. Once ^ 2, the preset matches the camera's detailed rotation angle. The degree of rotation = Ί, the screen is subdivided into ^,., And the calculation of the rotation in the screen of the wheel of the knife: can be identified in the center of the target of the measurement: # / 数 hunting the screen of this camera to 4 M @, turn the camera's Target point. Two / female. ^ As shown in the figure] 'The device of the present invention includes: = left / right or up / down rotating camera 18〇; one for making the camera left / old shovel ^ road 16〇; turn right Horizontal motor 161 and its driving power
第10頁 4 2S4 3 7 $、發明說明(7) 一用以使攝影機上/下轉動之俯仰馬達丨7丄及其驅動電 路170 ;及 為使馬達161、171轉速減低,而機械結合馬達161、 1 7 1之水平齒輪1 6 2與俯仰齒輪丨7 2 ^ 此外,本發明之裝置更包括: 一定時器11 0,用以在每個預定時間產生具有規律循 长之中斷信號,來驅動水平馬達161或俯仰馬達171 ; 一唯讀記,體1 20,用以儲存一連串在每個定時器! ! 〇 斷信號中計算每-馬建轉動步數,並控制水平馬達i 6iPage 10 4 2S4 3 7 $, invention description (7) a tilt motor for turning the camera up / down 丨 7 丨 and its driving circuit 170; and in order to reduce the speed of the motors 161, 171, and mechanically combine the motor 161 1 7 1 horizontal gear 1 6 2 and pitch gear 丨 7 2 ^ In addition, the device of the present invention further includes: a timer 11 0, which is used to generate an interrupt signal with a regular cycle at each predetermined time to drive Horizontal motor 161 or pitch motor 171; a read-only note, body 1 20, used to store a series of timers in each! !! 〇 Calculate the number of rotation steps per-ma Jian in the break signal and control the horizontal motor i 6i
Q =俯仰馬達171以符合轉方向及馬達預定轉速之 動程式; V % 一主處理器1 00,用以儲存攝影機控制識別碼、藉由 作=攝影機螢幕中心點與捕捉進攝影機螢幕之目標中心點 ,J特定外部指令,來計算攝影機轉動方向與轉動角度, =執仃儲存於唯讀記憶體12〇之馬達驅動程式,以符合 %态1 1 0中斷信號; 勤lc巫Ϊ Γ,機存取S己憶體1 4 〇,用以儲存主處理器1 0 0驅 動水平馬達1 6 1或俯仰馬達1 7 1所需之資料; 墦別碼I’ Ϊ t t隨巧存取記憶體1 5。,用以儲存與攝影機 1 „卜第二資料,及關於主處理器1 00執行馬達驅 ί佼,水平馬達161或俯仰馬達171當時位置的資料。 KS23 2發用明以之摇裝徂\亦包括一資料收發器130,例如UART或 '、叙送/接收埠及路徑,使主處理器1 〇 〇可 與外部聯絡。Q = Tilt motor 171 in accordance with the direction of rotation and the motor's predetermined rotation speed; V% A main processor 1 00, used to store the camera control identification code, by = center point of the camera screen and the target center captured into the camera screen Point, J specifies an external command to calculate the camera rotation direction and rotation angle, = executes the motor driver program stored in the read-only memory 120, in order to meet the% state 1 1 0 interrupt signal; Qin lc Ϊ Ϊ, machine storage Take S memory 1-4, which is used to store the data required for the main processor 1 0 0 to drive the horizontal motor 16 1 or the pitch motor 1 7 1; 墦 different code I '随 tt casually access the memory 1 5 . It is used to store the second data with camera 1 and the data about the current position of the main processor 100's execution motor drive, the horizontal motor 161 or the pitch motor 171. A data transceiver 130 is included, such as a UART or a serial port / receiver port and path, so that the main processor 1000 can communicate with the outside.
第11 I 4 25 4 8 7 五、發明說明(8)^^^----------- 此時,主由 1 3 0與一外部主:“可獨立執行,並透過資料收發器 主機電腦3 0之指人電腦3 0連接;所以’主處理器可依外部 處理器1 0 0應讀曰?來控制攝影機的運動。在本發明中,主 直接方向改變/八子攝影機控制識別碼,為了執行外部之 轉動角度為基準7主處理器1 0 0儲存有關以攝影機詳細 料;將攝影機罄設之水平與俯仰馬達的轉動距離之資 轉動步數。而θ丄擬細分出符合攝影機詳細轉動角度的 影機ΐ幕中:i::;:達時’主處理器可在被細分之攝 中心可辨識成;動的ΐ:點攝影機營幕檢測的目標 算螢座標是否在螢幕上改變’並計 ^ n目標之已改變座標間的距離。而且,此主機 -电腦30可包括—方向改變判別器(未在圖式中表示),以提 仏攝衫杈轉動指令與對應的攝影機識別碼予主處理器 1 〇0 使攝影機移動與計算結果相同的距離。 每一水平/俯仰驅動馬達及減速裝置皆包括一步進馬 達及一齒輪箱。特別是,該步進馬達轉動丨8。/脈波乘左/ 右24G脈波/秒及上/下8〇脈波/秒,以符合X軸轉動步數左/ 右24 0步及y軸轉動步數上/下8〇步,使得馬達每粆轉動!2 次。此時,齒輪箱以1 / 4 8的比率降低步進馬達的轉動,而 攝影機之驅動扭力變為672g . cm(最大值),使水平/俯仰 攝影機以左/右90。/秒及上/下30。/秒之規律速度轉動, 且上述驅動扭力可調整以符合在已被細分的螢幕上之轉動 步數改變。The 11th I 4 25 4 8 7 V. Description of the invention (8) ^^^ ------------ At this time, the master consists of 1 3 0 and an external master: "It can be executed independently and through data Transceiver host computer 30 refers to human computer 30 connection; so 'the main processor can control the camera's movement according to the external processor 100 should read? In the present invention, the main direct direction change / eight sub-camera control The identification code, in order to execute the external rotation angle as a reference 7 The main processor 1 0 0 stores the details of the camera; the level of the camera and the rotation distance of the pitch motor are the number of rotation steps. In the camera screen where the camera rotates in detail: i ::;: Dash 'the main processor can be identified in the subdivided camera center; moving the camera: the target of the camera's screen to determine whether the screen coordinates are on the screen And change the distance between the changed coordinates of the target. Moreover, the host-computer 30 may include a direction change discriminator (not shown in the figure) to improve the camera rotation instruction and the corresponding Camera identification code to the main processor 1 00 to make the camera move and calculate The same distance. Each pan / tilt drive motor and reduction gear includes a stepper motor and a gearbox. In particular, the stepper motor rotates by 8. 8 / pulse multiplied by left / right 24G pulse / sec and up / Down 80 pulses / second to match the X-axis rotation steps left / right 240 steps and y-axis rotation steps up / down 80 steps, so that the motor rotates every 2 times! At this time, the gearbox starts with The ratio of 1/4 8 reduces the rotation of the stepping motor, and the driving torque of the camera becomes 672 g. Cm (maximum), so that the pan / tilt camera is left / right 90 ° / sec and up / down 30 ° / sec. Rotate at a regular speed, and the driving torque can be adjusted to match the number of rotation steps on the screen that has been subdivided.
第12頁 4 25 五、發明說明(9) ϋ卜,水平/俯仰攝影機18〇之中心點為—驅動攝影機 之參考當開始供電時,水平/俯仰攝影機18〇即轉至參 考點,以,影機接著可依使用者之意圖轉動。 ,此田,攝影機從工薇送出時,攝影機識別碼即具有 初始η η, 0 0 ,然而,此攝影機識別碼可依外部指令任 …由x, g更改為FF ,所有水平/俯仰攝影機ΐδο皆可辨 識一普^集識別碼及一獨特攝影機識別碼,該巨隼識別 © tegng/ 輯,所示】,主機電丄」控制邏 判^备幕上目標座標是否移動之步驟S 3 1 ; 距雜汁;:3影,螢幕之中心座標至目標之移動座標間的 距離轉換成為攝影機之轉位座標(步驟S 3 2、 杳轉: = ? =位座標取代攝影機之當時位置,並檢 疋在攝影機之轉動距離範圍内(步驟S34、 示攝座=在轉動距離内’貝彳更正轉位座標再指 攝牛=該轉位座標在轉動距離内1立即指示 〜很锝動(步驟S36、S37)。 過程上:丨*閱第3圖所不】’係第1 11中主處理器之信號 /俯仰W::方明/2太圖:依攝影機轉動指令來控制水ΐ 的〜實施例包括/ '明控制水平’俯仰攝影機之方法Page 12 4 25 5. Description of the invention (9) For example, the center point of the pan / tilt camera 180 is-the reference for driving the camera. When the power is turned on, the pan / tilt camera 180 will go to the reference point. The machine can then be turned as desired by the user. In this field, when the camera is sent from Gongwei, the camera identification code has the initial η η, 0 0. However, the camera identification code can be changed according to external instructions ... from x, g to FF, all horizontal / tilt cameras ΐδο are A universal set identification code and a unique camera identification code can be identified, the giant identification © tegng / series, shown], the host computer "controls the logic to determine whether the target coordinates on the screen move step S 3 1; distance Juice ;: 3 shadows, the distance from the center coordinate of the screen to the target's moving coordinates is converted into the camera's indexing coordinates (step S 3 2, 杳 turn: =? = Positional coordinates replace the camera's current position, and check the Within the range of the camera's rotation distance (step S34, showing the camera seat = within the rotation distance, 'beijing' corrects the index coordinate and then refers to the camera = the index coordinate within the rotation distance 1 immediately indicates ~ very automatic (steps S36, S37 ). In the process: 丨 * See Figure 3 not]] is the signal of the main processor / tilt in the 11th W :: Fang Ming / 2 Taitu: Control the water puppet according to the camera rotation instructions ~ Examples include / 'Ming Control Level' Tilt Camera
第13頁 42548 7Page 13 42548 7
柄始化馬達及其變. 令以等待接收直接方向之周邊設備,並藉由分析外部指 驟S201〜S204 ); 變指令及馬達速度調整指令(步 若接收到直接方向改㈣ 是否是否停止;藉由接收=心令’則檢查水平/俯仰馬達 狀態下目標之中心點,來當時中心點及兩馬達停止 所計算之方向盘角产來:影機轉動方向與角度;依 用厪來6又疋水平馬達轉動步數(Pent)及俯 仰馬達轉動步數(Tent);控制水平/俯仰馬達之副常式 (subroutine)以符合具有規律循環之定時中斷信號(步驟 S205 〜S208); 若接收到'馬達速度調整指令,則將水平/俯仰馬達之 轉速設定成新值(步驟S2〇9〜S211); 上述等待接收直接方向改變指令包括: 藉由從外部檢查攝影機識別碼,以選擇性接收與每部 攝影機相符合的指令(未在圖式中表示), 分析所接收到的指令(步驟S 2 〇 2 ); 判別已分析之指令是否為直接方向改變指令(步驟 5203) ; 判別已分析之指令是否為馬達速度調整指令(步驟The handle initializes the motor and its changes. Order to wait for the peripheral equipment to receive the direct direction and analyze the external instructions S201 ~ S204); the change command and the motor speed adjustment command (if the direct direction change is received, whether to stop; By receiving = heart command, the center point of the target in the level / tilt motor state is checked, and the center point and the steering wheel angle calculated when the two motors stop are produced: the direction and angle of the camera rotation; use 厪 来 6 and 疋Number of steps of horizontal motor rotation (Pent) and number of steps of pitch motor rotation (Tent); control the subroutine of the level / tilt motor to meet the timing interruption signal with a regular cycle (steps S205 ~ S208); if received ' The motor speed adjustment command sets the rotation speed of the pan / tilt motor to a new value (steps S209 to S211); the above-mentioned direct direction change command waiting to be received includes: by checking the camera identification code from the outside to selectively receive Instructions (not shown in the figure) that are compatible with each camera, analyze the received instructions (step S 2 02); determine whether the analyzed instructions are direct direction changes Command (step 5203); determine whether the analyzed command is a motor speed adjustment command (step
5204) 。 而且,談直接方向改變指令可被方向指定函數執、 以將被攝影機發現之目標的中心點指定為馬達的轉勤订’ 勒目標 上述方法之信號過程’可具有另一實施例,g卩包枯5204). Moreover, the direct direction change instruction can be executed by the direction designation function to specify the center point of the target found by the camera as the motor's commutation order. "The target signal process described above" may have another embodiment, including Withered
第U頁 4 25 48 7Page U 4 25 48 7
五、發明說明(11) 一轉動方向與角度計算步驟 攝影機捕捉之目標的中心·點 角度; 係利用攝影機之中心點及才皮 來計算攝影機之轉動方向與 一馬達控制步驟,係依具有規律循環之定時器 唬驅動水平馬達與俯仰馬達,並在預定轉速及經過瞀: 轉動方向與轉動角度的基準下,轉動攝影機。 # 〇 在本發明之實施例中,轉動角度計算步驟係由兩馬達 及減速裝置所預定之詳細轉動角度,來設定水平與垂直轉 動距離,且為了將在攝影機螢幕中被發現目標之中心點辨 識成攝影機轉動之目標點,而把攝影機螢幕虛擬細分成轉 動步數,以符合攝影機之詳細轉動角度。 【請參閱第4圖所示】,馬達控制步驟可包括: "籍由在每個具有預定循環之定時器中斷信號中,檢查 水T馬達轉動步數(Pent)及其怠轉速值(pidle),以參考 水平馬達驅動脈波狀態數值(Ps tat e)與水平馬達轉動方向 (Pdir) ’來驅動水平馬達前進或後退(步驟“丨了-丨〜 S217~13 ); 籍由在每個具有預定循環之定時器中斯信號中,檢查 俯仰馬達轉動步數(Tent )與俯仰馬達怠轉速值O' i d 1 e ), 以參考俯仰馬達驅動脈波狀態數值(Tstat;e)與俯仰馬達轉 動方向(Tdir),來驅動俯仰馬達前進或後退(步驟S217-21 〜S217-33)。 當定時器中斷信號產生時’水平馬達驅動步驟即被執 行’水平馬達驅動步驟包括下列步驟:V. Description of the invention (11) A rotation direction and angle calculation step The center and point angle of the target captured by the camera; the use of the camera's center point and the skin to calculate the camera's rotation direction and a motor control step, according to a regular cycle The timer drives the horizontal motor and the pitch motor, and rotates the camera at a predetermined speed and a reference of the rotation direction and rotation angle. # 〇 In the embodiment of the present invention, the rotation angle calculation step is to set the horizontal and vertical rotation distances by the detailed rotation angles predetermined by the two motors and the reduction gear, and in order to identify the center point of the target found in the camera screen It becomes the target point of the camera rotation, and the screen of the camera is subdivided into the number of rotation steps to meet the detailed rotation angle of the camera. [Please refer to Figure 4], the motor control step may include: " by checking the number of water T motor rotation steps (Pent) and its idle speed value (pidle) in each timer interrupt signal with a predetermined cycle ), To drive the horizontal motor forward or backward with reference to the horizontal motor drive pulse state value (Ps tat e) and horizontal motor rotation direction (Pdir) '(step "丨 了-丨 ~ S217 ~ 13); In the Sri Lankan signal of a timer with a predetermined cycle, check the number of steps of the pitch motor (Tent) and the idle speed of the pitch motor O 'id 1 e), and refer to the value of the pulse state (Tstat; e) of the pitch motor drive and the pitch motor Turn direction (Tdir) to drive the pitch motor forward or backward (steps S217-21 to S217-33). When the timer interrupt signal is generated, the 'horizontal motor drive step is executed' The horizontal motor drive step includes the following steps:
第15頁 五、發明說明(12) ' ----- 在每一水平馬達驅動脈波循環(Pcycle)中,檢查水平 馬達轉動步數(Pent)及其怠轉速值(pidle),來判斷至下. 次驅動脈波之延遲時間,並藉此判別在調整水平馬達轉 時是否驅動水平馬達(步驟S217-! 〜S217_5及§217_13); 藉由參考水平馬達驅動脈波狀態數值(Pstate)及其轉 動f向(Pdir)而輸岀一連串馬達驅動脈波’以驅動水平馬 達前進或後退(步驟S217-7、S217-8); 藉由彳5¾查水平馬達驅動脈波狀態數值(p s t a t e ),以找 出水平馬達驅動循環的終止時間,並在終止時間初始化水 平馬達‘驅動脈波狀態數值(p s t a t e )及怠轉速值(p i d 1 e )、 更新水平馬達轉動步數(Pent) ’並儲存水平馬達之當時位 置(Plast)(步驟S217-9、S217-11)。 當定時器中斷信號產生時,俯仰馬達驅動步驟即被執 行,俯仰馬達驅動步驟包括下列步驟: 在每一俯仰馬達驅動脈波循環(Tcy c 1 e )中,檢查俯仰 馬達轉動步數(Tent)及怠轉速值(Tidle),來判斷至下次 驅動脈波之延遲時間,並藉此判別在調整俯仰馬達轉速時 是否驅動俯仰馬達(步驟S217-21〜S217-25及S217-33); 藉由參考俯仰馬達驅動脈波狀態數值(T s t a ΐ e)及其轉 動方向(Td i r)而輸出一連串馬達驅動脈波’以驅動俯仰馬 達前進或後退(步驟S217-27、S217-28); 藉由檢查俯仰馬達驅動脈波狀態數值(Tstate) ’以找 出俯仰馬達驅動循環的終止時間,並在終止時間初始化俯 仰馬達驅動脈波狀態數值(T s t a t e )及怠轉速值(T i d 1 e )、Page 15 V. Description of the invention (12) '----- In each horizontal motor driving pulse cycle (Pcycle), check the number of horizontal motor rotation steps (Pent) and its idle speed value (pidle) to determine Go to the next. Delay time of the secondary drive pulse, and use this to determine whether to drive the horizontal motor when adjusting the rotation of the horizontal motor (steps S217-! ~ S217_5 and §217_13); drive the pulse state value (Pstate) by referring to the horizontal motor And its rotation f direction (Pdir) to input a series of motor-driven pulses to drive the horizontal motor forward or backward (steps S217-7, S217-8); check the state of the horizontal motor-driven pulse wave (pstate) by 彳 5¾ To find the end time of the horizontal motor drive cycle, and initialize the horizontal motor's driving pulse state value (pstate) and idle speed value (pid 1 e), update the horizontal motor rotation steps (Pent) 'and save Current position of the horizontal motor (Plast) (steps S217-9, S217-11). When the timer interrupt signal is generated, the pitch motor drive step is executed. The pitch motor drive step includes the following steps: In each pitch motor drive pulse wave cycle (Tcy c 1 e), check the pitch motor rotation steps (Tent). And idle speed value (Tidle), to determine the delay time to the next drive pulse, and to determine whether to drive the pitch motor when adjusting the pitch motor speed (steps S217-21 ~ S217-25 and S217-33); borrow A series of motor-driven pulses are output by referring to the value of the pulse state (T sta ΐ e) and the direction of rotation (Td ir) of the pitch motor to drive the pitch motor forward or backward (steps S217-27, S217-28); Check the state of the pitch motor drive pulse state (Tstate) 'to find the end time of the pitch motor drive cycle, and initialize the pitch motor drive pulse state value (T state) and idle speed value (T id 1 e) at the end time. ,
第16頁Page 16
五、發明說明(13) 更新俯仰馬達轉動步 置(Tlast)(步驟 S217 此時,利用個別 達驅動步驟被執行。 作水平馬達驅動步驟 第5圖係本發明 形範例,其中,兩脈 及馬達驅動脈波。若 P2在tO〜t3區間為範 馬達驅動脈波分類成 脈波循環益包括延遲 波的輸出時則以t 〇、 動之Pcycle期望值, 電腦或主控制單元決 雖然未在圖式中 馬達驅動脈波完全相 第6 ' 7圖顯示 M(xl,yl),攝影機所 則主處理器藉由經劃 (| X2-X1 | )與 y 軸位 螢幕之中心點(0,0 ) 上述計算出位移之距 第8圖顯示出在 具有規律區間的最大 HTent),並儲存俯仰馬達之當 -29、S217-31 )。 2處理使水平馬達驅動步驟與傾斜馬 ^以’本發明可獨立、連續或依序操 與傾斜馬達驅動步驟。 中所定義馬達驅動脈波及其變數之波 波Ρ1、Ρ 2係提供予馬達步數的每極點 馬達順時針轉動,則當脈波信號p i、 例時’ tO、tl、t2、t3係用以將水平 四種狀態。P c y c 1 e表示水平馬達驅動 馬達驅動的變數,而水平馬達驅動脈 11 ' 12、13表示。P c n t顯示出作為驅 而Pent係由一實質控制攝影機之夕卜部 定。 顯示’但是俯仰馬達驅動脈波與水平 同’在此不再敘述。 出’若本發明之攝影機的中心座標為 捕捉之目標的中心座標為T(x2, y2), 分之螢幕來計算兩座標間之χ軸位移 移(丨y 2 - y 1 | );立為使該目標位於 1再移動目標之中心點(χ 2,y 2 )相當於 離。 攝影機可轉動的範圍内,經過細分且 轉動距離,而位於其中心部的矩形區 〇V. Description of the invention (13) Updating the pitch motor rotation step (Tlast) (step S217 At this time, the individual step driving steps are performed. As a horizontal motor driving step Figure 5 is a shape example of the present invention, in which the two pulses and the motor Driving pulse wave. If P2 is in the range of tO ~ t3, the driving pulse wave is classified into pulse wave cycle. When the output of delayed wave includes the output of delayed wave, then t 〇, the expected value of Pcycle. The computer or main control unit is not shown in the diagram. The middle motor-driven pulse wave is completely phased. Figure 6'7 shows M (xl, yl). The main processor of the camera uses the stroke (| X2-X1 |) and the center point of the y-axis screen (0,0). The calculated distance of displacement shown in Figure 8 above shows the maximum HTent in a regular interval, and stores the pitch motors -29, S217-31). 2 process to make the horizontal motor driving step and the tilting horse ^ In the present invention, the tilting motor driving step can be operated independently, continuously or sequentially. The pulse waves P1 and P2 of the motor-driven pulse wave and its variables defined in the figure are provided for each pole of the motor to rotate clockwise. When the pulse signal pi, for example, 'tO, t1, t2, and t3 are used There will be four states. P c y c 1 e represents the variables of the horizontal motor driving motor driving, and the horizontal motor driving pulses 11 ′ 12 and 13 indicate. P c nt appears to be driven by the fact that Pent is controlled by a substantial control camera. "But pitch motor drive pulse is the same as level" is not shown here. Out 'If the center coordinate of the camera of the present invention is the center coordinate of the captured target is T (x2, y2), calculate the x-axis displacement between the two coordinates of the screen (丨 y 2-y 1 |); Making the target at the center point (χ 2, y 2) of the 1-moving target is equivalent to leaving. Within the range where the camera can be rotated, after being subdivided and rotated, it is located in the rectangular area of its center.
第17頁 42548 7Page 17 42548 7
五、發明說明(Η) 域與攝影機取景器螢幕之顯示相去。 最大轉動範圍内左/右或上/下二攝衫機^令心點可在 要的部份。 ’以在螢幕上顯示所想 。.但是’操作 主機電腦控 本發明上述操作與功效之概念將要說明 是以複數個水平/俯仰攝影機水平連接並以— 制為範例來說明。 Ο 首先,依據本發明之水平/俯仰攝影機最獨特的特徵 就疋,一直接方向可尋址功能。假設攝影機之中心點為 M(xl,yl),若目標之座標為T(x2, y2),則主機電腦之方向 改變決定器發現螢幕上的目標,並透過第2圖之信號過程 來計算從Μ到T之間的位移。而且,為了轉動攝影機至 T(x2,y2),主機電腦產生直接方向改變指令予主處理器。 此時,X軸與y軸之驅動器獨立驅動攝影機,以使攝影^可 直接在最短的路徑上轉動。5. Description of the invention (ii) The field is different from the display of the camera viewfinder screen. Left / right or top / bottom two cameras within the maximum rotation range ^ so that the heart can be in the required part. ’To show what you want on the screen. However, the operation and computer control of the present invention will be explained with the concept of the above operations and functions. The horizontal / tilt cameras are connected horizontally and the system is described as an example. 〇 First of all, the most unique feature of the pan / tilt camera according to the present invention is a direct-direction addressable function. Assume that the center point of the camera is M (xl, yl). If the coordinates of the target are T (x2, y2), the host computer's direction change determiner finds the target on the screen and calculates the signal from the signal process in Figure 2. Displacement from M to T. Moreover, in order to rotate the camera to T (x2, y2), the host computer generates a direct direction change instruction to the main processor. At this time, the X-axis and y-axis drivers independently drive the camera so that the camera can directly rotate on the shortest path.
為達到此目的’本發明之水平/俯仰馬達採用步進馬 達’其可精確控制轉動角度=為了符合馬達每秒轉動丨2次 的轉動步數’該步進馬達轉動18。/脈波乘以左/右24〇pps 及上/下8 0pps。而減速裝置包括齒輪箱,可以1/48的比率 降低步進馬達轉速’且攝影機驅動扭力變為672§ · cm(最 大值)。故水平/俯仰攝影機可以90。/秒(左/右)及3〇。/ 秒(上/下)的角速度轉動。特別是,在左/右24〇步數與 0.375° /步數的狀態下,透過減速裝置,水平馬達可使攝 影機在左/右±90°的距離内轉動;同時,在上/下8〇步數 與0 · 3 7 5 ° /步數的狀態下,透過減速裝置,俯仰馬達可使To achieve this, the stepping motor of the present invention uses a step motor, which can precisely control the rotation angle = in order to meet the number of rotation steps of the motor rotating 2 times per second, the stepping motor rotates 18 times. / Pulse multiplied by left / right 24 pps and up / down 80 pps. The speed reducer includes a gear box, which can reduce the speed of the stepper motor by a ratio of 1/48 'and the driving torque of the camera becomes 672§ · cm (maximum value). So the pan / tilt camera can be 90. / Sec (left / right) and 30. Angular speed rotation per second (up / down). In particular, in the state of left / right 24o steps and 0.375 ° / steps, the horizontal motor can rotate the camera within a distance of left / right ± 90 ° through the reduction gear; at the same time, it is up / down 8o. With the number of steps and 0 · 3 7 5 ° / steps, through the reduction device, the pitch motor can
第18頁 4 2548 7 五、發明說明(15) ~ ~ 攝影機在上/下± 30=的距離内轉動。 速定攝影機之轉動方向,先藉由步進馬達與減 的詳細角度,來指定攝影機水平與垂直之轉 ί影機營幕以轉動步數虛擬劃分,使能符 〇攝衫機之洋細轉動角度,如此攝影機螢幕中所發現之中 心點可被辨識為轉動攝影機之目標座標。$…見之中 過—圖:不’控制水平/俯仰馬達之信號處理係透 之吉ϋ通訊,並依外部電腦傳至主處理器100 # mi #二二i :令來執行。此外,藉由主處理器1 0 0提 户、理斑二a 一广n%器11。,控制水平/俯仰馬達啟動之信號 处疋寸益1 1 〇週期產生之中斷信號相符。 數(S2:t ’ ϊίΐ!100勒始化被要求用來驅動馬達之變 數(S201 ),猎由從外部檢查攝影機識別碼, 合各馬達的適當指令(S2(}2),分析所接指卜 Γ 令是否為直接方向改變指令(_)。此 JLΪ指令為一方向指定函數所組成,將目標 達轉動之目標點。如同判別結果,若 點及目標之中心點’主處理器100可 轉動步數加t'Tcnt)(湖、湖)轉動角度,然後設定 如第6 ”示’當發現目標時,則主處理器1〇。以 xl-x2-Pcnt及yl-y2 = Tcn1;來計算轉動步赵 與Tent當作定時器中斷信號。此時,運^然後傳送P如 符號+ /-被傳送Page 18 4 2548 7 V. Description of the invention (15) ~ ~ The camera rotates within a distance of up / down ± 30 =. To quickly determine the direction of the camera's rotation, first specify the horizontal and vertical rotation of the camera through the detailed angle of the stepping motor. The camera screen is divided by the number of rotation steps to enable the fine rotation of the camera. Angle, so that the center point found on the camera screen can be identified as the target coordinate for turning the camera. $… See through—Picture: The signal processing of the control of the pan / tilt motor is not controlled by Ji Ji communication, and is transmitted to the main processor 100 # mi # 二 二 i: order to execute according to an external computer. In addition, the host processor 100 is used to store the data, and the second processor is a wide n% processor 11. The signal that controls the start of the pan / tilt motor is consistent with the interrupt signal generated by the 1 10 cycle. The number (S2: t 'ϊίΐ! 100 is required to drive the variables of the motor (S201), the camera identification code is checked from the outside, and the appropriate instructions for each motor (S2 () 2) are analyzed, and the instructions are analyzed. Whether or not it is a direct direction change instruction (_). This JLΪ instruction is composed of a direction specifying function to reach the target of the rotation. As the result of the judgment, if the point and the center point of the target are 'the main processor 100 can rotate The number of steps plus t'Tcnt) (lake, lake) rotation angle, and then set as shown in "6" when the target is found, then the main processor 10. Calculate with xl-x2-Pcnt and yl-y2 = Tcn1; Turn step Zhao and Tent as the timer interrupt signal. At this time, run ^ and then transmit P such that the symbol +/- is transmitted
第19頁 4 25 4 9 五'發明說明(16) 至定時器中斷信號,當作攝影機在pdir與Tdir上之方向符 號。 如上所述’在設定Pdir、pent、Tdir及Tent時,定時 器中斷信號開始驅動馬達;此時,馬達轉速依據Prate而 定’ Prate對水平/俯仰攝影機而言係被制定為一獨立的指P.19 4 25 4 9 Description of the invention (16) The timer interrupt signal is used as the direction sign of the camera on pdir and Tdir. As mentioned above, “When setting Pdir, pent, Tdir and Tent, the timer interrupt signal starts to drive the motor; at this time, the motor speed is determined according to Prate.” Prate is formulated as an independent indicator for the pan / tilt camera.
而且’為了連續驅動水平馬達或俯仰馬達並轉動攝影 機直到目標中心點位於螢幕中心點,定時器執行一信號處 理來驅動馬達以符合具有規律循環之定時器中斷信號。此 時,每一馬達之轉速係以預設轉速(Prate、Trate)為基準 而定。 馬達驅動信號處理步驟接收一變數以指定水平馬達轉 動方向、一變數以指定步進馬達轉動角度及一變數以從外 部褒置調整攝影機轉速,如此便可轉動水平馬達至想要的 方向。Moreover, in order to continuously drive the horizontal motor or the tilt motor and rotate the camera until the target center point is located at the screen center point, the timer performs a signal processing to drive the motor to meet the timer interrupt signal with a regular cycle. At this time, the speed of each motor is based on the preset speeds (Prate, Trate). The motor drive signal processing step receives a variable to specify the rotation direction of the horizontal motor, a variable to specify the rotation angle of the stepper motor, and a variable to adjust the camera speed from an external setting, so that the horizontal motor can be turned to the desired direction.
如第4圖所示,步驟S217-1藉由檢查轉動步數(Pent) 來決定是否驅動水平馬達。若轉動步數為〇,則主處理器 1 〇 0認定不需要再驅動馬達並停土驅動工作;若轉動步數 不為0 ’則主處理器1 〇 〇驅動馬達直到轉動步數為0止。此 時’即在步驟S217-11馬達驅動脈波輸出終止時,Pcnt的 更新被執行D 然後,在步驟S 2 1 7 - 3及S 2 1 7 - 5 ’藉由在每個水平馬達 驅動脈波循環計算水平馬達怠轉速值,來調整水平馬達轉 速。As shown in FIG. 4, step S217-1 determines whether to drive the horizontal motor by checking the number of rotation steps (Pent). If the number of rotation steps is 0, the main processor 1 0 0 determines that it is no longer necessary to drive the motor and stop the soil driving work; if the number of rotation steps is not 0 ', the main processor 1 0 0 drives the motor until the number of rotation steps is 0 . At this time 'that is, when the motor drive pulse wave output is terminated in step S217-11, the update of Pcnt is performed D. Then, in steps S 2 1 7-3 and S 2 1 7-5' The wave cycle calculates the horizontal motor idle speed value to adjust the horizontal motor speed.
第20頁 4 254 8 7 五'發明說明(π) 步驟S217-7參考由tO、tl、t2、t3所分類之水平馬達 驅動脈波狀態數值(Pstate)及馬達轉動方向,以輸出一連 串脈波信號予水平馬達。該馬達即依據脈波信號被驅動前 進或後退。 步驟S21 7-9更新S2 17-7中所使用之水平馬達驅動脈波 狀態數值(P s t a t e ),並保持其在10及13間之距離;所以, Pstate在每一中斷信號以tO-tl-t2-t3-t0-tl-t2...,故改 變。 ❹ 步驟S21 7-1 1在水平馬達驅動脈波循環(pcyci e)之終 止時間將Pstate初始化成tO,並將Prate覆寫至Pidie以初 始化Pi die。而且,S2 17-11更新pcnt以符合一驅動循環之 終止,然後儲存水平馬達的當時位置(p 1 as t )於非揮發性 隨機存取記憶體中。 在此’ P1 d 1 e之函數計算每一定時器中斷’調整驅動 馬達之循環,並藉此調整馬達轉速。 驅動俯仰馬達之步驟S2 17-21至S2 17-33與驅動水平馬 達之步驟相同,而且可以連接在水平馬達驅動流程二 面或後面。 削 籍由虛擬劃分有規律區間 速地追鞭被捕捉的目標,在該 標的位置’藉此將攝影機直接 蹤目標與使用影像辨識之軟體 度及增加攝影機轉速。 之攝影機螢幕,本發明可快 被劃分之攝影機螢幕查出目 轉向目標,其優點有:使化 處理變得簡單、提高處理^Page 20 4 254 8 7 Five 'invention description (π) Step S217-7 refers to the horizontal motor drive pulse wave state value (Pstate) and motor rotation direction classified by tO, tl, t2, t3 to output a series of pulse waves Signal to horizontal motor. The motor is driven forward or backward based on the pulse signal. Step S21 7-9 updates the horizontal motor drive pulse wave state value (P state) used in S2 17-7 and keeps it at a distance between 10 and 13; therefore, Pstate uses tO-tl- t2-t3-t0-tl-t2 ..., so change. ❹ Step S21 7-1 1 Initialize the Pstate to tO at the end time of the horizontal motor drive pulse cycle (pcyci e), and overwrite Prate to Pidie to initialize the Pi die. Furthermore, S2 17-11 updates pcnt to comply with the termination of a drive cycle, and then stores the current position (p 1 as t) of the horizontal motor in non-volatile random access memory. Here, the function "P1 d 1 e calculates each timer interruption" to adjust the cycle of the driving motor, and thereby adjust the motor speed. Steps S2 17-21 to S2 17-33 for driving the pitch motor are the same as those for driving the horizontal motor, and they can be connected on the two sides or behind the horizontal motor driving process. Clipping is performed by virtually dividing regular intervals, quickly chasing the captured target, and at the position of the target ', the camera directly tracks the target and uses image recognition software and increases the camera speed. Camera screen, the present invention can quickly be divided into screens of the camera to detect the goal and turn to the target, its advantages are: make the process simple, improve the process ^
雖然本發明以上述實施例揭露, 然其並非用以限定本Although the present invention is disclosed in the above embodiments, it is not intended to limit the present invention.
425 4 B 7 五、發明說明(18) 發明,任何熟悉此技藝者,在不脫離本發明之精神及範圍 内,當可作些許之更動與潤飾,因此,本發明之保護範圍 當視申請專利範圍所界定者為準。425 4 B 7 V. Description of the invention (18) The invention, anyone who is familiar with this skill can make some modifications and retouching without departing from the spirit and scope of the invention. Therefore, the scope of protection of the invention should be treated as a patent The scope defined shall prevail.
I 第22頁 4 25 4 8 圊式簡單說明 第 1 圖 係 一 簡 要 方 塊 圖 顯 示 本 發 明 控 制 水 平/俯仰 攝影機 之 裝 置 的 結 構 0 第 2 圖 係, 一 流 程 圖 用 以 說 明 若 一 電 腦 主 機 產生 攝 影 機轉 〔動 指 令 時 其 決 定 罩 元 之 信 號 處 理 〇 第 3 圖 係 一 流 程 圖 ί 用 以 舉 例 第 1 圖 中 主 處 理器 之 信 號處 ‘理 以 說 明 本 發 明 控 制 水 平/俯仰攝影機之方法< 第 4 圖 係 - 流 程 圖 J 用 以 說 明 馬 達 驅 動 副 常 式之 信 號 處理 □ 第 5 圖 係 用 以 說 明 本 發 明 中 馬 達 驅 動 脈 波 及 其已 定 義 變數 ,之 波 形 範 例 〇 第 6 至 8 圖 係 用 以 說 明 已 細 分 出 規 律 間 距 之 攝影 機 螢 幕的 位 置 概 念 及 其 直 接 方 向 改 變 功 能 的 顯 示 範 例 〇 【圖 式 標 號 說 明 ] 30-- 外 部 主 機 電 腦 10 0- 主 處 理 器 110- 定 時 器 120- 唯 讀 記 憶 體 130- 資 料 收 發 器 140- 靜 態 隨 機 存 取 記 憶 體 150- 非 揮 發 性 隨 機 存 取 記 憶 體 160- 水 平 馬 達 驅 動 電 路 161- 水 平 馬 達 162- 水 平 齒 輪 170- — 俯 仰 馬 達 焉區 動 *sfr· 路I Page 22 4 25 4 8 Simple description of the method 1 Figure 1 is a brief block diagram showing the structure of the device for controlling the pan / tilt camera of the present invention 0 Figure 2 is a flowchart for explaining if a computer host generates a camera [The signal processing that determines the mask element when turning the command. Figure 3 is a flowchart. It is used to illustrate the signal processing of the main processor in Figure 1 to illustrate the method of controlling the level / tilt camera of the present invention. Figure 4-Flow chart J is used to explain the signal processing of the motor driving subroutine □ Figure 5 is used to illustrate the motor driving pulse wave and its defined variables in the present invention, and waveform examples are shown in Figures 6 to 8 A display example explaining the concept of the position of the screen of the camera that has been subdivided into regular intervals and its direct orientation change function. 30-- external host computer 10 0- main processor 110- timer 120- read-only memory 130- data transceiver 140- static random access memory 150- non-volatile random access memory 160- horizontal motor drive Circuit 161-horizontal motor 162-horizontal gear 170--pitch motor
第23頁 425487Page 425 487
第24頁Page 24
Claims (1)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019990022940A KR100323809B1 (en) | 1999-06-18 | 1999-06-18 | Method and apparatus for controlling pan/tilt camera |
KR1019990032134A KR100322751B1 (en) | 1999-08-05 | 1999-08-05 | Method for controlling pan/tilt camera |
Publications (1)
Publication Number | Publication Date |
---|---|
TW425487B true TW425487B (en) | 2001-03-11 |
Family
ID=26635479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW089109308A TW425487B (en) | 1999-06-18 | 2000-05-16 | Apparatus and method of controlling pan/tilt camera |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP2001036798A (en) |
DE (1) | DE10029868A1 (en) |
GB (1) | GB2351162B (en) |
TW (1) | TW425487B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI638567B (en) * | 2016-03-01 | 2018-10-11 | 瑞典商安訊士有限公司 | A method and device for controlling a camera capable of pan and tilt control |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100546396C (en) | 2003-02-21 | 2009-09-30 | 大塚电子株式会社 | Assess the measuring system of mobile image displaying quality |
EP2038993A2 (en) * | 2006-07-10 | 2009-03-25 | Seiko Epson Corporation | Electric motor, drive system employing multiple electric motors, and method for controlling the same |
JP5591006B2 (en) * | 2010-07-26 | 2014-09-17 | キヤノン株式会社 | Control device for automatic tracking camera system and automatic tracking camera system having the same |
CN111416935B (en) * | 2020-03-17 | 2021-10-19 | 维沃移动通信有限公司 | Shooting method and electronic equipment |
CN112636647B (en) * | 2020-12-29 | 2024-01-09 | 视田科技(天津)有限公司 | Motor accurate control method and device for enlarging projection movement range |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5517300A (en) * | 1990-05-31 | 1996-05-14 | Parkervision, Inc. | Remote controlled tracking system for tracking a remote control unit and positioning and operating a camera |
CA2062620C (en) * | 1991-07-31 | 1998-10-06 | Robert Paff | Surveillance apparatus with enhanced control of camera and lens assembly |
US5463432A (en) * | 1993-05-24 | 1995-10-31 | Kahn; Philip | Miniature pan/tilt tracking mount |
GB2289144B (en) * | 1994-04-30 | 1998-05-13 | Robert David Briars | Security and/or surveillance control system |
US5835140A (en) * | 1994-06-27 | 1998-11-10 | Matsushita Electric Industrial Co., Ltd. | Remote-control method and apparatus for rotating image device |
-
2000
- 2000-05-16 TW TW089109308A patent/TW425487B/en not_active IP Right Cessation
- 2000-05-25 GB GB0012824A patent/GB2351162B/en not_active Expired - Fee Related
- 2000-05-30 JP JP2000161241A patent/JP2001036798A/en active Pending
- 2000-06-16 DE DE10029868A patent/DE10029868A1/en not_active Ceased
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI638567B (en) * | 2016-03-01 | 2018-10-11 | 瑞典商安訊士有限公司 | A method and device for controlling a camera capable of pan and tilt control |
Also Published As
Publication number | Publication date |
---|---|
GB0012824D0 (en) | 2000-07-19 |
DE10029868A1 (en) | 2000-12-28 |
JP2001036798A (en) | 2001-02-09 |
GB2351162B (en) | 2002-02-13 |
GB2351162A (en) | 2000-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018223469A1 (en) | Dynamic projection device and operation method thereof | |
WO2018072717A1 (en) | Photography composition method and device thereof, movable object, and computer readable storage medium | |
US11748968B2 (en) | Target tracking method and system, readable storage medium, and mobile platform | |
WO2017206072A1 (en) | Pan-tilt control method and apparatus, and pan-tilt | |
US11504624B2 (en) | Method and apparatus for controlling movement of virtual object in augmented reality, and terminal | |
WO2019128109A1 (en) | Face tracking based dynamic projection method, device and electronic equipment | |
US10866492B2 (en) | Method and system for controlling tracking photographing of stabilizer | |
CN104135613A (en) | Image shooting method and system | |
TW425487B (en) | Apparatus and method of controlling pan/tilt camera | |
WO2015103835A1 (en) | Method and device for controlling azimuth of pan/tilt camera device | |
WO2020051831A1 (en) | Control method of handheld gimbal, handheld gimbal, and handheld device | |
WO2019134117A1 (en) | Pan-tilt control method, pan-tilt and machine readable storage medium | |
TWI603626B (en) | Speaker apparatus, control method thereof, and playing control system | |
US20230221721A1 (en) | An unmanned autonomous vehicle and method for controlling the same | |
JPH10294890A (en) | Automatic/manual photographic camera system | |
CN113873167A (en) | Control method, system and equipment for panoramic shooting and display of clothes | |
CN107925724B (en) | Technique for supporting photographing in device having camera and device thereof | |
US11228717B2 (en) | Control method and electronic device for capturing images with multiple lens | |
TW201917294A (en) | Electronic fan and method for controlling the electronic fan | |
KR20220111821A (en) | Control method of electronic device based on augmented reality display | |
JP2002344796A (en) | System and method for remote image centering | |
TWI772830B (en) | System and method for image stabilizing panning shot | |
US10904500B2 (en) | Information processing apparatus and information processing method | |
US9860480B2 (en) | Method for processing information and electronic device | |
JP4723817B2 (en) | Imaging device with moving mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent | ||
MM4A | Annulment or lapse of patent due to non-payment of fees |