CN116800938A - Curtain alignment method, device, terminal and medium for projector - Google Patents

Curtain alignment method, device, terminal and medium for projector Download PDF

Info

Publication number
CN116800938A
CN116800938A CN202310794816.5A CN202310794816A CN116800938A CN 116800938 A CN116800938 A CN 116800938A CN 202310794816 A CN202310794816 A CN 202310794816A CN 116800938 A CN116800938 A CN 116800938A
Authority
CN
China
Prior art keywords
curtain
resolution
projector
projection picture
vertex
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310794816.5A
Other languages
Chinese (zh)
Inventor
吴建雄
洪坤
易小四
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Luckystar Technology Co ltd
Original Assignee
Shenzhen Luckystar Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Luckystar Technology Co ltd filed Critical Shenzhen Luckystar Technology Co ltd
Priority to CN202310794816.5A priority Critical patent/CN116800938A/en
Publication of CN116800938A publication Critical patent/CN116800938A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a curtain alignment method, a device, a terminal and a medium for a projector, wherein the method comprises the following steps: acquiring a curtain photo shot by a camera to obtain projection picture outline boundary coordinates and curtain outline boundary coordinates; extracting four vertex coordinates corresponding to each vertex; calculating the number of pixel points corresponding to four side lengths in the corresponding image profile, and calculating the resolution corresponding to each pixel point according to the resolution of the current projection picture; according to the pixel point resolution difference value of each vertex of the projection picture and each vertex of the curtain, calculating to obtain the resolution of the projection picture to be scaled; an LCD screen within the projector is controlled to adjust the projected picture size. The application can enable the user to conveniently adjust the position and the size of the picture, avoid the picture to exceed the curtain or leave black edges, and improve the experience of the user.

Description

