A method, device, system and storage medium for identifying a projection position

By acquiring images in the laser TV projection system and searching boundary points along the preset direction, and automatically identifying the corner coordinates of the projection screen and projection area, the problem of difficulty in adjusting the position of the laser TV projector is solved, and fast and accurate projection position recognition is achieved, improving user experience and work efficiency.

CN114140521BActive Publication Date: 2025-06-20APPOTRONICS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010924130.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-04
Publication Date
2025-06-20
Estimated Expiration
2040-09-04

AI Technical Summary

Technical Problem

The prior art has problems such as difficulty in adjusting the position of laser TV projectors and the difficulty in adjusting the projected image and the screen. Common methods affect the quality of the image, high cost, low aesthetics, and corner point recognition algorithms do not process large-size images and have poor noise resistance.

Method used

By obtaining the image to be processed, selecting the starting point of the ray in the projection area, searching for boundary points along multiple preset directions, filtering the proximal corner points, and determining the corner coordinates of the screen area and the projection area, so as to automatically identify the position of the projection screen and the projection area.

Benefits of technology

It realizes rapid and accurate identification of projection positions, improves identification speed and anti-interference, simplifies user operations, improves identification accuracy, is suitable for projector position adjustment system, and improves the work efficiency of project installation personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140521B_ABST
    Figure CN114140521B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, system and storage medium for identifying a projection position. The method includes: obtaining an image to be processed, where the image to be processed includes a screen area and a projection area; selecting a point in the projection area as the starting point of a ray; performing searches along multiple preset directions based on the starting point of the ray to obtain boundary points of the screen area and boundary points of the projection area, where two adjacent preset directions are spaced apart by a first preset angle; screening the boundary points to obtain near corner points; using the near corner points to obtain corner points of the screen area and corner points of the projection area, taking the corner point coordinates of the screen area as the position of the projection screen, and taking the corner point coordinates of the projection area as the position of the projection area. Through the above method, the present application can improve the recognition speed, has strong anti-interference ability, and high recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of projection technology, and particularly to a method, device, system, and storage medium for identifying a projection position. Background Art

[0002] With the popularization of laser TVs in the market, there are problems such as difficult installation of laser TVs and very high difficulty in adjusting the projection screen to perfectly match the screen; even professional installers need to spend a lot of time adjusting the position of the projector, resulting in low work efficiency. Moreover, after accidental bumps in daily life cause the position of the projector to change, it needs to be readjusted, which greatly affects the user experience.

[0003] To solve the above problems, common solutions include: First, using software to correct the projection screen at four points to adapt to the screen; Second, projecting a specific type of test pattern, measuring data by professionals, and manually inputting the data into the projector position adjustment device to correct the position of the projector; Third, arranging a photosensor array at the four corners of the screen, and the photosensor array senses the shape of the projection screen, matches it with various preset adjustment situations, obtains a matching result, and then drives the projector position adjustment device; The four-point correction solution will affect the quality of the projection screen, resulting in a certain degree of picture distortion and affecting the long-term viewing effect; The solution of manually measuring data and inputting it into the projector position adjustment device has disadvantages such as inaccurate measurement, low measurement accuracy, inconvenient operation, and poor usability; Arranging a photosensor array at the four corners of the screen increases the cost and reduces the aesthetics; In addition, the existing commonly used corner recognition algorithm SUSAN (Smallest Univalue Segment Assimilating Nucleus) is not suitable for processing large-size images, is insensitive to local noise, but is very sensitive to other objects in the image, and the later screening is extremely difficult. Summary of the Invention

[0004] This application provides a method, device, system, and storage medium for identifying a projection position, which can improve the recognition speed, have strong anti-interference ability, and high recognition accuracy.

[0005] To solve the above technical problems, the technical solution adopted by this application is to provide a method for identifying a projection position, the method includes: obtaining an image to be processed, where the image to be processed includes a screen area and a projection area; selecting a point in the projection area as the starting point of a ray; searching along a plurality of preset directions based on the starting point of the ray to obtain boundary points of the screen area and boundary points of the projection area, where two adjacent preset directions are spaced at a first preset angle; screening the boundary points to obtain near corner points; obtaining corner points of the screen area and corner points of the projection area using the near corner points, taking the corner point coordinates of the screen area as the position of the projection screen, and taking the corner point coordinates of the projection area as the position of the projection area.

[0006] To solve the above technical problems, another technical solution adopted in this application is to provide a projection position recognition device. The projection position recognition device includes a memory and a processor connected to each other. Among them, the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the above method for recognizing the projection position.

[0007] To solve the above technical problems, another technical solution adopted in this application is to provide a projector position adjustment system. The projector position adjustment system includes a projection position recognition device, and the projection position recognition device is the above projection position recognition device.

[0008] To solve the above technical problems, another technical solution adopted in this application is to provide a computer-readable storage medium. The computer-readable storage medium is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the above method for recognizing the projection position.

[0009] Through the above solution, the beneficial effects of this application are as follows: First, obtain the image to be processed, then select a point in the projection area as the starting point of the ray, and then search along multiple preset directions from the starting point of the ray to obtain the boundary points of the screen area and the boundary points of the projection area; by screening the obtained boundary points, the corresponding near corner points can be obtained, and using these near corner points, the corner points of the screen area and the corner points of the projection area can be obtained, so as to automatically identify the position of the projection screen and the position of the projection area, solve the problem of inconvenient measurement of the projection graphic position in the projector position adjustment system, can identify the accurate positions of the projection screen and the projection area in the image, can be applied to the projector position adjustment system and equipment, without manual measurement and manual positioning, with a relatively fast recognition speed, can simplify the operation of users, and because the starting point of the ray is inside the projection screen, other objects outside the projection screen will not interfere with the recognition process, so it has strong anti-interference ability and can improve the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings. Among them:

[0011] Figure 1 is a schematic flowchart of an embodiment of the method for recognizing the projection position provided by this application;

[0012] Figure 2 is Figure 1 a schematic diagram of the projection area, the screen area and the ray in the shown embodiment;

[0013] Figure 3 is Figure 1 A schematic diagram of the projected area and the screen area after correcting the position in the illustrated embodiment;

[0014] Figure 4 A schematic flow chart of another embodiment of the method for identifying the projection position provided by the present application;

[0015] Figure 5 is Figure 4 A schematic diagram of the projected area, the screen area and the ray in the illustrated embodiment;

[0016] Figure 6 is Figure 4 A schematic diagram of the boundary line and the pixel points in the illustrated embodiment;

[0017] Figure 7 is Figure 4 A schematic diagram of the boundary points on the projected area in the illustrated embodiment;

[0018] Figure 8 is Figure 4 A schematic diagram of the near corner points on the projected area in the illustrated embodiment;

[0019] Figure 9 is Figure 4 A schematic diagram of the four side lines and the corner points corresponding to the projected area in the illustrated embodiment;

[0020] Figure 10 A schematic structural diagram of an embodiment of the projection position recognition device provided by the present application;

[0021] Figure 11 A schematic structural diagram of an embodiment of the projector position adjustment system provided by the present application;

[0022] Figure 12 A schematic structural diagram of an embodiment of the computer-readable storage medium provided by the present application. Detailed implementation manners

[0023] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0024] Please refer to Figure 1 , Figure 1 A schematic flow chart of an embodiment of the method for identifying the projection position provided by the present application. The method includes:

[0025] Step 11: Obtain the image to be processed.

[0026] A camera device (such as a mobile phone) can be used to capture the projection screen, thereby obtaining the corresponding image to be processed. The image to be processed includes a screen area and a projection area. The screen area is the area where the projection screen is located, and the projection area is the area where the image displayed on the projection screen is located. The method of this embodiment can be applied to a projection display system, which includes a projector and a projection screen. The projection screen can be a laser TV, and the screen used by the laser TV is an anti-reflection screen. When there is no projection image, the laser TV displays black, and the corresponding gray value is relatively small.

