TWI538516B - Projection correction method and its application system - Google Patents

Projection correction method and its application system Download PDF

Info

Publication number
TWI538516B
TWI538516B TW101122927A TW101122927A TWI538516B TW I538516 B TWI538516 B TW I538516B TW 101122927 A TW101122927 A TW 101122927A TW 101122927 A TW101122927 A TW 101122927A TW I538516 B TWI538516 B TW I538516B
Authority
TW
Taiwan
Prior art keywords
projection
image
area
unit
line
Prior art date
Application number
TW101122927A
Other languages
Chinese (zh)
Other versions
TW201401874A (en
Inventor
cong-lin Jia
Wen-Yi Li
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 filed Critical
Priority to TW101122927A priority Critical patent/TWI538516B/en
Publication of TW201401874A publication Critical patent/TW201401874A/en
Application granted granted Critical
Publication of TWI538516B publication Critical patent/TWI538516B/en

Links

Landscapes

  • Projection Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

投影校正方法及其擴增實境應用系統 Projection correction method and its augmented reality application system

本發明係提供投影校正方法及其擴增實境應用系統,尤指一種能因應各式形狀之投影面,予以校正投影之影像者。 The present invention provides a projection correction method and an augmented reality application system thereof, and more particularly to an image that can correct a projection according to a projection surface of various shapes.

按,於數位世界中的物體或資訊進行操縱和互動的技術,在虛擬實境(Virtual Reality,VR)領域的研究中已有許多的成果,其中對於資訊的呈現,主要是透過頭戴式顯示器滿足觀察者即時的需求,但人們對於電腦科技應用的真正需求並非是電腦所模擬出的數位世界,或感受虛擬世界中的物體或環境,更核心的需要是如何在真實世界中提供數位資訊,讓人們仍感覺是在真實世界中,而非去適應虛擬世界,這使得擴增實境(Augmented Reality,AR)應運而生。 According to the technology of manipulating and interacting with objects or information in the digital world, there have been many achievements in the field of virtual reality (VR), in which the presentation of information is mainly through head-mounted displays. To meet the immediate needs of observers, but the real need for computer technology applications is not the digital world simulated by computers, or the objects or environments in the virtual world. The core need is how to provide digital information in the real world. Let people still feel that they are in the real world, not to adapt to the virtual world, which makes Augmented Reality (AR) come into being.

雖然在虛擬實境領域中的大多數技術,都能直接應用於擴增實境的應用中,但其中如何將真實世界與數位世界作正確的結合,則是其中最主要的技術差異,如:透過觀察者的姿態決定虛擬物體的配合姿態;於真實世界的物體上投射對應的數位資訊等,都涉及上述的技術主題,人類的資訊接收來源主要是透過視覺、聽覺、嗅覺、味覺與觸覺等身體知覺感受器進行接收,其中視覺囊括了身體知覺感受器總量的百分之七十,因此 透過影像取得資訊,是人類最主要與方便的方式,再者,由於人類對於視覺品質之要求也最為敏感,因此一個理想的擴張實境應用系統,需要高品質的顯示能力,才能征服使用者的視覺滿意度。 Although most of the technologies in the virtual reality field can be directly applied to augmented reality applications, how to correctly combine the real world and the digital world is the most important technical difference, such as: The posture of the virtual object is determined by the observer's posture; the corresponding digital information is projected on the real world object, etc., all of which involve the above technical topics. The source of human information is mainly through visual, auditory, olfactory, taste and touch. The body sensory receptor receives, wherein the vision encompasses 70% of the total amount of body sensory receptors, so Obtaining information through images is the most important and convenient way for human beings. Moreover, because human beings are most sensitive to the requirements of visual quality, an ideal expanding application system requires high-quality display capabilities to conquer users. Visual satisfaction.

在虛擬實境的應用中,係使用頭戴式顯示器(頭盔型或眼鏡型)而獲得資訊,讓資訊的顯示變得簡單,而不含有技術門檻,但這也讓虛擬實境的應用範疇,與實際世界隔離,限制它與日常生活的關聯性,因此主要的用途皆以模擬訓練為主,惟科技使終來自生活與人性需求,要將虛擬實境技術應用於日常生活,明顯會讓資訊的顯示成為技術的門檻,由於需要滿足人們的活動需求,就無法將人們局限在傳統電腦螢幕之前,要將資訊顯示於環境中,因此,需研究開發一種能讓使用者直接在生活環境中顯示所需資訊需求,成為要發展擴增實境應用平台首要解決的問題。 In virtual reality applications, head-mounted displays (helmet-type or glasses-type) are used to obtain information, making information display simpler without technical thresholds, but it also allows for virtual reality applications. It is isolated from the real world and limits its relevance to daily life. Therefore, the main uses are mainly simulation training. However, technology will ultimately come from life and human needs. It is necessary to apply virtual reality technology to daily life, which will obviously make information The display becomes the threshold of technology. Because it needs to meet the needs of people's activities, it is impossible to limit people to the traditional computer screens, and to display information in the environment. Therefore, it is necessary to research and develop a kind of display that allows users to display directly in the living environment. The required information needs have become the primary problem to be solved in the development of augmented reality application platforms.

擴增實境係利用實地計算攝影機影像的位置及角度,並透過影像呈現之技術,其應用層面極為廣泛,可應用於衛星、行動設備、手術醫療、工業及娛樂等技術領域,惟,習用之擴增實境平台,呈現於自行攜帶螢幕(如:智慧型手機、平板電腦、或電腦螢幕),或使用投影機投影至所需的位置。 Augmented Reality uses the technology to calculate the position and angle of camera images in the field, and through the technology of image presentation, it has a wide range of applications, and can be applied to satellite, mobile devices, surgical medical, industrial and entertainment technologies, but it is used. Augmented reality platform, presented on your own portable screen (such as: smart phone, tablet, or computer screen), or projected to the desired location using the projector.

惟此,攜帶式螢幕無法產生足夠之擴增實境呈現範圍,故 難以與實際影像結合;使用投影機投影者,雖拜微型化科技之賜,發展出微型投影機,使其輕巧易於攜帶,能滿足個人使用時的顯示範圍,但仍需要透過投影面反射影像,故具有投影面幾何扭曲之問題,而利用高階的攝影器材拍攝投影範圍,其投影範圍可以為任意不規則的牆面、牆角、雙窗簾、磚牆等,並且利用高階攝影器材所拍攝投影範圍,對每個像素的變化來做校正,其於理論上雖可以校正任何投影面,但是卻需要很高階的攝影器材才可完成校正,其需耗費大量之成本,且若僅能產生習用投影機般的統一大小或標準之矩形顯示範圍,將導致擴增實境資訊失去真實感,降低其適用性。 However, the portable screen does not produce enough augmented reality coverage, so Difficult to combine with the actual image; using the projector projector, thanks to the miniaturization technology, the development of a micro projector, making it light and easy to carry, can meet the display range of personal use, but still need to reflect the image through the projection surface, Therefore, it has the problem of geometric distortion of the projection surface, and the projection range can be photographed by using high-order photographic equipment, and the projection range can be any irregular wall surface, corner, double curtain, brick wall, etc., and the projection range is taken by using high-order photographic equipment. Correction is made for each pixel change. Although it can theoretically correct any projection surface, it requires a high-order photographic equipment to complete the calibration, which requires a lot of cost, and can only produce a conventional projector. The uniform size or the standard rectangular display range will result in the loss of realism and reduced applicability of the augmented reality information.

有鑑於此,吾等發明人乃潛心進一步研究投影校正方法及擴增實境應用系統,並著手進行研發及改良,期以一較佳設作以解決上述問題,且在經過不斷試驗及修改後而有本發明之問世。 In view of this, our inventors are concentrating on further research on projection correction methods and augmented reality application systems, and proceeding with research and development and improvement, with a better design to solve the above problems, and after continuous trial and modification There is a present invention.

緣是,本發明之目的係為解決習用攜帶式螢幕無法產生足夠之擴增實境呈現範圍,故難以與實際影像結合;透過投影機投射者,則常有投影面幾何扭曲之問題,需利用高階的攝影器材拍攝投影範圍,其需耗費大量之成本,且僅能產生習用投影機般的統一大小或標準之矩形顯示範圍,將導致擴增實境資訊失去真實感,降低其適用性。 The reason is that the purpose of the present invention is to solve the problem that the portable portable screen cannot generate sufficient abundance of reality, so it is difficult to combine with the actual image; if the projector is projected through the projector, the geometric distortion of the projection surface often needs to be utilized. High-end photographic equipment shoots a range of projections, which requires a large amount of cost, and can only produce a uniform size or a standard rectangular display range like a conventional projector, which will result in the loss of realism and reduce the applicability of the augmented reality information.

為達致以上目的,吾等發明人提供一種投影校正方法,其步驟包含,(a)一投影單元於一投影面投影一校正畫面;(b)一影像擷取單元擷取所述校正畫面,並定義該校正畫面之灰階影像值域,予以二值化成一二值化圖像;(c)將該二值化圖像劃分為背景區域及投影區域;以及,(d)定義所述投影區域內之平行四邊形範圍為轉換區域,並由該轉換區域界定校正參數以對應校正該投影單元投影之影像者。 In order to achieve the above object, the inventors provide a projection correction method, the steps comprising: (a) a projection unit projecting a correction picture on a projection surface; (b) an image capture unit capturing the correction picture, And defining a grayscale image value field of the correction picture, binarizing into a binarized image; (c) dividing the binarized image into a background area and a projection area; and, (d) defining the projection The range of parallelograms within the region is the transition region, and the correction region is defined by the transition region to correspond to the image that corrects the projection of the projection unit.

據上所述之投影校正方法,其步驟更進一步包含,(e)偵測該投影區域之邊緣,並界定形成該邊緣之邊緣線;以及,(f)界定由所述邊緣線相交形成之區域角點,並判定所述區域角點所圍繞之區域為投影區域之座標方程式。 According to the projection correction method described above, the method further comprises: (e) detecting an edge of the projection area and defining an edge line forming the edge; and (f) defining an area formed by the intersection of the edge lines The corner point is determined, and the area surrounded by the corner point of the area is determined as a coordinate equation of the projection area.

據上所述之投影校正方法,其中,該步驟(e)係定義所述之邊緣線係形成四個區域角點者,則該投影面為單一平面。 According to the projection correction method described above, wherein the step (e) defines that the edge line system forms four corner points, the projection surface is a single plane.

據上所述之投影校正方法,其中,該步驟(e)係定義六條所述之邊緣線,且界定所述邊緣線於極座標中形成三對夾角近似者,則該投影面為雙平面。 According to the projection correction method described above, wherein the step (e) defines six of the edge lines, and the edge line is defined to form three pairs of angle approximations in the polar coordinates, the projection surface is a double plane.

據上所述之投影校正方法,其中,該步驟(e)係由所述邊緣線相交並包覆該投影區域之外輪廓定義六個所述之區域角點。 According to the projection correction method described above, the step (e) defines six corner points of the region defined by the edge lines intersecting and covering the outer contour of the projection area.

據上所述之投影校正方法,其步驟更進一步包含,(g)於 該邊緣線內界定一相切於內角最大之區域角點之水平線,並於由該水平線之中點延伸一交於該邊緣線之垂直線,並由水平線及垂直線之交點,分別與邊緣線之距離定義形成三基準點,判定一基準矩形為以水平線上之二所述基準點為底邊長度,而以水平線及垂直線之交點,及垂直線上所述基準點之間距為高;界定所述基準矩形延該交點,等比例放大至該基準矩形之任一頂點交於該邊緣線時為所述轉換區域。 According to the projection correction method described above, the steps further include, (g) The edge line defines a horizontal line tangential to the corner point of the region having the largest inner angle, and extends from a point in the horizontal line to a vertical line intersecting the edge line, and is intersected by the intersection of the horizontal line and the vertical line, respectively The distance between the lines is defined to form three reference points, and the reference rectangle is determined by using the reference point of the two points on the horizontal line as the base length, and the intersection of the horizontal line and the vertical line, and the distance between the reference points on the vertical line is high; The reference rectangle extends the intersection and is scaled up to the transition region when any vertex of the reference rectangle intersects the edge line.

據上所述之投影校正方法,其中,該步驟(f)係定義由所述內角最大之區域角點與其相對之區域角點形成之直線為鄰接線,並界定由該鄰接線將該投影區域劃分為二面域,並分別於所述面域之區域角點所圍繞區域內之平行四邊形範圍為所述轉換區域。 According to the projection correction method described above, wherein the step (f) defines a line formed by a corner point of the region having the largest inner angle and a corner point of the opposite region as an adjacent line, and defines the projection by the adjacent line The area is divided into two-faceted domains, and the parallelograms in the area surrounded by the corner points of the area are the transition areas.

據上所述之投影校正方法,其中,該步驟(e)係以霍夫轉換定義形成該邊緣之複數直線,並將該等直線過濾,以界定該投影區域之邊緣線。 According to the projection correction method described above, the step (e) defines a complex line of the edge by a Hough transform definition, and filters the lines to define an edge line of the projection area.

據上所述之投影校正方法,其步驟更進一步包含,(h)該投影單元投影一第一曲面校正畫面,並由該影像擷取單元擷取該第一曲面校正畫面;以及,(i)該投影單元投影一對應該於第一曲面校正畫面成形網格之第二曲面校正畫面,該影像擷取單元擷取該第二曲面校正畫面,並將該二值化圖像細線化成一 細線化圖像,並定義於該細線化圖像中,該第一曲面校正畫面及第二曲面校正畫面具有交點而形成所述之網格者,則該投影面為曲面。 According to the projection correction method described above, the method further comprises: (h) the projection unit projecting a first curved surface correction picture, and the first surface correction picture is captured by the image capturing unit; and, (i) The projection unit projects a pair of second curved surface correction images that should be formed on the first curved surface correction screen, and the image capturing unit captures the second curved surface corrected image, and thins the binary image into one The thinned image is defined in the thinned image, and the first curved surface corrected image and the second curved surface corrected image have intersections to form the mesh, and the projected surface is a curved surface.

據上所述之投影校正方法,其步驟更進一步包含:(j)於該細線化圖像內定義一基準線,以判定所述網格之複數座標點;以及,(k)定義該等座標點所形成之區域為所述之投影區域。 According to the projection correction method described above, the step further comprises: (j) defining a reference line in the thinned image to determine a plurality of coordinate points of the grid; and (k) defining the coordinates The area formed by the dots is the projected area.

本發明提供一種投影控制方法,其包含如上所述之投影校正方法。 The present invention provides a projection control method including the projection correction method as described above.

據上所述之投影控制方法,其步驟更進一步包含,(l)該影像擷取單元擷取一手部影像;(m)將該手部影像二值化為手部二值化圖像,並透過使用者自定義劃分為膚色區域及非膚色區域;(n)建立一訓練資料庫,其儲存並依所述膚色區域定義每一顏色之機率值,以及界定一膚色門檻值;(o)判定機率值大於該膚色門檻值之顏色為膚色值,並依所述膚色值形成一手部區域;以及,(p)於手部區域面積大於一面積定值並持續一時間定值後,控制啟閉所述之投影單元。 According to the projection control method described above, the method further comprises: (1) the image capturing unit captures a hand image; (m) binarizing the hand image into a hand binarized image, and By user-defined division into skin color area and non-skin color area; (n) establishing a training database, which stores and defines the probability value of each color according to the skin color area, and defines a skin color threshold; (o) determining The color of the probability value is greater than the skin color threshold value, and the skin color value is formed according to the skin color value; and (p) after the area of the hand region is greater than a certain area value and continues to be fixed for a time, the control is opened and closed. The projection unit.

據上所述之投影控制方法,其步驟更進一步包含,(q)該影像擷取單元擷取環境光度;以及,(r)定義一光度門檻值,並於環境光度小於該光度門檻值時啟動所述之投影單元。 According to the projection control method described above, the method further comprises: (q) the image capturing unit extracts ambient luminosity; and, (r) defines a photometric threshold value, and starts when the ambient luminosity is less than the photometric threshold value; The projection unit.

本發明提供一種擴增實境應用系統,其包含,一投影單元,其對應投影一校正畫面於一投影面;一影像擷取單元,其對應擷取該投影面呈現之影像;以及,一處理單元,其耦接於該投影單元及該影像擷取單元,該處理單元係辨識該校正畫面所成像之投影面,並分析該校正畫面之灰階影像值域,予以二值化成一二值化圖像,將該二值化圖像化分為背景區域及投影區域,再於該投影區域內搜尋平行四邊形範圍者為轉換區域,透過該轉換區域校正該投影單元對應投影於該投影面之影像者。 The present invention provides an augmented reality application system, comprising: a projection unit corresponding to projecting a corrected image on a projection surface; an image capture unit corresponding to capturing an image presented by the projection surface; and, a processing The unit is coupled to the projection unit and the image capturing unit, and the processing unit identifies the projection surface imaged by the correction image, and analyzes the grayscale image value range of the correction image to be binarized into a binarization Image, dividing the binarized image into a background area and a projection area, and searching for a parallelogram range in the projection area as a conversion area, and correcting an image of the projection unit corresponding to the projection surface through the conversion area By.

據上所述之擴增實境應用系統,更進一步包含一反射單元,其對應設於該投影單元,藉以調整該投影單元投影之角度。 According to the augmented reality application system described above, a reflection unit is further included, which is correspondingly disposed on the projection unit, thereby adjusting the angle of projection of the projection unit.

據上所述之擴增實境應用系統,其中,該投影單元係投影擴增實境之影像。 According to the augmented reality application system described above, the projection unit is a projection image of the augmented reality.

據上所述之擴增實境應用系統,其中,該投影面為平面、雙平面或曲面。 According to the augmented reality application system described above, the projection surface is a plane, a double plane or a curved surface.

據上所述之擴增實境應用系統,其中,該影像擷取單元更進一步擷取手部影像,該處理單元係依膚色值辨識為手部區域,且該處理單元設有一面積定值及一時間定值,並於該手部區域之面積大於一定值且持續至該時間定值時,操控啟閉該投影單元。 According to the augmented reality application system described above, the image capturing unit further extracts a hand image, the processing unit is identified as a hand region according to a skin color value, and the processing unit is provided with an area setting value and a The time is set, and when the area of the hand area is greater than a certain value and continues to the time value, the projection unit is turned on and off.

據上所述之擴增實境應用系統,其中,該影像擷取單元更進一步擷取環境光度,該處理單元設有一光度門檻值,並於環境光度小於該光度門檻值時啟動所述之投影單元。 According to the augmented reality application system described above, wherein the image capturing unit further extracts ambient luminosity, the processing unit is provided with a luminosity threshold value, and the projection is started when the ambient luminosity is less than the luminosity threshold value. unit.

藉由上述設置,本發明可以讓數位資訊顯示於現實世界中,讓獲取資訊的方式更貼近生活,並解決習用擴增實境將投影資訊投影於現實世界中,具有成本高昂、不利於攜帶及投影幾何扭曲等缺失,本發明係可讓使用者無負擔地掛在胸前,且可手動操作反射單元,藉以調整投影單元成像之高度,而調整投影高度或因各式形狀之投影面,將易導致影像扭曲變形,故本發明係透過該投影單元投影校正畫面,由影像擷取單元擷取校正畫面於各式形狀之投影面,如單一平面、雙平面及曲面,並予以校正該投影單元投射之影像,顯見本發明讓使用者可以隨時隨地尋找投影面而投影,如:牆壁轉角、天花板接縫、球型拱門等,或因深度不同平面所產生的投影變形,如:窗簾、牆壁、柱子等,本發明皆能因應克服,並投影正確之影像;再者,本發明考量使用之便利性,可透過膚色偵測後界定出手部區域之面積,於達所述面積定值及時間定值時,以啟閉該投影單元,亦可透過該影像擷取單元一環境光度而自動開啟該投影單元,避免電力耗損,同時提升本發明於使用上之便利性及廣泛之適用性者。 With the above arrangement, the present invention can display digital information in the real world, make the information acquisition method closer to life, and solve the problem of using the augmented reality to project the projection information into the real world, which is costly and unfavorable for carrying and The invention is designed to allow the user to hang on the chest without burden, and the reflective unit can be manually operated to adjust the height of the projection unit and adjust the projection height or the projection surface of various shapes. The invention is characterized in that the image is distorted and deformed. Therefore, the present invention projects the correction image through the projection unit, and the image capturing unit captures the projection surface of the correction image on various shapes, such as a single plane, a double plane, and a curved surface, and corrects the projection unit. The projected image shows that the present invention allows the user to search for the projection surface anytime and anywhere, such as: wall corners, ceiling seams, ball arches, etc., or projection deformation due to different depths of the plane, such as: curtains, walls, The column and the like can all overcome the problem and project the correct image; furthermore, the invention considers the convenience of use. The area of the hand area can be defined by the skin color detection, and the projection unit can be opened and closed when the area is set and time constant, and the projection can be automatically turned on by the image capturing unit. The unit avoids power consumption and at the same time improves the convenience and wide applicability of the present invention.

關於吾等發明人之技術手段,茲舉數種較佳實施例配合圖式於下文進行詳細說明,俾供 鈞上深入了解並認同本發明。 The invention will be described in detail below with reference to the drawings.

請先參閱第一圖至第十圖所示,其係本發明之第一實施例,本發明係一種擴增實境應用系統,其包含:一投影單元1,其對應投影一校正畫面11於一投影面2,該投影單元1係投影擴增實境之影像,且該投影面2為單一平面、雙平面或曲面;一影像擷取單元3,其對應擷取該投影面2呈現之影像;一處理單元,其耦接於該投影單元1及該影像擷取單元3,該處理單元係辨識該校正畫面11所成像之投影面2,並分析該校正畫面11之灰階影像值域,予以二值化成一二值化圖像4,將該二值化圖4像化分為背景區域41及投影區域42,再於該投影區域42內搜尋平行四邊形範圍者為轉換區域43,透過該轉換區域43校正該投影單元1對應投影於該投影面2之影像者,該影像擷取單元3擷取手部影像5,該處理單元係依膚色值辨識為手部區域,且該處理單元設有一面積定值及一時間定值,並於該手部區域之面積大於一定值且持續至該時間定值時,操控啟閉該投影單元1;該影像擷取單元3更擷取環境光度,該處理單元設有一光度門檻值,並於環境光度小於該光度門檻值時啟動所述之投影單元1;以及, 一反射單元6,其對應設於該投影單元1,藉以調整該投影單元1投影之角度。 Please refer to the first embodiment to the first embodiment, which is a first embodiment of the present invention. The present invention is an augmented reality application system, comprising: a projection unit 1 corresponding to a projection correction screen 11 a projection surface 2, the projection unit 1 is a projection image of the augmented reality, and the projection surface 2 is a single plane, a double plane or a curved surface; an image capturing unit 3 corresponding to the image captured by the projection surface 2 a processing unit is coupled to the projection unit 1 and the image capturing unit 3, the processing unit identifies the projection surface 2 imaged by the correction screen 11, and analyzes the grayscale image range of the correction screen 11 Binarized into a binarized image 4, the binarized image 4 is divided into a background region 41 and a projection region 42, and the region of the parallelogram is searched for the transition region 43 in the projection region 42. The conversion area 43 corrects the image of the projection unit 1 corresponding to the projection surface 2, and the image capturing unit 3 captures the hand image 5, the processing unit is identified as the hand area according to the skin color value, and the processing unit is provided with a Area setting and time setting, and When the area of the hand area is greater than a certain value and continues to a fixed value of the time, the projection unit 1 is controlled to be opened and closed; the image capturing unit 3 further captures ambient luminosity, and the processing unit is provided with a luminosity threshold value, and The projection unit 1 is activated when the ambient luminosity is less than the luminosity threshold; and, A reflection unit 6 is disposed corresponding to the projection unit 1 to adjust the angle of projection of the projection unit 1.

續請參閱第一圖至第十圖所示,本發明提供一種投影校正方法,其步驟包含:一投影單元1於一投影面2投影一校正畫面11;一影像擷取單元3擷取所述校正畫面11,假設影像擷取單元3之色彩空間為三原色(RGB),則定義影像擷取單元3擷取之校正畫面11為IC(xc,yc){R,G,B},並定義該校正畫面11之灰階影像值域為[0,255],並設定灰階化之校正畫面11為ICg(xcg,ycg),得ICg(xcg,ycg)[0,255],如第三圖及第四圖所示,而後予以二值化成一二值化圖像4,藉以將該二值化圖像4劃分為背景區域41及投影區域42,並定義該二值化圖像4為ICb(xcb,ycb){0,1};於將該二值化圖像4偵測該投影區域42之邊緣421,得該二值化圖像4之邊緣影像為ICe(xce,yce){0,1},並如第五圖及第六圖所示,以霍夫轉換定義形成該邊緣421之複數直線422,而其將造成邊緣421偵測之誤判,故將該等直線422以冗餘直線過濾,界定形成該投影區域42邊緣421之邊緣線423,且定義所述之邊緣線423係形成四個區域角點44者,則該投影面2為單一平面; 界定由所述邊緣線423相交形成之區域角點44,如第四圖所示,可求得該區域角點44之座標,並判定所述區域角點44所圍繞之區域,為該投影區42域之座標方程式;定義所述投影區域之座標方程式內之平行四邊形範圍為轉換區域43,舉例而言,請參閱第七圖所示,該投影區42為一四邊形,所述區域角點44為該四邊形之頂點,而所述邊緣線423為四邊形之邊,由上端其一之區域角點44a朝y軸方向投影至該邊緣線423a之對邊而形成轉換點45a,而另一上端之區域角點44b則對應邊緣線423a之斜率,對應轉換點45a而形成轉換點45b,藉以定義由區域角點44a、44b及轉換點45a、45b形成之平行四邊形為轉換區域43;次請參閱第八圖之左上圖所示,其為該投影單元1內校正前預覽投影之畫面,假設其座標點分別為I0(0,0)、I1(iX-1,0)、I2(iX-1,iY-1)及I3(0,iY-1),其於該投影面2投影之結果,如第八圖之右上圖所示,其係該影像擷取單元3所擷取之影像,使該校正畫面11之座標點分別為P0(x0,y0)、P1(x1,y1)、P2(x2,y2)及P3(x3,y3),定義點I0、I1、I2、I3及點P0、P1、P2、P3之轉換關係為{P0,P1,P2,P3}=T1{I0,I1,I2,I3},藉以搜尋該投影單元1對於該投影面2投影該校正畫面11造成扭曲變形之函數,而如第八圖之右下圖所示,該轉換區域43之座標點分別為PI0(xpi0,ypi0)、P1(xpi1,ypi1)、P2(xpi2,ypi2)及 P3(xpi3,ypi3),而該校正畫面11及所述轉換區域43之轉換關係為{PI0,PI1,PI2,PI3}=T2{P0,P1,P2,P3},並藉由T1及T2反推轉換該投影單元1校正後預覽投影之畫面,故得一校正參數T3=T2T1{P0,P1,P2,P3},將該投影單元1校正後預覽投影之畫面之座標點分別為PT0(PTx0,PTy0)、P1(PTx1,PTy1)、P2(PTx2,PTy2)及P3(PTx3,PTy3),如第八圖之左下圖所示,對應校正該投影單元1投影之影像者。 Continuing to refer to the first to tenth drawings, the present invention provides a projection correction method, the method comprising: a projection unit 1 projecting a correction picture 11 on a projection surface 2; an image capture unit 3 captures the Correcting the screen 11, assuming that the color space of the image capturing unit 3 is three primary colors (RGB), the corrected image 11 captured by the image capturing unit 3 is defined as IC(x c , y c ) {R, G, B}, and define the grayscale image range of the correction screen 11 as [0, 255], and set the grayscale correction screen 11 to ICg (x cg , y cg ) to obtain ICg (x cg , y cg ) [0, 255], as shown in the third and fourth figures, and then binarized into a binarized image 4, thereby dividing the binarized image 4 into a background region 41 and a projection region 42, and defining the Binarized image 4 is ICb (x cb , y cb ) {0,1}; detecting the edge 421 of the projection area 42 in the binarized image 4, and obtaining an edge image of the binarized image 4 as ICe(x ce , y ce ) {0, 1}, and as shown in the fifth and sixth figures, the complex line 422 of the edge 421 is formed by the Hough transform definition, which will cause the misjudgment of the edge 421 detection, so the line 422 is Redundant linear filtering, defining an edge line 423 forming the edge 421 of the projection area 42, and defining the edge line 423 to form four regional corner points 44, the projection surface 2 is a single plane; defined by the edge The line corners 44 intersect at the intersection of the line 423. As shown in the fourth figure, the coordinates of the corner point 44 of the area can be obtained, and the area surrounded by the corner point 44 of the area is determined, which is the coordinate equation of the area of the projection area 42. The range of the parallelogram defining the coordinate equation of the projection area is the conversion area 43. For example, as shown in the seventh figure, the projection area 42 is a quadrilateral, and the corner point 44 of the area is the apex of the quadrilateral. The edge line 423 is a quadrilateral edge, and a corner point 44a of the upper end is projected toward the y-axis direction to the opposite side of the edge line 423a to form a transition point 45a, and the corner point 44b of the other upper end is formed. Corresponding to the slope of the edge line 423a, corresponding to the transition point 45a A conversion point 45b is formed, thereby defining a parallelogram formed by the area corner points 44a, 44b and the conversion points 45a, 45b as the conversion area 43; see the upper left diagram of the eighth figure, which is before the correction in the projection unit 1. Preview the projected image, assuming that its coordinate points are I 0 (0,0), I 1 (iX-1,0), I 2 (iX-1,iY-1), and I 3 (0,iY-1) The result of the projection on the projection surface 2 is as shown in the upper right diagram of the eighth figure, which is the image captured by the image capturing unit 3, so that the coordinate points of the correction screen 11 are respectively P 0 (x 0 , y 0 ), P 1 (x 1 , y 1 ), P 2 (x 2 , y 2 ), and P 3 (x 3 , y 3 ), defining points I 0 , I 1 , I 2 , I 3 , and points P 0, P 1, P 2 , P converter 3 the relationship {P 0, P 1, P 2, P 3} = T 1 {I 0, I 1, I 2, I 3}, so as to search for the projection unit 1 for the projection surface 2 to project the correction picture 11 as a function of distortion, and as shown in the lower right diagram of the eighth figure, the coordinate points of the conversion area 43 are PI 0 (xpi 0 , ypi 0 ), P 1 respectively. (xpi 1 , ypi 1 ), P 2 (xpi 2 , ypi 2 ), and P 3 (xpi 3 , ypi 3 ), and the conversion relationship between the correction picture 11 and the conversion area 43 is {PI 0 , PI 1 , PI 2 , PI 3 }=T 2 {P 0 , P 1 , P 2 , P 3 }, and the projections of the projected projection unit 1 are back-converted by T 1 and T 2 , Therefore, a calibration parameter T 3 = T 2 T 1 {P 0 , P 1 , P 2 , P 3 }, the coordinate points of the preview projection screen of the projection unit 1 are PT 0 (PTx 0 , PTy 0 ), P 1 (PTx 1 , respectively). PTy 1 ), P 2 (PTx 2 , PTy 2 ), and P 3 (PTx 3 , PTy 3 ), as shown in the lower left diagram of the eighth figure, correspond to the image of the projection of the projection unit 1 .

