TWI664545B - Method for producing a primary optical free-form surface structure - Google Patents

Method for producing a primary optical free-form surface structure Download PDF

Info

Publication number
TWI664545B
TWI664545B TW106139929A TW106139929A TWI664545B TW I664545 B TWI664545 B TW I664545B TW 106139929 A TW106139929 A TW 106139929A TW 106139929 A TW106139929 A TW 106139929A TW I664545 B TWI664545 B TW I664545B
Authority
TW
Taiwan
Prior art keywords
preliminary
function
objective function
result
free
Prior art date
Application number
TW106139929A
Other languages
Chinese (zh)
Other versions
TW201923633A (en
Inventor
黃哲瑄
張書修
黃璽軒
詹皓仲
Original Assignee
樂達創意科技股份有限公司
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 樂達創意科技股份有限公司 filed Critical 樂達創意科技股份有限公司
Priority to TW106139929A priority Critical patent/TWI664545B/en
Publication of TW201923633A publication Critical patent/TW201923633A/en
Application granted granted Critical
Publication of TWI664545B publication Critical patent/TWI664545B/en

Links

Abstract

本發明公開一種一次光學自由曲面結構的製作方法,其包括取得對應於目標光形的圖像。求得初步目標函數。求得初步自由曲面立體模型。導入光束追跡軟體模擬初步結果光形。求得對應初步結果光形的初步結果函數。根據初步結果函數與初步目標函數的比較結果,以產生修正目標函數。求得修正自由曲面立體模型。導入所述光束追跡軟體模擬修正結果光形。求得修正結果函數。比較修正結果函數及初步目標函數,在兩者間的差異值低於預設門檻值時,根據修正自由曲面立體模型製成所述一次光學自由曲面結構。 The invention discloses a manufacturing method of a primary optical free-form surface structure, which includes obtaining an image corresponding to a target light shape. Find the preliminary objective function. Obtain a preliminary free-form solid model. Import the beam tracing software to simulate the preliminary result light shape. Find the preliminary result function corresponding to the preliminary result light shape. According to the comparison result between the preliminary result function and the preliminary objective function, a modified objective function is generated. Obtain a modified freeform solid model. The beam tracing software is introduced to simulate the corrected light shape. Find the correction result function. The modified result function and the preliminary objective function are compared. When the difference between the two is lower than a preset threshold value, the primary optical free-form surface structure is made according to the modified free-form surface solid model.

Description

一次光學自由曲面結構的製作方法 Manufacturing method of primary optical free-form surface structure

本發明涉及一種光學結構的製作方法,特別是涉及一種一次光學自由曲面結構的製作方法。 The invention relates to a method for manufacturing an optical structure, in particular to a method for manufacturing a primary optical free-form surface structure.

發光二極體(Light-emitting diode,簡稱LED)在實際被應用為照明設備的零組件前,一般要進行兩次的光學結構設計。首先,在將LED通過集成電路(integrated circuit,簡稱IC)封裝技術製成所需要的光電零組件時,要先進行第一次光學結構設計,以解決LED的出光角度、光強、光通量大小、光強分佈以及色溫的範圍與分佈等問題。一般大功率LED所發出的光通過一次光學結構透鏡後,其發光角度約為120度左右,而在此基礎上再進行二次光學結構設計,其目的就是將經過一次光學結構透鏡發出的光再進一步調整其出光角度並改變其光學性能。 Before a light-emitting diode (LED for short) is actually used as a component of a lighting device, the optical structure design is generally performed twice. First, when LEDs are made into the required optoelectronic components through integrated circuit (IC) packaging technology, the first optical structure design must be performed first to solve the LED light angle, light intensity, luminous flux, Light intensity distribution and the range and distribution of color temperature. Generally, the light emitted by high-power LEDs passes through the primary optical structure lens, and its light emitting angle is about 120 degrees. Based on this, the secondary optical structure design is performed. The purpose is to re-emit the light emitted by the primary optical structure lens. Further adjust its light angle and change its optical performance.

在目前常見LED結構的設計架構下,若要調整LED所發出的光線以形成特殊的光形,通常是針對二次光學結構的表面進行自由曲面設計。自由曲面透鏡的微加工問題和透鏡的製造成本問題等因素都限制著自由曲面光學透鏡在市場上的應用。現有自由曲面光學的演算法主要有剪裁法(Tailored)、偏微分方程法(Partial Differential Equation,簡稱PDE法)、同步多曲面设计法(Simultaneous Multiple Surface,簡稱SMS法)以及幾何演算法等。 Under the current design structure of common LED structures, to adjust the light emitted by the LED to form a special light shape, a free-form surface design is usually performed on the surface of the secondary optical structure. The micro-processing problems of free-form lenses and the manufacturing cost of lenses have limited the application of free-form optical lenses in the market. Existing algorithms for free-form surface optics mainly include Tailored, Partial Differential Equation (PDE), Simultaneous Multiple Surface (SMS), and geometric algorithms.

其中,剪裁法的主要概念是根據目標面的照度分佈和光源特性建立一個關於光學面形的非線性偏微分方程組,通過求解此一非線性偏微分方程組以得到光學面形,然而,此一方法較不適合應用於擴展光源。同樣地,PDE法也較不適用於擴展光源。擴展光源指的是發光部分的面積比較大(相較於點光源而言)的光源,由於光源尺寸相對較大,因此光線的出射方向較多。現有應用於LED封裝的光源,相較於其封裝體而言,一般都是屬於擴展光源(為體光源而非點光源)。 Among them, the main concept of the trimming method is to establish a nonlinear partial differential equation system on the optical surface shape according to the illumination distribution of the target surface and the characteristics of the light source. The nonlinear surface differential equation system is obtained by solving this nonlinear partial differential equation system. However, this One method is less suitable for extended light sources. Similarly, the PDE method is also less suitable for extended light sources. The extended light source refers to a light source with a relatively large light emitting area (compared to a point light source). Since the size of the light source is relatively large, there are many directions of light emission. Existing light sources used in LED packages are generally extended light sources (body light sources rather than point light sources) compared to their packages.

再者,SMS法的主要概念是先根據光源與目標平面的光能量分佈特性,建立兩對輸入波前以及兩對輸出波前之間的對應關係,然後同時設計一個光學系統的兩個自由曲面,使得入射波前通過這兩自由曲面折射或反射後能與出射波前一一對應。然而,其缺點在於當光斑為擴散型時,並不能保證中間部分光線在目標平面上相應區域內可以呈現均勻分佈。 Furthermore, the main concept of the SMS method is to first establish the correspondence between two pairs of input wavefronts and two pairs of output wavefronts according to the light energy distribution characteristics of the light source and the target plane, and then design two free-form surfaces of an optical system at the same time. So that the incident wavefront can be in one-to-one correspondence with the outgoing wavefront after being refracted or reflected by the two free-form surfaces. However, its disadvantage is that when the light spot is diffuse, it cannot guarantee that the light in the middle part can be uniformly distributed in the corresponding area on the target plane.

另一方面,幾何演算法的主要概念是根據非成像照明理論以及自由曲面與光線間的幾何關係,建立入射角與自由曲面的關係,從而求得自由曲面。 On the other hand, the main concept of the geometric algorithm is to establish the relationship between the incident angle and the free-form surface based on the non-imaging lighting theory and the geometric relationship between the free-form surface and the light, so as to obtain the free-form surface.

如同前述,目前常見的LED結構設計架構主要都是針對二次光學結構的表面進行自由曲面設計,其主要的原因是受限於微加工問題和透鏡的製造成本問題等因素。然而,這種作法不僅使得整體結構較為複雜,而不利於裝置的小型化,也由於光線在達到目標照明物體表面之前,必須要通過較多層的介質轉換,因此會造成能量較大地耗損。因此,如何解決前述問題,並且在一次光學結構上完成所需的自由曲面結構設計,即成為亟待解決的重要課題之一。 As mentioned above, the current common LED structure design architectures are mainly free-form surface designs for the surface of the secondary optical structure. The main reason is that they are limited by micro-processing issues and lens manufacturing cost issues. However, this method not only complicates the overall structure and is not conducive to miniaturization of the device, but also because light must be converted through more layers of medium before reaching the surface of the target illuminated object, which will cause a large energy loss. Therefore, how to solve the aforementioned problems and complete the required free-form surface structure design on a primary optical structure has become one of the important issues to be solved urgently.

本發明所要解決的技術問題在於,針對現有技術的不足提供一種一次光學自由曲面結構的製作方法,能通過比較預先設定的 目標函數與模擬計算出的修正結果函數,求得兩者間的一差異值,並於差異值尚未低於一預設門檻值時反覆調整修正目標函數,進而獲取到最佳的修正自由曲面立體模型,並製成能夠產生預期目標光形的一次光學自由曲面結構。 The technical problem to be solved by the present invention is to provide a manufacturing method of a primary optical free-form surface structure for the shortcomings of the prior art. The objective function and the correction result function calculated by simulation are used to find a difference between the two, and repeatedly adjust the modified objective function when the difference value is not lower than a preset threshold value, thereby obtaining the best modified free-form surface volume. Model, and make a primary optical free-form surface structure that can produce the desired target light shape.

為了解決上述的技術問題,本發明所採用的其中一技術方案是,提供一種一次光學自由曲面結構的製作方法,其包括:(A)取得對應於一目標光形的一圖像;(B)分析所述圖像,以求得對應所述目標光形的一初步目標函數;(C)根據所述初步目標函數執行點光源的自由曲面運算,以求得一初步自由曲面立體模型;(D)將所述初步自由曲面立體模型導入一光束追跡軟體,以模擬出一初步結果光形;(E)分析所述初步結果光形,以求得對應所述初步結果光形的一初步結果函數;(F)比較所述初步結果函數以及所述初步目標函數;(G)根據所述初步結果函數與所述初步目標函數的比較結果,以產生一修正目標函數;(H)根據所述修正目標函數執行體光源的自由曲面運算,以求得一修正自由曲面立體模型;(I)將所述修正自由曲面立體模型導入所述光束追跡軟體,以模擬出一修正結果光形;(J)分析所述修正結果光形,以求得對應所述修正結果光形的一修正結果函數;(K)比較所述修正結果函數以及所述初步目標函數,以求得兩者間的一差異值;(L)判斷所述差異值是否低於一預設門檻值;(M)當所述差異值未低於所述預設門檻值時,重複步驟(G)至(L);以及(N)當所述差異值低於所述預設門檻值時,根據所述修正自由曲面立體模型,以製成所述一次光學自由曲面結構。 In order to solve the above technical problems, one of the technical solutions adopted by the present invention is to provide a method for manufacturing a primary optical free-form surface structure, which includes: (A) obtaining an image corresponding to a target light shape; (B) Analyze the image to obtain a preliminary objective function corresponding to the target light shape; (C) perform a free-form surface operation of the point light source according to the preliminary objective function to obtain a preliminary free-surface solid model; (D) ) Importing the preliminary free-form surface solid model into a beam tracing software to simulate a preliminary result light shape; (E) analyzing the preliminary result light shape to obtain a preliminary result function corresponding to the preliminary result light shape (F) comparing the preliminary result function and the preliminary objective function; (G) generating a modified objective function according to a comparison result of the preliminary result function and the preliminary objective function; (H) according to the modification The objective function performs a free-form surface operation of the volume light source to obtain a modified free-form solid model; (I) imports the modified free-form solid model into the beam tracking software to simulate a Positive result light shape; (J) analyzing the correction result light shape to obtain a correction result function corresponding to the correction result light shape; (K) comparing the correction result function and the preliminary objective function to obtain Obtain a difference between the two; (L) determine whether the difference is lower than a preset threshold; (M) when the difference is not lower than the preset threshold, repeat step (G) To (L); and (N) when the difference value is lower than the preset threshold value, according to the modified free-form solid model, to make the primary optical free-form structure.

本發明的其中一有益效果在於,本發明所提供的一種一次光學自由曲面結構的製作方法,其能通過“比較預先設定的目標函數與模擬計算出的修正結果函數,求得兩者間的一差異值”以及“於差異值尚未低於一預設門檻值時反覆調整修正目標函數”的技術方案,以獲取到最佳的修正自由曲面立體模型,並製成能夠 產生預期目標光形的一次光學自由曲面結構。 One of the beneficial effects of the present invention is that the method for making a one-time optical free-form surface structure provided by the present invention can obtain a value between one of the two by “comparing a preset objective function with a correction result function calculated by simulation”. "Difference value" and "Adjust the correction objective function repeatedly when the difference value has not fallen below a preset threshold value" to obtain the best modified free-form solid model, and make it An optical free-form surface structure that produces the desired target light shape.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。 In order to further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are only for reference and description, and are not intended to limit the present invention.

P1、P2‧‧‧圖像 P1, P2‧‧‧Image

F1‧‧‧初步目標函數 F1‧‧‧ preliminary objective function

F2‧‧‧結果函數 F2‧‧‧Result function

F3‧‧‧修正目標函數 F3‧‧‧ modified objective function

L‧‧‧光照軌跡 L‧‧‧light trail

M‧‧‧自由曲面立體模型 M‧‧‧Freeform solid model

圖1為本發明第一實施例的製作方法的流程圖。 FIG. 1 is a flowchart of a manufacturing method according to a first embodiment of the present invention.

圖2為本發明第一實施例中對應於目標光形的圖像示意圖。 FIG. 2 is a schematic diagram of an image corresponding to a target light shape in the first embodiment of the present invention.

圖3為本發明第一實施例中對應於目標光形的初步目標函數示意圖。 FIG. 3 is a schematic diagram of a preliminary objective function corresponding to a target light shape in the first embodiment of the present invention.

圖4為本發明第一實施例中根據初步目標函數模擬出的自由曲面立體模型示意圖。 FIG. 4 is a schematic diagram of a free-form three-dimensional model simulated according to a preliminary objective function in the first embodiment of the present invention.

圖5為本發明第一實施例中將自由曲面立體模型導入光束追跡軟體模擬其光線軌跡的示意圖。 FIG. 5 is a schematic diagram of simulating a light ray trajectory by importing a free-form three-dimensional model into a beam tracing software in the first embodiment of the present invention.

圖6為本發明第一實施例中光束追跡軟體模擬出的結果光形的示意圖。 FIG. 6 is a schematic diagram of the resulting light shape simulated by the beam tracing software in the first embodiment of the present invention.

圖7為本發明第一實施例中對應於結果光形的修正結果函數示意圖。 FIG. 7 is a schematic diagram of a correction result function corresponding to the resulting light shape in the first embodiment of the present invention.

圖8為本發明第一實施例中根據結果函數與目標函數的比較結果,進一步產生修正目標函數的示意圖。 FIG. 8 is a schematic diagram of further generating a modified objective function according to a comparison result between a result function and an objective function in the first embodiment of the present invention.

圖9為本發明第二實施例產生所述修正目標函數的步驟的流程圖。 FIG. 9 is a flowchart of steps of generating the modified objective function according to the second embodiment of the present invention.

以下是通過特定的具體實施例來說明本發明所公開有關“一次光學自由曲面結構的製作方法”的實施方式,本領域技術人員可由本說明書所公開的內容瞭解本發明的優點與效果。本發明可通過其他不同的具體實施例加以施行或應用,本說明書中的各項細節也可基於不同觀點與應用,在不悖離本發明的構思下進行各 種修改與變更。另外,本發明的附圖僅為簡單示意說明,並非依實際尺寸的描繪,事先聲明。以下的實施方式將進一步詳細說明本發明的相關技術內容,但所公開的內容並非用以限制本發明的保護範圍。 The following is a description of specific embodiments to describe the implementation of the “method for making a primary optical free-form surface structure” disclosed by the present invention. Those skilled in the art can understand the advantages and effects of the present invention from the contents disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and the details in this specification can also be implemented based on different viewpoints and applications without departing from the concept of the present invention. Modifications and changes. In addition, the drawings of the present invention are merely a schematic illustration, and are not drawn according to actual dimensions, and are stated in advance. The following embodiments will further describe the related technical content of the present invention in detail, but the disclosed content is not intended to limit the protection scope of the present invention.

應理解,雖然本文中可能使用術語第一、第二、第三等來描述各種元件或信號等,但這些元件或信號不應受這些術語限制。這些術語乃用以區分一元件與另一元件,或者一信號與另一信號。另外,如本文中所使用,術語“或”視實際情況可能包括相關聯的列出項目中的任一個或者多個的所有組合。 It should be understood that although the terms first, second, third, etc. may be used herein to describe various elements or signals, etc., these elements or signals should not be limited by these terms. These terms are used to distinguish one element from another, or a signal from another signal. In addition, as used herein, the term "or" may include all combinations of any one or more of the associated listed items, as the case may be.

[第一實施例] [First embodiment]

請參閱圖1至圖8所示,圖1為本發明第一實施例的製作方法的流程圖;圖2為本發明第一實施例中對應於目標光形的圖像示意圖;圖3為本發明第一實施例中對應於目標光形的初步目標函數示意圖;圖4為本發明第一實施例中根據初步目標函數模擬出的自由曲面立體模型示意圖;圖5為本發明第一實施例中將自由曲面立體模型導入光束追跡軟體模擬其光線軌跡的示意圖;圖6為本發明第一實施例中光束追跡軟體模擬出的結果光形的示意圖;圖7為本發明第一實施例中對應於結果光形的修正結果函數示意圖;圖8為本發明第一實施例中根據結果函數與目標函數的比較結果,進一步產生修正目標函數的示意圖。由上述圖中可知,本發明第一實施例提供一種一次光學自由曲面結構的製作方法,其包括分析目標光形以求取對應的函數(如圖2以及圖3所示)、初步建立模型(如圖4所示)、通過光束追跡軟體模擬結果光形(如圖5所示)、分析結果光形並求取對應的函數(如圖6以及圖7所示)以及比較結果光形與目標光形所求出的函數(如圖8所示)等步驟,並且在比較結果光形與目標光形所求出的函數差異值小於一預設門檻值時,根據對應的自由曲面立體模型,製成一次光 學自由曲面結構。以下搭配圖1所示的主要流程,通過圖2至圖8各圖式分別解說各步驟的操作細節。 Please refer to FIG. 1 to FIG. 8, FIG. 1 is a flowchart of a manufacturing method of a first embodiment of the present invention; FIG. 2 is a schematic diagram of an image corresponding to a target light shape in the first embodiment of the present invention; A schematic diagram of the preliminary objective function corresponding to the target light shape in the first embodiment of the invention; FIG. 4 is a schematic diagram of a free-form three-dimensional model simulated according to the preliminary objective function in the first embodiment of the invention; FIG. 5 is a diagram of the first embodiment of the invention Importing a free-form three-dimensional model into a beam tracing software to simulate its light trajectory; Figure 6 is a schematic diagram of the resulting light shape simulated by the beam tracing software in the first embodiment of the present invention; Schematic diagram of the correction result function of the result light shape; FIG. 8 is a schematic diagram of further generating the correction objective function according to the comparison result between the result function and the objective function in the first embodiment of the present invention. As can be seen from the above figures, the first embodiment of the present invention provides a method for manufacturing a one-time optical free-form surface structure, which includes analyzing a target light shape to obtain a corresponding function (as shown in FIG. 2 and FIG. 3), and initially establishing a model ( (As shown in Fig. 4), the light shape simulated by the beam tracing software (as shown in Fig. 5), the result light shape is analyzed and the corresponding function (as shown in Figs. 6 and 7) is obtained, and the comparison result light shape and the target When the function obtained by the light shape (as shown in FIG. 8) and other steps are compared, and when the difference between the result of the light shape and the target light shape is less than a preset threshold value, according to the corresponding free-form solid model, Made into a light Learn freeform structure. In the following, with reference to the main flow shown in FIG. 1, the operation details of each step will be explained through the drawings of FIGS. 2 to 8.

首先,請搭配參閱圖1、圖2及圖3所示,在本發明的較佳實施例中,首先需確立的是預期要通過LED產生的目標光形。在具體的產業應用上,一方面,可以是業者針對特定的應用場合(如臥室、客廳、會議室或舞台等),通過軟體求出的最佳照明模擬圖形;另一方面,也可以是實際應用在特定場所的照明結果(例如原先採用其他光源產生照明,欲更換成以LED一次光學結構提供相同的照明),並通過拍攝等方式,獲取目標照明的結果圖形。在本實施例中,本發明首先取得對應於目標光形的圖像P1(如圖2所示,圖1步驟S200),並通過影像處理程序分析圖像P1以求得對應目標光形的初步目標函數F1(如圖3所示,圖1步驟S202)。如同先前所述,圖像P1可以是一個模擬畫面中擷取出的圖檔,也可以是實際進行拍攝後所儲存的影像畫面檔。 First, please refer to FIG. 1, FIG. 2, and FIG. 3. In the preferred embodiment of the present invention, the first thing to be established is the target light shape expected to be generated by the LED. In terms of specific industrial applications, on the one hand, it can be the best lighting simulation graphics obtained by software for specific applications (such as bedrooms, living rooms, conference rooms, or stages); on the other hand, it can also be actual Apply the lighting results in a specific place (such as the original use of other light sources to generate lighting, you want to replace the LED with the same optical structure to provide the same lighting), and obtain the target lighting result graphics by shooting and other methods. In this embodiment, the present invention first obtains an image P1 corresponding to the target light shape (as shown in FIG. 2 and step S200 in FIG. 1), and analyzes the image P1 by an image processing program to obtain a preliminary corresponding light target shape. The objective function F1 (as shown in FIG. 3, step S202 in FIG. 1). As mentioned earlier, the image P1 may be an image file extracted from an analog frame, or an image frame file stored after actual shooting.

在本實施例中,具體執行的分析方式是根據圖像P1各點的照度數值求出對應的初步目標函數F1。值得一提的是,雖然為了便於說明本發明的主要架構,因此在此以平面的圖形做為本實施例中對應於目標光形的圖像P1,但是,本發明的應用並不以此為限,除了先前提到的模擬圖形可以是三維(3 dimensions,縮寫為3D)的格式之外,也可以針對實際存在的物體,通過電腦輔助驗證(Computer Add Verification,縮寫為CAV)技術搭配3D光學量測技術,先分析所要照明的物體表面,求得其3D立體結構,並且配合多角度攝影等技術獲得物體表面各點的目標照度。簡單來說,圖像P1並不限於平面圖形。 In this embodiment, the analysis method specifically performed is to obtain a corresponding preliminary objective function F1 according to the illuminance value of each point of the image P1. It is worth mentioning that, although for the convenience of explaining the main structure of the present invention, a flat graphic is used as the image P1 corresponding to the target light shape in this embodiment, but the application of the present invention is not used as such. Limitation, in addition to the previously mentioned simulation graphics can be in 3 dimensions (abbreviated as 3D) format, it can also be used for 3D optics with computer-aided verification (Computer Add Verification) The measurement technology first analyzes the surface of the object to be illuminated to obtain its 3D three-dimensional structure, and cooperates with multi-angle photography and other technologies to obtain the target illuminance of each point on the surface of the object. In short, the image P1 is not limited to a flat graphic.

另一方面,在根據圖像P1求出對應的初步目標函數F1時,可以通過目前常見的光學模擬軟體(如LightTools、TracePro、ASAP、OSLO或ZEMAX等軟體,但不以此為限)進行運算。其具體細節以及原理不在此贅述。 On the other hand, when the corresponding preliminary objective function F1 is obtained based on the image P1, the calculation can be performed by the current common optical simulation software (such as LightTools, TracePro, ASAP, OSLO, or ZEMAX, but not limited to this). . The specific details and principles are not repeated here.

在求得初步目標函數F1後,本發明首先將提供照明的光源假設為點光源,進行最初步的自由曲面運算。眾所周知的,對於封裝體的為結構來說,LED光源並非真正的點光源,且常常可以被看作是一種能夠180度出光且具有朗伯特(Lambertian)特性的光源,其光強度分佈是中心強最而周邊減弱。然而,本發明為了配合現有光學模擬軟體的限制,以點光源執行自由曲面運算,並求得初步自由曲面立體模型M(如圖4所示,圖1步驟S204)。此部分所依據的原理主要是透過能量守恆以及能量映射的關係再加上斯涅耳定律(Snell`s Law)便可反推所需之自由曲面。在執行自由曲面運算以求得初步自由曲面立體模型M的過程中,會針對自由曲面立體模型M的結構設定一些預設條件(例如透鏡的直徑尺寸或高度等),以使得所生產出來的產品能夠符合實際使用上的裝配需求。 After obtaining the preliminary objective function F1, the present invention first assumes that the light source providing illumination is a point light source, and performs the most preliminary free-form surface operation. As we all know, for the structure of the package, the LED light source is not a true point light source, and can often be regarded as a light source that can emit light at 180 degrees and has Lambertian characteristics. Its light intensity distribution is centered Strongest but weaker in the periphery. However, in order to meet the limitations of the existing optical simulation software, the present invention performs a free-form surface calculation with a point light source, and obtains a preliminary free-form solid model M (as shown in FIG. 4 and step S204 in FIG. 1). The principle on which this part is based is mainly through the relationship between energy conservation and energy mapping plus Snell`s Law, which can be used to infer the required free-form surface. In the process of performing a free-form surface calculation to obtain a preliminary free-form solid model M, some preset conditions (such as the diameter or height of a lens) are set for the structure of the free-form solid model M, so that the produced product Able to meet the assembly needs in practical use.

倘若直接以前述初步自由曲面立體模型M製成實際的一次光學自由曲面結構,此時其所投射出的光形,勢必無法符合原先預期的目標光形。其理由正如前述,由於實際的LED光源並非點光源,因此與理想的點光源之間存在偏誤,在靠近中央處的光強度將會高於周邊的光強度。因此之故,本發明並不直接以初步自由曲面立體模型M實際生產所需的一次光學自由曲面結構,而是將此一初步自由曲面立體模型M導入光束追跡軟體中,以通過光束追跡軟體模擬LED光源通過此一初步自由曲面立體模型M所投射出的光照軌跡L(如圖5所示),並且據此光照軌跡L投射在目標物體表面的照射結果,模擬出對應的結果光形(如圖1步驟S206)。 If an actual primary optical free-form surface structure is made directly from the aforementioned preliminary free-form solid model M, the light shape projected at this time cannot meet the originally expected target light shape. The reason is as mentioned above, because the actual LED light source is not a point light source, there is a deviation from the ideal point light source, and the light intensity near the center will be higher than the surrounding light intensity. Therefore, the present invention does not directly use the optical free-form surface structure required for the actual production of the preliminary free-form three-dimensional model M directly, but rather introduces this preliminary free-form three-dimensional model M into the beam tracing software for simulation by the beam tracing software. The LED light source passes the light trajectory L projected by this preliminary free-form three-dimensional model M (as shown in FIG. 5), and according to the irradiation result of the light trajectory L projected on the surface of the target object, the corresponding light shape (such as (Step S206 of FIG. 1).

在通過光束追跡軟體模擬LED光源所投射出的光照軌跡時,也可採用前述LightTools或TracePro等軟體的功能(同樣不以此為限)。具體來說,在此一步驟中會實際考慮所選用的材料屬性對光線行進軌跡的影響,在相關光學應用軟體上,通常可以通過材料編輯器或其他類似功能進一步定義材料的名稱、插值 (interpolation)、溫度、折射率或者吸收波長等參數。更重要的是,在此一步驟中,也會實際考慮LED光源的發光特性以進行模擬。此部份的技術細節,在後文會再詳細討論。 When simulating the light trajectory projected by the LED light source through the beam tracing software, the functions of the aforementioned software such as LightTools or TracePro can also be used (the same is not limited to this). Specifically, in this step, the effect of the selected material properties on the trajectory of the light is actually considered. On the related optical application software, the material name and interpolation can be further defined through the material editor or other similar functions. (interpolation), temperature, refractive index, or absorption wavelength. More importantly, in this step, the light-emitting characteristics of the LED light source are also actually considered for simulation. The technical details of this part will be discussed in detail later.

請一併參閱圖2以及圖6所示,如同先前所述,由於實際的LED光源在靠近中央處的光強度高於周邊的光強度,因此,若將前述模擬結果所產生的結果光形以圖像P2表示,並比較圖6的圖像P2與圖2的圖像P1,可以發現對應於結果光形的圖像P2與原先期望的目標光形的圖像P1並不一致。此時,為了能夠通過較客觀化的比較基準了解兩者間的差異,並進一步執行後續的修正步驟,本發明通過影像處理程序分析圖像P2以求得對應於結果光形的初步結果函數F2(如圖7所示,圖1步驟S208)。 Please refer to FIG. 2 and FIG. 6 together. As mentioned earlier, since the light intensity of the actual LED light source near the center is higher than that of the surrounding light, if the result of the simulation result is The image P2 represents and compares the image P2 of FIG. 6 with the image P1 of FIG. 2. It can be found that the image P2 corresponding to the resulting light shape is not consistent with the image P1 of the originally desired target light shape. At this time, in order to understand the difference between the two through an objective comparison benchmark and further perform subsequent correction steps, the present invention analyzes the image P2 through an image processing program to obtain a preliminary result function F2 corresponding to the resulting light shape. (As shown in FIG. 7, step S208 in FIG. 1).

在將對應於目標光形的初步目標函數F1與對應於結果光形的初步結果函數F2相比較時(如圖8所示,圖1步驟S210),可以明顯發現初步結果函數F2的中間峰值較初步目標函數F1的中間峰值來得高。而在接近周邊處,初步結果函數F2的數值就低於初步目標函數F1的數值。由此可知,直接以初步目標函數F1導入系統,執行步驟S204至步驟S208所獲得的結果函數F2並不會與初步目標函數F1一致,換句話說,倘若直接以初步目標函數F1導入系統,執行步驟S204獲得的自由曲面立體模型M,並據以生產一次光學自由曲面結構,其所投射出的光形並不會是理想的目標光形。然而,本發明的目的在於找出能夠投射出理想目標光形的一次光學自由曲面結構,因此,必須找出一個自由曲面立體模型M,其所投射出的結果光形所對應的結果函數F2,與分析對應於目標光形的圖像P1所產生的初步目標函數F1之間,能夠具備足夠高度的一致性。 When comparing the preliminary objective function F1 corresponding to the target light shape with the preliminary result function F2 corresponding to the resulting light shape (as shown in FIG. 8 and step S210 in FIG. 1), it can be clearly found that the intermediate peak value of the preliminary result function F2 is relatively The intermediate peak value of the preliminary objective function F1 comes high. Near the periphery, the value of the preliminary result function F2 is lower than the value of the preliminary objective function F1. It can be seen that the preliminary objective function F1 is directly imported into the system, and the result function F2 obtained by executing steps S204 to S208 will not be consistent with the preliminary objective function F1. In other words, if the preliminary objective function F1 is directly imported into the system and executed, The free-form surface solid model M obtained in step S204 is used to produce an optical free-form surface structure, and the projected light shape will not be the ideal target light shape. However, the purpose of the present invention is to find a primary optical free-form surface structure capable of projecting an ideal target light shape. Therefore, it is necessary to find a free-form three-dimensional model M, and a result function F2 corresponding to the projected light shape. A sufficient degree of consistency can be achieved with the preliminary objective function F1 generated by analyzing the image P1 corresponding to the target light shape.

具體來說,本發明此時會比較結果函數F2與初步目標函數F1,並根據比較結果進一步產生一組修正目標函數F3(如圖1步驟S212)。在本實施例中,具體的調整方式是在維持初步目標函數 F1的曲線下面積恆定的前提下,根據初步結果函數F2調整初步目標函數F1各座標位置的數值,以獲得修正目標函數F3各座標位置的數值。具體的說,當初步結果函數F2在特定座標位置的數值高於初步目標函數F1在該特定座標位置的數值時,則調降初步目標函數F1在該特定座標位置的數值。另一方面,在初步結果函數F2的數值低於初步目標函數F1的數值的座標位置,調升初步目標函數F1的數值。通過前述作法,以產生修正目標函數F3。在此必須特別一提的是,本發明獲取修正目標函數F3的做法並不以此為限。 Specifically, the present invention compares the result function F2 with the preliminary objective function F1 at this time, and further generates a set of modified objective functions F3 according to the comparison result (see step S212 in FIG. 1). In this embodiment, the specific adjustment method is to maintain the preliminary objective function On the premise that the area under the curve of F1 is constant, the values of the coordinates of the preliminary objective function F1 are adjusted according to the preliminary result function F2 to obtain the values of the coordinates of the modified objective function F3. Specifically, when the value of the preliminary result function F2 at a specific coordinate position is higher than the value of the preliminary objective function F1 at the specific coordinate position, the value of the preliminary objective function F1 at the specific coordinate position is reduced. On the other hand, at a position where the value of the preliminary result function F2 is lower than the value of the preliminary objective function F1, the value of the preliminary objective function F1 is raised. Through the foregoing method, a modified objective function F3 is generated. It must be particularly mentioned here that the method for obtaining the modified objective function F3 in the present invention is not limited to this.

接下來,本發明以此修正目標函數F3做為輸入函數,再次執行自由曲面運算,以求得對應於修正目標函數F3的修正自由曲面立體模型M(如圖1步驟S214)。同樣地,接下來將對應於修正目標函數F3的修正自由曲面立體模型M導入光束追跡軟體中,以通過光束追跡軟體模擬LED光源通過此一修正自由曲面立體模型M投射在目標物體表面的照射結果,以模擬出對應的修正結果光形(如圖1步驟S216)。模擬出對應的修正結果光形後,再根據修正結果光形求得對應於修正結果光形的結果函數F2(如圖1步驟S218),以便與“初步目標函數F1”(而非修正目標函數F3)之間進行客觀化的比較,並且求取兩者間的一個差異值(如圖1步驟S220)。 Next, the present invention uses the modified objective function F3 as an input function, and performs freeform surface calculation again to obtain a modified freeform solid model M corresponding to the modified objective function F3 (see step S214 in FIG. 1). Similarly, the modified free-form three-dimensional model M corresponding to the modified objective function F3 is then introduced into the beam tracing software to simulate the illumination result of the LED light source projected on the surface of the target object by the modified free-form three-dimensional model M through the beam tracing software. To simulate the light shape of the corresponding correction result (see step S216 in FIG. 1). After simulating the corresponding correction result light shape, the result function F2 corresponding to the correction result light shape is obtained according to the correction result light shape (as shown in step S218 in FIG. 1), so as to match the "preliminary objective function F1" (instead of the modified objective function). F3) perform an objective comparison between them, and find a difference between the two (see step S220 in FIG. 1).

如同先前所述,本發明期望能夠獲得與初步目標函數F1之間具備足夠高度的一致性的結果函數F2,因此之故,在將對應於修正結果光形的結果函數F2與初步目標函數F1相比較並求得前述差異值之後,本發明會將此差異值與預先設定的預設門檻值相互比較(如圖1步驟S222)。 As mentioned earlier, the present invention expects to obtain a result function F2 with a sufficient degree of consistency with the preliminary objective function F1. Therefore, the result function F2 corresponding to the light shape of the correction result is phased with the preliminary objective function F1. After comparing and obtaining the aforementioned difference value, the present invention compares the difference value with a preset threshold value set in advance (see step S222 in FIG. 1).

十分容易理解地,當結果函數F2與初步目標函數F1間的差異值越小,表示兩者間的近似性越高,也就越符合本發明所欲達成之目的。 It is quite easy to understand that when the difference between the result function F2 and the preliminary objective function F1 is smaller, it indicates that the higher the similarity between the two, the more it meets the purpose of the present invention.

因此,倘若結果函數F2與初步目標函數F1間的差異值能夠小於預設門檻值,則表示通過修正目標函數F3執行自由曲面運算所求得的修正自由曲面立體模型M,其通過光束追跡軟體所模擬出的光形與目標光形具有符合需求的一致性,因此,即可進入步驟S224,根據修正自由曲面立體模型M製成的一次光學自由曲面結構。 Therefore, if the difference between the result function F2 and the preliminary objective function F1 can be less than a preset threshold value, it means that the modified free-form solid model M obtained by performing the free-form operation through the modified objective function F3 is obtained by the beam tracing software. The simulated light shape and the target light shape are consistent with requirements, and therefore, it can proceed to step S224, and a primary optical free-form structure made according to the modified free-form solid model M.

反之,倘若結果函數F2與初步目標函數F1間的差異值大於預設門檻值,則表示通過修正目標函數F3所求得的修正自由曲面立體模型M尚不能夠生產出符合需求的一次光學自由曲面結構。此時,則必須根據步驟S220的比較結果,再次針對初步目標函數F1進行修正,重新獲得一組新的修正目標函數F3。由於先前的步驟中已經通過調整修正了實際LED光源與理想點光源的之間偏誤,因此,相較於先前直接通過初步目標函數F1得到的結果函數F2,通過修正目標函數F3經過一連串步驟所得到的結果函數F2,其與初步目標函數F1間的差異值會變得更小。在反覆進行步驟S212至步驟S220的過程中,會逐漸獲取到更小的差異值(意即,結果函數F2逼近初步目標函數F1),並且在差異值能夠小於預設門檻值時,獲取到符合需求的修正自由曲面立體模型M,並根據修正自由曲面立體模型M執行模流分析,以建立生產一次光學自由曲面結構所需的模具,進而通過模具製成所需的一次光學自由曲面結構。 Conversely, if the difference between the result function F2 and the preliminary objective function F1 is greater than a preset threshold value, it means that the modified free-form surface solid model M obtained by modifying the objective function F3 cannot yet produce a primary optical free-form surface that meets the requirements. structure. At this time, according to the comparison result of step S220, the preliminary objective function F1 must be modified again to obtain a new set of modified objective functions F3. Because the deviation between the actual LED light source and the ideal point light source has been corrected in the previous steps, compared with the previous result function F2 obtained directly through the preliminary objective function F1, the objective function F3 has been modified through a series of steps. The difference between the obtained function F2 and the preliminary objective function F1 becomes smaller. In the process of repeatedly performing steps S212 to S220, a smaller difference value is gradually obtained (that is, the result function F2 approaches the preliminary objective function F1), and when the difference value can be less than a preset threshold value, a match is obtained. The required modified free-form three-dimensional model M is performed, and a mold flow analysis is performed according to the modified free-form three-dimensional model M to establish a mold required for producing an optical free-form surface structure, and then the required optical free-form surface structure is made from the mold.

綜合上列說明,搭配圖1所示的流程以及圖2至圖8所示的元件符號,初步整理本發明主要流程架構如下:步驟S200:取得對應於目標光形的圖像P1;步驟S202:分析圖像P1,以求得對應於目標光形的初步目標函數F1;步驟S204:根據初步目標函數F1執行點光源的自由曲面運算,以求得初步自由曲面立體模型M; 步驟S206:將初步自由曲面立體模型M導入光束追跡軟體,以模擬出初步結果光形;步驟S208:分析初步結果光形,以求得對應於初步結果光形的初步結果函數F2;步驟S210:比較初步結果函數F2以及初步目標函數F1;步驟S212:根據初步結果函數F2與初步目標函數F1的比較結果產生修正目標函數F3;步驟S214:根據修正目標函數F3執行自由曲面運算,以求得修正自由曲面立體模型;步驟S216:將修正自由曲面立體模型導入光束追跡軟體,以模擬出修正結果光形;步驟S218:分析修正結果光形,以求得對應修正結果光形的修正結果函數F2;步驟S220:比較修正結果函數F2以及初步目標函數F1,以求得兩者間的一差異值;步驟S222:判斷差異值是否低於預設門檻值,當差異值未低於預設門檻值時,重複步驟S212至步驟S222,否則,進入步驟S224;以及步驟S224:根據修正自由曲面立體模型製成一次光學自由曲面結構。 Based on the above description, with the process shown in FIG. 1 and the component symbols shown in FIG. 2 to FIG. 8, the main process structure of the present invention is initially arranged as follows: Step S200: obtaining an image P1 corresponding to the target light shape; Step S202: Analyze the image P1 to obtain a preliminary objective function F1 corresponding to the target light shape; step S204: perform a free-form surface operation of the point light source according to the preliminary objective function F1 to obtain a preliminary free-form solid model M; Step S206: import the preliminary free-form surface solid model M into the beam tracing software to simulate the preliminary result light shape; step S208: analyze the preliminary result light shape to obtain a preliminary result function F2 corresponding to the preliminary result light shape; step S210: Compare the preliminary result function F2 and the preliminary objective function F1; step S212: generate a modified objective function F3 according to the comparison result between the preliminary result function F2 and the preliminary objective function F1; step S214: perform a free-form surface operation according to the modified objective function F3 to obtain a correction Free-form three-dimensional model; Step S216: Import the modified free-form three-dimensional model into the beam tracking software to simulate the light shape of the correction result; Step S218: Analyze the light shape of the correction result to obtain the correction result function F2 corresponding to the light shape of the correction result; Step S220: Compare the correction result function F2 and the preliminary objective function F1 to obtain a difference value between the two; Step S222: determine whether the difference value is lower than a preset threshold value, and when the difference value is not lower than the preset threshold value , Repeat step S212 to step S222, otherwise, go to step S224; and step S224: according to the modified free song The three-dimensional surface model is made into an optical free-form surface structure.

[第二實施例] [Second embodiment]

如同前述,本發明在結果函數F2與初步目標函數F1間的差異值未低於(大於或等於)預設門檻值時,會進一步產生一組修正目標函數F3,且本發明獲取修正目標函數F3的做法並不以第一實施例中所記載的作法為限。 As mentioned above, when the difference value between the result function F2 and the preliminary objective function F1 is not less than (greater than or equal to) a preset threshold value, a set of modified objective functions F3 is further generated, and the present invention obtains the modified objective function F3. The method is not limited to the method described in the first embodiment.

請搭配參閱圖1及圖9所示,圖9為本發明第二實施例產生所述修正目標函數的步驟的流程圖。在本發明的第二實施例中, 首先是根據結果函數F2與初步目標函數F1間的比較結果求得一差異函數,並根據前述差異函數,亂數產生大量的修正目標函數F3(步驟S300),且依據圖1所示的步驟214至步驟S218分別產生對應各別修正目標函數F3的修正結果函數F2(步驟S302)。 Please refer to FIG. 1 and FIG. 9 for reference. FIG. 9 is a flowchart of steps for generating the modified objective function according to the second embodiment of the present invention. In a second embodiment of the invention, First, a difference function is obtained according to the comparison result between the result function F2 and the preliminary objective function F1, and a large number of modified objective functions F3 are generated randomly according to the aforementioned difference function (step S300), and according to step 214 shown in FIG. 1 From step S218, a correction result function F2 corresponding to each of the respective correction objective functions F3 is generated (step S302).

前述流程的主要目的,是先在結果函數F2與初步目標函數F1的數值區間內,通過亂數運算一次性地產生大量的修正目標函數F3,並據以建立出許多組修正目標函數F3與修正結果函數F2。其與第一實施例之間的主要不同點,在於第一實施例是在每次產生一組修正目標函數F3以及對應的修正結果函數F2後,以修正結果函數F2重新與初步目標函數F1做比較,並逐步逼近理想值。 The main purpose of the aforementioned process is to first generate a large number of modified objective functions F3 through random number operations in the numerical interval between the result function F2 and the preliminary objective function F1, and based on this, establish many sets of modified objective functions F3 and modifications. The result function F2. The main difference between it and the first embodiment is that the first embodiment is to re-do the preliminary objective function F1 with the preliminary correction function F2 after generating a set of correction objective function F3 and the corresponding correction result function F2. Compare and gradually approach the ideal value.

在此一第二實施例中,產生許多組相互對應的修正目標函數F3與修正結果函數F2後,接著便將相互對應的修正目標函數F3以及修正結果函數F2提供予深度學習系統,以執行所述深度學習系統的訓練程序(步驟S304)。具體來說,所採用的深度學習系統可以是Caffe、Theano、TensorFlow或者Lasagne、Keras甚至DSSTNE等的框架,本發明並不具體限定採用何種框架進行。藉此,即可通過深度學習系統建立預測演算法,其用以預測對應於所輸入的修正目標函數F3的修正結果函數F2(步驟S306)。 In this second embodiment, after generating a plurality of sets of corresponding correction objective functions F3 and correction result functions F2, the corresponding correction objective functions F3 and correction result functions F2 are then provided to the deep learning system to execute all The training procedure of the deep learning system is described (step S304). Specifically, the adopted deep learning system may be a framework such as Caffe, Theano, TensorFlow, or Lasagne, Keras, or even DSSTNE, etc., and the present invention does not specifically limit which framework to adopt. Thereby, a prediction algorithm can be established by the deep learning system to predict the correction result function F2 corresponding to the input correction objective function F3 (step S306).

具體應用上,可以先將其中一部分的組合提供予深度學習系統建立預測演算法,並將其餘的組合用於驗證預測演算法的正確性。舉例來說,倘若有100組相互對應的修正目標函數F3以及修正結果函數F2,則將其中80組相互對應的修正目標函數F3以及修正結果函數F2提供予深度學習系統執行訓練程序,並據以建立預測演算法。在建立好預測演算法後,便將剩餘的20組相互對應的修正目標函數F3以及修正結果函數F2用於驗證,其中,以本發明的目的而言,較佳的驗證方式是通過預測演算法預測修正結果函數F2所對應的修正目標函數F3,並在獲得預測結果時,與先前已知的修正目標函數F3相比較,確認預測演算法所預測的結 果是否與修正結果函數F2實際對應的修正目標函數F3相符合。 In specific applications, some of the combinations can be provided to a deep learning system to establish a prediction algorithm, and the remaining combinations can be used to verify the correctness of the prediction algorithm. For example, if there are 100 sets of correction objective function F3 and correction result function F2 corresponding to each other, 80 sets of correction objective function F3 and correction result function F2 corresponding to each other are provided to the deep learning system to execute the training program, and accordingly Build predictive algorithms. After the prediction algorithm is established, the remaining 20 groups of corresponding correction objective function F3 and correction result function F2 are used for verification. Among them, for the purpose of the present invention, the better verification method is through the prediction algorithm. The modified objective function F3 corresponding to the predicted modified result function F2 is compared with the previously known modified objective function F3 when the prediction result is obtained to confirm the results predicted by the prediction algorithm. Whether the result is consistent with the modified objective function F3 corresponding to the modified result function F2.

倘若所獲得的預測結果不盡理想,可以通過亂數再產生更大量的修正目標函數F3,並建立更多組修正結果函數F2與修正目標函數F3間的對應關係,並再次執行深度學習系統執行訓練程序。更進一步來說,也可以考慮根據某一修正結果函數F2(相較於一開始所採用的初步結果函數F2)與初步目標函數F1執行亂數運算,以藉此產生更多樣的修正結果函數F2與修正目標函數F3間的對應關係,進而使深度學習系統的訓練程序能夠獲得更多樣化來源的學習樣品。 If the obtained prediction result is not satisfactory, a larger number of modified objective functions F3 can be generated by random numbers, and more sets of correspondences between the modified result functions F2 and the modified objective functions F3 can be established, and the deep learning system is executed again. Training procedures. Furthermore, you can also consider performing a random number operation based on a certain correction result function F2 (compared to the preliminary result function F2 used at the beginning) and the preliminary objective function F1, so as to generate more diverse correction result functions. The corresponding relationship between F2 and the modified objective function F3, so that the training program of the deep learning system can obtain more diverse learning samples.

最後,當執行過幾次驗證確認,評估預測演算法所預測的結果精度已經能夠符合預期時,則可將最初根據目標光形所對應的圖像P1所獲得的初步目標函數F1,設定成預測演算法中的修正結果函數F2,並通過預測演算法逆推所對應的修正目標函數F3(步驟S308)。據此獲得修正目標函數F3後,可進一步執行圖1所示的步驟S214,以求出對應的自由曲面立體模型M,並根據此一自由曲面立體模型M生產製作所需的一次光學自由曲面結構。另一方面,也可以在實際進行生產前,更進一步執行圖1所示的步驟S216,以實際模擬出對應於修正目標函數F3的修正結果函數F2,並確認是否確實與初步目標函數F1相符合。 Finally, when several verifications have been performed and the accuracy of the results predicted by the evaluation prediction algorithm can meet expectations, the preliminary objective function F1 obtained initially based on the image P1 corresponding to the target light shape can be set as a prediction The correction result function F2 in the algorithm, and the corresponding correction objective function F3 is inferred by the prediction algorithm (step S308). After obtaining the modified objective function F3 according to this, step S214 shown in FIG. 1 may be further performed to obtain a corresponding free-form solid model M, and the optical free-form surface structure required for production may be produced according to this free-form solid model M. . On the other hand, before actual production, step S216 shown in FIG. 1 may be further performed to actually simulate the correction result function F2 corresponding to the correction objective function F3 and confirm whether it is indeed consistent with the preliminary objective function F1. .

綜合上列說明,搭配圖9所示的流程以及圖2至圖8所示的元件符號,簡要整理本發明第二實施例中,用以獲取最終所需的修正目標函數F3的主要流程架構如下: Based on the above description, with the flow shown in FIG. 9 and the component symbols shown in FIG. 2 to FIG. 8, the main flow structure for obtaining the finally required modified objective function F3 in the second embodiment of the present invention is briefly summarized as follows :

步驟S300:亂數產生大量的修正目標函數F3; Step S300: the random number generates a large number of modified objective functions F3;

步驟S302:依據圖1所示的步驟214至步驟S218分別產生對應各別修正目標函數F3的修正結果函數F2; Step S302: According to steps 214 to S218 shown in FIG. 1, a correction result function F2 corresponding to each of the correction objective functions F3 is generated;

步驟S304:將相互對應的修正目標函數F3以及修正結果函數F2提供予深度學習系統,以執行所述深度學習系統的訓練程序。 Step S304: Provide the corresponding correction target function F3 and the correction result function F2 to the deep learning system to execute the training program of the deep learning system.

步驟S306:通過深度學習系統建立預測演算法,以預測修正目標函數F3與修正結果函數F2間的對應關係;以及 Step S306: Establish a prediction algorithm through a deep learning system to predict the correspondence between the modified objective function F3 and the modified result function F2; and

步驟S308:將初步目標函數F1設定成修正結果函數F2,並通過預測演算法逆推對應的修正目標函數F3。 Step S308: The preliminary objective function F1 is set to the correction result function F2, and the corresponding correction objective function F3 is inferred by the prediction algorithm.

[參數的預調整] [Parameter pre-adjustment]

為了確保光束追跡軟體所模擬出的鋼結果光照軌跡L,能夠更貼近實際應用時的光照軌跡L,進而模擬出最正確的結果光形,需要根據所採用的材料屬性等,針對光束追跡軟體中的各項設定參數進行微調。在本發明中,在將修正自由曲面立體模型M導入光束追跡軟體前,還進一步包括了針對參數進行預調整的步驟。具體來說,首先是先建構出多個不同的立體模型,其多樣性越高,越能夠反映不同角度下光照軌跡L的變化情形,在後續應用上的效果越佳。再建立出多個不同的立體模型後,便根據該等立體模型,以實際生產一次光學自由曲面結構所要採用的材料以及製程,分別製備多個試樣用光學結構,並且根據多個試樣用光學結構修正光束追跡軟體的設定參數。 In order to ensure that the steel result light trajectory L simulated by the beam tracing software can be closer to the light trajectory L in actual application, and then the most accurate result light shape is simulated, the beam tracing software needs to be targeted according to the material properties used, etc. Each setting parameter is fine-tuned. In the present invention, before the modified free-form surface solid model M is introduced into the beam tracking software, a step of pre-adjusting parameters is further included. Specifically, first, a plurality of different three-dimensional models are constructed first. The higher the diversity, the more it can reflect the change of the light trajectory L at different angles, and the better the effect in subsequent applications. After establishing a plurality of different three-dimensional models, according to the three-dimensional models, the materials and processes used to actually produce the optical free-form surface structure are used to prepare multiple optical structures for samples, and according to the multiple samples, The optical structure corrects the setting parameters of the beam tracking software.

具體來說,以所要採用的材料以及製程製備好多個試樣用光學結構後,便實際採用製備完成的試樣用光學結構進行照明,以獲得實際的光照軌跡L以及實際形成的結果光形。換句話說,首先要通過多個試樣用光學結構以分別產生對應的多個光照圖案。接著,在獲取實際的光照軌跡L以及實際形成的結果光形後,便能夠通過比較光束追跡軟體所模擬的結果與實際結果,對光束追跡軟體中的各項參數進行校調。也就是說,將多個立體模型分別導入光束追跡軟體,以產生分別對應多個立體模型的多個模擬試樣光形。在針對先前獲得的多個光照圖案進行分析後,可以獲得對應於多個光照圖案的多個實際光形。將多個實際光形分別與對應的多個模擬試樣光形相比較,便可以據以修正光束追跡軟體的 設定參數。 Specifically, after preparing a plurality of sample optical structures with the materials to be used and the manufacturing process, the prepared samples are actually illuminated with the optical structures to obtain the actual light trajectory L and the actual resulting light shape. In other words, firstly, the optical structures for a plurality of samples are passed through to generate a plurality of corresponding illumination patterns, respectively. Then, after obtaining the actual light trajectory L and the actual formed light shape, the parameters in the beam tracing software can be adjusted by comparing the results simulated by the beam tracing software with the actual results. That is, a plurality of three-dimensional models are respectively introduced into the beam tracing software to generate a plurality of simulated sample light shapes corresponding to the plurality of three-dimensional models, respectively. After analyzing the previously obtained multiple light patterns, multiple actual light shapes corresponding to the multiple light patterns can be obtained. By comparing multiple actual light shapes with corresponding multiple simulated sample light shapes, the beam tracking software can be modified accordingly. Setting parameters.

另一方面,為了讓模擬出來的自由曲面立體模型M,與實際生產的一次光學自由曲面結構,有更好的擬真效果,本發明在將修正自由曲面立體模型M導入光束追跡軟體前,還可以通過多個試樣用光學結構修正執行模流分析時所需的物性數據以及成型條件參數。具體應用上,可以通過CAV技術執行逆向三維表面掃描技術,以確認多個試樣用光學結構的實際形狀,並將多個實際形狀分別與對應的多個立體模型相比較,進而能夠據此修正執行模流分析時所需的物性數據以及成型條件參數。 On the other hand, in order to make the simulated free-form three-dimensional model M and the optical free-form surface structure actually produced have better fidelity, the present invention also introduces the modified free-form three-dimensional model M into the beam tracking software before The optical structure for multiple samples can be used to correct the physical property data and molding condition parameters required when performing mold flow analysis. In specific applications, CAV technology can be used to perform reverse three-dimensional surface scanning technology to confirm the actual shape of the optical structure for multiple samples, and compare the multiple actual shapes with corresponding corresponding three-dimensional models, which can be corrected accordingly. Physical property data and molding condition parameters required for mold flow analysis.

[實施例的有益效果] [Advantageous Effects of the Embodiment]

本發明的其中一有益效果在於,本發明所提供的一種一次光學自由曲面結構的製作方法,其能通過“比較預先設定的目標函數與模擬計算出的修正結果函數,求得兩者間的一差異值”以及“於差異值尚未低於一預設門檻值時反覆調整修正目標函數”的技術方案,以獲取到最佳的修正自由曲面立體模型,並製成能夠產生預期目標光形的一次光學自由曲面結構。 One of the beneficial effects of the present invention is that the method for making a one-time optical free-form surface structure provided by the present invention can obtain a value between one of the two by “comparing a preset objective function with a correction result function calculated by simulation”. "Difference value" and "repeatedly adjust the modified objective function when the difference value has not fallen below a preset threshold" to obtain the best modified free-form solid model and make a primary optical that can produce the desired target light shape Free-form surface structure.

以上所公開的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均包含於本發明的申請專利範圍內。 The contents disclosed above are only the preferred and feasible embodiments of the present invention, and therefore do not limit the scope of patent application of the present invention. Therefore, any equivalent technical changes made by using the description and drawings of the present invention are included in the application of the present invention Within the scope of the patent.

Claims (10)

一種一次光學自由曲面結構的製作方法,其包括:(A)取得對應於一目標光形的一圖像;(B)分析所述圖像,以求得對應所述目標光形的一初步目標函數;(C)根據所述初步目標函數執行點光源的自由曲面運算,以求得一初步自由曲面立體模型;(D)將所述初步自由曲面立體模型導入一光束追跡軟體,以模擬出一初步結果光形;(E)分析所述初步結果光形,以求得對應所述初步結果光形的一初步結果函數;(F)比較所述初步結果函數以及所述初步目標函數;(G)根據所述初步結果函數與所述初步目標函數的比較結果,以產生一修正目標函數;(H)根據所述修正目標函數執行體光源的自由曲面運算,以求得一修正自由曲面立體模型;(I)將所述修正自由曲面立體模型導入所述光束追跡軟體,以模擬出一修正結果光形;(J)分析所述修正結果光形,以求得對應所述修正結果光形的一修正結果函數;(K)比較所述修正結果函數以及所述初步目標函數,以求得兩者間的一差異值;(L)判斷所述差異值是否低於一預設門檻值;(M)當所述差異值未低於所述預設門檻值時,根據所述修正結果函數與所述初步目標函數的比較結果,以產生另一修正目標函數,並重複步驟(H)至(L);以及(N)當所述差異值低於所述預設門檻值時,根據所述修正自由曲面立體模型,以製成所述一次光學自由曲面結構。A manufacturing method of a primary optical free-form surface structure includes: (A) obtaining an image corresponding to a target light shape; (B) analyzing the image to obtain a preliminary target corresponding to the target light shape Function; (C) performing a free-form surface calculation of a point light source according to the preliminary objective function to obtain a preliminary free-form solid model; (D) importing the preliminary free-form solid model into a beam tracing software to simulate a Preliminary result light shape; (E) analyzing the preliminary result light shape to obtain a preliminary result function corresponding to the preliminary result light shape; (F) comparing the preliminary result function and the preliminary objective function; (G) ) Generating a modified objective function according to a comparison result between the preliminary result function and the preliminary objective function; (H) performing a free-form surface operation of a volume light source according to the modified objective function to obtain a modified free-surface solid model (I) importing the modified free-form surface solid model into the beam tracing software to simulate a correction result light shape; (J) analyzing the correction result light shape to obtain a corresponding correction result A correction result function of the shape; (K) comparing the correction result function and the preliminary objective function to obtain a difference value between the two; (L) determining whether the difference value is lower than a preset threshold value (M) when the difference value is not lower than the preset threshold value, according to a comparison result between the correction result function and the preliminary objective function, to generate another modified objective function, and repeat step (H) To (L); and (N) when the difference value is lower than the preset threshold value, according to the modified free-form solid model, to make the primary optical free-form structure. 如請求項1所述的製作方法,其中,產生所述修正目標函數的過程,還包括下列步驟:在所述初步目標函數的曲線下面積維持恆定的前提下,根據所述初步結果函數調整所述初步目標函數。The manufacturing method according to claim 1, wherein the process of generating the modified objective function further includes the following steps: on the premise that the area under the curve of the preliminary objective function is maintained constant, adjusting all the factors according to the preliminary result function. The preliminary objective function is described. 如請求項2所述的製作方法,其中,當所述初步結果函數的數值高於所述初步目標函數的數值的座標位置時,調降所述初步目標函數的數值。The manufacturing method according to claim 2, wherein when the value of the preliminary result function is higher than the coordinate position of the value of the preliminary objective function, the value of the preliminary objective function is reduced. 如請求項2所述的製作方法,其中,當所述初步結果函數的數值低於所述初步目標函數的數值的座標位置時,調升所述初步目標函數的數值,以產生所述修正目標函數。The manufacturing method according to claim 2, wherein when the value of the preliminary result function is lower than the coordinate position of the value of the preliminary objective function, the value of the preliminary objective function is raised to generate the correction target. function. 如請求項1所述的製作方法,其中,產生所述修正目標函數的過程,還包括下列步驟:根據一差異函數,亂數產生大量的所述修正目標函數,且依據步驟(H)至(J)分別產生對應各別所述修正目標函數的所述修正結果函數;將相互對應的所述修正目標函數以及所述修正結果函數提供予一深度學習系統,以執行所述深度學習系統的訓練程序;通過所述深度學習系統建立一預測演算法,所述預測演算法用以預測對應於所輸入的所述修正目標函數的所述修正結果函數;以及將所述初步目標函數設定成所述修正結果函數,並通過所述預測演算法逆推所述修正目標函數。The manufacturing method according to claim 1, wherein the process of generating the modified objective function further includes the following steps: generating a large number of the modified objective function according to a difference function, and according to steps (H) to ( J) generating the correction result function corresponding to each of the correction objective functions; providing the correction objective function and the correction result function corresponding to each other to a deep learning system to perform training of the deep learning system A program; establishing a prediction algorithm through the deep learning system, the prediction algorithm being used to predict the correction result function corresponding to the input correction objective function; and setting the preliminary objective function to the The result function is modified, and the modified objective function is inferred by the prediction algorithm. 如請求項1所述的製作方法,其中,在將所述修正自由曲面立體模型導入所述光束追跡軟體前,還包括下列步驟:建構多個立體模型;根據多個所述立體模型分別製備多個試樣用光學結構;以及通過多個所述試樣用光學結構修正所述光束追跡軟體的設定參數。The method according to claim 1, wherein before introducing the modified free-form surface solid model into the beam tracing software, the method further comprises the following steps: constructing a plurality of solid models; and separately preparing a plurality of solid models based on the plurality of solid models. An optical structure for each sample; and a plurality of optical structures for the sample to modify the setting parameters of the beam tracking software. 如請求項6所述的製作方法,其中,通過多個所述試樣用光學結構修正所述光束追跡軟體的設定參數的過程中,還包括下列步驟:通過多個所述試樣用光學結構以分別產生對應的多個光照圖案;將多個所述立體模型分別導入所述光束追跡軟體,以產生分別對應多個所述立體模型的多個模擬試樣光形;以及分析多個所述光照圖案的多個實際光形,並將多個所述實際光形分別與對應的多個所述模擬試樣光形相比較,以修正所述光束追跡軟體的設定參數。The manufacturing method according to claim 6, wherein in the process of correcting the setting parameters of the beam tracing software by using a plurality of optical structures for the sample, the method further includes the following steps: passing a plurality of optical structures for the sample Generating a plurality of corresponding lighting patterns respectively; importing a plurality of the three-dimensional models into the beam tracing software to generate a plurality of simulated sample light shapes respectively corresponding to a plurality of the three-dimensional models; and analyzing a plurality of the light patterns A plurality of actual light shapes of the illumination pattern, and comparing the plurality of actual light shapes with the corresponding plurality of simulated sample light shapes, respectively, to modify the setting parameters of the light beam tracking software. 如請求項1所述的製作方法,其中,在將所述修正自由曲面立體模型導入所述光束追跡軟體前,還包括下列步驟:建構多個立體模型;根據多個所述立體模型分別製備多個試樣用光學結構;以及通過多個所述試樣用光學結構修正執行一模流分析時所需的物性數據以及成型條件參數。The method according to claim 1, wherein before introducing the modified free-form surface solid model into the beam tracing software, the method further comprises the following steps: constructing a plurality of solid models; and separately preparing a plurality of solid models based on the plurality of solid models. An optical structure for each sample; and correcting physical property data and molding condition parameters required for performing a mold flow analysis by using a plurality of the optical structures for the sample. 如請求項8所述的製作方法,其中,通過多個所述試樣用光學結構修正執行所述模流分析時所需的物性數據以及成型條件參數的過程中,還包括下列步驟:通過逆向三維表面掃描技術確認多個所述試樣用光學結構的一實際形狀,並將多個所述實際形狀分別與對應的多個所述立體模型相比較,以修正執行所述模流分析時所需的物性數據以及成型條件參數。The manufacturing method according to claim 8, wherein the process of correcting physical property data and molding condition parameters required for performing the mold flow analysis by using a plurality of the optical structures of the sample further includes the following steps: The three-dimensional surface scanning technology confirms an actual shape of a plurality of the optical structures for the sample, and compares the plurality of actual shapes with a corresponding plurality of the three-dimensional models, respectively, so as to modify the position when performing the mold flow analysis. Required physical property data and molding condition parameters. 如請求項8所述的製作方法,還進一步包括:針對所述修正自由曲面立體模型執行所述模流分析,以建立生產所述一次光學自由曲面結構所需的模具。The manufacturing method according to claim 8, further comprising: performing the mold flow analysis on the modified free-form surface solid model to establish a mold required for producing the primary optical free-form surface structure.
TW106139929A 2017-11-17 2017-11-17 Method for producing a primary optical free-form surface structure TWI664545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106139929A TWI664545B (en) 2017-11-17 2017-11-17 Method for producing a primary optical free-form surface structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106139929A TWI664545B (en) 2017-11-17 2017-11-17 Method for producing a primary optical free-form surface structure

Publications (2)

Publication Number Publication Date
TW201923633A TW201923633A (en) 2019-06-16
TWI664545B true TWI664545B (en) 2019-07-01

Family

ID=67702208

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106139929A TWI664545B (en) 2017-11-17 2017-11-17 Method for producing a primary optical free-form surface structure

Country Status (1)

Country Link
TW (1) TWI664545B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287418B (en) * 2020-08-28 2023-12-15 东莞市爱加照明科技有限公司 TIR lens optimal design method, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040079942A1 (en) * 2002-10-29 2004-04-29 Lumileds Lighting, U.S., Llc Enhanced brightness light emitting device spot emitter
CN101067663A (en) * 2007-06-15 2007-11-07 清华大学 Lens used for LED light source
US20090027900A1 (en) * 2006-10-31 2009-01-29 The L.D. Kichler Co. Positionable outdoor lighting
US20090244897A1 (en) * 2008-03-31 2009-10-01 Ronald Edward Anglikowski Light fixture with optional animate object detector and heat sink

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040079942A1 (en) * 2002-10-29 2004-04-29 Lumileds Lighting, U.S., Llc Enhanced brightness light emitting device spot emitter
US20090027900A1 (en) * 2006-10-31 2009-01-29 The L.D. Kichler Co. Positionable outdoor lighting
CN101067663A (en) * 2007-06-15 2007-11-07 清华大学 Lens used for LED light source
US20090244897A1 (en) * 2008-03-31 2009-10-01 Ronald Edward Anglikowski Light fixture with optional animate object detector and heat sink

Also Published As

Publication number Publication date
TW201923633A (en) 2019-06-16

Similar Documents

Publication Publication Date Title
TWI539184B (en) Design method of a freeform imaging lens
CN108345107B (en) Design method of free-form surface illumination system
CN103927421B (en) The implementation method of three-dimensional optical system
CN107490869B (en) Space structure light emitting device
TWI664545B (en) Method for producing a primary optical free-form surface structure
CN107687623A (en) Double optical lens with free curved surface for LED car high beam
CN109870803B (en) Method for manufacturing primary optical free-form surface structure
Bruneton et al. Freeform lens for an efficient wall washer
CN109324410B (en) L ED lens design method for non-planar uniform illumination
TWI642976B (en) Free-form surface lighting system
Le et al. Design of LED free form lens based on improved mesh method
McCarthy et al. LED-based collimating line-light combining freeform and fresnel optics
Chen et al. Aspheric surface lens for LED collimating illumination with low Fresnel loss
CN108506743A (en) A kind of free form surface Fresnel lighting system of high degree of focus
ten Thije Boonkkamp et al. The Monge-Ampere equation for freeform optics
TWI624648B (en) Optical modeling method and electronic apparatus using the same
KR101439746B1 (en) Construction method and system of 3-dimensional freeform lens for illuminating a rectangular area very efficiently and uniformly
CN105373657A (en) Design method for reflection cup forming rectangular spots
CN112539400A (en) Design method of diffuse transmission free-form curved surface based on collimating lens array
Wang et al. Optical analysis of a 3W light-emitting diode (LED) MR16 lamp
Tsai Uniformity and collimation of incoherence Gaussian beam with divergence based on only one Fresnel surface
Shen et al. Beam shaping for two-dimensional laser array by a computational model
Heßling et al. Free-form glass reflectors for non-trivial illumination applications with extended sources
CN112904555A (en) Gaussian beam shaping lens design method based on partial differential equation solution
CN112393136B (en) Method for generating 60-degree beam angle lens structure