[0027] Furthermore, the projection area can be a white field test pattern. After projection, the laser TV displays white, and the corresponding gray value is relatively large. The laser TV can be hung on a wall or a bracket. Usually, the background wall of the laser TV is not darker than the anti-reflection screen and not whiter than the white field, and its corresponding gray value is between the anti-reflection screen and the white field.

[0028] It can be understood that since the situation of the background wall is unpredictable, it is difficult to analyze if the image is projected outside the projection screen. Therefore, the projection area is located within the projection screen, and a reminder interface can be set to remind the user to project all four sides of the projection area onto the projection screen.

[0029] Step 12: Select a point in the projection area as the starting point of the ray.

[0030] After obtaining the image to be processed, a pixel point can be selected from the corresponding area of the projection area as the starting point of the ray, that is, the starting point of the ray falls within the area where the projection area is located. For example, as Figure 2 shown, the screen area is denoted as I1, and the coordinates of the pixel point in the upper left corner can be denoted as (0, 0). The projection area is denoted as I2. The center of the screen area I1 can be selected as the starting point P of the ray, and the coordinates of point P can be denoted as (P x , P y ). The ray starting from point P can be denoted as Ri (1 ≤ i ≤ m), where m is the number of rays.

[0031] Step 13: Search along multiple preset directions based on the starting point of the ray to obtain boundary points.

[0032] 360° can be divided into a preset number of preset directions, and the interval between two adjacent preset directions is the first preset angle, that is, the product of the preset number and the first preset angle is 360°. For example, as Figure 2As shown, the angle between ray R1 and ray R2 is the first preset angle, denoted as α; for each preset direction, pixel points can be searched along this preset direction. Since the pixel values in the projection area are quite different from those in the screen area, if a relatively large change in pixel values is found, it indicates that this pixel point may be a pixel point (i.e., a boundary point) at the boundary, realizing the search for boundary points.

[0033] Step 14: Screen the boundary points to obtain near corner points.

[0034] After obtaining multiple boundary points, it can be judged whether all preset directions have been searched; if all preset directions have been searched, in order to increase the accuracy of corner point detection, near corner points can be screened out from the boundary points. The near corner point is a pixel point whose distance from the boundary of the projection area or the screen area is within a preset range; for example, as Figure 2 shown, the preset range is an interval near 0. The distance between pixel point C and the boundary of projection area I2 is within the preset range, and it is a near corner point; if not all preset directions have been searched, then continue to execute step 13 until all preset directions have been searched.

[0035] Step 15: Obtain the corner points of the screen area and the corner points of the projection area from the near corner points, use the corner point coordinates of the screen area as the position of the projection screen, and use the corner point coordinates of the projection area as the position of the projection area.

[0036] After detecting the near corner points of the screen area, the near corner points corresponding to the screen area can be processed to obtain the positions of the four corner points, thereby determining the position of the projection screen; similarly, the near corner points corresponding to the projection area can be processed to obtain the positions of the four corner points, thereby determining the position of the projection area; after determining the positions of the projection screen and the projection area, the projector can be controlled according to the relative position relationship between the two, so that the picture projected by the projector matches the size and position of the projection screen, that is, the size of the projection area is slightly smaller than the size of the projection screen, and the boundary of the projection area is parallel to the corresponding boundary of the projection screen; for example, as Figure 3 shown, the centers of screen area I1 and projection area I2 coincide, and the four sides of screen area I1 are parallel to the corresponding sides of projection area I2.

