Projection area determination method and device, equipment and storage medium

By automatically processing image data at different angles to determine the projection area of ​​the projection equipment, the problem of low accuracy of manual determination is solved, and the quality of the projection picture and user experience are improved.

CN118694902APending Publication Date: 2024-09-24CHENGDU XGIMI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310293639.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In existing projection equipment, the accuracy of manually determining the projection area is low, making it difficult for the projected image to meet the user's viewing needs.

Method used

By acquiring images from different shooting angles and using the grayscale and depth information of pixels, the starting and ending positions of the carrier are automatically determined, thereby determining the projection area.

Benefits of technology

It improves the accuracy of the projection area, avoids manual errors, and ensures that the projected picture can meet the user's best viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694902A
    Figure CN118694902A
Patent Text Reader

Abstract

The embodiment of the invention discloses a projection area determination method and device, equipment and a storage medium, and belongs to the technical field of projection. According to the embodiment of the application, the first image obtained by shooting can be automatically processed to obtain the start-stop position of each bearing body, and the target projection area can be automatically determined based on the start-stop position of each bearing body without manual determination, so that errors caused by manual operation can be avoided, and the accuracy of the target projection area is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of projection technology, and in particular to a method, device, equipment and storage medium for determining a projection area. Background Art

[0002] In a projection scene, the projection device projects the image onto a carrier such as a screen or a wall for display. In order to meet the viewing needs of users, it is usually necessary to determine the range of the projection area, and then adjust the position of the projection device based on the range of the projection area so that when the image is projected onto the projection area, the resulting projection image can meet the viewing needs of users.

[0003] Currently, the scope of the projection area is mainly determined manually, which has low accuracy. As a result, it is difficult for the projection device to obtain a suitable projection image when projecting an image to the projection area, thereby failing to meet the viewing needs of users.

[0004] Application Contents

[0005] The embodiments of the present application provide a method, device, equipment and storage medium for determining a projection area, which can accurately determine the projection area.

[0006] In a first aspect, an embodiment of the present application provides a method for determining a projection area, including:

[0007] Acquire at least one first image of a preset space, each first image is obtained by photographing the preset space at a different shooting angle, the first image includes at least one carrier, and the carrier is used to display a projection picture;

[0008] For each first image, according to the first parameter of each pixel point of the first image within a preset neighborhood range, determine the first candidate point of the first image to obtain a first mask image, where the first candidate point is a point on the carrier;

[0009] Determine the target starting position and target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixel points in each first mask image;

[0010] The target projection area is determined according to the target starting position and the target ending position of each carrier.

[0011] In a second aspect, an embodiment of the present application provides a device for determining a projection area, including an acquisition module and a determination module;

[0012] An acquisition module, used to acquire at least one first image of a preset space, each first image is obtained by photographing the preset space at different shooting angles, and the first image includes at least one carrier, and the carrier is used to display a projection picture;

[0013] A determination module, configured to determine, for each first image, first candidate points of the first image according to first parameters of each pixel point of the first image within a preset neighborhood range, to obtain a first mask image, wherein the first candidate points are points on the carrier;

[0014] The determination module is further used to determine the target starting position and the target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixel points in each first mask image;

[0015] The determination module is also used to determine the target projection area according to the target starting position and the target ending position of each carrier.

[0016] In a third aspect, an embodiment of the present application provides a projection device, including:

[0017] processor;

[0018] a memory for storing computer program instructions;

[0019] A shooting camera, used to shoot at least one first image of a preset space;

[0020] When the computer program instructions are executed by a processor, the method according to the first aspect is implemented.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which implement the method described in the first aspect when the computer program instructions are executed by a processor.

[0022] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method described in the first aspect.

[0023] The embodiment of the present application shoots a preset space at different shooting angles to obtain at least one first image, determines the first candidate point of the first image according to the first parameter of each pixel point of the first image within the preset neighborhood range, obtains the first mask image, determines the target starting position and target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixel points in each first mask image, and determines the target projection area according to the target starting position and target ending position of each carrier. That is, the embodiment of the present application can automatically process the first image obtained by shooting to obtain the starting and ending positions of each carrier, and can automatically determine the target projection area based on the starting and ending positions of each carrier without manual determination, thereby avoiding errors caused by manual labor and improving the accuracy of the target projection area. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 A flowchart of a method for determining a projection area provided in an embodiment of the present application;

[0026] Figure 2 A flowchart of another method for determining a projection area provided in an embodiment of the present application;

[0027] Figure 3 A flowchart of another method for determining a projection area provided in an embodiment of the present application;

[0028] Figure 4 A schematic diagram of a first mask image provided in an embodiment of the present application;

[0029] Figure 5 A flowchart of another method for determining a projection area provided in an embodiment of the present application;

[0030] Figure 6 A structural diagram of a device for determining a projection area provided in an embodiment of the present application;

[0031] Figure 7 A structural diagram of a projection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0033] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0034] As described above, when using a projection device for projection, it is necessary to determine the range of the projection area and then project the picture to the projection area.

[0035] At present, the projection area is mainly determined manually. Since there will be certain errors in manual determination, the accuracy of the determined projection area is low. As a result, when the projection device projects the image to the projection area, it is difficult to obtain a suitable projection image, thereby failing to meet the viewing needs of users.

[0036] To this end, the embodiments of the present application provide a method, device, equipment and storage medium for determining a projection area, which can accurately determine the projection area.

[0037] The method for determining the projection area provided in the embodiment of the present application is described below in conjunction with specific embodiments. The method for determining the projection area provided in the embodiment of the present application can be applied to an electronic device, which can be a projection device with a projection function, such as a projector.

[0038] Figure 1 A flowchart of a method for determining a projection area provided in an embodiment of the present application. Figure 1 As shown, the method for determining the projection area may include the following steps:

[0039] S110: Acquire at least one first image of a preset space.

[0040] Wherein, each first image is obtained by photographing a preset space at different shooting angles, and the first image includes at least one carrier, and the carrier is used to display a projection picture.

[0041] S120 . For each first image, determine first candidate points of the first image according to first parameters of each pixel of the first image within a preset neighborhood range, and obtain a first mask image.

[0042] The first candidate point is a point on the carrier.

[0043] S130 , determining a target starting position and a target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixels in each first mask image.

[0044] S140, determining a target projection area according to a target starting position and a target ending position of each carrier.

[0045] The embodiment of the present application shoots a preset space at different shooting angles to obtain at least one first image, determines the first candidate point of the first image according to the first parameter of each pixel point of the first image within the preset neighborhood range, obtains the first mask image, determines the target starting position and target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixel points in each first mask image, and determines the target projection area according to the target starting position and target ending position of each carrier. That is, the embodiment of the present application can automatically process the first image obtained by shooting to obtain the starting and ending positions of each carrier, and can automatically determine the target projection area based on the starting and ending positions of each carrier without manual determination, thereby avoiding errors caused by manual labor and improving the accuracy of the target projection area.

[0046] The above steps are described in detail below:

[0047] In S110, the preset space may be a relatively complex space including a bearing body and a non-bearing body, for example, an indoor space.

[0048] The first image may be an image obtained by photographing the preset space at different shooting angles. For example, the preset space may be photographed at different shooting angles by a shooting camera on the projection device to obtain the first image. The shooting camera may be, for example, a structured light camera or a binocular camera, or a structure composed of a monocular camera and a time of flight (TOF) camera.

[0049] Exemplarily, the above S110 may include the following steps:

[0050] Control the projection device to rotate according to a preset rotation angle;

[0051] When the projection device completes rotation according to the preset rotation angle, the preset space is photographed by the shooting camera on the projection device to obtain at least one first image, and the preset rotation angle is less than or equal to the horizontal field angle of the shooting camera.

[0052] For example, the projection device can be automatically controlled to rotate horizontally at preset rotation angles in sequence, without the need for manual rotation by the user, thereby simplifying the user's operation. Each time the projection device rotates at a preset rotation angle, the camera can be controlled to capture the indoor space to obtain a first image, and one preset rotation angle can correspond to one first image.

[0053] The preset rotation angles corresponding to the first images may be the same or different. In the embodiment of the present application, the preset rotation angles corresponding to the first images are the same as an example.

[0054] For example, the preset rotation angle can be less than or equal to the horizontal field of view of the shooting camera and can divide 360 ​​degrees. Then, the projection device can just cover the scene information of the indoor space when it rotates 360 degrees, which provides a basis for the subsequent accurate determination of the projection area. Among them, the vertical field of view of the shooting camera should be able to cover the vertical area of ​​the indoor carrier, which can be a curtain or wall indoors that can display the projection image.

[0055] Exemplarily, the initial position of the projection device can be recorded as 0 degrees, and then the projection device is rotated according to a preset rotation angle until it rotates 360 degrees, so that the entire indoor space can be photographed to obtain multiple first images.

[0056] In S120, for each pixel point, the preset neighborhood range may be a range with a radius of R centered on the pixel point, where the size of R may be set according to actual needs.

[0057] It should be understood that the indoor space may contain non-bearing bodies, such as ceilings, floors, desktops, posters, doors, green plants, etc. The first parameter is used to remove points on non-bearing bodies and retain points on the bearing body. Exemplarily, the first parameter may include the grayscale mean and grayscale variance of each pixel point within a preset neighborhood. The first candidate point may be a point on the bearing body.

[0058] The first mask image may be an image with pixel values ​​of 0 and 1. For example, a pixel value of 0 may represent a non-bearing body, and a pixel value of 1 may represent a bearing body. One first image corresponds to one first mask image.

[0059] Exemplarily, the pixel points on the non-carrier and the pixel points on the carrier can be determined based on the first parameter of each pixel point within a preset neighborhood range, and then the pixel values ​​of the pixel points on the non-carrier are set to 0, and the pixel values ​​of the pixel points on the carrier are set to 1, to obtain a first mask image corresponding to the first image.

[0060] In S130, the grayscale sum of each column of pixels in the first mask image, that is, for each column of the first mask image, the grayscale values ​​of each pixel in the column can be accumulated to obtain the grayscale sum corresponding to the pixel in the column, and each column corresponds to a grayscale sum.

[0061] In actual application, the indoor space may include multiple bearing bodies, for example, may include four walls. In the embodiment of the present application, each wall may be recorded as a bearing body.

[0062] The target starting position and the target ending position are the real starting position and ending position of each carrier. For example, for a certain wall of an indoor space, the left and right edges of the wall can be used as the starting position and the ending position respectively.

[0063] Exemplarily, the grayscale sum of each column of the first mask image can be traversed, and when the grayscale sum meets the condition of the starting position, the corresponding column is used as the starting position of the carrier, and then starting from the starting position, the grayscale sum of each column of the next first mask image is traversed, and when the grayscale sum meets the condition of the ending position, the corresponding column is used as the ending position of the carrier.

[0064] The target start position and target end position of the same carrier may be located in the same first mask image or in different first mask images, which is specifically related to the shooting angle.

[0065] In S140, the target projection area may be a projection area where the best projection picture can be obtained, that is, when the projection device projects the picture to the target projection area, the obtained projection picture can meet the user's best viewing experience requirements.

[0066] Specifically, the target projection area can be determined based on the target starting position and target ending position of each carrier. For example, the real physical area of ​​each carrier can be determined based on the target starting position and the target ending position, and then the carrier with the largest real physical area can be determined as the target projection area. In this way, the size of the projection area can be large enough, and when the picture is projected onto the projection area, the clarity of the projection picture can also be guaranteed.

[0067] The embodiment of the present application can control the projection device to rotate automatically, and use the camera to shoot a preset space to obtain at least one first image. By processing the first image, the target starting position and end position of the carrier are obtained, and then the target projection area is obtained according to the target starting position and end position of the carrier without manual determination, thereby avoiding errors caused by human intervention and improving the accuracy of the target projection area.

