CN115190281B - Device and method for adjusting projection position of projector - Google Patents

Device and method for adjusting projection position of projector Download PDF

Info

Publication number
CN115190281B
CN115190281B CN202210762992.6A CN202210762992A CN115190281B CN 115190281 B CN115190281 B CN 115190281B CN 202210762992 A CN202210762992 A CN 202210762992A CN 115190281 B CN115190281 B CN 115190281B
Authority
CN
China
Prior art keywords
vertex
projection image
image
fused
projection
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.)
Active
Application number
CN202210762992.6A
Other languages
Chinese (zh)
Other versions
CN115190281A (en
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.)
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design 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 Beijing Eswin Computing Technology Co Ltd, Haining Eswin IC Design Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202210762992.6A priority Critical patent/CN115190281B/en
Publication of CN115190281A publication Critical patent/CN115190281A/en
Application granted granted Critical
Publication of CN115190281B publication Critical patent/CN115190281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3185Geometric adjustment, e.g. keystone or convergence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3141Constructional details thereof
    • H04N9/3147Multi-projection systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

The application discloses a device and a method for adjusting a projection position of a projector. The device comprises: an acquisition unit configured to acquire a first image including a fused projection image; the first determining unit is used for determining the position coordinates of each vertex of the fused projection image; a drawing unit for drawing a plurality of rays in a first image; the screening unit is used for screening the plurality of rays according to the position coordinates of each vertex of the fused projection image and a preset rule to obtain a plurality of target rays; a second determining unit for determining the position coordinates of each vertex of the maximum area internal rectangle based on the multi-entry standard line; a third determining unit, configured to determine, according to the position coordinates of each vertex of the rectangle inside the maximum area, the position coordinates of each vertex of the first final projection area and the second final projection area; and the adjusting unit is used for adjusting the projection positions of the first projector and the second projector according to the position coordinates of each vertex of the first final projection area and the second final projection area.

Description

Device and method for adjusting projection position of projector
Technical Field
The present disclosure relates to the field of image projection technologies, and in particular, to a device and a method for adjusting a projection position of a projector.
Background
The projection splicing fusion technology is to fuse the images projected by a plurality of projectors, so that a fused projection image which has no gap, larger area and higher resolution is formed on a projection curtain. Before the multiple projectors are formally used, the projection positions of the projectors are required to be adjusted respectively, so that the fused projection images projected by the multiple projectors are ensured to meet the requirements.
Currently, a worker manually adjusts projection positions of a plurality of projectors; in the process of adjusting the projection positions of a plurality of projectors, a worker needs to manually measure the areas of the fused projection images projected by two adjacent projectors, and when the areas of the fused projection images projected by the two adjacent projectors meet the requirements, the projection position of each projector is respectively adjusted, so that the shape of the fused projection images projected by the two adjacent projectors is ensured to meet the requirements; because the efficiency of the manual adjustment of the projection positions of two adjacent projectors by the staff is low, the efficiency of the adjustment of the projection positions of a plurality of projectors by the staff is low.
Disclosure of Invention
The embodiment of the application provides a device and a method for adjusting projection positions of projectors, and mainly aims to improve efficiency of adjusting projection positions of a plurality of projectors by workers.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
in a first aspect, the present application provides an apparatus for adjusting a projection position of a projector, the apparatus comprising:
the acquisition unit is used for acquiring a first image containing a fused projection image, wherein the first image is obtained by shooting a target projection area through a preset camera, and the fused projection image is obtained by projecting the first projector and the second projector to the target projection area at the same time;
the first determining unit is used for determining position coordinates corresponding to each vertex contained in the fused projection image, wherein the position coordinates corresponding to each vertex contained in the fused projection image are the position coordinates of each vertex contained in the fused projection image in the first image;
a drawing unit configured to draw a plurality of rays in the first image;
the screening unit is used for screening the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule so as to obtain a plurality of target rays;
A second determining unit, configured to determine, based on a plurality of the target rays, a position coordinate corresponding to each vertex included in a maximum-area internal rectangle in the fused projection image;
a third determining unit, configured to determine, according to the position coordinates corresponding to each vertex included in the maximum area internal rectangle, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area;
and the adjusting unit is used for adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area.
In a second aspect, the present application further provides a method for adjusting a projection position of a projector, the method including:
acquiring a first image containing a fused projection image, and determining position coordinates corresponding to each vertex contained in the fused projection image, wherein the first image is obtained by shooting a target projection area through a preset camera, the fused projection image is an image obtained by simultaneously projecting a first projector and a second projector to the target projection area, and the position coordinates corresponding to each vertex contained in the fused projection image are the position coordinates of each vertex contained in the fused projection image in the first image;
Drawing a plurality of rays in the first image, and screening the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule to obtain a plurality of target rays;
determining position coordinates corresponding to each vertex contained in the maximum area internal rectangle in the fused projection image based on a plurality of target rays;
determining the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area according to the position coordinates corresponding to each vertex contained in the maximum area internal rectangle;
and adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area.
In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a stored program, where the program when executed controls a device where the storage medium is located to perform the method for adjusting a projection position of a projector according to the second aspect.
In a fourth aspect, embodiments of the present application provide an apparatus for adjusting a projection position of a projector, the apparatus including a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; the program instructions, when executed, perform the method for adjusting a projection position of a projector according to the second aspect.
By means of the technical scheme, the technical scheme provided by the application has the following advantages:
the application provides a device and a method for adjusting the projection position of a projector, wherein the device for adjusting the projection position of the projector comprises: the device comprises an acquisition unit, a first determination unit, a drawing unit, a screening unit, a second determination unit, a third determination unit and an adjustment unit; firstly, an acquisition unit acquires a first image containing a fused projection image in a local storage space of target terminal equipment; determining position coordinates corresponding to each vertex contained in the fused projection image by a first determining unit; secondly, drawing a plurality of rays in the first image by a drawing unit; thirdly, screening the plurality of rays by a screening unit according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule, and screening out the rays which do not meet the requirements, thereby obtaining a plurality of target rays; thirdly, determining, by a second determining unit, position coordinates corresponding to each vertex contained in the largest-area internal rectangle in the fused projection image based on the multi-item standard line; thirdly, determining, by a third determining unit, a position coordinate corresponding to each vertex contained in the first final projection area and a position coordinate corresponding to each vertex contained in the second final projection area according to a position coordinate corresponding to each vertex contained in the maximum area internal rectangle; and finally, adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector by an adjusting unit according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area. Because in this application, need not the manual adjustment of staff's projection position of two adjacent projectors, the device of adjustment projecting position of projecting apparatus is according to the first image that contains the fusion projection image, alright automatically regulated projection position that first projecting apparatus corresponds and the projection position that second projecting apparatus corresponds to can effectively improve the efficiency that the staff adjusted the projection position of many projecting apparatuses.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present application are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings, in which like reference numerals refer to similar or corresponding parts and in which:
FIG. 1 is a block diagram showing an apparatus for adjusting a projection position of a projector according to an embodiment of the present application;
FIG. 2 is a block diagram showing another apparatus for adjusting projection position of a projector according to an embodiment of the present application;
FIG. 3 shows a schematic diagram of a fused projection region and a fused band region provided by an embodiment of the present application;
fig. 4 shows a flowchart of a method for adjusting a projection position of a projector according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
The embodiment of the application provides a device for adjusting the projection position of a projector, which is applied to target terminal equipment, wherein the target terminal equipment comprises a preset camera, the target terminal equipment is connected with a first projector and a second projector, the first projector and the second projector are two adjacent projectors which need to be subjected to projection position adjustment, namely, the position relationship between the first projector and the second projector is adjacent up and down or adjacent left and right, and the target terminal equipment can be but is not limited to: computers, projection fuses, etc., as shown in fig. 1, the apparatus specifically includes:
an obtaining unit 11, configured to obtain a first image including a fused projection image, where the first image is obtained by capturing a target projection area by a preset camera, and the fused projection image is an image obtained by projecting a first projector and a second projector to the target projection area at the same time; the first determining unit 12 is configured to determine a position coordinate corresponding to each vertex included in the fused projection image, where an origin of a rectangular coordinate system corresponding to the first image may be, but is not limited to,: when the origin of the rectangular coordinate system is the upper left vertex of the first image, the straight line of the left side of the first image is the vertical axis of the rectangular coordinate system, the straight line of the upper side of the first image is the horizontal axis of the rectangular coordinate system, when the origin of the rectangular coordinate system is the lower left vertex of the first image, the straight line of the left side of the first image is the vertical axis of the rectangular coordinate system, the straight line of the lower side of the first image is the horizontal axis of the rectangular coordinate system, and the position coordinate corresponding to each vertex contained in the fused projection image is the position coordinate of each vertex contained in the fused projection image in the first image; a drawing unit 13 for drawing a plurality of rays in a first image; a screening unit 14, configured to perform screening processing on a plurality of rays according to a position coordinate and a preset rule corresponding to each vertex included in the fused projection image, so as to obtain a plurality of target rays, where the number of intersection points of the target rays intersecting the fused projection image is two, and the two intersection points are located on two sides of a center line corresponding to the fused projection image; a second determining unit 15, configured to determine, based on the multiple-entry standard ray, a position coordinate corresponding to each vertex included in the largest-area internal rectangle in the fused projection image, where the largest-area internal rectangle is an internal rectangle with the largest area among the multiple internal rectangles in the fused projection image, and the position coordinate corresponding to each vertex included in the largest-area internal rectangle is a position coordinate in the first image of each vertex included in the largest-area internal rectangle; a third determining unit 16, configured to determine, according to the position coordinates corresponding to each vertex included in the rectangle in the largest area, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area, where the position coordinates corresponding to each vertex included in the first final projection area is the position coordinates of each vertex included in the first final projection area in the first image, and the position coordinates corresponding to each vertex included in the second final projection area is the position coordinates of each vertex included in the second final projection area in the first image, where the image areas of the first final projection area and the first final projection area are the same. And an adjusting unit 17, configured to adjust the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area.
The following describes, in detail, a detailed procedure of adjusting the projection position of the projector by the apparatus for adjusting the projection position of the projector according to the first projector and the projection position of the projector according to the second projector, with reference to the apparatus for adjusting the projection position of the projector shown in fig. 1:
in the embodiment of the application, a worker controls a target terminal device in advance to shoot through a preset camera to obtain a first image, the shot first image is stored in a local storage space of the target terminal device, when the worker expects to adjust a projection position corresponding to a first projector and a projection position corresponding to a second projector, a corresponding instruction is sent to a device for adjusting the projection position of the projector through an input device of the target terminal device, and after receiving the instruction input by the worker, an acquisition unit 11 in the device for adjusting the projection position of the projector acquires the first image in the local storage space of the target terminal device; after the obtaining unit 11 obtains the first image, the first determining unit 12 needs to determine the position coordinate corresponding to each vertex included in the fused projection image, that is, determine the position coordinate of each vertex included in the fused projection image in the first image; after the first determining unit 12 determines the position coordinates corresponding to each vertex included in the fused projection image, the drawing unit 13 may draw a plurality of rays in the first image, that is, when the first projector and the second projector are two projectors adjacent left and right, a plurality of points are selected on the vertical axis of the rectangular coordinate system corresponding to the first image, the selected plurality of points are used as a starting point to draw a plurality of rays parallel to the horizontal axis of the rectangular coordinate system and intersecting the fused projection image in the first image, when the first projector and the second projector are two projectors adjacent up and down, a plurality of points are selected on the horizontal axis of the rectangular coordinate system corresponding to the first image, and the selected plurality of points are used as a starting point to draw a plurality of rays parallel to the vertical axis of the rectangular coordinate system and intersecting the fused projection image in the first image; after the drawing unit 13 draws a plurality of rays in the first image, the screening unit 14 can screen the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule, and screen out the rays which do not meet the requirements, so as to obtain a plurality of target rays; after the screening unit 14 screens to obtain the plurality of target rays, the second determining unit 15 may determine, based on the plurality of target rays, a position coordinate corresponding to each vertex included in the largest-area internal rectangle in the fused projection image, that is, determine, based on the plurality of target rays, a position coordinate corresponding to each vertex included in each internal rectangle in the fused projection image, calculate, according to the position coordinate corresponding to each vertex included in each internal rectangle, an area corresponding to each internal rectangle, and then determine, as the largest-area internal rectangle, the internal rectangle having the largest area among the plurality of internal rectangles, thereby determining a position coordinate corresponding to each vertex included in the largest-area internal rectangle; after the second determining unit 15 determines the position coordinates corresponding to each vertex included in the maximum area internal rectangle, the third determining unit 16 may determine, according to the position coordinates corresponding to each vertex included in the maximum area internal rectangle, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area, that is, determine the position coordinates of each vertex included in the first final projection area in the first image and the position coordinates of each vertex included in the second final projection area in the first image; after the third determining unit 16 determines the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area, the adjusting unit 17 may adjust the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area.
After adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector, when the first projector is independently controlled to be turned on, the first projector is controlled to project a first projection image to a target projection area, and when a preset camera shoots the target projection area to obtain a first target image containing the first projection image, the position coordinates of each vertex contained in the first projection image in the first target image and the position coordinates of each vertex contained in the first final projection area in the first image are the same as the position coordinates of each vertex contained in the first final projection area in the first image, when the second projector is independently controlled to be turned on, the second projector is controlled to project a second projection image to the target projection area, and when a preset camera shoots the target projection area to obtain a second target image containing the second projection image, the position coordinates of each vertex contained in the second projection image in the second target image and the position coordinates of each vertex contained in the second final projection area in the first image are the same as the image area of the first image.
An embodiment of the present application provides a device for adjusting a projection position of a projector, where the device for adjusting the projection position of the projector provided by the embodiment of the present application includes: the device comprises an acquisition unit, a first determination unit, a drawing unit, a screening unit, a second determination unit, a third determination unit and an adjustment unit; firstly, an acquisition unit acquires a first image containing a fused projection image in a local storage space of target terminal equipment; determining position coordinates corresponding to each vertex contained in the fused projection image by a first determining unit; secondly, drawing a plurality of rays in the first image by a drawing unit; thirdly, screening the plurality of rays by a screening unit according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule, and screening out the rays which do not meet the requirements, thereby obtaining a plurality of target rays; thirdly, determining, by a second determining unit, position coordinates corresponding to each vertex contained in the largest-area internal rectangle in the fused projection image based on the multi-item standard line; thirdly, determining, by a third determining unit, a position coordinate corresponding to each vertex contained in the first final projection area and a position coordinate corresponding to each vertex contained in the second final projection area according to a position coordinate corresponding to each vertex contained in the maximum area internal rectangle; and finally, adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector by an adjusting unit according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area. Because, in this application embodiment, need not the staff and manually adjust the projection position of two adjacent projectors, the device of adjustment projecting position of projecting apparatus is according to the first image that contains the fusion projection image, alright automatically regulated first projecting apparatus corresponds the projection position and the projection position that the second projecting apparatus corresponds to can effectively improve the staff and carry out the efficiency of adjustment to the projection position of many projecting apparatuses.
The embodiment of the application also provides another device for adjusting the projection position of the projector, which is applied to target terminal equipment, wherein the target terminal equipment comprises a preset camera, the target terminal equipment is connected with a first projector and a second projector, the first projector and the second projector are two adjacent projectors which need to be subjected to projection position adjustment, namely, the position relationship between the first projector and the second projector is adjacent up and down or adjacent left and right, and the target terminal equipment can be but is not limited to: computers, projection fuses, etc., as shown in fig. 2, as explained below in conjunction with fig. 2:
further, as shown in fig. 2, the first determination unit 12 includes: a first obtaining module 121, configured to obtain a second image including a first projection image and a third image including a second projection image, where the second image and the third image are obtained by capturing a target projection area with a preset camera, the second image and the third image have the same image area as the first image, the first projection image is an image obtained after the first projector projects onto the target projection area, and the second projection image is an image obtained after the second projector projects onto the target projection area; a first determining module 122, configured to determine a position coordinate corresponding to each vertex included in the first projection image and a position coordinate corresponding to each vertex included in the second projection image, where the position coordinate corresponding to each vertex included in the first projection image is a position coordinate of each vertex included in the first projection image in the second image, and the position coordinate corresponding to each vertex included in the second projection image is a position coordinate of each vertex included in the second projection image in the third image; the second determining module 123 is configured to determine the position coordinate corresponding to each vertex included in the fused projection image according to the position coordinate corresponding to each vertex included in the first projection image and the position coordinate corresponding to each vertex included in the second projection image.
In the embodiment of the present application, the specific process of determining the position coordinate corresponding to each vertex included in the fused projection image by the first determining unit 12 is:
the specific process of shooting the first image, the second image and the third image in advance is as follows: the method comprises the steps that a worker firstly starts a first projector, controls the first projector to project towards a target projection area, enables the first projector to project a first projection image in the target projection area, and controls target terminal equipment to shoot a second image obtained in the target projection area through a preset camera; secondly, closing the first projector, opening the second projector, controlling the second projector to project to the target projection area so that the second projector projects a second projection image in the target projection area, and controlling the target terminal equipment to shoot a third image obtained by the target projection area through a preset camera; then, starting the first projector again, controlling the first projector to project to the target projection area, so that the first projector projects a first projection image in the target projection area again, at the moment, the first projection image projected by the first projector and the second projection image projected by the second projector form a fusion projection image, and controlling the target terminal equipment to shoot the first image obtained by the target projection area through a preset camera; finally, storing the first image, the second image and the third image obtained by shooting into a local storage space of target terminal equipment; wherein the first projection image and the second projection image may be, but are not limited to: pure red images, pure blue images, pure white images, and the like.
(1) The first acquisition module 121 acquires a second image containing the first projection image and a third image containing the second projection image in the local storage space of the target terminal device.
(2) The first determining module 122 determines the position coordinate corresponding to each vertex included in the first projection image and the position coordinate corresponding to each vertex included in the second projection image, that is, determines the position coordinate of each vertex included in the first projection image in the second image and the position coordinate of each vertex included in the second projection image in the third image; specifically, in this step, the first determining module 122 may determine, using an edge extraction algorithm, a position coordinate corresponding to each vertex included in the first projection image and a position coordinate corresponding to each vertex included in the second projection image, but is not limited thereto.
(3) Finally, the second determining module 123 determines the position coordinates corresponding to each vertex included in the fused projection image according to the position coordinates corresponding to each vertex included in the first projection image and the position coordinates corresponding to each vertex included in the second projection image.
It should be noted that, since the position coordinate of each vertex included in the fused projection image in the first image cannot be accurately determined according to the first image including the fused projection image, and the fused projection image is an image formed by the first projection image and the second projection image, and the first image, the second image and the third image are images with the same image area size, the position coordinate of each vertex included in the first projection image in the second image and the position coordinate of each vertex included in the second projection image in the third image can be determined first, and then the position coordinate of each vertex included in the fused projection image in the first image is determined according to the position coordinate of each vertex included in the first projection image in the second image and the position coordinate of each vertex included in the second projection image in the third image.
Further, as shown in fig. 2, the screening unit 14 includes: a third determining module 141, configured to determine a position of a center line corresponding to the fused projection image according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the second vertex; a fourth determining module 142, configured to determine a position coordinate and the number of intersection points corresponding to each intersection point of the ray and the fused projection image; the judging module 143 is configured to judge whether the two intersection points are located at two sides of the center line according to the position coordinates corresponding to each intersection point and the position corresponding to the center line when the number of intersection points of the ray and the fused projection image is two; a fifth determining module 144 is configured to determine that the ray is the target ray when the two intersection points are located on two sides of the center line.
In this embodiment of the present application, the screening unit 14 performs screening processing on multiple rays according to the position coordinates and the preset rules corresponding to each vertex included in the fused projection image, so as to obtain the specific process of multiple target rays:
the fused projection image comprises a first vertex and a second vertex, when the first projector and the second projector are left and right adjacent projectors, the first vertex is the vertex with the smallest abscissa value among the multiple vertices contained in the fused projection image, the second vertex is the vertex with the largest abscissa value among the multiple vertices contained in the fused projection image, when the first projector and the second projector are vertically adjacent projectors, the first vertex is the vertex with the smallest ordinate value among the multiple vertices contained in the fused projection image, and the second vertex is the vertex with the largest ordinate value among the multiple vertices contained in the fused projection image.
(1) The third determining module 141 determines the position of the central line corresponding to the fused projection image according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the second vertex; when the first projector and the second projector are left and right adjacent projectors, firstly calculating the difference value between the abscissa value corresponding to the second vertex and the abscissa value corresponding to the first vertex to obtain a first calculation result, then calculating the ratio of the first calculation result to 2 to obtain a second calculation result, then calculating the sum of the abscissa value corresponding to the second calculation result and the first vertex to obtain a third calculation result, and finally determining a straight line which is parallel to the longitudinal axis of the rectangular coordinate system corresponding to the first image and contains the abscissa value of each point as the third calculation result as a central line corresponding to the fused projection image; when the first projector and the second projector are vertically adjacent projectors, firstly calculating the difference value between the longitudinal coordinate value corresponding to the second vertex and the longitudinal coordinate value corresponding to the first vertex to obtain a fourth calculation result, then calculating the ratio of the fourth calculation result to 2 to obtain a fifth calculation result, then calculating the sum of the fifth calculation result and the longitudinal coordinate value corresponding to the first vertex to obtain a sixth calculation result, and finally determining a straight line parallel to the transverse axis of the rectangular coordinate system corresponding to the first image and containing the longitudinal coordinate value of each point as the sixth calculation result as a central line corresponding to the fused projection image.
(2) Determining the position coordinates and the number of intersection points corresponding to each intersection point of each ray and the fusion projection image by the fourth determining module 142, namely determining the position coordinates corresponding to each intersection point of the first ray and the fusion projection image and the number of intersection points of the first ray and the fusion projection image, and determining the position coordinates corresponding to each intersection point of the second ray and the fusion projection image and the number of intersection points … … of the second ray and the fusion projection image; according to the position coordinates corresponding to the two adjacent vertexes of the fused projection image, the position coordinates corresponding to the points contained in the edge between the two vertexes can be determined, so that whether the edge between the two vertexes and the ray intersect or not and the position coordinates corresponding to the intersection point during intersection can be determined according to the position coordinates corresponding to the points contained in the ray and the position coordinates corresponding to the points contained in the edge between the two vertexes.
(3) Next, when the number of intersection points of a certain ray and the fused projection image is two, the judging module 143 judges whether the two intersection points of the certain ray and the fused projection image are located at two sides of the center line according to the position coordinates corresponding to each intersection point and the positions corresponding to the center line, wherein when the number of intersection points of the certain ray and the fused projection image is not two, the judging module 143 can screen out the ray.
(4) Finally, when the number of intersection points of a certain ray and the fused projection image is two, and the two intersection points of the ray and the fused projection image are located at two sides of the center line, the fifth determining module 144 determines that the ray is the target ray, where when the number of intersection points of a certain ray and the fused projection image is two, but the two intersection points of the ray and the fused projection image are located at one side of the center line, the fifth determining module 144 can screen the ray.
Further, as shown in fig. 2, the second determining unit 15 includes: a sixth determining module 151, configured to determine, according to the position coordinates corresponding to each intersection point of each target line and the fused projection image, the position coordinates of each vertex included in each internal rectangle corresponding to each target line; a calculating module 152, configured to calculate an area corresponding to each internal rectangle according to the position coordinates of each vertex included in each internal rectangle corresponding to each target line; the seventh determination module 153 is configured to determine an internal rectangle having the largest area among the plurality of internal rectangles as the largest area internal rectangle.
In the embodiment of the present application, the specific process of determining, by the second determining unit 15, the position coordinate corresponding to each vertex included in the largest-area internal rectangle in the fused projection image based on the multi-entry standard line is:
(1) The sixth determining module 151 determines, according to the position coordinates corresponding to each intersection point of each target line and the fused projection image, the position coordinates of each vertex included in each internal rectangle corresponding to each target line.
(2) And then, the calculating module 152 calculates the area corresponding to each internal rectangle according to the position coordinates of each vertex included in each internal rectangle corresponding to each item of standard line, namely, for any internal rectangle, the length corresponding to each side of the internal rectangle is determined according to the position coordinates corresponding to each vertex included in the internal rectangle, and then the area corresponding to the internal rectangle is calculated according to the length corresponding to each side of the internal rectangle.
(3) Finally, the seventh determination module 153 determines the internal rectangle with the largest area among the plurality of internal rectangles as the largest area internal rectangle, that is, determines the position coordinate corresponding to each vertex included in the internal rectangle with the largest area among the plurality of internal rectangles as the position coordinate corresponding to each vertex included in the largest area internal rectangle.
Further, as shown in fig. 2, when the first projector and the second projector are left and right adjacent projectors, the sixth determining module 151 determines, according to the position coordinates corresponding to each intersection point of each target line and the fused projection image, the position coordinates of each vertex included in each internal rectangle corresponding to each target line, by the following specific procedures:
For any item label line:
firstly, selecting a plurality of target points in a target ray according to a position coordinate corresponding to a first intersection point and a position coordinate corresponding to a second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target ray and a fused projection image, and the longitudinal coordinate value of each target point is the same as that of the first intersection point and the second intersection point; secondly, determining a first intersection point or any target point as a first vertex of the internal rectangle, and determining a second intersection point or any target point as a second vertex of the internal rectangle; thirdly, drawing a target direction ray corresponding to the first vertex and a target direction ray corresponding to the second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is made from the first vertex to the negative direction of the longitudinal axis, and the target direction ray corresponding to the second vertex is a ray which is made from the second vertex to the negative direction of the longitudinal axis; finally, judging whether the ordinate value corresponding to the intersection point of the target direction ray corresponding to the first vertex and the fused projection image is larger than the ordinate value corresponding to the intersection point of the target direction ray corresponding to the second vertex and the fused projection image; if the position coordinate is larger than the first coordinate, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to a position coordinate corresponding to the second vertex and a position coordinate corresponding to the third vertex, namely determining an abscissa value corresponding to the second vertex as an abscissa value corresponding to the fourth vertex, and determining an ordinate value corresponding to the third vertex as an ordinate value corresponding to the fourth vertex; if the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle; if the position coordinate is smaller than the first coordinate value, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex, namely determining an abscissa value corresponding to the first vertex as an abscissa value corresponding to the fourth vertex, and determining an ordinate value corresponding to the third vertex as an ordinate value corresponding to the fourth vertex.
According to the method, the position coordinates of each vertex contained in each internal rectangle corresponding to the item standard line can be determined.
Further, as shown in fig. 2, when the first projector and the second projector are vertically adjacent projectors, the sixth determining module 151 determines, according to the position coordinates corresponding to each intersection point of each target line and the fused projection image, the position coordinates of each vertex included in each internal rectangle corresponding to each target line, by the following specific procedures:
firstly, selecting a plurality of target points in a target ray according to a position coordinate corresponding to a first intersection point and a position coordinate corresponding to a second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target ray and a fused projection image, and the abscissa value of each target point is the same as that of the first intersection point and the second intersection point; secondly, determining a first intersection point or any target point as a first vertex of the internal rectangle, and determining a second intersection point or any target point as a second vertex of the internal rectangle; thirdly, drawing a target direction ray corresponding to the first vertex and a target direction ray corresponding to the second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is forward done from the first vertex to a transverse axis, and the target direction ray corresponding to the second vertex is a ray which is forward done from the second vertex to the transverse axis; finally, judging whether the abscissa value corresponding to the intersection point of the target direction ray corresponding to the first vertex and the fused projection image is larger than the abscissa value corresponding to the intersection point of the target direction ray corresponding to the second vertex and the fused projection image; if the position coordinate is larger than the first coordinate value, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex, namely determining a longitudinal coordinate value corresponding to the first vertex as a longitudinal coordinate value corresponding to the fourth vertex, and determining a transverse coordinate value corresponding to the third vertex as a transverse coordinate value corresponding to the fourth vertex; if the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle; if the position coordinate is smaller than the first coordinate, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to a position coordinate corresponding to the second vertex and a position coordinate corresponding to the third vertex, namely determining a vertical coordinate value corresponding to the second vertex as a vertical coordinate value corresponding to the fourth vertex, and determining a horizontal coordinate value corresponding to the third vertex as a horizontal coordinate value corresponding to the fourth vertex.
According to the method, the position coordinates of each vertex contained in each internal rectangle corresponding to the item standard line can be determined.
Further, as shown in fig. 2, the third determination unit 16 includes: an eighth determining module 161, configured to determine, according to the position coordinates corresponding to each vertex included in the maximum area internal rectangle and the position corresponding to the center line, the position coordinates corresponding to each vertex included in the fused projection area; a second obtaining module 162, configured to obtain a preset fusion zone proportion value; a ninth determining module 163, configured to determine, according to the position coordinates corresponding to each vertex included in the fused projection area and the preset fused band proportional value, the position coordinates corresponding to each vertex included in the fused band area; tenth determining module 164 is configured to determine, according to the position coordinates corresponding to each vertex included in the fused projection area and the position coordinates corresponding to each vertex included in the fused band area, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area.
In the embodiment of the present application, the specific process of determining, by the third determining unit 16, the position coordinate corresponding to each vertex included in the first final projection area and the position coordinate corresponding to each vertex included in the second final projection area according to the position coordinate corresponding to each vertex included in the maximum area internal rectangle is:
When the first projector and the second projector are left and right adjacent projectors, the height of the first final projection area, the height of the second final projection area and the height of the fusion zone area are the same, the width of the first final projection area and the width of the second final projection area are the same, and the preset fusion zone proportion value is the ratio of the width of the fusion zone area to the width of the first final projection area (namely, the ratio of the width of the fusion zone area to the width of the first final projection area); when the first projector and the second projector are vertically adjacent projectors, the width of the first final projection area, the width of the second final projection area and the width of the fusion zone area are the same, the height of the first final projection area and the height of the second final projection area are the same, and the preset fusion zone proportion value is the ratio of the height of the fusion zone area to the height of the first final projection area (namely, the ratio of the height of the fusion zone area to the height of the first final projection area).
(1) The eighth determining module 161 determines the position coordinates corresponding to each vertex included in the fused projection area according to the position coordinates corresponding to each vertex included in the maximum area internal rectangle and the position corresponding to the center line.
Specifically, in this step, when the first projector and the second projector are left and right adjacent projectors, a difference value between an abscissa value of an upper right vertex of the rectangle inside the maximum area and an abscissa value of the center line is calculated to obtain a seventh calculation result; calculating the difference value between the abscissa value of the center line and the abscissa value of the upper left vertex of the rectangle in the maximum area to obtain an eighth calculation result; then, judging whether the seventh calculation result is larger than the eighth calculation result; if the sum of the eighth calculation result and the horizontal coordinate value of the central line is larger than the sum, so as to obtain a ninth calculation result, wherein the left top vertex of the largest area internal rectangle is determined to be the left top vertex of the fusion projection area, the ninth calculation result is determined to be the horizontal coordinate value of the right top vertex of the fusion projection area, the vertical coordinate value of the left top vertex of the largest area internal rectangle is determined to be the vertical coordinate value of the right top vertex of the fusion projection area, the left bottom vertex of the largest area internal rectangle is determined to be the left bottom vertex of the fusion projection area, the ninth calculation result is determined to be the horizontal coordinate value of the right bottom vertex of the fusion projection area, and the vertical coordinate value of the left bottom vertex of the largest area internal rectangle is determined to be the vertical coordinate value of the right bottom vertex of the fusion projection area; if the maximum area internal rectangle left top point is equal to the maximum area internal rectangle left top point, the maximum area internal rectangle right top point is determined to be the right top point of the fusion projection area, the maximum area internal rectangle left bottom point is determined to be the left bottom point of the fusion projection area, and the maximum area internal rectangle right bottom point is determined to be the right bottom point of the fusion projection area; if the difference between the horizontal coordinate value of the central line and the seventh calculated result is smaller than the first value, the tenth calculated result is determined as the horizontal coordinate value of the left top vertex of the fusion projection area, the vertical coordinate value of the right top vertex of the maximum area internal rectangle is determined as the vertical coordinate value of the left top vertex of the fusion projection area, the right top vertex of the maximum area internal rectangle is determined as the horizontal coordinate value of the left bottom vertex of the fusion projection area, the vertical coordinate value of the right bottom vertex of the maximum area internal rectangle is determined as the vertical coordinate value of the left bottom vertex of the fusion projection area, and the right bottom vertex of the maximum area internal rectangle is determined as the right bottom vertex of the fusion projection area.
It should be noted that, when the first projector and the second projector are vertically adjacent projectors, the specific process of determining the position coordinate corresponding to each vertex included in the fused projection area according to the position coordinate corresponding to each vertex included in the largest area internal rectangle and the position corresponding to the center line may be reasonably derived according to the specific process of determining the position coordinate corresponding to each vertex included in the fused projection area according to the position coordinate corresponding to each vertex included in the largest area internal rectangle and the position corresponding to the center line when the first projector and the second projector are horizontally adjacent projectors.
(2) And the second acquisition module 162 acquires the preset fusion zone proportional value.
(3) Next, the ninth determining module 163 determines, according to the position coordinates corresponding to each vertex included in the fused projection area and the preset fused band scaling value, the position coordinates corresponding to each vertex included in the fused band area.
Specifically, in this step, when the first projector and the second projector are left and right adjacent projectors, the fusion belt proportion value is preset to be a, the abscissa value of the center line is x, as shown in fig. 3, the upper left vertex of the fusion projection area is L (xl, yl), the upper right vertex is N (xn, yn), the lower left vertex I is (xi, yi), the lower right vertex is K (xk, yk), the upper left vertex of the fusion belt area is N ' (xn ', yn '), the upper right vertex is L ' (xl ', yl '), the lower left vertex is K ' (xk ', yk '), and the lower right vertex is I ' (xi ', yi '), wherein xl=xi, xn ' =xk, yl=yn ' =yk ' =yi ' yk, and xn ' satisfies the following formulas:
(x-xn’)*2/a=xl’-xl (1)
(xl’-x)*2/a=xn-xn’ (2)
Deriving a formula (2) according to the formula (1) and the formula (2), wherein the formula (3) is specifically as follows:
xl’=(xn+(2/a-1)*x-xl*a/2)/(2/a-a/2) (3)
and substituting xn, xl, x and a into the formula (3) to obtain xl ' by calculation, and substituting xl, xl ', x and a into the formula (1) to obtain xn ' by calculation, so that the position coordinates corresponding to each vertex contained in the fused strip region can be obtained.
It should be noted that, when the first projector and the second projector are vertically adjacent projectors, the specific process of determining the position coordinate corresponding to each vertex included in the fused area according to the position coordinate corresponding to each vertex included in the fused area and the preset fused area proportion value may be reasonably derived according to the specific process of determining the position coordinate corresponding to each vertex included in the fused area according to the position coordinate corresponding to each vertex included in the fused area and the preset fused area proportion value when the first projector and the second projector are horizontally adjacent projectors, which is not described in detail in this embodiment of the application.
(4) The tenth determining module 164 determines, according to the position coordinates corresponding to each vertex included in the fused projection area and the position coordinates corresponding to each vertex included in the fused band area, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area, that is, when the first projector and the second projector are left-right adjacent projectors, the left upper vertex and the left lower vertex of the fused projection area and the right upper vertex and the right lower vertex of the fused band area are determined as each vertex included in the first final projection area, and the right upper vertex and the right lower vertex of the fused projection area and the left upper vertex and the left lower vertex of the fused band area are determined as each vertex included in the second final projection area; when the first projector and the second projector are vertically adjacent projectors, the upper left vertex and the upper right vertex of the fusion projection area and the lower left vertex and the lower right vertex of the fusion zone area are determined to be all the vertices contained in the first final projection area, and the lower left vertex and the lower right vertex of the fusion projection area and the upper left vertex and the upper right vertex of the fusion zone area are determined to be all the vertices contained in the second final projection area.
Further, as shown in fig. 2, the adjusting unit 17 includes: the first adjusting module 171 is configured to adjust a projection position corresponding to the first projector according to a preset algorithm, a position coordinate corresponding to each vertex included in the first projection image, and a position coordinate corresponding to each vertex included in the first final projection area; the second adjusting module 172 is configured to adjust the projection position corresponding to the second projector according to a preset algorithm, the position coordinate corresponding to each vertex included in the second projection image, and the position coordinate corresponding to each vertex included in the second final projection area; wherein the preset algorithm may be, but is not limited to,: trapezoidal correction algorithm.
In this embodiment of the present application, the specific process of adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector by the adjusting unit 17 according to the position coordinate corresponding to each vertex included in the first final projection area and the position coordinate corresponding to each vertex included in the second final projection area is:
(1) The first adjusting module 171 adjusts the projection position corresponding to the first projector according to a preset algorithm, the position coordinate corresponding to each vertex included in the first projection image (i.e., the position coordinate of each vertex included in the first projection image in the second image), and the position coordinate corresponding to each vertex included in the first final projection area (the position coordinate of each vertex included in the first final projection area in the first image);
(2) And the second adjusting module 172 adjusts the projection position corresponding to the second projector according to the preset algorithm, the position coordinate corresponding to each vertex included in the second projection image (i.e. the position coordinate of each vertex included in the second projection image in the third image) and the position coordinate corresponding to each vertex included in the second final projection area (the position coordinate of each vertex included in the second final projection area in the first image).
Further, as an implementation of the apparatus shown in fig. 1 and fig. 2, another embodiment of the present application further provides a method for adjusting a projection position of a projector, where the method is applied to a target terminal device, the target terminal device includes a preset camera, the target terminal device is connected to a first projector and a second projector, the first projector and the second projector are two adjacent projectors that need to be subjected to projection position adjustment, that is, a position relationship between the first projector and the second projector is adjacent up and down or adjacent left and right, and the target terminal device may but is not limited to: computers, projection fuses, and the like. The method embodiment corresponds to the foregoing apparatus embodiment, and for convenience of reading, details of the foregoing apparatus embodiment are not described one by one in this method embodiment, but it should be clear that the method in this embodiment can correspondingly implement all the contents of the foregoing apparatus embodiment. The method is applied to improving the efficiency of adjusting the projection positions of a plurality of projectors by a worker, and particularly as shown in fig. 4, the method comprises the following steps:
201. And acquiring a first image containing the fused projection image, and determining the position coordinates corresponding to each vertex contained in the fused projection image.
The first image is obtained by shooting a target projection area through a preset camera, the fused projection image is obtained by projecting the first projector and the second projector to the target projection area at the same time, and the position coordinate corresponding to each vertex contained in the fused projection image is the position coordinate of each vertex contained in the fused projection image in the first image.
202. And drawing a plurality of rays in the first image, and screening the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule to obtain a plurality of target rays.
203. And determining the position coordinates corresponding to each vertex contained in the maximum area internal rectangle in the fused projection image based on the multi-item standard rays.
204. And determining the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area according to the position coordinates corresponding to each vertex contained in the maximum area internal rectangle.
205. And adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area.
Further, step 201, determining position coordinates corresponding to each vertex included in the fused projection image includes:
acquiring a second image containing a first projection image and a third image containing a second projection image, wherein the second image and the third image are obtained by shooting a target projection area through a preset camera, the first projection image is an image obtained after the first projector projects the target projection area, and the second projection image is an image obtained after the second projector projects the target projection area;
determining position coordinates corresponding to each vertex contained in the first projection image and position coordinates corresponding to each vertex contained in the second projection image, wherein the position coordinates corresponding to each vertex contained in the first projection image are position coordinates of each vertex contained in the first projection image in the second image, and the position coordinates corresponding to each vertex contained in the second projection image are position coordinates of each vertex contained in the second projection image in the third image;
and determining the position coordinates corresponding to each vertex contained in the fused projection image according to the position coordinates corresponding to each vertex contained in the first projection image and the position coordinates corresponding to each vertex contained in the second projection image.
Further, the fused projection image includes a first vertex and a second vertex, when the first projector and the second projector are left and right adjacent projectors, the first vertex is a vertex with a minimum abscissa value among a plurality of vertices included in the fused projection image, the second vertex is a vertex with a maximum abscissa value among a plurality of vertices included in the fused projection image, when the first projector and the second projector are up and down adjacent projectors, the first vertex is a vertex with a minimum ordinate value among a plurality of vertices included in the fused projection image, and the second vertex is a vertex with a maximum ordinate value among a plurality of vertices included in the fused projection image; step 202, screening the plurality of rays according to the position coordinates corresponding to each vertex included in the fused projection image and a preset rule, so as to obtain a plurality of target rays, including:
determining the position of a central line corresponding to the fused projection image according to the position coordinates corresponding to the first vertex and the position coordinates corresponding to the second vertex;
determining position coordinates and the number of intersection points corresponding to each intersection point of the ray and the fusion projection image;
if the number of the intersection points of the ray and the fusion projection image is two, judging whether the two intersection points are positioned on two sides of the central line according to the position coordinates corresponding to each intersection point and the positions corresponding to the central line;
If the two intersection points are positioned on two sides of the central line, determining the rays as target rays.
Further, step 203, determining, based on the multi-entry label line, a position coordinate corresponding to each vertex included in the largest-area internal rectangle in the fused projection image, includes:
determining the position coordinates of each vertex contained in each internal rectangle corresponding to each target line according to the position coordinates corresponding to each intersection point of each target line and the fused projection image;
calculating the corresponding area of each internal rectangle according to the position coordinates of each vertex contained in each internal rectangle corresponding to each item of standard line;
the largest-area internal rectangle among the plurality of internal rectangles is determined as the largest-area internal rectangle.
Further, when the first projector and the second projector are left and right adjacent projectors, determining the position coordinates of each vertex included in each internal rectangle corresponding to each target line according to the position coordinates corresponding to each intersection point of each target line and the fused projection image, includes:
selecting a plurality of target points in the target ray according to the position coordinates corresponding to the first intersection point and the position coordinates corresponding to the second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target ray and the fused projection image, and the longitudinal coordinate values of the target points are the same as those of the first intersection point and the second intersection point;
Determining the first intersection point or any target point as a first vertex of the internal rectangle, and determining the second intersection point or any target point as a second vertex of the internal rectangle;
drawing a target direction ray corresponding to a first vertex and a target direction ray corresponding to a second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is made from the first vertex to the negative direction of the longitudinal axis, and the target direction ray corresponding to the second vertex is a ray which is made from the second vertex to the negative direction of the longitudinal axis;
judging whether the ordinate value corresponding to the intersection point of the target direction ray corresponding to the first vertex and the fusion projection image is larger than the ordinate value corresponding to the intersection point of the target direction ray corresponding to the second vertex and the fusion projection image;
if the position coordinate is larger than the first vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the second vertex and the position coordinate corresponding to the third vertex;
If the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle;
if the position coordinate is smaller than the first vertex, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex.
Further, when the first projector and the second projector are vertically adjacent projectors, determining the position coordinates of each vertex included in each internal rectangle corresponding to each target line according to the position coordinates corresponding to each intersection point of each target line and the fused projection image, including:
selecting a plurality of target points in the target ray according to the position coordinates corresponding to the first intersection point and the position coordinates corresponding to the second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target ray and the fused projection image, and the abscissa values of the target points are the same as those of the first intersection point and the second intersection point;
Determining the first intersection point or any target point as a first vertex of the internal rectangle, and determining the second intersection point or any target point as a second vertex of the internal rectangle;
drawing a target direction ray corresponding to a first vertex and a target direction ray corresponding to a second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is positively done from the first vertex to a transverse axis, and the target direction ray corresponding to the second vertex is a ray which is positively done from the second vertex to the transverse axis;
judging whether the abscissa value corresponding to the intersection point of the target direction ray corresponding to the first vertex and the fusion projection image is larger than the abscissa value corresponding to the intersection point of the target direction ray corresponding to the second vertex and the fusion projection image;
if the position coordinate is larger than the first vertex, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex;
If the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle;
if the position coordinate is smaller than the first vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the second vertex and the position coordinate corresponding to the third vertex.
Further, in step 204, determining, according to the position coordinates corresponding to each vertex included in the rectangle in the largest area, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area, includes:
determining the position coordinates corresponding to each vertex contained in the fused projection area according to the position coordinates corresponding to each vertex contained in the rectangle in the maximum area and the position corresponding to the central line;
acquiring a preset fusion zone proportion value;
determining the position coordinates corresponding to each vertex contained in the fusion zone region according to the position coordinates corresponding to each vertex contained in the fusion projection region and a preset fusion zone proportion value;
And determining the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area according to the position coordinates corresponding to each vertex contained in the fusion projection area and the position coordinates corresponding to each vertex contained in the fusion zone area.
Further, step 205, adjusting a projection position corresponding to the first projector and a projection position corresponding to the second projector according to the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area, includes:
according to a preset algorithm, position coordinates corresponding to each vertex contained in the first projection image and position coordinates corresponding to each vertex contained in the first final projection area, adjusting a projection position corresponding to the first projector;
and adjusting the projection position corresponding to the second projector according to a preset algorithm, the position coordinates corresponding to each vertex contained in the second projection image and the position coordinates corresponding to each vertex contained in the second final projection area.
An embodiment of the present application provides a device and a method for adjusting a projection position of a projector, where the device for adjusting the projection position of the projector provided by the embodiment of the application includes: the device comprises an acquisition unit, a first determination unit, a drawing unit, a screening unit, a second determination unit, a third determination unit and an adjustment unit; firstly, an acquisition unit acquires a first image containing a fused projection image in a local storage space of target terminal equipment; determining position coordinates corresponding to each vertex contained in the fused projection image by a first determining unit; secondly, drawing a plurality of rays in the first image by a drawing unit; thirdly, screening the plurality of rays by a screening unit according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule, and screening out the rays which do not meet the requirements, thereby obtaining a plurality of target rays; thirdly, determining, by a second determining unit, position coordinates corresponding to each vertex contained in the largest-area internal rectangle in the fused projection image based on the multi-item standard line; thirdly, determining, by a third determining unit, a position coordinate corresponding to each vertex contained in the first final projection area and a position coordinate corresponding to each vertex contained in the second final projection area according to a position coordinate corresponding to each vertex contained in the maximum area internal rectangle; and finally, adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector by an adjusting unit according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area. Because, in this application embodiment, need not the staff and manually adjust the projection position of two adjacent projectors, the device of adjustment projecting position of projecting apparatus is according to the first image that contains the fusion projection image, alright automatically regulated first projecting apparatus corresponds the projection position and the projection position that the second projecting apparatus corresponds to can effectively improve the staff and carry out the efficiency of adjustment to the projection position of many projecting apparatuses.
The embodiment of the application provides a storage medium, which comprises a stored program, wherein when the program runs, equipment where the storage medium is located is controlled to execute the method for adjusting the projection position of a projector.
The storage medium may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application also provides a device for adjusting the projection position of the projector, which comprises a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; the program instructions execute the method for adjusting the projection position of the projector.
The embodiment of the application provides equipment, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the following steps:
acquiring a first image containing a fused projection image, and determining position coordinates corresponding to each vertex contained in the fused projection image, wherein the first image is obtained by shooting a target projection area through a preset camera, the fused projection image is an image obtained by simultaneously projecting a first projector and a second projector to the target projection area, and the position coordinates corresponding to each vertex contained in the fused projection image are the position coordinates of each vertex contained in the fused projection image in the first image;
Drawing a plurality of rays in the first image, and screening the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule to obtain a plurality of target rays;
determining position coordinates corresponding to each vertex contained in the maximum area internal rectangle in the fused projection image based on a plurality of target rays;
determining the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area according to the position coordinates corresponding to each vertex contained in the maximum area internal rectangle;
and adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area.
Further, the determining the position coordinates corresponding to each vertex included in the fused projection image includes:
acquiring a second image containing a first projection image and a third image containing a second projection image, wherein the second image and the third image are obtained by shooting the target projection area through the preset camera, the first projection image is an image obtained after the first projector projects the target projection area, and the second projection image is an image obtained after the second projector projects the target projection area;
Determining position coordinates corresponding to each vertex contained in the first projection image and position coordinates corresponding to each vertex contained in the second projection image, wherein the position coordinates corresponding to each vertex contained in the first projection image are position coordinates of each vertex contained in the first projection image in the second image, and the position coordinates corresponding to each vertex contained in the second projection image are position coordinates of each vertex contained in the second projection image in the third image;
and determining the position coordinates corresponding to each vertex contained in the fused projection image according to the position coordinates corresponding to each vertex contained in the first projection image and the position coordinates corresponding to each vertex contained in the second projection image.
Further, the fused projection image includes a first vertex and a second vertex, when the first projector and the second projector are left and right adjacent projectors, the first vertex is a vertex with a minimum abscissa value among a plurality of vertices included in the fused projection image, the second vertex is a vertex with a maximum abscissa value among a plurality of vertices included in the fused projection image, and when the first projector and the second projector are up and down adjacent projectors, the first vertex is a vertex with a minimum ordinate value among a plurality of vertices included in the fused projection image, and the second vertex is a vertex with a maximum ordinate value among a plurality of vertices included in the fused projection image; the screening processing is performed on a plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule, so as to obtain a plurality of target rays, including:
Determining the position of a central line corresponding to the fused projection image according to the position coordinates corresponding to the first vertex and the position coordinates corresponding to the second vertex;
determining position coordinates and the number of intersection points corresponding to each intersection point of the ray and the fusion projection image;
if the number of the intersection points of the ray and the fusion projection image is two, judging whether the two intersection points are positioned on two sides of the central line according to the position coordinates corresponding to each intersection point and the positions corresponding to the central line;
and if the two intersection points are positioned on two sides of the central line, determining the rays as target rays.
Further, the determining, based on the plurality of target rays, a position coordinate corresponding to each vertex included in the largest-area internal rectangle in the fused projection image includes:
determining the position coordinates of each vertex contained in each internal rectangle corresponding to each target ray according to the position coordinates corresponding to each intersection point of each target ray and the fusion projection image;
calculating the corresponding area of each internal rectangle according to the position coordinates of each vertex contained in each internal rectangle corresponding to each target ray;
And determining an internal rectangle with the largest area among the plurality of internal rectangles as the largest-area internal rectangle.
Further, the first projector and the second projector are left and right adjacent projectors; the determining, according to the position coordinates corresponding to each intersection point of each target ray and the fused projection image, the position coordinates of each vertex included in each internal rectangle corresponding to each target ray includes:
selecting a plurality of target points from the target rays according to the position coordinates corresponding to the first intersection point and the position coordinates corresponding to the second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target rays and the fused projection image, and the longitudinal coordinate values of the target points are the same as those of the first intersection point and the second intersection point;
determining the first intersection point or any one of the target points as a first vertex of an internal rectangle, and determining the second intersection point or any one of the target points as a second vertex of the internal rectangle;
drawing a target direction ray corresponding to the first vertex and a target direction ray corresponding to the second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is made from the first vertex to the negative direction of a longitudinal axis, and the target direction ray corresponding to the second vertex is a ray which is made from the second vertex to the negative direction of the longitudinal axis;
Judging whether a longitudinal coordinate value corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image is larger than a longitudinal coordinate value corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image;
if the position coordinate is larger than the first vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the second vertex and the position coordinate corresponding to the third vertex;
if the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle;
and if the position coordinate is smaller than the first vertex, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex.
Further, the first projector and the second projector are vertically adjacent projectors; the determining, according to the position coordinates corresponding to each intersection point of each target ray and the fused projection image, the position coordinates of each vertex included in each internal rectangle corresponding to each target ray includes:
selecting a plurality of target points from the target rays according to the position coordinates corresponding to the first intersection point and the position coordinates corresponding to the second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target rays and the fused projection image, and the abscissa values of the target points and the first intersection point and the second intersection point are the same;
determining the first intersection point or any one of the target points as a first vertex of an internal rectangle, and determining the second intersection point or any one of the target points as a second vertex of the internal rectangle;
drawing a target direction ray corresponding to the first vertex and a target direction ray corresponding to the second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is forward done from the first vertex to a transverse axis, and the target direction ray corresponding to the second vertex is a ray which is forward done from the second vertex to the transverse axis;
Judging whether the abscissa value corresponding to the intersection point of the target direction ray corresponding to the first vertex and the fused projection image is larger than the abscissa value corresponding to the intersection point of the target direction ray corresponding to the second vertex and the fused projection image;
if the position coordinate is larger than the first vertex, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex;
if the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle;
if the position coordinate is smaller than the first vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the second vertex and the position coordinate corresponding to the third vertex.
Further, the determining, according to the position coordinate corresponding to each vertex included in the maximum area internal rectangle, the position coordinate corresponding to each vertex included in the first final projection area and the position coordinate corresponding to each vertex included in the second final projection area includes:
determining the position coordinates corresponding to each vertex contained in the fused projection area according to the position coordinates corresponding to each vertex contained in the maximum area internal rectangle and the position corresponding to the central line;
acquiring a preset fusion zone proportion value;
determining the position coordinates corresponding to each vertex contained in the fusion zone region according to the position coordinates corresponding to each vertex contained in the fusion projection region and the preset fusion zone proportion value;
and determining the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area according to the position coordinates corresponding to each vertex contained in the fusion projection area and the position coordinates corresponding to each vertex contained in the fusion zone area.
Further, the adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinate corresponding to each vertex included in the first final projection area and the position coordinate corresponding to each vertex included in the second final projection area includes:
According to a preset algorithm, position coordinates corresponding to each vertex contained in the first projection image and position coordinates corresponding to each vertex contained in the first final projection area, adjusting a projection position corresponding to the first projector;
and adjusting the projection position corresponding to the second projector according to the preset algorithm, the position coordinate corresponding to each vertex contained in the second projection image and the position coordinate corresponding to each vertex contained in the second final projection area.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program code initialized with the method steps of: acquiring a first image containing a fused projection image, and determining position coordinates corresponding to each vertex contained in the fused projection image, wherein the first image is obtained by shooting a target projection area through a preset camera, the fused projection image is an image obtained by simultaneously projecting a first projector and a second projector to the target projection area, and the position coordinates corresponding to each vertex contained in the fused projection image are the position coordinates of each vertex contained in the fused projection image in the first image; drawing a plurality of rays in the first image, and screening the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule to obtain a plurality of target rays; determining position coordinates corresponding to each vertex contained in the maximum area internal rectangle in the fused projection image based on a plurality of target rays; determining the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area according to the position coordinates corresponding to each vertex contained in the maximum area internal rectangle; and adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (9)