[0037] This embodiment provides a method for identifying the projection position. First, obtain the image to be processed, then select a point in the projection area as the starting point of the ray, and then search along multiple preset directions from the starting point of the ray to obtain the boundary points; then screen the obtained boundary points to obtain the corresponding near corner points, and use these corresponding near corner points to obtain the corner points of the screen area and the corner points of the projection area, and use the corresponding corner point coordinates as the positions of the projection screen and the projection area, so as to automatically identify the four sides of the projection area and the four sides of the projection area, with high accuracy and fast speed, which can be used to improve the use experience of the laser TV, and can cooperate with the projector position adjustment device to complete the adaptation of the projection image and the projection screen, improve the work efficiency of engineering installers, and at the same time this solution can also be applied to businesses such as laser wall splicing or cinemas.

[0038] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of another embodiment of the method for identifying the projection position provided by this application. The method includes:

[0039] Step 41: Obtain the image to be processed.

[0040] After obtaining the image to be processed, if the image to be processed is a color image or a depth image, for the convenience of processing, the image to be processed can be transformed into a grayscale image. Specifically, the following formula can be used to perform grayscale processing on the image to be processed:

[0041] G = 0.2989 * G red + 0.5870 * G green + 0.1140 * G blue

[0042] where G is the pixel value after processing, and G red , G green and G blue are the pixel values of the red channel, the green channel, and the blue channel of the image to be processed before processing respectively, and C1, C2, and C3 are the coefficients corresponding to the red channel, the green channel, and the blue channel respectively; further, the grayscale range of each pixel in the grayscale image is 0-255, 0 represents black, 255 represents white, and C1, C2, and C3 can be 0.2989, 0.5870, and 0.1140 respectively.

[0043] In other embodiments, if the background wallpaper of the projection screen is blue, the coefficients C1, C2, and C3 in the grayscale formula can be taken as 0, 0, and 1 respectively, so as to maximize the grayscale difference between the projection area, the screen area, and the background area.

[0044] Step 42: Select a point in the projection area as the starting point of the ray.

[0045] This step is the same as step 12 in the above embodiment, and will not be elaborated here.

[0046] Step 43: Start from the ray starting point and search along each preset direction, calculate the pixel difference between two adjacent pixel points at a preset step length in the preset direction, and record it as the first pixel difference.

[0047] As Figure 5 shown, the screen area is denoted as I1, the projection area is denoted as I2, taking P as the ray starting point, making a ray R in a preset direction, the angle between the ray R and the horizontal axis is θ, and the coordinates of point P are (P x , P y ). The preset step length is denoted as d, that is, search forward on the ray R with a step length of d. Then the coordinates of point P1, which is at a distance of d from point P on the ray R, are: (P x - d * cosθ, P y - d * sinθ). Denote the pixel value of point P1 as G P1 ; Denote the point at a distance of 2 * d from point P as P2, and denote the pixel value of point P2 as G P2 , and the pixel difference ΔG P2-P1 = G P2 - G P1 .

[0048] Step 44: Determine whether the first pixel difference is greater than the first preset value.

[0049] A grayscale difference threshold (i.e., the first preset value) can be designed in advance, denoted as ΔG c . When the grayscale of the image to be processed obtained by photographing changes, there is a transition zone, and the boundary point is located in this transition zone. To determine the specific position of this transition zone, as Figure 5 shown, it can be first determined whether the pixel difference between two adjacent pixel points with a distance of d in the direction of the ray R is greater than this first preset value.

[0050] Step 45: If the first pixel difference is greater than the first preset value, then denote the area between two adjacent pixel points in the preset direction as the transition zone.

[0051] Taking the projection area as an example for illustration, as Figure 6 shown, when ΔG Pn-Pn-1 = G Pn - G Pn-1 > ΔG c (1 ≤ n ≤ h, h is the number of pixel points obtained by sampling the pixel points on the ray R at a step length of d), it can be determined that the boundary of the projection area passes through the area between point P n and point P n-1 , and the area between point P n and point P n-1The area between them is denoted as the transition area, and this transition area includes multiple pixel points.

[0052] In a specific embodiment, the preset step size can be set to 10 pixels, and the first preset angle is 10°. That is, one ray is taken every 10°, and a total of 36 rays are taken. The first preset value ΔG c is 30.

[0053] Step 46: Screen the pixel points in the transition area to obtain boundary points.

[0054] Point P n-1 and point P n The pixel points between them are all pixel points in the transition area. The multiple pixel points in this transition area can be screened, and the optimal one pixel point is selected as the boundary point.

[0055] Furthermore, the absolute difference between the pixel value of each pixel point in the transition area and the preset pixel value can be statistically calculated, denoted as the second pixel difference; then the pixel point corresponding to the second pixel difference with the smallest value among all the second pixel differences is denoted as the boundary point of the projection area.

[0056] In a specific embodiment, the preset pixel value G a =(G Pn +G Pn-1 ) / 2, and the evaluation function can be: f(P i ) = |G Pi -G a |. For the point P Pi with pixel value G i (1≤i≤h), determine the pixel point corresponding to when the evaluation function obtains the minimum value, and determine this pixel point as falling on the boundary of the projection area. As Figure 6 shown, C is the boundary of the projection area.

[0057] In the above manner, by making m rays through point P, m boundary points on the boundary of the projection area can be obtained, denoted as {P m}, as Figure 7 shown.

[0058] Step 47: Calculate the angles formed by every three adjacent boundary points of the projection area to classify all the boundary points of the projection area, and classify the boundary points of each projection area into near corner points or ordinary points.

[0059] The angle formed by an ordinary point and two adjacent boundary points in the projection area is the second preset angle, and the angle formed by a near corner point and two adjacent boundary points in the projection area is less than the second preset angle; specifically, this preset angle is 180°. For the obtained m boundary points, screen them. As Figure 7 shown, for points P m1 ~Pm6 These 6 boundary points are divided into two categories. Point P m3 and point P m4 are near corner points, and point P m1 , point P m2 , point P m5 and point P m6 are ordinary points. The feature of an ordinary point is that the angle formed by an ordinary point and its adjacent boundary points is 180°, such as Figure 8 ∠P m1 P m2 P m3 in; The feature of a near corner point is that the angle formed by a near corner point and its adjacent boundary points is much less than 180°, such as Figure 8 ∠P m2 P m3 P m4 in; Traversing all the boundary points in {P m}, 8 near corner points can be found on the quadrilateral in Figure 8 : P A1 -P A2 , P B1 -P B2 , P C1 -P C2 and P D1 -P D2 , as shown in Figure 9 .

[0060] Step 48: Connect two adjacent near corner points in the projection area to obtain four straight lines; calculate the intersection points of the four straight lines, and use the intersection points of the four straight lines as the corner points of the projection area.

[0061] For the 8 near corner points of the obtained projection area, connecting two adjacent near corner points can obtain 4 straight lines. Finding the intersection points of these 4 straight lines can obtain the corner points A - D of the projection area, as shown in Figure 9 .

[0062] Step 49: Adjust the position of the projector based on the position of the projection screen and the position of the projection area, so that the shape of the projection area projected by the projector matches the shape of the projection screen.

[0063] The method used to identify the position of the screen area is the same as the method used to identify the position of the projection area. The screen area can be processed according to the above steps to obtain the corner points of the screen area, and the corner point coordinates of the screen area are used as the position of the projection screen.

[0064] Understandably, the corner recognition of the projection screen and the corner recognition of the projection area can be performed simultaneously. However, to distinguish whether the detected corners belong to the projection screen or the projection area, it can be determined according to the pixel distribution of the screen area and the projection area. Specifically, in the preset direction starting from the ray origin, the pixel value of the image to be processed changes from white to black. The pixel value in the area corresponding to the projection area is a relatively large gray value. Continuing to move forward along the preset direction and entering the area where the screen area is located, its pixel value is a relatively small gray value. That is, for the projection area, the pixel value near the boundary in the preset direction changes from large to small, and for the screen area, the pixel value near the boundary in the preset direction changes from small to large. Therefore, it can be determined whether the pixel value of the pixel point closer to the ray origin among two adjacent pixel points in the preset direction is greater than that of the other pixel point. If the pixel value of the pixel point closer to the ray origin among two adjacent pixel points is greater than that of the other pixel point, the transition area is the transition area corresponding to the projection area, and the pixel points in this transition area are the boundary points of the projection area. If the pixel value of the pixel point closer to the ray origin among two adjacent pixel points is less than that of the other pixel point, the transition area is the transition area corresponding to the screen area, and the pixel points in this transition area are the boundary points of the projection screen.

[0065] Understandably, since objects of the same size have different sizes in the image when the shooting positions are different, perspective correction can be used to correct the distortion caused by the shooting position and angle to obtain the positions of the projection screen and the projection area.

[0066] This embodiment proposes a ray-point tracing method. Only an image containing the projection screen and the projection area needs to be obtained. The edges of the projection screen and the projection area can be located according to the pixel values. By solving the intersection points of the edges, the coordinates of each vertex of the polygon can be obtained. According to the vertex coordinates, the sizes of each side and the angles of each corner of the polygon can be calculated, so as to obtain the perspective image from the perspective of the photographer. Then, the positions of the real projection screen and the projection area can be obtained by using the perspective correction algorithm. One boundary point can be searched for on each ray. Only two reliable boundary points are needed for each side of the polygon to determine the straight line where the side is located, and the robustness is high. Compared with the manual measurement and manual positioning methods, the position recognition accuracy is higher. When the width of the projection screen is 2240mm, the real distance represented by each pixel of a picture with a size of 1920*1080 is less than 1.2mm, and the accuracy is relatively high. Only taking a photo is required, and the captured image can be fully automatically processed, with simple operation. Moreover, the calculation steps are few and the running speed is fast. In addition, since the ray origin is located inside the polygon, other objects outside the projection screen will not interfere with the recognition process, so the anti-interference ability is strong.

[0067] Please refer to Figure 10 , Figure 10It is a schematic structural diagram of an embodiment of the projection position recognition device provided by the present application. The projection position recognition device 100 includes a memory 101 and a processor 102 connected to each other. The memory 101 is used to store a computer program, and when the computer program is executed by the processor 102, it is used to implement the method for recognizing the projection position in the above embodiment.

[0068] This embodiment provides a projection position recognition device 100, which can automatically recognize the accurate dimensions of the four sides of the projection screen and the four sides of the projection area in the captured picture by using a camera, and has the advantages of convenient operation, accurate measurement, high precision and fast speed, etc., which is convenient for the projector position adjustment device to quickly complete the adaptation of the projection picture and the projection screen.

[0069] Please refer to Figure 11 , Figure 11 It is a schematic structural diagram of an embodiment of the projector position adjustment system provided by the present application. The projector position adjustment system 110 includes a projection position recognition device 111, and the projection position recognition device 111 is the projection position recognition device in the above embodiment.

[0070] Please refer to Figure 12 , Figure 12 It is a schematic structural diagram of an embodiment of the computer-readable storage medium provided by the present application. The computer-readable storage medium 120 is used to store a computer program 121, and when the computer program 121 is executed by the processor, it is used to implement the method for recognizing the projection position in the above embodiment.

[0071] The computer-readable storage medium 120 can be various media that can store program codes, such as a server, a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disc, etc.

[0072] In several embodiments provided by the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0073] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0074] In addition, in each embodiment of the present application, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0075] The above are only the embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.

Claims

1. A method for identifying a projection position, characterized in that, Including: Obtain an image to be processed, where the image to be processed includes a screen area and a projection area; Select a point from the projection area as the ray starting point; Based on the ray starting point, search along multiple preset directions to obtain boundary points, where the adjacent two preset directions are spaced at a first preset angle; Screen the boundary points to obtain near corner points; Use the near corner points to obtain the corner points of the screen area and the corner points of the projection area, use the corner point coordinates of the screen area as the position of the projection screen, and use the corner point coordinates of the projection area as the position of the projection area.

2. The method for identifying a projection position according to claim 1, characterized in that, The step of searching along multiple preset directions based on the ray starting point to obtain boundary points includes: Start searching from the ray starting point along each preset direction, calculate the pixel difference between two adjacent pixel points at a preset step length in the preset direction, and record it as the first pixel difference; Judge whether the first pixel difference is greater than a first preset value; If so, record the area between the two adjacent pixel points in the preset direction as the transition area; Screen the pixel points in the transition area to obtain the boundary points.

3. The method for identifying a projection position according to claim 2, characterized in that, The step of screening the pixel points in the transition area to obtain the boundary points includes: Statistically calculate the absolute difference between the pixel value of each pixel point in the transition area and a preset pixel value, and record it as the second pixel difference; Record the pixel point corresponding to the second pixel difference with the smallest value among all the second pixel differences as the boundary point.

4. The method for identifying a projection position according to claim 2, characterized in that, The method further includes: Judge whether the pixel value of the pixel point closer to the ray starting point among two adjacent pixel points in the preset direction is greater than the pixel value of the other pixel point; If so, the transition area is the transition area corresponding to the projection area; If not, the transition area is the transition area corresponding to the screen area.

5. The method for identifying a projection position according to claim 1, characterized in that, The step of screening the boundary points to obtain near corner points includes: Calculate the angles formed by every three adjacent boundary points of the projection area to classify all the boundary points of the projection area, and classify the boundary points of each projection area into near corner points or ordinary points; Wherein, the angle formed by the ordinary point and two adjacent boundary points in the projection area is a second preset angle, and the angle formed by the near corner point and two adjacent boundary points in the projection area is less than the second preset angle.

6. The method for identifying a projection position according to claim 1, characterized in that, The method further includes: Based on the position of the projection screen and the position of the projection area, adjust the position of the projector so that the shape of the projection area projected by the projector matches the shape of the projection screen.

7. The method for identifying a projection position according to claim 1, characterized in that, The step of using the near corner points to obtain the corner points of the projection area includes: Connect two adjacent near corner points in the projection area to obtain four straight lines; Calculate the intersection points of the four straight lines, and use the intersection points of the four straight lines as the corner points of the projection area.

8. The method for identifying a projection position according to claim 1, characterized in that, Before the step of selecting a point from the projection area as the ray starting point, it includes: Perform grayscale processing on the image to be processed using the following formula: G = C1 * G red + C2 * G green + C2 * G blue Among them, G is the processed pixel value, G red , G green and G blue are respectively the pixel values of the red channel, the green channel, and the blue channel of the image to be processed before processing. C1, C2, and C3 are respectively the coefficients corresponding to the red channel, the coefficients corresponding to the green channel, and the coefficients corresponding to the blue channel.

9. The method for identifying a projection position according to claim 1, wherein, Before the step of screening the boundary points to obtain near corner points, it includes: Determine whether all the preset directions have been searched; If so, screen the boundary points to obtain the near corner points; If not, continue to execute the step of searching along multiple preset directions based on the ray starting point to obtain the boundary points of the screen area and the boundary points of the projection area.

10. A projection position identification device, wherein, It includes a memory and a processor connected to each other. Among them, the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the method for identifying the projection position according to any one of claims 1-9.

11. A projector position adjustment system, wherein, It includes a projection position identification device, and the projection position identification device is the projection position identification device according to claim 10.

12. A computer-readable storage medium for storing a computer program, wherein, When the computer program is executed by the processor, it is used to implement the method for identifying the projection position according to any one of claims 1-9.

Citation Information

Patent Citations

  • Method and device for detecting angular point of screened image

    CN101750883A

  • Method and system for correcting projection area

    CN106937101A