[0068] When the preset space is photographed by the camera, a grayscale image and a depth image of the preset space can be simultaneously acquired to obtain a first image. For example, the first image includes a first grayscale image and a first depth image. Figure 2 , the method for determining the projection area may include the following steps:

[0069] S210: Acquire at least one first image of a preset space.

[0070] S220 . For each first grayscale image, count the grayscale parameters of each first pixel point in the first grayscale image within a first preset neighborhood.

[0071] S230 . For each first depth image, determine, from the first depth image, second pixels corresponding to each first pixel.

[0072] S240: Determine a depth plane fitting normal of each second pixel point within a first preset neighborhood range, and a depth variance of each second pixel point within the second preset neighborhood range.

[0073] The second preset neighborhood range is larger than the first preset neighborhood range.

[0074] S250, determining a pixel point whose grayscale parameter meets a first preset condition, whose angle between the depth plane fitting normal and the preset plane is smaller than a first threshold, and whose depth variance is smaller than a second threshold as a first candidate point.

[0075] S260: Convert a first grayscale image or a first depth image corresponding to the first candidate point into a first mask image.

[0076] S270 , determining a target starting position and a target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixels in each first mask image.

[0077] S280: Determine a target projection area according to the target starting position and target ending position of each carrier.

[0078] Among them, the processes of S210, S270 and S280 are the same as the processes of S110, S130 and S140. For details, please refer to the description of S110, S130 and S140. For the sake of brevity, they are not repeated here.

[0079] The other steps above are described below, as follows:

[0080] In S220, the first grayscale image of the embodiment of the present application is aligned with the first depth image, that is, each pixel of the first grayscale image corresponds to each other one by one. It should be understood that since the sensors for shooting the grayscale image and the depth image are different, the grayscale image and the depth image initially obtained are not necessarily aligned, and the grayscale image may also be distorted during the shooting process. Therefore, after obtaining the initial grayscale image and the initial depth image, the initial grayscale image and the initial depth image may be aligned.

[0081] For example, the initial grayscale image can be distorted and corrected according to the preset distortion parameters, the internal and external parameters of the camera, to obtain a corrected image; the corrected image and the initial depth image can be registered and aligned according to the internal and external parameters of the camera, to obtain an aligned grayscale image and depth image. The distortion correction and alignment process can be referred to the prior art, and will not be described in detail in the embodiments of this application.

[0082] During actual shooting, since the preset rotation angle of the projection device may be smaller than the horizontal field of view of the shooting camera, in order to facilitate subsequent processing, the aligned grayscale image and depth image can be cropped, and only the corresponding pixel points within the horizontal center α range are retained, where α is the preset rotation angle. That is, the first grayscale image and the first depth image in the embodiment of the present application can be the cropped grayscale image and depth image.

[0083] Exemplarily, the horizontal pixel width of the first grayscale image or the first depth image may be expressed in the following form:

[0084] W p =W*α / HFOV

[0085] Among them, W p is the horizontal pixel width of the first grayscale image or the first depth image, W is the horizontal pixel width of the grayscale image or the depth image before cropping, and HFOV is the horizontal field of view corresponding to the grayscale image or the depth image. In actual applications, the horizontal field of view corresponding to the grayscale image and the depth image may be different.

[0086] In this step, the grayscale parameters may include but are not limited to the grayscale mean and grayscale variance of the first pixel point within the first preset neighborhood range, the first pixel point is any pixel point on the first grayscale image. The first preset neighborhood range may be a range with a radius of R centered on the first pixel point.

[0087] Exemplarily, for the first grayscale image at each shooting angle, the grayscale mean and grayscale variance of each first pixel point in the first grayscale image within the radius R may be counted.

[0088] In S230, since the first depth image is aligned with the first grayscale image, for each first pixel point of the first grayscale image, a pixel point corresponding to the first pixel point can be found in the first depth image. In this embodiment of the present application, the pixel point corresponding to the first pixel point in the first depth image is recorded as a second pixel point.

[0089] In S240, for each second pixel point, a depth plane can be fitted according to the depth information of each pixel point within the R radius. Based on the depth plane, a fitting normal of the depth plane can be determined, and the fitting normal can be represented by a vector.

[0090] The second preset neighborhood range is larger than the first preset neighborhood range. Exemplarily, the second preset neighborhood range may be a range with a radius of 2R.

[0091] Exemplarily, for the depth information of each second pixel point, the depth variance within a radius of 2R can be determined. In order to accurately exclude curtains, vases, or corners with fluctuating depths in the future, exemplarily, when calculating the depth variance, the distance from the second pixel point to the depth fitting plane can be used instead of the depth of the second pixel point minus the neighborhood depth mean.

[0092] In S250, taking the grayscale parameters including grayscale mean and grayscale variance as an example, illustratively, the first preset condition may be that the grayscale mean is greater than the grayscale mean threshold, and the grayscale variance is less than the grayscale variance threshold. The preset plane may be the ground.

[0093] It should be understood that the actual captured image may contain ceilings, floors, desktops, curtains, posters, doors, etc. In order to accurately determine the projection area, these objects need to be removed. The embodiment of the present application can achieve this goal through grayscale parameters, depth plane fitting normals and depth variance.

[0094] For example, the pixel points whose angle between the depth plane fitting normal and the ground is less than the first threshold, whose grayscale mean is greater than the grayscale mean threshold, whose grayscale variance is less than the grayscale variance threshold, and whose depth variance is less than the second threshold can be determined as the first candidate points, i.e., the points on the carrier, thereby screening out the points on the plane parallel to the ground, such as the ceiling, the ground, the desktop, etc., as well as the posters, doors, green plants, etc. on the wall, and the curtains, vases, wall corners, etc. with fluctuating depth. The size of each threshold can be set according to actual needs.

[0095] Through the above processing, points on the carrier and points not on the carrier at each shooting angle can be accurately distinguished, providing a basis for subsequent accurate determination of the target projection area.

[0096] In S260, after distinguishing the pixels of the carrier and the non-carrier, the pixel values ​​of the pixels on the carrier can be set to 1, and the pixel values ​​of the pixels on the non-carrier can be set to 0, thereby obtaining a first mask image. Since the first grayscale image and the first depth image are aligned, the pixels on the carrier and the pixels on the non-carrier in the two images are one-to-one corresponding, so the first mask image corresponding to either image can be used. It should be noted that if the first mask image corresponding to the image with a smaller resolution in the first grayscale image and the first depth image is used, the first mask image needs to be interpolated according to the image with a larger resolution.

[0097] The embodiments of the present application can accurately distinguish points on a carrier and a non-carrier by counting the grayscale parameters of each first pixel point of the first grayscale image within a first preset neighborhood range, the depth plane fitting normal of each second pixel point in the first depth image within the first preset neighborhood range, and the depth variance of each second pixel point within the second preset neighborhood range. In this way, the starting and ending positions of the carrier can be accurately determined, providing a basis for subsequently accurately determining the target projection area.

[0098] The following is an explanation of the process of determining the target starting position and target ending position of each carrier. Figure 3 As shown, the method for determining the projection area may include the following steps:

[0099] S310: Acquire at least one first image of a preset space.

[0100] S320 . For each first image, determine first candidate points of the first image according to first parameters of each pixel of the first image within a preset neighborhood range, and obtain a first mask image.

[0101] S330 , generating a histogram corresponding to each first mask image according to the grayscale sum of each column of pixels in each first mask image.

[0102] S340: traverse the first histogram in a first direction to determine a first target column.

[0103] Among them, the first target column is the last column traversed in the first direction whose grayscale sum is greater than the third threshold, and the grayscale sums of each column traversed before the first target column are all greater than the third threshold, and the first histogram is any one of the histograms corresponding to each first mask image.

[0104] S350 , starting from the position of the first target column, traverse the histogram of the current or next first mask image according to the shooting angle to determine the second target column.

[0105] The second target column is the last column traversed in the second direction whose grayscale sum is greater than the third threshold, and the grayscale sums of the columns traversed before the second target column are all greater than the third threshold.

[0106] In S360, the target start position and the target end position of each carrier are determined according to the coordinates of the first target column and the second target column.

[0107] S370: Determine a target projection area according to the target starting position and target ending position of each carrier.

[0108] Among them, the processes of S310, S320 and S370 are the same as the processes of S110, S120 and S140. For details, please refer to the description of S110, S120 and S140. For the sake of brevity, they are not repeated here.

[0109] The other steps above are described below, as follows:

[0110] In S330, for example, for each first mask image, projection may be performed in the vertical direction to obtain the grayscale sum of each column of pixels, and a histogram is generated based on the grayscale sum of each column, wherein the number of columns of the histogram is the same as the number of columns of the first mask image, and each column of the histogram corresponds one-to-one to each column of the first mask image. For example, the last column of the histogram may correspond to the last column of the first mask image.

[0111] In S340 , the first direction may be a direction from the last column to the first column of the first histogram, that is, starting from the last column of the first histogram, each column of the first histogram may be traversed to determine the first target column.

[0112] The first histogram may be any one of the histograms corresponding to the first mask images. For example, the first histogram may be a histogram corresponding to the first mask image with a shooting angle of 0 degrees. Thus, the first target column may be determined in order of shooting angles from small to large.

[0113] For another example, the first histogram may also be a histogram corresponding to the first mask image with a shooting angle of 360 degrees, so that the first target column may be determined in descending order of shooting angles.

[0114] The first target column is the last column whose grayscale sum is greater than the third threshold value after traversing in the first direction, and the grayscale sum of each column traversed before the first target column is greater than the third threshold value. Taking the first histogram containing 10 columns (the first column to the last column are numbered 1-10 respectively) as an example, assuming that starting from the last column, the column with sequence number 5 is found, and the grayscale sum of the columns with sequence numbers 5-10 is greater than the third threshold value, and the grayscale sum of the column with sequence number 4 is less than the third threshold value, then the column with sequence number 5 can be used as the first target column, and the image sequence number of the first mask image corresponding to the first target column and the column coordinates of the first target column are recorded. The size of the third threshold value can be set according to actual needs.

[0115] Since the indoor space may contain objects such as cabinets and curtains, the first mask image at the current shooting angle may not contain the carrier, that is, the first target column does not exist. At this time, the first mask image corresponding to the next shooting angle can be searched to determine whether the first target column exists in the first mask image. If not, continue to search for the first mask image corresponding to the next shooting angle until the first target column is found.

[0116] In S350, after determining the first target column, the second target column can be searched starting from the first target column according to the shooting angle. The second target column is the last column whose grayscale sum is greater than the third threshold value traversed in the second direction, and the grayscale sum of each column traversed before the second target column is greater than the third threshold value. Exemplarily, the second direction can be the direction from the first column to the last column of the histogram.

[0117] For example, the first mask image corresponding to the first target column is the second mask image, and the next shooting angle corresponds to the third first mask image. After determining the first target column, the second first mask image can be searched to determine whether there is a second target column in the histogram corresponding to the first mask image. If so, the target starting position and target ending position of the carrier are found.

[0118] If the second target column is not found in the histogram corresponding to the second first mask image, the third first mask image is searched, and so on, until the second target column is found, thereby finding the target start position and end position of a carrier. At this time, the image number of the first mask image corresponding to the second target column and the column coordinates of the second target column can be recorded.

[0119] The process of determining the start and end positions of other carriers is similar. The start and end positions of each carrier can be obtained by traversing the first mask image from 0 to 360 degrees.

[0120] In S360, the target start position and target end position of each carrier can be determined according to the coordinates of the first target column and the second target column.