Curtain alignment method, device, terminal and medium for projector
[ field of technology ]
The present application relates to the field of projector technologies, and in particular, to a method, an apparatus, a terminal, and a medium for aligning a curtain of a projector.
[ background Art ]
A projector is a device that projects images or video onto a projection screen and can be connected to a computer, a game machine, a memory, etc. through different interfaces to play a corresponding video signal. When the projector is used, the projection picture and the projection curtain are required to be aligned so as to achieve better watching effect.
Currently, some projectors are provided with a built-in camera, wherein the camera is used for shooting a projection picture projected onto a curtain by the projector. Specifically, the projector analyzes and calculates the image shot by the camera, so that the curtain alignment function is realized. However, the existing projector without the built-in camera cannot realize the curtain automatic alignment function. Meanwhile, the screen alignment function of the existing projector cannot ensure that a projection picture just fully fills a curtain area, so that the problem that the projection picture exceeds the curtain or a black edge is left is likely to occur, and the use experience of a user is reduced.
In view of the foregoing, it is desirable to provide a curtain alignment method, apparatus, terminal and medium for a projector that overcomes the above-mentioned drawbacks.
[ application ]
The application aims to provide a curtain alignment method, a device, a terminal and a medium for a projector, which aim to solve the problems that the existing projector without a built-in camera cannot realize the automatic curtain alignment function and the alignment function cannot ensure that a projection picture just spreads over a curtain area, and improve the use experience of a user.
In order to achieve the above object, a first aspect of the present application provides a curtain alignment method for a projector, comprising the steps of:
step S10: setting the projection picture proportion of the projector to be the maximum, and acquiring the resolution of the current projection picture;
step S20: acquiring a curtain photo shot by a camera, and calculating according to the curtain photo to respectively obtain projection picture contour boundary coordinates and curtain contour boundary coordinates;
step S30: respectively extracting four vertex coordinates corresponding to each of the projection picture outline boundary coordinates from the curtain outline boundary coordinates;
step S40: calculating the number of pixel points corresponding to four side lengths in the corresponding image contour according to the four vertex coordinates, and calculating the resolution corresponding to each pixel point according to the resolution of the current projection picture;
step S50: according to the pixel point resolution difference value of each vertex of the projection picture and each vertex of the curtain, calculating to obtain the resolution of the projection picture to be scaled;
step S60: and controlling an LCD screen in the projector according to the resolution to be scaled so as to adjust the size of a projection picture.
In a preferred embodiment, the step S20 includes:
converting the color image of the curtain photo into a 256-level gray image;
performing binarization threshold processing on the gray level image to obtain a black-and-white image;
and finding out the edge contours of the projection picture and the curtain according to a preset image recognition algorithm, and recording position information through boundary coordinates.
In a preferred embodiment, in the step of converting the color image of the curtain photograph into a 256-level gray scale image, it includes:
according to a preset calculation formula, carrying out weighted summation on R, G, B information of the color image of the curtain photo to obtain a Gray value Gray of the RBG; wherein, the calculation formula is:
Gray=0.3R+0.59G+0.11*B。
in a preferred embodiment, the step S50 includes:
the four vertex coordinates defining the projection screen are (x) respectively in the clockwise direction with the top left vertex as the starting point 1 ,y 1 )、(x 2 ,y 2 )、(x 3 ,y 3 )、(x 4 ,y 4 );
Defining the resolution corresponding to each pixel point of the left side length as F 1 The resolution corresponding to each pixel point with the left side length is F 2 F is then 1 =m/(y 1 -y 4 ),F 2 =m/(y 2 -y 3 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein, the preset resolution of the projector is n x m;
resolution f=f corresponding to arbitrary coordinates (x, y) in the projection screen 1 +(x-x 1 ) K, where k= (F 1 -F 2 )/(x 1 -x 2 )。
In a preferred embodiment, the step S60 further includes:
shooting again through the camera to obtain a new curtain photo, and obtaining new vertex coordinates of the projection picture again;
and judging whether the new vertex coordinates are all in the curtain contour boundary, and if at least one vertex coordinate is out of the curtain contour boundary, returning to the step S10.
In a preferred embodiment, the step S20 includes:
and acquiring a curtain photo sent by the external shooting device.
A second aspect of the present application provides a curtain alignment device for a projector, comprising:
the initialization projection module is used for setting the projection picture proportion of the projector to be maximum and obtaining the resolution of the current projection picture;
the contour boundary acquisition module is used for acquiring a curtain photo shot by a camera, and calculating according to the curtain photo to respectively obtain the contour boundary coordinates of a projection picture and the contour boundary coordinates of the curtain;
the vertex coordinate extraction module is used for respectively extracting four vertex coordinates corresponding to each of the projection picture outline boundary coordinates and the curtain outline boundary coordinates;
the pixel point calculation module is used for calculating the number of pixel points corresponding to four side lengths in the corresponding image profile according to the four vertex coordinates, and calculating the resolution corresponding to each pixel point according to the resolution of the current projection picture;
the resolution calculation module is used for calculating the resolution of the projection picture to be scaled according to the pixel point resolution difference value between each vertex of the projection picture and each vertex of the curtain;
and the projection picture adjusting module is used for controlling the LCD screen in the projector according to the resolution to be scaled so as to adjust the size of the projection picture.
A third aspect of the present application provides a terminal comprising a memory, a processor and a computer program stored in the memory, which when executed by the processor, performs the steps of the curtain alignment method for a projector as in any of the embodiments described above.
A fourth aspect of the application provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of a curtain alignment method for a projector as described in any of the above embodiments.
According to the curtain alignment method, device, terminal and medium for the projector, the current curtain photo is shot through the camera arranged in or arranged outside the projector, the outline boundary of the projection picture and the curtain is respectively determined, so that the vertex coordinates are correspondingly extracted, then the resolution of the projection picture to be scaled is obtained according to the actual pixel point resolution of the projection picture and the difference value of the target pixel point resolution after the curtain is supposed to be fully paved, four vertexes of the projection picture are overlapped with the four vertexes of the curtain, finally, the projection picture area is aligned with the curtain area, the automatic alignment function of the projection picture is realized without arranging the camera, the position and the size of the picture can be conveniently adjusted by a user, the picture is prevented from exceeding the curtain or leaving a black edge, and the experience of the user is improved. Meanwhile, all operations can be performed locally without uploading server processing, so that the network connection requirement is reduced, and the data processing rate is accelerated.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a curtain alignment method for a projector according to the present application;
FIG. 2 is a schematic view of a projection screen of one embodiment of a curtain alignment method for a projector shown in FIG. 1;
fig. 3 is a frame diagram of a curtain alignment device for a projector according to the present application.
[ detailed description ] of the application
In order to make the objects, technical solutions and advantageous technical effects of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and detailed description. It should be understood that the detailed description is intended to illustrate the application, and not to limit the application.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Example 1
In an embodiment of the present application, a curtain alignment method for a projector is provided, which is used to make a projection image of the projector just fully spread over a curtain area at a preset position, so as to improve user experience.
As shown in fig. 1, the curtain alignment method for a projector includes the following steps S10 to S60.
Step S10: and setting the projection picture proportion of the projector to be the maximum, and acquiring the resolution of the current projection picture.
Specifically, the screen ratio of the projector may be set to 0% to 100%, and at most 100%. Thus, initializing the projected picture, a maximum proportion of 100% may ensure that the projected picture contour boundary is greater than the curtain contour boundary.
Step S20: and acquiring a curtain photo shot by the camera, and calculating according to the curtain photo to respectively obtain the projection picture outline boundary coordinates and the curtain outline boundary coordinates.
In this step, the projection area may be photographed by a camera built in the projector, or a photograph may be photographed by an external photographing device, and then the projector obtains a photograph of a curtain sent by the external photographing device. For example, a photo can be shot through a mobile phone, and then the shot photo is sent to a projector for processing through Bluetooth, wifi, a data line and the like, so that the cost of the projector is reduced, and meanwhile, the method can be also adapted to the projector without a built-in camera, and the application range of the method is improved.
In one embodiment, step S20 includes the following steps S21-S23.
Step S21: the color image of the curtain photo is converted into a 256-level gray image, so that the curtain area and the projection area can be conveniently identified.
Specifically, R, G, B information of the color image of the curtain photo is weighted and summed according to a preset calculation formula to obtain a Gray value Gray of the RBG. Wherein R, G, B is respectively three color channels of red, green and blue, and the calculation formula is as follows: gray=0.3 r+0.59g+0.11×b, thereby converting the color map into a 256 Gray-scale image.
Step S22: and carrying out binarization thresholding on the gray level image to obtain a black-and-white image.
Specifically, in order to identify the contour, it is also necessary to perform binarization thresholding on the gray image, that is, to set the gray of the pixel close to black to 255, and to set the gray close to white to 0, and the processed picture is black-white. A threshold may be preset, and as long as the pixel points with gray values exceeding the threshold uniformly set the pixel values to 255, and vice versa, 0, so as to convert the gray image into an image with only two colors of black and white.
Step S23: and finding out the edge contours of the projection picture and the curtain according to a preset image recognition algorithm, and recording position information through boundary coordinates.
It should be noted that, the specific steps and implementation principles of the image recognition algorithm for recognizing the edge contour according to the black-white image may refer to the prior art, and the present application is not described herein. For example, the image recognition algorithm may employ a Blob analysis method (Blob analysis), a template matching method, a deep learning method (including a classification-based R-CNN series two-order target detection algorithm twostage, and a first-order target detection algorithm single that converts target detection into regression problems), and the like.
In this step, since the edge of the curtain area is usually provided with an obvious regular boundary or an obvious boundary line formed at the boundary with the environment, and the interior is white, and the projection screen is usually a color screen, the curtain area and the projection area can be distinguished, and the two areas can be marked in the same coordinate system.
Step S30: and respectively extracting four vertex coordinates corresponding to each of the projection picture outline boundary coordinates from the curtain outline boundary coordinates.
It can be appreciated that the curtain area is generally rectangular, and the projection area is generally rectangular or trapezoidal, so that the position and size of the area can be determined by the coordinate positions of the four vertices. The method for extracting four vertices from a rectangle or trapezoid can refer to the prior art, and the application is not repeated here. For example, the intersection point of all straight lines can be calculated, the intersection point of which the coordinates are out of range is filtered, the subsequent direct sorting is classified by combining Euclidean distance, the 4 clusters with the maximum number of points are taken, the average value is taken, and finally, the upper left corner (the horizontal and vertical coordinates are smaller than the middle point) is taken as the first point, and the clockwise sorting is carried out.
Step S40: and calculating the number of the pixel points corresponding to the four side lengths in the corresponding image contour according to the four vertex coordinates, and calculating the resolution corresponding to each pixel point according to the resolution of the current projection picture.
The resolution of the projection image may be known by the current projection parameters of the projector, for example, it is assumed that the resolution of the projector is 1920×1080, and the number of pixels corresponding to the four side lengths in the image may be directly obtained by the parameters of the image itself, so that the resolution corresponding to each pixel may be calculated.
Step S50: and calculating to obtain the resolution of the projection picture to be scaled according to the pixel point resolution difference value of each vertex of the projection picture and each vertex of the curtain.
It can be understood that if the projection image and the curtain area cannot be completely overlapped, that is, at least one vertex of the projection image cannot be overlapped with the corresponding vertex of the curtain area, at this time, the length of at least one edge of the projection image and the length of at least one edge of the curtain area are inconsistent, the projection image and the curtain area are displayed in the same curtain photo shot by the camera, that is, the number of pixels of the corresponding edge of the projection image and the curtain area are inconsistent, and the resolution is preset and fixed, so that a difference exists in the resolution corresponding to each pixel of the edge length. The difference corresponds to the resolution of the projection picture to be scaled, namely, after the projection picture is adjusted according to the difference, four vertexes of the projection picture can be just overlapped with four vertexes of the curtain area, and at the moment, the projection picture is just paved with the curtain area.
It should be noted that, since the projection may not be perpendicular to the curtain, the generated projection image may be a trapezoid, as shown in fig. 2, where the lengths of the left and right sides are not equal, and the resolutions of the pixels on the left and right sides are different, but it may be considered that the resolution is a linear change process.
Thus, in one embodiment, step S50 further comprises: the four vertex coordinates defining the projection screen are (x) respectively in the clockwise direction with the top left vertex as the starting point 1 ,y 1 )、(x 2 ,y 2 )、(x 3 ,y 3 )、(x 4 ,y 4 ) The method comprises the steps of carrying out a first treatment on the surface of the Defining the resolution corresponding to each pixel point of the left side length as F 1 The resolution corresponding to each pixel point with the left side length is F 2 F is then 1 =m/(y 1 -y 4 ),F 2 =m/(y 2 -y 3 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein, the preset resolution of the projector is n x m; resolution f=f corresponding to arbitrary coordinates (x, y) in the projection screen 1 +(x-x 1 ) K, where k= (F 1 -F 2 )/(x 1 -x 2 ). For example, if the projector resolution is 1920×1080, F 1 =1080/(y 1 -y 4 ),F 2 =1080/(y 2 -y 3 )。
Step S60: an LCD (Liquid Crystal Display ) screen within the projector is controlled according to the resolution size to be scaled to adjust the projected picture size.
For example, the size of the projection picture can be adjusted by adjusting the projection angle of the LCD screen in the projector or the corresponding stretching picture, so that the picture is aligned to the curtain area, and the use experience of the user is improved.
Further, in one embodiment, as shown in fig. 1, step S60 is further followed by step S70.
Step S70: shooting again through the camera to obtain a new curtain photo, and obtaining new vertex coordinates of the projection picture again; and judging whether the new vertex coordinates are all in the curtain contour boundary, and if at least one vertex coordinate is out of the curtain contour boundary, returning to the step S10.
Specifically, a new image is obtained by photographing again, the new vertex coordinates are obtained through the steps S10-S30, and whether the new vertices of the projection area are all in the curtain area is determined, if not, the process returns to S10, so that readjustment is performed.
Example two
The application provides a curtain alignment device 100 for a projector, which is used for enabling a projection picture of the projector to just fully cover a curtain area at a preset position, so that user experience is improved. It should be noted that, the specific steps and implementation principles of the curtain alignment device 100 for a projector may refer to the above-mentioned curtain alignment method for a projector, and will not be described herein.
As shown in fig. 3, the curtain alignment device 100 for a projector includes:
initializing a projection module 10, which is used for setting the projection picture proportion of the projector to be the maximum and obtaining the resolution of the current projection picture;
the contour boundary obtaining module 20 is configured to obtain a curtain photo taken by a camera, and calculate to obtain a projection picture contour boundary coordinate and a curtain contour boundary coordinate according to the curtain photo;
the vertex coordinate extraction module 30 is configured to extract four vertex coordinates corresponding to each of the projection screen contour boundary coordinates and the curtain contour boundary coordinates;
the pixel point calculating module 40 is configured to calculate the number of pixel points corresponding to four side lengths in the corresponding image contour according to the four vertex coordinates, and calculate the resolution corresponding to each pixel point according to the resolution of the current projection screen;
the resolution calculating module 50 is configured to calculate, according to the pixel resolution difference between each vertex of the projection screen and each vertex of the curtain, a resolution of the projection screen that needs to be scaled;
the projection screen adjusting module 60 is used for controlling the LCD screen in the projector according to the resolution size to be scaled so as to adjust the projection screen size.
Further, the contour boundary obtaining module 20 is further configured to: converting the color image of the curtain photo into a 256-level gray image; performing binarization threshold processing on the gray level image to obtain a black-and-white image; and finding out the edge contours of the projection picture and the curtain according to a preset image recognition algorithm, and recording position information through boundary coordinates.
Wherein, in the process of converting the color image of the curtain photo into 256-level gray scale image, the method comprises the following steps: according to a preset calculation formula, carrying out weighted summation on R, G, B information of the color image of the curtain photo to obtain a Gray value Gray of the RBG; wherein, the calculation formula is: gray=0.3 r+0.59g+0.11×b.
Further, the resolution calculation module 50 is further configured to: defining four vertex coordinates of the projection picture, which are (x 1, y 1), (x 2, y 2), (x 3, y 3) and (x 4, y 4) respectively in the clockwise direction by taking the top left corner vertex as a starting point; defining the resolution corresponding to each pixel point of the left side length as F1, and defining the resolution corresponding to each pixel point of the left side length as F2, wherein F1=m/(y 1-y 4), and F2=m/(y 2-y 3); wherein, the preset resolution of the projector is n x m; the resolution f=f1+ (x-x 1) x K corresponding to any coordinate (x, y) in the projection screen, where k= (F1-F2)/(x 1-x 2).
Further, the curtain alignment device 100 for a projector further includes:
the alignment judging module is used for shooting again through the camera to obtain a new curtain photo and obtaining new vertex coordinates of the projection picture again; and judging whether the new vertex coordinates are all positioned in the curtain contour boundary, and if at least one vertex coordinate is positioned outside the curtain contour boundary, carrying out picture adjustment again.
Example III
A third aspect of the present application provides a terminal comprising a memory, a processor and a computer program stored in the memory, which when executed by the processor, performs the steps of the curtain alignment method for a projector as in any of the embodiments described above.
Example IV
A fourth aspect of the application provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of a curtain alignment method for a projector as described in any of the above embodiments.
In summary, according to the curtain alignment method, device, terminal and medium for a projector provided by the application, a current curtain photo is shot through an internal or external camera of the projector, and the outline boundary of a projection picture and the curtain is respectively determined, so that vertex coordinates are correspondingly extracted, and then the resolution of the projection picture to be scaled is obtained according to the actual pixel resolution of the projection picture and the difference value of the target pixel resolution after the curtain is assumed to be fully paved, so that four vertices of the projection picture are overlapped with four vertices of the curtain, finally, the projection picture area is aligned with the curtain area, the automatic alignment function of the projection picture is realized without the need of an internal camera, the position and the size of the picture can be conveniently adjusted by a user, the picture is prevented from exceeding the curtain or leaving a black edge, and the experience of the user is improved. Meanwhile, all operations can be performed locally without uploading server processing, so that the network connection requirement is reduced, and the data processing rate is accelerated.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the system is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed system or apparatus/terminal device and method may be implemented in other manners. For example, the system or apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, systems or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The present application is not limited to the details and embodiments described herein, and thus additional advantages and modifications may readily be made by those skilled in the art, without departing from the spirit and scope of the general concepts defined in the claims and the equivalents thereof, and the application is not limited to the specific details, representative apparatus and illustrative examples shown and described herein.

Claims (9)

1. A curtain alignment method for a projector, comprising the steps of:
step S10: setting the projection picture proportion of the projector to be the maximum, and acquiring the resolution of the current projection picture;
step S20: acquiring a curtain photo shot by a camera, and calculating according to the curtain photo to respectively obtain projection picture contour boundary coordinates and curtain contour boundary coordinates;
step S30: respectively extracting four vertex coordinates corresponding to each of the projection picture outline boundary coordinates from the curtain outline boundary coordinates;
step S40: calculating the number of pixel points corresponding to four side lengths in the corresponding image contour according to the four vertex coordinates, and calculating the resolution corresponding to each pixel point according to the resolution of the current projection picture;
step S50: according to the pixel point resolution difference value of each vertex of the projection picture and each vertex of the curtain, calculating to obtain the resolution of the projection picture to be scaled;
step S60: and controlling an LCD screen in the projector according to the resolution to be scaled so as to adjust the size of a projection picture.
2. The curtain alignment method for a projector according to claim 1, wherein the step S20 includes:
converting the color image of the curtain photo into a 256-level gray image;
performing binarization threshold processing on the gray level image to obtain a black-and-white image;
and finding out the edge contours of the projection picture and the curtain according to a preset image recognition algorithm, and recording position information through boundary coordinates.
3. The curtain alignment method for a projector of claim 2, wherein in the step of converting a color image of the curtain photograph into a gray-scale image of 256 steps, comprising:
according to a preset calculation formula, carrying out weighted summation on R, G, B information of the color image of the curtain photo to obtain a Gray value Gray of the RBG; wherein, the calculation formula is:
Gray=0.3R+0.59G+0.11*B。
4. the curtain alignment method for a projector according to claim 1, wherein the step S50 includes:
four tops defining projection pictureThe point coordinates are (x) in the clockwise direction with the top left corner vertex as the starting point 1 ,y 1 )、(x 2 ,y 2 )、(x 3 ,y 3 )、(x 4 ,y 4 );
Defining the resolution corresponding to each pixel point of the left side length as F 1 The resolution corresponding to each pixel point with the left side length is F 2 F is then 1 =m/(y 1 -y 4 ),F 2 =m/(y 2 -y 3 ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein, the preset resolution of the projector is n x m;
resolution f=f corresponding to arbitrary coordinates (x, y) in the projection screen 1 +(x-x 1 ) K, wherein,
K=(F 1 -F 2 )/(x 1 -x 2 )。
5. the curtain alignment method for a projector according to claim 1, wherein the step S60 further comprises:
shooting again through the camera to obtain a new curtain photo, and obtaining new vertex coordinates of the projection picture again;
and judging whether the new vertex coordinates are all in the curtain contour boundary, and if at least one vertex coordinate is out of the curtain contour boundary, returning to the step S10.
6. The curtain alignment method for a projector according to claim 1, wherein the step S20 includes:
and acquiring a curtain photo sent by the external shooting device.
7. A curtain alignment device for a projector, comprising:
the initialization projection module is used for setting the projection picture proportion of the projector to be maximum and obtaining the resolution of the current projection picture;
the contour boundary acquisition module is used for acquiring a curtain photo shot by a camera, and calculating according to the curtain photo to respectively obtain the contour boundary coordinates of a projection picture and the contour boundary coordinates of the curtain;
the vertex coordinate extraction module is used for respectively extracting four vertex coordinates corresponding to each of the projection picture outline boundary coordinates and the curtain outline boundary coordinates;
the pixel point calculation module is used for calculating the number of pixel points corresponding to four side lengths in the corresponding image profile according to the four vertex coordinates, and calculating the resolution corresponding to each pixel point according to the resolution of the current projection picture;
the resolution calculation module is used for calculating the resolution of the projection picture to be scaled according to the pixel point resolution difference value between each vertex of the projection picture and each vertex of the curtain;
and the projection picture adjusting module is used for controlling the LCD screen in the projector according to the resolution to be scaled so as to adjust the size of the projection picture.
8. A terminal comprising a memory, a processor, and a computer program stored in the memory, which when executed by the processor, performs the steps of the curtain alignment method for a projector as claimed in any one of claims 1 to 6.
9. A computer readable storage medium storing a computer program which when executed by a processor performs the steps of the curtain alignment method for a projector of any of claims 1-6.
CN202310794816.5A 2023-06-30 2023-06-30 Curtain alignment method, device, terminal and medium for projector Pending CN116800938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310794816.5A CN116800938A (en) 2023-06-30 2023-06-30 Curtain alignment method, device, terminal and medium for projector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310794816.5A CN116800938A (en) 2023-06-30 2023-06-30 Curtain alignment method, device, terminal and medium for projector

Publications (1)

Publication Number Publication Date
CN116800938A true CN116800938A (en) 2023-09-22

Family

ID=88036238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310794816.5A Pending CN116800938A (en) 2023-06-30 2023-06-30 Curtain alignment method, device, terminal and medium for projector

Country Status (1)

Country Link
CN (1) CN116800938A (en)

Similar Documents

Publication Publication Date Title
US8120665B2 (en) Image processing method and apparatus, digital camera, and recording medium recording image processing program
US10674069B2 (en) Method and apparatus for blurring preview picture and storage medium
CN113365041B (en) Projection correction method, projection correction device, storage medium and electronic equipment
KR100796849B1 (en) Method for photographing panorama mosaics picture in mobile device
WO2001047285A1 (en) Method and apparatus for calibrating projector-camera system
US7489832B2 (en) Imaging apparatus, image processing method for imaging apparatus and recording medium
CN112272292B (en) Projection correction method, apparatus and storage medium
JP4662258B2 (en) Image processing method and apparatus, digital camera apparatus, and recording medium recording image processing program
CN117378196A (en) Image correction method and shooting device
CN112351195B (en) Image processing method, device and electronic system
CN113302915A (en) Sharing a physical writing surface in a video conference
CN113825281A (en) Light control method, light controller, equipment and storage medium
CN110674729A (en) Method for identifying number of people based on heat energy estimation, computer device and computer readable storage medium
JP2018137636A (en) Image processing device and image processing program
CN109726613B (en) Method and device for detection
WO2024055531A1 (en) Illuminometer value identification method, electronic device, and storage medium
CN104933430B (en) A kind of Interactive Image Processing method and system for mobile terminal
CN116800938A (en) Curtain alignment method, device, terminal and medium for projector
US20210281742A1 (en) Document detections from video images
CN115174878A (en) Projection picture correction method, apparatus and storage medium
CN113824894A (en) Exposure control method, device, equipment and storage medium
CN111314680B (en) Method and device for realizing projection picture superposition and projection system
US11800073B2 (en) Setting support method, setting support system for projection region, and non-transitory computer-readable storage medium storing a program
CN115278184B (en) Projection picture correction method and device
CN115474033A (en) Method for realizing virtual screen for intelligent recognition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination