A light source alignment method and system
By using image processing technology to determine the center of the light-emitting surface of the light source and using an adjustment mechanism to automatically adjust the position of the light source, the problem of low installation accuracy of existing light sources is solved, and an efficient and precise light source alignment method is achieved, thereby improving the lighting quality of the projector.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHENGDU XGIMI TECH CO LTD
- Filing Date
- 2021-09-07
- Publication Date
- 2026-06-19
Smart Images

Figure CN115775274B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optomechanical assembly technology, and more particularly to a method and system for centering a light source. Background Technology
[0002] The optical engine is the core packaged component of a projector, and the light source is a crucial part of it. Light sources are typically assembled into light source modules, which are then mounted onto the optical engine using positioning components to ensure the required installation precision. However, during the assembly of the light source chips, there is a certain assembly tolerance between the chip positions and the structural lamp board. This tolerance extends to the optical engine, making it difficult to meet its high precision requirements and affecting the overall projection quality. Therefore, alignment is usually necessary during light source installation to ensure the light source's emission center coincides as closely as possible with the center of its mounting position, guaranteeing optical engine brightness and preventing projection quality issues. Existing light source alignment methods typically involve manual adjustment using fixtures, resulting in low installation precision. After installation, the light source's illumination is checked to determine if it is precisely positioned. If the illumination is insufficient, the light source is adjusted. Traditional methods are cumbersome, inefficient, and fail to guarantee projection quality. Summary of the Invention
[0003] The technical problem to be solved and the technical task proposed by this invention is to improve the existing technology and provide a method for centering a light source, which solves the problems of the current technology where the installation of the light source is carried out by manually adjusting it with a fixture, which makes it difficult to ensure the installation accuracy, and the adjustment is cumbersome and inefficient.
[0004] To solve the above technical problems, the technical solution of the present invention is as follows:
[0005] A method for centering a light source, comprising the following steps:
[0006] The light source is placed on the adjustment mechanism to capture the light source image;
[0007] The light source image is subjected to edge detection based on color recognition to obtain an initial boundary image. The initial boundary image is then subjected to distortion removal processing to obtain the edge pattern of the light-emitting surface of the light source. The center data of the light-emitting surface is then calculated from the edge pattern of the light-emitting surface.
[0008] The adjustment mechanism is controlled to adjust the position of the light source according to the center data of the light-emitting surface, so that the center of the light-emitting surface of the light source matches the preset center.
[0009] The light source centering method described in this invention uses image processing to accurately locate the center of the light-emitting surface of the light source. The light-emitting surface has clear and regular edges. Edge detection is performed through image processing to identify the edge shape of the light-emitting surface. The position data of the center of the light-emitting surface is then accurately calculated based on the edge shape. The adjustment mechanism is then automatically adjusted to improve the installation accuracy of the light source. After the light source is adjusted to the preset center, it can be accurately installed onto the light source structure module and then assembled onto the optical engine body, ensuring the assembly accuracy of the light source on the optical engine, thereby improving the illumination quality of the optical engine and the projection effect of the projector. The light-emitting surface of the light source is mainly yellow, with a white outer layer, showing a significant color difference. Therefore, this invention uses color recognition to first perform edge detection on the light source image, thereby obtaining a rough edge shape of the light-emitting surface. Then, distortion removal processing is performed to obtain the accurate edge shape of the light-emitting surface, ultimately ensuring the accuracy of finding the center of the light-emitting surface.
[0010] Furthermore, the step of performing edge detection based on color recognition on the light source image to obtain an initial boundary image includes: dividing the light source image into matrix-distributed cells, identifying the color value of each cell; comparing the color value of each cell with a preset color value, and marking cells exceeding a threshold as boundary cells to obtain the initial boundary image. By dividing the light source image into small cells, the approximate outline of the edge of the luminous surface (i.e., the initial boundary image) can be easily delineated by comparing the color value of each cell.
[0011] Furthermore, the color preset values include a center color preset value and an outer color preset value. The color values of cells in the preset center region of the light source image are identified and averaged to obtain the center color preset value. The color values of cells in the preset outer region of the light source image are identified and averaged to obtain the outer color preset value. The color values of the cells are compared with both the center color preset value and the outer color preset value. Cells exceeding the threshold are marked as boundary cells. This allows for the quick acquisition of the approximate outline of the edge of the luminous surface. When the light source is placed on the adjustment mechanism, it has basic positioning without excessive deviation. Therefore, the center of the luminous surface does not have excessive offset or deflection angle relative to the preset center. This ensures that a certain area of the light source image is always the center of the luminous surface, and a certain area is always the outer white glue of the luminous surface. Thus, the average color value of the cells in that area can be used as the comparison benchmark, which is convenient, efficient, and ensures the accuracy of edge detection. Due to color differences in lighting or the luminous surface itself, setting a fixed color preset value can make it difficult to accurately obtain the edge pattern of the luminous surface. Therefore, this invention uses the acquired light source image to determine the color preset value, making the preset value more accurate and improving the accuracy of edge detection. Traditional image edge detection mainly includes two types of methods: search-based and zero-crossing-based methods. Search-based methods detect boundaries by finding the maximum and minimum values in the first derivative of the image, usually locating the boundary in the direction of the maximum gradient. Zero-crossing-based methods find boundaries by finding the zero crossing of the second derivative of the image. These methods are complex and require a large amount of data. Compared with traditional image edge detection methods, this invention significantly reduces the amount of data processing and improves the efficiency of edge detection.
[0012] Furthermore, the step of obtaining the edge pattern of the luminous surface of the light source after distortion correction of the initial boundary image includes: within a preset vertex region in the initial boundary image, taking the intersection of the horizontal direction with the largest number of boundary grids and the vertical direction with the largest number of boundary grids as edge vertices, and connecting all the edge vertices to obtain the edge pattern of the luminous surface. The approximate outline of the luminous surface edge obtained by edge detection based on color recognition is not regular, making it difficult to obtain the accurate center of the luminous surface. Therefore, distortion correction is performed to obtain a regular outline (i.e., the edge pattern of the luminous surface), and the accurate center of the luminous surface can then be calculated using this regular outline. Because the light-emitting surface of the light source is a regular rectangle, the light source has a preliminary positioning when placed on the adjustment mechanism. That is to say, the light source does not have excessive deviation. The center of the light-emitting surface does not have excessive offset or deflection angle relative to the center of the light source structure module. Thus, the four edges of the light-emitting surface are roughly along the horizontal or vertical direction of the matrix distribution cells. The four vertices of the light-emitting surface will be within a certain range, so a preset vertex area can be set. Then, within this range, the horizontal direction with the most boundary cells and the vertical direction with the most boundary cells are found. The intersection of the two can be identified as the edge vertex of the light-emitting surface. After determining the edge vertex, the edge shape of the light-emitting surface can be obtained by connecting the lines. The accurate center data of the light-emitting surface can be calculated by using the coordinate information of the edge vertex.
[0013] Furthermore, the center data of the luminescent surface includes the position coordinates of the center of the luminescent surface and the deflection angle of the luminescent surface. The luminescent surface of the light source is rectangular, and there is an offset and a deflection angle of the luminescent surface relative to the preset center. In other words, there are three deviation situations of the luminescent surface relative to the preset center: the first is that the center of the luminescent surface does not coincide with the preset center and there is an angle; the second is that the center of the luminescent surface coincides with the preset center but there is an angle; and the third is that the center of the luminescent surface does not coincide with the preset center but there is no angle. Therefore, it is necessary to obtain the position coordinates of the center of the luminescent surface and the deflection angle of the luminescent surface to make the center of the luminescent surface accurately match the preset center.
[0014] Furthermore, controlling the adjustment mechanism to adjust the position of the light source based on the center data of the emitting surface includes moving the light source to make the position coordinates of the center of the emitting surface coincide with the position coordinates of the preset center and / or rotating the light source to correct the angle of the emitting surface. Since the emitting surface may deviate from the preset center in various ways, it is not only necessary to use the adjustment mechanism to move the light source to make the center of the emitting surface coincide with the center of the light source structure module, but also to eliminate the angle of the emitting surface through the adjustment mechanism, ultimately achieving precise assembly of the light source and the light source structure module.
[0015] Furthermore, after the adjustment mechanism performs one adjustment of the light source position, it acquires the light source image again and obtains the center data of the emitting surface. This process is repeated until the position coordinates of the emitting surface center match the position coordinates of the light source structure module center and the emitting surface angle is corrected, at which point the process terminates. The rotation axis of the adjustment mechanism may not necessarily coincide with the center of the emitting surface. Therefore, rotating the light source will cause a change in the center coordinates of the emitting surface; that is, the center of the emitting surface will deviate from the preset center, requiring further adjustment until the requirements are fully met.
[0016] Furthermore, the light source structure module that cooperates with the light source is placed on the positioning mechanism to form the preset center. The light source is first installed on the light source structure module and then assembled together with it onto the optomechanical body. The light source structure module is precisely positioned by the positioning mechanism, so that the light source structure module is in a precise initial position, thereby ensuring that the preset center is always consistent. There is no need to identify the center position of the light source structure module, simplifying the alignment operation. Only the position information of the light source needs to be identified and the position of the light source needs to be adjusted to accurately combine and connect the light source and the light source structure module together.
[0017] A light source alignment system includes an adjustment mechanism, a data acquisition and recognition unit, and a processing unit. The light source to be installed is connected to the adjustment mechanism. The data acquisition and recognition unit acquires an image of the light source and sends it to the processing unit. The processing unit performs edge detection based on color recognition on the light source image to obtain an initial boundary image. After distortion correction processing on the initial boundary image, it obtains the edge pattern of the light-emitting surface of the light source. The center data of the light-emitting surface is then calculated using the edge pattern. Finally, based on the center data, the adjustment mechanism is controlled to adjust the position of the light source so that the center of the light-emitting surface matches a preset center. This system has a simple structure and accurately locates the center of the light-emitting surface through image processing, automatically achieving alignment and effectively improving the installation accuracy of the light source, avoiding deviations caused by manual adjustment.
[0018] Furthermore, the adjustment mechanism includes one rotational adjustment degree of freedom and two linear movement adjustment degrees of freedom. The directions of the two linear movement adjustment degrees of freedom are perpendicular to each other, and the rotation axis of the rotational adjustment degree of freedom is perpendicular to the directions of the two linear movement adjustment degrees of freedom. The adjustment mechanism has multiple adjustment degrees of freedom, which can precisely adjust the position of the light source to meet the requirements of high-precision installation.
[0019] Compared with the prior art, the advantages of the present invention are as follows:
[0020] The light source alignment method and system described in this invention uses image edge detection to determine the center of the light-emitting surface of the light source, and then automatically matches the center of the light-emitting surface with the preset center through an adjustment mechanism. This improves the assembly accuracy of the light source, makes adjustment convenient and efficient, eliminates installation deviations, improves the illumination quality of the optical engine, and thus ensures the projection effect. Attached Figure Description
[0021] Figure 1 This is a schematic diagram showing the color value of a point on the luminous surface in the light source image.
[0022] Figure 2 This is a schematic diagram showing the color value of another point on the luminous surface in the light source image.
[0023] Figure 3 This is a schematic diagram showing the color value at a point on the edge of the luminous surface in the light source image.
[0024] Figure 4 This is a schematic diagram showing the color value of another point on the edge of the luminous surface in the light source image.
[0025] Figure 5 This is a schematic diagram of the initial boundary image obtained by the light source alignment method described in this invention;
[0026] Figure 6 A schematic diagram showing the corresponding positions of the preset center region and the preset outer region in the initial boundary image;
[0027] Figure 7 A schematic diagram for determining edge vertices in a predetermined vertex region on an initial boundary image;
[0028] Figure 8 A schematic diagram showing how to obtain the center data of the luminous surface by connecting the vertices of the edge of the line to form the edge pattern of the luminous surface;
[0029] Figure 9 This is a schematic diagram of the light source-centric system.
[0030] Figure 10 This is a schematic diagram of the structure of the light source centering system.
[0031] In the picture:
[0032] Adjustment mechanism 1, light source holding module 11, X-direction adjustment module 12, Y-direction adjustment module 13, rotation adjustment module 14, positioning mechanism 2, acquisition and recognition unit 3, processing unit 4, light source 5, light source structure module 6, preset center area 7, preset outer perimeter area 8, preset vertex area 9. Detailed Implementation
[0033] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0034] This invention discloses a light source alignment method that enables automatic alignment of the light source installation, making adjustment convenient and efficient, effectively improving the installation accuracy of the light source, avoiding deviations caused by manual adjustment, ensuring the illumination quality of the optical engine, and thus ensuring the projection effect.
[0035] like Figures 1 to 8 As shown, a method for centering a light source mainly includes the following steps:
[0036] First, the light source is placed on the adjustment mechanism, and the image of the light source at this time is acquired. The real-time position information of the light source is determined by image recognition. Then, the position of the light source is adjusted by the adjustment mechanism so that the light source is accurately installed on the light source structure module.
[0037] The light source structure module is placed on the positioning mechanism to ensure that the center of the light source structure module is in a precise preset state. The center of the light source structure module is also the preset center. To explain this in a Cartesian coordinate system, the center of the light source structure module is precisely located at the preset coordinates (X0, Y0), and the overall deflection state of the light source structure module is at the preset angle θ0. The light source structure module is precisely positioned by the positioning mechanism, so the center position of the light source structure module is clear and stable. Therefore, only image processing is needed to obtain the real-time position information of the light source, instead of obtaining the real-time position information of the light source structure module through image processing, thus improving the efficiency of the alignment operation.
[0038] Second, edge detection processing is performed on the obtained light source image to obtain the edge pattern of the light-emitting surface of the light source, and then the center data of the light-emitting surface is calculated through the edge pattern of the light-emitting surface.
[0039] The light source involved in this embodiment has a clearly defined and regular light-emitting surface. Specifically, the light-emitting surface is an LED chip, which is a regular rectangle and yellow in color. The area surrounding the light-emitting surface is white adhesive, creating a clear color difference between the light-emitting surface and its surroundings. Figures 1 to 4As shown, the color values on the surface of the luminous surface are (211, 230, 26) and (213, 232, 16), while the color values at the edge of the luminous surface are (199, 200, 161) and (205, 216, 142). It can be seen that the color values at the edge of the luminous surface are significantly different from the color values on the surface of the luminous surface and the color values of the white glue around the luminous surface. By comparing the color values, the edge of the luminous surface can be determined. Therefore, in this embodiment, the edge detection processing of the light source image is performed by color recognition to obtain the edge pattern of the luminous surface.
[0040] Specifically, the light source image is divided into matrix-distributed cells. The light source image is located in the same Cartesian coordinate system as the light source structure module. The cells are distributed in a matrix along the X and Y axes of the Cartesian coordinate system. To improve the accuracy of the obtained edge graphics of the luminous surface, the smaller the cell size, the better. However, the smaller the cell size, the larger the data volume and the relatively lower the overall processing efficiency. Specifically, a single pixel of the light source image is used as a cell. The color value of the cell is identified and compared with the preset color value. Cells that exceed the threshold are marked as boundary cells to obtain the initial boundary image. Then, the initial boundary image is subjected to distortion removal processing to obtain the edge graphics of the luminous surface.
[0041] In this embodiment, the representation of the initial boundary image is simplified. The color value of each cell in the light source image is compared with a preset color value. Cells exceeding a threshold are marked as boundary cells and filled with solid black, while cells not exceeding the threshold are marked as blank cells and filled with white. The resulting initial boundary image is as follows: Figure 5 As shown, the irregularly arranged boundary grids combine to outline the approximate frame of the luminous surface. This frame is not a regular edge line, so it is not possible to calculate the accurate center data of the luminous surface based on it. It is necessary to perform distortion removal processing on the initial boundary image to obtain the edge graphic of the luminous surface with a regular shape, and then calculate the accurate center data of the luminous surface based on the edge graphic of the luminous surface.
[0042] In this embodiment, the preset color values used for comparison include a center color preset value and a peripheral color preset value. The light source is first placed on the adjustment mechanism, and then its position is adjusted by the adjustment mechanism. The light source has a preliminary positioning when placed on the adjustment mechanism, and its specific position will not have a large deviation. That is to say, it can be determined that the entire area of the luminous surface is within a certain range, and the deflection angle of the luminous surface is within a certain range, such as... Figure 6As shown, it can be determined that a certain coordinate region in the light source image is definitely the central region of the luminous surface (the region with a yellow color). This coordinate region is set as the preset central region 7. The preset central region 7 contains at least nine cells distributed in a nine-space pattern. The color values of the cells at the preset central region 7 are identified and averaged to obtain the preset central color value. It can also be determined that a certain coordinate region in the light source image is definitely the outer region of the luminous surface (the region with a white color). This coordinate region is set as the preset outer region 8. The preset outer region 8 contains at least nine cells distributed in a nine-space pattern. The color values of the cells at the preset outer region 8 are identified and averaged to obtain the preset outer color value.
[0043] When comparing cells in the light source image, the comparison starts from the cells at the edge of the preset center region 7 and proceeds sequentially towards the outer regions of the light source image, ultimately obtaining the initial boundary image. Specifically, the color value of each cell is compared with both the preset center color value and the preset outer color value, setting thresholds a and b. When the difference between the cell's color value and the preset center color value is less than threshold a, the cell is marked as a blank cell; when the difference between the cell's color value and the preset outer color value is less than threshold b, the cell is also marked as a blank cell; when the difference between the cell's color value and the preset center color value is greater than threshold a, and the difference between the cell's color value and the preset outer color value is greater than threshold b, the cell is marked as a boundary cell, ultimately resulting in the image shown below. Figure 5 The initial boundary image is shown. The color values specifically adopt the RGB color mode. The thresholds a and b can be set to a difference of at least one of the three values of the RGB color values of 40 to 100, preferably 50. That is, when the color value of a cell is compared with the preset value of the center color, the difference of one of the three values of the RGB color values of the cell exceeds 50, and when the color value of a cell is compared with the preset value of the outer color, the difference of one of the three values of the RGB color values of the cell exceeds 50, then the cell is marked as a boundary cell.
[0044] After obtaining the initial boundary image, distortion correction is performed. Common methods such as Fourier transform can be used, but these methods involve relatively large amounts of data and have low efficiency. Based on the structural characteristics of the light source described in this embodiment, a more efficient and convenient method is used for distortion correction, resulting in less data processing and higher efficiency. Similarly, since the light source has initial positioning when placed on the adjustment mechanism, its position will not deviate significantly. Furthermore, the luminous surface is a rectangle of fixed size and regular shape, meaning that the four vertices of the luminous surface must each fall within a certain coordinate region. These four coordinate regions are then set as preset vertex regions 9. The vertices of the luminous surface are found within these four preset vertex regions 9, and connecting these vertices yields the edge image of the regularly shaped luminous surface. Specifically, as shown... Figure 7 As shown, within the preset vertex region 9, find the horizontal direction with the most boundary grids and the vertical direction with the most boundary grids. The intersection of these two directions is the required edge vertex, which is also the vertex of the luminous surface. Connecting all the edge vertices yields the edge pattern of the regularly shaped luminous surface, as shown. Figure 8 As shown;
[0045] like Figure 8 As shown, after obtaining the edge pattern of the luminous surface, the center data of the luminous surface is calculated. The center data of the luminous surface includes the position coordinates (X1, Y1) of the center of the luminous surface and the deflection angle θ1 of the luminous surface. Since the luminous surface is rectangular, the intersection of the diagonals is the center of the luminous surface. The coordinates of the edge vertex are determined, and the position coordinates (X1, Y1) of the center of the luminous surface can be easily obtained by calculation. The deflection angle θ1 of the luminous surface can be defined as the angle between the long side of the edge pattern of the luminous surface and the horizontal X-axis. It can be easily calculated using the coordinates of the edge vertex. Finally, the precise data required for adjusting the position of the light source is obtained, which ensures the accurate installation of the light source.
[0046] Third, the adjustment mechanism adjusts the position of the light source according to the center data of the light-emitting surface so that the center of the light-emitting surface of the light source matches the center of the light source structure module;
[0047] Once the position coordinates (X1, Y1) of the center of the emitting surface and the deflection angle θ1 of the emitting surface are obtained, the deviation of the light source relative to the light source structure module can be calculated. The position of the light source can be adjusted by the adjustment mechanism so that the light source is accurately installed on the light source structure module, ensuring the illumination quality of the optical engine and thus ensuring the projection effect.
[0048] Specifically, the adjustment mechanism not only needs to move the light source along the X and Y axes, but also needs to rotate the light source to adjust the deflection angle. Therefore, the adjustment mechanism needs to have multiple degrees of freedom to meet the requirements of precise and flexible adjustment. The adjustment mechanism's actions to adjust the position of the light source include moving the light source so that the position coordinates of the center of the light-emitting surface coincide with the position coordinates of the center of the light source structure module and rotating the light source so that the angle of the light-emitting surface relative to the light source structure module is corrected. In this embodiment, during image acquisition and recognition, the distance from the light source to the image acquisition device is consistent, ensuring that the overall size of the luminous surface in the acquired light source image is consistent, thereby guaranteeing a consistent reference. This facilitates accurate and convenient adjustment by the adjustment mechanism. The adjustment mechanism is only used to drive the light source to move linearly and rotate within the plane formed by the X and Y axes, without moving the light source in a direction perpendicular to the plane formed by the X and Y axes. Alternatively, the adjustment mechanism can have a degree of freedom of adjustment in a direction perpendicular to the plane formed by the X and Y axes, that is, the adjustment mechanism has a linear degree of freedom of adjustment along the Z-axis. If the distance from the light source to the image acquisition device is inconsistent during image acquisition and recognition, the size of the luminous surface in the acquired light source image will be inconsistent. The method and steps for obtaining the edge pattern of the luminous surface are the same as described above. Then, the side length of the luminous surface in the current light source image is calculated from the edge pattern of the luminous surface. The system first measures the size of the light source, then compares this size with a preset size (the size of the side length of the luminous surface in the light source image when the distance from the light source to the image acquisition device is a preset distance) to determine whether the distance from the light source to the image acquisition device is the preset distance. Then, based on the actual size of the side length of the luminous surface in the light source image and the preset size, the center data of the luminous surface is calculated. The adjustment mechanism then drives the light source to move linearly and rotate in the plane formed by the X-axis and Y-axis. Alternatively, the adjustment mechanism first drives the light source to move along the Z-axis so that the size of the side length of the luminous surface in the light source image reaches the preset size. Then, the light source image is acquired again and processed to obtain the edge pattern of the luminous surface. The center data of the luminous surface is then calculated from the edge pattern of the luminous surface. Finally, the adjustment mechanism drives the light source to move linearly and rotate in the plane formed by the X-axis and Y-axis so that the center of the luminous surface of the light source matches the center of the light source structure module.
[0049] In the specific adjustment, the adjustment mechanism can first drive the light source to move along the X-axis and Y-axis respectively, so that X1 = X0 and Y1 = Y0, that is, move the light source until the center coordinate of the light-emitting surface coincides with the center coordinate of the light source structure module. Then the adjustment mechanism rotates the light source to correct the angle of the light-emitting surface relative to the light source structure module, that is, make θ1 = θ0. Finally, when X1 = X0, Y1 = Y0 and θ1 = θ0 are satisfied at the same time, the automatic centering operation of the light source is completed.
[0050] Since the axis of rotational freedom of the adjustment mechanism does not coincide with the center of the light-emitting surface, the center coordinates of the light-emitting surface will change when the adjustment mechanism rotates the light source. In other words, the center of the light-emitting surface will deviate from the center of the light source structure module. The adjustment mechanism cannot simultaneously satisfy X1=X0, Y1=Y0, and θ1=θ0 by performing the adjustment of the light source position only once. Therefore, multiple adjustments are required. Specifically, a real-time feedback closed-loop adjustment method can be adopted. That is, after the adjustment mechanism performs the adjustment of the light source position once, it will collect the light source image again and obtain the center data of the light-emitting surface. The above steps are repeated until the position coordinates of the center of the light-emitting surface are consistent with the position coordinates of the center of the light source structure module and the deflection angle of the light-emitting surface is corrected.
[0051] like Figure 9 and Figure 10 As shown, the light source alignment system based on the above-mentioned light source alignment method mainly includes an adjustment mechanism 1, a positioning mechanism 2, a data acquisition and recognition unit 3, and a processing unit 4. The positioning mechanism 2 is used to position and place the light source structure module 6, so that the light source structure module 6 has a precise position, that is, the center of the light source structure module is precisely at a preset coordinate and the overall deflection state of the light source structure module is at a preset angle. The light source 5 to be installed is connected to the adjustment mechanism 1. Then, the data acquisition and recognition unit 3 acquires the light source image and sends it to the processing unit 4. The processing unit 4 processes the light source image to obtain the edge pattern of the light-emitting surface of the light source, and then calculates the center data of the light-emitting surface through the edge pattern of the light-emitting surface. Specifically, the processing unit 4 processes the light source image through color recognition. The light source image is divided into matrix-distributed cells. The color value of each cell in the light source image is compared with a preset color value. Cells exceeding a threshold are marked as boundary cells to obtain an initial boundary image. Then, the initial boundary image is subjected to distortion removal processing to obtain the edge pattern of the regularly shaped luminous surface. Finally, the center data of the luminous surface is calculated from the edge pattern of the luminous surface. The center data of the luminous surface includes the position coordinates of the center of the luminous surface and the deflection angle of the luminous surface. Then, the processing unit 4 compares the center data of the luminous surface with the preset parameters of the light source structure module to obtain the required adjustment amount. Finally, the processing unit 4 controls the adjustment mechanism 1 to adjust the position of the light source so that the center of the luminous surface of the light source matches the center of the light source structure module, and finally realizes the precise installation of the light source onto the light source structure module.
[0052] The adjustment mechanism 1 includes one rotational adjustment degree of freedom and two linear movement adjustment degrees of freedom. The directions of the two linear movement adjustment degrees of freedom are perpendicular to each other. The two linear movement adjustment degrees of freedom can be defined as being along the X-axis and Y-axis of the rectangular coordinate system, respectively. The rotation axis of the rotational adjustment degree of freedom is perpendicular to the directions of the two linear movement adjustment degrees of freedom. That is, the rotation plane of the rotational adjustment degree of freedom is along the plane of the rectangular coordinate system. Specifically, the adjustment mechanism 1 includes a light source holding module 11, an X-direction adjustment module 12, a Y-direction adjustment module 13, and a rotation adjustment module 14. The light source 5 to be installed is placed on the light source holding module 11. The X-direction adjustment module 12, the Y-direction adjustment module 13, and the rotation adjustment module 14 are all powered by motors. The X-direction adjustment module 12, the Y-direction adjustment module 13, and the rotation adjustment module 14 are used to drive the light source holding module to perform linear motion in the X-axis direction, linear motion in the Y-axis direction, and rotational motion, respectively.
[0053] The light source alignment system also includes an information storage module. The information storage module is used to collect the light source image collected by the recognition unit 3, and it is also used to store the center data of the light source structure module. The center data of the light source structure module can be adjusted according to the actual situation. The information storage module is also used to store the center data of the light-emitting surface processed by the processing unit 4, which is convenient for traceability and correction.
[0054] The above are merely preferred embodiments of the present invention. It should be noted that the above preferred embodiments should not be considered as limitations on the present invention, and the scope of protection of the present invention should be determined by the scope defined in the claims. For those skilled in the art, several improvements and modifications can be made without departing from the spirit and scope of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method of centering a light source, the method comprising the steps of include: The light source is placed on the adjustment mechanism to capture the light source image; The light source image is subjected to edge detection based on color recognition to obtain an initial boundary image. The initial boundary image is then subjected to distortion removal processing to obtain the edge pattern of the light-emitting surface of the light source. The center data of the light-emitting surface is then calculated from the edge pattern of the light-emitting surface. The step of performing edge detection based on color recognition to obtain an initial boundary image from the light source image includes: dividing the light source image into matrix-distributed cells and identifying the color values of the cells; including a center color preset value and an outer color preset value; comparing the color value of each cell with the center color preset value and the outer color preset value respectively; setting thresholds a and b; when the difference between the color value of a cell and the center color preset value is less than threshold a, the cell is marked as a blank cell; when the difference between the color value of a cell and the outer color preset value is less than threshold b, the cell is also marked as a blank cell; when the difference between the color value of a cell and the center color preset value is greater than threshold a, and the difference between the color value of a cell and the outer color preset value is greater than threshold b, the cell is marked as a boundary cell. The color preset values include a center color preset value and an outer color preset value. The color values of cells in the preset center region of the light source image are identified and averaged to obtain the center color preset value. The color values of cells in the preset outer region of the light source image are identified and averaged to obtain the outer color preset value. The adjustment mechanism is controlled to adjust the position of the light source according to the center data of the light-emitting surface, so that the center of the light-emitting surface of the light source matches the preset center.
2. The light source centering method according to claim 1, characterized by, The process of obtaining the edge pattern of the light-emitting surface of the light source after distortion removal processing of the initial boundary image includes: taking the intersection of the horizontal direction with the largest number of boundary grids and the vertical direction with the largest number of boundary grids in the preset vertex region of the initial boundary image as the edge vertex, and connecting all the edge vertices to obtain the edge pattern of the light-emitting surface.
3. The light source centering method according to any one of claims 1 to 2, characterized by, The center data of the luminescent surface includes the position coordinates of the center of the luminescent surface and the deflection angle of the luminescent surface.
4. The light source centering method according to claim 3, characterized by, The control mechanism adjusts the position of the light source according to the center data of the light-emitting surface, including moving the light source so that the position coordinates of the center of the light-emitting surface coincide with the position coordinates of the preset center and / or rotating the light source so that the angle of the light-emitting surface is corrected.
5. The light source centering method of claim 4, wherein, After the adjustment mechanism performs an action to adjust the position of the light source once, the light source image is acquired again and the center data of the emitting surface is obtained. The above steps are repeated until the position coordinates of the center of the emitting surface are consistent with the position coordinates of the center of the light source structure module and the emitting surface angle is corrected, and the process terminates.
6. The light source alignment method according to any one of claims 1 to 2, characterized in that, A light source structure module that works in conjunction with the light source is placed on a positioning mechanism to form the preset center.
7. A light source alignment system based on the light source alignment method according to any one of claims 1 to 6, characterized in that, The system includes an adjustment mechanism, a data acquisition and recognition unit, and a processing unit. The light source to be installed is placed on the adjustment mechanism. The data acquisition and recognition unit acquires an image of the light source and sends it to the processing unit. The processing unit performs color-based recognition on the light source image. Other edge detection is used to obtain an initial boundary image, and the initial boundary image is subjected to distortion removal processing to obtain the edge pattern of the light-emitting surface of the light source. Then, the center data of the light-emitting surface is calculated through the edge pattern of the light-emitting surface. Then, the adjustment mechanism is controlled to adjust the position of the light source so that the center of the light-emitting surface of the light source matches the preset center.
8. The light source alignment system according to claim 7, characterized in that, The adjustment mechanism includes one rotational adjustment degree of freedom and two linear movement adjustment degrees of freedom. The directions of the two linear movement adjustment degrees of freedom are perpendicular to each other, and the rotation axis of the rotational adjustment degree of freedom is perpendicular to the directions of the two linear movement adjustment degrees of freedom.