[0121] For example, the coordinates of the first target column may be determined as the target starting position of the carrier, and the coordinates of the second target column may be determined as the target ending position of the carrier.

[0122] Taking the carrier as a wall as an example, when generating the first mask image, the wall corners may be mistakenly retained, resulting in multiple walls between the starting and ending positions, or the first image actually taken contains multiple walls. At this time, the determined target starting position and target ending position may be located on different walls. In order to avoid this situation, the target starting position and the target ending position are located on the same wall. The angle between the two column normals can be further determined, and the angle can be used to determine whether there is a wall corner edge in the first mask image.

[0123] Based on this, in some embodiments, the above S360 may include the following steps:

[0124] In a first mask image including a first target column and / or a second target column, for each first mask image, determining a first column normal mean corresponding to each pixel point in the first column and a second column normal mean corresponding to each pixel point in the second column, wherein L columns are included between the first column and the second column;

[0125] Determine the angle between the mean of the first column normals and the mean of the second column normals;

[0126] When the angle is greater than or equal to a fourth threshold, determining a target starting position and a target ending position of each carrier according to the coordinates of the first target column, the second target column, the first column, and the second column;

[0127] When the included angle is smaller than the fourth threshold, the target start position and the target end position of each carrier are determined according to the coordinates of the first target column and the second target column.

[0128] The first column normal mean is the mean of the normals corresponding to the pixels in the first column. The normals corresponding to the pixels can be represented by vectors. The normals corresponding to the pixels are the normals of the depth planes corresponding to the pixels in the first preset neighborhood. The first column normal mean is obtained by averaging the normals of the pixels in the first column. The second column normal mean is the mean of the normals corresponding to the pixels in the second column. The determination process is similar to the first column normal mean.

[0129] Among them, the first column and the second column can be columns spaced by L columns in the first mask image, that is, L columns are included between the first column and the second column, and the size of L can be set according to actual needs. For example, it can be set to 5, that is, the first column and the second column can be columns spaced by 5 columns, with the first column as the first column, L=5, and the second column can be the sixth column.

[0130] After the mean of the first column normals and the mean of the second column normals are determined, the angle between the mean of the first column normals and the mean of the second column normals can be determined based on the vectors corresponding to the mean of the first column normals and the second column normals. When the angle suddenly changes, that is, the angle is greater than or equal to the fourth threshold, it can be considered that there is a corner edge in the first mask image. At this time, the first column and the second column can be used as the new cutoff position and starting position.

[0131] According to the coordinates of the first target column, the second target column, the first column and the second column, the target starting position and the target ending position of each carrier can be determined.

[0132] For example, reference Figure 4, the first target column is 410, the second target column is 420, the first column is 430, and the second column is 440. At this time, the coordinates of the first target column 410 can be used as the target start position of the wall 400, the first column 430 can be used as the target end position of the wall 400, the coordinates of the second column 440 can be used as the target start position of the wall 401, and the coordinates of the second target column 420 can be used as the target end position of the wall 401. The shaded part is a non-wall surface.

[0133] Exemplarily, if the angle between the first column normal mean and the second column normal mean is less than a fourth threshold, the coordinates of the first target column can be used as the target starting position of the carrier, and the coordinates of the second target column can be used as the target ending position of the carrier.

[0134] The embodiment of the present application can eliminate the situation where the target starting position and the target ending position are located on different carriers by determining the angle between the mean values ​​of the column normals of the interval columns, so that the starting and ending positions of each carrier can be accurately determined.

[0135] Exemplarily, the normals of the pixels of the first mask image may be clustered in a clustering manner, and different wall surfaces may be segmented according to the clustering result.

[0136] It should be understood that the carrier may be provided with other objects such as posters, or blocked by other objects such as vases, green plants, curtains, etc., all of which will affect the display of the picture. Therefore, when projecting the picture onto the carrier, it is necessary to avoid these places.

[0137] Based on this, in some embodiments, Figure 5 As shown, the method for determining the projection area may include the following steps:

[0138] S510: Acquire at least one first image of a preset space.

[0139] S520 . For each first image, determine first candidate points of the first image according to first parameters of each pixel of the first image within a preset neighborhood range, and obtain a first mask image.

[0140] S530 , determining a target starting position and a target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixels in each first mask image.

[0141] S540 . For each carrier, determine the center column position according to the target starting position and target ending position of the carrier.

[0142] S550 , according to the shooting angle, convert the third pixel points of each first mask image between the target start position and the target end position to the camera coordinate system corresponding to the image at the center column position to obtain a second mask image of the carrier.

[0143] The third pixel point corresponds to the first candidate point.

[0144] S560: Determine a target projection area according to the second mask image of each carrier.

[0145] Among them, the process of S510-S530 is the same as the process of S110-S130. For details, please refer to the description of S110-S130. For the sake of brevity, it will not be repeated here.

[0146] The other steps above are described below, as follows:

[0147] In S540, it should be understood that due to the problem of shooting angle, the target starting position and target ending position of the same carrier may be located in different first mask images. Therefore, when determining the target projection area, the first mask images at different shooting angles need to be converted to the same coordinate system.

[0148] For example, for each carrier, the center column position may be determined according to the target starting position and the target ending position of the carrier.

[0149] For example, the center column position can be determined in the following form:

[0150]

[0151]

[0152] Among them, n c is the image number of the first mask image corresponding to the center column position, c c is the column coordinate corresponding to the center column position, n i and n j are the image numbers of the first mask image corresponding to the target start position and target end position, respectively, c i and c j are the column coordinates of the first target column and the second target column corresponding to the target start position and target end position respectively, and mod means modulo.

[0153] In S550, the third pixel point may be a point with a pixel value of 1, that is, a point on the carrier. In the embodiment of the present application, the third pixel points of each first mask image between the target start position and the target end position may be uniformly converted to the camera coordinate system corresponding to the image at the center column position, to obtain a complete 2D mask image corresponding to each carrier, that is, the second mask image.

[0154] The second mask image obtained by conversion may have some small holes or gaps between pixels. In this case, morphological operations can be used to fill these small holes and gaps.

[0155] In S560, the target projection area may be determined according to the second mask image of each carrier, for example, the area of ​​the carrier with the largest area may be used as the target projection area.

[0156] The embodiment of the present application can obtain a complete mask image corresponding to each carrier by converting the second mask images at different angles into the same coordinate system, so that the target projection area can be accurately determined.

[0157] It should be understood that the actual carrier may contain objects such as posters and photo frames that affect the projection image. In this case, these objects need to be avoided. Based on this, in some embodiments, the above S560 may include the following steps:

[0158] For each second mask image, determining a maximum inscribed rectangle of the second mask image with the center of gravity of the second mask image as the center;

[0159] Determine the physical size of the maximum inscribed rectangle according to the intrinsic and extrinsic parameters of the shooting camera and the depth information of each pixel in the second mask image;

[0160] The inscribed rectangle with the largest physical size is determined as the target projection area.

[0161] Exemplarily, in order to avoid objects such as posters and photo frames, the maximum inscribed rectangle can be determined from the carrier. For example, the center of gravity of the second mask image can be taken as the center, and the width can be continuously increased to the left and right, and the height can be increased upward and downward to obtain a rectangular frame. The intersection of the rectangular frame and the second mask image is then calculated until, after increasing in a certain direction, the intersection does not contain all mask points with a pixel value of 1, that is, the increase in that direction is terminated. In this way, the maximum inscribed rectangle of the second mask image can be obtained.

[0162] Due to the problems of shooting angle and shooting distance, the maximum inscribed rectangle determined from the second mask image is not necessarily the inscribed rectangle with the largest physical size. Therefore, in order to determine the inscribed rectangle with the largest physical size, the physical size of the maximum inscribed rectangle can be determined based on the intrinsic and extrinsic parameters of the shooting camera and the depth information of each pixel in the second mask image, and then the inscribed rectangle with the largest physical size is determined as the target projection area.

[0163] The embodiment of the present application first determines the maximum inscribed rectangle of each second mask image, then further determines the inscribed rectangle with the largest physical size, and determines the inscribed rectangle with the largest physical size as the target projection area, thereby improving the accuracy of the target projection area and ensuring the clarity of subsequent projection images.

[0164] In some embodiments, after S140, the method for determining the projection area may further include the following steps:

[0165] According to the shooting angle of the first image corresponding to the center column position of the carrier where the target projection area is located, the position of the projection device is adjusted so that the adjusted projection device faces the center of the target projection area;

[0166] According to the coordinates of the corner points of the target projection area, the projection picture projected onto the corresponding carrier is corrected so that the corrected projection picture is located in the target projection area.

[0167] After the target projection area is determined, the position of the projection device can be adjusted according to the shooting angle of the first image corresponding to the center column position of the carrier where the target projection area is located, so that the adjusted projection device faces the center of the target projection area.

[0168] During actual projection, the projection screen may not match the target projection area. For example, part of the projection screen is outside the target projection area, or the projection screen exceeds the target projection area. At this time, the projection screen projected onto the corresponding carrier can be corrected according to the corner point coordinates of the target projection area, so that the corrected projection screen is located in the target projection area. In this way, the best viewing screen can be obtained to meet the viewing needs of users. The specific correction process can be referred to the prior art, and the embodiments of this application will not be described in detail.

[0169] Based on the same inventive concept, the embodiment of the present application also provides a device for determining a projection area. Figure 6 The device for determining the projection area provided in the embodiment of the present application is described in detail.

[0170] Figure 6 A structural diagram of a device for determining a projection area provided in an embodiment of the present application.

[0171] like Figure 6As shown, the projection area determination device may include an acquisition module 610 and a determination module 620;

[0172] An acquisition module 610 is used to acquire at least one first image of a preset space, each first image is obtained by photographing the preset space at different shooting angles, and the first image includes at least one carrier, and the carrier is used to display a projection picture;

[0173] A determination module 620 is used to determine, for each first image, a first candidate point of the first image according to a first parameter of each pixel point of the first image within a preset neighborhood range, to obtain a first mask image, where the first candidate point is a point on the carrier;

[0174] The determination module 620 is further configured to determine a target start position and a target end position of each carrier from each first mask image according to the grayscale sum of each column of pixels in each first mask image;

[0175] The determination module 620 is further used to determine the target projection area according to the target starting position and the target ending position of each carrier.

[0176] The embodiment of the present application shoots a preset space at different shooting angles to obtain at least one first image, determines the first candidate point of the first image according to the first parameter of each pixel point of the first image within the preset neighborhood range, obtains the first mask image, determines the target starting position and target ending position of each carrier from each first mask image according to the grayscale sum of each column of pixel points in each first mask image, and determines the target projection area according to the target starting position and target ending position of each carrier. That is, the embodiment of the present application can automatically process the first image obtained by shooting to obtain the starting and ending positions of each carrier, and can automatically determine the target projection area based on the starting and ending positions of each carrier without manual determination, thereby avoiding errors caused by manual labor and improving the accuracy of the target projection area.

[0177] In some embodiments, the first image includes a first grayscale image and a first depth image, and the first grayscale image and the first depth image are aligned;

[0178] The determination module 620 is specifically configured to:

[0179] For each first grayscale image, counting the grayscale parameters of each first pixel point in the first grayscale image within a first preset neighborhood range;

[0180] For each first depth image, determining a second pixel point corresponding to each first pixel point in the first depth image;

[0181] Determine a depth plane fitting normal of each second pixel point within a first preset neighborhood range, and a depth variance of each second pixel point within a second preset neighborhood range, wherein the second preset neighborhood range is larger than the first preset neighborhood range;

[0182] Determine as a first candidate point a pixel point whose grayscale parameter satisfies a first preset condition, whose angle between the depth plane fitting normal and the preset plane is less than a first threshold, and whose depth variance is less than a second threshold;

[0183] The first grayscale image or the first depth image corresponding to the first candidate point is converted into a first mask image.

[0184] In some embodiments, the determination module 620 is specifically configured to:

[0185] Generate a histogram corresponding to each first mask image according to the grayscale sum of each column of pixels in each first mask image;

[0186] According to the first direction, the first histogram is traversed to determine the first target column, the first target column is the last column whose grayscale sum is greater than the third threshold value after traversing according to the first direction, and the grayscale sums of the columns traversed before the first target column are all greater than the third threshold value, and the first histogram is any one of the histograms corresponding to the first mask images;

[0187] Starting from the position of the first target column, according to the shooting angle, traverse the histogram of the current or next first mask image to determine the second target column, where the second target column is the last column whose grayscale sum is greater than the third threshold value after traversing in the second direction, and the grayscale sums of the columns traversed before the second target column are all greater than the third threshold value;

[0188] According to the coordinates of the first target column and the second target column, the target starting position and the target ending position of each carrier are determined.

[0189] In some embodiments, the determination module 620 is specifically configured to:

[0190] In a first mask image including a first target column and / or a second target column, for each first mask image, determining a first column normal mean corresponding to each pixel point in the first column and a second column normal mean corresponding to each pixel point in the second column, wherein L columns are included between the first column and the second column;

[0191] Determine the angle between the mean of the first column normals and the mean of the second column normals;

[0192] When the angle is greater than or equal to a fourth threshold, determining a target starting position and a target ending position of each carrier according to the coordinates of the first target column, the second target column, the first column, and the second column;

[0193] When the included angle is smaller than the fourth threshold, the target start position and the target end position of each carrier are determined according to the coordinates of the first target column and the second target column.

[0194] In some embodiments, the determination module 620 is specifically configured to:

[0195] For each carrier, determine the center column position according to the target starting position and the target ending position of the carrier;

[0196] According to the shooting angle, the third pixel point of each first mask image between the target start position and the target end position is converted to the camera coordinate system corresponding to the image at the center column position, so as to obtain a second mask image of the carrier, and the third pixel point corresponds to the first candidate point;

[0197] The target projection area is determined according to the second mask image of each carrier.

[0198] In some embodiments, the determination module 620 is specifically configured to:

[0199] For each second mask image, determining a maximum inscribed rectangle of the second mask image with the center of gravity of the second mask image as the center;

[0200] Determine the physical size of the maximum inscribed rectangle according to the intrinsic and extrinsic parameters of the shooting camera and the depth information of each pixel in the second mask image;

[0201] The inscribed rectangle with the largest physical size is determined as the target projection area.

[0202] In some embodiments, the projection area determination device may further include:

[0203] An adjustment module, configured to adjust the position of the projection device according to the shooting angle of the first image corresponding to the center column position of the carrier where the target projection area is located, after the determination module 620 determines the target projection area according to the target starting position and the target ending position of each carrier, so that the adjusted projection device faces the center of the target projection area;

[0204] The correction module is used to correct the projection picture projected onto the corresponding carrier according to the corner point coordinates of the target projection area, so that the corrected projection picture is located in the target projection area.

[0205] In some embodiments, the acquisition module 610 is specifically configured to:

[0206] Control the projection device to rotate according to a preset rotation angle;

[0207] When the projection device completes rotation according to the preset rotation angle, the preset space is photographed by the shooting camera on the projection device to obtain at least one first image, and the preset rotation angle is less than or equal to the horizontal field angle of the shooting camera.

[0208] Figure 6 Each module in the device shown has the function of realizing Figure 1-Figure 5 The functions of each step in the process can achieve the corresponding technical effects, so for the sake of brevity, they will not be described in detail here.

[0209] Based on the same inventive concept, the present application embodiment also provides a projection device. Figure 7 The projection device provided in the embodiment of the present application is described in detail.

[0210] like Figure 7 As shown, the projection device may include a processor 710 , a memory 720 for storing computer program instructions, and a camera 730 .

[0211] The processor 710 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0212] The memory 720 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 720 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 720 may include a removable or non-removable (or fixed) medium, or the memory 720 is a non-volatile solid-state memory. In one example, the memory 720 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0213] The processor 710 reads and executes the computer program instructions stored in the memory 720 to implement Figure 1-Figure 5 The method in the embodiment shown in the figure is achieved Figure 1-Figure 5 The corresponding technical effects achieved by executing the method in the illustrated embodiment are not described in detail here for the sake of brevity.

[0214] The photographing camera 730 is used to photograph at least one first image of a preset space.

[0215] In one example, the projection device may further include a communication interface 740 and a bus 750. Figure 7 As shown, the processor 710, the memory 720, the camera 730, and the communication interface 740 are connected via a bus 750 and communicate with each other.

[0216] The communication interface 740 is mainly used to implement communication between various modules, devices and / or equipment in the embodiments of the present application.

[0217] Bus 750 includes hardware, software or both, and each component of electronic device is coupled to each other.For example, but not limitation, bus 750 may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), hypertransmission (Hyper Transport, HT) interconnection, industry standard architecture (IndustryStandard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 750 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0218] After displaying the screen saver image setting interface, the electronic device can execute the screen saver image display method in the embodiment of the present application, thereby realizing the combination of Figure 1-Figure 5 The method for determining the projection area described and Figure 6 A device for determining a projection area is described.

[0219] In addition, in combination with the method for determining the projection area in the above embodiments, the embodiment of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any method for determining the projection area in the above embodiments is implemented.

[0220] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0221] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0222] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0223] The above reference is according to the method of the present application embodiment, the flow chart of the device (system) and the computer program product and / or the block diagram of the present application embodiment. It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0224] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for determining a projection area, It is characterized in that include: Acquire at least one first image of a preset space, where each of the first images is obtained by photographing the preset space at different shooting angles; For each of the first images, according to first parameters of each pixel point of the first image within a preset neighborhood, determine a first candidate point of the first image to obtain a first mask image, wherein the first candidate point is a point on a carrier, and the carrier is used to display a projection picture; Determining a target starting position and a target ending position of each of the carriers from each of the first mask images according to the grayscale sum of each column of pixel points in each of the first mask images; A target projection area is determined according to the target starting position and the target ending position of each carrier.

2. The method according to claim 1, It is characterized in that The first image includes a first grayscale image and a first depth image, and the first grayscale image and the first depth image are aligned; The method of determining, for each of the first images, first candidate points of the first image according to first parameters of each pixel point within a preset neighborhood range to obtain a first mask image includes: For each first grayscale image, counting the grayscale parameters of each first pixel point in the first grayscale image within a first preset neighborhood range; For each first depth image, determining a second pixel point corresponding to each first pixel point in the first depth image; Determine a depth plane fitting normal of each of the second pixel points within the first preset neighborhood range, and a depth variance of each of the second pixel points within a second preset neighborhood range, wherein the second preset neighborhood range is larger than the first preset neighborhood range; Determine as a first candidate point a pixel point whose grayscale parameter satisfies a first preset condition, whose angle between the depth plane fitting normal and the preset plane is less than a first threshold, and whose depth variance is less than a second threshold; The first grayscale image or the first depth image corresponding to the first candidate point is converted into a first mask image.

3. The method according to claim 1, It is characterized in that Determining the target starting position and the target ending position of each carrier from each of the first mask images according to the grayscale sum of each column of pixel points in each of the first mask images comprises: generating a histogram corresponding to each of the first mask images according to the grayscale sum of each column of pixels in each of the first mask images; According to the first direction, the first histogram is traversed to determine a first target column, the first target column is the last column whose grayscale sum is greater than a third threshold value after traversing according to the first direction, and the grayscale sums of the columns traversed before the first target column are all greater than the third threshold value, and the first histogram is any one of the histograms corresponding to the first mask images; Starting from the position of the first target column, according to the shooting angle, traverse the histogram of the current or next first mask image to determine the second target column, where the second target column is the last column whose grayscale sum is greater than a third threshold value after traversing in the second direction, and the grayscale sums of the columns traversed before the second target column are all greater than the third threshold value; The target starting position and the target ending position of each of the carriers are determined according to the coordinates of the first target column and the second target column.

4. The method according to claim 3, It is characterized in that Determining the target starting position and the target ending position of each of the carriers according to the coordinates of the first target column and the second target column includes: In a first mask image including the first target column and / or the second target column, for each first mask image, determining a first column normal mean corresponding to each pixel point in the first column and a second column normal mean corresponding to each pixel point in the second column, wherein L columns are included between the first column and the second column; Determine the angle between the mean of the first column of normal lines and the mean of the second column of normal lines; When the angle is greater than or equal to a fourth threshold, determining a target starting position and a target ending position of each of the carriers according to the coordinates of the first target column, the second target column, the first column, and the second column; When the included angle is smaller than a fourth threshold, a target start position and a target end position of each of the carriers are determined according to the coordinates of the first target column and the second target column.

5. The method according to claim 1, It is characterized in that The step of determining a target projection area according to a target starting position and a target ending position of each of the carriers comprises: For each carrier, determining a center column position according to a target starting position and a target ending position of the carrier; According to the shooting angle, the third pixel point of each first mask image between the target starting position and the target ending position is converted to the camera coordinate system corresponding to the image where the center column position is located, so as to obtain a second mask image of the carrier, wherein the third pixel point corresponds to the first candidate point; The target projection area is determined according to the second mask image of each of the carriers.

6. The method according to claim 5, It is characterized in that The step of determining the target projection area according to the second mask image of each of the carriers includes: For each of the second mask images, determining a maximum inscribed rectangle of the second mask image with the center of gravity of the second mask image as the center; Determining the physical size of the maximum inscribed rectangle according to the intrinsic parameters and extrinsic parameters of the shooting camera and the depth information of each pixel in the second mask image; The inscribed rectangle with the largest physical size is determined as the target projection area.

7. The method according to any one of claims 1 to 6, It is characterized in that After determining the target projection area according to the target starting position and the target ending position of each of the carriers, the method further includes: According to the shooting angle of the first image corresponding to the center column position of the carrier where the target projection area is located, the position of the projection device is adjusted so that the adjusted projection device faces the center of the target projection area; According to the coordinates of the corner points of the target projection area, the projection picture projected onto the corresponding carrier is corrected so that the corrected projection picture is located in the target projection area.

8. The method according to any one of claims 1 to 6, It is characterized in that The acquiring at least one first image of the preset space includes: Control the projection device to rotate according to a preset rotation angle; When the projection device completes rotation according to a preset rotation angle, the preset space is photographed by a camera on the projection device to obtain at least one first image, and the preset rotation angle is less than or equal to a horizontal field of view angle of the camera.

9. A device for determining a projection area, It is characterized in that It includes an acquisition module and a determination module; The acquisition module is used to acquire at least one first image of a preset space, each of the first images is obtained by photographing the preset space at a different shooting angle, and the first image includes at least one carrier, and the carrier is used to display a projection picture; The determination module is configured to determine, for each of the first images, first candidate points of the first image according to first parameters of each pixel point of the first image within a preset neighborhood range, to obtain a first mask image, wherein the first candidate points are points on the carrier; The determination module is further configured to determine a target starting position and a target ending position of each of the carriers from each of the first mask images according to the grayscale sum of each column of pixels in each of the first mask images; The determination module is further used to determine the target projection area according to the target starting position and the target ending position of each of the carriers.

10. A projection device, It is characterized in that include: processor; a memory for storing computer program instructions; A shooting camera, used to shoot at least one first image of a preset space; When the computer program instructions are executed by the processor, the method according to any one of claims 1 to 8 is implemented.

11. A computer readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.