201227148 六、發明說明: 【發明所屬之技彳标領域】 [0001] 本發明涉及一種光學設備及其投影效果增強方法,尤其 係關於一種投影儀及其投影畫面自動調整方法。 i [0002] [先前技術] 隨著投影儀之投射鏡頭、投射鏡片之實際使用時間越長 ,會使投射到投影區域(例如螢幕或牆面)上之投影書 面色彩與實際影像色彩發生偏差。另,由於某些投影片 中文本顏色與背景顏色之區分度不高,當該投影片被投 ❹ 射鏡頭投影到投影區域γ時,會造成文本:與背景區分不開 而使得投影畫面不清晰,進而影馨觀看者觀看投影畫面 之視覺效果。目前之投影設備不具備自動增強投影片中 文本輸出效果,尤其當投影片製作不佳,例如背景顏色 與文本顏色較爲接近之投影片時,其投射到投影區域上 之投影畫面之視覺效果比對不佳。 [0003] ❹ 【發明内容】 鑒於以上内容,有必要提保投影儀及其投影晝面自 動調整方法’能夠攝取已投射於投射區域之投影畫面, 藉由自動修JL該拍攝影像之目標區域與背景區域之亮度 差值來增強投影畫面之視覺輪出效果。 [0004] 所述之W儀包括攝像單元、投射鏡頭、儲存單元及投 影晝面調整單元。該投影畫面輕單元包括:影像攝取 模組肖於控制攝像單元拍攝由投射鏡頭投射於投射區 域内之投影晝面並將該拍攝影像保存為第—影像,及等 待-段閒置時間再控制攝像單元拍攝由投射鏡頭投射於 099144639 表單編號A0101 第3頁/共22頁 0992077133-0 201227148 投射區域内之投影畫面並將該拍攝影像保存為第二影像 ;背景確定模組,用於將第二影像之所有圖元點按照rgb 三通道之亮度值區間進行分類計數,並將亮度值區間内 圖元點數目最多之圖元點所屬區域作為背景區域,及確 定該背景區域之RGB三通道之亮度值;圖元亮度計算模組 ,用於將第二影像劃分為Μ個圖元塊,及計算每一圖元塊 之RGB三通道之亮度值;影像調整模組,用於當某一圖元 塊之RGB三通道亮度值介於背景區域RGB三通道亮度值所 破定之亮度值區間内’將該圖元塊之RGB三通道亮度值調 整至背景區域之RGB三通道亮度值所確定之亮度值區間之 外;影像代換模組,用於將第二影像中亮度值所需調整 之圖兀塊替換為調整後之圖元塊,及根據替換後之第二 影像產生優化之投影畫面並將該優化之投影畫面投射於 投射區域上。 [0005] 所述投影儀之投影畫面自動調整方法該投影儀包括攝 像單兀、投射鏡頭、儲存單元及投難面調整單元。該 方法包括步驟:控制攝像單元拍攝由投射鏡頭投射於投 射區域内之投影4面並將該減影像保存為 第一影像; 等待ίχ閒置時間再控制攝像單元拍攝由投射鏡頭投射 於投射區域内之投影晝面並將該拍攝影像保存為第二影 像,將第—衫像之所有圖元點按照⑽三通道亮度值區間 進行分類計數;將亮度值區間㈣元點數目最多之圖元 點所屬n域作為背景區域;収該背景區域之⑽三通道 之儿度值’將第二影像劃分為Μ個圖S塊;計算每一圖元 塊之三通道之亮度值;當某—圖it塊之三通道亮 099144639 表單編號A0101 第4頁/共22頁 0992077133-0 201227148 [0006] Ο [0007]201227148 VI. Description of the Invention: [Technical Field of the Invention] [0001] The present invention relates to an optical device and a method for enhancing the projection effect thereof, and more particularly to a projector and an automatic adjustment method thereof. i [0002] [Prior Art] As the projector and projection lens are actually used for a longer period of time, the projected book color projected onto the projection area (such as a screen or wall) deviates from the actual image color. In addition, since the difference between the text color and the background color in some slides is not high, when the projection is projected onto the projection area γ by the projection lens, the text is caused: the image is not distinguishable from the background, and the projection picture is not clear. And then the viewers watch the visual effect of the projected picture. At present, the projection device does not have the effect of automatically enhancing the text output in the slide film, especially when the projection film is poorly produced, for example, when the background color and the text color are closer to each other, the visual effect of the projection image projected onto the projection area is higher than that of the projection film. Not good. [0003] ❹ [Summary of the Invention] In view of the above, it is necessary to ensure that the projector and its projection surface automatic adjustment method 'capable of capturing a projection image that has been projected on the projection area, by automatically repairing the target area of the captured image with JL The difference in brightness of the background area enhances the visual rotation effect of the projected picture. [0004] The W instrument includes an imaging unit, a projection lens, a storage unit, and a projection camera adjustment unit. The projection picture light unit comprises: the image capturing module is configured to control the image capturing unit to capture the projection surface projected by the projection lens in the projection area and save the captured image as the first image, and wait for the segment idle time to control the image capturing unit. The shooting is projected by the projection lens on 099144639 Form No. A0101 Page 3 / Total 22 Page 0992077133-0 201227148 Projection screen in the projection area and save the captured image as a second image; Background determination module for the second image All the primitive points are classified and counted according to the luminance value interval of the rgb three channels, and the region of the primitive point with the largest number of primitive points in the luminance value interval is used as the background region, and the luminance values of the RGB three channels of the background region are determined; The picture brightness calculation module is configured to divide the second image into two picture element blocks, and calculate the brightness value of the RGB three channels of each picture element block; the image adjustment module is used to be a certain element block The RGB three-channel luminance value is within the luminance value range determined by the RGB three-channel luminance value in the background region, and the RGB three-channel luminance value of the primitive block is adjusted to the background region. The RGB three-channel luminance value is determined by the luminance value interval; the image substitution module is configured to replace the image block to be adjusted in the second image with the adjusted primitive block, and according to the replacement The second image produces an optimized projection image and projects the optimized projection image onto the projection area. [0005] The projection screen automatic adjustment method of the projector includes a camera unit, a projection lens, a storage unit, and a projection surface adjustment unit. The method includes the steps of: controlling the camera unit to capture the projection 4 projected by the projection lens in the projection area and saving the reduced image as the first image; waiting for the idle time to control the imaging unit to be projected by the projection lens in the projection area Projecting the surface and saving the captured image as a second image, and classifying all the primitive points of the first-shirt image according to the (10) three-channel luminance value interval; and the luminance value interval (four) the number of the largest pixel points belongs to n The domain is used as the background area; the (10) three-channel child value of the background area is divided into two blocks of the image S; the brightness value of the three channels of each primitive block is calculated; Three Channels Bright 099144639 Form No. A0101 Page 4 / Total 22 Pages 0992077133-0 201227148 [0006] Ο [0007]
GG
[0008] 099144639 度值介於背景區域RGB三通道亮度值所確定之亮度值區間 内,將該圖元塊之RGB三通道亮度值調整至背景區域之 RGB三通道亮度值所確定之亮度值區間之外;將第二影像 中亮度值所需調整之圖元塊替換為調整後之圖元塊;根 據替換後之第二影像產生優化之投影畫面並將該優化之 投影畫面投射於投射區域上。 相較於習知技術’本發明所述之投影儀及其投影畫面自 動調整方法’藉由拍攝已投射於投辦區域之投影畫面, 並將該拍攝之影像按照影像亮度分佈情況劃分為背景區 域與目標增強區域’修正該拍攝影像之目襟增強區域與 背景區域之免度差值來增強投影畫面之視覺輸出效果。 【實施方式】 如圖1所示,係本發明投影儀1〇〇較佳實施例之架構圖。 於本實施例中,所述之投影儀,100包括投影畫面調整單元 1、攝像單元2、投射鏡頭3、儲存單元4及微處理器5。所 述之投影畫面調整單元!能夠藉由攝像單元2拍攝投射鏡 頭3已投射於投射區域(例如螢幕或牆面) 之投影畫面, 而後把拍攝之影像L彡像之@元亮度分佈情況劃分為 背景區域與目標增強區域’利用RGB (紅色、綠色及藍色 )-灰度通道劃分拍攝影像後,修正該拍攝影像之目標 增強區域與背景區域之亮度差值來增㈣影畫面之視覺 輸出效果。 所述之攝像早疋2係為_種具有攝像功能之攝像裝置例 如攝像頭。該攝像單元2狀從投射區域内之投影畫面攝 取影像,並將該騎料給《彡調鮮itl對投影畫 表單編號麵 U_221 ’― 0992077133- 201227148 面進行調整。所述之投射 能之光學㈣,用⑽針 具有影像投射功 例如投影Μ投射=儲存單元4内之投影晝面( “又射於使用者選定之投射區域内進行顯示 [0009] 一)或為外部儲存卡二_(Flash 射於投影區域内之於料所需投 影像及背景=4,例如ΡΡΤ投影檔,其包括文本 [0010] [0011] 麟之f影晝面調整單元1包括影像攝取模組η、背景禮 疋模組2、圖元亮度計算模組13、影像調整 及 像代換模叫。本發明賴之馳可料由多個電 器件構成之硬體電路,也可料由—系斯算指令組成 之電純切。於本實施例中,所述之模組係_種能夠 被微處理器5所執行並且能夠完成固定功能之電腦程式段 ,其儲存於所述之儲存單元4中。 所述之影像攝取模組η用於控制攝像單元2拍攝由投射鏡 頭3投射於投射區域内之投影畫面,並將該拍攝影像保存 為第一影像,等待-段間置時間(例如3秒)再控制攝像 單元2拍攝由投射鏡頭3投射於投射區域内之投影畫面, 並將該拍攝影像保存為第二影像。該影像攝取模組“還 用於藉由比對第一影像與第二影像是否相同來確定該投 影畫面是否為靜態投影畫面或動態投影畫面。如果第一 影像與第二影像相同,則說明投射於投射區域内之投影 畫面是靜態投影畫面;如果第一影像與第二影像不同, 則說明投射於投射區域内之投影畫面是動態投影畫面。 099144639 表單編號Α0101[0008] The 099144639 degree value is in the range of the brightness value determined by the RGB three-channel brightness value of the background area, and the RGB three-channel brightness value of the primitive block is adjusted to the brightness value interval determined by the RGB three-channel brightness value of the background area. And replacing the primitive block whose brightness value needs to be adjusted in the second image with the adjusted primitive block; generating an optimized projection image according to the replaced second image and projecting the optimized projection image on the projection area . Compared with the prior art, the projector of the present invention and the automatic adjustment method of the projection screen thereof, by shooting a projection image that has been projected on the investment area, and dividing the captured image into a background area according to the image brightness distribution. And the target enhancement area 'corrects the target difference between the enhanced area and the background area of the captured image to enhance the visual output effect of the projected picture. [Embodiment] As shown in Fig. 1, it is an architectural diagram of a preferred embodiment of the projector of the present invention. In the embodiment, the projector 100 includes a projection screen adjusting unit 1, an imaging unit 2, a projection lens 3, a storage unit 4, and a microprocessor 5. The projection screen adjustment unit described! The projection image of the projection lens 3 projected on the projection area (for example, the screen or the wall surface) can be imaged by the imaging unit 2, and then the @元 luminance distribution of the captured image L彡 image is divided into the background area and the target enhancement area. RGB (red, green, and blue) - After the image is captured by the grayscale channel, the brightness difference between the target enhancement area and the background area of the captured image is corrected to increase the visual output effect of the image. The image recording system described above is an image pickup device having an image pickup function, for example, a camera. The image capturing unit 2 captures an image from the projection screen in the projection area, and adjusts the riding material to the surface of the projection drawing form number U_221 ― 0992077133- 201227148. The projection energy (4), with the (10) needle having image projection work such as projection Μ projection = projection plane in the storage unit 4 ("also shot in the user selected projection area for display [0009] one) or External memory card _ (Flash shot in the projection area and the required projection image and background = 4, such as ΡΡΤ projection file, including text [0010] [0011] 麟之f shadow surface adjustment unit 1 includes image capture The module η, the background ritual module 2, the picture brightness calculation module 13, the image adjustment and the image substitution mode call. The hardware circuit of the invention can be composed of a plurality of electrical components, and can also be expected - in the embodiment, the module is a computer program segment that can be executed by the microprocessor 5 and can perform a fixed function, and is stored in the storage. In the unit 4, the image capturing module η is configured to control the image capturing unit 2 to capture a projection image projected by the projection lens 3 in the projection area, and save the captured image as the first image, waiting for the inter-segment time ( For example, 3 seconds) to control the camera unit 2 to shoot The projection lens 3 is projected onto the projection image in the projection area, and the captured image is saved as a second image. The image capturing module is further configured to determine whether the projection image is determined by comparing whether the first image and the second image are the same. The static projection screen or the dynamic projection screen. If the first image is the same as the second image, the projection image projected in the projection area is a static projection image; if the first image is different from the second image, the projection is projected on the projection area. The projection screen inside is a dynamic projection screen. 099144639 Form number Α0101
苐6頁/共22 I 0992077133-0 201227148 當投影晝面是靜態投影畫面時,影像攝取模組11保存第 二影像至儲存單元2以便進行影像投影晝面調整。當投影 晝面是動態投影畫面時,影像攝取模組11等待一段閒置 時間再控制攝像單元2從投射區域内攝取投影畫面。 [0012] 所述之背景確定模組12用於將第二影像之所有圖元點按 照RGB三通道亮度值區間進行分類計數,並將亮度值區間 内圖元點數目最多之圖元點所屬區域作為背景區域,及 確定該背景區域之RGB三通道之亮度值。於本實施例中, 背景確定模組12將第二影像進行RGB三通道分離後,依據 每一通道所有圖&亮度值之正態分佈劃分亮度值區間, 例如R通道之亮度值區間被劃分為[0-50],[51-74], [ 75-90 ],[9卜110],[111-120]等,再依據每個通道 上圖元點之亮度值分佈來統計亮度值區間内之圖元點數 目,例如R通道上亮度值[111-120]之間之圖元點數目為 50%,亮度值[ 75-90 ]之間之圖元點數目為30%等。背景 確定模組12對第二影像進行RGB三個通道完成分類統計後 ,得到比如50%之圖元點(圖元點分佈比例最多)落入R 通道之亮度值區間[111-120],G通道之亮度值區間 [40-82]及B通道之亮度值區間[ 60-90 ]這個範圍内,從 而將RGB三通道亮度值區間内之圖元點所屬區域作為背景 區域。背景確定模組12計算得到該背景區域之RGB三通道 之亮度值,其中,每一通道之亮度值是將所有圖元點每 個通道上之亮度值相加得到之,例如每一通道之亮度值 分別記為 IAED_R—0 = 42171、IAED_G_0 = 43451 及 IAED B_0=42427 。 099144639 表單編號A0101 第7頁/共22頁 0992077133-0 201227148 _]賴之圖元亮度計算模組13用於將第二影像劃分制個圖 元塊,並計料-圖元塊咖三通道之亮度值。於本實施 例中’圖70冗度4算模組13將第二影御個圖元塊,例如 圖3所示之圖元塊Al,A2,…Μ,…Am,Wp 圖凡塊具有16x16圖i。圖元亮度計算模組13將每一圖元 塊中之所有® το點亮度值相加得到每一圖元塊副三通道 之壳度值,例如圖4所示之圖元塊A12RGB三個通道之亮 度值總和,其分別記為iaed_Rj = 147248、 IAED_G_l = 14776〇、iAEd_Bj = 144176,及圖元塊“ 之RGB三個通道之亮度值總與,其分別記為 IAED_R_i=37569 、 iAED_R_i=39105 、 IAED_R_i=38081 ’其中i小於等於圖元塊總數μ。 .... .. . ... ... ..... .;......苐6 pages/total 22 I 0992077133-0 201227148 When the projection screen is a static projection screen, the image capturing module 11 saves the second image to the storage unit 2 for image projection adjustment. When the projection screen is a dynamic projection screen, the image capturing module 11 waits for a period of idle time to control the image capturing unit 2 to take a projection image from the projection area. [0012] The background determining module 12 is configured to classify and count all the primitive points of the second image according to the RGB three-channel luminance value interval, and the region of the primitive point with the largest number of primitive points in the luminance value interval. As the background area, and determining the luminance values of the RGB three channels of the background area. In this embodiment, after the RGB three-channel separation is performed on the second image, the background determining module 12 divides the luminance value interval according to the normal distribution of all the graphs and the luminance values of each channel, for example, the luminance value interval of the R channel is divided. For [0-50], [51-74], [75-90], [9 Bu 110], [111-120], etc., according to the luminance value distribution of the primitive points on each channel, the luminance value interval is counted. The number of primitive points within, for example, the number of primitive points between the luminance values [111-120] on the R channel is 50%, and the number of primitive points between the luminance values [75-90] is 30%. The background determining module 12 performs categorization and statistics on the RGB three channels of the second image, and obtains, for example, 50% of the pixel points (the most common distribution of the pixel points) falls into the luminance value interval of the R channel [111-120], G In the range of the brightness value interval [40-82] of the channel and the brightness value interval [60-90] of the B channel, the area of the primitive point in the RGB three-channel luminance value interval is used as the background area. The background determining module 12 calculates the luminance values of the RGB three channels of the background region, wherein the luminance value of each channel is obtained by adding the luminance values on each channel of all the primitive points, for example, the brightness of each channel. Values are reported as IAED_R—0 = 42171, IAED_G_0 = 43451, and IAED B_0=42427. 099144639 Form No. A0101 Page 7 / Total 22 Pages 0992077133-0 201227148 _] The picture brightness calculation module 13 is used to divide the second picture into a picture element block, and counts the picture element block three channels Brightness value. In the present embodiment, the redundancy module 4 of FIG. 70 will block the second image block, for example, the primitive blocks A1, A2, ..., ..., Am, and the Wp graph block shown in Fig. 3 have 16x16. Figure i. The primitive luminance calculation module 13 adds the luminance values of all the τ ο points in each primitive block to obtain the shell value of the sub-three channels of each primitive block, for example, the three blocks of the primitive block A12RGB shown in FIG. The sum of the luminance values, which are respectively recorded as iaed_Rj = 147248, IAED_G_l = 14776〇, iAEd_Bj = 144176, and the sum of the luminance values of the RGB three channels of the primitive block, which are respectively recorded as IAED_R_i=37569, iAED_R_i=39105, IAED_R_i=38081 'where i is less than or equal to the total number of primitive blocks μ. .... . . . . . . . . .
[0014]所述之影像調整模組14用於判斷每一圖元塊RGB三通道之 亮度值是否介於背景區域之RGB三通道之亮度值所確定之 亮度值區間。於本實施例中,影像調整模組14判斷每一 圖元塊之R通道亮度值是否大於背景區域R通道亮度值之 第一倍數a且小於背景區域r通道亮度值之第二倍數b,G 通道亮度值是否大於背景區域G通道亮度值之第一倍數a 且小於背景區域G通道亮度值之第二倍數b,及B通道亮度 值是否大於背景區域B通道亮度值之第一倍數a且小於背 景區域B通道亮度值之第二倍數b。亦即判斷不等式ax IAED_R_〇<IAED_R_i<bxIAED_R_〇 5 ax IAED_G_0<IAED—G_i<bxIAED_G_0&ax IAED_B_0<IAED_B_i<bxIAED_B_0是否都成立。其中, 第一倍數a與第二倍數b分別取經驗值a = 1. 2及經驗值 099144639 表單編號A0101 第8頁/共22頁 0992077133-0 201227148 [0015] Ο [0016] [0017] Ο b=1.6 ° 當某一圖元塊Ai之RGB三通道亮度值介於背景區域RGB三 通道亮度值所確定之亮度值區間内,影像調整模組14將 圖元塊Ai之RGB三通道亮度值調整至背景區域之RGB三通 道亮度值所確定之亮度值區間之外。於本實施例中,影 像調整模組14將圖元塊Ai之RGB三通道亮度值調整至背景 區域RGB三通道亮度值之第三倍數c,例如lAED_R_i=cx IAED—R—0,其中第三倍數c取經驗值c = 2。假如背景區域 之某一圖元點P0之R通道亮度值區間為[115,184],則 圖元塊Ai中R通道亮度值介於[11 5,184]之圖元點均需 調整到115x2 = 230左右。 所述之影像代換模組15用於將第二影像中亮度值所需調 整之圖元塊Ai替換為亮度值調整後之圖元塊,根據替換 後之第二影像產生優化之投影畫面,並將該優化之投影 畫面投射於投射區域上。 如圖2所示’係本發明應用於投影儀中冬投影畫面自動調 整方法較佳實施例之流程圖。於本實施例中,該方法能 夠藉由攝像單元2拍攝投射鏡頭3已投射於投射區域之投 影畫面’而後把拍攝之影像按照影像之圖元亮度劃分為 背景區域與目標增強區域,利用RGB三通道劃分拍攝影像 後,修正該拍攝影像之目標增強區域與背景區域亮度差 值來增強投影畫面之視覺輸出效果。 步驟S201,影像攝取模組11控制攝像單元2拍攝由投射鏡 頭3投射於投射區域内之投影畫面,並將該拍攝影像保存 099144639 表單編號A0101 第9頁/共22頁 0992077133-0 [0018] 201227148 為第一影像。 [0019] 步驟S202,影像攝取模組11等待一段間置時間(例如3秒 )再控制攝像單元2拍攝由投射鏡頭3投射於投射區域内 之投影畫面,並將該拍攝影像保存為第二影像。 [0020] 步驟S203,影像攝取模組11藉由比對第一影像與第二影 像是否相同來確定該投影畫面是否為靜態投影畫面或動 態投影畫面。如果第一影像與第二影像相同,則說明投 射於投射區域内之投影晝面是靜態投影畫面,流程執行 步驟S205 ;如果第一影像與第二影像不同,則說明投射 於投射區域内之投影晝面是動態投影晝面,步驟S204, 攝像單元2等待一段閒置時間(例如3秒)再拍攝投射於 投射區域内之投影畫面。 [0021] 步驟S205,背景確定模組12將第二影像之所有圖元點按 照RGB三通道亮度值區間進行分類計數,並將亮度值區間 内圖元點數目最多之圖元點所屬區域作為背景區域。於 本實施例中,背景確定模組12將第二影像進行RGB三通道 分離後,依據RGB三通道上圖元點之亮度值正態分佈劃分 亮度值區間,例如R通道之亮度值區間被劃分為[0-50] ,[51-74] , [75-90] , [91-110] , [111-120]等,再 依據每個通道上圖元點之亮度值分佈來統計亮度值區間 内之圖元點數目,例如R通道上亮度值[111-120]之間之 圖元點數目為50%,亮度值[75-90 ]之間之圖元點數目為 30%等。背景確定模組12對第二影像進行RGB三個通道完 成分類統計後,得到比如50%之圖元點落入R通道之亮度 值區間[111-120],G通道之亮度值區間[ 40-82 ]及B通 099144639 表單編號A0101 第10頁/共22頁 0992077133-0 201227148 道之亮度值區間[ 60-90 ]這個範圍内,從而將RGB三通道 亮度值區間内之圖元點所屬區域作為背景區域。 [0022] 步驟S206,背景確定模組12確定該背景區域之RGB三通 道之圖元亮度值。於本實施例中,背景確定模組12藉由 確定RGB三通道亮度值區間内之圖元點所屬區域作為背景 區域後,再計算得到該背景區域之RGB三通道之亮度值, 例如,分別記為 IAED_R_0 = 42171、IAED_G_0 = 43451 及 IAED B 0=42427 。 ^ [0023] 步驟S207,圖元亮度計算模組13將第二影像劃分為Μ個圖 元塊。於本實施例中,圖元亮度計算模組13將第二影像Μ 個圖元塊,例如圖3所示之圖元塊Al, Α2,... Ai, ... Am,其中每一圖元塊具有16x16圖元。 [0024] 步驟S208,圖元亮度計算模組13計算每一圖元塊之RGB 三通道之圖元亮度值。於本實施例中,圖元亮度計算模 組1 3將每一圖元塊中之所有圖元點亮度值相加得到每一 圖元塊RGB三通道之圖元亮度值,例如圖4所示之圖元塊 Ο A1之RGB三個通道之亮度值總與,其分別記為 IAED_R_1=147248 、 IAED_G_1=147760 、 IAED_B_1 = 144176,及圖元塊Ai之RGB三個通道之亮度 值總與,其分別記為IAED_R_i=37569、 IAED_R_i = 391 05、IAED_R_i = 3808 卜其中 i 小於等於 圖元塊總數Μ。 [0025] 步驟S209,影像調整模組14判斷圖元塊Ai之RGB三通道 圖元亮度值是否介於背景區域之RGB三通道圖元亮度值所 099144639 表單編號A0101 第11頁/共22頁 0992077133-0 201227148 確定之亮度值區間。於本實施例中’影像調整模組14藉 由判斷不等式axIAED_R_0<IAED_Rj<bxUED R 〇, xIAED_G_0<IAED_G_i<bxUED—G_0&ax lAED_B_0<IAED_B_i<bxIAED_B一0是否都成立。其中, a為第一倍數’例如取經驗值a = 1. 2 ; b為第二倍數,例如 取經驗值b=l. 6 °若圖元塊Ai之RGB三通道圖元亮度值介 於背景區域之RGB三通道之圖元亮度值所確定之亮度值區 間(即上述三個不等式都成立),則執步驟§21〇。若圖 元塊Ai之RGB三通道之亮度值未介於背景區域之RGB三通 道亮度值所確定之亮度值區間,則執步驟S212。 [0026] [0027]The image adjustment module 14 is configured to determine whether the luminance value of each of the RGB three channels of each primitive block is within a luminance value interval determined by the luminance values of the RGB three channels of the background region. In this embodiment, the image adjustment module 14 determines whether the R channel luminance value of each primitive block is greater than the first multiple a of the background region R channel luminance value and less than the second multiple of the background region r channel luminance value b, G Whether the channel brightness value is greater than a first multiple of the background area G channel brightness value a and less than a second multiple of the background area G channel brightness value b, and whether the B channel brightness value is greater than a first multiple of the background area B channel brightness value a and less than The second multiple b of the brightness value of the background area B channel. That is, it is judged whether the inequal ax IAED_R_〇<IAED_R_i<bxIAED_R_〇 5 ax IAED_G_0<IAED_G_i<bxIAED_G_0&ax IAED_B_0<IAED_B_i<bxIAED_B_0 is established. Wherein, the first multiple a and the second multiple b respectively take the empirical value a = 1. 2 and the empirical value 099144639 Form No. A0101 Page 8 / Total 22 Page 0992077133-0 201227148 [0015] Ο [0016] 00 b =1.6 ° When the RGB three-channel luminance value of a certain primitive block Ai is within the luminance value interval determined by the background region RGB three-channel luminance value, the image adjustment module 14 adjusts the RGB three-channel luminance value of the primitive block Ai. Out of the range of luminance values determined by the RGB three-channel luminance value of the background area. In this embodiment, the image adjustment module 14 adjusts the RGB three-channel luminance value of the primitive block Ai to a third multiple c of the background region RGB three-channel luminance value, for example, 1AED_R_i=cx IAED_R—0, where the third The multiple c takes the empirical value c = 2. If the R channel luminance value interval of a pixel point P0 in the background area is [115, 184], then the pixel value of the R channel luminance value in the primitive block Ai is adjusted to 115x2 [01, 184]. = 230 or so. The image substituting module 15 is configured to replace the primitive block Ai whose brightness value needs to be adjusted in the second image with the pixel block after the brightness value adjustment, and generate an optimized projection image according to the replaced second image. The optimized projection image is projected onto the projection area. As shown in Fig. 2, the present invention is applied to a flow chart of a preferred embodiment of the winter projection screen automatic adjustment method in the projector. In this embodiment, the method can capture the projection image of the projection lens 3 that has been projected on the projection area by the imaging unit 2, and then divide the captured image into a background area and a target enhancement area according to the brightness of the image element, using RGB three. After the channel is divided and the image is captured, the brightness difference between the target enhancement area and the background area of the captured image is corrected to enhance the visual output effect of the projected picture. In step S201, the image capturing module 11 controls the imaging unit 2 to capture a projection screen projected by the projection lens 3 in the projection area, and saves the captured image in 099144639 Form No. A0101 Page 9 / Total 22 Page 0992077133-0 [0018] 201227148 For the first image. [0019] Step S202, the image capturing module 11 waits for an intervening time (for example, 3 seconds) to control the imaging unit 2 to capture a projection image projected by the projection lens 3 in the projection area, and save the captured image as the second image. . [0020] Step S203, the image capturing module 11 determines whether the projected image is a static projected image or a dynamic projected image by comparing whether the first image and the second image are the same. If the first image is the same as the second image, the projection surface projected in the projection area is a static projection image, and the process proceeds to step S205. If the first image is different from the second image, the projection projected in the projection area is illustrated. The face is a dynamic projection face, and in step S204, the camera unit 2 waits for a period of idle time (for example, 3 seconds) to capture a projected picture projected in the projected area. [0021] Step S205, the background determining module 12 classifies and counts all the primitive points of the second image according to the RGB three-channel luminance value interval, and uses the region of the primitive point with the largest number of primitive points in the luminance value interval as the background. region. In this embodiment, after the second image is separated by RGB three channels, the background determining module 12 divides the luminance value interval according to the normal distribution of the luminance values of the primitive points on the RGB three channels, for example, the luminance value interval of the R channel is divided. For [0-50], [51-74], [75-90], [91-110], [111-120], etc., according to the luminance value distribution of the primitive points on each channel, the luminance value interval is calculated. The number of primitive points in the circle, for example, the number of primitive points between the luminance values [111-120] on the R channel is 50%, and the number of primitive points between the luminance values [75-90] is 30%. The background determining module 12 performs categorization and statistics on the RGB three channels of the second image, and obtains, for example, 50% of the pixel points fall into the R channel luminance value interval [111-120], and the G channel luminance value interval [40- 82] and B-pass 099144639 Form No. A0101 Page 10/Total 22 Page 0992077133-0 201227148 The brightness value range of the channel [60-90] is within the range, so that the region of the RGB three-channel luminance value interval belongs to Background area. [0022] Step S206, the background determining module 12 determines the primitive brightness value of the RGB three-channel of the background area. In this embodiment, the background determining module 12 calculates the luminance value of the RGB three channels of the background region by determining the region to which the primitive point in the RGB three-channel luminance value interval is used as the background region, for example, respectively Is IAED_R_0 = 42171, IAED_G_0 = 43451, and IAED B 0=42427. [0023] Step S207, the primitive luminance calculation module 13 divides the second image into a plurality of primitive blocks. In this embodiment, the primitive luminance calculation module 13 divides the second image into a primitive block, such as the primitive blocks A1, Α2, ... Ai, ... Am shown in FIG. The metablock has 16x16 primitives. [0024] Step S208, the primitive luminance calculation module 13 calculates the luminance values of the RGB three-channel primitives of each primitive block. In this embodiment, the primitive luminance calculation module 13 adds the luminance values of all the primitive points in each primitive block to obtain the luminance values of the RGB three-channel primitives of each primitive block, for example, as shown in FIG. The sum of the luminance values of the RGB three channels of the primitive block Ο A1 is respectively recorded as IAED_R_1=147248, IAED_G_1=147760, IAED_B_1 = 144176, and the sum of the luminance values of the RGB three channels of the primitive block Ai, Recorded as IAED_R_i=37569, IAED_R_i = 391 05, IAED_R_i = 3808, where i is less than or equal to the total number of primitive blocks. [0025] Step S209, the image adjustment module 14 determines whether the luminance value of the RGB three-channel primitive of the primitive block Ai is between the RGB three-channel primitive luminance value of the background region. 099144639 Form No. A0101 Page 11 / Total 22 Page 0992077133 -0 201227148 Determines the range of brightness values. In the present embodiment, the image adjustment module 14 determines whether the inequality axIAED_R_0<IAED_Rj<bxUED R 〇, xIAED_G_0<IAED_G_i<bxUED_G_0&ax lAED_B_0<IAED_B_i<bxIAED_B_0 is established. Where a is the first multiple 'for example, the empirical value a = 1. 2 ; b is the second multiple, for example, the empirical value b = l. 6 ° if the RGB three-channel primitive brightness value of the primitive block Ai is in the background For the range of luminance values determined by the luminance values of the RGB three-channel elements of the region (that is, all of the above three inequalities are true), step § 21〇 is performed. If the luminance values of the RGB three channels of the primitive block Ai are not within the luminance value interval determined by the RGB three-channel luminance value of the background region, step S212 is performed. [0027] [0027]
夕驟S210,影像調整模組14將圖元塊Ai之RGB三通道圖 元亮度值調整至背景區域之RGB三通道圖元亮度值所確定 之亮度值區間之外。於本實施例中,影像調整模組14將 圖元塊Ai之RGB三通道圖元亮度值調整至背景區域RGB二 通道圖元亮度值之第三倍數c,例如IAED R UED_R—0 ’其中第三倍數c取經驗值c = 2。假如背景區域 之某一圖元點P0之R通道亮度值區間為[115,184],則 圖元塊Ai中R通道亮度值介於[115,184]之圖元點均需 調整到1 1 5x2 = 230左右。 步驟S211,影像代換模組15將第二影像中圖元亮度值所 需調整之圖元塊Ai替換為圖元亮度值調整後之圖元塊。 少驟S212,影像調整模組14判斷丨小於圖元塊總數M。若 i小於圖元塊總數Μ,步驟S213,影像調整模組14作 1 = 1 + ι運算,並返回步驟S209;若丨等於圖元塊總數M, 步驟S214,影像代換模組丨5根據替換後之第二影像產生 099144639 表單編號A0101 第12頁/共22頁 0992077133-0 201227148 優化投影晝面,並將該優化投影畫面投射於投射區域上 〇 [0028] 以上所述僅為本發明之較佳實施例而已,且已達廣泛之 使用功效,凡其他未脫離本發明所揭示之精神下所完成 之均等變化或修飾,均應包含於下述之申請專利範圍内 0 [0029] 【圖式簡單說明】 圖1係本發明投影儀較佳實施例之架構圖。 Q [0030] 圖2係本發明應用於投影儀中之投影畫面自動調整方法較 佳實施例之流程圖。 [0031] 圖3係將攝像單元攝取之拍攝影像劃分成Μ個圖元塊之示 意圖。 [0032] 圖4係每一圖元塊於RGB三通道上影像亮度之示意圖。 [0033] 【主要元件符號說明】 投影儀100 〇 [0034] 投影畫面調整單元1 [0035] 影像攝取模組11 [0036] 背景確定模組12 [0037] 圖元亮度計算模組13 [0038] 影像調整模組14 [0039] 影像代換模組15 [0040] 攝像單元2 099144639 表單編號A0101 第13頁/共22頁 0992077133-0 201227148 [0041] 投射鏡頭3 [0042] 儲存單元4 [0043] 微處理器5 099144639 表單編號A0101 第14頁/共22頁 0992077133-0At S210, the image adjustment module 14 adjusts the RGB three-channel luminance value of the primitive block Ai to be outside the luminance value interval determined by the RGB three-channel primitive luminance value of the background region. In this embodiment, the image adjustment module 14 adjusts the RGB three-channel primitive luminance value of the primitive block Ai to the third multiple c of the background region RGB two-channel primitive luminance value, for example, IAED R UED_R_0 ' The triple c is taken as the empirical value c = 2. If the R channel luminance value interval of a pixel point P0 in the background area is [115, 184], the pixel point of the R channel luminance value of [115, 184] in the primitive block Ai needs to be adjusted to 1 1 5x2 = 230 or so. In step S211, the image substituting module 15 replaces the primitive block Ai to be adjusted by the luminance value of the primitive in the second image with the primitive block after the luminance value adjustment of the primitive. In a few steps S212, the image adjustment module 14 determines that 丨 is smaller than the total number M of primitive blocks. If i is smaller than the total number of primitive blocks, in step S213, the image adjustment module 14 performs 1 = 1 + ι operation, and returns to step S209; if 丨 is equal to the total number of primitive blocks M, step S214, the image substitution module 丨 5 is based on The replaced second image generation 099144639 Form No. A0101 Page 12 / Total 22 Page 0992077133-0 201227148 Optimize the projection plane and project the optimized projection image onto the projection area. [0028] The above description is only the present invention. The preferred embodiments have been used in a wide range of ways, and all other equivalent changes or modifications which are not departing from the spirit of the present invention are included in the following claims. [0029] Brief Description of the Drawings Fig. 1 is a block diagram of a preferred embodiment of the projector of the present invention. [0030] FIG. 2 is a flow chart showing a preferred embodiment of the automatic adjustment method of the projection screen applied to the projector of the present invention. [0031] FIG. 3 is an illustration of dividing a captured image taken by an imaging unit into a plurality of primitive blocks. [0032] FIG. 4 is a schematic diagram of image brightness of each primitive block on RGB three channels. [Main Element Symbol Description] Projector 100 〇 [0034] Projection Screen Adjustment Unit 1 [0035] Image Acquisition Module 11 [0036] Background Determination Module 12 [0037] Picture Element Brightness Calculation Module 13 [0038] Image Adjustment Module 14 [0040] Image Substitution Module 15 [0040] Camera Unit 2 099144639 Form No. A0101 Page 13 of 22 Page 0992077133-0 201227148 [0041] Projection Lens 3 [0042] Storage Unit 4 [0043] Microprocessor 5 099144639 Form No. A0101 Page 14 of 22 0992077133-0