1. An apparatus for adjusting a projection position of a projector, the apparatus comprising:
the acquisition unit is used for acquiring a first image containing a fused projection image, wherein the first image is obtained by shooting a target projection area through a preset camera, and the fused projection image is obtained by projecting the first projector and the second projector to the target projection area at the same time;
The first determining unit is used for determining position coordinates corresponding to each vertex contained in the fused projection image, wherein the position coordinates corresponding to each vertex contained in the fused projection image are the position coordinates of each vertex contained in the fused projection image in the first image;
a drawing unit configured to draw a plurality of rays in the first image;
the screening unit is used for screening the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule so as to obtain a plurality of target rays;
the second determining unit is used for determining position coordinates corresponding to each vertex contained in a maximum-area internal rectangle in the fused projection image based on the plurality of target rays, wherein the maximum-area internal rectangle is an internal rectangle with the largest area in the plurality of internal rectangles in the fused projection image, and the four vertices of the maximum-area internal rectangle are all located in the four vertices;
a third determining unit, configured to determine, according to the position coordinates corresponding to each vertex included in the maximum area internal rectangle, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area;
The adjusting unit is used for adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector according to the position coordinate corresponding to each vertex contained in the first final projection area and the position coordinate corresponding to each vertex contained in the second final projection area;
the drawing unit is specifically configured to, when the first projector and the second projector are two projectors that are adjacent left and right, select a plurality of points on a longitudinal axis of a rectangular coordinate system corresponding to the first image, and draw, in the first image, a plurality of rays that are parallel to a transverse axis of the rectangular coordinate system and intersect the fused projection image, with the selected points as a starting point; when the first projector and the second projector are two projectors which are adjacent up and down, selecting a plurality of points on a transverse axis of a rectangular coordinate system corresponding to the first image, and drawing a plurality of rays which are parallel to a longitudinal axis of the rectangular coordinate system and intersect with the fused projection image in the first image by taking the selected points as starting points;
the fused projection image comprises a first vertex and a second vertex, when the first projector and the second projector are left and right adjacent projectors, the first vertex is the vertex with the smallest abscissa value among the vertexes contained in the fused projection image, the second vertex is the vertex with the largest abscissa value among the vertexes contained in the fused projection image, and when the first projector and the second projector are upper and lower adjacent projectors, the first vertex is the vertex with the smallest ordinate value among the vertexes contained in the fused projection image, and the second vertex is the vertex with the largest ordinate value among the vertexes contained in the fused projection image; the screening unit includes:
The third determining module is used for determining the position of the central line corresponding to the fused projection image according to the position coordinates corresponding to the first vertex and the position coordinates corresponding to the second vertex;
a fourth determining module, configured to determine a position coordinate and a number of intersection points corresponding to each intersection point of the ray and the fused projection image;
the judging module is used for judging whether the two intersection points are positioned on two sides of the central line according to the position coordinates corresponding to each intersection point and the positions corresponding to the central line when the number of the intersection points of the ray and the fusion projection image is two;
and a fifth determining module, configured to determine that the ray is a target ray when two intersection points are located on two sides of the center line.
2. The apparatus according to claim 1, wherein the first determining unit includes:
the first acquisition module is used for acquiring a second image containing a first projection image and a third image containing a second projection image, wherein the second image and the third image are obtained by shooting the target projection area through the preset camera, the first projection image is an image obtained after the first projector projects the target projection area, and the second projection image is an image obtained after the second projector projects the target projection area;
A first determining module, configured to determine a position coordinate corresponding to each vertex included in the first projection image and a position coordinate corresponding to each vertex included in the second projection image, where the position coordinate corresponding to each vertex included in the first projection image is a position coordinate of each vertex included in the first projection image in the second image, and the position coordinate corresponding to each vertex included in the second projection image is a position coordinate of each vertex included in the second projection image in the third image;
and the second determining module is used for determining the position coordinates corresponding to each vertex contained in the fused projection image according to the position coordinates corresponding to each vertex contained in the first projection image and the position coordinates corresponding to each vertex contained in the second projection image.
3. The apparatus according to claim 1, wherein the second determining unit includes:
a sixth determining module, configured to determine, according to position coordinates corresponding to each intersection point of each target ray and the fused projection image, position coordinates of each vertex included in each internal rectangle corresponding to each target ray;
The calculation module is used for calculating the area corresponding to each internal rectangle according to the position coordinates of each vertex contained in each internal rectangle corresponding to each target ray;
and a seventh determining module configured to determine an internal rectangle having the largest area among the plurality of internal rectangles as the largest-area internal rectangle.
4. The apparatus of claim 3, wherein the first projector and the second projector are left and right adjacent projectors;
the sixth determining module is specifically configured to:
selecting a plurality of target points from the target rays according to the position coordinates corresponding to the first intersection point and the position coordinates corresponding to the second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target rays and the fused projection image, and the longitudinal coordinate values of the target points are the same as those of the first intersection point and the second intersection point;
determining the first intersection point or any one of the target points as a first vertex of an internal rectangle, and determining the second intersection point or any one of the target points as a second vertex of the internal rectangle;
drawing a target direction ray corresponding to the first vertex and a target direction ray corresponding to the second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is made from the first vertex to the negative direction of a longitudinal axis, and the target direction ray corresponding to the second vertex is a ray which is made from the second vertex to the negative direction of the longitudinal axis;
Judging whether a longitudinal coordinate value corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image is larger than a longitudinal coordinate value corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image;
if the position coordinate is larger than the first vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the second vertex and the position coordinate corresponding to the third vertex;
if the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle;
and if the position coordinate is smaller than the first vertex, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex.
5. The apparatus of claim 3, wherein the first projector and the second projector are vertically adjacent projectors;
the sixth determining module is specifically configured to:
selecting a plurality of target points from the target rays according to the position coordinates corresponding to the first intersection point and the position coordinates corresponding to the second intersection point, wherein the first intersection point and the second intersection point are two intersection points of the target rays and the fused projection image, and the abscissa values of the target points and the first intersection point and the second intersection point are the same;
determining the first intersection point or any one of the target points as a first vertex of an internal rectangle, and determining the second intersection point or any one of the target points as a second vertex of the internal rectangle;
drawing a target direction ray corresponding to the first vertex and a target direction ray corresponding to the second vertex, and determining a position coordinate corresponding to an intersection point of the target direction ray corresponding to the first vertex and the fused projection image and a position coordinate corresponding to an intersection point of the target direction ray corresponding to the second vertex and the fused projection image, wherein the target direction ray corresponding to the first vertex is a ray which is forward done from the first vertex to a transverse axis, and the target direction ray corresponding to the second vertex is a ray which is forward done from the second vertex to the transverse axis;
Judging whether the abscissa value corresponding to the intersection point of the target direction ray corresponding to the first vertex and the fused projection image is larger than the abscissa value corresponding to the intersection point of the target direction ray corresponding to the second vertex and the fused projection image;
if the position coordinate is larger than the first vertex, determining an intersection point of the target direction ray corresponding to the second vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the first vertex and the position coordinate corresponding to the third vertex;
if the first vertex is equal to the second vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fusion projection image as a third vertex of the internal rectangle, and determining an intersection point of the target direction ray corresponding to the second vertex and the fusion projection image as a fourth vertex of the internal rectangle;
if the position coordinate is smaller than the first vertex, determining an intersection point of the target direction ray corresponding to the first vertex and the fused projection image as a third vertex of the internal rectangle, and determining a position coordinate corresponding to a fourth vertex of the internal rectangle according to the position coordinate corresponding to the second vertex and the position coordinate corresponding to the third vertex.
6. The apparatus according to claim 1, wherein the third determining unit includes:
an eighth determining module, configured to determine, according to the position coordinate corresponding to each vertex included in the maximum area internal rectangle and the position corresponding to the center line, the position coordinate corresponding to each vertex included in the fused projection area;
the second acquisition module is used for acquiring a preset fusion zone proportion value;
a ninth determining module, configured to determine, according to the position coordinates corresponding to each vertex included in the fused projection area and the preset fused band proportional value, the position coordinates corresponding to each vertex included in the fused band area;
and a tenth determining module, configured to determine, according to the position coordinates corresponding to each vertex included in the fused projection area and the position coordinates corresponding to each vertex included in the fused band area, the position coordinates corresponding to each vertex included in the first final projection area and the position coordinates corresponding to each vertex included in the second final projection area.
7. A method of adjusting a projection position of a projector, the method comprising:
acquiring a first image containing a fused projection image, and determining position coordinates corresponding to each vertex contained in the fused projection image, wherein the first image is obtained by shooting a target projection area through a preset camera, the fused projection image is an image obtained by simultaneously projecting a first projector and a second projector to the target projection area, and the position coordinates corresponding to each vertex contained in the fused projection image are the position coordinates of each vertex contained in the fused projection image in the first image;
Drawing a plurality of rays in the first image, and screening the plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule to obtain a plurality of target rays;
determining position coordinates corresponding to each vertex contained in a maximum-area internal rectangle in the fused projection image based on a plurality of target rays, wherein the maximum-area internal rectangle is an internal rectangle with the largest area in a plurality of internal rectangles in the fused projection image, and the four vertices of the internal rectangle are located in the four vertices of the internal rectangle;
determining the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area according to the position coordinates corresponding to each vertex contained in the maximum area internal rectangle;
according to the position coordinates corresponding to each vertex contained in the first final projection area and the position coordinates corresponding to each vertex contained in the second final projection area, adjusting the projection position corresponding to the first projector and the projection position corresponding to the second projector;
the rendering of the plurality of rays in the first image includes: when the first projector and the second projector are two projectors which are adjacent left and right, selecting a plurality of points on a longitudinal axis of a rectangular coordinate system corresponding to the first image, and drawing a plurality of rays which are parallel to a transverse axis of the rectangular coordinate system and intersect with the fused projection image in the first image by taking the selected points as starting points; when the first projector and the second projector are two projectors which are adjacent up and down, selecting a plurality of points on a transverse axis of a rectangular coordinate system corresponding to the first image, and drawing a plurality of rays which are parallel to a longitudinal axis of the rectangular coordinate system and intersect with the fused projection image in the first image by taking the selected points as starting points;
The fused projection image comprises a first vertex and a second vertex, when the first projector and the second projector are left and right adjacent projectors, the first vertex is the vertex with the smallest abscissa value among the vertexes contained in the fused projection image, the second vertex is the vertex with the largest abscissa value among the vertexes contained in the fused projection image, and when the first projector and the second projector are upper and lower adjacent projectors, the first vertex is the vertex with the smallest ordinate value among the vertexes contained in the fused projection image, and the second vertex is the vertex with the largest ordinate value among the vertexes contained in the fused projection image; the screening processing is performed on a plurality of rays according to the position coordinates corresponding to each vertex contained in the fused projection image and a preset rule, so as to obtain a plurality of target rays, including:
determining the position of a central line corresponding to the fused projection image according to the position coordinates corresponding to the first vertex and the position coordinates corresponding to the second vertex;
determining position coordinates and the number of intersection points corresponding to each intersection point of the ray and the fusion projection image;
If the number of the intersection points of the ray and the fusion projection image is two, judging whether the two intersection points are positioned on two sides of the central line according to the position coordinates corresponding to each intersection point and the positions corresponding to the central line;
and if the two intersection points are positioned on two sides of the central line, determining the rays as target rays.
8. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the method of adjusting the projection position of a projector according to claim 7.
9. An apparatus for adjusting a projection position of a projector, the apparatus comprising a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; the program instructions, when executed, perform the method of adjusting the projection position of a projector of claim 7.
CN202210762992.6A 2022-06-30 2022-06-30 Device and method for adjusting projection position of projector Active CN115190281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210762992.6A CN115190281B (en) 2022-06-30 2022-06-30 Device and method for adjusting projection position of projector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210762992.6A CN115190281B (en) 2022-06-30 2022-06-30 Device and method for adjusting projection position of projector

Publications (2)

Publication Number Publication Date
CN115190281A CN115190281A (en) 2022-10-14
CN115190281B true CN115190281B (en) 2024-01-02

Family

ID=83515743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210762992.6A Active CN115190281B (en) 2022-06-30 2022-06-30 Device and method for adjusting projection position of projector

Country Status (1)

Country Link
CN (1) CN115190281B (en)

Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0618987A (en) * 1992-07-03 1994-01-28 Matsushita Electric Ind Co Ltd Reflection type projection screen
KR19990050997A (en) * 1997-12-19 1999-07-05 구자홍 Digital convergence correction device
JP2005092363A (en) * 2003-09-12 2005-04-07 Nippon Hoso Kyokai <Nhk> Image generation device and image generation program
JP2006074805A (en) * 2005-09-20 2006-03-16 Hitachi Ltd Multi-projection video display device
JP2015060011A (en) * 2013-09-17 2015-03-30 株式会社リコー System, information processing device, control program, and recording medium
CN105023267A (en) * 2014-05-02 2015-11-04 郑思荣 Image alignment algorithm for multi-projection display system
JP2017055346A (en) * 2015-09-11 2017-03-16 株式会社リコー Projection system, image processing system and program
CN107921871A (en) * 2015-08-26 2018-04-17 富士胶片株式会社 Projection display device, method for displaying projection and Projection Display program
CN107991835A (en) * 2017-11-15 2018-05-04 北京理工大学 A kind of optical projection system and method
JP2018081222A (en) * 2016-11-17 2018-05-24 キヤノン株式会社 Projector, projection method, and projection system
JP2018125819A (en) * 2017-02-03 2018-08-09 キヤノン株式会社 Control device, control method, program, and storage medium
JP2018170556A (en) * 2017-03-29 2018-11-01 セイコーエプソン株式会社 Projector and method for controlling projector
JP2019047355A (en) * 2017-09-04 2019-03-22 キヤノン株式会社 projector
JP2019139130A (en) * 2018-02-14 2019-08-22 キヤノン株式会社 Image projection apparatus
CN110191326A (en) * 2019-05-29 2019-08-30 北京小鸟听听科技有限公司 A kind of optical projection system resolution extension method, apparatus and optical projection system
CN110336987A (en) * 2019-04-03 2019-10-15 北京小鸟听听科技有限公司 A kind of projector distortion correction method, device and projector
CN111083457A (en) * 2019-12-27 2020-04-28 成都极米科技股份有限公司 Method and device for correcting projection images of multiple light machines and projection instrument of multiple light machines
CN111192552A (en) * 2019-12-13 2020-05-22 南京乐飞航空技术有限公司 Multi-channel LED spherical screen geometric correction method
CN112055186A (en) * 2020-08-26 2020-12-08 北京博睿维讯科技有限公司 Geometric correction method, system, equipment and storage medium for multi-projection image splicing
CN112055187A (en) * 2020-08-26 2020-12-08 北京博睿维讯科技有限公司 Projection image geometric correction method, system, equipment and storage medium
CN112203070A (en) * 2020-12-03 2021-01-08 深圳市当智科技有限公司 Projection method and system based on monochromatic light emitter and readable storage medium
CN113763419A (en) * 2021-04-29 2021-12-07 腾讯科技(深圳)有限公司 Target tracking method, target tracking equipment and computer-readable storage medium
WO2022048617A1 (en) * 2020-09-04 2022-03-10 深圳光峰科技股份有限公司 Method, device, and system for recognizing projection position, and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7589695B2 (en) * 2002-05-21 2009-09-15 Panasonic Corporation Image display apparatus, multidisplay apparatus, and brightness management apparatus
WO2005120352A1 (en) * 2004-06-08 2005-12-22 Canon Kabushiki Kaisha Image processing device and method which use two images
JP5736535B2 (en) * 2009-07-31 2015-06-17 パナソニックIpマネジメント株式会社 Projection-type image display device and image adjustment method
JP6217100B2 (en) * 2013-03-22 2017-10-25 セイコーエプソン株式会社 Image processing apparatus, projector, image processing method, and program
JP6205777B2 (en) * 2013-03-22 2017-10-04 カシオ計算機株式会社 Projection apparatus, projection method, and program for projection
JP6305050B2 (en) * 2013-12-18 2018-04-04 キヤノン株式会社 Image processing apparatus, image processing method, and program

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0618987A (en) * 1992-07-03 1994-01-28 Matsushita Electric Ind Co Ltd Reflection type projection screen
KR19990050997A (en) * 1997-12-19 1999-07-05 구자홍 Digital convergence correction device
JP2005092363A (en) * 2003-09-12 2005-04-07 Nippon Hoso Kyokai <Nhk> Image generation device and image generation program
JP2006074805A (en) * 2005-09-20 2006-03-16 Hitachi Ltd Multi-projection video display device
JP2015060011A (en) * 2013-09-17 2015-03-30 株式会社リコー System, information processing device, control program, and recording medium
CN105023267A (en) * 2014-05-02 2015-11-04 郑思荣 Image alignment algorithm for multi-projection display system
CN107921871A (en) * 2015-08-26 2018-04-17 富士胶片株式会社 Projection display device, method for displaying projection and Projection Display program
JP2017055346A (en) * 2015-09-11 2017-03-16 株式会社リコー Projection system, image processing system and program
JP2018081222A (en) * 2016-11-17 2018-05-24 キヤノン株式会社 Projector, projection method, and projection system
JP2018125819A (en) * 2017-02-03 2018-08-09 キヤノン株式会社 Control device, control method, program, and storage medium
JP2018170556A (en) * 2017-03-29 2018-11-01 セイコーエプソン株式会社 Projector and method for controlling projector
JP2019047355A (en) * 2017-09-04 2019-03-22 キヤノン株式会社 projector
CN107991835A (en) * 2017-11-15 2018-05-04 北京理工大学 A kind of optical projection system and method
JP2019139130A (en) * 2018-02-14 2019-08-22 キヤノン株式会社 Image projection apparatus
CN110336987A (en) * 2019-04-03 2019-10-15 北京小鸟听听科技有限公司 A kind of projector distortion correction method, device and projector
CN110191326A (en) * 2019-05-29 2019-08-30 北京小鸟听听科技有限公司 A kind of optical projection system resolution extension method, apparatus and optical projection system
CN111192552A (en) * 2019-12-13 2020-05-22 南京乐飞航空技术有限公司 Multi-channel LED spherical screen geometric correction method
CN111083457A (en) * 2019-12-27 2020-04-28 成都极米科技股份有限公司 Method and device for correcting projection images of multiple light machines and projection instrument of multiple light machines
CN112055186A (en) * 2020-08-26 2020-12-08 北京博睿维讯科技有限公司 Geometric correction method, system, equipment and storage medium for multi-projection image splicing
CN112055187A (en) * 2020-08-26 2020-12-08 北京博睿维讯科技有限公司 Projection image geometric correction method, system, equipment and storage medium
WO2022048617A1 (en) * 2020-09-04 2022-03-10 深圳光峰科技股份有限公司 Method, device, and system for recognizing projection position, and storage medium
CN112203070A (en) * 2020-12-03 2021-01-08 深圳市当智科技有限公司 Projection method and system based on monochromatic light emitter and readable storage medium
CN113763419A (en) * 2021-04-29 2021-12-07 腾讯科技(深圳)有限公司 Target tracking method, target tracking equipment and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于摄像头校正的多投影仪拼接研究与实现;陈亮;《中国优秀硕士学位论文全文数据库(电子期刊)》;全文 *

Also Published As

Publication number Publication date
CN115190281A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
US10692197B2 (en) Systems and techniques for automatic image haze removal across multiple video frames
CN107071376B (en) A kind of projection tiled display bearing calibration and device
US8454175B2 (en) Projector and method for adjusting projected image
TW201426493A (en) Method and apparatus for adapting custom control components to a screen
CN107231524A (en) Image pickup method and device, computer installation and computer-readable recording medium
US10616543B2 (en) Method and projector for adjusting projected image
WO2020164044A1 (en) Free-viewpoint image synthesis method, device, and apparatus
CN106484080A (en) A kind of methods of exhibiting of display interface, device and equipment
CN107229439B (en) Method and device for displaying picture
CN106657848A (en) Projection method and electronic equipment
CN115190281B (en) Device and method for adjusting projection position of projector
CN115082350A (en) Stroboscopic image processing method and device, electronic device and readable storage medium
CN105657262B (en) A kind of image processing method and device
CN107545222A (en) The method and its system of display target image in virtual reality scenario
EP4165874A1 (en) Producing and adapting video images for presentation on displays with different aspect ratios
JPH0981746A (en) Two-dimensional display image generating method
CN115984154A (en) Image fusion method and device, storage medium and electronic equipment
US10339626B2 (en) Method for producing framing information for a set of images
CN105893578A (en) Method and device for selecting photos
CN115190280B (en) Device and method for determining area of fused projection image
CN115527189A (en) Parking space state detection method, terminal device and computer readable storage medium
CN112415834B (en) Laser lamp control method and device
CN115239612A (en) Circuit board positioning method, device, equipment and storage medium
CN112906708A (en) Picture processing method and device, electronic equipment and computer storage medium
US10643312B2 (en) Smoothed image generating device, abnormality determining device, and smoothed image generating method

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
GR01 Patent grant
GR01 Patent grant