續請參閱第九圖及第十圖所示,本實施例係提供一種投影控制方法,其步驟包含:該影像擷取單元3擷取一手部影像5;本發明係利用YCbCr色彩空間作為顏色之表示形式,藉以配合應用場景與環境照明之變化,而RGB色彩空間並無將色彩及亮度分離之特性,故由該影像擷取單元3所擷取之手部影像,需先將RGB色彩空間轉換為YCbCr色彩空間,其轉換式如下所示: Continuing to refer to the ninth and tenth embodiments, the present embodiment provides a projection control method, the method comprising: the image capturing unit 3 captures a hand image 5; the invention utilizes the YCbCr color space as a color The representation is used to match the changes of the application scene and the ambient lighting, and the RGB color space has no separation of color and brightness. Therefore, the hand image captured by the image capturing unit 3 needs to first convert the RGB color space. For the YCbCr color space, the conversion is as follows:

為求正確之膚色判斷,故需於該處理單元建立一訓練資料庫,以進行膚色判定之學習,故首先將該手部影像5二值化為手部二值化圖像51,並透過使用者自定義劃分為膚色區域52 及非膚色區域53;於訓練資料庫內儲存並依所述膚色區域52定義每一顏色之機率值,以及界定一膚色門檻值,判定機率值大於該膚色門檻值之顏色為膚色值,並依所述膚色值形成一手部區域;手部區域於該影像擷取單元3畫面之面積大於一面積定值並持續一時間定值後,例如:使用者將手部置於該影像擷取單元3前約二秒,該處理單元即控制啟閉所述之投影單元1;該影像擷取單元3更進一步擷取環境光度;以及,該處理單元定義一光度門檻值,並於環境光度小於該光度門檻值時啟動所述之投影單元1。 In order to determine the correct skin color, it is necessary to establish a training database in the processing unit for learning the skin color determination. Therefore, the hand image 5 is first binarized into the hand binarized image 51, and is used. Customized to be divided into skin color areas 52 And a non-skinning area 53; storing in the training database and defining a probability value of each color according to the skin color area 52, and defining a skin color threshold value, determining that the probability value is greater than the skin color threshold value as the skin color value, and The skin color value forms a hand region; after the area of the image of the image capturing unit 3 is greater than an area constant value and continues to be fixed for a time, for example, the user places the hand in the image capturing unit 3 In the first two seconds, the processing unit controls the opening and closing of the projection unit 1; the image capturing unit 3 further extracts ambient luminosity; and the processing unit defines a luminosity threshold value, and the ambient luminosity is less than the luminosity The projection unit 1 is activated when the threshold is reached.

再請參閱第十一圖至第二十圖所示,其係本發明之第二實施例,其與第一實施例之差別在於,定義六條所述之邊緣線423,且界定所述邊緣線423於極座標中形成三對夾角近似者,則該投影面為雙平面,如:牆壁之轉角或天花板之接縫處者,且所述邊緣線423相交並包覆該投影區域42之外輪廓定義六個所述之區域角點44;如第十六圖所示,於該邊緣線423內界定一相切於內角最大之區域角點44之水平線L1,並於由該水平線L1之中點P0延伸一交於該邊緣線423之垂直線L2,並由水平線L1及垂直 線L2之交點,分別與邊緣線423之距離定義形成三基準點P1、P2、P3,判定一基準矩形為以水平線L1上之二所述基準點P1、P2為底邊長度,而以水平線L1及垂直線L2之交點,及垂直線L2上所述基準點P3之間距為高;界定所述基準矩形延該交點,等比例放大至該基準矩形之任一頂點交於該邊緣線423時為所述轉換區域43;請參閱第十七圖至第二十圖所示,定義由所述內角最大之區域角點44與其相對之區域角點44形成之直線為鄰接線46,並界定由該鄰接線46將該投影區域42劃分形成二相異之面域424,並分別於所述面域424之區域角點44所圍繞區域內之平行四邊形範圍為所述轉換區域43,其轉換方式與第一實施例雷同,故在此不予贅述。 Referring again to FIGS. 11 to 20, which is a second embodiment of the present invention, which differs from the first embodiment in that six of said edge lines 423 are defined and the edges are defined The line 423 forms three pairs of angle approximations in the polar coordinates, and the projection surface is a double plane, such as a corner of a wall or a seam of a ceiling, and the edge line 423 intersects and covers the contour of the projection area 42. region of the six corners 44 defined; as shown in FIG sixteenth, defines the edge line 423 in a horizontal line tangent to the internal angle of the corner points of maximum area of 44 L 1, and the horizontal line L 1 in the The midpoint P 0 extends to the vertical line L 2 of the edge line 423, and the intersection of the horizontal line L 1 and the vertical line L 2 is respectively defined by the distance from the edge line 423 to form three reference points P 1 , P 2 , P 3, is determined as a reference rectangle to the horizontal line L 1 on the two reference points P 1, P 2 is the length of the base, and a horizontal line on the vertical line L 1 and L 2 of the intersection point, and the vertical line L 2 reference point P 3 of a high pitch; rectangle defining the reference point of intersection of the extension, and the like according to any scaling of the reference rectangle When the vertex intersects the edge line 423, the transition region 43 is formed; as shown in FIGS. 17 to 20, the corner point 44 of the region having the largest inner angle is defined and the corner point 44 of the region opposite thereto is formed. The straight line is the adjoining line 46, and the projection area 42 is divided by the abutment line 46 into two distinct regions 424, and the parallelograms in the region surrounded by the corners 44 of the region 424 are respectively The conversion area 43 is converted in the same manner as the first embodiment, and therefore will not be described herein.

續請參閱第二十一圖至第二十七圖所示,其係本發明之第三實施例,其與第一實施例之差別在於,該投影單元1投影一第一曲面校正畫面7,並由該影像擷取單元3擷取該第一曲面校正畫面7,於本實施例中,該第一曲面校正畫面7為間隔排列之縱向線71,但不以此作為限定;如第二十一圖及第二十三圖所示,該投影單元1投影一對應該於第一曲面校正畫面7成形網格之第二曲面校正畫面8,於本實施例中,該第二曲面校正畫面8為間隔排列之橫向線 81,該影像擷取單元3擷取該第二曲面校正畫面8,並將該二值化圖像4細線化成一細線化圖像9,如二十四圖所示,並定義於該細線化圖像9中,該第一曲面校正畫面7及第二曲面校正畫面8具有交點而形成所述之網格者,則該投影面2為曲面;次請參閱第二十五圖及第二十六圖所示,於該細線化圖像9內定義一基準線91,分別搜尋縱向線71及橫向線81之交點座標,以判定所述網格之複數座標點92;如第二十七圖所示,定義該等座標點92所形成之區域為所述之投影區域42,本實施例於投影區域42內求得平行四邊形範圍為所述轉換區域43之轉換方式與第一實施例雷同,故在此不予贅述。 Continuing to refer to the twenty-first to twenty-seventh drawings, which is a third embodiment of the present invention, which differs from the first embodiment in that the projection unit 1 projects a first curved surface correction picture 7, The first curved surface correction screen 7 is captured by the image capturing unit 3 in the embodiment. In the embodiment, the first curved surface corrected image 7 is a longitudinal line 71 arranged at intervals, but is not limited thereto; As shown in FIG. 21 and FIG. 23, the projection unit 1 projects a pair of second curved surface correction pictures 8 which should be formed on the first curved surface correction picture 7. In the present embodiment, the second curved surface correction picture 8 Horizontal line 81. The image capturing unit 3 captures the second curved surface correction image 8 and thins the binary image 4 into a thinned image 9, as shown in FIG. 24, and is defined in the thinning In the image 9, the first curved surface correction picture 7 and the second curved surface correction picture 8 have intersection points to form the mesh, and the projection surface 2 is a curved surface; please refer to the twenty-fifth figure and the twentieth As shown in FIG. 6 , a reference line 91 is defined in the thinned image 9 , and the intersection coordinates of the longitudinal line 71 and the transverse line 81 are respectively searched to determine the plurality of coordinate points 92 of the grid; The area defined by the coordinate points 92 is defined as the projection area 42. The conversion manner of the parallelogram range in the projection area 42 to the conversion area 43 is the same as that of the first embodiment. Therefore, I will not repeat them here.

是由上述說明及設置,顯見本發明主要具有下列數項優點及功效,茲逐一詳述如下: It is obvious from the above description and setting that the present invention has the following several advantages and effects, which are detailed as follows:

1.本發明透過影像擷取單元擷取校正畫面,並判定所述之邊緣線係形成四個區域角點者,則該投影面為單一平面;定義六條所述之邊緣線,且界定所述邊緣線於極座標中形成三對夾角近似者,則該投影面為雙平面;定義於該細線化圖像中,該第一曲面校正畫面及第二曲面校正畫面具有交點而形成所述之網格者,則該投影面為曲面;本發明即藉以對應校正該投影單元投影之影像,顯見本發明能適用於各式投影面,如:牆壁 轉角、天花板接縫或球形拱門,且皆不導致投影單元所投之影像扭曲變形,故本發明具廣泛之適用性。 1. The present invention captures a correction picture through an image capturing unit, and determines that the edge line system forms four corner points, the projection surface is a single plane; defining six of the edge lines, and defining the Wherein the edge line forms three pairs of angle approximations in the polar coordinates, the projection surface is a double plane; defined in the thinned image, the first curved surface correction picture and the second curved surface corrected picture have intersections to form the net In the case of the grid, the projection surface is a curved surface; the invention is used to correct the projection of the projection unit, and the invention can be applied to various projection surfaces, such as walls. The invention has wide applicability because of corners, ceiling seams or spherical arches, and does not cause distortion of the image projected by the projection unit.

2.本發明之投影單元可為微型投影機,且可投影擴增實境之影像,而該影像擷取單元為網路攝影機,其體積皆較為微小,故可無負擔的掛設於使用者胸前,利於攜帶並能隨時投影於各式投影面,並能投影正確之影像而不扭曲失真,故本發明顯具便利性及適用性之功效,且若係投影擴增實境之影像者,將使該擴增實境影像更具真實性。 2. The projection unit of the present invention can be a pico projector, and can project an augmented reality image, and the image capturing unit is a network camera, and the volume thereof is relatively small, so that the user can be hung without burden. The chest is convenient to carry and can be projected on various projection surfaces at any time, and can project the correct image without distorting the distortion, so the invention has the convenience and applicability, and if the projection is augmented reality Will make the augmented reality image more authentic.

3.本發明透過訓練資料庫進行膚色判定之學習,且使用者僅需將手部置於該影像擷取單元前一段時間,使手部區域於該影像擷取單元畫面之面積大於一面積定值並持續一時間定值後,即可啟閉所述投影單元,而若係非膚色之物體,則無法啟閉該投影單元,防止影像擷取單元誤判而關閉該投影單元,藉以提升本發明於開關上之便利性。 3. The invention learns the skin color determination through the training database, and the user only needs to place the hand in the image capturing unit for a period of time, so that the area of the hand region on the image capturing unit screen is larger than an area. After the value is continued for a period of time, the projection unit can be opened and closed, and if the object is not a skin color, the projection unit cannot be opened and closed, and the image capturing unit is prevented from being misjudged to close the projection unit, thereby improving the present invention. The convenience of the switch.

4.本發明之影像擷取單元畫面係擷取環境光度,並於環境光度低於該光度門檻值時自動啟動所述之投影單元進行投影,達致使用上便利性之功效者。 4. The image capturing unit screen of the present invention captures the ambient luminosity and automatically activates the projection unit to project when the ambient luminosity is lower than the illuminance threshold, thereby achieving the convenience of use.

綜上所述,本發明所揭露之技術手段確能有效解決習知等問題,並達致預期之目的與功效,且申請前未見諸於刊物、未曾公開使用且具長遠進步性,誠屬專利法所稱之發明無誤,爰 依法提出申請,懇祈 鈞上惠予詳審並賜准發明專利,至感德馨。 In summary, the technical means disclosed by the present invention can effectively solve the problems of the prior knowledge, achieve the intended purpose and efficacy, and are not found in the publication before publication, have not been publicly used, and have long-term progress, The invention claimed in the Patent Law is correct, Applying according to law, praying for a detailed review and granting a patent for invention, to Sendexin.

惟以上所述者,僅為本發明之數種較佳實施例,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明書內容所作之等效變化與修飾,皆應仍屬本發明專利涵蓋之範圍內。 The above is only the preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, that is, the equivalent changes and modifications made by the scope of the invention and the contents of the invention are all It should remain within the scope of this invention.

1‧‧‧投影單元 1‧‧‧projection unit

11‧‧‧校正畫面 11‧‧‧Correction screen

2‧‧‧投影面 2‧‧‧Projection surface

3‧‧‧影像擷取單元 3‧‧‧Image capture unit

4‧‧‧二值化圖像 4‧‧‧ binarized image

41‧‧‧背景區域 41‧‧‧Background area

42‧‧‧投影區域 42‧‧‧Projection area

421‧‧‧邊緣 Edge of 421‧‧

422‧‧‧直線 422‧‧‧ Straight line

423‧‧‧邊緣線 423‧‧‧ edge line

424‧‧‧面域 424‧‧‧ Faces

43‧‧‧轉換區域 43‧‧‧Conversion area

44、44a、44b‧‧‧區域角點 44, 44a, 44b‧‧‧ regional corner points

45a、45b‧‧‧轉換點 45a, 45b‧‧‧ conversion point

46‧‧‧鄰接線 46‧‧‧ Adjacent lines

5‧‧‧手部影像 5‧‧‧Hand image

51‧‧‧手部二值化圖像 51‧‧‧Hand binarized image

52‧‧‧膚色區域 52‧‧‧ skin color area

53‧‧‧非膚色區域 53‧‧‧Non-skin area

6‧‧‧反射單元 6‧‧‧Reflective unit

7‧‧‧第一曲面校正畫面 7‧‧‧First surface correction screen

71‧‧‧縱向線 71‧‧‧Longitudinal line

8‧‧‧第二曲面校正畫面 8‧‧‧Second surface correction screen

81‧‧‧橫向線 81‧‧‧ horizontal line

9‧‧‧細線化圖像 9‧‧‧ Thin line image

91‧‧‧基準線 91‧‧‧ baseline

92‧‧‧座標點 92‧‧‧Punctuation

第一圖 係本發明之結構示意圖。 The first figure is a schematic view of the structure of the present invention.

第二圖 係本發明第一實施例之流程示意圖。 The second figure is a schematic flow chart of the first embodiment of the present invention.

第三圖 係本發明第一實施例之二值化圖像示意圖。 The third figure is a schematic diagram of the binarized image of the first embodiment of the present invention.

第四圖 係本發明第一實施例之邊緣偵測示意圖。 The fourth figure is a schematic diagram of edge detection according to the first embodiment of the present invention.

第五圖 係本發明第一實施例之霍夫轉換示意圖。 Fig. 5 is a schematic diagram showing the Hough conversion of the first embodiment of the present invention.

第六圖 係本發明第一實施例之直線過濾示意圖。 Fig. 6 is a schematic view showing the linear filtration of the first embodiment of the present invention.

第七圖 係本發明第一實施例之定義轉換區域示意圖。 Figure 7 is a schematic diagram showing the definition conversion area of the first embodiment of the present invention.

第八圖 係本發明第一實施例之轉換校正投影單元投影影像之示意圖。 Figure 8 is a schematic view showing a projection image of a conversion correcting projection unit of the first embodiment of the present invention.

第九圖 係本發明第一實施例影像擷取單元擷取手部圖像之 示意圖。 The ninth embodiment of the present invention is an image capturing unit that captures a hand image schematic diagram.

第十圖 係本發明第一實施例手部二值化圖像之示意圖。 Tenth is a schematic view of a hand binarized image of the first embodiment of the present invention.

第十一圖 係本發明第二實施例之流程示意圖。 Figure 11 is a flow chart showing the second embodiment of the present invention.

第十二圖 係本發明第二實施例之二值化圖像示意圖。 Figure 12 is a schematic diagram of a binarized image of a second embodiment of the present invention.

第十三圖 係本發明第二實施例之邊緣偵測示意圖。 Figure 13 is a schematic diagram of edge detection in accordance with a second embodiment of the present invention.

第十四圖 係本發明第二實施例之霍夫轉換示意圖。 Fig. 14 is a schematic diagram showing the Hough conversion of the second embodiment of the present invention.

第十五圖 係本發明第二實施例之直線過濾示意圖。 Fig. 15 is a schematic view showing the linear filtration of the second embodiment of the present invention.

第十六圖 係本發明第二實施例之定義轉換區域示意圖。 Fig. 16 is a schematic view showing a definition conversion area of the second embodiment of the present invention.

第十七圖 係本發明第二實施例之鄰接線之示意圖。 Figure 17 is a schematic view showing the adjacent line of the second embodiment of the present invention.

第十八圖 係本發明第二實施例鄰接線畫分面域之示意圖。 Figure 18 is a schematic view showing a second embodiment of the present invention adjacent to a line drawing sub-area.

第十九圖 係本發明第二實施例左邊之面域轉換校正投影單元投影影像之示意圖。 Fig. 19 is a schematic view showing a projection image of a projection conversion unit of the left side of the second embodiment of the present invention.

第二十圖 係本發明第二實施例右邊之面域轉換校正投影單元投影影像之示意圖。 Fig. 20 is a schematic view showing the projection image of the projection conversion unit of the right side of the second embodiment of the present invention.

第二十一圖 係本發明第三實施例之流程示意圖。 A twenty-first embodiment is a schematic flow chart of a third embodiment of the present invention.

第二十二圖 係本發明第三實施例之第一曲面校正畫面示意 圖。 Twenty-second drawing is a schematic diagram of the first curved surface correction screen of the third embodiment of the present invention Figure.

第二十三圖 係本發明第三實施例之第二曲面校正畫面示意圖。 Twenty-third is a schematic diagram of a second curved surface correction screen of the third embodiment of the present invention.

第二十四圖 係本發明第三實施例之二值化圖像細線化為細線化圖像之示意圖。 Twenty-fourth Embodiment A schematic diagram of thinning a binarized image of the third embodiment of the present invention into a thinned image.

第二十五圖 係本發明第三實施例基準線定義座標點之示意圖。 Twenty-fifthth Figure is a schematic diagram showing the definition of coordinate points of the reference line of the third embodiment of the present invention.

第二十六圖 係本發明第三實施例座標點形成投影區域之示意圖。 Figure 26 is a schematic view showing the formation of a projection area by the coordinate points of the third embodiment of the present invention.

第二十七圖 係本發明第三實施例之轉換區域之示意圖。 Figure 27 is a schematic view showing a conversion area of a third embodiment of the present invention.

1‧‧‧投影單元 1‧‧‧projection unit

11‧‧‧校正畫面 11‧‧‧Correction screen

2‧‧‧投影面 2‧‧‧Projection surface

3‧‧‧影像擷取單元 3‧‧‧Image capture unit

6‧‧‧反射單元 6‧‧‧Reflective unit

Claims (12)

一種投影校正方法,其步驟包含:(a)一投影單元於一投影面投影一校正畫面;(b)一影像擷取單元擷取所述校正畫面,並定義該校正畫面之灰階影像值域,予以二值化成一二值化圖像;(c)將該二值化圖像劃分為背景區域及投影區域;(d)定義所述投影區域內之平行四邊形範圍為轉換區域,並由該轉換區域界定校正參數以對應校正該投影單元投影之影像者(e)偵測該投影區域之邊緣,並界定形成該邊緣之邊緣線;定義六條所述之邊緣線,且界定所述邊緣線於極座標中形成三對夾角近似者,則該投影面為雙平面;以及,(f)界定由所述邊緣線相交形成之區域角點,並判定所述區域角點所圍繞之區域為投影區域之座標方程式。 A projection correction method, the method comprising: (a) a projection unit projecting a correction picture on a projection surface; (b) an image capture unit capturing the correction picture and defining a grayscale image range of the correction picture Dividing into a binarized image; (c) dividing the binarized image into a background region and a projection region; (d) defining a parallelogram range in the projection region as a conversion region, and Converting a region defining a correction parameter to correspondingly correct an image projected by the projection unit (e) detecting an edge of the projection region and defining an edge line forming the edge; defining six of the edge lines and defining the edge line Forming three pairs of angle approximations in the polar coordinates, the projection surface is a biplane; and (f) defining a corner point formed by the intersection of the edge lines, and determining that the area surrounded by the corner points is a projection area The coordinate equation. 如申請專利範圍第1項所述之投影校正方法,其中,該步驟(e)係由所述邊緣線相交並包覆該投影區域之外輪廓定義六個所述之區域角點。 The projection correction method according to claim 1, wherein the step (e) defines six corner points of the region by the edge lines intersecting and covering the outer contour of the projection area. 如申請專利範圍第2項所述之投影校正方法,其步驟更 進一步包含:(g)於該邊緣線內界定一相切於內角最大之區域角點之水平線,並於由該水平線之中點延伸一交於該邊緣線之垂直線,並由水平線及垂直線之交點,分別與邊緣線之距離定義形成三基準點,判定一基準矩形為以水平線上之二所述基準點為底邊長度,而以水平線及垂直線之交點,及垂直線上所述基準點之間距為高;界定所述基準矩形延該交點,等比例放大至該基準矩形之任一頂點交於該邊緣線時為所述轉換區域。 The method of projecting correction according to item 2 of the patent application, the steps of which are more Further comprising: (g) defining a horizontal line in the edge line that is tangent to a corner point of the region having the largest inner angle, and extending from a point in the horizontal line to a vertical line intersecting the edge line, and being horizontal and vertical The intersection of the lines, the distance from the edge line is defined to form three reference points, and the reference rectangle is determined by using the reference point of the two points on the horizontal line as the base length, and the intersection of the horizontal line and the vertical line, and the reference line on the vertical line. The distance between the points is high; the reference rectangle is defined to extend the intersection point, and is enlarged to the transition area when any vertex of the reference rectangle intersects the edge line. 如申請專利範圍第2項所述之投影校正方法,其中,該步驟(f)係定義由所述內角最大之區域角點與其相對之區域角點形成之直線為鄰接線,並界定由該鄰接線將該投影區域劃分為二面域,並分別於所述面域之區域角點所圍繞區域內之平行四邊形範圍為所述轉換區域。 The projection correction method according to claim 2, wherein the step (f) defines a line formed by a corner point of the region having the largest inner angle and a corner point of the opposite region as an adjacent line, and is defined by the line The adjacent line divides the projection area into two-sided areas, and the parallelograms in the area surrounded by the corner points of the area respectively are the conversion areas. 如申請專利範圍第1項所述之投影校正方法,其中,該步驟(e)係以霍夫轉換定義形成該邊緣之複數直線,並將該等直線過濾,以界定該投影區域之邊緣線。 The projection correction method of claim 1, wherein the step (e) forms a complex line of the edge by a Hough transform definition and filters the lines to define an edge line of the projection area. 一種投影控制方法,其包含如申請專利範圍第1至5項中任一項所述之投影校正方法,其步驟更進一步包含:(l)該影像擷取單元擷取一手部影像; (m)將該手部影像二值化為手部二值化圖像,並透過使用者自定義劃分為膚色區域及非膚色區域;(n)建立一訓練資料庫,其儲存並依所述膚色區域定義每一顏色之機率值,以及界定一膚色門檻值;(o)判定機率值大於該膚色門檻值之顏色為膚色值,並依所述膚色值形成一手部區域;以及,(p)於手部區域面積大於一面積定值並持續一時間定值後,控制啟閉所述之投影單元。 A projection control method, comprising the projection correction method according to any one of claims 1 to 5, the method further comprising: (1) the image capturing unit capturing a hand image; (m) binarizing the hand image into a hand binarized image and dividing it into a skin color region and a non-skin color region by user customization; (n) establishing a training database, which is stored and described The skin color region defines a probability value of each color, and defines a skin color threshold value; (o) determines that the color of the probability value is greater than the skin color threshold value, and forms a hand region according to the skin color value; and, (p) After the area of the hand area is greater than an area constant and continues to be fixed for a time, the projection unit is controlled to be opened and closed. 如申請專利範圍第6項所述之投影控制方法,其步驟更進一步包含:(q)該影像擷取單元擷取環境光度;以及,(r)定義一光度門檻值,並於環境光度小於該光度門檻值時啟動所述之投影單元。 The method of claim 2, wherein the step further comprises: (q) the image capturing unit extracts ambient luminosity; and (r) defines a luminosity threshold, and the ambient luminosity is less than the The projection unit is activated when the photometric threshold is reached. 一種擴增實境應用系統,其包含:一投影單元,其對應投影一校正畫面於一投影面;一影像擷取單元,其對應擷取該投影面呈現之影像;以及,一處理單元,其耦接於該投影單元及該影像擷取單元,該 處理單元係辨識該校正畫面所成像之投影面,並分析該校正畫面之灰階影像值域,予以二值化成一二值化圖像,將該二值化圖像化分為背景區域及投影區域,並偵測該投影區域之邊緣,並界定形成該邊緣之邊緣線,定義六條所述之邊緣線,且界定所述邊緣線於極座標中形成三對夾角近似者,則該投影面為雙平面,而後再於該投影區域內搜尋平行四邊形範圍者為轉換區域,透過該轉換區域校正該投影單元對應投影於該投影面之影像者。 An augmented reality application system, comprising: a projection unit corresponding to projecting a correction image on a projection surface; an image capture unit corresponding to capturing an image presented by the projection surface; and a processing unit Coupled in the projection unit and the image capturing unit, The processing unit identifies the projection surface imaged by the correction picture, analyzes the grayscale image value range of the correction picture, binarizes it into a binarized image, and divides the binarized image into a background area and a projection. a region, and detecting an edge of the projection region, and defining an edge line forming the edge, defining six of the edge lines, and defining the edge line to form three pairs of angle approximations in the polar coordinates, the projection surface is The two planes are then searched for the parallelogram range in the projection area as a conversion area, and the projection area is corrected by the projection area corresponding to the image projected on the projection surface. 如申請專利範圍第8項所述之擴增實境應用系統,更進一步包含一反射單元,其對應設於該投影單元,藉以調整該投影單元投影之角度。 The augmented reality application system of claim 8, further comprising a reflection unit corresponding to the projection unit, thereby adjusting an angle of projection of the projection unit. 如申請專利範圍第8項所述之擴增實境應用系統,其中,該投影單元係投影擴增實境之影像。 The augmented reality application system of claim 8, wherein the projection unit projects an image of the augmented reality. 如申請專利範圍第8項所述之擴增實境應用系統,其中,該影像擷取單元更進一步擷取手部影像,該處理單元係依膚色值辨識為手部區域,且該處理單元設有一面積定值及一時間定值,並於該手部區域之面積大於一定值且持續至該時間定值時,操控啟閉該投影單元。 The augmented reality application system of claim 8, wherein the image capturing unit further captures a hand image, the processing unit is identified as a hand region according to a skin color value, and the processing unit is provided with a The area setting value and the time setting value are controlled to open and close the projection unit when the area of the hand area is greater than a certain value and continues to the time value. 如申請專利範圍第8項所述之擴增實境應用系統,其中,該影像擷取單元更進一步擷取環境光度,該處理單元設有 一光度門檻值,並於環境光度小於該光度門檻值時啟動所述之投影單元。 The augmented reality application system of claim 8, wherein the image capturing unit further extracts ambient luminosity, and the processing unit is provided a photometric threshold value and the projection unit is activated when the ambient luminosity is less than the photometric threshold.
TW101122927A 2012-06-27 2012-06-27 Projection correction method and its application system TWI538516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101122927A TWI538516B (en) 2012-06-27 2012-06-27 Projection correction method and its application system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101122927A TWI538516B (en) 2012-06-27 2012-06-27 Projection correction method and its application system

Publications (2)

Publication Number Publication Date
TW201401874A TW201401874A (en) 2014-01-01
TWI538516B true TWI538516B (en) 2016-06-11

Family

ID=50345255

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101122927A TWI538516B (en) 2012-06-27 2012-06-27 Projection correction method and its application system

Country Status (1)

Country Link
TW (1) TWI538516B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI779305B (en) * 2020-06-24 2022-10-01 奧圖碼股份有限公司 Simulation method for setting projector by augmented reality and terminal device thereof

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI592020B (en) 2016-08-23 2017-07-11 國立臺灣科技大學 Image correction method of projector and image correction system
CN111629190A (en) * 2019-02-28 2020-09-04 中强光电股份有限公司 Projection system and projection method
JP7467947B2 (en) * 2020-01-31 2024-04-16 セイコーエプソン株式会社 METHOD FOR CONTROLLING IMAGE PROJECTION SYSTEM AND IMAGE PROJECTION SYSTEM

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI779305B (en) * 2020-06-24 2022-10-01 奧圖碼股份有限公司 Simulation method for setting projector by augmented reality and terminal device thereof
US11527048B2 (en) 2020-06-24 2022-12-13 Optoma Corporation Method for simulating setting of projector by augmented reality and terminal device therefor

Also Published As

Publication number Publication date
TW201401874A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
US11182961B2 (en) Method and system for representing a virtual object in a view of a real environment
JP6644833B2 (en) System and method for rendering augmented reality content with albedo model
CN107993216B (en) Image fusion method and equipment, storage medium and terminal thereof
US11736756B2 (en) Producing realistic body movement using body images
US10593090B2 (en) Apparatus and method for performing motion capture using a random pattern on capture surfaces
US8698796B2 (en) Image processing apparatus, image processing method, and program
JP2019510297A (en) Virtual try-on to the user's true human body model
US20140104394A1 (en) System and method for combining data from multiple depth cameras
US20140254939A1 (en) Apparatus and method for outputting information on facial expression
JP2017532076A (en) Inspection system for appropriate oral hygiene procedures
TWI538516B (en) Projection correction method and its application system
US20200065559A1 (en) Generating a video using a video and user image or video
US10789784B2 (en) Image display method, electronic device, and non-transitory computer readable recording medium for quickly providing simulated two-dimensional head portrait as reference after plastic operation
TWI616100B (en) Curved surface projection correction control method and its augmented reality application system
US11120624B2 (en) Three-dimensional head portrait generating method and electronic device
EP2933781A2 (en) Method and system for representing a virtual object in a view of a real environment
US10296080B2 (en) Systems and methods to simulate user presence in a real-world three-dimensional space
CN109523462A (en) A kind of acquisition methods and device of VR video screenshotss image
WO2017141223A1 (en) Generating a video using a video and user image or video
TWI808321B (en) Object transparency changing method for image display and document camera
US9536133B2 (en) Display apparatus and control method for adjusting the eyes of a photographed user
JP2006318015A (en) Image processing device, image processing method, image display system, and program
CN113805824A (en) Electronic device and method for displaying image on display equipment
WO2023024096A1 (en) Image processing method, image processing device, photographing equipment, and readable storage medium
Vančo et al. Gesture identification for system navigation in 3D scene

Legal Events

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