TW201211671A - Projector and method for regulating trapezoidal distortion of projecting images - Google Patents

Projector and method for regulating trapezoidal distortion of projecting images Download PDF

Info

Publication number
TW201211671A
TW201211671A TW99130947A TW99130947A TW201211671A TW 201211671 A TW201211671 A TW 201211671A TW 99130947 A TW99130947 A TW 99130947A TW 99130947 A TW99130947 A TW 99130947A TW 201211671 A TW201211671 A TW 201211671A
Authority
TW
Taiwan
Prior art keywords
trapezoidal
difference
image
column
line
Prior art date
Application number
TW99130947A
Other languages
Chinese (zh)
Other versions
TWI477881B (en
Inventor
Guang-Jian Wang
Original Assignee
Hon Hai Prec Ind Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW099130947A priority Critical patent/TWI477881B/en
Publication of TW201211671A publication Critical patent/TW201211671A/en
Application granted granted Critical
Publication of TWI477881B publication Critical patent/TWI477881B/en

Links

Landscapes

  • Transforming Electric Information Into Light Information (AREA)
  • Projection Apparatus (AREA)

Abstract

The present invention provides a projector and a method for regulating trapezoidal distortion of projection images. The projector includes a projection lens, a driving unit, an image capturing unit, and a trapezoid regulating unit. The trapezoid regulating unit includes an initialization module, a trapezoid line regulating module, and a trapezoid low regulating module. The projector can automatically regulate the trapezoidal distortion of a projection image when the projection image is projected to a target area, so as to obtain an optimum projection effects of the projector.

Description

201211671 六、發明說明: [0001] 【發明所屬之技術領域】 本發明涉及一種光學設備及其 圖像失真校正方法 係關於一種投影儀及其梯形失真校正方法 【先前技術】 ’尤其 [0002] Ο 當使用投影儀將圖像畫面投射到投影 找* (例如替墓1> 踏面)上顯科,往往由於投影儀與投純域 或 置關係使得顯示於投影區域上之圖德 、位 叫1豕置面產生梯形 。通常’使用者藉由手動調節投影儀與投影區域:、 位置來校正梯形失真,例如藉由操作投影儀上之 對 失 不 行梯形失真魅,或者使用遙控器遠料控完成t進 真校正。這種手浦作㈣校正._失真之方式相對 方便,而且不能保證完全消除梯形失真現專從而盔、·、 能獲得最佳之畫面投影效果。 ’’、、决 【發明内容】201211671 VI. Description of the Invention: [0001] The present invention relates to an optical device and an image distortion correction method thereof relating to a projector and a trapezoidal distortion correction method thereof [Prior Art] 'Special [0002] Ο When using a projector to project an image onto a projection to find a * (for example, a tomb 1 > tread), the map is displayed on the projection area due to the relationship between the projector and the pure field. The surface creates a trapezoid. Usually, the user corrects the trapezoidal distortion by manually adjusting the projector and the projection area: position, for example, by operating the projector on the trapezoidal distortion, or using the remote control to complete the t-correction. This kind of hand-pull (4) correction. _ distortion is relatively convenient, and can not guarantee the complete elimination of keystone distortion, and now the helmet, ·, can get the best picture projection effect. ‘’, 决 决 【Contents】

圃冑於以上内有必要提供一種投影儀及其梯形失真校 正方法,能夠對投影儀於畫面投影過程中產生之梯形2 真進行自動校正,以便獲得最佳晝面之投影效果。〆 [0004]所述之投影儀包括投射鏡頭、驅動單元、儲存單元、攝 像單元及梯形校正單元。該梯形校正單元包括:初妗化 模組,用於從儲存單元内讀取一幅内白外黑之正方形圖 片,及控制投射鏡頭於所述投射區域内投射該内白外黑 之正方形圖片;行校正模組,用於控制投射鏡頭於每一 梯形行校正等級下向投射區域投射正方形圖片,藉由攝 像單元於每一梯形行校正等級下從投射區域内攝取影像 099130947 表單編號A0101 第3頁/共20頁 0992054263-0 201211671 ,及藉由比較每一幅影像之每一行白色圖元點之開始位 置來對梯形失真進行梯形行校正;列校正模組,用於用 於控制投射鏡頭於每一梯形列校正等級下向投射區域投 射正方形圖片,藉由攝像單元於每一梯形列校正等級下 從投射區域内攝取影像,及藉由比較每一幅影像之每一 列白色圖元點之開始位置來對梯形失真進行梯形列校正 0 [0005] 所述之投影儀的梯形校正方法包括步驟:從儲存單元内 讀取一幅内白外黑之正方形圖片,並控制投射鏡頭於使 用者選定之投射區域内投射該内白外黑之正方形圖片; 控制投射鏡頭於每一梯形行校正等級下向投射區域投射 正方形圖月;藉由攝像單元於每一梯形行校正等級下從 投射區域内攝取影像;藉由比較每一幅影像之每一行白 色圖元點之開始位置來對梯形失真進行梯形行校正;控 制投射鏡頭於每一梯形列校正等級下向投射區域投射正 方形圖片;藉由攝像單元於每一梯形列校正等級下從投 射區域内攝取影像;藉由比較每一幅影像之每一列白色 圖元點之開始位置來對梯形失真進行梯形列校正。 [0006] 相較於習知技術,本發明所述之投影儀及其梯形失真校 正方法能夠對投影儀於畫面投影過程中產生之梯形失真 進行自動校正,以便獲得最佳晝面之投影效果。 【實施方式】 [0007] 如圖1所示,係本發明投影儀100較佳實施例之架構圖。 於本實施例中,該投影儀100包括梯形校正單元1、投射 鏡頭2、驅動單元3、攝像單元4、儲存單元5及微處理器6 099130947 表單編號A0101 第4頁/共20頁 0992054263-0 201211671 。當投影儀100藉由投射鏡頭2投射圖像畫面(例如圖2八 所示之正方形圖片)到投影區域(例如螢幕或牆面)上 時,往往由於投影儀與投影區域之相對位置關係使得 顯示於投影區域上之圖像晝面會產生梯形失真(例如圖 託所示之梯形圖片)。所述之梯形校正單元1用於對投射 鏡頭2於晝面投影過程中產生之梯形失真進行自動校正, 例如將圖2B所示之梯形圖片校正還原為2A所示之正方形 圖片,以便獲得最佳畫面之投影效果。 0 [〇〇〇8]所述之投射鏡頭2是指一種具有校正梯形失真功能之光學 控制鏡頭,能夠對梯形失真圖像(例如圖肫所示之梯形 圖片)進行梯形失真校正,其;包括梯形行校正及梯形列 权正。於本實施例中,投射鏡頭,2之‘形行校正及列校正 均包括10至+ 10共20個校正等級’例如-]_〇至_9為第一 等級、-9至-8為第二等級、….、9至1〇為第二十等級。 其中’最小校正等級為第一等級.,最大校正等級為第二 十等級。 :* 〇 [漏]所述之驅動單每I蠢^-輕驅動馬達,其用於控制投射鏡頭 2於校正梯形等級範圍内移動來調節投射鏡頭2之梯形校 正等級’從而自動對投射鏡頭2投射於投影區域内圖像畫 面產生之梯形失真進行校正。 [0010] 所述之攝像單元4為一種具有攝像功能之攝像裝置,例如 攝像頭。該攝像單元4用於從投射區域内之投影晝面攝取 影像,並將該影像發送給梯形校正單元1進行梯形失真校 正0 099130947 表單編號A0101 第5頁/共20頁 0992054263-0 201211671 [0011] [0012] [0013] 所迷之镏存單元5為 己憶體(ρι_ Memory)或者為外部儲存卡。該铸存單一 投射於投影區域内之固定形状图像, 用於儲存所需 头I括但不限於 正方形圖片、矩形圖片、菱形圖片或 、’ U闺片。於太眘 施例中’以正方形圖片为例进行说明, ^ 通正方形圖片係 為一幅内白外黑,例如圖2 A所示之正方形圖片 ’、 所述之梯形校正單元1包括初始化模組〜 行才父正模纟且1 ? 及列校正模組13。本發明所稱之模組可為由多個電子元 器件構成之硬體電路,也可為由—系列計算指人纟成7^ 電腦程式程式段。於未實施例申,所述之模組a 夠被微處理器6所執行並且能夠完成固定功能之^ 段,其儲存於所述之儲存單元5中。 所述之初始化模組11用於於投影儀100加電開機時藉由驅 動單元3啟動投射鏡頭2將梯形行校正等級移動至最小行 校正等級,或者將梯形列校正等級移動至最小列校正等 級之位置’例如行校在等級[-10至-9 ]處,或者列校正等 級[-10至-9]處。該初始化模組11還用於從儲存單元5内 讀取一幅内白外黑之正方形圖片,及控制投射鏡頭2於使 用者選定之投射區域内投射該正方形圖片。 [〇〇14] 所述之行校正模組12用於控制投射鏡頭2於每一梯形行校 正等級下向投射區域内投射正方形圖片,藉由攝像單元4 於每一梯形行校正等級下從投射區域内攝取影像,及藉 由比較每一幅影像之每一行白色圖元點之開始位置來對 梯形失真進行梯形行校正。於本實施例中,所述之影像 均是由黑色圖元點和白色圖元點組成之内白外黑影像’ 099130947 表單編號A0101 第6頁/共20頁 0992054263-0 201211671 其中黑色圖元點之RGB值0-50,白色圖元點之RGB值 5〇、255。於正常室内光線下,當黑色圖元點之RGB值高 於5〇時,人眼就不宜分辨出影像之黑色圖元點,此時圖 元點之RGB值就認為是白色圖元點之開始位置,例如圖2B 所示之PI、P2、P3、…Pn點。其具體之梯形行校正方 法,請參照圖3所示說明。 [0015] 所述之列校正模組13用於控制投射鏡頭2於每一梯形列校 正等級下向投射區域内投射正方形圖片’藉由攝像單元4 於每一梯形列校正等級下從投射區域内攝取影像,及藉 由比較每一幅影像之每一列白色圖元點之開始位置來對 梯形失真進行梯形列校正。其具體之梯形列校正方法, 請參照圖4所示說明。 ,一 :: [0016] 如圖3所示,係本發明投影儀梯形失真之梯形行校正方法 較佳實施例之流程圖。於本實施例中,該梯形行校正方 法能夠自動對投射鏡頭2於畫面投影過程中產生之梯形失 真進行梯形行校正。 w,: [0017] 步驟S30,初始化模組11從儲存單元5内讀取—幅内白外 黑之正方形圖片(例如圖2A所示之正方形圖片),並藉 由投射鏡頭2於使用者選定之投射區域内投射該内白外累 之正方形圖片’此時投射鏡頭2投射出之正方形圖片 生梯形失真,例如圖2B所示之梯形圖片。 [0018]步驟S31,初始化模組11藉由驅動單元3驅動投射鏡頭2將 梯形行校正等級移動至最小行校正等級,例如行校正等 級[-10至-9]處。 099130947 表單編號A0101 第7頁/共20頁 〇992〇54263-〇 201211671 [0019] 步驟S32,行校正模組12藉由攝像單元4從投射區域攝取 第一影像,並將該第一影像之每一行白色圖元點之開始 位置(即,第一影像之每一行首先出現白色圖元點之RGB 值,例如圖2B戶斤示之PI、P2、P3、".Pn點之RGB值)放 入第一行陣列。 [0020] 步驟S33,行校正模組12於第一行陣列中找出白色圖元點 之開始位置最大值與最小值,並將最大值減去最小值計 算出該最大值與最小值之第一差值。 [0021] 步驟S34,行校正模組12控制驅動單元3驅動投射鏡頭2將 梯形行校正等級增加一個行校正等級,例如將梯形行校 正等級移動至行校正等級[-9至-8]處。 [0022] 步驟S35,行校正模組12藉由攝像單元4從投射區域内攝 取第二影像(即,第二影像之每一行首先出現白色圖元 點之RGB值,例如圖2B所示之PI、P2、P3、“.Pn點之 RGB值),並將該第二影像每一行白色圖元點之開始位置 放入第二行陣列。 [0023] 步驟S36,行校正模組12於第二行陣列中找出白色圖元點 之開始位置最大值與最小值,並將最大值減去最小值計 算出該最大值與最小值之第二差值。 [0024] 步驟S37,行校正模組12判斷第二差值是否大於第一差值 。若第二差值大於第一差值,步驟S38,行校正模組12將 第二差值作為第一差值儲存於儲存單元5中,而後執行步 驟S34。若第二差值小於第一差值,步驟S39,行校正模 組1 2控制驅動單元3驅動投射鏡頭2將梯形行校正等級回 099130947 表單編號A0101 第8頁/共20頁 0992054263-0 201211671 [0025] [0026]In the above, it is necessary to provide a projector and its trapezoidal distortion correction method, which can automatically correct the trapezoidal 2 generated by the projector during the screen projection process, so as to obtain the best projection effect. The projector according to [0004] includes a projection lens, a driving unit, a storage unit, a photographing unit, and a trapezoidal correction unit. The trapezoidal correction unit comprises: a preliminary decoding module, configured to read a square image of white and black outside from the storage unit, and control the projection lens to project the square image of the inner white and outer black in the projection area; The line correction module is configured to control the projection lens to project a square picture to the projection area at each trapezoidal line correction level, and the image is taken from the projection area by the camera unit at each trapezoidal line correction level. 099130947 Form No. A0101 Page 3 / Total 20 pages 0992054263-0 201211671, and trapezoidal line correction of trapezoidal distortion by comparing the starting position of each white line point of each image; column correction module for controlling the projection lens A square picture is projected onto the projection area under a trapezoidal column correction level, and the image is taken from the projection area by the camera unit at each trapezoidal column correction level, and by comparing the start position of each column of the white element point of each image To perform trapezoidal column correction on trapezoidal distortion 0 [0005] The ladder correction method of the projector includes the steps of: reading from a storage unit a square image of white and black outside the frame, and controlling the projection lens to project a square image of the inner white and black in the projection area selected by the user; controlling the projection lens to project a square moon to the projection area at each trapezoidal line correction level; Acquiring images from the projection area by the camera unit at each trapezoidal line correction level; trapezoidal line correction of trapezoidal distortion by comparing the start positions of each line of white element points of each image; controlling the projection lens at each Projecting a square image to the projection area under a trapezoidal column correction level; capturing an image from the projection area by the camera unit at each trapezoidal column correction level; by comparing the start position of each column of white element points of each image Trapezoidal column correction for keystone distortion. Compared with the prior art, the projector and the trapezoidal distortion correction method of the invention can automatically correct the trapezoidal distortion generated by the projector during the screen projection process, so as to obtain the optimal projection effect of the surface. [Embodiment] FIG. 1 is a block diagram of a preferred embodiment of a projector 100 of the present invention. In the embodiment, the projector 100 includes a trapezoidal correction unit 1, a projection lens 2, a driving unit 3, an imaging unit 4, a storage unit 5, and a microprocessor. 6 099130947 Form No. A0101 Page 4 / Total 20 Page 0992054263-0 201211671. When the projector 100 projects an image image (for example, a square picture shown in FIG. 2) onto the projection area (for example, a screen or a wall surface) by the projection lens 2, the display is often caused by the relative positional relationship between the projector and the projection area. The image plane on the projection area produces trapezoidal distortion (for example, the trapezoidal picture shown in Figure). The trapezoidal correction unit 1 is used for automatically correcting trapezoidal distortion generated during projection of the projection lens 2, for example, reducing the trapezoidal image correction shown in FIG. 2B to a square image as shown in FIG. 2A for optimal use. The projection effect of the picture. 0 [〇〇〇8] The projection lens 2 is an optical control lens with a correction keystone function capable of performing keystone correction on a trapezoidal distortion image (for example, a trapezoidal picture shown in FIG. Trapezoidal line correction and trapezoidal column weighting. In the present embodiment, the projection lens, 2's line correction and column correction include 10 to + 10 total 20 correction levels 'for example -] _ 〇 to _9 for the first level, -9 to -8 for the first The second level, ...., 9 to 1 is the twentieth level. Where the 'minimum correction level is the first level. The maximum correction level is the twentieth level. :* 〇[Leak] The driving list is an I-stap-light drive motor for controlling the projection lens 2 to move within the range of the corrected trapezoidal level to adjust the trapezoidal correction level of the projection lens 2 to automatically project the projection lens 2 The trapezoidal distortion generated by the image projected in the projection area is corrected. [0010] The imaging unit 4 is an imaging device having an imaging function, such as a camera. The camera unit 4 is configured to take an image from a projection plane in the projection area, and send the image to the trapezoid correction unit 1 for keystone correction. 0 099130947 Form No. A0101 Page 5 / Total 20 Page 0992054263-0 201211671 [0011] [0013] The cache unit 5 is a memory (ρι_Memory) or an external memory card. The deposit is a fixed shape image projected onto the projection area for storing the desired headers including but not limited to square images, rectangular images, diamond images, or 'U闺 slices. In the case of Yu Tai Shen, 'the square picture is taken as an example. ^ The square picture is a black and white, such as the square picture shown in Figure 2A. The trapezoidal correction unit 1 includes an initialization module. ~ The line is just the parent and the ?? and the column correction module 13. The module referred to in the present invention may be a hardware circuit composed of a plurality of electronic components, or may be a computer program segment by a series of calculations. In the non-embodiment, the module a is executed by the microprocessor 6 and can complete the fixed function, and is stored in the storage unit 5. The initialization module 11 is configured to move the trapezoidal line correction level to the minimum line correction level by the driving unit 3 when the projector 100 is powered on, or to move the trapezoidal column correction level to the minimum column correction level. The position 'for example, the line is at the level [-10 to -9], or the column correction level [-10 to -9]. The initialization module 11 is further configured to read a square image of white and black outside from the storage unit 5, and control the projection lens 2 to project the square image in a projection area selected by the user. [14] The line correction module 12 is configured to control the projection lens 2 to project a square picture into the projection area at each trapezoidal line correction level, and project from the projection unit 4 at each trapezoidal line correction level. The image is taken in the area, and trapezoidal line correction is performed on the trapezoidal distortion by comparing the start positions of the white element points of each line of each image. In this embodiment, the images are black and white images composed of black primitive points and white primitive points. 099130947 Form No. A0101 Page 6 / Total 20 Pages 0992054263-0 201211671 Where Black Feature Points The RGB value is 0-50, and the RGB values of the white primitive points are 5〇, 255. Under normal indoor light, when the RGB value of the black pixel point is higher than 5〇, the human eye should not distinguish the black pixel point of the image. At this time, the RGB value of the primitive point is considered to be the beginning of the white element point. The position, such as the PI, P2, P3, ... Pn points shown in Figure 2B. For the specific trapezoidal line correction method, please refer to the description shown in Figure 3. [0015] The column correction module 13 is configured to control the projection lens 2 to project a square picture into the projection area at each trapezoidal column correction level. The image capturing unit 4 is within the projection area at each trapezoidal column correction level. The image is taken and the trapezoidal distortion is corrected by trapping the start position of each column of white pixels in each image. For the specific trapezoidal column correction method, please refer to FIG. [0016] As shown in FIG. 3, it is a flow chart of a preferred embodiment of the trapezoidal line correction method for the trapezoidal distortion of the projector of the present invention. In the present embodiment, the trapezoidal line correction method can automatically perform trapezoidal line correction on the trapezoidal distortion generated by the projection lens 2 during the projection of the screen. w,: [0017] Step S30, the initialization module 11 reads from the storage unit 5 a square image of white and black outside the frame (for example, a square picture shown in FIG. 2A), and is selected by the user by the projection lens 2. The square image of the inner white and white is projected in the projection area. At this time, the square image projected by the projection lens 2 is trapezoidal distortion, for example, the trapezoidal picture shown in FIG. 2B. [0018] In step S31, the initialization module 11 drives the projection lens 2 by the driving unit 3 to move the trapezoidal line correction level to the minimum line correction level, for example, the line correction level [-10 to -9]. 099130947 Form No. A0101 Page 7 / Total 20 pages 〇992〇54263-〇201211671 [0019] Step S32, the line correction module 12 captures the first image from the projection area by the imaging unit 4, and each of the first images The starting position of a line of white primitive points (ie, the RGB value of the white element point first appears in each line of the first image, for example, the RGB values of the PI, P2, P3, ".Pn points shown in Figure 2B) Enter the first row of arrays. [0020] Step S33, the row correction module 12 finds the maximum value and the minimum value of the starting position of the white primitive point in the first row array, and subtracts the maximum value from the maximum value to calculate the maximum value and the minimum value. A difference. [0021] In step S34, the line correction module 12 controls the driving unit 3 to drive the projection lens 2 to increase the trapezoidal line correction level by one line correction level, for example, to move the trapezoidal line correction level to the line correction level [-9 to -8]. [0022] Step S35, the line correction module 12 captures the second image from the projection area by the camera unit 4 (that is, the RGB value of the white element point first appears in each line of the second image, for example, the PI shown in FIG. 2B. , P2, P3, “RGB value of .Pn point”, and put the starting position of each row of white primitive points of the second image into the second row array. [0023] Step S36, the row correction module 12 is in the second row. The maximum value and the minimum value of the starting position of the white primitive point are found in the row array, and the maximum value is subtracted from the minimum value to calculate the second difference between the maximum value and the minimum value. [0024] Step S37, the line correction module Determining whether the second difference is greater than the first difference. If the second difference is greater than the first difference, in step S38, the line correction module 12 stores the second difference as the first difference in the storage unit 5, and then Step S34 is performed. If the second difference is smaller than the first difference, in step S39, the line correction module 12 controls the driving unit 3 to drive the projection lens 2 to return the trapezoidal line correction level to 099130947. Form number A0101 Page 8 / Total 20 pages 0992054263 -0 201211671 [0025] [0026]

[0027] [0028] Ο 退一個行校正等級,並將此時之行校正等級作為最佳行 校正等級。 如圖4所示,係本發明投影儀梯形失真之梯形列校正方法 較佳實施例之流程圖。於本實施例中,該梯形列校正方 法能夠自動對投射鏡頭2於晝面投影過程中產生之梯形失 真進行梯形列校正。 步驟S40,初始化模組11從儲存單元5内讀取一幅内白外 黑之正方形圖片(例如圖2Α所示之正方形圖片),並藉 由投射鏡頭2於使用者選定之投射區域内投射該内白外黑 之正方形圖片,此時投射鏡頭2投射出之正方形圖片會產 生梯形失真,例如圖2Β所示之梯形圖片。 步驟S41,初始化模組11藉由驅動單元3驅動投射鏡頭2將 梯形列校正等級移動至最小列校正等級,例如列校正等 級[_10至-9]處。 步驟S42,列校正模組13藉由攝像單元4從投射區域内攝 取第一影像,並將該第一影像之每一列白色圖元點之開 始位置(即,第二影像之每一行首先出現白色圖元點之 RGB值,例如圖2Β所示之LI、L2 ' L3、".Ln黑占之RGB值 )放入第一列陣列。步驟S43,列校正模組13於第一列陣 列中找出白色圖元點之開始位置最大值與最小值,並將 最大值減去最小值計算出該最大值與最小值之第一差值 〇 步驟S44,列校正模組13控制驅動單元3驅動投射鏡頭2將 梯形列校正等級增加一個列校正等級,例如將梯形列校 099130947 表單編號A0101 第9頁/共20頁 0992054263-0 [0029] 201211671 正等級移動至列校正等級[-9至-8]處。步驟S45,列校 正模組13藉由攝像單元4從投射區域内攝取第二影像,並 將該第二影像每一列白色圖元點之開始位置(即,第二 影像之每一行首先出現白色圖元點之RGB值,例如圖2B所 示之LI 、L2 、L3 、黑占之RGB值)放人第三歹'JP車歹。 步驟S46,列校正模組13於第二列陣列中找出白色圖元點 之開始位置最大值與最小值,並將最大值減去最小值計 算出該最大值與最小值之第二差值。 [0030] 步驟S47,列校正模組13判斷第二差值是否大於第一差值 。若第二差值大於第一差值,步驟S48,列校正模組13將 第二差值作為第一差值儲存於儲存單元5中,而後執行步 驟S44。若第二差值小於第一差值,步驟S49,列校正模 組13控制驅動單元3驅動投射鏡頭2將梯形列校正等級回 退一個列校正等級,並將此時之列校正等級作為最佳列 校正等級。 [0031] 以上所述僅為本發明之較佳實施例而已,且已達廣泛之 使用功效,凡其他未脫離本發明所揭示之精神下所完成 之均等變化或修飾,均應包含於下述申請專利範圍内。 【圖式簡單說明】 [0032] 圖1係本發明投影儀較佳實施例之架構圖。 [0033] 圖2係為投影儀於投影區域上之投射畫面時產生梯形失真 之示意圖。 [0034] 圖3係本發明投影儀的梯形失真校正之梯形行校正方法較 佳實施例之流程圖。 099130947 表單編號A0101 第10頁/共20頁 0992054263-0 201211671 [0035] 圖4係本發明投影儀的梯形失真校正之梯形列校正方法較 佳實施例之流程圖。 【主要元件符號說明】 [0036] 投影儀100 [0037] 梯形校正單元 [0038] 初始化模組 11 [0039] 行校正模組 12 [0040] 列校正模組 13 [0041] 投射鏡頭 2 [0042] 驅動單元 3 [0043] 攝像單元 4 [0044] 儲存單元 5 [0045] 微處理器 6 v.. 〇 Ο 099130947 表單編號Α0101 第11頁/共20頁 0992054263-0[0028] 退 Retreat a line correction level and use the line correction level at this time as the best line correction level. As shown in Fig. 4, it is a flow chart of a preferred embodiment of the trapezoidal column correction method for the trapezoidal distortion of the projector of the present invention. In the present embodiment, the trapezoidal column correction method can automatically perform trapezoidal column correction on the trapezoidal distortion generated by the projection lens 2 during the projection of the facet. In step S40, the initialization module 11 reads a square image of the inner white and black (for example, the square image shown in FIG. 2A) from the storage unit 5, and projects the projection lens 2 into the projection area selected by the user. In the white and black square picture, the square picture projected by the projection lens 2 will produce trapezoidal distortion, such as the trapezoidal picture shown in FIG. In step S41, the initialization module 11 drives the projection lens 2 by the drive unit 3 to move the trapezoidal column correction level to the minimum column correction level, for example, the column correction level [_10 to -9]. In step S42, the column correction module 13 captures the first image from the projection area by the imaging unit 4, and starts the position of the white pixel point of each column of the first image (that is, each line of the second image first appears white). The RGB values of the primitive points, such as LI, L2 'L3, ".Ln black RGB values shown in Figure 2, are placed in the first column array. Step S43, the column correction module 13 finds the maximum value and the minimum value of the starting position of the white primitive point in the first column array, and subtracts the minimum value from the maximum value to calculate the first difference between the maximum value and the minimum value. In step S44, the column correction module 13 controls the driving unit 3 to drive the projection lens 2 to increase the trapezoidal column correction level by one column correction level, for example, the trapezoidal column 099130947, the form number A0101, the 9th page, the total 20 pages, 0992054263-0 [0029] 201211671 Positive level moves to the column correction level [-9 to -8]. In step S45, the column correction module 13 captures the second image from the projection area by the image capturing unit 4, and displays the starting position of each white pixel point of the second image (that is, the white image first appears in each line of the second image. The RGB values of the elements, such as the LI, L2, L3, and black RGB values shown in Figure 2B, are placed in the third 歹 'JP rut. Step S46, the column correction module 13 finds the maximum value and the minimum value of the starting position of the white primitive point in the second array, and subtracts the minimum value from the maximum value to calculate the second difference between the maximum value and the minimum value. . [0030] Step S47, the column correction module 13 determines whether the second difference is greater than the first difference. If the second difference is greater than the first difference, in step S48, the column correction module 13 stores the second difference as the first difference in the storage unit 5, and then performs step S44. If the second difference is smaller than the first difference, in step S49, the column correction module 13 controls the driving unit 3 to drive the projection lens 2 to roll back the trapezoidal column correction level by one column correction level, and optimize the column correction level at this time. Column correction level. The above are only the preferred embodiments of the present invention, and have been used in a wide range of ways, and other equivalent changes or modifications which are not departing from the spirit of the present invention should be included in the following. Within the scope of the patent application. BRIEF DESCRIPTION OF THE DRAWINGS [0032] FIG. 1 is a block diagram of a preferred embodiment of a projector of the present invention. [0033] FIG. 2 is a schematic diagram showing the trapezoidal distortion generated when the projector projects a projected image on the projection area. 3 is a flow chart of a preferred embodiment of a trapezoidal line correction method for trapezoidal distortion correction of a projector of the present invention. 099130947 Form No. A0101 Page 10 of 20 0992054263-0 201211671 [0035] FIG. 4 is a flow chart of a preferred embodiment of the trapezoidal column correction method for trapezoidal distortion correction of the projector of the present invention. [Main Component Symbol Description] [0036] Projector 100 [0037] Triangulation Correction Unit [0038] Initialization Module 11 [0039] Row Correction Module 12 [0040] Column Correction Module 13 [0041] Projection Lens 2 [0042] Drive unit 3 [0043] camera unit 4 [0044] storage unit 5 [0045] microprocessor 6 v.. 〇Ο 099130947 Form number Α 0101 page 11 / total 20 page 0992054263-0

Claims (1)

201211671 七、申請專利範圍: 1 · 一種具有梯形校正功能之投影儀,該投影儀包括: 投射鏡頭、驅動單元及儲存單元; 攝像單元,用於從使用者選定之投射區域内攝取影像; 梯形校正單元,該梯形校正單元包括: 初始化模組,用於從儲存單元内讀取一幅内白外黑之正方 形圖片,及控制投射鏡頭於所述投射區域内投射該内白外 黑之正方形圖片; 行校正模組,用於控制投射鏡頭於每一梯形行校正等級下 向投射區域投射所述多玉方形圖片,藉由攝像單元於每一 梯形行校正等級下從投射區域内攝取影像,及藉由比較每 一幅影像之每一行白色圖元點之開始位置來對梯形失真進 行梯形行校正;及 列校正模組,用於用於控制投射鏡頭於每一梯形列校正等 級下向投射區域投射正方形圖片,藉由攝像單元於每一梯 形列校正等級下從投射區瑪内攝取影像,及藉由比較每一 幅影像之每一列白色圖元點之開始柷置來對梯形失真進行 梯形列校正。 2 .如申請專利範圍第1項所述之投影儀’其中,所述之梯形 行校正等級和梯形列校正等級分別包括-1 〇至+1 〇共2 0個 校正等級。 3.如申請專利範圍第1項所述之投影儀,其中,所述之初始 化模組還用於於投影儀加電開機時藉由驅動單元啟動投射 鏡頭將梯形行校正等級移動至最小行校正等級處,或者將 梯形列校正等級移動至最小列校正等級處。 099130947 表單編號A0101 第12頁/共20頁 0992054263-0 201211671 4 . 如申請專利範圍第3項所述之投影儀,其中,所述之行校 正拉組對梯形失真進行梯形行校正之步驟包括: (al )當投射鏡頭之梯形行校正等級處於最小行校正等級 時’藉由攝像單元從投射區域内攝取第一影像,並將該第 一影像之每一行白色圖元點之開始位置放入第一行陣列; (a2 )於第一行陣列中找出白色圖元點之開始位置最大值 與最小值’並將最大值減去最小值計算出該最大值與最小 值之第—差值; Ο (a3)控制驅動單元驅動投射鏡頭將梯形行校正等級增加 一個等級; (a4)藉由攝像單元從投射區域内攝取第二影像’並將該 第二影像每一行白色圖元點長開始位置放入第二行陣列; (a5)於第二行陣列中找出白色圖元點之開始位置最大值 與最小值,並將最大值減去最小值計算出該最大值與最小 值之第二差值; ❹ (a6)判斷第二差值是否大於第一差值,若第二差值大於 第一差值,將第二差值作為第一差值並執行步驟(a3), 若第二差值小於第一差值,控制驅動單元驅動投射鏡頭將 梯形行校正等級回退一個等級,並將此時之行校正等級作 為最佳行校正等級。 如申請專利範圍第3項所述之投影儀,其中,所述之列校 正模組對梯形失真進行梯形列校正之步驟包括: (bl )當投射鏡頭之梯形列校正等级處於最小列校正等級 時’藉由攝像單元從投射區域内攝取第一影像’並將該第 —影像之每一列白色圖元點之開始位置放入第一列陣列; (b2)於第一列陣列中找出白色圖元點之開始位置最大值 099130947 表單編號A0101 第13頁/共20頁 0992054263-0 201211671 與最小值,並將最大值減去最小值計算出該最大值與最小 值之第一差值; (b3)控制驅動單元驅動投射鏡頭將梯形列校正等級增加 一個等級; (b4)藉由攝像單元從投射區域内攝取第二影像,並將該 第一影像每一列白色圖元點之開始位置放入第二列陣列; ()於第二列陣列中找出白色圖元點之開始位置最大值 與最小值’並將最大值減去最小值計算出該最大值與最小 值之第二差值; (b6 )判斷第二差值是否大於第一差展,若第二差值大於 第一差值’將第二差值作為第一差值並執行步驟(b3), 若第二差值小於第一差值,控制驅動單元驅動投射鏡頭將 梯形列校正等級回退一個等級,並將此時之列校正等級作 為最佳列校正等級。 —種投影儀的梯形校正方法,該投影儀包括投射鏡頭、驅 動單元及儲存單元,該方法包括步驟: 從儲存單元内讀取一幅内白外黑之正方形圖片,及控制投 射鏡頭於使用者選定之投射區域内投射該内白外黑之正方 形圖片; 控制投射鏡頭於每一梯形行校正等級下向投射區域投射正 方形圖片; 藉由攝像單元於每一梯形行校正等級下從投射區域内攝取 影像; 藉由比較每一幅影像之每一行白色圖元點之開始位置來對 梯形失真進行梯形行校正; 控制投射鏡頭於每一梯形列校正等級下向投射區域投射正 099130947 表單編號A0101 第14頁/共20頁 0992054263-0 201211671 方形圖片; 藉由攝像單元於每一梯形列校正等級下從投射區域内攝取 影像; 藉由比較每一幅影像之每一列白色圖元點之開始位置來對 梯形失真進行梯形列校正。 7 .如申請專利範圍第6項所述之投影儀的梯形校正方法,其 中,所述之梯形行校正等級和梯形列校正等級分別包括 -10至+ 10共20個校正等級。 8 .如申請專利範圍第6項所述之投影儀的梯形校正方法,其 〇 中,所述之對梯形失真進行梯形行校正之步驟包括: (al )當投射鏡頭之梯形行校正等級處於最小行校正等級 時,藉由攝像單元從投射區域内攝取第一影像,並將該第 一影像之每一行白色圖元點之開始位置放入第一行陣列; (a2)於第一行陣列中找出白色圖元點之開始位置最大值 與最小值,並計算該最大值與最小值之第一差值; (a3)控制驅動單元驅動投射鏡頭將梯形行校正等級增加 一個等級; 〇 (a4)藉由攝像單元從投射區域内攝取第二影像,並將該 第二影像每一行白色圖元點之開始位置放入第二行陣列; (a5)於第二行陣列中找出白色圖元點之開始位置最大值 與最小值,並將最大值減去最小值計算出該最大值與最小 值之第二差值; (a6)判斷第二差值是否大於第一差值,若第二差值大於 第一差值,將第二差值作為第一差值並執行步驟(a3), 若第二差值小於第一差值,控制驅動單元驅動投射鏡頭將 梯形行校正等級回退一個等級,並將此時之行校正等級作 099130947 表單編號A0101 第15頁/共20頁 0992054263-0 201211671 為最佳行校正等級。 9 .如申請專利範圍第6項所述之投影儀的梯形校正方法,其 中,所述之對梯形失真進行梯形列校正之步驟包括: (bl )當投射鏡頭之梯形列校正等級處於最小列校正等級 時,藉由攝像單元從投射區域内攝取第一影像,並將該第 一影像之每一列白色圖元點之開始位置放入第一列陣列; (b2 )於第一列陣列中找出白色圖元點之開始位置最大值 與最小值,並計算該最大值與最小值之第一差值; (b3 )控制驅動單元驅動投射鏡頭將梯形列校正等級增加 一個等級; (b4)藉由攝像單元從投射區域内攝取第二影像,並將該 第二影像每一列白色圖元點之開始位置放入第二列陣列; (b5)於第二列陣列中找出白色圖元點之開始位置最大值 與最小值,並將最大值減去最小值計算出該最大值與最小 值之第二差值; (b6)判斷第二差值是否大於第一差值,若第二差值大於 第一差值,將第二差值作為第一差值並執行步驟(b3), 若第二差值小於第一差值,控制驅動單元驅動投射鏡頭將 梯形列校正等級回退一個等級,並將此時之列校正等級作 為最佳列校正等級。 099130947 表單編號A0101 第16頁/共20頁 0992054263-0201211671 VII. Patent application scope: 1 · A projector with a trapezoidal correction function, the projector includes: a projection lens, a driving unit and a storage unit; an imaging unit for taking images from a projection area selected by a user; The trapezoidal correction unit comprises: an initialization module, configured to read a square image of white and black outside from the storage unit, and control the projection lens to project the square image of the inner white and outer black in the projection area; a line correction module for controlling the projection lens to project the multi-jade square image to the projection area at each trapezoidal line correction level, and capturing images from the projection area by the camera unit at each trapezoidal line correction level, and borrowing A trapezoidal line correction is performed on the trapezoidal distortion by comparing the start positions of the white primitive points of each line of each image; and a column correction module for controlling the projection lens to project to the projection area at each trapezoidal column correction level a square picture, in which the image is taken from the projection area by the camera unit at each trapezoidal column correction level. And trapezoidal column correction of trapezoidal distortion by comparing the beginning of each column of white element points of each image. 2. The projector of claim 1, wherein the trapezoidal line correction level and the trapezoidal column correction level respectively comprise -1 〇 to +1 〇 a total of 20 correction levels. 3. The projector of claim 1, wherein the initialization module is further configured to move the trapezoidal line correction level to a minimum line correction by activating the projection lens by the driving unit when the projector is powered on. At the level, or move the trapezoidal column correction level to the minimum column correction level. The method of claim 3, wherein the step of correcting the trapezoidal distortion of the trapezoidal distortion comprises: (al) when the trapezoidal line correction level of the projection lens is at the minimum line correction level', the first image is taken from the projection area by the imaging unit, and the start position of the white element point of each line of the first image is placed An array of rows; (a2) finding the maximum value and the minimum value of the starting position of the white primitive point in the first row array and subtracting the minimum value from the maximum value to calculate the first difference between the maximum value and the minimum value; Ο (a3) The control driving unit drives the projection lens to increase the trapezoidal line correction level by one level; (a4) the second image is taken from the projection area by the imaging unit' and the white image element length starting position of each line of the second image Put into the second row array; (a5) find the maximum and minimum values of the starting position of the white primitive point in the second row array, and subtract the minimum value from the maximum value to calculate the maximum value and the minimum value. a second difference of values; ❹ (a6) determining whether the second difference is greater than the first difference, and if the second difference is greater than the first difference, using the second difference as the first difference and performing step (a3) If the second difference is smaller than the first difference, the control driving unit drives the projection lens to roll back the trapezoidal line correction level by one level, and uses the line correction level at this time as the optimal line correction level. The projector of claim 3, wherein the step of correcting trapezoidal distortion of the trapezoidal distortion by the calibration module comprises: (bl) when the trapezoidal column correction level of the projection lens is at the minimum column correction level 'Capturing the first image from the projection area by the camera unit' and placing the beginning position of each column of the white image element of the first image into the first column array; (b2) finding a white image in the first column array The starting position of the element is the maximum value of 099130947 Form No. A0101 Page 13 of 20 0992054263-0 201211671 The minimum value is subtracted from the minimum value and the first difference between the maximum value and the minimum value is calculated; (b3 The control driving unit drives the projection lens to increase the trapezoidal column correction level by one level; (b4) the second image is taken from the projection area by the imaging unit, and the beginning position of each column of the white image element is placed in the first image. Two-column array; () find the maximum and minimum values of the starting position of the white primitive point in the second column array and subtract the minimum value from the maximum value to calculate the maximum and minimum values a difference; (b6) determining whether the second difference is greater than the first difference, if the second difference is greater than the first difference', using the second difference as the first difference and performing step (b3), if the second difference The value is smaller than the first difference, and the control driving unit drives the projection lens to roll back the trapezoidal column correction level by one level, and uses the column correction level at this time as the optimum column correction level. A trapezoidal correction method for a projector, the projector comprising a projection lens, a driving unit and a storage unit, the method comprising the steps of: reading a square image of white and black outside from the storage unit, and controlling the projection lens to the user Projecting a square image of the inner white and black in the selected projection area; controlling the projection lens to project a square image to the projection area at each trapezoidal line correction level; ingesting from the projection area by the camera unit at each trapezoidal line correction level Image; trapezoidal line correction of trapezoidal distortion by comparing the starting position of each white line point of each image; controlling the projection lens to project positively to the projection area at each trapezoidal column correction level Form No. A0101 No. 14 Page / Total 20 pages 0992054263-0 201211671 Square picture; image taken from the projection area by the camera unit at each trapezoidal column correction level; by comparing the starting position of each column of white element points of each image Keystone correction for trapezoidal distortion. 7. The trapezoidal correction method of the projector of claim 6, wherein the trapezoidal line correction level and the trapezoidal column correction level respectively comprise -20 to + 10 total correction levels. 8. The trapezoidal correction method of the projector according to claim 6, wherein the step of performing trapezoidal line correction on the trapezoidal distortion comprises: (al) when the trapezoidal line correction level of the projection lens is at a minimum When the correction level is performed, the first image is taken from the projection area by the camera unit, and the start position of each white line point of each line of the first image is placed in the first line array; (a2) in the first line array Find the maximum and minimum values of the starting position of the white primitive point, and calculate the first difference between the maximum value and the minimum value; (a3) Control the driving unit to drive the projection lens to increase the trapezoidal line correction level by one level; 〇 (a4 Taking a second image from the projection area by the camera unit, and placing the start position of the white pixel point of each line of the second image into the second line array; (a5) finding the white element in the second line array The maximum value and the minimum value of the starting position of the point, and subtracting the minimum value from the maximum value to calculate a second difference between the maximum value and the minimum value; (a6) determining whether the second difference value is greater than the first difference value, if the second The difference is greater than the first a difference, the second difference is taken as the first difference and step (a3) is performed, and if the second difference is smaller than the first difference, the control driving unit drives the projection lens to roll back the trapezoidal line correction level by one level, and The line correction level at this time is 099130947 Form No. A0101 Page 15 / Total 20 Page 0992054263-0 201211671 is the best line correction level. 9. The trapezoidal correction method of the projector according to claim 6, wherein the step of performing trapezoidal column correction on the trapezoidal distortion comprises: (bl) when the trapezoidal column correction level of the projection lens is at the minimum column correction Level, the first image is taken from the projection area by the camera unit, and the beginning position of each column of the white image element of the first image is placed in the first column array; (b2) is found in the first column array The maximum value and the minimum value of the start position of the white primitive point, and calculate the first difference between the maximum value and the minimum value; (b3) controlling the driving unit to drive the projection lens to increase the trapezoidal column correction level by one level; (b4) by The camera unit captures the second image from the projection area, and puts the start position of each column of the white image element into the second column array; (b5) finds the beginning of the white element point in the second column array. Position maximum value and minimum value, and subtract the minimum value from the maximum value to calculate a second difference between the maximum value and the minimum value; (b6) determining whether the second difference value is greater than the first difference value, if the second difference value is greater than First difference The second difference is used as the first difference and step (b3) is performed. If the second difference is smaller than the first difference, the control driving unit drives the projection lens to roll back the trapezoidal column correction level by one level, and The column correction level is used as the optimum column correction level. 099130947 Form No. A0101 Page 16 of 20 0992054263-0
TW099130947A 2010-09-14 2010-09-14 Projector and method for regulating trapezoidal distortion of projecting images TWI477881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099130947A TWI477881B (en) 2010-09-14 2010-09-14 Projector and method for regulating trapezoidal distortion of projecting images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099130947A TWI477881B (en) 2010-09-14 2010-09-14 Projector and method for regulating trapezoidal distortion of projecting images

Publications (2)

Publication Number Publication Date
TW201211671A true TW201211671A (en) 2012-03-16
TWI477881B TWI477881B (en) 2015-03-21

Family

ID=46764374

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099130947A TWI477881B (en) 2010-09-14 2010-09-14 Projector and method for regulating trapezoidal distortion of projecting images

Country Status (1)

Country Link
TW (1) TWI477881B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111248855A (en) * 2018-11-30 2020-06-09 财团法人金属工业研究发展中心 Optical developing device and optical developing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW580607B (en) * 2003-07-04 2004-03-21 Benq Corp Projecting device with a keystone correction function
WO2006008801A1 (en) * 2004-07-16 2006-01-26 Sharp Kabushiki Kaisha Projector
JP3925521B2 (en) * 2004-08-19 2007-06-06 セイコーエプソン株式会社 Keystone correction using part of the screen edge
US7441906B1 (en) * 2005-07-05 2008-10-28 Pixelworks, Inc. Keystone correction system and method
JP4241797B2 (en) * 2006-09-29 2009-03-18 セイコーエプソン株式会社 Projector and keystone distortion correction method for projector

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111248855A (en) * 2018-11-30 2020-06-09 财团法人金属工业研究发展中心 Optical developing device and optical developing method

Also Published As

Publication number Publication date
TWI477881B (en) 2015-03-21

Similar Documents

Publication Publication Date Title
US8491127B2 (en) Auto-focusing projector and method for automatically focusing the projector
TWI242374B (en) Image processing system, projector, program, information storing medium, and image processing method
JP4196955B2 (en) Projector and processing line determination method
CN102404532A (en) Projector and trapezoidal distortion correcting method thereof
US9549126B2 (en) Digital photographing apparatus and control method thereof
US20190045114A1 (en) Image processing apparatus and image processing method
TWI516119B (en) Electronic apparatus, image capturing apparatus and method thereof
JPWO2014171304A1 (en) IMAGING DEVICE, IMAGING DEVICE DRIVE METHOD, IMAGING DEVICE CONTROL PROGRAM
US9699378B2 (en) Image processing apparatus, method, and storage medium capable of generating wide angle image
US10122937B2 (en) Method and apparatus for processing image obtained by camera
JP2007049226A (en) Image input device, method and program, and recording medium
JP6016622B2 (en) Imaging apparatus, control method therefor, and program
JP4016972B2 (en) Projector and projector control method
TW201211671A (en) Projector and method for regulating trapezoidal distortion of projecting images
JP2003348422A5 (en)
JP2009302814A (en) Imaging control device and method of imaging apparatus, and projection system
JP2011199717A (en) Projection type display device and image display method
JP7336754B2 (en) Imaging device
JP2015056709A (en) Imaging apparatus
JP2008124793A (en) Imaging apparatus, and imaging method
JP5029765B2 (en) Image data generation apparatus and image data generation method
JP2009020304A (en) Auto-focus method and imaging apparatus
JP6547742B2 (en) Imaging control apparatus, imaging apparatus and imaging control method
CN113272886A (en) Correction image generation system, image control method, image control program, and recording medium
JP2014053777A (en) Imaging apparatus

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees